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


PHP pathang::display方法代码示例

本文整理汇总了PHP中pathang::display方法的典型用法代码示例。如果您正苦于以下问题:PHP pathang::display方法的具体用法?PHP pathang::display怎么用?PHP pathang::display使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pathang的用法示例。


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

示例1: main

 public function main()
 {
     $tmpl = pathang::getInstance('packet')->get('tmpl');
     if ($tmpl) {
         pathang::display($tmpl);
     }
 }
开发者ID:adrixnac,项目名称:RedSocial,代码行数:7,代码来源:ads.php

示例2: main

 public function main()
 {
     //openmenu based on page either 'feed','admin' or 'mainpage'
     $page = strtoupper(pathang::getInstance('node')->get('n1'));
     if ($page === 'FEED' || $page === 'ADMIN') {
         pathang::display(strtolower($page));
     } else {
         pathang::display();
     }
 }
开发者ID:gibranda,项目名称:Feedstack,代码行数:10,代码来源:sidemenu.php

示例3: main

 public function main()
 {
     //$username = pathang::getInstance('node')->get('n1');
     //$uid = pathang::getModel('userlog')->getUserId($username);
     pathang::GetInstance('request')->set('snippet', 1);
     $popular = pathang::getController('profile')->popular();
     $count = 0;
     pathang::GetInstance('packet')->Set('popular', $popular);
     pathang::GetInstance('packet')->Set('count', $count);
     pathang::display();
 }
开发者ID:adrixnac,项目名称:RedSocial,代码行数:11,代码来源:popular.php

示例4: main

 public function main()
 {
     $username = pathang::getInstance('node')->get('n1');
     $uid = pathang::getModel('userlog')->getUserId($username);
     pathang::GetInstance('request')->set('snippet', 1);
     $following = pathang::getController('profile')->following();
     $count = pathang::getModel('profile')->followingCount($uid);
     pathang::GetInstance('packet')->Set('following', $following);
     pathang::GetInstance('packet')->Set('count', $count);
     pathang::display();
 }
开发者ID:adrixnac,项目名称:RedSocial,代码行数:11,代码来源:following.php

示例5: main

 public function main()
 {
     //display menu as user/guest or admin
     $n1 = pathang::getInstance('node')->get('n1');
     $session = pathang::getInstance('session');
     $liveuser = $session->get('liveuser');
     if ($liveuser) {
         $uid = $liveuser->id;
         $unread = pathang::GetModel('profile')->getUnreadNotificationCount($uid);
         pathang::getInstance('packet')->set('unread', $unread);
         if ($liveuser->type == 1) {
             pathang::display();
         } else {
             pathang::display('admin');
         }
     } else {
         pathang::display('guest');
     }
 }
开发者ID:adrixnac,项目名称:RedSocial,代码行数:19,代码来源:menu.php

示例6: main

 public function main()
 {
     // get request object
     $request = pathang::GetInstance('request');
     // set the snippet,limit and unread varaibles
     $request->Set('snippet', 'one');
     $request->set('limit', 3);
     $request->set('unread', true);
     // if user exists then only display
     if (isset(pathang::GetInstance('session')->get('liveuser')->username)) {
         $liveuser = pathang::GetInstance('session')->get('liveuser')->username;
         $user = pathang::GetInstance('node')->get('n1');
         //if the user is liveuser then display
         if ($user == $liveuser) {
             //get notification and counter
             $notify = pathang::getController('profile')->notifications()->messages;
             $count = pathang::getController('profile')->notifications()->unread;
             pathang::GetInstance('packet')->set('notify', $notify);
             pathang::GetInstance('packet')->set('count', $count);
             pathang::display();
         }
     }
 }
开发者ID:gibranda,项目名称:Feedstack,代码行数:23,代码来源:notifications.php

示例7: main

 public function main()
 {
     pathang::display();
 }
开发者ID:adrixnac,项目名称:RedSocial,代码行数:4,代码来源:login.php


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