[ Index ]
 

Code source de e107 0.7.8

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/e107_themes/human_condition/ -> theme.php (source)

   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/human_condition/theme.php,v $
  14  |     $Revision: 1.12 $
  15  |     $Date: 2005/12/14 19:28:52 $
  16  |     $Author: sweetas $
  17  +----------------------------------------------------------------------------+
  18  */
  19  
  20  if (!defined('e107_INIT')) { exit; }
  21  
  22  // [multilanguage]
  23  @include_once(e_THEME."human_condition/languages/".e_LANGUAGE.".php");
  24  @include_once(e_THEME."human_condition/languages/English.php");
  25  
  26  // [theme]
  27  $themename = "human condition";
  28  $themeversion = "1.0";
  29  $themeauthor = "Steve Dunstan [jalist]";
  30  $themeemail = "jalist@e107.org";
  31  $themewebsite = "http://e107.org";
  32  $themedate = "19/01/2005";
  33  $themeinfo = "based on the Wordpress theme, <a href='http://wordpress.org'>http://wordpress.org</a>";
  34  define("STANDARDS_MODE", TRUE);
  35  $xhtmlcompliant = TRUE;
  36  $csscompliant = TRUE;
  37  define("IMODE", "lite");
  38  define("THEME_DISCLAIMER", "<br /><br /><i>".LAN_THEME_1."</i>");
  39  
  40  // [layout]
  41  
  42  $layout = "_default";
  43  
  44  $HEADER = "
  45  <div id='rap'>
  46  <h1 id='header'><a href='#' title='e107 v0.7'>".$pref['sitename']."</a></h1>
  47  <div class='post'>
  48  {SETSTYLE=post}
  49  ";
  50  
  51  
  52  $FOOTER = "
  53  {SETSTYLE=default}
  54  </div>
  55  <div id='menu'>
  56  {SITELINKS}
  57  {MENU=1}
  58  <br /><hr /><span class='smalltext'>{SITEDISCLAIMER}<br />{THEME_DISCLAIMER}</span>
  59  </div>
  60  </div>
  61  
  62  ";
  63  
  64  define("TP_commenticon", "<img src='".THEME_ABS."images/comment.png' alt='' style='vertical-align:middle;' />");
  65  
  66  $NEWSSTYLE = "
  67  <div class='textstyle4'>{STICKY_ICON}<b>{NEWSTITLE}</b></div>
  68  <div class='postinfo'>{NEWSCATEGORY}: {NEWSAUTHOR} @ {NEWSDATE}</div>
  69  <div class='textstyle3'>{NEWSBODY}</div>
  70  <div class='postinfo'>".TP_commenticon." {NEWSCOMMENTS}{TRACKBACK}</div>\n<br />\n";
  71  define("TRACKBACKSTRING", LAN_THEME_5);
  72  define("TRACKBACKBEFORESTRING", " | ");
  73  
  74  
  75  define("DATEHEADERCLASS", "button");
  76  //    define("DATEHEADERCLASS", "nextprev");    // uncomment this line for a different style of news date header
  77  
  78  define("ICONSTYLE", "float: left; border:0");
  79  define("COMMENTLINK", LAN_THEME_3);
  80  define("COMMENTOFFSTRING", LAN_THEME_2);
  81  
  82  define("PRE_EXTENDEDSTRING", "<br /><br />[ ");
  83  define("EXTENDEDSTRING", LAN_THEME_4);
  84  define("POST_EXTENDEDSTRING", " ]<br />");
  85  
  86  
  87  // [linkstyle]
  88  
  89  define(PRELINK, "");
  90  define(POSTLINK, "");
  91  define(LINKSTART, "<span><img src='".THEME_ABS."images/bullet2.gif' alt='bullet' /> ");
  92  define(LINKSTART_HILITE, "<span style='font-weight:bold'><img src='".THEME_ABS."images/bullet2.png' alt='bullet' /> ");
  93  define(LINKEND, "</span><br />");
  94  define(LINKDISPLAY, 2);                        // 1 - along top, 2 - in left or right column
  95  define(LINKALIGN, "left");
  96  
  97  
  98  //        [tablestyle]
  99  
 100  function tablestyle($caption, $text, $mode="")
 101  {
 102      global $style;
 103  
 104      if($style == "post")
 105      {
 106  
 107          if(!$caption)
 108          {
 109              echo "<div class='spacer'>$text</div>\n";
 110          }
 111          else if(!$text)
 112          {
 113              echo "<div class='spacer'><div class='date'>$caption</div></div>\n";
 114          }
 115          else
 116          {
 117              echo "<div class='spacer'><div class='date'>$caption</div>\n$text\n</div>\n";
 118          }
 119      }
 120      else
 121      {
 122          if(!$caption)
 123          {
 124              echo "<div class='spacer'>$text</div>\n";
 125          }
 126  
 127          else if(!$text)
 128          {
 129              echo "<div class='spacer'>$caption</div>\n";
 130          }
 131          else
 132          {
 133              echo "<div class='spacer'><div class='menubox'><b>$caption</b><br />$text</div></div>";
 134          }
 135      }
 136  }
 137  
 138  $COMMENTSTYLE = "
 139  <table style='width:100%'>
 140  <tr>
 141  <td colspan='2' class='forumheader3'>
 142  {SUBJECT}
 143  <b>
 144  {USERNAME}
 145  </b>
 146  |
 147  {TIMEDATE}
 148  </td>
 149  </tr>
 150  <tr>
 151  <td style='width:30%; vertical-align:top'>
 152  <div class='spacer'>
 153  {AVATAR}
 154  </div>
 155  <span class='smalltext'>
 156  {COMMENTS}
 157  <br />
 158  {JOINED}
 159  </span>
 160  <br/>
 161  {REPLY}
 162  </td>
 163  <td style='width:70%; vertical-align:top'>
 164  {COMMENT} {COMMENTEDIT}
 165  </td>
 166  </tr>
 167  </table>
 168  <br />";
 169  
 170  $POLLSTYLE = <<< EOF
 171  <b>Poll:</b> {QUESTION}
 172  <br /><br />
 173  {OPTIONS=<div class='alttd8'>OPTION</div>BAR<br /><span class='smalltext'>PERCENTAGE VOTES</span><br />\n}
 174  <br /><div style='text-align:center' class='smalltext'>{AUTHOR}<br />{VOTE_TOTAL} {COMMENTS}
 175  <br />
 176  {OLDPOLLS}
 177  </div>
 178  EOF;
 179  
 180  $CHATBOXSTYLE = "
 181  <img src='".THEME_ABS."images/bullet2.gif' alt='bullet' />
 182  <b>{USERNAME}</b><br />{TIMEDATE}
 183  <div class='smalltext'>
 184  {MESSAGE}
 185  </div>
 186  <br />";
 187  
 188  ?>


Généré le : Sun Apr 1 01:23:32 2007 par Balluche grâce à PHPXref 0.7