本文整理汇总了PHP中Messages::create_menu方法的典型用法代码示例。如果您正苦于以下问题:PHP Messages::create_menu方法的具体用法?PHP Messages::create_menu怎么用?PHP Messages::create_menu使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Messages
的用法示例。
在下文中一共展示了Messages::create_menu方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
/** ----------------------------------------
/** Private Messages - Menu
/** ----------------------------------------*/
function pm_menu()
{
global $SESS;
if (($SESS->userdata['can_send_private_messages'] != 'y' && $SESS->userdata['group_id'] != '1') OR $SESS->userdata['accept_messages'] != 'y')
{
return;
}
if ( ! class_exists('Messages'))
{
require PATH_CORE.'core.messages'.EXT;
}
$MESS = new Messages;
$MESS->base_url = $this->_member_path('messages');
$MESS->allegiance = 'user';
$MESS->theme_class = $this->theme_class;
$MESS->create_menu();
return $MESS->menu;
}
示例2: array
//.........这里部分代码省略.........
$DSP->body .= $DSP->div_c();
$DSP->body .= $DSP->div_c();
$sub_state = (in_array($IN->GBL('M'), array('subscriptions')) or in_array($IN->GBL('M'), array('ignore_list'))) ? TRUE : FALSE;
$DSP->body .= '<div id="menu_sub_h" style="display: ' . ($sub_state == TRUE ? 'none' : 'block') . '; padding:0; margin: 0;">';
$js = ' onclick="showhide_menu(\'menu_sub\');return false;" onmouseover="navTabOn(\'sub\', \'tableHeadingAlt\', \'tableHeadingAltHover\');" onmouseout="navTabOff(\'sub\', \'tableHeadingAlt\', \'tableHeadingAltHover\');" ';
$DSP->body .= $DSP->div();
$DSP->body .= "<div class='tableHeadingAlt' id='sub' " . $js . ">";
$DSP->body .= $expand . $LANG->line('utilities');
$DSP->body .= $DSP->div_c();
$DSP->body .= $DSP->div_c();
$DSP->body .= $DSP->div_c();
$DSP->body .= '<div id="menu_sub_b" style="display: ' . ($sub_state == TRUE ? 'block' : 'none') . '; padding:0; margin: 0;">';
$js = ' onclick="showhide_menu(\'menu_sub\');return false;" onmouseover="navTabOn(\'sub2\', \'tableHeadingAlt\', \'tableHeadingAltHover\');" onmouseout="navTabOff(\'sub2\', \'tableHeadingAlt\', \'tableHeadingAltHover\');" ';
$DSP->body .= $DSP->div();
$DSP->body .= "<div class='tableHeadingAlt' id='sub2' " . $js . ">";
$DSP->body .= $collapse . $LANG->line('utilities');
$DSP->body .= $DSP->div_c();
$DSP->body .= $DSP->div('profileMenuInner');
$DSP->body .= $this->nav('subscriptions' . AMP . 'id=' . $id, 'edit_subscriptions');
$DSP->body .= $DSP->div_c();
$DSP->body .= $DSP->div('profileMenuInner');
$DSP->body .= $this->nav('ignore_list' . AMP . 'id=' . $id, 'ignore_list');
$DSP->body .= $DSP->div_c();
$DSP->body .= $DSP->div_c();
$DSP->body .= $DSP->div_c();
/** ---------------------------------
/** Private Messaging
/** ---------------------------------*/
if ($id == $SESS->userdata['member_id']) {
if (!class_exists('Messages')) {
require PATH_CORE . 'core.messages' . EXT;
}
$MESS = new Messages();
$MESS->create_menu();
$DSP->body .= $MESS->menu;
}
$cp_state = in_array($IN->GBL('M'), array('homepage', 'set_homepage_order', 'theme', 'tab_manager')) ? TRUE : FALSE;
$DSP->body .= '<div id="menu_cp_h" style="display: ' . ($cp_state == TRUE ? 'none' : 'block') . '; padding:0; margin: 0;">';
$js = ' onclick="showhide_menu(\'menu_cp\');return false;" onmouseover="navTabOn(\'mcp\', \'tableHeadingAlt\', \'tableHeadingAltHover\');" onmouseout="navTabOff(\'mcp\', \'tableHeadingAlt\', \'tableHeadingAltHover\');" ';
$DSP->body .= $DSP->div();
$DSP->body .= "<div class='tableHeadingAlt' id='mcp' " . $js . ">";
$DSP->body .= $expand . $LANG->line('customize_cp');
$DSP->body .= $DSP->div_c();
$DSP->body .= $DSP->div_c();
$DSP->body .= $DSP->div_c();
$DSP->body .= '<div id="menu_cp_b" style="display: ' . ($cp_state == TRUE ? 'block' : 'none') . '; padding:0; margin: 0;">';
$js = ' onclick="showhide_menu(\'menu_cp\');return false;" onmouseover="navTabOn(\'mcp2\', \'tableHeadingAlt\', \'tableHeadingAltHover\');" onmouseout="navTabOff(\'mcp2\', \'tableHeadingAlt\', \'tableHeadingAltHover\');" ';
$DSP->body .= $DSP->div();
$DSP->body .= "<div class='tableHeadingAlt' id='mcp2' " . $js . ">";
$DSP->body .= $collapse . $LANG->line('customize_cp');
$DSP->body .= $DSP->div_c();
$DSP->body .= $DSP->div('profileMenuInner');
$DSP->body .= $this->nav('homepage' . AMP . 'id=' . $id, 'cp_homepage');
$DSP->body .= $this->nav('theme' . AMP . 'id=' . $id, 'cp_theme');
$DSP->body .= $this->nav('tab_manager' . AMP . 'id=' . $id, 'tab_manager');
$DSP->body .= $DSP->div_c();
$DSP->body .= $DSP->div_c();
$DSP->body .= $DSP->div_c();
if ($DSP->allowed_group('can_access_publish') and count($FNS->fetch_assigned_weblogs()) > 0) {
$blog_state = in_array($IN->GBL('M'), array('pingservers', 'htmlbuttons', 'bookmarklet', 'bookmarklet_fields', 'create_bookmarklet')) ? TRUE : FALSE;
$DSP->body .= '<div id="menu_blog_h" style="display: ' . ($blog_state == TRUE ? 'none' : 'block') . '; padding:0; margin: 0;">';
$js = ' onclick="showhide_menu(\'menu_blog\');return false;" onmouseover="navTabOn(\'blog\', \'tableHeadingAlt\', \'tableHeadingAltHover\');" onmouseout="navTabOff(\'blog\', \'tableHeadingAlt\', \'tableHeadingAltHover\');" ';
$DSP->body .= $DSP->div();
$DSP->body .= "<div class='tableHeadingAlt' id='blog' " . $js . ">";
$DSP->body .= $expand . $LANG->line('weblog_preferences');
$DSP->body .= $DSP->div_c();