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


PHP getBareNewsTitle函数代码示例

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


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

示例1: printNewsURL

/**
 * Prints the title of a news article as a full html link
 *
 * @param string $before insert what you want to be show before the titlelink.
 */
function printNewsURL($before = '')
{
    if (getNewsTitle()) {
        if ($before) {
            $before = '<span class="beforetext">' . html_encode($before) . '</span>';
        }
        echo "<a href=\"" . html_encode(getNewsURL()) . "\" title=\"" . getBareNewsTitle() . "\">" . $before . html_encodeTagged(getNewsTitle()) . "</a>";
    }
}
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:14,代码来源:zenpage-template-functions.php

示例2: gettext

// force UTF-8 Ø
if (!defined('WEBPATH')) {
    die;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- cl ajout favicon jpg-->
<link rel="icon" type="image/jpeg" href="http://negpos.fr/negposphoto/uploaded/images/favicon.jpg" />

	<title><?php 
echo gettext("News");
?>
 <?php 
echo getBareNewsTitle("");
printCurrentNewsCategory(" | ");
printCurrentNewsArchive();
?>
 | <?php 
echo getBareGalleryTitle();
?>
</title>
	<meta http-equiv="content-type" content="text/html; charset=<?php 
echo LOCAL_CHARSET;
?>
" />
	<link rel="stylesheet" href="<?php 
echo $_zp_themeroot;
?>
/style.css" type="text/css" />
开发者ID:nataliakuruch,项目名称:negpos,代码行数:31,代码来源:news.php

示例3: getHTMLMetaData

    /**
     * Prints html meta data to be used in the <head> section of a page
     *
     */
    static function getHTMLMetaData()
    {
        global $_zp_gallery, $_zp_galley_page, $_zp_current_album, $_zp_current_image, $_zp_current_zenpage_news, $_zp_current_zenpage_page, $_zp_gallery_page, $_zp_current_category, $_zp_authority, $_zp_conf_vars, $_myFavorites, $htmlmetatags_need_cache, $_zp_page;
        zp_register_filter('image_processor_uri', 'htmlmetatags::ipURI');
        $host = sanitize("http://" . $_SERVER['HTTP_HOST']);
        $url = $host . getRequestURI();
        // Convert locale shorttag to allowed html meta format
        $locale = str_replace("_", "-", getUserLocale());
        $canonicalurl = '';
        // generate page title, get date
        $pagetitle = "";
        // for gallery index setup below switch
        $date = strftime(DATE_FORMAT);
        // if we don't have a item date use current date
        $desc = getBareGalleryDesc();
        $thumb = '';
        if (getOption('htmlmeta_sitelogo')) {
            $thumb = getOption('htmlmeta_sitelogo');
        }
        if (getOption('htmlmeta_og-image') || getOption('htmlmeta_twittercard')) {
            $ogimage_width = getOption('htmlmeta_ogimage_width');
            $ogimage_height = getOption('htmlmeta_ogimage_height');
            if (empty($ogimage_width)) {
                $ogimage_width = 1280;
            }
            if (empty($ogimage_height)) {
                $ogimage_height = 900;
            }
        }
        $type = 'article';
        switch ($_zp_gallery_page) {
            case 'index.php':
                $desc = getBareGalleryDesc();
                //$canonicalurl = $host . getGalleryIndexURL();
                $canonicalurl = $host . getPageNumURL($_zp_page);
                $type = 'website';
                break;
            case 'album.php':
                $pagetitle = getBareAlbumTitle() . " - ";
                $date = getAlbumDate();
                $desc = getBareAlbumDesc();
                $canonicalurl = $host . getPageNumURL($_zp_page);
                if (getOption('htmlmeta_og-image') || getOption('htmlmeta_twittercard')) {
                    $thumbimg = $_zp_current_album->getAlbumThumbImage();
                    getMaxSpaceContainer($ogimage_width, $ogimage_height, $thumbimg, false);
                    $thumb = $host . html_encode(pathurlencode($thumbimg->getCustomImage(NULL, $ogimage_width, $ogimage_height, NULL, NULL, NULL, NULL, false, NULL)));
                }
                break;
            case 'image.php':
                $pagetitle = getBareImageTitle() . " (" . getBareAlbumTitle() . ") - ";
                $date = getImageDate();
                $desc = getBareImageDesc();
                $canonicalurl = $host . getImageURL();
                if (getOption('htmlmeta_og-image') || getOption('htmlmeta_twittercard')) {
                    $thumb = $host . html_encode(pathurlencode(getCustomSizedImageMaxSpace($ogimage_width, $ogimage_height)));
                }
                break;
            case 'news.php':
                if (function_exists("is_NewsArticle")) {
                    if (is_NewsArticle()) {
                        $pagetitle = getBareNewsTitle() . " - ";
                        $date = getNewsDate();
                        $desc = trim(getBare(getNewsContent()));
                        $canonicalurl = $host . $_zp_current_zenpage_news->getLink();
                    } else {
                        if (is_NewsCategory()) {
                            $pagetitle = $_zp_current_category->getTitlelink() . " - ";
                            $date = strftime(DATE_FORMAT);
                            $desc = trim(getBare($_zp_current_category->getDesc()));
                            $canonicalurl = $host . $_zp_current_category->getLink();
                            $type = 'category';
                        } else {
                            $pagetitle = gettext('News') . " - ";
                            $desc = '';
                            $canonicalurl = $host . getNewsIndexURL();
                            $type = 'website';
                        }
                    }
                    if ($_zp_page != 1) {
                        $canonicalurl .= '/' . $_zp_page;
                    }
                }
                break;
            case 'pages.php':
                $pagetitle = getBarePageTitle() . " - ";
                $date = getPageDate();
                $desc = trim(getBare(getPageContent()));
                $canonicalurl = $host . $_zp_current_zenpage_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');
                }
//.........这里部分代码省略.........
开发者ID:rb26,项目名称:zenphoto,代码行数:101,代码来源:html_meta_tags.php

示例4: gettext

     $zpmin_metatitle = gettext("Archive View") . ' | ';
     break;
 case 'search.php':
     $zpmin_metatitle = gettext('Search') . " | " . html_encode(getSearchWords()) . ' | ';
     $galleryactive = true;
     $cbscript = true;
     $zpmin_social = false;
     break;
 case 'pages.php':
     $zpmin_metatitle = getBarePageTitle() . ' | ';
     $zpmin_metadesc = strip_tags(truncate_string(getPageContent(), 150, '...'));
     $cbscript = true;
     break;
 case 'news.php':
     if (is_NewsArticle()) {
         $zpmin_metatitle = gettext('News') . ' | ' . getBareNewsTitle() . ' | ';
         $zpmin_metadesc = strip_tags(truncate_string(getNewsContent(), 150, '...'));
     } else {
         if ($_zp_current_category) {
             $zpmin_metatitle = gettext('News') . ' | ' . $_zp_current_category->getTitle() . ' | ';
             $zpmin_metadesc = strip_tags(truncate_string(getNewsCategoryDesc(), 150, '...'));
         } else {
             if (getCurrentNewsArchive()) {
                 $zpmin_metatitle = gettext('News') . ' | ' . getCurrentNewsArchive() . ' | ';
             } else {
                 $zpmin_metatitle = gettext('News') . ' | ';
             }
         }
     }
     $cbscript = true;
     break;
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:inc-header.php

示例5: getHeadTitle

/**
 * Function to create the page title to be used within the html <head> <title></title> element.
 * Usefull if you use one header.php for the header of all theme pages instead of individual ones on the theme pages
 * It returns the title and site name in reversed breadcrumb order:
 * <title of current page> | <parent item if present> | <gallery title>
 * It supports standard gallery pages as well a custom and Zenpage news articles, categories and pages.
 *
 * @param string $separator How you wish the parts to be separated
 * @param bool $listparentalbums If the parent albums should be printed in reversed order before the current
 * @param bool $listparentpage If the parent Zenpage pages should be printed in reversed order before the current page
 */
function getHeadTitle($separator = ' | ', $listparentalbums = true, $listparentpages = true)
{
    global $_zp_gallery, $_zp_current_album, $_zp_current_image, $_zp_current_zenpage_news, $_zp_current_zenpage_page, $_zp_gallery_page, $_zp_current_category, $_zp_page, $_myFavorites;
    $mainsitetitle = html_encode(getBare(getMainSiteName()));
    $separator = html_encode($separator);
    if ($mainsitetitle) {
        $mainsitetitle = $separator . $mainsitetitle;
    }
    $gallerytitle = html_encode(getBareGalleryTitle());
    if ($_zp_page > 1) {
        $pagenumber = ' (' . $_zp_page . ')';
    } else {
        $pagenumber = '';
    }
    switch ($_zp_gallery_page) {
        case 'index.php':
            return $gallerytitle . $mainsitetitle . $pagenumber;
            break;
        case 'album.php':
        case 'image.php':
            if ($listparentalbums) {
                $parents = getParentAlbums();
                $parentalbums = '';
                if (count($parents) != 0) {
                    $parents = array_reverse($parents);
                    foreach ($parents as $parent) {
                        $parentalbums .= html_encode(getBare($parent->getTitle())) . $separator;
                    }
                }
            } else {
                $parentalbums = '';
            }
            $albumtitle = html_encode(getBareAlbumTitle()) . $pagenumber . $separator . $parentalbums . $gallerytitle . $mainsitetitle;
            switch ($_zp_gallery_page) {
                case 'album.php':
                    return $albumtitle;
                    break;
                case 'image.php':
                    return html_encode(getBareImageTitle()) . $separator . $albumtitle;
                    break;
            }
            break;
        case 'news.php':
            if (function_exists("is_NewsArticle")) {
                if (is_NewsArticle()) {
                    return html_encode(getBareNewsTitle()) . $pagenumber . $separator . gettext('News') . $separator . $gallerytitle . $mainsitetitle;
                } else {
                    if (is_NewsCategory()) {
                        return html_encode(getBare($_zp_current_category->getTitle())) . $pagenumber . $separator . gettext('News') . $separator . $gallerytitle . $mainsitetitle;
                    } else {
                        return gettext('News') . $pagenumber . $separator . $gallerytitle . $mainsitetitle;
                    }
                }
            }
            break;
        case 'pages.php':
            if ($listparentpages) {
                $parents = $_zp_current_zenpage_page->getParents();
                $parentpages = '';
                if (count($parents) != 0) {
                    $parents = array_reverse($parents);
                    foreach ($parents as $parent) {
                        $obj = new ZenpagePage($parent);
                        $parentpages .= html_encode(getBare($obj->getTitle())) . $separator;
                    }
                }
            } else {
                $parentpages = '';
            }
            return html_encode(getBarePageTitle()) . $pagenumber . $separator . $parentpages . $gallerytitle . $mainsitetitle;
            break;
        case '404.php':
            return gettext('Object not found') . $separator . $gallerytitle . $mainsitetitle;
            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)) {
                return $standard[$custompage] . $pagenumber . $separator . $gallerytitle . $mainsitetitle;
            } else {
                return $custompage . $pagenumber . $separator . $gallerytitle . $mainsitetitle;
            }
            break;
    }
}
开发者ID:IliyanGochev,项目名称:zenphoto,代码行数:100,代码来源:template-functions.php

示例6: gettext

 case 'archive.php':
     $zpfocus_metatitle = gettext("Archive View") . ' | ' . getBareGalleryTitle();
     $zpfocus_metadesc = shortenContent(getBareGalleryDesc(), 150, '...');
     break;
 case 'search.php':
     $zpfocus_metatitle = gettext('Search') . ' | ' . html_encode(getSearchWords()) . ' | ' . getBareGalleryTitle();
     $zpfocus_metadesc = shortenContent(getBareGalleryDesc(), 150, '...');
     $galleryactive = true;
     break;
 case 'pages.php':
     $zpfocus_metatitle = getBarePageTitle() . ' | ' . getBareGalleryTitle();
     $zpfocus_metadesc = strip_tags(shortenContent(getPageContent(), 150, '...'));
     break;
 case 'news.php':
     if (is_NewsArticle()) {
         $zpfocus_metatitle = gettext('News') . ' | ' . getBareNewsTitle() . ' | ' . getBareGalleryTitle();
         $zpfocus_metadesc = strip_tags(shortenContent(getNewsContent(), 150, '...'));
     } else {
         if ($_zp_current_category) {
             $zpfocus_metatitle = gettext('News') . ' | ' . $_zp_current_category->getTitle() . ' | ' . getBareGalleryTitle();
             $zpfocus_metadesc = strip_tags(shortenContent(getNewsCategoryDesc(), 150, '...'));
         } else {
             if (getCurrentNewsArchive()) {
                 $zpfocus_metatitle = gettext('News') . ' | ' . getCurrentNewsArchive() . ' | ' . getBareGalleryTitle();
                 $zpfocus_metadesc = shortenContent(getBareGalleryDesc(), 150, '...');
             } else {
                 $zpfocus_metatitle = gettext('News') . ' | ' . getBareGalleryTitle();
                 $zpfocus_metadesc = shortenContent(getBareGalleryDesc(), 150, '...');
             }
         }
     }
开发者ID:kokyandrei,项目名称:Unsupported,代码行数:31,代码来源:inc-header.php

示例7: printNewsReadMoreLink

/**
 * Prints the read more link or if using CombiNews feature also the link to the image.php gallery page as a full html link
 *
 * @param string $readmore The readmore text to be shown for the full news article link. If empty the option setting is used.
 * @return string
 * @deprecated
 */
function printNewsReadMoreLink($readmore = '')
{
    deprecated_function_notify(gettext('Functionality is now included in getNewsContent(), printNewsContent() and getContentShorten() to properly cover custom shortening via TinyMCE <pagebreak>.'), E_USER_NOTICE);
    $readmore = getNewsReadMore($readmore);
    if (!empty($readmore)) {
        if (is_NewsType("news")) {
            $newsurl = getNewsURL(getNewsTitleLink());
        } else {
            $newsurl = html_encode(getNewsTitleLink());
        }
        echo "<a href='" . $newsurl . "' title=\"" . getBareNewsTitle() . "\">" . html_encode($readmore) . "</a>";
    }
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:20,代码来源:deprecated-functions.php

示例8: printNewsTitleLink

/**
 * Prints the titlelin of a news article as a full html link
 *
 * @param string $before insert what you want to be show before the titlelink.
 */
function printNewsTitleLink($before = '')
{
    if (getNewsTitle()) {
        if (is_NewsType("news")) {
            echo "<a href=\"" . html_encode(getNewsURL(getNewsTitleLink())) . "\" title=\"" . getBareNewsTitle() . "\">" . $before . getNewsTitle() . "</a>";
        } else {
            if (is_GalleryNewsType()) {
                echo "<a href=\"" . html_encode(getNewsTitleLink()) . "\" title=\"" . getBareNewsTitle() . "\">" . $before . getNewsTitle() . "</a>";
            }
        }
    }
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:17,代码来源:zenpage-template-functions.php

示例9: getHTMLMetaData

 /**
  * Prints html meta data to be used in the <head> section of a page
  *
  */
 static function getHTMLMetaData()
 {
     global $_zp_gallery, $_zp_page, $_zp_current_album, $_zp_current_image, $_zp_current_search, $_zp_current_article, $_zp_current_page, $_zp_gallery_page, $_zp_current_category, $_zp_authority, $_zp_conf_vars, $_myFavorites;
     $host = sanitize("http://" . $_SERVER['HTTP_HOST']);
     $url = $host . getRequestURI();
     // Convert locale shorttag to allowed html meta format
     $locale_ = getUserLocale();
     $locale = zpFunctions::getLanguageText($locale_, '-');
     $canonicalurl = '';
     // generate page title, get date
     $pagetitle = "";
     // for gallery index setup below switch
     $date = strftime(DATE_FORMAT);
     // if we don't have a item date use current date
     $desc = getBareGalleryDesc();
     $thumb = '';
     if (getOption('htmlmeta_sitelogo')) {
         $thumb = getOption('htmlmeta_sitelogo');
     }
     if (getOption('htmlmeta_og-image') || getOption('htmlmeta_twittercard')) {
         $ogimage_width = getOption('htmlmeta_ogimage_width');
         $ogimage_height = getOption('htmlmeta_ogimage_height');
         if (empty($ogimage_width)) {
             $ogimage_width = 1280;
         }
         if (empty($ogimage_height)) {
             $ogimage_height = 900;
         }
         $twittercard_type = 'summary';
     }
     $type = 'article';
     switch ($_zp_gallery_page) {
         case 'index.php':
             $desc = getBareGalleryDesc();
             $canonicalurl = $host . $_zp_gallery->getLink($_zp_page);
             $type = 'website';
             break;
         case 'album.php':
         case 'favorites.php':
             $pagetitle = getBareAlbumTitle() . " - ";
             $date = getAlbumDate();
             $desc = getBareAlbumDesc();
             $canonicalurl = $host . $_zp_current_album->getLink($_zp_page);
             if (getOption('htmlmeta_og-image') || getOption('htmlmeta_twittercard')) {
                 $thumbimg = $_zp_current_album->getAlbumThumbImage();
                 getMaxSpaceContainer($ogimage_width, $ogimage_height, $thumbimg, false);
                 $thumb = $host . html_encode(pathurlencode($thumbimg->getCustomImage(NULL, $ogimage_width, $ogimage_height, NULL, NULL, NULL, NULL, false, NULL)));
                 $twittercard_type = 'summary_large_image';
             }
             break;
         case 'image.php':
             $pagetitle = getBareImageTitle() . " (" . getBareAlbumTitle() . ") - ";
             $date = getImageDate();
             $desc = getBareImageDesc();
             $canonicalurl = $host . $_zp_current_image->getLink();
             if (getOption('htmlmeta_og-image') || getOption('htmlmeta_twittercard')) {
                 $thumb = $host . html_encode(pathurlencode(getCustomSizedImageMaxSpace($ogimage_width, $ogimage_height)));
                 $twittercard_type = 'summary_large_image';
             }
             break;
         case 'news.php':
             if (function_exists("is_NewsArticle")) {
                 if (is_NewsArticle()) {
                     $pagetitle = getBareNewsTitle() . " - ";
                     $date = getNewsDate();
                     $desc = trim(getBare(getNewsContent()));
                     $canonicalurl = $host . $_zp_current_article->getLink();
                 } else {
                     if (is_NewsCategory()) {
                         $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');
             }
//.........这里部分代码省略.........
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:101,代码来源:html_meta_tags.php

示例10: strip_tags

     break;
 case 'search.php':
     $objectclass = 'search-results';
     break;
 case 'pages.php':
     $zpbase_metadesc = strip_tags(truncate_string(getPageContent(), 150, '...'));
     $objectclass = str_replace(" ", "", getBarePageTitle()) . '-' . $_zp_current_zenpage_page->getID();
     $rss_option = 'Pages';
     $rss_title = gettext('RSS Pages');
     break;
 case 'news.php':
     $rss_option = 'News';
     $rss_title = gettext('RSS News');
     if (is_NewsArticle()) {
         $zpbase_metadesc = strip_tags(truncate_string(getNewsContent(), 150, '...'));
         $objectclass = str_replace(" ", "", getBareNewsTitle()) . '-' . $_zp_current_zenpage_news->getID();
     } else {
         if ($_zp_current_category) {
             $zpbase_metadesc = strip_tags(truncate_string(getNewsCategoryDesc(), 150, '...'));
             $objectclass = str_replace(" ", "", html_encode($_zp_current_category->getTitle())) . '-news';
             $rss_option = 'Category';
             $rss_title = gettext('RSS News Category');
         } else {
             if (getCurrentNewsArchive()) {
                 $zpbase_metadesc = getCurrentNewsArchive() . ' ' . gettext('News Archive') . '... ' . truncate_string(getBareGalleryDesc(), 130, '...');
                 $objectclass = str_replace(" ", "", getCurrentNewsArchive()) . '-news';
             } else {
                 $zpbase_metadesc = gettext('News') . '... ' . truncate_string(getBareGalleryDesc(), 130, '...');
                 $objectclass = 'news-index';
             }
         }
开发者ID:eyalfyber,项目名称:zpbase,代码行数:31,代码来源:header.php

示例11: getHTMLMetaData

/**
 * Prints html meta data to be used in the <head> section of a page
 *
 */
function getHTMLMetaData()
{
    global $_zp_gallery, $_zp_current_album, $_zp_current_image, $_zp_current_zenpage_news, $_zp_current_zenpage_page, $_zp_gallery_page, $_zp_current_category, $_zp_authority;
    $url = sanitize("http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
    // Convert locale shorttag to allowed html meta format
    $locale = getOption("locale");
    $locale = strtr($locale, "_", "-");
    // generate page title, get date
    $pagetitle = "";
    $date = strftime(DATE_FORMAT);
    // if we don't have a item date use current date
    $desc = getBareGalleryDesc();
    if (is_object($_zp_current_image) and is_object($_zp_current_album)) {
        $pagetitle = getBareImageTitle() . " (" . getBareAlbumTitle() . ") - ";
        $date = getImageDate();
        $desc = getBareImageDesc();
    }
    if (is_object($_zp_current_album) and !is_object($_zp_current_image)) {
        $pagetitle = getBareAlbumTitle() . " - ";
        $date = getAlbumDate();
        $desc = getBareAlbumDesc();
    }
    if (function_exists("is_NewsArticle")) {
        if (is_NewsArticle()) {
            $pagetitle = getBareNewsTitle() . " - ";
            $date = getNewsDate();
            $desc = strip_tags(getNewsContent());
        } else {
            if (is_NewsCategory()) {
                $pagetitle = $_zp_current_category->getTitlelink() . " - ";
                $date = strftime(DATE_FORMAT);
                $desc = "";
            } else {
                if (is_Pages()) {
                    $pagetitle = getBarePageTitle() . " - ";
                    $date = getPageDate();
                    $desc = strip_tags(getPageContent());
                }
            }
        }
    }
    // shorten desc to the allowed 200 characters if necesssary.
    if (strlen($desc) > 200) {
        $desc = substr($desc, 0, 200);
    }
    $pagetitle = $pagetitle . getBareGalleryTitle();
    // get master admin
    $admin = $_zp_authority->getAnAdmin(array('`user`=' => $_zp_authority->master_user, '`valid`=' => 1));
    $author = $admin->getName();
    $meta = '';
    if (getOption('htmlmeta_http-equiv-language')) {
        $meta .= '<meta http-equiv="language" content="' . $locale . '" />' . "\n";
    }
    if (getOption('htmlmeta_name-language')) {
        $meta .= '<meta name="language" content="' . $locale . '" />' . "\n";
    }
    if (getOption('htmlmeta_name-content-language')) {
        $meta .= '<meta name="content-language" content="' . $locale . '" />' . "\n";
    }
    if (getOption('htmlmeta_http-equiv-imagetoolbar')) {
        $meta .= '<meta http-equiv="imagetoolbar" content="false" />' . "\n";
    }
    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_http-equiv-content-style-type')) {
        $meta .= '<meta http-equiv="Content-Style-Type" content="text/css" />' . "\n";
    }
    if (getOption('htmlmeta_name-title')) {
        $meta .= '<meta name="title" content="' . $pagetitle . '" />' . "\n";
    }
    if (getOption('htmlmeta_name-keywords')) {
        $meta .= '<meta name="keywords" content="' . 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";
    }
    if (getOption('htmlmeta_name-author')) {
        $meta .= '<meta name="author" content="' . $author . '" />' . "\n";
    }
    if (getOption('htmlmeta_name-copyright')) {
//.........这里部分代码省略.........
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:101,代码来源:html_meta_tags.php

示例12: newsListDisplay

/**
 * Displays a list of all news in zenphoto
 *
 */
function newsListDisplay()
{
    while (next_news()) {
        ?>
		<div class="newslist_article">
			<div class="newslist_title">
				<span class="italic date_news"><?php 
        printNewsDate();
        ?>
</span>
				<h4><?php 
        printNewsURL();
        ?>
</h4>
				<div class="newslist_detail">
					<div class="italic newslist_type">
						<?php 
        $cat = getNewsCategories();
        if (!empty($cat)) {
            printNewsCategories(", ", gettext("Categories: "), "newslist_categories");
        }
        ?>
					</div>
				</div>
			</div>
			<div class="newslist_content">
				<?php 
        printCodeblock(1);
        ?>
				<?php 
        printNewsContent();
        ?>
				<?php 
        printCodeblock(2);
        ?>
				<?php 
        if (getNewsReadMore()) {
            ?>
					<p class="italic newslist_readmore">
						<?php 
            $readmore = getNewsReadMore($readmore);
            if (!empty($readmore)) {
                $newsurl = getNewsURL();
                echo "<a href='" . $newsurl . "' title=\"" . getBareNewsTitle() . "\">" . html_encode($readmore) . "</a>";
            }
            ?>
					</p>
				<?php 
        }
        ?>
			</div>
		</div>
		<?php 
    }
}
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:59,代码来源:functions.php

示例13: gettext

    echo " | " . gettext('Archive View');
}
if ($_zp_gallery_page == 'password.php') {
    echo " | " . gettext('Password Required...');
}
if ($_zp_gallery_page == '404.php') {
    echo " | " . gettext('404 Not Found...');
}
if ($_zp_gallery_page == 'search.php') {
    echo " | " . gettext('Search: ') . html_encode(getSearchWords());
}
if ($_zp_gallery_page == 'news.php') {
    echo " | " . gettext('News');
}
if ($_zp_gallery_page == 'news.php' && is_NewsArticle()) {
    echo " | " . getBareNewsTitle();
}
?>
	
	</title>
	<?php 
if (getOption('zp_plugin_reCaptcha')) {
    ?>
	<script>
		var RecaptchaOptions = {
			theme : <?php 
    if ($zpgal_contrast == 'dark') {
        echo '\'blackglass\'';
    } else {
        echo '\'white\'';
    }
开发者ID:Imagenomad,项目名称:Unsupported,代码行数:31,代码来源:header.php

示例14: gettext

    echo ' | ' . gettext('Gallery');
    if ($_zp_page > 1) {
        echo ' [' . $_zp_page . ']';
    }
}
if ($_zp_gallery_page == 'image.php') {
    echo ' | ' . html_encode(getBareAlbumTitle()) . ' | ' . html_encode(getBareImageTitle());
}
if ($_zp_gallery_page == 'news.php' && !is_NewsArticle()) {
    echo ' | ' . gettext('News');
    if ($_zp_page > 1) {
        echo ' [' . $_zp_page . ']';
    }
}
if ($_zp_gallery_page == 'news.php' && is_NewsArticle()) {
    echo ' | ' . html_encode(getBareNewsTitle());
}
if ($_zp_gallery_page == 'pages.php') {
    echo ' | ' . html_encode(getBarePageTitle());
}
if ($_zp_gallery_page == 'password.php') {
    echo ' | ' . gettext('Password Required...');
}
if ($_zp_gallery_page == 'register.php') {
    echo ' | ' . gettext('Register');
}
if ($_zp_gallery_page == 'search.php') {
    echo ' | ' . gettext('Search');
    if ($_zp_page > 1) {
        echo ' [' . $_zp_page . ']';
    }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:inc_header.php


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