当前位置: 首页>>代码示例>>PHP>>正文


PHP Messages::create_menu方法代码示例

本文整理汇总了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;
	}
开发者ID:jmelton,项目名称:eb,代码行数:25,代码来源:mod.member.php

示例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();
开发者ID:jlleblanc,项目名称:ConnectBoom,代码行数:67,代码来源:cp.myaccount.php


注:本文中的Messages::create_menu方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。