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


PHP Gdn_Theme::bulletItem方法代码示例

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


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

示例1: base_afterReactions_handler

 /**
  * Add 'Facebook' option to the row.
  */
 public function base_afterReactions_handler($Sender, $Args)
 {
     if (!$this->socialReactions()) {
         return;
     }
     echo Gdn_Theme::bulletItem('Share');
     $this->addReactButton($Sender, $Args);
 }
开发者ID:caidongyun,项目名称:vanilla,代码行数:11,代码来源:class.facebook.plugin.php

示例2: writeReactions

 function writeReactions($Row)
 {
     $Attributes = GetValue('Attributes', $Row);
     if (is_string($Attributes)) {
         $Attributes = @unserialize($Attributes);
         SetValue('Attributes', $Row, $Attributes);
     }
     Gdn::controller()->EventArguments['ReactionTypes'] = array();
     if ($ID = GetValue('CommentID', $Row)) {
         $RecordType = 'comment';
     } elseif ($ID = GetValue('ActivityID', $Row)) {
         $RecordType = 'activity';
     } else {
         $RecordType = 'discussion';
         $ID = GetValue('DiscussionID', $Row);
     }
     Gdn::controller()->EventArguments['RecordType'] = $RecordType;
     Gdn::controller()->EventArguments['RecordID'] = $ID;
     echo '<div class="Reactions">';
     Gdn_Theme::bulletRow();
     // Write the flags.
     static $Flags = null;
     if ($Flags === null) {
         Gdn::controller()->EventArguments['Flags'] =& $Flags;
         Gdn::controller()->fireEvent('Flags');
     }
     // Allow addons to work with flags
     Gdn::controller()->EventArguments['Flags'] =& $Flags;
     Gdn::controller()->fireEvent('BeforeFlag');
     if (!empty($Flags) && is_array($Flags)) {
         echo Gdn_Theme::bulletItem('Flags');
         echo ' <span class="FlagMenu ToggleFlyout">';
         // Write the handle.
         echo anchor(sprite('ReactFlag', 'ReactSprite') . ' ' . wrap(t('Flag'), 'span', array('class' => 'ReactLabel')), '', 'Hijack ReactButton-Flag FlyoutButton', array('title' => t('Flag')), true);
         echo sprite('SpFlyoutHandle', 'Arrow');
         echo '<ul class="Flyout MenuItems Flags" style="display: none;">';
         foreach ($Flags as $Flag) {
             if (is_callable($Flag)) {
                 echo '<li>' . call_user_func($Flag, $Row, $RecordType, $ID) . '</li>';
             } else {
                 echo '<li>' . reactionButton($Row, $Flag['UrlCode']) . '</li>';
             }
         }
         Gdn::controller()->fireEvent('AfterFlagOptions');
         echo '</ul>';
         echo '</span> ';
     }
     Gdn::controller()->fireEvent('AfterFlag');
     Gdn::controller()->fireEvent('AfterReactions');
     echo '</div>';
     Gdn::controller()->fireEvent('Replies');
 }
开发者ID:mcnasby,项目名称:datto-vanilla,代码行数:52,代码来源:functions.render.php

示例3: base_AfterReactions_handler

 /**
  * Add 'Google+' option to the row.
  */
 public function base_AfterReactions_handler($Sender, $Args)
 {
     if (!$this->socialReactions()) {
         return;
     }
     echo Gdn_Theme::bulletItem('Share');
     //      if ($this->AccessToken()) {
     //         $Url = url("post/twitter/{$Args['RecordType']}?id={$Args['RecordID']}", true);
     //         $CssClass = 'ReactButton Hijack';
     //      } else {
     $Url = url("post/googleplus/{$Args['RecordType']}?id={$Args['RecordID']}", true);
     $CssClass = 'ReactButton PopupWindow';
     //      }
     echo ' ' . anchor(sprite('ReactGooglePlus', 'ReactSprite', t('Share on Google+')), $Url, $CssClass) . ' ';
 }
开发者ID:vanilla,项目名称:vanilla,代码行数:18,代码来源:class.googleplus.plugin.php


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