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


PHP ossn_view_menu函数代码示例

本文整理汇总了PHP中ossn_view_menu函数的典型用法代码示例。如果您正苦于以下问题:PHP ossn_view_menu函数的具体用法?PHP ossn_view_menu怎么用?PHP ossn_view_menu使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ossn_view_menu函数的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ossn_site_url

    <div class="ossn-footer-inner">
        <div class="ossn-footer-copyrights">
        &copy;  <a href="<?php 
echo ossn_site_url();
?>
"><?php 
echo $sitename;
?>
</a> 
		          <?php 
echo date('Y');
?>
 -
                  <a target="_blank" href="http://www.opensource-socialnetwork.org/"><?php 
echo ossn_print('powered');
?>
</a>        
        </div>
        <div class="ossn-footer-menu">
            <?php 
echo ossn_view_menu('footer');
?>
        </div>
    </div>
</div>
<?php 
echo ossn_fetch_extend_views('ossn/page/footer');
?>
</body>
</html>
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:30,代码来源:page.php

示例2: ossn_wall_post_menu

/**
 * View post menu
 *
 * @param string $hook Name of hook
 * @param string $type Hook type
 * @param string $return mixed data
 * @param array $params Arrays or Objects
 *
 * @return mixed data
 * @access private
 */
function ossn_wall_post_menu($hook, $type, $return, $params)
{
    if ($params['post']->poster_guid == ossn_loggedin_user()->guid || $params['post']->owner_guid == ossn_loggedin_user()->guid || ossn_isAdminLoggedin()) {
        $deleteurl = ossn_site_url("action/wall/post/delete?post={$params['post']->guid}", true);
        ossn_register_menu_link("delete", ossn_print('ossn:post:delete'), array('class' => 'ossn-wall-post-delete', 'href' => $deleteurl, 'data-guid' => $params['post']->guid), 'wallpost');
    } else {
        ossn_unregister_menu('delete', 'wallpost');
    }
    return ossn_view_menu('wallpost', 'wall/menus/post-controls');
}
开发者ID:sthefanysoares,项目名称:Social-Network,代码行数:21,代码来源:ossn_com.php

示例3: ossn_view_menu

    $type = 'annotation';
}
$likes_total = $OssnLikes->CountLikes($comment->id, $type);
$datalikes = '';
if ($likes_total > 0) {
    $datalikes = $likes_total;
    $likes_total = '<span class="dot-likes">.</span><div class="ossn-like-icon"></div>' . $likes_total;
}
?>
<div class="comments-item" id="comments-item-<?php 
echo $comment->id;
?>
">
    <div class="ossn-comment-menu" onclick="Ossn.CommentMenu(this);">
        <?php 
echo ossn_view_menu('comments', 'comments/menu/comments');
?>
    </div>
    <div class="poster-image">
        <img src="<?php 
echo $user->iconURL()->smaller;
?>
"/>
    </div>
    <div class="comment-text">
        <p>
            <?php 
echo ossn_plugin_view('output/url', array('href' => $user->profileURL(), 'text' => $user->fullname, 'class' => 'owner-link'));
if ($comment->type == 'comments:entity') {
    echo ' ' . $comment->getParam('comments:entity');
} elseif ($comment->type == 'comments:post') {
开发者ID:sthefanysoares,项目名称:Social-Network,代码行数:31,代码来源:comment.php

示例4: ossn_view_menu

       </script>   
    
</head>
<body>
   <div class="ossn-header">
      <div class="inner">
         <div class="logo-admin"></div>
      </div>
   </div>
 <?php 
if (ossn_isAdminLoggedin()) {
    ?>
  
   <div class="ossn-admin-topmenu">
     <?php 
    echo ossn_view_menu('topbar_admin');
    ?>
   </div>
 <?php 
}
?>
   <div class="ossn-admin-body">
   <?php 
echo $contents;
?>
   </div>
 <div class="ossn-admin-footer"> 
  <div class="copyrights">
  <?php 
echo ossn_print('copyright');
?>
开发者ID:c0d3r-Sunny,项目名称:ossnfacebook,代码行数:31,代码来源:administrator.php

示例5: ossn_group_url

?>

        <div class="header-bottom">
            <div class="group-name">
                <a href="<?php 
echo ossn_group_url($params['group']->guid);
?>
"><?php 
echo $params['group']->title;
?>
</a>
            </div>
            <div id="group-header-menu" class="group-header-menu">
                <ul>
                    <?php 
echo ossn_view_menu('groupheader');
?>
                </ul>
            </div>
            <div class="groups-buttons">
                <?php 
if ($params['group']->owner_guid !== ossn_loggedin_user()->guid) {
    if ($params['group']->isMember(NULL, ossn_loggedin_user()->guid)) {
        $ismember = 1;
        ?>
                        <a href="<?php 
        echo ossn_site_url("action/group/member/cancel?group={$params['group']->guid}", true);
        ?>
"
                           class='button-grey'>
                            <?php 
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:31,代码来源:profile.php

示例6: search_menu_handler

function search_menu_handler($hook, $type, $return)
{
    $return[] = ossn_view_menu('search');
    return $return;
}
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:5,代码来源:ossn_com.php

示例7: ossn_view_menu

    ?>
"/>

            <?php 
}
?>
        </div>
    </div>
    <?php 
if ($params['ismember'] === 1) {
    ?>
    <div class="comments-likes">
         <div class="menu-likes-comments-share">
	    	<div class="like_share comments-like-comment-links">
            	<?php 
    echo ossn_view_menu('postextra', 'wall/menus/postextra');
    ?>
            </div>
        </div>        
        <?php 
    if (ossn_is_hook('post', 'likes')) {
        echo ossn_call_hook('post', 'likes', $params['post']);
    }
    ?>
        <div class="comments-item" style="border-bottom:1px solid #ddd;">
            <?php 
    if (ossn_is_hook('post', 'comments')) {
        echo ossn_call_hook('post', 'comments', $params['post']);
    }
    ?>
        </div>
开发者ID:nongdanit-nongdanit,项目名称:ossn,代码行数:31,代码来源:item.php

示例8: ossn_print

        ?>
" id="profile-message"
                       data-guid='<?php 
        echo $user->guid;
        ?>
' class='button-grey'>
                        <?php 
        echo ossn_print('message');
        ?>
</a>
                    <a href="javascript::;" class='button-grey' id="profile-extra-menu">
                        <span>...</span>
                    </a>
                    <div class="ossn-profile-extra-menu">
                        <?php 
        echo ossn_view_menu('profile_extramenu', 'profile/menus/extra');
        ?>
                    </div>
                <?php 
    }
}
?>
        </div>
        <div id="cover-menu" class="profile-menu">
            <a href="javascript::;" onclick="Ossn.repositionCOVER();"
               class='button-grey'><?php 
echo ossn_print('save:position');
?>
</a>
        </div>
    </div>
开发者ID:emnaborgi,项目名称:RS,代码行数:31,代码来源:profile.php

示例9: ossn_site_url

				<span><a href="<?php 
echo ossn_site_url();
?>
"><?php 
echo ossn_site_settings('site_name');
?>
</a></span>
			</div>
			<div class="col-md-3 text-right right-side">
				<div class="topbar-menu-right">
					<li class="ossn-topbar-dropdown-menu">
						<div class="dropdown">
						<?php 
if (ossn_isLoggedin()) {
    echo ossn_plugin_view('output/url', array('role' => 'button', 'data-toggle' => 'dropdown', 'data-target' => '#', 'text' => '<i class="fa fa-sort-desc"></i>'));
    echo ossn_view_menu('topbar_dropdown');
}
?>
						</div>
					</li>                
					<?php 
if (ossn_isLoggedin()) {
    echo ossn_plugin_view('notifications/page/topbar');
}
?>
				</div>
			</div>
		</div>
	</div>
</div>
<!-- ./ ossn topbar -->
开发者ID:atlantidaformacion,项目名称:nestheme,代码行数:31,代码来源:topbar.php

示例10: ossn_trigger_callback

/**
 * Open Source Social Network
 *
 * @package   (Informatikon.com).ossn
 * @author    OSSN Core Team <info@opensource-socialnetwork.org>
 * @copyright 2014 iNFORMATIKON TECHNOLOGIES
 * @license   General Public Licence http://www.opensource-socialnetwork.org/licence
 * @link      http://www.opensource-socialnetwork.org/licence
 */
ossn_trigger_callback('entity', 'load:comment:share:like', $params);
?>
<div class="comments-likes ossn-photos-comments" style="width:525px;">
	<div class="menu-likes-comments-share">
	    	<div class="like_share comments-like-comment-links">
            	<?php 
echo ossn_view_menu('entityextra');
?>
            </div>
	</div>     
 	<?php 
if (ossn_is_hook('post', 'likes:entity')) {
    $entity['entity_guid'] = $params['entity']->guid;
    echo ossn_call_hook('post', 'likes:entity', $entity);
}
?>
    <?php 
if (ossn_is_hook('post', 'comments:entity')) {
    $entity['entity_guid'] = $params['entity']->guid;
    echo ossn_call_hook('post', 'comments:entity', $entity);
}
?>
开发者ID:emnaborgi,项目名称:RS,代码行数:31,代码来源:view.php

示例11: ossn_view_menu

    $type = 'annotation';
}
$likes_total = $OssnLikes->CountLikes($comment->id, $type);
$datalikes = '';
if ($likes_total > 0) {
    $datalikes = $likes_total;
    $likes_total = '<span class="dot-likes">.</span><div class="ossn-like-icon"></div>' . $likes_total;
}
?>
<div class="comments-item" id="comments-item-<?php 
echo $comment->id;
?>
">
    <div class="ossn-comment-menu" onclick="Ossn.CommentMenu(this);">
        <?php 
echo ossn_view_menu('comments', 'components/OssnComments/menu/comments');
?>
    </div>
    <div class="poster-image">
        <img src="<?php 
echo $user->iconURL()->smaller;
?>
"/>
    </div>
    <div class="comment-text">
        <p>
            <?php 
echo ossn_view_template('output/url', array('href' => $user->profileURL(), 'text' => $user->fullname, 'class' => 'owner-link'));
if ($comment->type == 'comments:entity') {
    echo ' ' . $comment->getParam('comments:entity');
} elseif ($comment->type == 'comments:post') {
开发者ID:aidovoga,项目名称:opensource-socialnetwork,代码行数:31,代码来源:comment.php


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