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

PHP getCustomPageURL函数代码示例

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

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



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

示例1: printThemeFooter

function printThemeFooter()
{
    echo '<ul class="menu footer">';
    if (function_exists('printRegistrationForm') or function_exists('printUserLogin_out')) {
        if (zp_loggedin() and function_exists('printUserLogin_out')) {
            echo '<li>';
            printUserLogin_out();
            echo '</li>';
        } else {
            echo '<li><a href="' . getCustomPageURL('login') . '">';
            if (function_exists('printRegistrationForm')) {
                echo gettext('Register');
            }
            if (function_exists('printRegistrationForm') and function_exists('printUserLogin_out')) {
                echo ' / ';
            }
            if (function_exists('printUserLogin_out')) {
                echo gettext('Login');
            }
            echo '</a></li>';
        }
    }
    if (function_exists('printContactForm')) {
        echo '<li><a href="' . getCustomPageURL('contact') . '">' . gettext('Contact') . '</a></li>';
    }
    echo '</ul>';
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:27,代码来源:functions.php


示例2: printPersonalities

 static function printPersonalities()
 {
     $personalities = self::getPersonalities();
     echo "<ul>";
     echo "<li><span style='padding: 0 5px; margin-right: 5px;" . "background-color: #fff; border: 1px #666 dotted;'>&nbsp;</span><a persona='__void__' href='" . getCustomPageURL('switch-persona') . "&persona=__void__'>Great void</a></li>";
     foreach ($personalities as $persona => $a) {
         $name = $a['name'];
         $dominant = $a['dominant'];
         echo "<li><span style='padding: 0 5px; margin-right: 5px;" . "background-color: {$dominant}; border: 1px #666 dotted;'>&nbsp;</span><a persona='{$persona}' href='" . getCustomPageURL('switch-persona') . "&persona={$persona}'>{$name}</a></li>";
     }
     echo "</ul>";
 }
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:12,代码来源:PersonalityUtil.php


示例3: printThemeMenu

function printThemeMenu()
{
    echo '<ul id="main">';
    if (getMainSiteName() != '') {
        echo '<li class="title">' . gettext('Main site') . '</li>';
        echo '<ul>';
        echo '<li><a href="' . getMainSiteURL() . '" title="' . getMainSiteName() . '">' . getMainSiteName() . '</a></li>';
        echo '</ul>';
    }
    if (function_exists('printAlbumMenu')) {
        echo '<li class="title">' . gettext('Gallery') . '</li>';
        $temp = getGalleryTitle();
        printAlbumMenu('list', false, '', 'menu-active', 'submenu', 'menu-active', $temp, true);
    } else {
        echo '<li class="title">' . gettext('Gallery') . '</li>';
        echo '<ul>';
        echo '<li><a href="' . getGalleryIndexURL() . '" title="' . getGalleryTitle() . '">' . getGalleryTitle() . '</a></li>';
        echo '</ul>';
    }
    if (function_exists('printNewsIndexURL')) {
        echo '<li class="title">' . gettext('News blog') . '</li>';
        printAllNewsCategories("All news", FALSE, "", "menu-active");
    }
    if (function_exists("printPageMenu")) {
        echo '<li class="title">' . gettext('Pages') . '</li>';
        printPageMenu("list", "", "menu-active", "submenu", "menu-active");
    }
    echo '<li class="title">' . gettext('Stay informed') . '</li>';
    echo '<ul>';
    echo '<li><a href="' . getCustomPageURL('archive') . '">' . gettext('Archives') . '</a></li>';
    echo '</ul>';
    echo '</ul>';
    echo '<div id="login">';
    echo '<div class="title">' . gettext('Connection') . '</div>';
    if (function_exists('printUserLogin_out') and !zp_loggedin()) {
        printUserLogin_out();
    }
    echo '</div>';
    if (function_exists("printLanguageSelector")) {
        echo '<div id="languages">';
        echo '<div class="title">' . gettext('Languages') . '</div>';
        printLanguageSelector();
        echo '<div class="clear_left"></div>';
        echo '</div>';
    }
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:46,代码来源:functions.php


示例4: printMenu

/**
 * Prints out the menu of the theme
 */
function printMenu()
{
    ?>
				<ul id="m_menu" class="prefix_10">
					<?php 
    if (function_exists('printCalendar')) {
        ?>
					<li class="grid_2"><a href="<?php 
        echo getCustomPageURL('calendar');
        ?>
"><?php 
        echo gettext('Calendar');
        ?>
</a></li>
					<?php 
    } else {
        ?>
					<li class="grid_2"><a href="<?php 
        echo getCustomPageURL('archive');
        ?>
"><?php 
        echo gettext('Archive View');
        ?>
</a></li>
					<?php 
    }
    ?>
					<?php 
    if (getOption('zp_plugin_contact_form')) {
        ?>
<li class="grid_2"><a href="<?php 
        echo getCustomPageURL('contact');
        ?>
"><?php 
        echo gettext('Contact');
        ?>
</a></li><?php 
    }
    ?>
				</ul>
<?php 
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:45,代码来源:functions.php


示例5: printUserLogin_out

            ?>
						<li><?php 
            printUserLogin_out('', '');
            ?>
</li>
						<?php 
        } else {
            ?>
						<li <?php 
            if ($_zp_gallery_page == "login.php") {
                ?>
class="active" <?php 
            }
            ?>
><a href="<?php 
            echo getCustomPageURL('login');
            ?>
" title="<?php 
            echo gettext('Login');
            ?>
"><?php 
            echo gettext('Login');
            ?>
</a></li>
						<?php 
        }
        ?>
						<?php 
    }
    ?>
					</ul>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:inc-sidemenu.php


示例6: gettext

<?php

if (getOption('simplicity2_print_home_menu_item')) {
    MenuUtil::printMenuItem(getGalleryIndexUrl(), gettext("Home"), THEME_HOME, "first");
}
MenuUtil::printMenuItem(getGalleryIndexUrl(), gettext("Gallery"), THEME_GALLERY, '', true);
if (function_exists('getNewsIndexURL')) {
    //if zenpage is enabled
    MenuUtil::printMenuItem(NewsUtil::getNewsIndexUrl(), gettext("Notes"), THEME_NEWS);
}
$m = SERVERPATH . "/themes/" . basename(dirname(dirname(__FILE__))) . "/menus/main.php";
if (file_exists($m)) {
    include $m;
}
if (getOption('simplicity2_print_contact_menu_item') && !getOption('simplicity2_contact_is_secondary')) {
    $pageName = getOption('simplicity2_contact_page_name');
    if (is_null($pageName) or trim($pageName) == '') {
        MenuUtil::printMenuItem(getCustomPageURL("contact"), gettext("Contact"), THEME_CONTACT, '', false, 'contact-link');
    } else {
        MenuUtil::printMenuPageLink($pageName, gettext('Contact'), 'contact-link');
    }
}
?>

开发者ID:Imagenomad,项目名称:Unsupported,代码行数:23,代码来源:menu.php


示例7: getCustomPageURL

<?php

MenuUtil::printSecondaryLinkItem('theme-info', getCustomPageURL('theme-info'), gettext('Theme'), THEME_INFO);
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:3,代码来源:secondary.php


示例8: gettext

"><?php 
        echo gettext('Login');
        ?>
</a></li>
						<?php 
    }
    ?>
					<?php 
}
?>

					<?php 
if (!zp_loggedin() && function_exists('printRegistrationForm')) {
    ?>
						<li>|&nbsp;<a href="<?php 
    echo getCustomPageURL('register');
    ?>
" title="<?php 
    echo gettext('Register');
    ?>
"><?php 
    echo gettext('Register');
    ?>
</a></li>
<?php 
}
?>

				</ul>
			</div>
			<div class="footer-left">
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:inc-footer.php


示例9: jqm_printMainHeaderNav

/**
 * Prints the image/subalbum count for the album loop
 */
function jqm_printMainHeaderNav()
{
    global $_zp_gallery_page, $_zp_zenpage, $_zp_current_album, $_zp_themeroot;
    ?>
	<div data-role="header" data-position="inline" data-theme="b">
		<h1><?php 
    printGalleryTitle();
    ?>
</h1>
		<a href="<?php 
    echo html_encode(getSiteHomeURL());
    ?>
" data-icon="home" data-iconpos="notext"><?php 
    echo gettext('Home');
    ?>
</a>
		<?php 
    if (getOption('Allow_search')) {
        ?>
			<a href="<?php 
        echo getCustomPageURL('search');
        ?>
" data-icon="search" data-iconpos="notext"><?php 
        echo gettext('Search');
        ?>
</a>
		<?php 
    }
    ?>
		<div data-role="navbar">
			<ul>
				<li><a href="<?php 
    echo getCustomPageURL('gallery');
    ?>
"><?php 
    echo gettext('Gallery');
    ?>
</a></li>
				<?php 
    if (extensionEnabled('zenpage') && ZP_NEWS_ENABLED) {
        ?>
					<li><a href="<?php 
        echo getNewsIndexURL();
        ?>
"><?php 
        echo gettext('News');
        ?>
</a></li>
    <?php 
        if (extensionEnabled('zenpage') && ZP_PAGES_ENABLED) {
            ?>
					<li><a href="<?php 
            echo getPagesLink();
            ?>
"><?php 
            echo gettext('Pages');
            ?>
</a></li>
    <?php 
        }
        ?>
				<?php 
    }
    ?>
				<li><a href="<?php 
    echo getCustomPageURL('archive');
    ?>
"><?php 
    echo gettext('Archive');
    ?>
</a></li>
			</ul>
		</div><!-- /navbar -->
	</div><!-- /header -->
	<?php 
}
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:79,代码来源:functions.php


示例10: printCustomPageURL

/**
 * Prints the url to a custom page (e.g. one that is not album.php, image.php, or index.php)
 *
 * @param string $linktext Text for the URL
 * @param string $page page name to include in URL
 * @param string $q query string to add to url
 * @param string $prev text to insert before the URL
 * @param string $next text to follow the URL
 * @param string $class optional class
 */
function printCustomPageURL($linktext, $page, $q = '', $prev = '', $next = '', $class = NULL)
{
    if (!is_null($class)) {
        $class = 'class="' . $class . '"';
    }
    echo $prev . "<a href=\"" . html_encode(getCustomPageURL($page, $q)) . "\" {$class} title=\"" . html_encode($linktext) . "\">" . html_encode($linktext) . "</a>" . $next;
}
开发者ID:IliyanGochev,项目名称:zenphoto,代码行数:17,代码来源:template-functions.php


示例11: printUserLogin_out

}
?>
				
				<?php 
if (function_exists("printUserLogin_out")) {
    if (zp_loggedin()) {
        ?>
				<li><?php 
        printUserLogin_out("", "");
        ?>
</li>
				<?php 
    } else {
        ?>
				<li> | <a href="<?php 
        echo getCustomPageURL('password');
        ?>
"><?php 
        echo gettext('Login');
        ?>
</a></li>
				<?php 
    }
    ?>
				<?php 
}
?>
	
			</ul>
			<?php 
if (getOption('RSS_items_albums') || getOption('RSS_zenpage_items')) {
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:inc-footer.php


示例12: getHTMLMetaData


//.........这里部分代码省略.........
                         $pagetitle = $_zp_current_category->getTitlelink() . " - ";
                         $date = strftime(DATE_FORMAT);
                         $desc = trim(getBare($_zp_current_category->getDesc()));
                         $canonicalurl = $host . $_zp_current_category->getLink($_zp_page);
                         $type = 'category';
                     } else {
                         $pagetitle = gettext('News') . " - ";
                         $desc = '';
                         $canonicalurl = $host . getNewsPathNav($_zp_page);
                         $type = 'website';
                     }
                 }
             }
             break;
         case 'pages.php':
             $pagetitle = getBarePageTitle() . " - ";
             $date = getPageDate();
             $desc = trim(getBare(getPageContent()));
             $canonicalurl = $host . $_zp_current_page->getLink();
             break;
         default:
             // for all other possible static custom pages
             $custompage = stripSuffix($_zp_gallery_page);
             $standard = array('contact' => gettext('Contact'), 'register' => gettext('Register'), 'search' => gettext('Search'), 'archive' => gettext('Archive view'), 'password' => gettext('Password required'));
             if (is_object($_myFavorites)) {
                 $standard['favorites'] = gettext('My favorites');
             }
             if (array_key_exists($custompage, $standard)) {
                 $pagetitle = $standard[$custompage] . " - ";
             } else {
                 $pagetitle = $custompage . " - ";
             }
             $desc = '';
             $canonicalurl = $host . getCustomPageURL($custompage);
             break;
     }
     // shorten desc to the allowed 200 characters if necesssary.
     $desc = html_encode(trim(substr(getBare($desc), 0, 160)));
     $pagetitle = $pagetitle . getBareGalleryTitle();
     // get master admin
     $admin = $_zp_authority->getMasterUser();
     $author = $admin->getName();
     $meta = '';
     if (getOption('htmlmeta_http-equiv-cache-control')) {
         $meta .= '<meta http-equiv="Cache-control" content="' . getOption("htmlmeta_cache_control") . '">' . "\n";
     }
     if (getOption('htmlmeta_http-equiv-pragma')) {
         $meta .= '<meta http-equiv="pragma" content="' . getOption("htmlmeta_pragma") . '">' . "\n";
     }
     if (getOption('htmlmeta_name-keywords')) {
         $meta .= '<meta name="keywords" content="' . htmlmetatags::getMetaKeywords() . '">' . "\n";
     }
     if (getOption('htmlmeta_name-description')) {
         $meta .= '<meta name="description" content="' . $desc . '">' . "\n";
     }
     if (getOption('htmlmeta_name-page-topic')) {
         $meta .= '<meta name="page-topic" content="' . $desc . '">' . "\n";
     }
     if (getOption('htmlmeta_name-robots')) {
         $meta .= '<meta name="robots" content="' . getOption("htmlmeta_robots") . '">' . "\n";
     }
     if (getOption('htmlmeta_name-publisher')) {
         $meta .= '<meta name="publisher" content="' . FULLWEBPATH . '">' . "\n";
     }
     if (getOption('htmlmeta_name-creator')) {
         $meta .= '<meta name="creator" content="' . FULLWEBPATH . '">' . "\n";
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:67,代码来源:html_meta_tags.php


示例13: printBaseAlbumMenuJump

function printBaseAlbumMenuJump($option = "count", $indexname = "Gallery Index", $firstimagelink = false)
{
    $type = getOption('zpbase_selectmenu');
    if ($type) {
        require_once SERVERPATH . '/' . ZENFOLDER . '/' . PLUGIN_FOLDER . '/print_album_menu.php';
        global $_zp_gallery, $_zp_current_album, $_zp_gallery_page;
        $albumpath = rewrite_path("/", "/index.php?album=");
        if (!is_null($_zp_current_album) || $_zp_gallery_page == 'album.php') {
            $currentfolder = $_zp_current_album->name;
        }
        if ($type == 'standard') {
            ?>
	<script type="text/javaScript">
		// <!-- <![CDATA[
		function gotoLink(form) {
		var OptionIndex=form.ListBoxURL.selectedIndex;
		parent.location = form.ListBoxURL.options[OptionIndex].value;
		}
		// ]]> -->
	</script>
	<form>
	<select name="ListBoxURL" size="1" onchange="gotoLink(this.form);">
	<?php 
        } else {
            ?>
	<form>
	<select>
	<?php 
        }
        if (getOption('zpbase_galleryishome')) {
            if ($_zp_gallery_page == "index.php" || $_zp_gallery_page == "album.php") {
                ?>
		<option <?php 
                if ($_zp_gallery_page == "index.php") {
                    echo 'selected';
                }
                ?>
 value="<?php 
                echo html_encode(getGalleryIndexURL());
                ?>
"><?php 
                echo $indexname;
                ?>
</option>
		<?php 
            } else {
                ?>
		<option selected value=""><?php 
                echo gettext('Select Album...');
                ?>
</option>
		<option value="<?php 
                echo html_encode(getGalleryIndexURL());
                ?>
"><?php 
                echo $indexname;
                ?>
</option>
		<?php 
            }
        } else {
            ?>
		<option <?php 
            if ($_zp_gallery_page == "index.php") {
                echo 'selected';
            }
            ?>
 value="<?php 
            echo html_encode(getGalleryIndexURL());
            ?>
"><?php 
            echo gettext('Home');
            ?>
</option>
		<?php 
            if ($_zp_gallery_page == "gallery.php" || $_zp_gallery_page == "album.php") {
                ?>
		<option <?php 
                if ($_zp_gallery_page == "gallery.php") {
                    echo 'selected';
                }
                ?>
 value="<?php 
                echo getCustomPageURL('gallery');
                ?>
"><?php 
                echo $indexname;
                ?>
</option>
		<?php 
            } else {
                ?>
		<?php 
                if ($_zp_gallery_page != "index.php") {
                    ?>
<option selected value=""><?php 
                    echo gettext('Select Album...');
                    ?>
</option><?php 
                }
//.........这里部分代码省略.........
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:101,代码来源:functions.php


示例14: zpFormattedDate

			<div class="news-date-placeholder">
				<span class="left">Latest note: <a href="<?php 
    echo $link;
    ?>
"><?php 
    echo $n['title'];
    ?>
</a></span>
				<div class="opa40 right"><b>: </b><?php 
    echo zpFormattedDate('%Y %b, %e', strtotime($n['date']));
    ?>
</div>
			</div>
			<div class="clear"></div>
		</div>
		<div class="news-content-placeholder">
			<?php 
    echo $n['content'];
    ?>
		</div>
		<div class="clear"></div>	
	</div>
<?php 
}
?>
	<div class="browse"><a href="<?php 
echo getCustomPageURL(ZENPAGE_NEWS);
?>
" class="news">More notes</a></div>
</div>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:30,代码来源:content.php


示例15: zpRewriteURL

/**
 * Creates a "REWRITE" url given the query parameters that represent the link
 *
 * @param type $query
 * @return string
 */
function zpRewriteURL($query)
{
    $redirectURL = '';
    if (isset($query['p'])) {
        sanitize($query);
        switch ($query['p']) {
            case 'news':
                $redirectURL = _NEWS_;
                if (isset($query['category'])) {
                    $obj = new ZenpageCategory($query['category'], false);
                    if (!$obj->loaded) {
                        return '';
                    }
                    $redirectURL = $obj->getLink();
                    unset($query['category']);
                } else {
                    if (isset($query['date'])) {
                        $redirectURL = _NEWS_ARCHIVE_ . '/' . $query['date'];
                        unset($query['date']);
                    }
                }
                if (isset($query['title'])) {
                    $obj = new ZenpageNews($query['title'], false);
                    if (!$obj->loaded) {
                        return '';
                    }
                    $redirectURL = $obj->getLink();
                    unset($query['title']);
                }
                break;
            case 'pages':
                $redirectURL = _PAGES_;
                if (isset($query['title'])) {
                    $obj = new ZenpagePage($query['title'], false);
                    if (!$obj->loaded) {
                        return '';
                    }
                    $redirectURL = $obj->getLink();
                    unset($query['title']);
                }
                break;
            case 'search':
                $redirectURL = _SEARCH_;
                if (isset($query['date'])) {
                    $redirectURL = _ARCHIVE_ . '/' . $query['date'];
                    unset($query['date']);
                } else {
                    if (isset($query['searchfields']) && $query['searchfields'] == 'tags') {
                        $redirectURL = _TAGS_;
                        unset($query['searchfields']);
                    }
                }
                if (isset($query['words'])) {
                    $redirectURL .= '/' . $query['words'];
                    unset($query['words']);
                }
                break;
            default:
                $redirectURL = getCustomPageURL($query['p']);
                break;
        }
        unset($query['p']);
        $redirectURL = preg_replace('~^' . WEBPATH . '/~', '', $redirectURL);
        if (isset($query['page'])) {
            $redirectURL .= '/' . $query['page'];
            unset($query['page']);
        }
        $q = http_build_query($query);
        if ($q) {
            $redirectURL .= '?' . $q;
        }
    } else {
        if (isset($query['album'])) {
            if (isset($query['image'])) {
                $obj = newImage(NULL, array('folder' => $query['album'], 'filename' => $query['image']), true);
                unset($query['image']);
            } else {
                $obj = newAlbum($query['album'], NULL, true);
            }
            unset($query['album']);
            if (!$obj->exists) {
                return '';
            }
            $redirectURL = preg_replace('~^' . WEBPATH . '/~', '', $obj->getLink());
            $q = http_build_query($query);
            if ($q) {
                $redirectURL .= '?' . $q;
            }
        }
    }
    return $redirectURL;
}
开发者ID:elpadi,项目名称:dahlen-studio,代码行数:98,代码来源:functions-controller.php


示例16: getCustomPageURL

		<link type="text/css" href="<?php 
echo $_zp_themeroot;
?>
/resources/css/layout.css" rel="stylesheet" media="screen" />
		<link type="text/css" href="<?php 
echo $_zp_themeroot;
?>
/resources/css/style.css" rel="stylesheet" media="screen" />
		<link rel="stylesheet" type="text/css" href="<?php 
echo $_zp_themeroot;
?>
/resources/css/.css" media="screen" />

		<link rel="stylesheet" type="text/css" href='<?php 
echo getCustomPageURL("colors");
?>
' media="screen" />

		<link rel="stylesheet" type="text/css" href="<?php 
echo $_zp_themeroot;
?>
/resources/css/contact.css" media="screen" />
		<link rel="stylesheet" type="text/css" href="<?php 
echo $_zp_themeroot;
?>
/resources/css/overrides.css" media="screen" />
		<!--[if IE]>
		<link rel="stylesheet" type="text/css" href="<?php 
echo $_zp_themeroot;
?>
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:30,代码来源:template.php


示例17: printUserLogin_out

/**
 * Prints the logout link if the user is logged in.
 * This is for album passwords only, not admin users;
 *
 * @param string $before before text
 * @param string $after after text
 * @param int $showLoginForm to display a login form
 * 				to not display a login form, but just a login link, set to 0
 * 				to display a login form set to 1
 * 				to display a link to a login form in colorbox, set to 2, but you must have colorbox enabled for the theme pages where this link appears.)
 * @param string $logouttext optional replacement text for "Logout"
 */
function printUserLogin_out($before = '', $after = '', $showLoginForm = NULL, $logouttext = NULL)
{
    global $_zp_gallery, $__redirect, $_zp_current_admin_obj, $_zp_login_error, $_zp_gallery_page;
    $excludedPages = array('password.php', 'register.php', 'favorites.php', '404.php');
    $logintext = gettext('Login');
    if (is_null($logouttext)) {
        $logouttext = gettext("Logout");
    }
    $params = array("'userlog=0'");
    if (!empty($__redirect)) {
        foreach ($__redirect as $param => $value) {
            $params[] .= "'" . $param . '=' . urlencode($value) . "'";
        }
    }
    if (is_null($showLoginForm)) {
        $showLoginForm = getOption('user_logout_login_form');
    }
    if (is_object($_zp_current_admin_obj)) {
        if (!$_zp_current_admin_obj->logout_link) {
            return;
        }
    }
    $cookies = Zenphoto_Authority::getAuthCookies();
    if (empty($cookies) || !zp_loggedin()) {
        if (!in_array($_zp_gallery_page, $excludedPages)) {
            switch ($showLoginForm) {
                case 1:
                    ?>
					<div class="passwordform">
						<?php 
                    printPasswordForm('', true, false);
                    ?>
					</div>
					<?php 
                    break;
                case 2:
                    if (getOption('colorbox_' . $_zp_gallery->getCurrentTheme() . '_' . stripSuffix($_zp_gallery_page)) && zp_has_filter('theme_head', 'colorbox::css')) {
                        ?>
					<script type="text/javascript">
						// <!-- <![CDATA[
						$(document).ready(function() {
							$(".logonlink").colorbox({
								inline: true,
								innerWidth: "400px",
								href: "#passwordform",
								close: '<?php 
                        echo gettext("close");
                        ?>
',
								open: $('#passwordform_enclosure .errorbox').length
							});
						});
						// ]]> -->
					</script>
					<?php 
                        if ($before) {
                            echo '<span class="beforetext">' . html_encodeTagged($before) . '</span>';
                        }
                        ?>
					<a href="#" class="logonlink" title="<?php 
                        echo $logintext;
                        ?>
"><?php 
                        echo $logintext;
                        ?>
</a>
					<span id="passwordform_enclosure" style="display:none">
					<div class="passwordform">
						<?php 
                        printPasswordForm('', true, false);
                        ?>
					</div>
					</span>
					<?php 
                        if ($after) {
                            echo '<span class="aftertext">' . html_encodeTagged($after) . '</span>';
                        }
                    }
                    break;
                default:
                    if ($loginlink = zp_apply_filter('login_link', getCustomPageURL('password'))) {
                        if ($before) {
                            echo '<span class="beforetext">' . html_encodeTagged($before) . '</span>';
                        }
                        ?>
						<a href="<?php 
                        echo $loginlink;
                        ?>
//.........这里部分代码省略.........
开发者ID:rb26,项目名称:zenphoto,代码行数:101,代码来源:user_login-out.php


示例18: gettext

					<div class="<?php 
        echo $class;
        ?>
">
						<h5>
							<?php 
        echo gettext('Latest Updated Albums');
        ?>
							<?php 
        if (getOption('libratus_stats_albums_latestupdated')) {
            ?>
&nbsp;<a class="stats-more" title="<?php 
            echo gettext('More');
            ?>
" href="<?php 
            echo getCustomPageURL('archive') . '?set=latestupdatedalbums';
            ?>
"><i class="fa fa-caret-right"></i></a><?php 
        }
        ?>
						</h5>
						<?php 
        $items = getAlbumStatistic($number, 'latestupdated', '', false, 1);
        ?>
						<div class="gallery-thumbs">
						<?php 
        foreach ($items as $item) {
            $image = $item->getAlbumThumbImage();
            ?>
							<a href="<?php 
            echo html_encode($item->getLink());
开发者ID:ckfreeman,项目名称:libratus,代码行数:31,代码来源:inc-footer.php


示例19: define

<?php

require_once 'theme_functions.php';
define('ERROR_MESSAGE', "Weirdly enough, an internal error just occured. It is most probably only temporary, but should it perdure, " . "feel free to <a href='" . getCustomPageURL('contact') . "' rel='contact'>report the problem</a>.");
TileSet::init(getGalleryTitle() . ' : ' . "Internal error", "error");
include_once 'template.php';
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:6,代码来源:500.php


示例20: basename

<?php

$m = SERVERPATH . "/themes/" . basename(dirname(dirname(__FILE__))) . "/menus/secondary.php";
if (file_exists($m)) {
    include $m;
}
if (getOption('simplicity2_enable_archive')) {
    MenuUtil::printSecondaryLinkItem('browse-archive', getCustomPageURL('archive'), gettext('Archives'), THEME_SEARCH);
}
if (getOption('simplicity2_print_contact_menu_item') && getOption('simplicity2_contact_is_secondary')) {
    $pageName = getOption('simplicity2_contact_page_name');
    $text = gettext("Contact");
    if (is_null($pageName) or trim($pageName) == '') {
        MenuUtil::printSecondaryLinkItem('contact-link', getCustomPageURL('contact'), $text, THEME_CONTACT);
    } else {
        MenuUtil::printSecondaryPageLinkItem('contact-link', $pageName, $text);
    }
}
?>

开发者ID:Imagenomad,项目名称:Unsupported,代码行数:19,代码来源:additional-links.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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