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


PHP elgg_unextend_view函数代码示例

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


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

示例1: au_staff_options

function au_staff_options($pageowner)
{
    $user = elgg_get_logged_in_user_entity();
    $group = elgg_get_page_owner_entity();
    if (elgg_instanceof($group, 'group')) {
        //check group attributes - ignore if au staff
        if ($group->staff_only_enable == 'yes') {
            elgg_extend_view('group/default', 'groups/sidebar/staff_only', 502);
            //do stuff if this is a staff-only group
            //system_message("AU staff-only group: only AU staff members can join this group");
            if (elgg_is_logged_in()) {
                $invited = check_entity_relationship($group->getGUID(), "invited", $user->getGUID());
                //allow invited users in
                if (is_au_staff_member($user) || elgg_is_admin_logged_in() || $group->canEdit() || $invited) {
                    //do other stuff - welcome here
                } else {
                    //remove buttons for non staff members who are not members of the group and not invited
                    if (!$group->isMember($user)) {
                        elgg_register_plugin_hook_handler('register', 'menu:title', 'au_landing_remove_group_join_button', 9999);
                        //remove the link we added in groups_ux to allow joining from discussion forum
                        elgg_unextend_view('discussion/replies', 'discussion/replies/join');
                    }
                }
            }
        } else {
            //this is a normal group
        }
    } else {
        //not a group, do nothing
    }
}
开发者ID:AU-Landing-Project,项目名称:au_landing,代码行数:31,代码来源:functions.php

示例2: basic_pagesetup_handler

function basic_pagesetup_handler()
{
    elgg_unextend_view('page/elements/header', 'search/header');
    elgg_unregister_menu_item('topbar', 'dashboard');
    elgg_unregister_menu_item('topbar', 'elgg_logo');
    // Extend footer with copyright
    $year = date('Y');
    $href = "http://www.perjensen-online.dk";
    elgg_register_menu_item('footer', array('name' => 'copyright_this', 'href' => $href, 'title' => elgg_echo('basic_light:tooltip'), 'text' => elgg_echo('basic_light:copyright') . $year . elgg_echo(' Elggzone'), 'priority' => 1, 'section' => 'alt'));
    // Extend footer with elgg link
    $href = "http://elgg.org";
    elgg_register_menu_item('footer', array('name' => 'elgg', 'href' => $href, 'text' => elgg_echo('basic_light:elgg'), 'priority' => 2, 'section' => 'alt'));
    if (elgg_is_logged_in()) {
        $user = elgg_get_logged_in_user_entity();
        if (elgg_is_active_plugin('dashboard')) {
            elgg_register_menu_item('topbar', array('name' => 'dashboard', 'href' => 'dashboard', 'text' => elgg_view_icon('home') . elgg_echo('dashboard'), 'priority' => 1000, 'section' => 'alt'));
        }
        if (elgg_is_active_plugin('reportedcontent')) {
            elgg_unregister_menu_item('footer', 'report_this');
            $href = "javascript:elgg.forward('reportedcontent/add'";
            $href .= "+'?address='+encodeURIComponent(location.href)";
            $href .= "+'&title='+encodeURIComponent(document.title));";
            elgg_register_menu_item('extras', array('name' => 'report_this', 'href' => $href, 'text' => elgg_view_icon('report-this') . elgg_echo(''), 'title' => elgg_echo('reportedcontent:this:tooltip'), 'priority' => 100));
        }
    }
}
开发者ID:Twizanex,项目名称:Basic-Light,代码行数:26,代码来源:start.php

示例3: aalborg_theme_pagesetup

function aalborg_theme_pagesetup()
{
    elgg_unextend_view('page/elements/header', 'search/header');
    if (elgg_is_logged_in()) {
        elgg_extend_view('page/elements/sidebar', 'search/header', 0);
    }
    elgg_unregister_menu_item('topbar', 'dashboard');
    if (elgg_is_active_plugin('dashboard')) {
        elgg_register_menu_item('site', array('name' => 'dashboard', 'href' => 'dashboard', 'text' => elgg_echo('dashboard')));
    }
    if (elgg_is_logged_in()) {
        $user = elgg_get_logged_in_user_entity();
        elgg_register_menu_item('topbar', array('name' => 'account', 'text' => elgg_echo('account'), 'href' => "#", 'priority' => 100, 'section' => 'alt', 'link_class' => 'elgg-topbar-dropdown'));
        elgg_unregister_menu_item('topbar', 'usersettings');
        elgg_register_menu_item('topbar', array('name' => 'usersettings', 'parent_name' => 'account', 'href' => "/settings/user/{$user->username}", 'text' => elgg_echo('settings'), 'priority' => 103, 'section' => 'alt'));
        elgg_unregister_menu_item('topbar', 'logout');
        elgg_register_menu_item('topbar', array('name' => 'logout', 'parent_name' => 'account', 'href' => '/action/logout', 'is_action' => TRUE, 'text' => elgg_echo('logout'), 'priority' => 104, 'section' => 'alt'));
        elgg_unregister_menu_item('topbar', 'administration');
        if (elgg_is_admin_logged_in()) {
            elgg_register_menu_item('topbar', array('name' => 'administration', 'parent_name' => 'account', 'href' => 'admin', 'text' => elgg_echo('admin'), 'priority' => 101, 'section' => 'alt'));
        }
        elgg_unregister_menu_item('footer', 'report_this');
        if (elgg_is_active_plugin('reportedcontent')) {
            $href = "javascript:elgg.forward('reportedcontent/add'";
            $href .= "+'?address='+encodeURIComponent(location.href)";
            $href .= "+'&title='+encodeURIComponent(document.title));";
            elgg_register_menu_item('extras', array('name' => 'report_this', 'href' => $href, 'title' => elgg_echo('reportedcontent:this:tooltip'), 'text' => elgg_view_icon('report-this'), 'priority' => 500));
        }
    }
}
开发者ID:tjcaverly,项目名称:Elgg,代码行数:30,代码来源:start.php

示例4: theme_eersel_init

/**
 * Initialize the theme
 *
 * @return void
 */
function theme_eersel_init()
{
    elgg_register_css('font-awesome', 'mod/theme_eersel/vendors/font-awesome-4.3.0/css/font-awesome.min.css');
    elgg_load_css('font-awesome');
    // extend views
    elgg_extend_view("js/elgg", "js/theme_eersel");
    elgg_extend_view("css/elgg", "css/theme_eersel");
    elgg_extend_view("css/elgg", "css/theme_eersel_images");
    elgg_extend_view("page/layouts/widgets", "theme_eersel/widgets_fix");
    elgg_extend_view('icon/default', 'theme_eersel/group/icon', 400);
    elgg_unextend_view("page/elements/header", "search/header");
    elgg_unextend_view("page/elements/owner_block/extend", "group_tools/owner_block");
    // page handlers
    elgg_register_page_handler("theme_eersel", "theme_eersel_page_handler");
    elgg_register_page_handler("profile", "theme_eersel_profile_page_handler");
    elgg_register_js('jquery.flexslider', 'mod/theme_eersel/vendors/jquery.flexslider/jquery.flexslider-min.js');
    elgg_load_js('jquery.flexslider');
    // register widgets
    elgg_register_widget_type("profile_owner_block", elgg_echo("theme_eersel:widgets:profile_owner_block:title"), elgg_echo("theme_eersel:widgets:profile_owner_block:description"), "profile");
    elgg_register_widget_type("index_photos", elgg_echo("theme_eersel:widgets:index_photos:title"), elgg_echo("theme_eersel:widgets:index_photos:description"), "index");
    elgg_register_widget_type("index_sidebar", elgg_echo("theme_eersel:widgets:index_sidebar:title"), elgg_echo("theme_eersel:widgets:index_sidebar:description"), "index");
    // register plugin hooks
    elgg_register_plugin_hook_handler("register", "menu:topbar", "theme_eersel_register_topbar_menu_handler");
    elgg_register_plugin_hook_handler("prepare", "menu:owner_block", "theme_eersel_prepare_owner_block_menu_handler");
    elgg_register_plugin_hook_handler('route', 'groups', 'theme_eersel_route_groups_handler');
    // register events
    elgg_register_event_handler('pagesetup', 'system', 'theme_eersel_pagesetup');
    // register admin menu item
    elgg_register_admin_menu_item("configure", "theme_eersel", "appearance");
    // register actions
    elgg_register_action("theme_eersel/slider_upload", dirname(__FILE__) . "/actions/slider_upload.php", "admin");
    elgg_register_action("theme_eersel/links", dirname(__FILE__) . "/actions/links.php", "admin");
}
开发者ID:pleio,项目名称:theme_eersel,代码行数:38,代码来源:start.php

示例5: twitter_bootswatch_init

function twitter_bootswatch_init()
{
    $bootswatch_style = elgg_get_plugin_setting('bootswatch_style', 'twitter_bootswatch');
    switch ($bootswatch_style) {
        case 'amelia':
        case 'cerulean':
        case 'cosmo':
        case 'cyborg':
        case 'flatty':
        case 'journal':
        case 'readable':
        case 'simplex':
        case 'slate':
        case 'spacelab':
        case 'spruce':
        case 'superhero':
        case 'united':
            break;
        default:
            $bootswatch_style = 'cyborg';
    }
    // Unextend the default bootstrap override css
    elgg_unextend_view('css/elgg', 'twitter_bootstrap/css');
    // Extend system CSS with our own styles
    elgg_extend_view('css/elgg', 'twitter_bootswatch/css');
    // united bootstrap
    $bootstrap_css = 'mod/twitter_bootswatch/vendors/bootstrap-' . $bootswatch_style . '.min.css';
    elgg_register_css('twitter_bootswatch_css', $bootstrap_css, 5);
    //unload default bootstrap css and load new one
    elgg_unregister_css('bootstrap_css');
    if (get_context() != 'admin') {
        elgg_load_css('twitter_bootswatch_css');
    }
}
开发者ID:socialweb,项目名称:PiGo,代码行数:34,代码来源:start.php

示例6: gvtheme_init

function gvtheme_init()
{
    // custom topbar
    elgg_unregister_menu_item('topbar', 'elgg_logo');
    elgg_register_plugin_hook_handler('register', 'menu:topbar', 'gvtheme_custom_topbarmenu_setup');
    elgg_register_plugin_hook_handler('register', 'menu:entity', 'gvtheme_custom_entitymenu_setup');
    elgg_register_plugin_hook_handler('register', 'menu:river', 'gvtheme_custom_rivermenu_setup');
    elgg_register_event_handler('pagesetup', 'system', 'gvtheme_custom_usersettings_pagesetup');
    elgg_extend_view('css/elgg', 'gvtheme/css');
    elgg_extend_view('page/elements/head', 'gvtheme/head');
    // remove entities statistics views from user account
    elgg_unextend_view('core/settings/statistics', 'core/settings/statistics/numentities');
    // override some actions
    $action_base = elgg_get_plugins_path() . 'gvtheme/actions';
    elgg_register_action("avatar/upload", "{$action_base}/avatar/upload.php");
    elgg_register_action("avatar/crop", "{$action_base}/avatar/crop.php");
    elgg_register_action("friends/add", "{$action_base}/friends/add.php");
    // get number of users
    $num_members = get_number_users();
    elgg_register_menu_item('topbar', array('name' => 'member_number', 'href' => "members/newest", 'text' => elgg_echo("gvtheme:num_members", array($num_members)), 'priority' => 1000, 'section' => 'alt'));
    $initiatives_item = new ElggMenuItem('initiatives', elgg_echo('gvtheme:initiatives'));
    $cnc_item = new ElggMenuItem('cnc', elgg_echo('gvtheme:cnc'), 'file/group/9545/all');
    $cnc_item->setItemClass('gvgroup-child-menu');
    $initiatives_item->addChild($cnc_item);
    elgg_register_menu_item('site', $initiatives_item);
}
开发者ID:remy40,项目名称:gvrs,代码行数:26,代码来源:start.php

示例7: hydra_theme_init

function hydra_theme_init()
{
    elgg_unextend_view('page/elements/header', 'search/header');
    elgg_extend_view('page/elements/sidebar', 'search/header', 0);
    if (elgg_get_context() != "admin") {
        elgg_require_js("lorea_hydra/js");
    }
    $bower = elgg_get_site_url() . "mod/lorea_hydra/vendors/bower_components/";
    elgg_register_css("bootstrap", "{$bower}bootstrap/dist/css/bootstrap.css", 0);
    elgg_register_css("bootstrap-select", "{$bower}bootstrap-select/dist/css/bootstrap-select.min.css");
    elgg_register_css("jasny", "{$bower}jasny-bootstrap/dist/css/jasny-bootstrap.min.css");
    elgg_register_css("lorea_hydra", elgg_get_site_url() . "mod/hydra_theme/css/lorea_hydra.css", 10000);
    elgg_define_js("bootstrap", array("src" => "{$bower}bootstrap/dist/js/bootstrap.min.js"));
    //elgg_register_js("bootstrap", "{$bower}bootstrap/dist/js/bootstrap.min.js");
    elgg_register_js("bootstrap-select", "{$bower}bootstrap-select/dist/js/bootstrap-select.min.js");
    elgg_register_js("jasny", "{$bower}jasny-bootstrap/dist/js/jasny-bootstrap.min.js");
    elgg_register_js("lorea_hydra", elgg_get_site_url() . "mod/hydra_theme/css/lorea_hydra.css", 10000);
    if (elgg_get_context() != "admin") {
        elgg_load_css("bootstrap");
        elgg_load_css("bootstrap-select");
        elgg_load_css("lorea_hydra");
        elgg_load_css("jasny");
        elgg_load_js("bootstrap");
        elgg_load_js("jasny");
        elgg_load_js("bootstrap-select");
        elgg_load_js("lorea_hydra");
    }
}
开发者ID:epsylon,项目名称:Hydra-dev,代码行数:28,代码来源:start.php

示例8: actions_feature_init

/**
 * Initialize the plugin
 * @return void
 */
function actions_feature_init()
{
    elgg_register_action('feature', __DIR__ . '/actions/feature.php');
    elgg_register_action('unfeature', __DIR__ . '/actions/unfeature.php');
    elgg_register_plugin_hook_handler('register', 'menu:entity', 'actions_feature_entity_menu_setup');
    elgg_unextend_view('js/elgg', 'groups/js');
    elgg_extend_view('js/elgg', 'feature.js');
    elgg_register_plugin_hook_handler('feature', 'group', 'Elgg\\Values::getTrue');
}
开发者ID:hypeJunction,项目名称:Elgg-actions_feature,代码行数:13,代码来源:start.php

示例9: facebook_theme_init

function facebook_theme_init()
{
    /**
     * Customize pages
     */
    elgg_register_plugin_hook_handler('index', 'system', 'facebook_theme_index_handler');
    elgg_register_page_handler('profile', 'facebook_theme_profile_page_handler');
    elgg_register_page_handler('dashboard', 'facebook_theme_dashboard_handler');
    elgg_register_page_handler('page/elements/nologin', 'facebook_theme_nologin_handler');
    //What a hack!  Overriding groups page handler without blowing away other plugins doing the same
    global $CONFIG, $facebook_theme_original_groups_page_handler;
    $facebook_theme_original_groups_page_handler = $CONFIG->pagehandler['groups'];
    elgg_register_page_handler('groups', 'facebook_theme_groups_page_handler');
    elgg_register_ajax_view('thewire/composer');
    elgg_register_ajax_view('messageboard/composer');
    elgg_register_ajax_view('blog/composer');
    elgg_register_ajax_view('file/composer');
    elgg_register_ajax_view('bookmarks/composer');
    /**
     * Customize menus
     */
    elgg_unregister_plugin_hook_handler('register', 'menu:river', 'likes_river_menu_setup');
    elgg_unregister_plugin_hook_handler('register', 'menu:river', 'elgg_river_menu_setup');
    elgg_register_plugin_hook_handler('register', 'menu:river', 'facebook_theme_river_menu_handler');
    elgg_register_plugin_hook_handler('register', 'menu:owner_block', 'facebook_theme_owner_block_menu_handler', 600);
    elgg_register_plugin_hook_handler('register', 'menu:composer', 'facebook_theme_composer_menu_handler');
    elgg_register_event_handler('pagesetup', 'system', 'facebook_theme_pagesetup_handler', 1000);
    /**
     * Customize permissions
     */
    elgg_register_plugin_hook_handler('permissions_check:annotate', 'all', 'facebook_theme_annotation_permissions_handler');
    elgg_register_plugin_hook_handler('container_permissions_check', 'all', 'facebook_theme_container_permissions_handler');
    /**
     * Miscellaneous customizations
     */
    //Small "correction" to groups profile -- brief description makes more sense to come first!
    elgg_register_plugin_hook_handler('profile:fields', 'group', 'facebook_theme_group_profile_fields', 1);
    //@todo report some of the extra patterns to be included in Elgg core
    elgg_extend_view('css/elgg', 'facebook_theme/css');
    elgg_extend_view('js/elgg', 'js/topbar');
    //Likes summary bar -- "You, John, and 3 others like this"
    if (elgg_is_active_plugin('likes')) {
        elgg_extend_view('river/elements/responses', 'likes/river_footer', 1);
    }
    elgg_extend_view('river/elements/responses', 'discussion/river_footer');
    //Elgg only includes the search bar in the header by default,
    //but we usually don't show the header when the user is logged in
    if (elgg_is_active_plugin('search')) {
        elgg_extend_view('page/elements/topbar', 'search/search_box');
        elgg_unextend_view('page/elements/header', 'search/search_box');
        if (!elgg_is_logged_in()) {
            elgg_unextend_view('page/elements/header', 'search/header');
        }
    }
}
开发者ID:duanhv,项目名称:mdg-social,代码行数:55,代码来源:start.php

示例10: group_subtypes_init

/**
 * Initialize the plugin
 * @return void
 */
function group_subtypes_init()
{
    // Search
    elgg_unregister_entity_type('group', '');
    elgg_unregister_plugin_hook_handler('search', 'group', 'search_groups_hook');
    elgg_register_plugin_hook_handler('search', 'group', 'group_subtypes_search_hook');
    elgg_register_plugin_hook_handler('route', 'groups', 'group_subtypes_route_edit_pages');
    $hooks = _elgg_services()->hooks->getAllHandlers();
    $conf = group_subtypes_get_config();
    $identifiers = array();
    foreach ($conf as $subtype => $options) {
        elgg_register_entity_type('group', $subtype);
        $identifier = elgg_extract('identifier', $options, 'groups');
        if (in_array($identifier, $identifiers)) {
            continue;
        }
        elgg_register_plugin_hook_handler('page_identifier', "group:{$subtype}", 'group_subtypes_page_identifier');
        elgg_register_plugin_hook_handler('list_subtypes', $identifier, 'group_subtypes_list_subtypes');
        if ($identifier !== 'groups') {
            elgg_register_menu_item('site', array('name' => $identifier, 'href' => "{$identifier}/all", 'text' => elgg_echo($identifier)));
            elgg_register_plugin_hook_handler('route', $identifier, 'group_subtypes_router', 1);
            // core doesn't run 'route' hooks on an updated page identifier, so we will register the callback manually
            if (!isset($hooks['route']['groups'])) {
                continue;
            }
            foreach ($hooks['route']['groups'] as $priority => $callbacks) {
                $callbacks = (array) $callbacks;
                foreach ($callbacks as $callback) {
                    elgg_register_plugin_hook_handler('route', $identifier, $callback, $priority);
                }
            }
        }
    }
    elgg_register_plugin_hook_handler('permissions_check:parent', 'group', 'group_subtypes_can_parent');
    // Form hacks
    elgg_register_plugin_hook_handler('action', 'groups/edit', 'group_subtypes_update_fields_config');
    elgg_extend_view('forms/groups/edit', 'forms/groups/edit/subtype');
    elgg_extend_view('forms/groups/edit', 'forms/groups/edit/parent_guid');
    // Group URL
    elgg_register_plugin_hook_handler('entity:url', 'group', 'group_subtypes_rewrite_group_urls');
    // Admin
    elgg_register_admin_menu_item('administer', 'groups', null, 20);
    elgg_register_admin_menu_item('administer', 'subtypes', 'groups', 10);
    elgg_register_action('admin/groups/subtypes/add', __DIR__ . '/actions/admin/groups/subtypes/add.php', 'admin');
    elgg_register_action('admin/groups/subtypes/config', __DIR__ . '/actions/admin/groups/subtypes/config.php', 'admin');
    elgg_register_action('admin/groups/subtypes/change_subtype', __DIR__ . '/actions/admin/groups/subtypes/change_subtype.php', 'admin');
    elgg_extend_view('admin.css', 'forms/admin/groups/subtypes/config.css');
    // Group tools
    if (elgg_is_active_plugin('group_tools')) {
        elgg_unextend_view("groups/edit", "group_tools/group_edit_tabbed", 1);
        elgg_unextend_view("groups/edit", "group_tools/group_edit_tabbed_js", 999999999);
        elgg_extend_view('css/elgg', 'forms/groups/edit/group_tools.css');
    }
}
开发者ID:hypeJunction,项目名称:Elgg-group_subtypes,代码行数:58,代码来源:start.php

示例11: notifications_plugin_init

function notifications_plugin_init()
{
    elgg_extend_view('css/elgg', 'notifications/css');
    // Unset the default notification settings
    elgg_unregister_plugin_hook_handler('usersettings:save', 'user', 'notification_user_settings_save');
    elgg_unextend_view('forms/account/settings', 'core/settings/account/notifications');
    elgg_extend_view('forms/account/settings', 'notifications/subscriptions/personal');
    elgg_register_plugin_hook_handler('usersettings:save', 'user', 'zhnotifications_user_settings_save');
    // update notifications based on relationships changing
    elgg_register_event_handler('delete', 'member', 'notifications_relationship_remove');
}
开发者ID:pingwangcs,项目名称:51zhaohu,代码行数:11,代码来源:start.php

示例12: aalborg_theme_pagesetup

/**
 * Rearrange menu items
 */
function aalborg_theme_pagesetup()
{
    elgg_unextend_view('page/elements/header', 'search/header');
    if (elgg_is_logged_in()) {
        elgg_extend_view('page/elements/sidebar', 'search/header', 0);
    }
    if (elgg_is_logged_in()) {
        elgg_register_menu_item('topbar', array('name' => 'account', 'text' => elgg_echo('account'), 'href' => "#", 'priority' => 100, 'section' => 'alt', 'link_class' => 'elgg-topbar-dropdown'));
        if (elgg_is_active_plugin('dashboard')) {
            $item = elgg_unregister_menu_item('topbar', 'dashboard');
            if ($item) {
                $item->setText(elgg_echo('dashboard'));
                $item->setSection('default');
                elgg_register_menu_item('site', $item);
            }
        }
        $item = elgg_get_menu_item('topbar', 'usersettings');
        if ($item) {
            $item->setParentName('account');
            $item->setText(elgg_echo('settings'));
            $item->setPriority(103);
        }
        $item = elgg_get_menu_item('topbar', 'logout');
        if ($item) {
            $item->setParentName('account');
            $item->setText(elgg_echo('logout'));
            $item->setPriority(104);
        }
        $item = elgg_get_menu_item('topbar', 'administration');
        if ($item) {
            $item->setParentName('account');
            $item->setText(elgg_echo('admin'));
            $item->setPriority(101);
        }
        if (elgg_is_active_plugin('site_notifications')) {
            $item = elgg_get_menu_item('topbar', 'site_notifications');
            if ($item) {
                $item->setParentName('account');
                $item->setText(elgg_echo('site_notifications:topbar'));
                $item->setPriority(102);
            }
        }
        if (elgg_is_active_plugin('reportedcontent')) {
            $item = elgg_unregister_menu_item('footer', 'report_this');
            if ($item) {
                $item->setText(elgg_view_icon('report-this'));
                $item->setPriority(500);
                $item->setSection('default');
                elgg_register_menu_item('extras', $item);
            }
        }
    }
}
开发者ID:nooshin-mirzadeh,项目名称:web_2.0_benchmark,代码行数:56,代码来源:start.php

示例13: embed_extended_init

/**
 * Gets called when the Elgg system initializes
 *
 * @return void
 */
function embed_extended_init()
{
    // add CSS / JS
    elgg_extend_view('css/elgg', 'css/embed_extended.css');
    elgg_extend_view('css/admin', 'css/embed_extended.css');
    // register page handler
    elgg_register_ajax_view('embed_extended/list', 'embed_extended_page_handler');
    // register plugin hooks
    elgg_register_plugin_hook_handler('register', 'menu:embed', '\\ColdTrick\\EmbedExtended\\Menus::embedMenuRegister');
    elgg_register_plugin_hook_handler('prepare', 'menu:longtext', '\\ColdTrick\\EmbedExtended\\Menus::longtextMenuPrepare');
    elgg_unextend_view('embed/embed.js', 'elgg/ckeditor/insert.js');
}
开发者ID:coldtrick,项目名称:embed_extended,代码行数:17,代码来源:start.php

示例14: aalborg_theme_init

function aalborg_theme_init()
{
    elgg_register_event_handler('pagesetup', 'system', 'aalborg_theme_pagesetup', 1000);
    // theme specific CSS
    elgg_extend_view('elgg.css', 'aalborg_theme/css');
    elgg_unextend_view('page/elements/header', 'search/header');
    elgg_extend_view('page/elements/sidebar', 'search/header', 0);
    elgg_register_plugin_hook_handler('head', 'page', 'aalborg_theme_setup_head');
    // non-members do not get visible links to RSS feeds
    if (!elgg_is_logged_in()) {
        elgg_unregister_plugin_hook_handler('output:before', 'layout', 'elgg_views_add_rss_link');
    }
}
开发者ID:thehereward,项目名称:Elgg,代码行数:13,代码来源:start.php

示例15: timeline_init

/**
 * Init timeline finder plugin.
 */
function timeline_init()
{
    // register a library of helper functions
    elgg_register_library('elgg:timeline', elgg_get_plugins_path() . 'timeline_theme/lib/timeline.php');
    // Elgg way...
    // Let us load the library
    elgg_load_library('elgg:timeline');
    // register a library of helper functions
    // 	require_once(dirname(__FILE__) . "/lib/timeline.php"); // Non elgg way of loading the lib functions
    // add to the main css
    // elgg_extend_view('css/elgg', 'timeline_theme/timeline_theme_css/demo'); // Timeline_theme index page login
    // elgg_extend_view('css/elgg', 'timeline_theme/timeline_theme_css/style'); // Timeline_theme custom css
    // elgg_extend_view('css/elgg', 'timeline_theme/timeline_theme_css/animate-custom'); // TM: timelne index
    elgg_extend_view('css/elgg', 'timeline_theme/timeline_theme_css/topbar');
    // TM: Top bar css
    elgg_extend_view('css/elgg', 'timeline_theme/css');
    elgg_extend_view('css/elgg', 'timeline_theme/timelinemenu');
    // Timeline_theme menu buttons
    elgg_extend_view('css/elgg', 'timeline_theme/searchcss');
    // TM: added css for search bar
    elgg_extend_view('css/elements/elgg', 'css/elements/layout');
    elgg_extend_view('css/elements/elgg', 'css/elements/navigation');
    elgg_unregister_menu_item('topbar', 'elgg_logo');
    //elgg_unregister_menu_item('topbar', array(
    //		'name' => 'messages',
    //
    //	));
    elgg_extend_view('page/elements/elgg', 'page/elements/walled_garden');
    elgg_extend_view('page/elements/sidebar', 'sidebar/extedsidebar_alt', 1000);
    elgg_unextend_view('page/elements/header', 'search/header');
    // when now use elgg_get_context()
    if (elgg_get_context() == 'groups') {
        elgg_extend_view('page/elements/header', 'page/elements/header_group');
    } else {
        // let us extend the header with our header contents
        elgg_extend_view('page/elements/header', 'page/elements/header_user');
    }
    if (elgg_is_logged_in()) {
        //    elgg_extend_view('page/elements/header', 'search/header');
    }
    // Replace the default index page
    elgg_register_plugin_hook_handler('index', 'system', 'timeline_index', 300);
    // Register a page handler, so we can have nice URLs
    elgg_register_page_handler('timeline', 'timeline_page_handler');
    elgg_extend_view('page/elements/header.php', 'page/elements/ownericon/owner_block_icon.php', '500');
    //Tom : Invocational codes
    /**
     * Customize menus
     */
    //	elgg_register_event_handler('pagesetup', 'system', 'timeline_pagesetup_handler', 1000);
}
开发者ID:nooshin-mirzadeh,项目名称:web_2.0_benchmark,代码行数:54,代码来源:start.php


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