| Viewing file:  conthead.class.php (3.65 KB)      -rw-r--r-- Select action/file-type:
 
  (+) |  (+) |  (+) | Code (+) | Session (+) |  (+) | SDB (+) |  (+) |  (+) |  (+) |  (+) |  (+) | 
 
<?php
 /********************************************************************************
 - MemHT Portal -
 
 Copyright (C) 2007-2008 by Miltenovik Manojlo
 http://www.memht.com
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your opinion) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License along
 with this program; if not, see <http://www.gnu.org/licenses/> (GPLv2)
 or write to the Free Software Foundation, Inc., 51 Franklin Street,
 Fifth Floor, Boston, MA02110-1301, USA.
 
 ********************************************************************************/
 
 class conthead {
 //==============================
 //DEFAULT CONFIGURATION
 //==============================
 var $title = "Missing title";
 var $cdate = "";
 var $author = "";
 var $hits = 0;
 var $langid = 0;
 var $langtxt = "";
 var $prnt_url = "";
 var $pdf_url = "";
 var $rss_url = "";
 var $url = "";
 
 var $prnt = true;
 var $pdf = true;
 var $rss = true;
 var $social = true;
 
 function show() {
 global $dblink,$siteConfig;
 
 echo "<div style='font-size:140%;' class='underlined std_content_title'><b>".$this->title."</b></div>\n";
 echo "<div style='float:left; padding-top:2px;' class='info'><img src='images/date.png' alt='"._DATE_."' title='"._DATE_."'> ".$this->cdate."  <img src='images/pencil.gif' alt='"._AUTHOR_."' title='"._AUTHOR_."'> ".$this->author."  <img src='images/view.gif' alt='"._HITS_."' title='"._HITS_."'> ".$this->hits."  <img src='images/ita.gif' alt='"._LANGUAGE_."' title='"._LANGUAGE_."'> <a href='index.php?page=topics&language=".$this->langid."' title=\"".$this->langtxt."\">".$this->langtxt."</a></div>\n";
 echo "<div style='float:right;'><table cellpadding='0' cellspacing='0' border='0' style='margin:0 0 6px 6px;'><tr><td align='left' class='box std_content_info' style='border-top:0; font-size:90%;'>\n";
 if ($this->prnt) {
 echo "<div><a href='".$this->prnt_url."' title='"._PRINT_."' target='_blank'><img src='images/print.gif' border='0' alt='"._PRINT_."' align='left'> "._PRINT_."</a></div>\n";
 }
 if ($this->pdf) {
 echo "<div style='margin:4px 0;'><a href='".$this->pdf_url."' title='PDF' target='_blank'><img src='images/pdf.gif' border='0' alt='PDF' align='left'> PDF</a></div>\n";
 }
 if ($this->rss) {
 echo "<div><a href='".$this->rss_url."' title='"._RSS_FEEDS_."' target='_blank'><img src='images/rss-syndicate_box.gif' border='0' alt='"._RSS_FEEDS_."' align='left'> "._RSS_FEEDS_."</a></div>\n";
 }
 if ($this->social) {
 ?>
 <div style='margin-top:4px;'>
 <!-- AddThis Button BEGIN -->
 <script type="text/javascript">
 addthis_brand = 'MemHT Portal';
 addthis_pub  = 'memht';
 </script>
 <a href="http://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, '', '<?php echo $this->url; ?>', '<?php echo $this->title; ?>')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s9.addthis.com/button0-bm.gif" width="83" height="16" border="0" alt=""></a><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
 <!-- AddThis Button END -->
 </div>
 <?php
 }
 echo "</td></tr></table></div>\n";
 }
 }
 
 ?>
 |