Пример #1
0
/**
 * Prints the rss links for use in the sidebar/bottom nav
 */
function jqm_printRSSlinks()
{
    global $_zp_gallery_page, $_zp_themeroot, $zp_zenpage;
    if (class_exists('RSS')) {
        ?>
		<h3><?php 
        echo gettext('RSS');
        ?>
</h3>
		<ul>
			<?php 
        // these links must change to ones with rel="external" so they are actually loaded via jquerymobile!
        if (extensionEnabled('zenpage') && ZP_NEWS_ENABLED) {
            ?>
				<li class="rsslink"><a href="<?php 
            echo html_encode(getRSSLink('News'));
            ?>
" rel="external" data-ajax="false"><?php 
            echo gettext('News');
            ?>
</a></li>
				<?php 
        }
        ?>
			<li class="rsslink"><a href="<?php 
        echo html_encode(getRSSLink('Gallery'));
        ?>
" rel="external" data-ajax="false"><?php 
        echo gettext('Gallery');
        ?>
</a></li>
			<?php 
        if ($_zp_gallery_page == 'album.php') {
            ?>
				<li class="rsslink"><a href="<?php 
            echo html_encode(getRSSLink('Album'));
            ?>
" rel="external" data-ajax="false"><?php 
            echo gettext('Album');
            ?>
</a></li>
				<?php 
        }
        ?>
		</ul>
		<?php 
    }
}
Пример #2
0
 function __construct()
 {
     $me = basename(dirname(__FILE__));
     setThemeOptionDefault('Theme_logo', '');
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('Slideshow', true);
     setThemeOptionDefault('Graphic_logo', '*');
     setThemeOptionDefault('Watermark_head_image', true);
     setThemeOptionDefault('effervescence_personality', 'image_page');
     setThemeOptionDefault('effervescence_transition', 'slide-hori');
     setThemeOptionDefault('effervescence_caption_location', 'image');
     setThemeOptionDefault('Theme_colors', 'kish-my father');
     setThemeOptionDefault('effervescence_menu', '');
     setThemeOptionDefault('albums_per_page', 9);
     setThemeOptionDefault('albums_per_row', 3);
     setThemeOptionDefault('images_per_page', 20);
     setThemeOptionDefault('images_per_row', 5);
     setThemeOption('image_size', 595, NULL, 'effervescence+');
     setThemeOption('image_use_side', 'longest', NULL, 'effervescence+');
     setThemeOptionDefault('thumb_transition', 1);
     setThemeOptionDefault('thumb_size', 90);
     setThemeOptionDefault('thumb_crop_width', 90);
     setThemeOptionDefault('thumb_crop_height', 90);
     setThemeOptionDefault('thumb_crop', 1);
     setThemeOptionDefault('gallery_index', 1);
     setThemeOptionDefault('effervescence_daily_album_image', 1);
     setThemeOptionDefault('effervescence_daily_album_image_effect', '');
     setOptionDefault('colorbox_' . $me . '_album', 1);
     setOptionDefault('colorbox_' . $me . '_favorites', 1);
     setOptionDefault('colorbox_' . $me . '_image', 1);
     setOptionDefault('colorbox_' . $me . '_search', 1);
     if (class_exists('cacheManager')) {
         cacheManager::deleteThemeCacheSizes($me);
         cacheManager::addThemeCacheSize($me, 595, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, NULL);
         cacheManager::addThemeCacheSize($me, getThemeOption('thumb_size'), NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true, NULL, NULL, NULL);
         cacheManager::addThemeCacheSize($me, NULL, 180, 80, NUll, NULL, NULL, NULL, true, NULL, NULL, NULL);
     }
     if (function_exists('createMenuIfNotExists')) {
         $menuitems = array(array('type' => 'menulabel', 'title' => gettext('News Articles'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'menufunction', 'title' => gettext('All news'), 'link' => 'printAllNewsCategories("All news",TRUE,"","menu-active",false,false,false,"list",false,getOption("menu_manager_truncate_string"));', 'show' => 1, 'include_li' => 0, 'nesting' => 1), array('type' => 'html', 'title' => gettext('News Articles Rule'), 'link' => '<li class="menu_rule menu_menulabel"></li>', 'show' => 1, 'include_li' => 0, 'nesting' => 0), array('type' => 'custompage', 'title' => gettext('Gallery'), 'link' => 'gallery', 'show' => 1, 'nesting' => 0), array('type' => 'menufunction', 'title' => gettext('All Albums'), 'link' => 'printAlbumMenuList("list",NULL,"","menu-active","submenu","menu-active","",false,false,false,false,getOption("menu_manager_truncate_string"));', 'show' => 1, 'include_li' => 0, 'nesting' => 1), array('type' => 'html', 'title' => gettext('Gallery Rule'), 'link' => '<li class="menu_rule menu_menulabel"></li>', 'show' => 1, 'include_li' => 0, 'nesting' => 0), array('type' => 'menulabel', 'title' => gettext('Pages'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'menufunction', 'title' => gettext('All pages'), 'link' => 'printPageMenu("list","","menu-active","submenu","menu-active","",0,false,getOption("menu_manager_truncate_string"));', 'show' => 1, 'include_li' => 0, 'nesting' => 1, getOption("menu_manager_truncate_string")), array('type' => 'html', 'title' => gettext('Pages Rule'), 'link' => '<li class="menu_rule menu_menulabel"></li>', 'show' => 1, 'include_li' => 0, 'nesting' => 0), array('type' => 'menulabel', 'title' => gettext('Archive'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'custompage', 'title' => gettext('Gallery and News'), 'link' => 'archive', 'show' => 1, 'nesting' => 1), array('type' => 'html', 'title' => gettext('Archive Rule'), 'link' => '<li class="menu_rule menu_menulabel"></li>', 'show' => 1, 'include_li' => 0, 'nesting' => 0));
         if (extensionEnabled('rss')) {
             $rssItems = array(array('type' => 'menulabel', 'title' => gettext('RSS'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'customlink', 'title' => gettext('Gallery'), 'link' => WEBPATH . '/index.php?rss', 'show' => 1, 'nesting' => 1), array('type' => 'customlink', 'title' => gettext('News'), 'link' => getRSSLink('news'), 'show' => 1, 'nesting' => 1), array('type' => 'customlink', 'title' => gettext('News and Gallery'), 'link' => getRSSLink('news') . '&amp;withimages', 'show' => 1, 'nesting' => 1));
             $menuitems = array_merge($menuitems, $rssItems);
         }
         createMenuIfNotExists($menuitems, 'effervescence');
     }
 }
Пример #3
0
/**
 * Prints the RSS link for use in the HTML HEAD
 *
 * @param string $option type of RSS: "Gallery" feed for latest images of the whole gallery
 * 																		"Album" for latest images only of the album it is called from
 * 																		"Collection" for latest images of the album it is called from and all of its subalbums
 * 																		"Comments" for all comments of all albums and images
 * 																		"Comments-image" for latest comments of only the image it is called from
 * 																		"Comments-album" for latest comments of only the album it is called from
 * 																		"AlbumsRSS" for latest albums
 * 																		"AlbumsRSScollection" only for latest subalbums with the album it is called from
 * @param string $linktext title of the link
 * @param string $lang optional to display a feed link for a specific language. Enter the locale like "de_DE" (the locale must be installed on your Zenphoto to work of course). If empty the locale set in the admin option or the language selector (getOption('locale') is used.
 * @param string $addl provided additional data for feeds (e.g. album object for album feeds, $categorylink for zenpage categories
 *
 */
function printRSSHeaderLink($option, $linktext, $lang = '', $addl = NULL)
{
    echo "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"" . html_encode(getBare($linktext)) . "\" href=\"" . PROTOCOL . '://' . html_encode($_SERVER["HTTP_HOST"]) . html_encode(getRSSLink($option, $lang, $addl)) . "\" />\n";
}
Пример #4
0
/**
 * @deprecated
 * @since 1.4.5
 */
function getZenpageRSSLink($option = 'News', $categorylink = '', $lang = NULL)
{
    deprecated_functions::notify(gettext('use getRSSLink($option,$lang,$categorylink).'));
    return getRSSLink($option, $lang, $categorylink);
}