コード例 #1
0
ファイル: themeoptions.php プロジェクト: benuri/DevTools
 function ThemeOptions()
 {
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('demoTheme_colors', 'none');
     setThemeOptionDefault('albums_per_page', 6);
     setThemeOptionDefault('albums_per_row', 2);
     setThemeOptionDefault('images_per_page', 20);
     setThemeOptionDefault('images_per_row', 5);
     setThemeOptionDefault('image_size', 595);
     setThemeOptionDefault('image_use_side', 'longest');
     setThemeOptionDefault('thumb_size', 100);
     setThemeOptionDefault('thumb_crop_width', 100);
     setThemeOptionDefault('thumb_crop_height', 100);
     setThemeOptionDefault('thumb_crop', 1);
     setThemeOptionDefault('thumb_transition', 1);
     /*
     	You can of course also set other options if your theme requires this.
     	This example enables the colorbox plugin if it is used for the theme pages noted.
     */
     setOptionDefault('colorbox_default_album', 1);
     setOptionDefault('colorbox_default_image', 1);
     setOptionDefault('colorbox_default_search', 1);
     /*
     	This is adds support for the cache manager so you can pre-cache your thumbs and other sized images as defined.
     	Zenphoto generally does this on the fly when needed but on very slow servers or if you have really a lot of images that also are quite big
     	it might be necessary to do this.
     */
     if (class_exists('cacheManager')) {
         cacheManager::deleteThemeCacheSizes('default');
         cacheManager::addThemeCacheSize('default', getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false, getOption('fullimage_watermark'), NULL, NULL);
         cacheManager::addThemeCacheSize('default', getThemeOption('thumb_size'), NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true, getOption('Image_watermark'), NULL, NULL);
     }
 }
コード例 #2
0
 function ThemeOptions()
 {
     setThemeOptionDefault('zenpage_zp_index_news', false);
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('Use_thickbox', true);
     setThemeOptionDefault('zenpage_homepage', 'none');
     setThemeOptionDefault('zenpage_contactpage', true);
     setThemeOptionDefault('zenpage_custommenu', false);
     setThemeOptionDefault('albums_per_row', 2);
     setThemeOptionDefault('images_per_row', 5);
     setThemeOptionDefault('thumb_transition', 1);
     setOptionDefault('zp_plugin_colorbox', 1);
     setOptionDefault('colorbox_zenpage_album', 1);
     setOptionDefault('colorbox_zenpage_image', 1);
     setOptionDefault('colorbox_zenpage_search', 1);
     if (getOption('zp_plugin_zenpage')) {
         setThemeOption('custom_index_page', 'gallery', NULL, NULL, false);
     } else {
         setThemeOption('custom_index_page', '', NULL, NULL, false);
     }
     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' => 'menulabel', 'title' => gettext('Gallery'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'custompage', 'title' => gettext('Gallery index'), 'link' => 'gallery', 'show' => 1, 'nesting' => 1), 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' => '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));
         createMenuIfNotExists($menuitems, 'zenpage');
     }
 }
コード例 #3
0
ファイル: themeoptions.php プロジェクト: rb26/zenphoto
 function __construct()
 {
     $me = basename(dirname(__FILE__));
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('Theme_colors', 'light');
     setThemeOptionDefault('albums_per_page', 6);
     setThemeOptionDefault('albums_per_row', 2);
     setThemeOptionDefault('images_per_page', 20);
     setThemeOptionDefault('images_per_row', 5);
     setThemeOptionDefault('image_size', 595);
     setThemeOptionDefault('image_use_side', 'longest');
     setThemeOptionDefault('thumb_size', 100);
     setThemeOptionDefault('thumb_crop_width', 100);
     setThemeOptionDefault('thumb_crop_height', 100);
     setThemeOptionDefault('thumb_crop', 1);
     setThemeOptionDefault('thumb_transition', 1);
     setOptionDefault('colorbox_' . $me . '_album', 1);
     setOptionDefault('colorbox_' . $me . '_image', 1);
     setOptionDefault('colorbox_' . $me . '_search', 1);
     if (class_exists('cacheManager')) {
         $me = basename(dirname(__FILE__));
         cacheManager::deleteThemeCacheSizes($me);
         cacheManager::addThemeCacheSize($me, getThemeOption('image_size'), 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);
     }
 }
コード例 #4
0
 function ThemeOptions()
 {
     setThemeOptionDefault('Allow_images_with_albums', true);
     setThemeOptionDefault('google_analytics_key', '');
     setThemeOptionDefault('piwik_adress', '');
     setThemeOptionDefault('piwik_number', '');
 }
コード例 #5
0
 function ThemeOptions()
 {
     /* put any setup code needed here */
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('Use_flv_playlist', false);
     setThemeOptionDefault('flv_playlist_option', false);
 }
コード例 #6
0
ファイル: themeoptions.php プロジェクト: bgenere/negpos
 function __construct()
 {
     $me = basename(dirname(__FILE__));
     setThemeOptionDefault('zenpage_zp_index_news', false);
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('Use_thickbox', true);
     setThemeOptionDefault('zenpage_homepage', 'none');
     setThemeOptionDefault('zenpage_contactpage', true);
     setThemeOptionDefault('zenpage_custommenu', false);
     setThemeOptionDefault('albums_per_page', 6);
     setThemeOptionDefault('albums_per_row', 2);
     setThemeOptionDefault('images_per_page', 20);
     setThemeOptionDefault('images_per_row', 5);
     setThemeOption('image_size', 580, NULL, 'zenpage');
     setThemeOption('image_use_side', 'longest', NULL, 'zenpage');
     setThemeOption('thumb_size', 95, NULL, 'zenpage');
     setThemeOptionDefault('thumb_crop_width', 95);
     setThemeOptionDefault('thumb_crop_height', 95);
     setThemeOptionDefault('thumb_crop', 1);
     setThemeOptionDefault('thumb_transition', 1);
     if (extensionEnabled('zenpage')) {
         setThemeOption('custom_index_page', 'gallery', NULL, 'zenpage', false);
     } else {
         setThemeOption('custom_index_page', '', NULL, 'zenpage', false);
     }
     if (class_exists('cacheManager')) {
         cacheManager::deleteThemeCacheSizes($me);
         cacheManager::addThemeCacheSize($me, NULL, 580, 580, NULL, NULL, NULL, NULL, NULL, false, NULL, true);
         cacheManager::addThemeCacheSize($me, 95, NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), 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' => 'menulabel', 'title' => gettext('Gallery'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'custompage', 'title' => gettext('Gallery index'), 'link' => 'gallery', 'show' => 1, 'nesting' => 1), 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' => '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));
         createMenuIfNotExists($menuitems, 'zenpage');
     }
 }
コード例 #7
0
ファイル: themeoptions.php プロジェクト: ckfreeman/libratus
 function ThemeOptions()
 {
     // force core theme options for this theme
     setThemeOption('albums_per_row', 3, null, 'libratus');
     setThemeOption('images_per_row', 6, null, 'libratus');
     setThemeOption('image_use_side', 'longest', null, 'libratus');
     setThemeOptionDefault('image_size', 800, null, 'libratus');
     setThemeOption('image_use_side', 'longest', null, 'libratus');
     setThemeOption('thumb_size', 300, null, 'libratus');
     // set core theme option defaults
     setThemeOptionDefault('albums_per_page', 15);
     setThemeOptionDefault('images_per_page', 30);
     setThemeOptionDefault('thumb_crop', false);
     // set libratus option defaults
     setThemeOptionDefault('libratus_maxwidth', '1400');
     setThemeOptionDefault('libratus_ss_type', 'random');
     setThemeOptionDefault('libratus_ss_album', '');
     setThemeOptionDefault('libratus_ss_interval', 5000);
     setThemeOptionDefault('libratus_index_fullwidth', false);
     setThemeOptionDefault('libratus_date_albums', true);
     setThemeOptionDefault('libratus_date_images', true);
     setThemeOptionDefault('libratus_date_news', true);
     setThemeOptionDefault('libratus_date_pages', true);
     setThemeOptionDefault('libratus_social', true);
     setThemeOptionDefault('libratus_download', true);
     setThemeOptionDefault('libratus_customcss', '');
     setThemeOptionDefault('libratus_facebook', '');
     setThemeOptionDefault('libratus_twitter', '');
     setThemeOptionDefault('libratus_google', '');
     setThemeOptionDefault('libratus_copy', '© ' . date("Y"));
     setThemeOptionDefault('libratus_analytics', '');
     setThemeOptionDefault('libratus_analytics_type', 'universal');
     setThemeOptionDefault('libratus_stats_images_popular', true);
     setThemeOptionDefault('libratus_stats_images_latestbyid', true);
     setThemeOptionDefault('libratus_stats_images_mostrated', true);
     setThemeOptionDefault('libratus_stats_images_toprated', true);
     setThemeOptionDefault('libratus_stats_albums_popular', true);
     setThemeOptionDefault('libratus_stats_albums_latestbyid', true);
     setThemeOptionDefault('libratus_stats_albums_mostrated', true);
     setThemeOptionDefault('libratus_stats_albums_toprated', true);
     setThemeOptionDefault('libratus_stats_albums_latestupdated', true);
     setThemeOptionDefault('libratus_stats_number', 30);
     setThemeOptionDefault('libratus_bottom_stats_number', 5);
     setThemeOptionDefault('libratus_bottom_stats_perrow', 3);
     setThemeOptionDefault('libratus_stats_images_popular_bottom', true);
     setThemeOptionDefault('libratus_stats_images_latestbyid_bottom', true);
     setThemeOptionDefault('libratus_stats_images_toprated_bottom', true);
     setThemeOptionDefault('libratus_related_maxnumber', 10);
     if (class_exists('cacheManager')) {
         $me = basename(dirname(__FILE__));
         cacheManager::deleteThemeCacheSizes($me);
         cacheManager::addThemeCacheSize($me, getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false, getOption('fullimage_watermark'), NULL, NULL);
         // full image size
         cacheManager::addThemeCacheSize($me, getThemeOption('thumb_size'), NULL, NULL, NULL, NULL, NULL, NULL, true, getOption('Image_watermark'), NULL, NULL);
         // default thumb
         cacheManager::addThemeCacheSize($me, NULL, getThemeOption('libratus_maxwidth'), 550, NULL, NULL, NULL, NULL, true, getOption('Image_watermark'), NULL, NULL);
         //big header images
     }
 }
コード例 #8
0
 function ThemeOptions()
 {
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('Theme_colors', 'light');
     setThemeOptionDefault('albums_per_row', 2);
     setThemeOptionDefault('images_per_row', 5);
     setThemeOptionDefault('thumb_transition', 1);
     setOptionDefault('zp_plugin_colorbox', 1);
     setOptionDefault('colorbox_default_album', 1);
     setOptionDefault('colorbox_default_image', 1);
     setOptionDefault('colorbox_default_search', 1);
 }
コード例 #9
0
 function ThemeOptions()
 {
     /* put any setup code needed here */
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('Mini_slide_selector', 'Recent images');
     setThemeOptionDefault('albums_per_row', 3);
     setThemeOptionDefault('images_per_row', 6);
     setThemeOptionDefault('thumb_transition', 1);
     setOptionDefault('zp_plugin_colorbox', 1);
     setOptionDefault('colorbox_stopdesign_album', 1);
     setOptionDefault('colorbox_stopdesign_image', 1);
     setOptionDefault('colorbox_stopdesign_search', 1);
 }
コード例 #10
0
 function ThemeOptions()
 {
     setThemeOptionDefault('zenpage_zp_index_news', false);
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('Use_thickbox', true);
     setThemeOptionDefault('zenpage_homepage', 'none');
     setThemeOptionDefault('zenpage_contactpage', true);
     setThemeOptionDefault('zenpage_custommenu', false);
     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);', 'show' => 1, 'include_li' => 0, 'nesting' => 1), array('type' => 'menulabel', 'title' => gettext('Gallery'), 'link' => '', 'show' => 1, 'nesting' => 0), array('type' => 'custompage', 'title' => gettext('Gallery index'), 'link' => 'gallery', 'show' => 1, 'nesting' => 1), array('type' => 'menufunction', 'title' => gettext('All Albums'), 'link' => 'printAlbumMenuList("list",NULL,"","menu-active","submenu","menu-active","",false,false,false,false);', 'show' => 1, 'include_li' => 0, 'nesting' => 1), 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);', 'show' => 1, 'include_li' => 0, 'nesting' => 1));
         createMenuIfNotExists($menuitems, 'zenpage');
     }
 }
コード例 #11
0
 function __construct()
 {
     // force core theme options for this theme
     setThemeOption('albums_per_row', 2, null, 'zpfocus');
     setThemeOption('images_per_row', 3, null, 'zpfocus');
     setThemeOption('thumb_size', 160, null, 'zpfocus');
     setThemeOption('thumb_crop', 0, null, 'zpfocus');
     setThemeOption('image_size', 800, null, 'zpfocus');
     //for sized cb target option only
     setThemeOption('image_use_side', 'longest', null, 'zpfocus');
     setThemeOption('custom_index_page', '', null, 'zpfocus');
     // set core theme option defaults
     setThemeOptionDefault('albums_per_page', 6);
     setThemeOptionDefault('images_per_page', 9);
     setThemeOptionDefault('thumb_transition', 2);
     // set theme option defaults
     $str = '';
     setOptionDefault('zpfocus_tagline', getAllTranslations($str));
     gettext($str = 'A ZenPhoto / ZenPage Powered Theme');
     setThemeOptionDefault('zpfocus_allow_search', true);
     setThemeOptionDefault('zpfocus_show_archive', true);
     setThemeOptionDefault('zpfocus_use_colorbox', true);
     setThemeOptionDefault('zpfocus_use_colorbox_slideshow', true);
     setThemeOptionDefault('zpfocus_homepage', 'none');
     setThemeOptionDefault('zpfocus_spotlight', 'manual');
     setOptionDefault('zpfocus_spotlight_text', getAllTranslations($str));
     gettext($str = '<p>This is the <span class="spotlight-span">spotlight</span> area that can be set in the theme options.  You can either enter the text manually in the options or set it to display the latest news if ZenPage is being used. If you want nothing to appear here, set the spotlight to none.</p>');
     setThemeOptionDefault('zpfocus_show_credit', false);
     setThemeOptionDefault('zpfocus_menutype', 'dropdown');
     setThemeOptionDefault('zpfocus_logotype', true);
     setThemeOptionDefault('zpfocus_logofile', 'logo.jpg');
     setThemeOptionDefault('zpfocus_showrandom', 'rotator');
     setThemeOptionDefault('zpfocus_rotatoreffect', 'fade');
     setThemeOptionDefault('zpfocus_rotatorspeed', '3000');
     setThemeOptionDefault('zpfocus_cbtarget', true);
     setThemeOptionDefault('zpfocus_cbstyle', 'example3');
     setThemeOptionDefault('zpfocus_cbtransition', 'fade');
     setThemeOptionDefault('zpfocus_cbssspeed', '2500');
     setThemeOptionDefault('zpfocus_final_link', 'nolink');
     setThemeOptionDefault('zpfocus_news', true);
     // plugin options
     setOptionDefault('jcarousel_zpfocus_image', 1);
     if (class_exists('cacheManager')) {
         cacheManager::deleteThemeCacheSizes('zpfocus');
         cacheManager::addThemeCacheSize('zpfocus', null, 600, 900, null, null, null, null, false, getOption('fullimage_watermark'), false, true);
         cacheManager::addThemeCacheSize('zpfocus', null, 300, 300, 300, 300, null, null, true, getOption('fullimage_watermark'), false, false);
         if (getOption('zpfocus_use_colorbox') && getOption('zpfocus_cbtarget')) {
             cacheManager::addThemeCacheSize('zpfocus', 800, null, null, null, null, null, null, false, getOption('fullimage_watermark'), false, false);
         }
     }
 }
コード例 #12
0
ファイル: themeoptions.php プロジェクト: ariep/ZenPhoto20-DEV
 function __construct()
 {
     setThemeOptionDefault('albums_per_row', 3);
     setThemeOptionDefault('albums_per_page', 9);
     setThemeOptionDefault('images_per_row', 5);
     setThemeOptionDefault('images_per_page', 20);
     setThemeOptionDefault('thumb_size', 150);
     setThemeOptionDefault('thumb_crop', 1);
     setThemeOptionDefault('thumb_crop_width', 150);
     setThemeOptionDefault('thumb_crop_height', 150);
     setThemeOptionDefault('image_size', 700);
     setThemeOptionDefault('image_use_side', 'longest');
     setThemeOptionDefault('use_image_logo_filename', 'banniere3.jpg');
     setThemeOptionDefault('show_image_logo_on_image', false);
     setThemeOptionDefault('css_style', 'dark');
     setThemeOptionDefault('links_style', 'default');
     setThemeOptionDefault('zenpage_homepage', 'none');
     setThemeOptionDefault('show_archive', false);
     setThemeOptionDefault('allow_search', true);
     setThemeOptionDefault('show_tag', true);
     setThemeOptionDefault('image_statistic', 'random');
     setThemeOptionDefault('use_galleriffic', true);
     setThemeOptionDefault('galleriffic_delai', 3000);
     setThemeOptionDefault('use_colorbox_album', false);
     setThemeOptionDefault('use_colorbox_image', false);
     setThemeOptionDefault('show_exif', true);
     setOption('colorbox_zpArdoise_album', 1);
     setOption('colorbox_zpArdoise_archive', 1);
     setOption('colorbox_zpArdoise_contact', 1);
     setOption('colorbox_zpArdoise_favorites', 1);
     setOption('colorbox_zpArdoise_gallery', 1);
     setOption('colorbox_zpArdoise_image', 1);
     setOption('colorbox_zpArdoise_index', 1);
     setOption('colorbox_zpArdoise_news', 1);
     setOption('colorbox_zpArdoise_pages', 1);
     setOption('colorbox_zpArdoise_password', 1);
     setOption('colorbox_zpArdoise_register', 1);
     setOption('colorbox_zpArdoise_search', 1);
     if (class_exists('cacheManager')) {
         $me = basename(dirname(__FILE__));
         cacheManager::deleteThemeCacheSizes($me);
         cacheManager::addThemeCacheSize($me, getThemeOption('thumb_size'), NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true);
         if (getOption('use_galleriffic')) {
             cacheManager::addThemeCacheSize($me, 85, NULL, NULL, 85, 85, NULL, NULL, true);
             cacheManager::addThemeCacheSize($me, 525, NULL, NULL, NULL, NULL, NULL, NULL, false);
         }
         cacheManager::addThemeCacheSize($me, getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false);
     }
 }
コード例 #13
0
ファイル: themeoptions.php プロジェクト: ariep/ZenPhoto20-DEV
 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');
     }
 }
コード例 #14
0
ファイル: themeoptions.php プロジェクト: rb26/zenphoto
 function __construct()
 {
     $me = basename(dirname(__FILE__));
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('Allow_cloud', true);
     setThemeOptionDefault('albums_per_page', 6);
     setThemeOptionDefault('albums_per_row', 2);
     setThemeOptionDefault('images_per_page', 20);
     setThemeOptionDefault('images_per_row', 5);
     setThemeOption('image_size', 520, NULL, 'garland');
     setThemeOption('image_use_side', 'longest', NULL, 'garland');
     setThemeOptionDefault('thumb_transition', 1);
     setThemeOption('thumb_size', 85, NULL, 'garland');
     setThemeOptionDefault('thumb_crop_width', 85);
     setThemeOptionDefault('thumb_crop_height', 85);
     setThemeOptionDefault('thumb_crop', 1);
     setThemeOptionDefault('garland_customHome', '');
     setThemeOptionDefault('garland_personality', 'image_page');
     setThemeOptionDefault('garland_transition', 'slide-hori');
     setThemeOptionDefault('garland_caption_location', 'image');
     setOptionDefault('colorbox_' . $me . '_image', 1);
     setOptionDefault('colorbox_' . $me . '_album', 1);
     setOptionDefault('colorbox_' . $me . '_search', 1);
     setThemeOptionDefault('garland_menu', '');
     if (extensionEnabled('zenpage')) {
         setThemeOption('custom_index_page', 'gallery', NULL, 'garland', false);
     } else {
         setThemeOption('custom_index_page', '', NULL, 'garland', false);
     }
     if (class_exists('cacheManager')) {
         $me = basename(dirname(__FILE__));
         cacheManager::deleteThemeCacheSizes($me);
         cacheManager::addThemeCacheSize($me, 520, NULL, NULL, NULL, NULL, NULL, NULL, false, NULL, NULL, NULL);
         cacheManager::addThemeCacheSize($me, 85, NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), 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,"inner_ul",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","inner_ul","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","inner_ul","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));
         createMenuIfNotExists($menuitems, 'garland');
     }
 }
コード例 #15
0
 function ThemeOptions()
 {
     // force core theme options for this theme
     setThemeOption('albums_per_row', 3, null, 'zpskeleton');
     setThemeOption('images_per_row', 8, null, 'zpskeleton');
     setThemeOption('thumb_size', 220, null, 'zpskeleton');
     setThemeOption('image_size', 630, null, 'zpskeleton');
     setThemeOption('image_use_side', 'longest', null, 'zpskeleton');
     setThemeOption('custom_index_page', 'none', null, 'zpskeleton');
     // set core theme option defaults
     setThemeOptionDefault('albums_per_page', 6);
     setThemeOptionDefault('images_per_page', 9);
     setThemeOptionDefault('thumb_transition', 2);
     setThemeOptionDefault('thumb_crop', 0);
     // set theme option defaults
     setThemeOptionDefault('zpskel_usenews', true);
     setThemeOptionDefault('zpskel_debuguser', false);
     setThemeOptionDefault('zpskel_disablewarning', false);
     setThemeOptionDefault('zpskel_pptarget', 'sized');
     setThemeOptionDefault('zpskel_strip', 'latest');
     setThemeOptionDefault('zpskel_thumbsize', 'large');
     setThemeOptionDefault('zpskel_download', true);
     setThemeOptionDefault('zpskel_archive', true);
     setThemeOptionDefault('zenpage_homepage', 'none');
     if (class_exists('cacheManager')) {
         cacheManager::deleteThemeCacheSizes('zpskeleton');
         cacheManager::addThemeCacheSize('zpskeleton', null, 420, 200, 420, 200, null, null, null, true, getOption('Image_watermark'), false, false);
         // album thumbs
         cacheManager::addThemeCacheSize('zpskeleton', 220, null, null, null, null, null, null, true, getOption('Image_watermark'), false, false);
         // image thumbs: uncropped large
         cacheManager::addThemeCacheSize('zpskeleton', 190, null, null, null, null, null, null, true, getOption('Image_watermark'), false, false);
         // image thumbs: uncropped small
         cacheManager::addThemeCacheSize('zpskeleton', null, 190, 190, 190, 190, null, null, true, getOption('Image_watermark'), false, false);
         // bottom image strip
         cacheManager::addThemeCacheSize('zpskeleton', 420, null, null, null, null, null, null, false, getOption('fullimage_watermark'), null, null);
         // mobile full
         cacheManager::addThemeCacheSize('zpskeleton', 630, null, null, null, null, null, null, false, getOption('fullimage_watermark'), null, null);
         // desktop full
     }
 }
コード例 #16
0
 function ThemeOptions()
 {
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('Allow_cloud', true);
     setThemeOptionDefault('albums_per_row', 2);
     setThemeOptionDefault('images_per_row', 5);
     setThemeOptionDefault('thumb_transition', 1);
     setThemeOptionDefault('thumb_size', 85);
     setOptionDefault('colorbox_garland_image', 1);
     setOptionDefault('colorbox_garland_album', 1);
     setOptionDefault('colorbox_garland_search', 1);
     setThemeOptionDefault('garland_menu', '');
     if (getOption('zp_plugin_zenpage')) {
         setThemeOption('custom_index_page', 'gallery', NULL, NULL, false);
     } else {
         setThemeOption('custom_index_page', '', NULL, NULL, false);
     }
     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,"inner_ul",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","inner_ul","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","inner_ul","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));
         createMenuIfNotExists($menuitems, 'garland');
     }
 }
コード例 #17
0
ファイル: themeoptions.php プロジェクト: ariep/ZenPhoto20-DEV
 function __construct()
 {
     $me = basename(dirname(__FILE__));
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('thumb_transition', 1);
     setThemeOption('thumb_size', 79, NULL, 'zpmobile');
     setThemeOptionDefault('thumb_crop_width', 79);
     setThemeOptionDefault('thumb_crop_height', 79);
     setThemeOptionDefault('thumb_crop', 1);
     setThemeOptionDefault('albums_per_page', 6);
     setThemeOptionDefault('albums_per_row', 1);
     setThemeOptionDefault('images_per_page', 24);
     setThemeOptionDefault('images_per_row', 6);
     setOptionDefault('colorbox_zpmobile_album', 1);
     setOptionDefault('colorbox_zpmobile_favorites', 1);
     setOptionDefault('colorbox_zpmobile_image', 1);
     setOptionDefault('colorbox_zpmobilet_search', 1);
     if (class_exists('cacheManager')) {
         cacheManager::deleteThemeCacheSizes('zpMobile');
         cacheManager::addThemeCacheSize('zpMobile', NULL, 79, 79, 79, 79, NULL, NULL, true, NULL, NULL, NULL);
     }
 }
コード例 #18
0
ファイル: themeoptions.php プロジェクト: ariep/ZenPhoto20-DEV
 function __construct()
 {
     setThemeOptionDefault('albums_per_row', 3);
     setThemeOptionDefault('albums_per_page', 9);
     setThemeOptionDefault('images_per_row', 4);
     setThemeOptionDefault('images_per_page', 16);
     setThemeOptionDefault('thumb_size', 220);
     setThemeOptionDefault('thumb_crop', 1);
     setThemeOptionDefault('thumb_crop_width', 220);
     setThemeOptionDefault('thumb_crop_height', 220);
     setThemeOptionDefault('image_size', 800, NULL);
     setThemeOptionDefault('image_use_side', 'longest');
     setThemeOptionDefault('zpB_homepage', true);
     setThemeOptionDefault('allow_search', true);
     setThemeOptionDefault('zpB_show_archive', true);
     setThemeOptionDefault('zpB_show_tags', true);
     setThemeOptionDefault('zpB_social_links', true);
     setThemeOptionDefault('zpB_show_exif', true);
     // configure some zenphoto plugin options
     setOption('colorbox_zpBootstrap_album', 1);
     setOption('colorbox_zpBootstrap_favorites', 1);
     setOption('colorbox_zpBootstrap_image', 1);
     setOption('colorbox_zpBootstrap_search', 1);
     setOption('slideshow_zpBootstrap_album', 1);
     setOption('slideshow_zpBootstrap_image', 1);
     setOption('slideshow_zpBootstrap_favorites', 1);
     setOption('slideshow_zpBootstrap_search', 1);
     setOption('cycle_zpBootstrap_album', 1);
     setOption('cycle_zpBootstrap_image', 1);
     setOption('cycle_zpBootstrap_favorites', 1);
     setOption('cycle_zpBootstrap_search', 1);
     if (class_exists('cacheManager')) {
         $me = basename(dirname(__FILE__));
         cacheManager::deleteThemeCacheSizes($me);
         cacheManager::addThemeCacheSize($me, getThemeOption('thumb_size'), NULL, NULL, getThemeOption('thumb_crop_width'), getThemeOption('thumb_crop_height'), NULL, NULL, true);
         cacheManager::addThemeCacheSize($me, getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false);
     }
 }
コード例 #19
0
 function ThemeOptions()
 {
     setThemeOptionDefault('Allow_search', true);
     setThemeOptionDefault('Allow_images_with_albums', true);
     setThemeOptionDefault('google_analytics_key', '');
 }
コード例 #20
0
ファイル: themeoptions.php プロジェクト: BimbaLaszlo/zpbase
 function ThemeOptions()
 {
     // force core theme options for this theme
     setThemeOption('albums_per_row', 3, null, 'zpbase');
     setThemeOption('images_per_row', 3, null, 'zpbase');
     setThemeOption('image_use_side', 'longest', null, 'zpbase');
     // set core theme option defaults
     setThemeOptionDefault('albums_per_page', 6);
     setThemeOptionDefault('images_per_page', 12);
     setThemeOptionDefault('thumb_crop', false);
     // set zpbase option defaults
     setThemeOptionDefault('zpbase_pnglogo', '');
     setThemeOptionDefault('zpbase_style', 'light');
     setThemeOptionDefault('zpbase_maxwidth', '960');
     setThemeOptionDefault('zpbase_verticalscale', true);
     setThemeOptionDefault('zpbase_align', 'center');
     setThemeOptionDefault('zpbase_date_albums', true);
     setThemeOptionDefault('zpbase_date_images', true);
     setThemeOptionDefault('zpbase_date_news', true);
     setThemeOptionDefault('zpbase_date_pages', true);
     setThemeOptionDefault('zpbase_social', true);
     setThemeOptionDefault('zpbase_download', true);
     setThemeOptionDefault('zpbase_selectmenu', 'chosen');
     setThemeOptionDefault('zpbase_indexlayout', 'index-grid');
     setThemeOptionDefault('zpbase_galleryishome', true);
     setThemeOptionDefault('zpbase_defaultalbum', 'album-grid');
     setThemeOptionDefault('zpbase_newsstyle', 'masonry-style');
     setThemeOptionDefault('zpbase_searchlayout', 'search-masonry');
     setThemeOptionDefault('zpbase_usenews', true);
     setThemeOptionDefault('zpbase_newsname', '');
     setThemeOptionDefault('zpbase_archive', true);
     setThemeOptionDefault('zpbase_iscrollbehavior', 'manual-first');
     setThemeOptionDefault('zpbase_galss', true);
     setThemeOptionDefault('zpbase_galclicknext', false);
     setThemeOptionDefault('zpbase_galcropop', 'landscape');
     setThemeOptionDefault('zpbase_galpan', false);
     setThemeOptionDefault('zpbase_galcaption', false);
     setThemeOptionDefault('zpbase_galhomeop', 'albums');
     setThemeOptionDefault('zpbase_galhomecount', 30);
     setThemeOptionDefault('zpbase_galautoplay', false);
     setThemeOptionDefault('zpbase_galinterval', '4000');
     setThemeOptionDefault('zpbase_galtrans', 'fadeslide');
     setThemeOptionDefault('zpbase_galtranspeed', '400');
     setThemeOptionDefault('zpbase_galhistory', true);
     setThemeOptionDefault('zpbase_galbigsize', 1200);
     setThemeOptionDefault('zpbase_googlefont1', '');
     setThemeOptionDefault('zpbase_googlefont2', '');
     setThemeOptionDefault('zpbase_fontsize', '12');
     setThemeOptionDefault('zpbase_customcss', '');
     setThemeOptionDefault('zpbase_bg', '');
     setThemeOptionDefault('zpbase_facebook', '');
     setThemeOptionDefault('zpbase_twitter', '');
     setThemeOptionDefault('zpbase_google', '');
     setThemeOptionDefault('zpbase_copy', '© ' . date("Y"));
     setThemeOptionDefault('zpbase_cbtarget', true);
     setThemeOptionDefault('zpbase_nodetailpage', false);
     setThemeOptionDefault('zpbase_disqus', false);
     setThemeOptionDefault('zpbase_disqus_shortname', '');
     setThemeOptionDefault('zpbase_disqus_comment_form_albums', true);
     setThemeOptionDefault('zpbase_disqus_comment_form_images', true);
     setThemeOptionDefault('zpbase_disqus_comment_form_pages', false);
     setThemeOptionDefault('zpbase_disqus_comment_form_articles', true);
     setThemeOptionDefault('zpbase_magnific_grid', false);
     setThemeOptionDefault('zpbase_magnific_masonry', true);
     setThemeOptionDefault('zpbase_magnific_sds', true);
     setThemeOptionDefault('zpbase_magnific_target', 'image');
     setThemeOptionDefault('zpbase_mobiletogrid', true);
     setThemeOptionDefault('zpbase_sds_maxheight', 500);
     setThemeOptionDefault('zpbase_sds_pagination', 'paginate');
     setThemeOptionDefault('zpbase_analytics', '');
     setThemeOptionDefault('zpbase_analytics_type', 'universal');
     // set image sizes based on maxwidth
     setThemeOption('image_size', round(getOption('zpbase_maxwidth')), null, 'zpbase');
     setThemeOption('thumb_size', round(0.31 * getOption('zpbase_maxwidth')), null, 'zpbase');
     if (class_exists('cacheManager')) {
         $me = basename(dirname(__FILE__));
         cacheManager::deleteThemeCacheSizes($me);
         cacheManager::addThemeCacheSize($me, getThemeOption('image_size'), NULL, NULL, NULL, NULL, NULL, NULL, false, getOption('fullimage_watermark'), NULL, NULL);
         // full image size
         cacheManager::addThemeCacheSize($me, getThemeOption('thumb_size'), NULL, NULL, NULL, NULL, NULL, NULL, true, getOption('Image_watermark'), NULL, NULL);
         // default thumb
         cacheManager::addThemeCacheSize($me, getThemeOption('zpbase_galbigsize'), NULL, NULL, NULL, NULL, NULL, NULL, false, getOption('fullimage_watermark'), NULL, NULL);
         //slideshow big image
         cacheManager::addThemeCacheSize($me, NULL, NULL, getOption('zpbase_sds_maxheight'), NULL, NULL, NULL, NULL, true, getOption('Image_watermark'), NULL, NULL);
         //sds layout image
     }
 }
コード例 #21
0
 function ThemeOptions()
 {
     setThemeOption('thumb_size', 120, NULL, 'grey-simplicity');
     setThemeOptionDefault('highslide', 1);
 }
コード例 #22
0
 function ThemeOptions()
 {
     // force core theme options for this theme
     setThemeOption('thumb_size', 168, null, 'zpmasonry');
     setThemeOption('thumb_crop', 1, null, 'zpmasonry');
     setThemeOption('image_use_side', 'longest', null, 'zpmasonry');
     setThemeOption('custom_index_page', 'none', null, 'zpmasonry');
     // set core theme option defaults
     setThemeOptionDefault('image_size', 1200);
     setThemeOptionDefault('albums_per_row', 6);
     setThemeOptionDefault('images_per_row', 9);
     setThemeOptionDefault('albums_per_page', 16);
     setThemeOptionDefault('images_per_page', 32);
     setThemeOptionDefault('thumb_transition', 2);
     // set theme option defaults
     setOptionDefault('zpmas_usenews', true);
     setOptionDefault('zpmas_css', 'dark');
     setOptionDefault('zpmas_logo', '');
     setOptionDefault('zpmas_logoheight', '');
     setOptionDefault('zpmas_zpsearchcount', 2);
     setOptionDefault('zpmas_finallink', 'nolink');
     setOptionDefault('zpmas_disablemeta', false);
     setOptionDefault('zpmas_imagetitle', false);
     setOptionDefault('zpmas_thumbsize', 'small');
     setOptionDefault('zpmas_thumbcrop', true);
     setOptionDefault('zpmas_infscroll', true);
     setOptionDefault('zpmas_fixsidebar', true);
     setOptionDefault('zpmas_cbtarget', true);
     setOptionDefault('zpmas_cbstyle', 'example3');
     setOptionDefault('zpmas_cbtransition', 'fade');
     setOptionDefault('zpmas_cbssspeed', '2500');
     setOptionDefault('zpmas_ss', true);
     setOptionDefault('zpmas_sstype', 'random');
     setOptionDefault('zpmas_sscount', 5);
     setOptionDefault('zpmas_sseffect', 'fade');
     setOptionDefault('zpmas_ssspeed', '4000');
     setOptionDefault('jcarousel_zpmasonry_image', 1);
     if (class_exists('cacheManager')) {
         cacheManager::deleteThemeCacheSizes('zpmasonry');
         cacheManager::addThemeCacheSize('zpmasonry', null, 108, 108, 108, 108, null, null, null, true, getOption('Image_watermark'), false, false);
         // image thumbs - small
         cacheManager::addThemeCacheSize('zpmasonry', null, 248, 248, 248, 248, null, null, true, getOption('Image_watermark'), false, false);
         // album thumbs - small - square
         cacheManager::addThemeCacheSize('zpmasonry', null, 248, 125, 248, 125, null, null, true, getOption('Image_watermark'), false, false);
         // album thumbs - small - landscape
         cacheManager::addThemeCacheSize('zpmasonry', null, 528, 528, 528, 528, null, null, true, getOption('Image_watermark'), false, false);
         // fp slideshow - small - square
         cacheManager::addThemeCacheSize('zpmasonry', null, 528, 270, 528, 270, null, null, true, getOption('Image_watermark'), false, false);
         // fp slideshow - small - landscape
         cacheManager::addThemeCacheSize('zpmasonry', null, 168, 168, 168, 168, null, null, null, true, getOption('Image_watermark'), false, false);
         // image thumbs - large
         cacheManager::addThemeCacheSize('zpmasonry', null, 368, 368, 368, 368, null, null, true, getOption('Image_watermark'), false, false);
         // album thumbs - large - square
         cacheManager::addThemeCacheSize('zpmasonry', null, 368, 200, 368, 200, null, null, true, getOption('Image_watermark'), false, false);
         // album thumbs - large - landscape
         cacheManager::addThemeCacheSize('zpmasonry', null, 768, 768, 768, 768, null, null, true, getOption('Image_watermark'), false, false);
         // fp slideshow - large - square
         cacheManager::addThemeCacheSize('zpmasonry', null, 768, 360, 768, 360, null, null, true, getOption('Image_watermark'), false, false);
         // fp slideshow - large - landscape
         cacheManager::addThemeCacheSize('zpmasonry', 1200, null, null, null, null, null, null, false, getOption('fullimage_watermark'), null, null);
         // full image
     }
 }