• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP file_get_type_cloud函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: elgg_get_page_owner_entity

<?php

/**
 * Friends Files
 *
 * @package ElggFile
 */
$owner = elgg_get_page_owner_entity();
if (!$owner) {
    forward('', '404');
}
elgg_push_breadcrumb(elgg_echo('file'), "file/all");
elgg_push_breadcrumb($owner->name, "file/owner/{$owner->username}");
elgg_push_breadcrumb(elgg_echo('friends'));
elgg_register_title_button('file', 'add', 'object', 'file');
$title = elgg_echo("file:friends");
$content = elgg_list_entities_from_relationship(array('type' => 'object', 'subtype' => 'file', 'full_view' => false, 'relationship' => 'friend', 'relationship_guid' => $owner->guid, 'relationship_join_on' => 'owner_guid', 'no_results' => elgg_echo("file:none"), 'preload_owners' => true, 'preload_containers' => true));
$sidebar = file_get_type_cloud($owner->guid, true);
$body = elgg_view_layout('content', array('filter_context' => 'friends', 'content' => $content, 'title' => $title, 'sidebar' => $sidebar));
echo elgg_view_page($title, $body);
开发者ID:elgg,项目名称:elgg,代码行数:20,代码来源:friends.php


示例2: elgg_push_breadcrumb

}
elgg_push_breadcrumb(elgg_echo('file'), "file/all");
elgg_push_breadcrumb($owner->name);
elgg_register_title_button();
$params = array();
if ($owner->guid == elgg_get_logged_in_user_guid()) {
    // user looking at own files
    $params['filter_context'] = 'mine';
} else {
    if (elgg_instanceof($owner, 'user')) {
        // someone else's files
        // do not show select a tab when viewing someone else's posts
        $params['filter_context'] = 'none';
    } else {
        // group files
        $params['filter'] = '';
    }
}
$title = elgg_echo("file:user", array($owner->name));
// List files
$content = elgg_list_entities(array('type' => 'object', 'subtype' => 'file', 'container_guid' => $owner->guid, 'limit' => 10, 'full_view' => FALSE));
if (!$content) {
    $content = elgg_echo("file:none");
}
$sidebar = file_get_type_cloud(elgg_get_page_owner_guid());
$sidebar = elgg_view('file/sidebar');
$params['content'] = $content;
$params['title'] = $title;
$params['sidebar'] = $sidebar;
$body = elgg_view_layout('content', $params);
echo elgg_view_page($title, $body);
开发者ID:duanhv,项目名称:mdg-social,代码行数:31,代码来源:owner.php


示例3: get_filetype_cloud

function get_filetype_cloud($owner_guid = "", $friends = false)
{
    elgg_deprecated_notice('Use file_get_type_cloud instead of get_filetype_cloud', 1.8);
    return file_get_type_cloud($owner_guid, $friends);
}
开发者ID:nogsus,项目名称:Elgg,代码行数:5,代码来源:start.php


示例4: elgg_push_breadcrumb

<?php

/**
 * All files
 *
 * @package ElggFile
 */
elgg_push_breadcrumb(elgg_echo('file'));
elgg_register_title_button();
$title = elgg_echo('file:all');
$content = elgg_list_entities(array('type' => 'object', 'subtype' => 'file', 'full_view' => false, 'no_results' => elgg_echo("file:none"), 'preload_owners' => true, 'preload_containers' => true, 'distinct' => false));
$sidebar = file_get_type_cloud();
$sidebar .= elgg_view('file/sidebar');
$body = elgg_view_layout('content', array('filter_context' => 'all', 'content' => $content, 'title' => $title, 'sidebar' => $sidebar));
echo elgg_view_page($title, $body);
开发者ID:ibou77,项目名称:elgg,代码行数:15,代码来源:world.php


示例5: elgg_push_breadcrumb

}
if ($file_type) {
    elgg_push_breadcrumb(elgg_echo("file:type:{$file_type}"));
} else {
    elgg_push_breadcrumb(elgg_echo('all'));
}
// title
if (!$owner) {
    // world files
    $title = elgg_echo('all') . ' ' . elgg_echo("file:type:{$file_type}");
} else {
    $friend_string = $friends ? elgg_echo('file:title:friends') : '';
    $type_string = elgg_echo("file:type:{$file_type}");
    $title = elgg_echo('file:list:title', array($owner->name, $friend_string, $type_string));
}
$sidebar = file_get_type_cloud($page_owner_guid, $friends);
$limit = elgg_get_config('default_limit');
if ($listtype == "gallery") {
    $limit = 12;
}
$params = array('type' => 'object', 'subtype' => 'file', 'limit' => $limit, 'full_view' => false, 'preload_owners' => true);
if ($owner instanceof ElggUser) {
    if ($friends) {
        $params['relationship'] = 'friend';
        $params['relationship_guid'] = $user->guid;
        $params['relationship_join_on'] = 'owner_guid';
    } else {
        $params['owner_guid'] = $page_owner_guid;
    }
} else {
    $params['container_guid'] = $page_owner_guid;
开发者ID:elgg,项目名称:elgg,代码行数:31,代码来源:search.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP file_get_typegroup函数代码示例发布时间:2022-05-15
下一篇:
PHP file_get_submitted_draft_itemid函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap