本文整理汇总了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) {
示例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) {