[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 +----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/e107_themes/reline/theme.php,v $ 14 | $Revision: 1.18 $ 15 | $Date: 2006/11/21 19:30:27 $ 16 | $Author: lisa_ $ 17 | 18 +----------------------------------------------------------------------------+ 19 | Photo Credits 20 | 21 | mosaic glass by 22 | -> by massimo bassi [maXb] ( http://www.robamia.com ) 23 | 24 | funky_box 1 25 | -> by Andrzej Pobiedzinski [Sarej] ( http://www.imagecreators.olsztyn.pl ) 26 | 27 | Lime Light | Orange Splash 28 | -> by Martin R.W [matchstick] ( http://www.match-stick.co.uk ) 29 | 30 | Hands 4: holding a poster | Paper clipped | Post-It | Bubbles 3 31 | -> by Davide Guglielmo [brokenarts] ( http://www.broken-arts.com ) 32 | 33 +----------------------------------------------------------------------------+ 34 */ 35 36 37 // Protect the file from direct access 38 if (!defined('e107_INIT')) { exit; } 39 40 41 // Get language definition files for this theme 42 @include_once(e_THEME."reline/languages/".e_LANGUAGE.".php"); 43 @include_once(e_THEME."reline/languages/English.php"); 44 45 46 // Set theme info 47 $themename = "Reline"; 48 $themeversion = "1.0"; 49 $themeauthor = "SweetAs"; 50 $themedate = "24/04/06"; 51 $themeinfo = ""; 52 $xhtmlcompliant = TRUE; // If set to TRUE will display an XHTML compliant logo in theme manager 53 $csscompliant = TRUE; // If set to TRUE will display a CSS compliant logo in theme manager 54 55 56 // Define which icon set to use. 57 // There are two possible values here 'dark' and 'lite'. 58 // If your theme has a light background then use 'lite' and vice versa for dark themes. 59 // Because IE does not yet support Alpha transparency with PNG24 images, all of e107's 60 // icons have been saved with both a light and dark matte background (to prevent jagged 61 // edges that you see when no matte is present). 62 // The IMODE is specifying which of the icon sets to use. 63 // IE7 will support Alpha transparent PNG's at which point we will create a third set 64 // of icons (using alpha transparency instead of a matte) and IMODE will gradually be 65 // filtered out as this new set will work with all background colours. 66 // Uncomment the line below to define IMODE (remove the // ). Default is 'lite'. 67 68 // define("IMODE", "lite"); 69 70 71 // Theme disclaimer is displayed in your site disclaimer appended to the site disclaimer text. 72 // Uncomment the line below to set a theme disclaimer (remove the // ). 73 74 // define("THEME_DISCLAIMER", "Example theme disclaimer text."); 75 76 77 // Dont render core style sheet link. 78 // the contents of e107_files/e107.css have been copied to this themes style.css. 79 // By setting $no_core_css to TRUE below we can prevent the <link> tag 80 // that would normally be generated in the <head> of the page from being outputted. 81 // This saves us a call by the browser to a stylesheet that we no longer need. 82 83 $no_core_css = TRUE; 84 85 86 // Output into <head> section. 87 // Anything echoed from within the theme_head() function gets outputted into the <head> of your page. 88 // Please note that you have other choices for <head> based javascript. You can create a theme.js file 89 // in your themes folder and a link will automatically be generated to it in the <head> of your page. 90 // If you have javascript that is independant of the theme rather than use theme.js or the theme_head() 91 // function below, its advisable to instead create a new file e107_files/user.js, placing your script 92 // into this, and as with theme.js, a link will automatically be generated to this file. 93 // Uncomment the following three lines to use. 94 95 //function theme_head() { 96 // echo "<script></script>"; 97 //} 98 99 100 // Header and footer templates for the body of your site. 101 // These are the header and footer that wraps the content of a page. 102 // Note that these are the templates for *inbetween* the <body> and </body> tags. 103 // The rest of the output (eg. the <head> section of the page) are covered by 104 // the header and footer template files in e107_themes/templates. 105 // These are called header_default.php and footer_default.php. 106 // If you wish to use your own versions of these files uncomment the line below (remove the // ) 107 // and edit it so that the text string represents the postfix of the new set of files. 108 // eg. using the example text e107 will include these files: 109 // e107_themes/templates/header_your_version.php and e107_themes/templates/footer_your_version.php 110 // instead of the default: 111 // e107_themes/templates/header_default.php and e107_themes/templates/footer_default.php 112 // Please note however that using non default core header and footer templates is not recommended 113 // and that the flexibility of these files enables you to add and edit content to them without editing 114 // the files directly. Documentation for this can be found on e107.org. 115 116 // $layout = '_your_version'; // uncomment this line (remove the // ) to use alternative template files. 117 118 119 // Main header 120 $HEADER = "<table class='container'> 121 <tr> 122 <td> 123 <img class='advanced_image' src='".e_IMAGE."advanced.png' alt='' /> 124 </td> 125 126 <td class='top_section'> 127 {LOGO} 128 </td> 129 </tr> 130 131 <tr> 132 <td class='left_section'> 133 134 <table class='top_left_menu_container'><tr><td> 135 {SETSTYLE=top_left_menu} 136 {MENU=1} 137 </td></tr> 138 139 <tr><td class='bottom_left_menu_area'> 140 {SETSTYLE=bottom_left_menu} 141 {MENU=2} 142 </td></tr></table> 143 144 </td> 145 146 <td class='main_container'> 147 148 <table class='top_inner_container'> 149 <tr> 150 <td class='top_bar'> 151 {SEARCH} 152 </td> 153 </tr> 154 155 <tr> 156 <td class='main_nav'> 157 158 <div class='cube_container'> 159 <img class='cube_image' src='".THEME_ABS."images/cube.png' alt='' /> 160 </div> 161 162 {SITELINKS_ALT=no_icons+noclick} 163 </td> 164 </tr> 165 </table> 166 167 {SETSTYLE=default} 168 169 <table class='bottom_inner_container'> 170 <tr> 171 <td class='main_section'> 172 {WMESSAGE} 173 "; 174 175 176 // Main footer 177 $FOOTER = "</td> 178 179 <td class='right_section'> 180 {SETSTYLE=paperclip} 181 {MENU=3} 182 {SETSTYLE=right_menu} 183 {MENU=4} 184 {SETSTYLE=post_it} 185 {MENU=5} 186 </td> 187 </tr> 188 </table> 189 190 </td> 191 </tr> 192 </table> 193 194 <div class='disclaimer'> 195 {SITEDISCLAIMER} 196 </div>"; 197 198 // Custom footer for pages with no right menu area. Uncomment the $CUSTOMPAGES line below the 199 // footer to activate and use. 200 201 $CUSTOMFOOTER['No_Right_Menu_Area'] = "</td> 202 </tr> 203 </table> 204 205 </td> 206 </tr> 207 </table> 208 209 <div class='disclaimer'> 210 {SITEDISCLAIMER} 211 </div>"; 212 213 214 // Uncomment the below line (remove the // ) and enter in the filenames (or part of) for 215 // those pages you wish to use the custom page layout defined above (separate with spaces). 216 217 // $CUSTOMPAGES['No_Right_Menu_Area'] = "forum.php forum_post.php forum_viewtopic.php"; 218 219 220 // Define attributes associated with site links. 221 222 define('PRELINK', ''); // Prefixed to all links as a group 223 define('POSTLINK', ''); // Postfixed to all links as a group 224 define('LINKSTART', ''); // Prefixed to each indivdual link 225 define('LINKEND', ''); // Postfixed to each indivdual link 226 define('LINKDISPLAY', 1); 227 define('LINKALIGN', 'left'); 228 229 230 // News style 231 232 $NEWSSTYLE = "<div class='tablerender'><div class='main_caption'>{STICKY_ICON}{NEWSTITLE}</div>{NEWSIMAGE}{NEWSBODY}{EXTENDED}</div> 233 234 <div class='news_info_top'> 235 <img class='news_comments_icon' src='".THEME_ABS."images/comments_16.png' alt='' /> 236 {NEWSCOMMENTS}{TRACKBACK} 237 </div> 238 239 <table class='news_info_bottom'> 240 <tr> 241 <td class='news_info_bottom_left'> 242 {NEWSICON} 243 </td> 244 245 <td class='news_info_bottom_middle'> 246 ".LAN_THEME_5." {NEWSAUTHOR} ".LAN_THEME_6." {NEWSDATE} 247 </td> 248 249 <td class='news_info_bottom_right'> 250 {EMAILICON}{PRINTICON}{PDFICON}{ADMINOPTIONS} 251 </td> 252 </tr> 253 </table>"; 254 255 256 // Define attributes associated with news style. 257 258 define('ICONMAIL', 'email_16.png'); 259 define('ICONPRINT', 'print_16.png'); 260 define('ICONSTYLE', 'border: 0px'); 261 define('COMMENTOFFSTRING', LAN_THEME_1); 262 define('COMMENTLINK', LAN_THEME_2); 263 define('PRE_EXTENDEDSTRING', '<br /><br />[ '); 264 define('EXTENDEDSTRING', LAN_THEME_3); 265 define('POST_EXTENDEDSTRING', ' ]<br />'); 266 define('TRACKBACKSTRING', LAN_THEME_4); 267 define('TRACKBACKBEFORESTRING', ' | '); 268 269 270 // Table style 271 272 function tablestyle($caption, $text, $mode){ 273 global $style; 274 275 if ($style == 'top_left_menu') 276 { 277 echo "<div class='top_left_menu'>"; 278 if (USER && $mode == 'login') 279 { 280 echo "<img src='".THEME_ABS."images/loggedin.png' style='width: 32px; height: 32px; display: block' alt='' /><br />"; 281 } 282 echo "<div class='top_left_menu_caption'>".$caption."</div>".$text."</div>"; 283 } 284 else if ($style == 'paperclip') 285 { 286 echo "<div class='paperclip_container'> 287 <table class='paperclip_inner_container'><tr><td class='paperclip'>"; 288 if ($caption) 289 { 290 echo "<div class='paperclip_caption'>".$caption."</div>"; 291 } 292 echo $text."</td></tr></table></div>"; 293 } 294 else if ($style == 'post_it') 295 { 296 echo "<div class='post_it_container'><div class='post_it_back'><div class='post_it_top'><div class='post_it_bottom'> 297 <div class='post_it_caption'>".$caption."</div>".$text."</div></div></div></div>"; 298 } 299 else if ($style == 'bottom_left_menu' || $style == 'right_menu') 300 { 301 echo "<table class='menu_container'><tr><td class='menu_inner_container'> 302 <div class='menu_caption'>".$caption."</div>".$text."</td></tr></table>"; 303 } 304 else 305 { 306 echo "<div class='tablerender'><div class='main_caption'>".$caption."</div>".$text."</div>"; 307 } 308 309 } 310 311 312 // Comment post style 313 $sc_style['REPLY']['pre'] = "<tr><td class='forumheader'>"; 314 $sc_style['REPLY']['post'] = ""; 315 316 $sc_style['SUBJECT']['pre'] = "<td class='forumheader'>"; 317 $sc_style['SUBJECT']['post'] = "</td></tr>"; 318 319 $sc_style['COMMENTEDIT']['pre'] = "<tr><td class='forumheader' colspan='2' style='text-align: right'>"; 320 $sc_style['COMMENTEDIT']['post'] = "</td></tr>"; 321 322 $sc_style['JOINED']['post'] = "<br />"; 323 324 $sc_style['LOCATION']['post'] = "<br />"; 325 326 $sc_style['RATING']['post'] = "<br /><br />"; 327 328 $sc_style['RATING']['post'] = "<br />"; 329 330 $COMMENTSTYLE = "<div class='spacer' style='text-align:center'><table class='fborder' style='width: 95%'> 331 <tr> 332 <td class='fcaption' colspan='2'>".LAN_THEME_5." {USERNAME} ".LAN_THEME_6." {TIMEDATE} 333 </td> 334 </tr> 335 {REPLY}{SUBJECT} 336 <tr> 337 <td style='width: 20%; vertical-align: top' class='forumheader3'> 338 <div style='text-align: center'> 339 {AVATAR} 340 </div> 341 {LEVEL}<span class='smalltext'>{JOINED}{COMMENTS}{LOCATION}{IPADDRESS}</span> 342 </td> 343 <td style='width: 80%; vertical-align: top' class='forumheader3'> 344 {COMMENT} 345 {RATING} 346 {SIGNATURE} 347 </td> 348 </tr> 349 {COMMENTEDIT} 350 </table> 351 </div>"; 352 353 354 // Search shortcode style 355 $SEARCH_SHORTCODE = "<input class='tbox search' type='text' name='q' size='20' value='' maxlength='50' /> 356 <input type='image' name='s' src='".THEME_ABS."images/search.png' value='".LAN_THEME_7."' title='".LAN_THEME_7."' style='width: 16px; height: 16px; border: 0px; vertical-align: middle' />"; 357 358 359 // Chatbox post style 360 $CHATBOXSTYLE = "<br /><img src='".e_IMAGE."admin_images/chatbox_16.png' alt='' style='width: 16px; height: 16px; vertical-align: bottom' /> 361 <b>{USERNAME}</b><br />{TIMEDATE}<br />{MESSAGE}<br />"; 362 363 364 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |