Пример #1
0
 public function eventRmcommonLoadRightWidgets($widgets)
 {
     global $xoopsModule;
     if (!isset($xoopsModule) || $xoopsModule->getVar('dirname') != 'system' && $xoopsModule->getVar('dirname') != 'mywords') {
         return $widgets;
     }
     if (defined("RMCSUBLOCATION") && RMCSUBLOCATION == 'new_post') {
         include_once '../widgets/widget_publish.php';
         $widgets[] = mw_widget_publish();
         include_once '../widgets/widget_image.php';
         $widgets[] = mw_widget_image();
         include_once '../widgets/widget_categories.php';
         $widgets[] = mw_widget_categories();
         include_once '../widgets/widget_tags.php';
         $widgets[] = mw_widget_addtags();
     }
     return $widgets;
 }
?>
			<tr><th><?php 
echo $w['title'];
?>
</th></tr>
			<tr><td><?php 
echo $w['content'];
?>
</td></tr>
			</table>
		</td>
		<td style="padding: 0 0 0 4px;">
			<table class="outer" cellspacing="0">
			<?php 
include 'widgets/widget_categories.php';
$w = mw_widget_categories();
?>
			<tr><th><?php 
echo $w['title'];
?>
</th></tr>
			<tr><td><?php 
echo $w['content'];
?>
</td></tr>
			</table>
		</td>
	</tr>
</table>
<?php 
if ($edit && $post->getVar('toping')) {