{
        $key = '';
        if (ci_setting('google_maps_api_key')) {
            $key = 'key=' . ci_setting('google_maps_api_key') . '&';
        }
        $google_url = "//maps.googleapis.com/maps/api/js?" . $key . "v=3.5&sensor=false";
        wp_register_script('google-maps', $google_url, array(), null, false);
    }
} else {
    ?>

	<fieldset id="ci-panel-google-maps-api" class="set">
		<p class="guide"><?php 
    _e('The Google Maps API must be loaded only once in each page. Since many plugins may try to load it as well, you might want to disable it from the theme to avoid potential errors.', 'ci_theme');
    ?>
</p>
		<?php 
    ci_panel_checkbox('google_maps_api_enable', 'on', __('Load Google Maps API.', 'ci_theme'));
    ?>

		<p class="guide"><?php 
    echo sprintf(__('Enter here your Google Maps API Key. While your maps will be displayed at first without an API key, if you get a lot of visits to your site (more than 25.000 per day currently), the maps might stop working. In that case, you need to issue a key from <a href="%s">Google Accounts</a>', 'ci_theme'), 'https://code.google.com/apis/console/');
    ?>
</p>
		<?php 
    ci_panel_input('google_maps_api_key', __('Google Maps API Key', 'ci_theme'));
    ?>
	</fieldset>

<?php 
}
示例#2
0
	</fieldset>

	<fieldset class="set">
		<p class="guide"><?php 
    _e('Set how many products per page should be displayed on product listing pages (e.g. shop page, category pages, etc). Use <strong>-1</strong> for no limit.', 'ci_theme');
    ?>
</p>
		<?php 
    ci_panel_input('eshop_posts_per_page', __('Products per page', 'ci_theme'));
    ?>

		<p class="guide"><?php 
    _e('Set additional numbers for viewing more products in product listing pages (e.g. shop page).', 'ci_theme');
    ?>
</p>

		<?php 
    ci_panel_input('eshop_products_view_first', __('First selection (single number, e.g. 20):', 'ci_theme'));
    ?>
		<?php 
    ci_panel_input('eshop_products_view_second', __('Second selection (single number, e.g. 50):', 'ci_theme'));
    ?>
		<p>
			<?php 
    ci_panel_checkbox('eshop_products_view_all', 'enabled', __('Enable View All Products Option?', 'ci_theme'));
    ?>
		</p>
	</fieldset>

<?php 
}
    $ci_defaults['slider_duration'] = 600;
} else {
    ?>
		
	<fieldset id="ci-panel-slider-flexslider" class="set">
		<legend><?php 
    _e('Main Slider', 'ci_theme');
    ?>
</legend>
		<p class="guide"><?php 
    _e('The following options control the main slider. You may enable or disable auto-sliding by checking the appropriate option and further control its behavior.', 'ci_theme');
    ?>
</p>
		<fieldset id="flexslider-slider-autoslide">
			<?php 
    ci_panel_checkbox('slider_autoslide', 'enabled', __('Enable auto-slide', 'ci_theme'));
    ?>
		</fieldset>
		<fieldset id="flexslider-slider-effect">
			<?php 
    $slider_effects = array('fade' => _x('Fade', 'slider effect', 'ci_theme'), 'slide' => _x('Slide', 'slider effect', 'ci_theme'));
    ci_panel_dropdown('slider_effect', $slider_effects, __('Slider Effect', 'ci_theme'));
    ?>
		</fieldset>
		<fieldset id="flexslider-slider-direction">
			<?php 
    $slider_direction = array('horizontal' => _x('Horizontal', 'slider direction', 'ci_theme'), 'vertical' => _x('Vertical', 'slider direction', 'ci_theme'));
    ci_panel_dropdown('slider_direction', $slider_direction, __('Slide Direction (only for <b>Slide</b> effect)', 'ci_theme'));
    ?>
		</fieldset>
		<fieldset id="flexslider-slider-speed">
示例#4
0
    ?>
		
	<fieldset id="ci-panel-seo" class="set">
		<legend><?php 
    _e('SEO', 'ci_theme');
    ?>
</legend>
		<p class="guide">
			<?php 
    _e('As of WordPress v4.1 it is recommended to let WordPress manage the &lt;title> tag itself in a standard way. Good SEO plugins should be able to manipulate this title.', 'ci_theme');
    echo '<br />';
    _e('The theme provides some title-manipulation options until this feature is fully implemented. Un-check the following checkbox to fine-tune the title tag manually. These options will be removed completely when WordPress reaches v4.3.', 'ci_theme');
    ?>
		</p>
		<?php 
    ci_panel_checkbox('wp_title_tag', 'on', __('Let WordPress manage the title tag.', 'ci_theme'), array('input_class' => 'check toggle-button'));
    ?>

		<div class="toggle-pane">

			<p class="guide">
				<?php 
    echo __('Select how you want the &lt;title> tag handled. "<b>Automatic title</b>" checks a list of known SEO plugins and behaves accordingly. This is the recommended setting if the SEO plugin you use is detected properly.', 'ci_theme') . ' ' . __('"<b>Use the theme\'s default title</b>" gives a good result if you don\'t have a SEO plugin installed.', 'ci_theme') . ' ' . __('"<b>Use pure WordPress function</b>" should only be used if you have a SEO plugin installed that isn\'t detected, and the plugin\'s documentation suggests to change the title tag function to <b>wp_title(\'\');</b> . In that case, you don\'t need to edit any files, just select this option.', 'ci_theme');
    ?>
			</p>
			<p class="guide">
				<?php 
    $seo_plugin = ci_check_seo_plugin();
    if ($seo_plugin === false) {
        _e('A known SEO plugin could not be detected.', 'ci_theme');
    } else {
示例#5
0
		<fieldset>
			<?php 
    ci_panel_upload_image('touch_favicon', __('Upload your touch icon (57x57px, non-Retina iPhone, iPod Touch, Android 2.1+)', 'ci_theme'));
    ?>
			<?php 
    ci_panel_checkbox('touch_favicon_pre', 'enabled', __('Precomposed', 'ci_theme'));
    ?>
		</fieldset>

		<fieldset>
			<?php 
    ci_panel_upload_image('touch_favicon_72', __('Upload your touch icon (72x72px, 1st generation iPad)', 'ci_theme'));
    ?>
			<?php 
    ci_panel_checkbox('touch_favicon_72_pre', 'enabled', __('Precomposed', 'ci_theme'));
    ?>
		</fieldset>

		<fieldset>
			<?php 
    ci_panel_upload_image('touch_favicon_114', __('Upload your touch icon (114x114px, iPhone 4+, Retina display)', 'ci_theme'));
    ?>
			<?php 
    ci_panel_checkbox('touch_favicon_114_pre', 'enabled', __('Precomposed', 'ci_theme'));
    ?>
		</fieldset>

	</fieldset>
<?php 
}
</p>
		<fieldset>
			<?php 
    ci_panel_checkbox('slider_autoslide', 'enabled', __('Enable auto-slide', 'ci_theme'));
    ?>
		</fieldset>
		<fieldset>
			<?php 
    ci_panel_input('slider_timeout', __('Auto-slide timeout (milliseconds)', 'ci_theme'));
    ?>
		</fieldset>
		<fieldset>
			<?php 
    $slider_effects = array('none' => _x('None', 'slider effect', 'ci_theme'), 'cover' => _x('Cover', 'slider effect', 'ci_theme'), 'uncover' => _x('Uncover', 'slider effect', 'ci_theme'), 'fade' => _x('Fade', 'slider effect', 'ci_theme'), 'fadeZoom' => _x('Fade Zoom', 'slider effect', 'ci_theme'), 'shuffle' => _x('Shuffle', 'slider effect', 'ci_theme'), 'toss' => _x('Toss', 'slider effect', 'ci_theme'), 'wipe' => _x('Wipe', 'slider effect', 'ci_theme'), 'zoom' => _x('Zoom', 'slider effect', 'ci_theme'), 'scrollVert' => _x('Scroll Vertically', 'slider effect', 'ci_theme'), 'scrollHorz' => _x('Scroll Horizontally', 'slider effect', 'ci_theme'), 'scrollLeft' => _x('Scroll Left', 'slider effect', 'ci_theme'), 'scrollRight' => _x('Scroll Right', 'slider effect', 'ci_theme'), 'scrollUp' => _x('Scroll Up', 'slider effect', 'ci_theme'), 'scrollDown' => _x('Scroll Down', 'slider effect', 'ci_theme'), 'blindX' => _x('Blind X', 'slider effect', 'ci_theme'), 'blindY' => _x('Blind Y', 'slider effect', 'ci_theme'), 'blindZ' => _x('Blind Z', 'slider effect', 'ci_theme'), 'curtainX' => _x('Curtain X', 'slider effect', 'ci_theme'), 'curtainY' => _x('Curtain Y', 'slider effect', 'ci_theme'), 'growX' => _x('Grow X', 'slider effect', 'ci_theme'), 'growY' => _x('Grow Y', 'slider effect', 'ci_theme'), 'slideX' => _x('Slide X', 'slider effect', 'ci_theme'), 'slideY' => _x('Slide Y', 'slider effect', 'ci_theme'), 'turnUp' => _x('Turn Up', 'slider effect', 'ci_theme'), 'turnDown' => _x('Turn Down', 'slider effect', 'ci_theme'), 'turnLeft' => _x('Turn Left', 'slider effect', 'ci_theme'), 'turnRight' => _x('Turn Right', 'slider effect', 'ci_theme'));
    ci_panel_dropdown('slider_effect', $slider_effects, __('Slider Effect', 'ci_theme'));
    ?>
		</fieldset>
		<fieldset>
			<?php 
    ci_panel_input('slider_speed', __('Slideshow speed in milliseconds (smaller number means faster)', 'ci_theme'));
    ?>
		</fieldset>
		<fieldset>
			<?php 
    ci_panel_checkbox('slider_sync', 'enabled', __('Enable synchronized sliding', 'ci_theme'));
    ?>
		</fieldset>
	</fieldset>
		
<?php 
}
			<?php 
    ci_panel_radio('preview_content', 'use_content', 'enabled', __('Use the Content', 'ci_theme'));
    ci_panel_radio('preview_content', 'use_excerpt', 'disabled', __('Use the Excerpt', 'ci_theme'));
    ?>
		</fieldset>

		<fieldset id="ci-panel-excerpt-read-more">
			<p class="guide mt10"><?php 
    _e('You can set what the Read More text will be. This applies to both the Content and the Excerpt.', 'ci_theme');
    ?>
</p>
			<?php 
    ci_panel_input('read_more_text', __('Read More text', 'ci_theme'));
    ?>
		</fieldset>

		<fieldset id="ci-panel-excerpt-excerpt-options">
			<p class="guide mt10"><?php 
    _e('You can define how long the Excerpt will be (in words). You can also set the text that appears when the excerpt is auto-generated and is automatically cut-off. These options only apply to the Excerpt.', 'ci_theme');
    ?>
</p>
			<?php 
    ci_panel_input('excerpt_length', __('Excerpt length (in words)', 'ci_theme'));
    ci_panel_input('excerpt_text', __('Excerpt auto cut-off text', 'ci_theme'));
    ci_panel_checkbox('excerpt_link_cutoff', 'on', __('Link cut-off text to permalink', 'ci_theme'));
    ?>
		</fieldset>
	</fieldset>
		
<?php 
}
		<legend><?php 
    _e('Featured Image', 'ci_theme');
    ?>
</legend>
		<p class="guide">
			<?php 
    echo sprintf(__('Control whether you want the featured image of each post to be displayed when viewing that post\'s page. The featured image can be shown/hidden on each individual post type, with common dimensions. You can define its width and height <em>(defaults to the content width, currently: %d pixels)</em>, and whether you want it aligned on the left, right or middle of the page.', 'ci_theme'), $content_width);
    echo " ";
    _e('Note that if you change the width and/or the height of the featured images, you will need to regenerate all your thumbnails using an appropriate plugin, such as the <a href="https://wordpress.org/extend/plugins/regenerate-thumbnails/" target="_blank">Regenerate Thumbnails</a> plugin, otherwise your images may appear distorted.', 'ci_theme');
    ?>
		</p>
		<?php 
    $thumb_types = ci_cpt_with_featured_image();
    foreach ($thumb_types as $post_type) {
        $obj = get_post_type_object($post_type);
        ci_panel_checkbox('featured_single_' . $post_type . '_show', 'enabled', sprintf(__('Show featured images on <em>%s</em>', 'ci_theme'), $obj->labels->name));
    }
    ?>
		<fieldset class="mt10">
			<?php 
    ci_panel_input('featured_single_width', __('Featured image Width', 'ci_theme'));
    ?>
			<?php 
    ci_panel_input('featured_single_height', __('Featured image Height', 'ci_theme'));
    ?>
			<?php 
    $align_options = array('alignnone' => __('None', 'ci_theme'), 'alignleft' => __('Left', 'ci_theme'), 'aligncenter' => __('Center', 'ci_theme'), 'alignright' => __('Right', 'ci_theme'));
    ci_panel_dropdown('featured_single_align', $align_options, __('Featured image alignment', 'ci_theme'));
    ?>
		</fieldset>
	</fieldset>
示例#9
0

	<fieldset class="set">
		<legend><?php 
    _e('Galleries', 'ci_theme');
    ?>
</legend>
		<p class="guide"><?php 
    _e('These settings affect the behaviour of the taxonomy listing pages (i.e. NOT listings created with a page template).', 'ci_theme');
    ?>
</p>
		<?php 
    $options = array();
    for ($i = 1; $i <= 4; $i++) {
        $options[$i] = sprintf(_n('1 Column', '%s Columns', $i, 'ci_theme'), $i);
    }
    ci_panel_dropdown('galleries_columns', $options, __('Galleries listing columns:', 'ci_theme'));
    ?>
		<fieldset class="mt20 mb20">
			<?php 
    ci_panel_checkbox('galleries_isotope', 'on', __('Enable category filters (isotope effect).', 'ci_theme'));
    ci_panel_checkbox('galleries_masonry', 'on', __('Enable masonry layout.', 'ci_theme'));
    ?>
		</fieldset>
		<?php 
    ci_panel_input('galleries_per_page', __('Number of galleries per page:', 'ci_theme'));
    ?>
	</fieldset>

<?php 
}
    _e('Archive', 'ci_theme');
    ?>
</legend>
		<fieldset class="set">
			<p class="guide"><?php 
    _e('The number of the latest posts displayed in the archive page.', 'ci_theme');
    ?>
</p>
			<?php 
    ci_panel_input('archive_no', __('Number of latest posts', 'ci_theme'));
    ?>
		</fieldset>
		<fieldset>
			<p class="guide"><?php 
    _e('Use the following options to display various types of archives.', 'ci_theme');
    ?>
</p>
			<?php 
    ci_panel_checkbox('archive_week', 'enabled', __('Display weekly archive', 'ci_theme'));
    ?>
			<?php 
    ci_panel_checkbox('archive_month', 'enabled', __('Display monthly archive', 'ci_theme'));
    ?>
			<?php 
    ci_panel_checkbox('archive_year', 'enabled', __('Display yearly archive', 'ci_theme'));
    ?>
		</fieldset>
	</fieldset>

<?php 
}
示例#11
0
        echo esc_attr($ci[$fieldname]);
        ?>
"><?php 
        $js = "\r\n\t\t\t\t\t\t\t\tif( \$('input[id^=\"bg_f_image_size_\"]:radio:checked').val() == 'custom' )\r\n\t\t\t\t\t\t\t\t\t\$('#" . $fieldname . "').show();\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\$('#" . $fieldname . "').hide();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\$('body').on('change', 'input[id^=\"bg_f_image_size_\"]:radio', function(){\r\n\t\t\t\t\t\t\t\t\tif( \$(this).val() == 'custom' )\r\n\t\t\t\t\t\t\t\t\t\t\$('#" . $fieldname . "').slideDown();\r\n\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\$('#" . $fieldname . "').slideUp();\r\n\t\t\t\t\t\t\t\t}); ";
        ci_add_inline_js($js, $fieldname);
        ?>
					</fieldset>
				</fieldset>
			
				<fieldset class="set">
					<p class="guide"><?php 
        _e("When the fixed background option is checked, the footer's background image will not scroll along with the rest of the page.", 'ci_theme');
        ?>
</p>
					<fieldset>
						<?php 
        ci_panel_checkbox('bg_f_image_attachment', 'fixed', __("Fixed footer's background", 'ci_theme'));
        ?>
					</fieldset>
				</fieldset>
		
			</div>
		</fieldset>
	<?php 
    }
    //if get_ci_theme_support('custom_footer_background')
    ?>


<?php 
}
示例#12
0
		<p>
			<?php 
    ci_panel_checkbox('music_player_autoplay', 'on', __('Enable autoplay on page load?', 'ci_theme'));
    ?>
		</p>
	</fieldset>
	<fieldset class="set">
		<p class="guide"><?php 
    _e('Both Icecast and Shoutcast streams are supported by the player, however you need to find the appropriate stream URL that points to your actual stream, and not a .pls file. If your stream URL contains an IP or it does not seem to work, add a semicolon at the end, e.g. "http://192.102.192.1:8006/stream;".', 'ci_theme');
    ?>
</p>

		<?php 
    ci_panel_input('music_player_stream_url', __('Stream URL:', 'ci_theme'));
    ci_panel_input('music_player_stream_name', __('Stream Name:', 'ci_theme'));
    ?>

		<fieldset class="set">
			<p class="guide"><?php 
    _e('You can enable fetching and display of the current playing song from your server. Please note that this is an experimental feature and specifically requires a SHOUTcast server version 2.0 or higher, and your Stream URL to be in the form of IP:port (e.g. http://192.102.192.1:8006/stream; or similar). If your server does not meet the above requirements it is highly advised to keep this option turned off.', 'ci_theme');
    ?>
</p>
			<?php 
    ci_panel_checkbox('music_player_display_current_track', 'on', __('Show the current playing song.', 'ci_theme'));
    ?>
		</fieldset>

	</fieldset>

<?php 
}
                    return $comments_open;
                }
            } else {
                return $comments_open;
            }
        }
    }
} else {
    ?>

	<fieldset id="ci-panel-comments" class="set">
		<legend><?php 
    _e('Comments', 'ci_theme');
    ?>
</legend>
		<p class="guide"><?php 
    _e('You can disable comments specifically for <b>Pages</b>. This is usually preferred as pages traditionally hold static, presentational content. When checked, <b>all</b> pages will <b>not</b> have comments, overriding each page\'s setting. <br />You can also enable or disable the "Comments are closed" message displayed on the bottom of each post/page/etc when the comments are closed. This applies everywhere.', 'ci_theme');
    ?>
</p>
		<fieldset>
			<?php 
    ci_panel_checkbox('pages_comments_off', 'enabled', __('Disable comments for pages.', 'ci_theme'));
    ?>
			<?php 
    ci_panel_checkbox('comments_off_message', 'enabled', __('Show "Comments are closed" message.', 'ci_theme'));
    ?>
		</fieldset>
	</fieldset>

<?php 
}
    $ci_defaults['ci_show_generator_tag'] = 'on';
} else {
    ?>


	<fieldset id="ci-panel-site-other" class="set">
		<legend><?php 
    _e('Other options', 'ci_theme');
    ?>
</legend>
		<?php 
    /*
    if( !CI_WHITELABEL && apply_filters('ci_show_dashboard_rss', true) ) {
    	ci_panel_checkbox( 'ci_show_dashboard_rss', 'off', __( 'Hide CSSIgniter News Widget from the Dashboard', 'ci_theme' ) );
    }
    */
    ?>

		<p class="guide"><?php 
    _e("The Meta Generator tag is a piece of information added in the head of the generated HTML code that states the theme name and the developer of the theme. While it is not visible to your site's visitors, it does help us gather usage statistics.", 'ci_theme');
    ?>
</p>
		<?php 
    if (!CI_WHITELABEL && apply_filters('ci_show_generator_tag', true)) {
        ci_panel_checkbox('ci_show_generator_tag', 'on', __('Echo a Meta Generator tag (invisible in the website).', 'ci_theme'));
    }
    ?>
	</fieldset>

<?php 
}