当前位置: 首页>>代码示例>>PHP>>正文


PHP getCustomPageURL函数代码示例

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


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


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