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


PHP Images::list_by_date_for_anchor方法代码示例

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


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

示例1: array_merge

 if (is_object($overlay) && ($more_tabs = $overlay->get_tabs('edit', $item))) {
     $panels = array_merge($panels, $more_tabs);
 }
 //
 // resources tab
 //
 $text = '';
 // resources attached to this anchor, but not on page creation
 if (isset($item['id'])) {
     // images
     $box = '';
     if ($cur_article->allows('creation', 'image')) {
         $menu = array('images/edit.php?anchor=' . urlencode('article:' . $item['id']) => i18n::s('Add an image'));
         $box .= Skin::build_list($menu, 'menu_bar');
     }
     if ($items = Images::list_by_date_for_anchor('article:' . $item['id'])) {
         $box .= Skin::build_list($items, 'decorated');
     }
     if ($box) {
         $text .= Skin::build_box(i18n::s('Images'), $box, 'folded');
     }
     // files
     $box = '';
     if ($cur_article->allows('creation', 'file')) {
         $menu = array('files/edit.php?anchor=' . urlencode('article:' . $item['id']) => i18n::s('Add a file'));
         $box .= Skin::build_list($menu, 'menu_bar');
     }
     if ($items = Files::list_embeddable_for_anchor('article:' . $item['id'], 0, 50)) {
         $box .= Skin::build_list($items, 'decorated');
     }
     if ($box) {
开发者ID:rair,项目名称:yacs,代码行数:31,代码来源:edit_as_thread.php

示例2: array

 }
 //
 // resources tab
 //
 $text = '';
 // splash message for new items
 if (!isset($item['id'])) {
     $text .= '<p>' . i18n::s('Submit the new item, and you will be able to add resources afterwards.') . '</p>';
 } else {
     // images
     $box = '';
     if (Images::allow_creation($item, $anchor, 'section')) {
         $menu = array('images/edit.php?anchor=' . urlencode('section:' . $item['id']) => i18n::s('Add an image'));
         $box .= Skin::build_list($menu, 'menu_bar');
     }
     if ($items = Images::list_by_date_for_anchor('section:' . $item['id'])) {
         $box .= Skin::build_list($items, 'decorated');
     }
     if ($box) {
         $text .= Skin::build_box(i18n::s('Images'), $box, 'folded');
     }
     // files
     $box = '';
     if (Files::allow_creation($item, $anchor, 'section')) {
         $menu = array('files/edit.php?anchor=' . urlencode('section:' . $item['id']) => i18n::s('Add a file'));
         $box .= Skin::build_list($menu, 'menu_bar');
     }
     if ($items = Files::list_embeddable_for_anchor('section:' . $item['id'], 0, 50)) {
         $box .= Skin::build_list($items, 'decorated');
     }
     if ($box) {
开发者ID:rair,项目名称:yacs,代码行数:31,代码来源:edit.php


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