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

PHP uihelper_get_network_style函数代码示例

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

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



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

示例1: Template

            $subject = $_POST['subject'];
            $message = $_POST['email_message'];
            // say $container_html is '/default_email_container.tpl'
            $container_html = 'default_email_container.tpl';
            $email_container =& new Template($path_prefix . '/web/Themes/Beta/email_container/' . $container_html);
            $email_container->set('subject', $subject);
            $email_container->set('message', $message);
            $preview_msg = $email_container->fetch();
        }
    }
}
function setup_module($column, $module, $obj)
{
    global $subject, $message, $configurable_variables, $preview_msg;
    switch ($module) {
        case 'ConfigureEmailModule':
            $obj->subject = $subject;
            $obj->message = $message;
            $obj->configurable_variables = $configurable_variables;
            $obj->preview_msg = $preview_msg;
            break;
    }
}
$page = new PageRenderer("setup_module", PAGE_CONFIGURE_EMAIL, "Configure Email", "container_two_column.tpl", "header.tpl", NULL, PRI, $network_info);
if (!empty($_GET['msg'])) {
    $msg[] = MessagesHandler::get_message($_GET['msg']);
    uihelper_error_msg($msg);
}
uihelper_get_network_style($page);
$page->html_body_attributes = 'class="no_second_tier network_config"';
echo $page->render();
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:configure_email.php


示例2: MessagesHandler

/* To avoding javascript select value function alert */
if(!isset($_GET['msg_rep'])) {
  if (!empty($msg) || !empty($_GET['msg_id'])) {
    $msg_obj = new MessagesHandler();
    $msg_id = ($_GET['msg_id']) ? $_GET['msg_id']: $msg;
    $dynamic_msg = ($msg_id == 2007)?substr ($type,0,5):NULL;
    $msg = $msg_obj->get_message($msg_id,$dynamic_msg);
    if ($msg) {
      $msg_tpl = & new Template(CURRENT_THEME_FSPATH."/display_message.tpl");
      $msg_tpl->set('message', $msg);
      $page->add_module("middle", "top", $msg_tpl->fetch());
    }
  }
}
// Jtip is shown when user watching the image media
if ($type == 'Images') { 
  $parameter = js_includes('jtip.js');
  $page->add_header_html($parameter);
  $css = $current_theme_path.'/jtip.css';
  $page->add_header_css($css);
}
// if user is not log in as well as not viewing any user page 
if (!empty($uid)) {
  uihelper_set_user_heading($page,$do_theme=TRUE, $uid);
}
else {
  uihelper_get_network_style();
}

echo $page->render();
?>
开发者ID:CivicCommons,项目名称:oldBellCaPA,代码行数:31,代码来源:media_gallery.php


示例3: uihelper_get_group_style

function uihelper_get_group_style($gid)
{
    if (empty($gid)) {
        return uihelper_get_network_style();
    }
    global $page;
    $group_var = new Group();
    $group_var->collection_id = $gid;
    $group_info = $group_var->get_group_theme_detail();
    if (!empty($group_info['extra'])) {
        $extra = unserialize($group_info['extra']);
    }
    $css_array = get_group_theme($gid);
    $css_files = $css_array['css_files'];
    // setting the header image for the group header
    $group_info = ContentCollection::load_collection((int) $gid, PA::$login_uid);
    $page->header->set('caption_image', $group_info->header_image);
    $page->header->set('desktop_image_action', $group_info->header_image_action);
    $page->header->set('display_header_image', $group_info->display_header_image);
    $page->header->set('group_name', $group_info->title);
    $page->header->set('is_admin_member', 1);
    if ($css_array['header_image_allowed']) {
        $page->header->set('header_image_allowed', 1);
    }
    // Adding the Css files in the page
    if (is_array($css_files)) {
        foreach ($css_files as $key => $value) {
            $page->add_header_css($value);
        }
    }
    // adding inline css in the page
    if (!empty($extra['style']['newcss'])) {
        $css_data = '<style type="text/css">' . $extra['style']['newcss'] . '</style>';
        $page->add_header_html($css_data);
    }
}
开发者ID:Cyberspace-Networks,项目名称:CoreSystem,代码行数:36,代码来源:cnuihelper.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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