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


PHP getThemeOption函数代码示例

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


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

示例1: __construct

 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);
     }
 }
开发者ID:rb26,项目名称:zenphoto,代码行数:26,代码来源:themeoptions.php

示例2: __construct

 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');
     }
 }
开发者ID:bgenere,项目名称:negpos,代码行数:35,代码来源:themeoptions.php

示例3: ThemeOptions

 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);
     }
 }
开发者ID:benuri,项目名称:DevTools,代码行数:33,代码来源:themeoptions.php

示例4: ThemeOptions

 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
     }
 }
开发者ID:ckfreeman,项目名称:libratus,代码行数:59,代码来源:themeoptions.php

示例5: __construct

 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);
     }
 }
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:49,代码来源:themeoptions.php

示例6: css_head

function css_head($ignore)
{
    global $themecolors, $zenCSS, $themeColor, $_zp_themeroot;
    if (!$themeColor) {
        $themeColor = getThemeOption('Theme_colors');
    }
    if ($editorConfig = getOption('tinymce4_comments')) {
        if (strpos($themeColor, 'dark') !== false) {
            setOption('tinymce4_comments', 'dark_' . $editorConfig, false);
        }
    }
    $zenCSS = $_zp_themeroot . '/styles/' . $themeColor . '.css';
    $unzenCSS = str_replace(WEBPATH, '', $zenCSS);
    if (!file_exists(SERVERPATH . internalToFilesystem($unzenCSS))) {
        $zenCSS = $_zp_themeroot . "/styles/light.css";
    }
    return $ignore;
}
开发者ID:rb26,项目名称:zenphoto,代码行数:18,代码来源:functions.php

示例7: EF_head

function EF_head($ignore)
{
    global $themeColor;
    if (!$themeColor) {
        $themeColor = getThemeOption('Theme_colors');
    }
    if (!file_exists(SERVERPATH . '/' . DATA_FOLDER . '/effervescence_plus/styles/' . $themeColor . '.css') || filemtime(SERVERPATH . '/' . DATA_FOLDER . '/effervescence_plus/styles/' . $themeColor . '.css') < filemtime(SERVERPATH . '/' . THEMEFOLDER . '/effervescence_plus/styles/' . $themeColor . '.txt')) {
        eval(file_get_contents(SERVERPATH . '/' . THEMEFOLDER . '/effervescence_plus/styles/' . $themeColor . '.txt'));
        $css = file_get_contents(SERVERPATH . '/' . THEMEFOLDER . '/effervescence_plus/base.css');
        $css = strtr($css, $tr);
        $css = preg_replace('|\\.\\./images/|', WEBPATH . '/' . THEMEFOLDER . '/effervescence_plus/images/', $css);
        mkdir_recursive(SERVERPATH . '/' . DATA_FOLDER . '/effervescence_plus/styles/', FOLDER_MOD);
        file_put_contents(SERVERPATH . '/' . DATA_FOLDER . '/effervescence_plus/styles/' . $themeColor . '.css', $css);
    }
    ?>
	<link rel="stylesheet" href="<?php 
    echo WEBPATH . '/' . DATA_FOLDER;
    ?>
/effervescence_plus/styles/<?php 
    echo $themeColor;
    ?>
.css" type="text/css" />
	<link rel="stylesheet" href="<?php 
    echo WEBPATH . '/' . THEMEFOLDER;
    ?>
/effervescence_plus/common.css" type="text/css" />
	<script type="text/javascript">
		// <!-- <![CDATA[
		function blurAnchors() {
			if (document.getElementsByTagName) {
				var a = document.getElementsByTagName("a");
				for (var i = 0; i < a.length; i++) {
					a[i].onfocus = function() {
						this.blur()
					};
				}
			}
		}
		// ]]> -->
	</script>
	<?php 
    return $ignore;
}
开发者ID:rb26,项目名称:zenphoto,代码行数:43,代码来源:functions.php

示例8: handleOption

 function handleOption($option, $currentValue)
 {
     switch ($option) {
         case 'garland_menu':
             $menusets = array();
             echo '<select id="garland_menuset" name="garland_menu"';
             if (function_exists('printCustomMenu') && getThemeOption('custom_index_page', NULL, 'garland') === 'gallery') {
                 $result = query_full_array("SELECT DISTINCT menuset FROM " . prefix('menu') . " ORDER BY menuset");
                 foreach ($result as $set) {
                     $menusets[$set['menuset']] = $set['menuset'];
                 }
             } else {
                 echo ' disabled="disabled"';
             }
             echo ">\n";
             echo '<option value="" style="background-color:LightGray">' . gettext('*standard menu') . '</option>';
             generateListFromArray(array($currentValue), $menusets, false, false);
             echo "</select>\n";
             break;
     }
 }
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:21,代码来源:themeoptions.php

示例9: getTheme

/**
 * @deprecated
 * @since 1.4.4
 */
function getTheme(&$zenCSS, &$themeColor, $defaultColor)
{
    deprecated_functions::notify(gettext("If you need this function copy it to your theme’s functions.php script."));
    global $_zp_themeroot;
    $themeColor = getThemeOption('Theme_colors');
    $zenCSS = $_zp_themeroot . '/styles/' . $themeColor . '.css';
    $unzenCSS = str_replace(WEBPATH, '', $zenCSS);
    if (!file_exists(SERVERPATH . internalToFilesystem($unzenCSS))) {
        $zenCSS = $_zp_themeroot . "/styles/" . $defaultColor . ".css";
        return $themeColor == '';
    } else {
        return true;
    }
}
开发者ID:rb26,项目名称:zenphoto,代码行数:18,代码来源:deprecated-functions.php

示例10: printHomeLink

		<div id="wrapnav">
			<div id="navbar">
				<span><?php 
if ($_zp_gallery->getWebsiteURL()) {
    printHomeLink('', ' | ');
}
echo gettext('Home');
?>
</span>
			</div>
		</div> <!-- wrapnav -->

	</div> <!-- header -->
		<!-- The Image -->
		<?php 
$randomImage = getRandomImages($imageofday = getThemeOption('effervescence_daily_album_image'));
if ($randomImage) {
    makeImageCurrent($randomImage);
    $size = floor(getOption('image_size') * $imagereduction);
    $s = getDefaultWidth($size) + 22;
    $wide = " style=\"width:" . $s . "px;";
    $s = getDefaultHeight($size) + 72;
    $high = " height:" . $s . "px;\"";
} else {
    $wide = " style=\"width:332px;";
    $high = " height:162px;\"";
}
if ($imageofday) {
    ?>
			<p align="center">
			<?php 
开发者ID:rauldobrota,项目名称:zenphoto,代码行数:31,代码来源:indexpage.php

示例11: gettext

            echo gettext("Theme head &lt;title&gt; tag");
            ?>
</td>
											<td>
												<label><input type="checkbox" name="theme_head_listparents" value="1"<?php 
            if (getThemeOption('theme_head_listparents', $album, $themename)) {
                echo ' checked="checked"';
            }
            ?>
 /><?php 
            echo gettext('enabled');
            ?>
</label>
												<br />
												<input type="text" name="theme_head_separator" size="2em" value="<?php 
            echo getThemeOption('theme_head_separator', $album, $themename);
            ?>
" /><?php 
            echo "separator";
            ?>
											</td>
											<td><?php 
            echo gettext('Select if you want parent breadcrumbs and if so the separator for them.');
            ?>
</td>
										</tr>


										<?php 
        }
        if (count($supportedOptions) > 0) {
开发者ID:ariep,项目名称:ZenPhoto20-DEV,代码行数:31,代码来源:admin-options.php

示例12: ThemeOptions

 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
     }
 }
开发者ID:BimbaLaszlo,项目名称:zpbase,代码行数:87,代码来源:themeoptions.php

示例13: get_template_part

 * Author URI: http://www.rcbdesigns.net
 * Tags: xenforo
 * File: content-frontpage.php
 * 
 * Loads the specific loop for the front page of the site.
 */
if (getThemeOption("homepage_block") == 1) {
    get_template_part('content', 'page');
} else {
    the_post();
    addScript("div.titleBar", "html", "<h1>" . get_the_title() . "</h1>");
}
$tmp = $wp_query;
$wp_query = null;
$wp_query = new WP_Query();
$args = array('posts_per_page' => 4, 'cat' => getThemeOption("featured_cat"), 'paged' => $paged);
$wp_query->query($args);
while ($wp_query->have_posts()) {
    $wp_query->the_post();
    ?>
    <fieldset>
        <ol class="nodeList sectionMain" id="forums">
            <li class="node category level_1" id="main-category.1">
                <div class="nodeInfo categoryNodeInfo categoryStrip">
                    <div class="categoryText">
                        <h3 class="nodeTitle">
                            <a href="<?php 
    echo get_permalink();
    ?>
"><?php 
    echo get_the_title();
开发者ID:rberrill,项目名称:XenDynamic,代码行数:31,代码来源:content-frontpage.php

示例14: getTheme

/**
 * Finds the name of the themeColor option selected on the admin options tab
 * Returns a path and name of the theme css file. Returns the value passed for defaultcolor if the
 * theme css option file does not exist.
 *
 * @param string &$zenCSS path to the css file
 * @param string &$themeColor name of the css file
 * @param string $defaultColor name of the default css file
 * @return string
 * @since 1.1
 */
function getTheme(&$zenCSS, &$themeColor, $defaultColor)
{
    global $_zp_themeroot;
    $themeColor = getThemeOption('Theme_colors');
    $zenCSS = $_zp_themeroot . '/styles/' . $themeColor . '.css';
    $unzenCSS = str_replace(WEBPATH, '', $zenCSS);
    if (!file_exists(SERVERPATH . internalToFilesystem($unzenCSS))) {
        $zenCSS = $_zp_themeroot . "/styles/" . $defaultColor . ".css";
        return $themeColor == '';
    } else {
        return true;
    }
}
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:24,代码来源:template-functions.php

示例15: customOptions

function customOptions($optionHandler, $indent = "", $album = NULL, $showhide = false, $supportedOptions = NULL, $theme = false, $initial = 'none')
{
    if (is_null($supportedOptions)) {
        $supportedOptions = $optionHandler->getOptionsSupported();
    }
    if (count($supportedOptions) > 0) {
        $whom = get_class($optionHandler);
        $options = $supportedOptions;
        $option = array_shift($options);
        if (array_key_exists('order', $option)) {
            $options = sortMultiArray($supportedOptions, 'order');
            $options = array_keys($options);
        } else {
            $options = array_keys($supportedOptions);
            natcasesort($options);
        }
        foreach ($options as $option) {
            $row = $supportedOptions[$option];
            if (false !== ($i = stripos($option, chr(0)))) {
                $option = substr($option, 0, $i);
            }
            $type = $row['type'];
            $desc = $row['desc'];
            $key = $row['key'];
            $optionID = $whom . '_' . $key;
            if (isset($row['multilingual'])) {
                $multilingual = $row['multilingual'];
            } else {
                $multilingual = $type == OPTION_TYPE_TEXTAREA;
            }
            if (isset($row['texteditor']) && $row['texteditor']) {
                $editor = 'texteditor';
            } else {
                $editor = '';
            }
            if (isset($row['disabled']) && $row['disabled']) {
                $disabled = ' disabled="disabled"';
            } else {
                $disabled = '';
            }
            if ($theme) {
                $v = getThemeOption($key, $album, $theme);
            } else {
                $sql = "SELECT `value` FROM " . prefix('options') . " WHERE `name`=" . db_quote($key);
                $db = query_single_row($sql);
                if ($db) {
                    $v = $db['value'];
                } else {
                    $v = NULL;
                }
            }
            if ($showhide) {
                ?>
				<tr id="tr_<?php 
                echo $optionID;
                ?>
" class="<?php 
                echo $showhide;
                ?>
extrainfo" style="display:<?php 
                echo $initial;
                ?>
">
				<?php 
            } else {
                ?>
				<tr id="tr_<?php 
                echo $optionID;
                ?>
">
				<?php 
            }
            if ($type != OPTION_TYPE_NOTE) {
                ?>
				<td width="175"><?php 
                if ($option) {
                    echo $indent . $option;
                }
                ?>
</td>
				<?php 
            }
            switch ($type) {
                case OPTION_TYPE_NOTE:
                    ?>
					<td colspan="3"><?php 
                    echo $desc;
                    ?>
</td>
					<?php 
                    break;
                case OPTION_TYPE_CLEARTEXT:
                    $multilingual = false;
                case OPTION_TYPE_TEXTBOX:
                case OPTION_TYPE_TEXTAREA:
                    if ($type == OPTION_TYPE_CLEARTEXT) {
                        $clear = 'clear';
                    } else {
                        $clear = '';
                    }
//.........这里部分代码省略.........
开发者ID:hatone,项目名称:zenphoto-1.4.1.4,代码行数:101,代码来源:admin-functions.php


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