стоит руня 1.4 поставил себе тему pablo.
Меня нет пункта function theme_post
вот мой theme.php
PHP код:
<?php
define("XOOPS_THEME","pablo");
//***********************************************************/
//* RUNCMS */
//* Simplicity & ease off use */
//* < http://www.runcms.org > */
//***********************************************************/
//* design jiije (juillet 2006) */
//* license gnu-gpl */
//***********************************************************/
function theme_waitbox() {
?>
<table class="waitbox" summary="">
<tr>
<td align="center"><b><big><?php echo
_TH_LOADING;?></big></b><br />
<img src="<?php echo XOOPS_URL."/themes/".XOOPS_THEME;?>/images/await.gif" alt="" />
<br /><?php echo _TH_PLEASEWAIT;?></td></tr>
</table>
<?php
}
function themeheader($show_rblock){
global $xoopsConfig, $xoopsUser;
$username = "";
if ( $xoopsUser ){
$username = $xoopsUser->uname();
}
?>
<!-- Nifty Corners: Javascript CSS rounded corners -->
<script type="text/javascript" src="nifty.js"></script>
<script type="text/javascript">
window.onload=function(){
if(!NiftyCheck())
return;
Rounded("div#nifty","#377CB1","#9BD1FA");
}
</script>
<!-- fin Nifty Corners: Javascript CSS rounded corners -->
</head>
<body>
<!-- class pagewidth qui dйtermine la largeur du site et le fond -->
<div class="pagewidth" >
<!-- class pagewidth qui dйtermine les coins arrondis haut -->
<div class="top_left"></div>
<div class="top_right"></div>
<!-- class pagewidth qui englobe le contenu du site -->
<div class="content">
<?php
OpenWaitBox(); ?>
<div class="header"> </div>
<!-- start menu -->
<div id="navcontainer">
<ul id="navlist">
<li id="active"><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK0;?>" id="current"><?php echo _TH_LINKN0;?></a></li>
<li><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK1;?>"><?php echo _TH_LINKN1;?></a></li>
<li><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK2;?>"><?php echo _TH_LINKN2;?></a></li>
<li ><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK3;?>"><?php echo _TH_LINKN3;?></a></li>
<li><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK4;?>"><?php echo _TH_LINKN4;?></a></li>
<li><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK5;?>"><?php echo _TH_LINKN5;?></a></li>
<li><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK6;?>"><?php echo _TH_LINKN6;?></a></li>
<li><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK7;?>"><?php echo _TH_LINKN7;?></a></li>
<li><a href="<?php echo XOOPS_URL;?><?php echo _TH_LINK8;?>"><?php echo _TH_LINKN8;?></a></li>
</ul>
</div>
<!-- end menu -->
<div class="pagewidth2">
<div class="top_left2"></div>
<div class="top_right2"></div>
</div>
<table cellspacing="0" cellpadding="0" summary="">
<tr>
<td id="leftcol" >
<?php make_sidebar("left"); ?>
</td>
<td id="maincol"><?php showbanner();?>
<?php
}
function themefooter($show_rblock, $footer) {
global $xoopsConfig;
if ( $show_rblock ) {
?>
</td>
<td id="rightcol">
<?php
make_sidebar("right");
?>
<?php
}
?>
</td>
</tr>
</table>
<table class="footer">
<tr><td class="footer-text" ><?php echo $footer; ?>
</td>
</tr>
<tr><td class="footer-text"> <a href="http://http://10.12.2.125"> theme design:by Senja </a>
</td>
</tr></table>
</div>
<!-- fin class pagewidth quienglobe le contenu -->
<div class="bottom_left"></div>
<div class="bottom_right"></div>
<!-- fin class pagewidth qui dйtermine les coins arrondis bas -->
</div>
<!-- fin class pagewidth -->
<?php
CloseWaitBox();
}
function OpenTable($width="99%") {
echo "<table width='".$width."' border='0' cellspacing='0' cellpadding='0' summary=''>
<tr>
<td class = 'optable' >\n";
}
function CloseTable() {
echo "</td>
</tr>
</table>\n";
}
function themesidebox_left($title, $content) {
global $xoopsConfig;
?>
<table class="block_content-left">
<tr>
<td class="block_title-left"><?php echo $title; ?></td>
</tr>
<tr>
<td class="block_content">
<div class="usermenu"><?php echo $content; ?></div>
</td>
</tr>
</table>
<br />
<?php
}
function themesidebox_right($title, $content) {
global $xoopsConfig;
?>
<table class="boxContent-right" >
<tr>
<td class="block_title-right"><?php echo $title; ?></td>
</tr>
<tr>
<td class="block_content">
<?php echo $content; ?>
</td>
</tr>
</table>
<br />
<?php
}
function themecenterbox_center($title, $content) {
?>
<table class="block_content-center">
<tr>
<td class="block_title-center" ><?php echo $title; ?></td>
</tr>
<tr>
<td class="block_content-texte">
<?php echo $content; ?>
</td>
</tr>
</table>
<br />
<?php
}
function themecenterbox_left($title, $content) {
?>
<table class="block_content-center">
<tr>
<td class="block_title-center" ><?php echo $title; ?></td>
</tr>
<tr>
<td class="block_content-texte">
<?php echo $content; ?>
</td>
</tr>
</table>
<br />
<?php
}
function themecenterbox_right($title, $content) {
?>
<table class="block_content-center" >
<tr>
<td class="block_title-center" ><?php echo $title; ?></td>
</tr>
<tr>
<td class="block_content-texte">
<?php echo $content; ?>
</td>
</tr>
</table>
<br />
<?php
}
function themenews ($poster, $time, $title, $counter, $thetext, $timglink, $adminlink, $morelink="") {
global $xoopsConfig;
?>
<table class="boxContent-news">
<tr>
<td class="block_title-news" ><?php echo $title; ?></td>
</tr>
<tr>
<td >
<div class="postedby"> <?php echo _TH_POSTEDBY." <b>$poster</b> ". _TH_ON ." $time ($counter ". _TH_READS ." )" ; ?> </div>
<div class="block_content-news"><?php echo "$timglink $thetext"; ?></div>
<div class="morelink" >
<?php
echo "$adminlink";
if ($morelink != "" ) {
echo $morelink;
} ?> </div>
</td>
</tr>
</table>
<br />
<?php
}
function themecenterposts($title, $content) { ?>
<br />
<br />
<table>
<tr>
<td class="block_title-morenews" ><?php echo $title; ?></td>
</tr>
<tr>
<td class="block_content">
<?php echo $content; ?>
</td>
</tr>
</table>
<?php
}
?>