本文整理汇总了PHP中return_page_slug函数的典型用法代码示例。如果您正苦于以下问题:PHP return_page_slug函数的具体用法?PHP return_page_slug怎么用?PHP return_page_slug使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了return_page_slug函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: simplecache_pageend
function simplecache_pageend()
{
global $simplecache_conf;
//caching enabled?
if ($simplecache_conf['enabled'] == 'Y') {
// check for pages to not cache
if (!in_array(return_page_slug(), array_merge(array('404'), $simplecache_conf['nocache']))) {
$simplecache_dir = GSDATAOTHERPATH . 'simplecache_cache/';
if (is_dir($simplecache_dir) === FALSE) {
mkdir($simplecache_dir, 0755) or exit('Unable to create .../data/other/simplecache_cache folder, check GetSimple privileges.');
}
if (is_dir($simplecache_dir)) {
$simplecache_file = $simplecache_dir . md5(return_page_slug()) . '.cache';
// open the cache file for writing
$fp = fopen($simplecache_file, 'w') or exit('Unable to save ' . $simplecache_file . ', check GetSimple privileges.');
echo "\n<!-- Page cached by SimpleCache on " . date('F d Y H:i:s', time()) . ' -->';
// save the contents of output buffer to the file
fwrite($fp, ob_get_contents());
// close the file
fclose($fp);
}
// Send the output to the browser
ob_end_flush();
}
}
}
示例2: return_disqus
function return_disqus()
{
global $disqus_conf;
$new_content = '<div id="disqus_thread"></div>';
$new_content .= '<script type="text/javascript">';
$new_content .= "var disqus_shortname = '" . $disqus_conf['shortname'] . "';";
$new_content .= "var disqus_developer = '" . $disqus_conf['developer'] . "';";
$new_content .= "var disqus_identifier = '" . return_page_slug() . "';";
$new_content .= "var disqus_url = '" . get_page_url(True) . "';";
$new_content .= "var disqus_title = '" . return_page_title() . "';";
$new_content .= <<<INLINECODE
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
INLINECODE;
return $new_content;
}
示例3: sa_toolbar
function sa_toolbar($login = null)
{
// todo : refactor this a bit, whew
global $SATB, $SA_ADMINPATH, $SITEURL, $LANG, $USR, $datau, $SATB_MENU_ADMIN, $SATB_MENU_STATIC;
$EMAIL = isset($datau) ? $datau->EMAIL : '';
$gstarget = '_blank';
// logo
$logo = '<li><ul class="satb_nav"><li class="satb_menu satb_icon"><a class="satb_logo" title="GetSImple CMS ver. ' . GSVERSION . '" href="#"><img src="' . $SATB['PLUGIN_PATH'] . 'assets/img/gsicon.png"></a><ul id="satb_logo_sub">';
// $logo .= '<li class=""><a href="http://get-simple.info" target="'.$gstarget.'">GetSimple CMS</a></li>';
$logo .= '<li class=""><a href="http://get-simple.info/forums" target="' . $gstarget . '">Forums<span class="iconright">▸</span></a>';
$logo .= '<ul><li class=""><a href="http://get-simple.info/forum/search/new/" target="' . $gstarget . '">New Posts</a></li>';
$logo .= '</ul></li>';
// $logo .= '<li class=""><a href="http://get-simple.info/extend/" target="'.$gstarget.'">Extend</a></li>';
$logo .= '<li class=""><a href="http://get-simple.info/wiki/" target="' . $gstarget . '">Wiki</a></li>';
$logo .= '<li class=""><a href="https://github.com/GetSimpleCMS/GetSimpleCMS" target="' . $gstarget . '">SVN</a></li>';
// $logo .= '<li class=""><a class="" href="http://get-simple.info/forum/topic/4141/sa-gs-admin-toolbar/" target="'.$gstarget.'"><i class="cssicon info"></i>About SA_toolbar</a></li>';
// icon test
/*
$test = '<li class=""><a class="" href="http://get-simple.info/forum/topic/4141/sa-gs-admin-toolbar/" target="'.$target.'"><i class="cssicon info"></i>Info Icon</a></li>';
$test .= '<li class=""><a class="" href="http://get-simple.info/forum/topic/4141/sa-gs-admin-toolbar/" target="'.$target.'"><i class="cssicon help"></i>Help Icon</a></li>';
$test .= '<li class=""><a class="" href="http://get-simple.info/forum/topic/4141/sa-gs-admin-toolbar/" target="'.$target.'"><i class="cssicon success"></i>Success Icon</a></li>';
$test .= '<li class=""><a class="" href="http://get-simple.info/forum/topic/4141/sa-gs-admin-toolbar/" target="'.$target.'"><i class="cssicon success-alt"></i>Success Alt Icon</a></li>';
$test .= '<li class=""><a class="" href="http://get-simple.info/forum/topic/4141/sa-gs-admin-toolbar/" target="'.$target.'"><i class="cssicon alert"></i>Alert Icon</a></li>';
$test .= '<li class=""><a class="" href="http://get-simple.info/forum/topic/4141/sa-gs-admin-toolbar/" target="'.$target.'"><i class="cssicon warning"></i>Warning Icon</a></li>';
$test .= '<li class=""><a class="" href="http://get-simple.info/forum/topic/4141/sa-gs-admin-toolbar/" target="'.$target.'"><i class="cssicon denied"></i>Denied Icon</a></li>';
$test .= '<li class=""><a class="" href="http://get-simple.info/forum/topic/4141/sa-gs-admin-toolbar/" target="'.$target.'"><i class="cssicon ribbon"></i>Ribbon Icon</a></li>';
*/
$logo .= '</ul></ul></li>';
// login form
if ($login) {
echo '<div id="sa_toolbar"><ul class="">' . $logo . '</ul>
<ul class="right">
<ul class="satb_nav">
<li id="satb_login" class="satb_menu">
<a id="satb_login_link" href="#">' . i18n_r('LOGIN') . '</a>
<ul id="satb_login_menu">
<form action="' . $SA_ADMINPATH . 'index.php?redirect=' . $_SERVER['REQUEST_URI'] . '" method="post">
<b>Username:</b><input type="text" id="userid" name="userid">
<b>Password:</b><input type="password" id="pwd" name="pwd">
<input class="submit" id="satb_login_submit" type="submit" name="submitted" value="Login">
</form>
</ul>
</li>
<li class="satb_menu tb_close"><a href="' . $SA_ADMINPATH . 'logout.php?toolbar&close" title="Remove Bar"><strong>×</strong></a></li>
</ul>
</ul>
</div>';
satb_jsOutput();
return;
}
$editpath = $SA_ADMINPATH . 'edit.php';
if (function_exists('return_page_slug')) {
$pageslug = return_page_slug();
} else {
$pageslug = '';
}
$tm = array();
// holds all tabs
$sm = array();
// holds all sidemenus
$ptabs = sa_tb_get_PluginTabs();
// hold plugin tabs
// tabs
$tm = sa_tb_addMenu($tm, 'pages', 'TAB_PAGES', $SA_ADMINPATH . 'pages.php');
$tm = sa_tb_addMenu($tm, 'files', 'TAB_FILES', $SA_ADMINPATH . 'upload.php');
$tm = sa_tb_addMenu($tm, 'theme', 'TAB_THEME', $SA_ADMINPATH . 'theme.php');
$tm = sa_tb_addMenu($tm, 'backups', 'TAB_BACKUPS', $SA_ADMINPATH . 'backups.php');
$tm = sa_tb_addMenu($tm, 'plugins', 'PLUGINS_NAV', $SA_ADMINPATH . 'plugins.php');
// merge in plugin nav-tabs
$tm = array_merge($tm, $ptabs);
$tm = sa_tb_addMenu($tm, 'support', 'TAB_SUPPORT', $SA_ADMINPATH . 'support.php');
// custom
$tm = sa_tb_addMenu($tm, 'settings', 'TAB_SETTINGS', $SA_ADMINPATH . 'settings.php');
// custom
$tm = sa_tb_addMenu($tm, 'logs', 'LOGS', $SA_ADMINPATH . 'log.php');
// custom
# satb_debugLog($ptabs);
# satb_debugLog($tm);
// default sidemenus
$sm = sa_tb_addMenu($sm, 'pages', 'SIDE_VIEW_PAGES', $SA_ADMINPATH . 'pages.php');
$sm = sa_tb_addMenu($sm, 'pages', 'SIDE_CREATE_NEW', $SA_ADMINPATH . 'edit.php');
$sm = sa_tb_addMenu($sm, 'pages', 'MENU_MANAGER', $SA_ADMINPATH . 'menu-manager.php');
$sm = sa_tb_addMenu($sm, 'files', 'FILE_MANAGEMENT', $SA_ADMINPATH . 'upload.php');
$sm = sa_tb_addMenu($sm, 'theme', 'SIDE_CHOOSE_THEME', $SA_ADMINPATH . 'theme.php');
$sm = sa_tb_addMenu($sm, 'theme', 'SIDE_EDIT_THEME', $SA_ADMINPATH . 'theme-edit.php');
$sm = sa_tb_addMenu($sm, 'theme', 'SIDE_COMPONENTS', $SA_ADMINPATH . 'components.php');
$sm = sa_tb_addMenu($sm, 'theme', 'SIDE_VIEW_SITEMAP', '../sitemap.xml');
$sm = sa_tb_addMenu($sm, 'backups', 'SIDE_PAGE_BAK', $SA_ADMINPATH . 'backups.php');
$sm = sa_tb_addMenu($sm, 'backups', 'SIDE_WEB_ARCHIVES', $SA_ADMINPATH . 'archive.php');
$sm = sa_tb_addMenu($sm, 'plugins', 'SHOW_PLUGINS', $SA_ADMINPATH . 'plugins.php');
// $sm = sa_tb_addMenu($sm,'plugins','anonymous_data/ANONY_TITLE',$SA_ADMINPATH.'load.php?id=anonymous_data'); // oops, forgot this was a plugin
$sm = sa_tb_addMenu($sm, 'support', 'SUPPORT', $SA_ADMINPATH . 'support.php');
$sm = sa_tb_addMenu($sm, 'support', 'WEB_HEALTH_CHECK', $SA_ADMINPATH . 'health-check.php');
$sm = sa_tb_addMenu($sm, 'settings', 'GENERAL_SETTINGS', $SA_ADMINPATH . 'settings.php');
$sm = sa_tb_addMenu($sm, 'settings', 'SIDE_USER_PROFILE', $SA_ADMINPATH . 'settings.php#profile');
$sm = sa_tb_addMenu($sm, 'logs', 'VIEW_FAILED_LOGIN', $SA_ADMINPATH . 'log.php?log=failedlogins.log');
// custom
$sm = sa_tb_get_PluginMenus($sm);
// add plugin sidemenus to core sidemenus
// these core sidemenus go at bottom
//.........这里部分代码省略.........
示例4: get_page_title
<!-- HEADER -->
<?php
include 'inc/header.php';
?>
<!-- SITE CONTENT -->
<h2 class="title"><?php
get_page_title();
?>
</h2>
<div class="flex fullwidth">
<nav class="side sidenav">
<div class="sidemenu root">
<?php
get_i18n_navigation(return_page_slug(), 1, 1, I18N_SHOW_MENU, "navbar");
?>
</div>
</nav>
<?php
?>
<div class="content">
<div class="page-text">
<?php
get_page_content();
?>
</div>
</div>
<?php
if ($sidebar) {
?>
示例5: sc_get_component
function sc_get_component($page)
{
$content = returnPageContent(return_page_slug(), 'content', false, true);
$content = strip_decode($content);
if (!preg_match('#\\[sc_form(.*)\\]#', $content)) {
getPageContent($page);
}
}
示例6: array_key_exists
<?php
global $SITEURL;
require_once GSPLUGINPATH . 'i18n_search/viewer.class.php';
$i18n =& $params;
// alias for i18n parsing
$slug = array_key_exists('slug', $params) ? $params['slug'] : return_page_slug();
$showTags = array_key_exists('showTags', $params) ? $params['showTags'] : true;
$minTagSizePercent = array_key_exists('minTagSize', $params) ? (int) $params['minTagSize'] : 100;
$maxTagSizePercent = array_key_exists('maxTagSize', $params) ? (int) $params['maxTagSize'] : 250;
$addTags = array_key_exists('addTags', $params) ? $params['addTags'] : '';
$goText = @$i18n['GO'];
$is_ajax = !isset($params['ajax']) || $params['ajax'];
$live = $is_ajax && isset($params['live']) && $params['live'];
$url = function_exists('find_i18n_url') ? find_i18n_url($slug, null) : find_url($slug, null);
$method = strpos($url, '?') !== false ? 'POST' : 'GET';
// with GET the parameters are not submitted!
$language = isset($params['lang']) ? $params['lang'] : null;
$placeholderText = @$params['PLACEHOLDER'];
// languages
$reqlangs = null;
if (function_exists('return_i18n_languages')) {
$deflang = return_i18n_default_language();
$languages = $language ? array($language) : return_i18n_languages();
foreach ($languages as $lang) {
if ($lang == $deflang) {
$lang = '';
}
$reqlangs = $reqlangs === null ? $lang : $reqlangs . ',' . $lang;
}
}
示例7: clientfiles_display
function clientfiles_display($contents)
{
global $SITEURL;
global $url;
global $parent;
global $PRETTYURLS;
$tmp_content = $contents;
/* Set this to control the number of items per page to display to the logged in client*/
$perpage = 5;
$location = stripos($tmp_content, "(% clientfiles %)");
if ($location !== FALSE) {
$tmp_content = str_replace("(% clientfiles %)", "", $tmp_content);
$start_content = substr($tmp_content, 0, $location);
$end_content = substr($tmp_content, $location, strlen($tmp_content) - $location);
$goodlogin = FALSE;
$clientfiles_content = '';
if (isset($_POST['submitlogout'])) {
if (isset($_SESSION['cf_client'])) {
unset($_SESSION['cf_client']);
}
if (isset($_SESSION['cf_password'])) {
unset($_SESSION['cf_password']);
}
}
if (clientfiles_checkloggedin() === TRUE) {
$goodlogin = TRUE;
}
if (isset($_POST['submitlogin'])) {
$goodlogin = clientfiles_checkpass($_POST['client'], sha1($_POST['pass']));
if ($goodlogin === FALSE) {
$clientfiles_content .= 'Incorrect Login!<br /><br />';
// message
}
}
if ($goodlogin === FALSE) {
$clientfiles_content .= 'Please log is to view client files.<br /><br />';
// login form
$clientfiles_content .= '<form name="login" action="#clientlogin" method="post">';
$clientfiles_content .= 'Name: <input type="text" style="width: 150px" name="client" value="">';
$clientfiles_content .= ' Password: <input type="password" style="width: 150px" name="pass" value="">';
$clientfiles_content .= ' <input type="submit" name="submitlogin" value="Client Log In" />';
$clientfiles_content .= '</form></br>';
} else {
$clientfiles_dir = GSDATAOTHERPATH . 'clientfiles/';
$client = $_SESSION['cf_client'];
$client_dir = $clientfiles_dir . $client . '/';
//
// display list of client files
//
$dir_handle = @opendir($client_dir) or exit('Unable to open the folder ' . $client_dir . ', check the folder privileges.');
$filearray = array();
while ($filename = readdir($dir_handle)) {
if (!is_dir($client_dir . $filename) && substr($filename, 0, 1) != '.') {
$filearray[] = array($filename, date("Y/m/d H:i:s", filemtime($client_dir . $filename)), '(' . clientfiles_format_bytes(filesize($client_dir . $filename)) . ')');
}
}
// paginate the list
if (isset($_GET['cfpage'])) {
$cfpage = (int) $_GET['cfpage'];
} else {
$cfpage = 0;
}
$cfpage = max(0, min($cfpage, floor((count($filearray) - 1) / $perpage)));
$fullcount = count($filearray);
$filearray = array_slice($filearray, $cfpage * $perpage, $perpage);
//
// display client page if it exists - slug must be same as the client name, page set to Private,
// and be a child of the page the clientfil plugin is displayed on.
//
$userpage_file = GSDATAPAGESPATH . $client . '.xml';
if (file_exists($userpage_file)) {
$userpage_data = getXML($userpage_file);
if ((string) $userpage_data->private == 'Y' && (string) $userpage_data->parent == return_page_slug()) {
$clientfiles_content .= stripslashes(html_entity_decode($userpage_data->content, ENT_QUOTES, 'UTF-8'));
}
}
$clientfiles_content .= '<table id="cf_table">';
$clientfiles_content .= '<caption>Client: ' . $client . '</caption>';
$clientfiles_content .= '<thead><tr><th>File</th><th>Date</th></tr></head>';
// generate client area list:
$clientfiles_content .= '<tbody>';
$filecount = count($filearray);
if ($filecount > 0) {
$rowclass = "";
}
sort($filearray);
foreach ($filearray as $clientfile) {
$clientfiles_content .= '<tr' . $rowclass . '><td><a href="' . $SITEURL . 'plugins/clientfiles/dlfile.php?client=' . urlencode($client) . '&getfile=' . urlencode($clientfile[0]) . '" title="Download File">' . $clientfile[0] . '</a> ' . $clientfile[2] . '</td><td>' . $clientfile[1] . '</td></tr>';
if ($rowclass == "") {
$rowclass = ' class="alt"';
} else {
$rowclass = "";
}
}
$clientfiles_content .= '<tr' . $rowclass . '><td colspan="2">';
if ($fullcount == 1) {
$clientfiles_content .= "{$fullcount} file";
} else {
$clientfiles_content .= "{$fullcount} files";
}
//.........这里部分代码省略.........
示例8: set_blog_title
function set_blog_title()
{
global $title, $blogSettings, $post;
// Declare GLOBAL variables
$slug = base64_encode(return_page_slug());
// What page are we on?
if ($slug == base64_encode($blogSettings["blogurl"])) {
// If we're on the blog page...
if (isset($_GET['post']) && !empty($post)) {
// If viewing a post...
$title = (string) $post->title;
// Set title of post
} else {
if (isset($_GET['archive'])) {
// If viewing an archive...
// Set the archive title
$title = (string) i18n_r(BLOGFILE . '/ARCHIVE_PRETITLE') . date('F Y', strtotime($_GET['archive']));
} else {
if (isset($_GET['category'])) {
// If viewing a category...
$title = (string) i18n_r(BLOGFILE . '/CATEGORY_PRETITLE') . $_GET['category'];
// Set category title
}
}
}
}
$title = strip_tags(strip_decode($title));
// Clean the title variable
}
示例9: get_page_slug
<![endif]-->
<!--[if gte IE 9]>
<style type="text/css">
.gradient {
filter: none;
}
</style>
<![endif]-->
</head>
<body id="<?php
get_page_slug();
?>
" >
<div class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<div class="navbar-brand"><?php
get_site_name();
?>
</div>
<button type="button" class="navbar-toggle btn-primary" data-toggle="collapse" data-target=".navbar-collapse">menu</button>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<?php
get_i18n_navigation(return_page_slug(FALSE), 0, 1, I18N_SHOW_MENU);
?>
</ul>
</div>
</div>
</div>
示例10: return_external_comments
function return_external_comments($PostID = '', $PageURL = '', $PageTitle = '')
{
global $external_comments_conf;
if ($PostID == '') {
$PostID = return_page_slug();
}
if ($PageURL == '') {
$PageURL = get_page_url(True);
}
if ($PageTitle == '') {
$PageTitle = return_page_title();
}
$PostID = addslashes($PostID);
$PageURL = addslashes($PageURL);
$PageTitle = addslashes($PageTitle);
$new_content = "\n<!-- START: external_coments plugin embed code -->\n";
switch ($external_comments_conf['provider']) {
case 'Disqus':
$new_content .= '<div id="disqus_thread"></div>';
$new_content .= '<script type="text/javascript">';
$new_content .= "var disqus_shortname = '" . $external_comments_conf['shortname'] . "';";
$new_content .= "var disqus_developer = '" . $external_comments_conf['developer'] . "';";
$new_content .= "var disqus_identifier = '" . $PostID . "';";
$new_content .= "var disqus_url = '" . $PageURL . "';";
$new_content .= "var disqus_title = '" . $PageTitle . "';";
$new_content .= <<<INLINECODE
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
INLINECODE;
break;
case 'ID':
$new_content .= '<script>';
$new_content .= "var idcomments_acct = '" . $external_comments_conf['shortname'] . "';";
$new_content .= "var idcomments_post_id = '" . $PostID . "';";
$new_content .= "var idcomments_post_url = '" . $PageURL . "';";
$new_content .= "</script>";
$new_content .= '<span id="IDCommentsPostTitle" style="display:none"></span>';
$new_content .= "<script type='text/javascript' src='http://www.intensedebate.com/js/genericCommentWrapperV2.js'></script>";
break;
case 'livefyre':
$new_content .= "<script type='text/javascript' src='http://livefyre.com/wjs/javascripts/livefyre.js'></script>";
$new_content .= "<script type='text/javascript'>var fyre = LF({site_id: " . $external_comments_conf['shortname'];
$new_content .= ", article_id: '" . $PostID . "', version: '1.0' }); </script>";
break;
case 'vk':
$new_content .= "<script type='text/javascript'>VK.init({apiId: " . $external_comments_conf['shortname'] . ", onlyWidgets: true });</script>";
$new_content .= "<div id='vk_comments'></div>";
$new_content .= "<script type='text/javascript'>VK.Widgets.Comments('vk_comments', {page_id: '" . $PostID . "'}); </script>";
break;
case 'facebook':
$new_content .= '<div id="fb-root"></div>';
$new_content .= '<script src="http://connect.facebook.net/en_US/all.js#appId=APP_ID&xfbml=1"></script>';
$new_content .= '<fb:comments href="' . $PageURL . '" num_posts="" width=""></fb:comments>';
break;
}
$new_content .= "\n<!-- END: external_coments plugin embed code -->\n";
return $new_content;
}
示例11: bootstrap_get_breadcrumbs
/**
* bootstrap_get_breadcrumbs()
*
* This creates the list for breadcrumbs to the current page. Requires
* i18n Navigation plugin for full breadcrumbs list else it creates
* a list with only Home / %parent% / %child%
* This function support the following plugins:
* - i18n Navigation (Supported but doesn't format well unless modified)
* - SimpleBreadcrumbs v1.0+ (Preferred)
*
* @return (string) : String containing HTML <ul> list of breadcrumb data
*/
function bootstrap_get_breadcrumbs()
{
if (function_exists('get_breadcrumbs')) {
# SimpleBreadcrumbs v1.0+
get_breadcrumbs(return_page_slug());
} elseif (!function_exists('get_i18n_breadcrumbs')) {
# i18n Navigation plugin
echo '<li><a href="' . get_site_url(FALSE) . '">Home</a></li>';
echo '<li class="current">';
get_i18n_breadcrumbs(return_page_slug());
echo '</li>';
} else {
# No supported plugins found!
$parent = (string) get_parent(FALSE);
echo '<li><a href="' . get_site_url(FALSE) . '">Home</a></li>';
if (!empty($parent) && $parent != 'index') {
$file = GSDATAPAGESPATH . $parent . '.xml';
if (file_exists($file)) {
$p = getXML($file);
$p_title = $p->title;
$p_slug = $p->slug;
echo '<li><a href="' . find_url($parent, '') . '">' . $p_title . '</a></li>';
}
}
echo '<li class="active">' . get_page_clean_title(FALSE) . '</li>';
}
}
示例12: get_page_clean_title
<?php
}
if ($twitter_creator) {
?>
<meta name="twitter:creator" content="@<?php
echo $twitter_creator;
?>
" />
<?php
}
?>
<meta name="twitter:title" content="<?php
echo get_page_clean_title();
?>
" />
<meta name="twitter:description" content="<?php
echo get_page_meta_desc();
?>
" />
<?php
if ($this->imageExists(get_theme_url(false) . "/" . $general_image_path . return_page_slug() . '.jpg')) {
?>
<meta name="twitter:image" content="<?php
echo get_theme_url(false) . "/" . $general_image_path . return_page_slug() . '.jpg';
?>
" />
<?php
}
?>
示例13: isset
<?php
$page = isset($_GET["page"]) ? $_GET["page"] : "";
$setlang = isset($_GET["setlang"]);
$result = array();
if ($page == "" || $page == "init" || $setlang) {
if (!$setlang) {
$page = "index";
}
$result["langs"] = return_i18n_languages();
$result["tabs"] = return_i18n_menu_data(return_page_slug(), 0, 0, I18N_SHOW_MENU);
//echo $other_lang;
}
$content = "";
$title = "";
$url = $page;
if (isset($pagesArray[$page])) {
$data_index = return_i18n_page_data($page);
$content = strip_decode($data_index->content);
$content = exec_filter('content', $content);
$title = strip_decode($data_index->title);
$url = strip_decode($data_index->url);
}
$page_content = array();
$children = return_i18n_menu_data($page, 1, 1, I18N_SHOW_MENU);
if (!is_null($children)) {
$page_content["children"] = $children;
}
$page_content["title"] = $title;
$page_content["content"] = $content;
$result["url"] = $url;
示例14: blog_display_posts
/**
* Conditionals to display posts/search/archive/tags/category/importer on front end of website
*
* @return void
*/
function blog_display_posts()
{
global $content, $blogSettings;
$Blog = new Blog();
$slug = base64_encode(return_page_slug());
$blogSettings = $Blog->getSettingsData();
$blog_slug = base64_encode($blogSettings["blogurl"]);
if ($slug == $blog_slug) {
$content = '';
ob_start();
if ($blogSettings["displaycss"] == 'Y') {
echo "<style>\n";
echo $blogSettings["csscode"];
echo "\n</style>";
}
switch (true) {
case isset($_GET['post']) == true:
$post_file = BLOGPOSTSFOLDER . $_GET['post'] . '.xml';
show_blog_post($post_file);
break;
case isset($_POST['search_blog']) == true:
search_posts($_POST['keyphrase']);
break;
case isset($_GET['archive']) == true:
$archive = $_GET['archive'];
show_blog_archive($archive);
break;
case isset($_GET['tag']) == true:
$tag = $_GET['tag'];
show_blog_tag($tag);
break;
case isset($_GET['category']) == true:
$category = $_GET['category'];
show_blog_category($category);
break;
case isset($_GET['import']):
auto_import();
break;
default:
show_all_blog_posts();
break;
}
$content = ob_get_contents();
ob_end_clean();
}
return $content;
// legacy support for non filter hook calls to this function
}
示例15: get_navigation
</div>
</div>
</div>
</div>
</div>
</div>
<div class="container-fluid no-padding">
<div id="sticky-bar" class="logo-slide">
<div class="row">
<div class="col-md-12">
<div class="container">
<ul class="nav nav-pills">
<?php
get_navigation(return_page_slug(FALSE));
?>
</ul>
<div id="sticky-controls">
<a id="back-to-top" href="#top" class="info theme-icon-up-open" title="" data-placement="bottom" data-original-title="Top" style="display: none;"></a>
<div class="register-wrapper">
<a id="sticky-register" class="info-bottom theme-icon-register sticky-button" title="" data-original-title="Register"></a>
<div class="sticky-form" id="sticky-register-form" style="display: none;">
<div class="loading"><span class="theme-icon-spin2"></span></div>
<form method="post" action="http://www.industrialthemes.com/explicit/wp-login.php?action=register" class="sticky-register-form"><div id="sticky-register-submit" class="sticky-submit register"><span class="theme-icon-check"></span>REGISTER</div><div class="input-group"><span class="input-group-addon theme-icon-username"></span><input type="text" name="user_login" value="" id="user_register" tabindex="11" placeholder="username"></div><div class="input-group"><span class="input-group-addon at-symbol">@</span><input type="text" name="user_email" value="" id="user_email" tabindex="12" placeholder="email"></div><input type="hidden" name="redirect_to" value="/explicit/?register=true"><input type="hidden" name="user-cookie" value="1"> </form>
</div>