[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 3 if (!defined('e107_INIT')) { exit; } 4 5 include_lan(THEME."languages/".e_LANGUAGE.".php"); 6 $themename = "newsroom"; 7 $themeversion = "1.02"; 8 $themeauthor = "CaMer0n"; 9 $themedate = "24th June 2006"; 10 $themeinfo = "This theme displays some of the news features of 0.7<br />For best results, create news items with a 'news-image' of 65x50 pixels.<br />To place these items in the top right area, choose 'othernews2' for the rendertype of the news item.<br />'othernews' may be used for the simple bullet listing below it.<br />This theme may be used freely under the GPL license providing the 'e107 newsroom' image is replaced."; 11 $xhtmlcompliant = TRUE; 12 $csscompliant = TRUE; 13 define("THEME_DISCLAIMER", "<br /><i>NewsRoom theme v1.01 by CaMer0n</i>"); 14 define("IMODE", "dark"); 15 16 // [layout] 17 18 $layout = "_default"; 19 20 $HEADER = " 21 <div style='text-align:left'> 22 23 <div class='header_setup' style='overflow:hidden'> 24 25 <div style='width:770px;padding:0px;'> 26 <div style='width:770px;position:absolute;top:5px;text-align:right'>{LANGUAGELINKS}</div> 27 <table cellpadding='0' cellspacing='0' style=\"background-image: url('".THEME_ABS."images/logo_bg.png');margin-bottom:0px;padding:0px;width:100%;\"> 28 <tr> 29 <td style='padding-left:5px;'> 30 <img src=\"".THEME_ABS."images/logo_text.png\" style='display:block' alt=\"newsroom\" /> 31 </td> 32 <td style='text-align:right;padding-right:4px'> 33 34 <br /> 35 {SEARCH=news} 36 </td> 37 </tr> 38 </table> 39 </div> 40 <div style='padding-right:3px;text-align:right;color:silver;display:block;width:770px;background-color:#000000;height:16px;border-bottom:3px solid #c00'> 41 {CUSTOM=clock} 42 </div> 43 44 <div style='padding-top:0px;text-align:left;margin-left:0px;margin-right:auto'> 45 46 47 <table style='margin-top:6px;margin-left:0px;width:770px;' cellpadding=\"0\" cellspacing=\"0\"> 48 <tr> 49 <td style='text-align:left;vertical-align:top;width:145px' rowspan='2'> 50 <div style='margin-bottom:6px'> 51 {SITELINKS=flat} 52 </div> 53 {SETSTYLE=leftmenu} 54 {PLUGIN=login_menu} 55 {MENU=1} 56 {SETSTYLE=default} 57 </td> 58 59 <td style='vertical-align:top;padding-left:6px;padding-right:6px'> 60 61 "; 62 $CUSTOMHEADER = $HEADER."<div>"; 63 $HEADER .= "<div style='width:440px'> "; 64 $CUSTOMPAGES = "user.php usersettings.php forum_viewforum.php forum.php forum_viewtopic.php forum_post.php"; 65 66 $FOOTER = " 67 <div style='margin-top:6px'> 68 {NEWS_CATEGORIES} 69 </div> 70 </div> 71 72 </td> 73 <td style='width:170px;vertical-align:top;'> 74 {SETSTYLE=othernews} 75 {PLUGIN=other_news_menu/other_news2_menu} 76 {SETSTYLE=rightmenu} 77 {MENU=2} 78 </td> 79 </tr>"; 80 81 $FOOTERBASE = " 82 83 <tr> 84 <td colspan='2' style='vertical-align:top'> 85 <table cellpadding='0' cellspacing='6' style='width:100%'> 86 <tr> 87 <td style='vertical-align:top;width:33%'> 88 <!-- Powered by Menu Start --> 89 {SETSTYLE=bottom} 90 {PLUGIN=powered_by_menu} 91 <!-- Powered by Menu Stop --> 92 </td> 93 <td style=\"vertical-align:top;width:33%\"> 94 <!-- Compliance Menu Start --> 95 {PLUGIN=compliance_menu} 96 <!-- Compliance Menu Stop --> 97 </td> 98 <td style='vertical-align:top;width:33%'> 99 <!-- Compliance Menu Start --> 100 {PLUGIN=sitebutton_menu} 101 <!-- Compliance Menu Stop --> 102 </td> 103 </tr> 104 </table> 105 </td> 106 </tr> 107 </table> 108 109 110 111 112 113 114 <!-- FOOTER --> 115 116 <table style='margin-top:4px;border:0px' width=\"770\" cellpadding=\"0\" cellspacing=\"0\">\n 117 <tr> 118 <td style='width:770px;border-top:1px solid #999999'> 119 120 <div style='padding:5px;background-color:#333333;border-top:1px solid white'> 121 <table style='width:100%;' border=\"0\" cellpadding=\"3\" cellspacing=\"0\"> 122 <tr> 123 <td> 124 <a href='".e_HTTP."' style='color:silver;'>".SITENAME."</a> 125 </td> 126 <td style='text-align:center'> 127 {CUSTOM=language} 128 </td> 129 <td> 130 <a href='http://www.e107.org' rel='external' style='color:silver;'>e107.org</a> 131 </td> 132 <td> 133 <a href='http://www.e107coders.org' rel='external' style=\"color:silver;\">e107coders.org</a></td> 134 <td> 135 <a href='http://www.e107themes.org' rel='external' style=\"color:silver;\">e107themes.org</a></td> 136 137 </tr> 138 </table> 139 </div> 140 141 <div style=\"border-top:2px solid white;background-image: url('".THEME_ABS."images/logo_bg.png');text-align:center\"> 142 <table style='width:100%;'><tr> 143 <td style='vertical-align:top;padding:10px;width:50%;border-right:1px dotted silver'> 144 {SITEDISCLAIMER} 145 </td> 146 <td style='vertical-align:top;padding:10px;width:50%'> 147 {SITETAG} 148 </td> 149 </tr> 150 </table> 151 </div> 152 153 154 155 </td></tr></table> 156 </div></div></div>\n"; 157 // this part just saves us duplicating the html in the footer section. 158 $CUSTOMFOOTER = "</div></td> 159 </tr>".$FOOTERBASE; 160 161 $FOOTER .= $FOOTERBASE; 162 163 164 $NEWSSTYLE = " 165 <div class='bodytable' style='width:100%'> 166 <table cellpadding='0' cellspacing='0' border='0' style='width:100%'> 167 <tr> 168 <td class='captionnews' style=\"padding-left:3px;font-weight:bold;font-size:22px;width:100%;\" > 169 {NEWSTITLE} 170 </td> 171 </tr> 172 </table> 173 <table style='width:100%'> 174 <tr> 175 <td style='text-align:justify;padding:3px'> 176 {NEWSBODY} 177 {EXTENDED} 178 <br /> 179 </td> 180 181 </tr> 182 </table> 183 <table style='width:100%;border:0px' cellpadding='0' cellspacing='0' > 184 <tr> 185 <td style='padding:3px'>".LAN_THEME_4." 186 {NEWSDATE} 187 | 188 {EMAILICON} 189 {PRINTICON} 190 {PDFICON} 191 {ADMINOPTIONS}<br /> 192 {NEWSCOMMENTS} 193 </td> 194 </tr> 195 </table><br /></div> 196 197 "; 198 199 // the style of the items in news.php?cat and news.php?all 200 $NEWSLISTSTYLE = "<table cellpadding='0' cellspacing='0' style='margin-bottom:3px;border-bottom:1px solid black;width:100%'> 201 202 <tr><td style='padding:3px;vertical-align:top;width:65px'> 203 {NEWSTHUMBNAIL} 204 </td> 205 <td style='padding:3px;text-align:left;vertical-align:top'> 206 {NEWSTITLELINK} 207 <br /> 208 {NEWSSUMMARY} 209 </td> 210 </tr> 211 </table>"; 212 213 214 // You can customize the news-category bullet listing here. 215 216 $NEWSCAT = "\n\n\n\n<!-- News Category -->\n\n\n\n 217 <div style='padding:2px;padding-bottom:12px'> 218 <div class='leftcap' style='vertical-align:middle'> 219 {NEWSCATICON} 220 <span style='vertical-align:top;margin-top:3px'> 221 {NEWSCATEGORY} 222 </span> 223 </div> 224 <div style='width:100%;text-align:left;padding-top:2px'> 225 {NEWSCAT_ITEM} 226 </div> 227 </div> 228 "; 229 230 /* 231 $NEWSCAT_ITEM = " 232 <div style='width:100%;height:14px;display:block'> 233 <table style='width:100%'> 234 <tr><td style='width:2px;vertical-align:middle'>• 235 {NEWSCATICON} 236 </td> 237 <td style='text-align:left;height:10px'>{NEWSTITLELINK} </td></tr></table></div> 238 ";*/ 239 240 241 242 243 $OTHERNEWS_STYLE = "<div style='text-align:left;margin-bottom:3px'> 244 <table style='width:100%'><tr><td style='color:black;text-align:left;width:10px;vertical-align:top'> 245 •</td><td style='text-align:left;vertical-align:top'> 246 <div style='font-size:11px;'><b>{NEWSTITLELINK}</b></div></td></tr></table> 247 </div>"; 248 249 250 $OTHERNEWS2_STYLE = " 251 <table cellpadding='0' cellspacing='0' style='border-bottom:1px solid black;width:100%;'> 252 <tr><td class='caption2' colspan='2' style='padding:3px;text-decoration:none'> 253 {NEWSCATEGORY} 254 </td></tr> 255 <tr><td class='othernews2' style='vertical-align:top;'> 256 {NEWSTITLELINK} 257 <br /> 258 {NEWSSUMMARY} 259 </td> 260 <td class='othernews2' style='text-align:right;vertical-align:top'> 261 {NEWSTHUMBNAIL} 262 </td> 263 </tr> 264 </table> 265 "; 266 267 // [News] 268 define("ICONSTYLE", "float: left; border:0"); 269 define("COMMENTLINK", LAN_THEME_1.": "); 270 define("COMMENTOFFSTRING", LAN_THEME_2); 271 define("PRE_EXTENDEDSTRING", "<span style='font-size:13px'> "); 272 define("EXTENDEDSTRING", "<br /><br /><b>".LAN_THEME_3."</b>"); 273 define("POST_EXTENDEDSTRING", "</span><br />"); 274 define("ICONMAIL", "iconmail.png"); // Usable since e107v615 275 define("ICONPRINT", "iconprint.png"); // Usable since e107v615 276 277 // [News List by Category] 278 define("NEWSLIST_ITEMLINK","font-weight:bold"); 279 define("NEWSLIST_THUMB","border:1px dotted black"); 280 define("NEWSLIST_CATICON","border:1px solid white"); 281 282 // [news categories] 283 define("NEWSCAT_CATLINK","font-weight:bold;font-size:12px;text-decoration:none;color:black"); 284 define("NEWSCAT_ITEMLINK","font-size:12px;color:#fff"); 285 define("NEWSCAT_STYLE","width:100%;margin-bottom:3px"); 286 define("NEWSCAT_AMOUNT",3); 287 define("NEWSCAT_COLS",2); 288 define("NEWSCAT_THUMB","border:1px solid black"); 289 // define("NEWSCAT_CATICON","border:1px solid red"); 290 291 // [other news] 292 define("OTHERNEWS_CATLINK","text-decoration:none;"); 293 define("OTHERNEWS_ITEMLINK","color:black;font-weight:bold;text-decoration:underline"); 294 define("OTHERNEWS_LIMIT",3); 295 296 // [other news 2] 297 define("OTHERNEWS2_CATLINK","color:white;text-decoration:none;"); 298 define("OTHERNEWS2_ITEMLINK","color:#cccccc;text-transform:uppercase;font-weight:bold;text-decoration:none;"); 299 define("OTHERNEWS2_LIMIT",4); 300 301 // [linkstyle] 302 303 function linkstyle($linkstyle){ 304 305 $style['prelink'] = "<div style='width:145px'>"; 306 $style['postlink'] = "</div>"; 307 $style['linkstart'] = "<span class='dent' style='float:left'> </span><div class='newsroomRow'><div class='newsroom' onmouseover=\"this.style.backgroundColor='#6998CC';window.status='hithere'\" onmouseout=\"this.style.backgroundColor='#333333'\">"; 308 $style['linkstart_hilite'] = "<span class='denthi' style='float:left'> </span><div class='newsroomHiliteRow'><div class='newsroomHilite' onmouseover=\"this.style.backgroundColor='#666666'\" onmouseout=\"this.style.backgroundColor='#c00'\">"; 309 $style['linkend'] = "</div></div>"; 310 $style['linkdisplay'] = 1; 311 $style['linkalign'] = "left"; 312 $style['linkclass'] = ""; 313 314 return $style; 315 } 316 317 318 function tablestyle($caption, $text){ 319 global $style; 320 321 switch ($style) { 322 case "leftmenu": 323 echo "<div style='width:145px'> 324 <table style='width:100%' cellpadding='0' cellspacing='0'> 325 <tr> 326 <td> 327 <div class='leftcap'> 328 {$caption} 329 </div> 330 <div class=\"forumheader3\" >{$text}</div> 331 </td></tr></table></div>"; 332 break; 333 334 case "rightmenu": 335 echo " 336 <div class='spacer' style='border-top:2px solid #CC0000' > 337 <table style='width:100%;margin-left:0px' cellpadding='0' cellspacing='0'> 338 <tr> 339 <td class='caption'>".$caption."</td> 340 </tr> 341 </table> 342 343 <table style='width:100%;margin-left:0px' cellpadding='0' cellspacing='0'> 344 <tr> 345 <td class='forumheader3' >".$text."</td> 346 </tr> 347 </table> 348 </div>"; 349 break; 350 351 case "highlight": 352 echo "<div class='spacer'><div style='background-color:#D0DBE8;border:1px solid silver'> 353 <div class='captionbar' style='text-align:left;text-transform:uppercase;white-space:nowrap'>".$caption."</div> 354 <div style='padding:4px'>".$text."</div> 355 </div></div>"; 356 break; 357 358 case "othernews": 359 echo "<div style='text-align:left;margin-left:0px'> 360 <div style='padding:0px;text-align:left;margin-left:0px'>".$text."</div> 361 </div>"; 362 break; 363 364 case "bottom": 365 echo "<div style='padding:3px;border-top:1px solid #CCCCCC;border-bottom:1px solid #CCCCCC'> 366 <b style=\"font-size:12px;color: #c00;\">{$caption}</b> 367 </div><div style='padding:3px;text-align:center'>{$text}</div>"; 368 break; 369 370 default: 371 echo "<div style='width:100%;vertical-align:top'> 372 <table style='width:100%' cellpadding='0' cellspacing='0'> 373 <tr > 374 <td> 375 <div class=\"caption2\" style='color:white;padding:3px'> 376 $caption 377 </div> 378 <div class=\"forumheader3\" style='padding:6px'>{$text}</div> 379 </td></tr></table></div>"; 380 381 break; 382 } 383 } 384 385 386 // for testing the news parser. 387 388 /*$NEWSSTYLE = " 389 NEWSTITLE = 390 {NEWSTITLE} 391 <br /> 392 <br /> 393 394 NEWSBODY = 395 {NEWSBODY} 396 <br /> 397 <br /> 398 <br /><br /> 399 NEWSICON = {NEWSICON} 400 <br /> 401 <br /> 402 <br /> 403 <br /> 404 NEWSHEADER = 405 {NEWSHEADER} 406 <br /> 407 <br /> 408 NEWSCATEGORY = 409 {NEWSCATEGORY} 410 <br /> 411 <br /> 412 NEWSAUTHOR = 413 {NEWSAUTHOR} 414 <br /> 415 <br /> 416 417 NEWSDATE = 418 {NEWSDATE} 419 <br /> 420 <br /> 421 NEWSCOMMENTS = 422 {NEWSCOMMENTS} 423 <br /> 424 <br /> 425 EMAILICON = 426 {EMAILICON} 427 <br /> 428 <br /> 429 PRINTICON = 430 {PRINTICON} 431 <br /> 432 <br /> 433 NEWSID = 434 {NEWSID} 435 <br /> 436 <br /> 437 ADMINOPTIONS = 438 {ADMINOPTIONS} 439 <br /> 440 <br /> 441 EXTENDED = 442 {EXTENDED} 443 <br /> 444 <br /> 445 CAPTIONCLASS = 446 {CAPTIONCLASS} 447 <br /> 448 <br /> 449 ADMINCAPTION = 450 {ADMINCAPTION} 451 <br /> 452 <br /> 453 ADMINBODY = 454 {ADMINBODY} 455 <br /> 456 <br /> 457 NEWSSUMMARY = 458 {NEWSSUMMARY} 459 <br /> 460 <br /> 461 NEWSTHUMBNAIL = 462 {NEWSTHUMBNAIL} 463 <br /> 464 <br /> 465 STICKYICON = 466 {STICKY_ICON} 467 <br /> 468 <br /> 469 NEWSTITLELINK = 470 {NEWSTITLELINK} 471 <br /> 472 <br /> 473 474 475 "; 476 */ 477 478 ?>
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 |