本文整理汇总了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();
示例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();
?>
示例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);
}
}