function flatly_hook_themes_apply($content) { global $core_config, $user_config; $tpl = array('name' => 'themes_layout', 'vars' => array('CONTENT' => $content, 'HTTP_PATH_BASE' => $core_config['http_path']['base'], 'HTTP_PATH_THEMES' => $core_config['http_path']['themes'], 'THEMES_MODULE' => core_themes_get(), 'THEMES_MENU_TREE' => themes_get_menu_tree(), 'THEMES_SUBMENU' => themes_submenu(), 'CREDIT_SHOW_URL' => _u('index.php?app=ws&op=credit'), 'NAME' => $user_config['name'], 'USERNAME' => $user_config['username'], 'GRAVATAR' => $user_config['opt']['gravatar'], 'LAYOUT_FOOTER' => $core_config['main']['layout_footer'], 'Logout' => _('Logout')), 'ifs' => array('valid' => auth_isvalid())); $content = tpl_apply($tpl, array('core_config', 'user_config')); return $content; }
function play_hook_themes_apply($content) { global $core_config, $web_title, $themes_default_charset, $theme_play_foot1, $theme_play_head1, $theme_play_head2, $theme_image; unset($tpl); $tpl = array('name' => 'themes_layout', 'var' => array('CONTENT' => $content, 'WEB_TITLE' => $web_title, 'THEMES_DEFAULT_CHARSET' => $themes_default_charset, 'HTTP_PATH_BASE' => $core_config['http_path']['base'], 'HTTP_PATH_THEMES' => $core_config['http_path']['themes'], 'THEMES_MODULE' => core_themes_get(), 'THEMES_MENU_TREE' => themes_get_menu_tree(), 'THEMES_BUILD_MENU' => theme_play_build_menu(), 'THEMES_PLAY_FOOT1' => $theme_play_foot1, 'THEMES_PLAY_HEAD1' => $theme_play_head1, 'THEMES_PLAY_HEAD2' => $theme_play_head2, 'NAME' => $core_config['user']['name'], 'USERNAME' => $core_config['user']['username'], 'GRAVATAR' => $core_config['user']['opt']['gravatar'], 'Home' => _('Home'), 'Logged in' => _('Logged in'), 'Logout' => _('Logout')), 'if' => array('theme_image' => !empty($theme_image) ? TRUE : FALSE, 'valid' => valid())); $content = tpl_apply($tpl); return $content; }
function common_hook_themes_apply($content) { global $core_config, $user_config; $themes_lang = strtolower(substr($user_config['language_module'], 0, 2)); if ($themes_layout = trim($_REQUEST['_themes_layout_'])) { $themes_layout = 'themes_layout_' . $themes_layout; } else { $themes_layout = 'themes_layout'; } $tpl = array('name' => $themes_layout, 'vars' => array('CONTENT' => $content, 'HTTP_PATH_BASE' => $core_config['http_path']['base'], 'HTTP_PATH_THEMES' => $core_config['http_path']['themes'], 'THEMES_MODULE' => core_themes_get(), 'THEMES_MENU_TREE' => themes_get_menu_tree(), 'THEMES_SUBMENU' => themes_submenu(), 'THEMES_LANG' => $themes_lang ? $themes_lang : 'en', 'CREDIT_SHOW_URL' => _u('index.php?app=ws&op=credit'), 'NAME' => $user_config['name'], 'USERNAME' => $user_config['username'], 'GRAVATAR' => $user_config['opt']['gravatar'], 'LAYOUT_FOOTER' => $core_config['main']['layout_footer'], 'Logout' => _('Logout')), 'ifs' => array('valid' => auth_isvalid())); $content = tpl_apply($tpl, array('core_config', 'user_config')); return $content; }
<table style="width: 200px"> <tr> <td style="border: #B4B3B3 1px solid; background-color: #F8F8F8; vertical-align: top; padding: 10px;"> <p><b><?php echo _('Logged in'); ?> : <?php echo $username; ?> </b></p> <p><b><?php echo _('Status'); ?> : <?php echo $userstatus; ?> </b></p> <?php echo themes_get_menu_tree(); ?> </td> </tr> </table> </td> <?php } ?> <!-- content --> <td style="vertical-align: top; width: 100%;">