/**
 * Prints the description of the news category
 *
 */
function printNewsCategoryDesc()
{
    echo html_encodeTagged(getNewsCategoryDesc());
}
Exemple #2
0
    ?>
						<?php 
    if (getCurrentNewsArchive()) {
        ?>
						<h1><?php 
        printCurrentNewsArchive();
        ?>
</h1>
						<?php 
    }
    ?>
						<?php 
    if (strlen(getNewsCategoryDesc()) > 0) {
        ?>
						<div><?php 
        echo getNewsCategoryDesc();
        ?>
</div><br />
						<?php 
    }
    ?>
						<?php 
    while (next_news()) {
        ?>
 
						<div class="news-truncate"> 
							<h2><?php 
        printNewsURL();
        ?>
</h2>	
							<div class="newsarticlecredit">
     $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, '...');
             }
         }
     }
     break;
 case 'contact.php':
     $zpfocus_metatitle = gettext('Contact') . ' | ' . getBareGalleryTitle();
     $zpfocus_metadesc = shortenContent(getBareGalleryDesc(), 150, '...');
     break;
     $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;
 case 'slideshow.php':
     $zpmin_metatitle = getBareAlbumTitle() . ' | ' . gettext('Slideshow') . ' | ';
     if (!function_exists('printGslideshow')) {
         printSlideShowJS();
         echo '<link rel="stylesheet" href="' . $_zp_themeroot . '/css/slideshow.css" type="text/css" />';
/**
 * Prints the description of the news category
 *
 */
function printNewsCategoryDesc()
{
    echo getNewsCategoryDesc();
}