예제 #1
0
 function ci_register_theme_styles()
 {
     //
     // Register all front-end and admin styles here.
     // There is no need to register them conditionally, as the enqueueing can be conditional.
     //
     $font_url = '';
     /* translators: If there are characters in your language that are not supported by Source Sans Pro, translate this to 'off'. Do not translate into your own language. */
     if ('off' !== _x('on', 'Source Sans Pro font: on or off', 'ci_theme')) {
         $font_url = add_query_arg('family', urlencode('Source Sans Pro:300,400,700,900,400italic'), "//fonts.googleapis.com/css");
     }
     wp_register_style('ci-google-font', $font_url, array());
     wp_register_style('ci-base', get_child_or_parent_file_uri('/css/base.css'));
     wp_register_style('ci-flexslider', get_child_or_parent_file_uri('/css/flexslider.css'));
     wp_register_style('mmenu', get_child_or_parent_file_uri('/css/mmenu.css'));
     wp_register_style('woocommerce_prettyPhoto_css', get_child_or_parent_file_uri('/css/prettyPhoto.css'));
     wp_register_style('jquery-ui-style', get_child_or_parent_file_uri('/css/admin/jquery-ui.css'), array(), '1.10.4');
     wp_register_style('stapel', get_child_or_parent_file_uri('/css/stapel.css'), array(), '1.10.4');
     wp_register_style('jquery-ui-timepicker', get_child_or_parent_file_uri('/css/admin/jquery-ui-timepicker-addon.css'));
     wp_register_style('ci-repeating-fields', get_child_or_parent_file_uri('/css/admin/repeating-fields.css'));
     wp_register_style('ci-admin-widgets', get_child_or_parent_file_uri('/css/admin/admin-widgets.css'), array('ci-repeating-fields'));
     wp_register_style('ci-post-edit-screens', get_child_or_parent_file_uri('/css/admin/post_edit_screens.css'), array('ci-repeating-fields'));
     wp_register_style('ci-color-scheme', get_child_or_parent_file_uri('/colors/' . ci_setting('stylesheet')));
     wp_register_style('ci-style', get_stylesheet_uri(), array('ci-google-font', 'ci-base', 'ci-flexslider', 'font-awesome', 'mmenu', 'stapel'), CI_THEME_VERSION, 'screen');
 }
예제 #2
0
 function ci_enqueue_social_widget_css()
 {
     if (has_filter('ci_panel_tabs', 'ci_add_tab_social_options') !== false) {
         if (is_active_widget('', '', 'ci_social_widget')) {
             wp_enqueue_style('ci-widget-social', get_child_or_parent_file_uri('/panel/widgets/styles/ci_widget_social.css'), array(), CI_THEME_VERSION);
         }
     }
 }
 function ci_register_theme_styles()
 {
     //
     // Register all front-end and admin styles here.
     // There is no need to register them conditionally, as the enqueueing can be conditional.
     //
     wp_register_style('google-font-lato-lora', '//fonts.googleapis.com/css?family=Lato:700,900|Lora:400,700,400italic,700italic');
     wp_register_style('ci-base', get_child_or_parent_file_uri('/css/base.css'));
     wp_register_style('ci-flexslider', get_child_or_parent_file_uri('/css/flexslider.css'));
     wp_register_style('ci-mmenu', get_child_or_parent_file_uri('/css/mmenu.css'));
     wp_register_style('ci-ilightbox', get_child_or_parent_file_uri('/css/ilightbox.css'));
     wp_register_style('ci-style', get_stylesheet_uri(), array(), CI_THEME_VERSION, 'screen');
     wp_register_style('ci-color-scheme', get_child_or_parent_file_uri('/colors/' . ci_setting('stylesheet')));
 }
 function ci_register_theme_scripts()
 {
     //
     // Register all scripts here, both front-end and admin.
     // There is no need to register them conditionally, as the enqueueing can be conditional.
     //
     wp_register_script('jquery-mmenu', get_child_or_parent_file_uri('/js/jquery.mmenu.min.all.js'), array('jquery'), '4.3.4', true);
     wp_register_script('jquery-flexslider', get_child_or_parent_file_uri('/js/jquery.flexslider.js'), array('jquery'), '2.2.2', true);
     wp_register_script('jquery-requestAnimationFrame', get_child_or_parent_file_uri('/js/jquery.requestAnimationFrame.js'), array('jquery'), false, true);
     wp_register_script('jquery-mousewheel', get_child_or_parent_file_uri('/js/jquery.mousewheel.js'), array('jquery'), '3.0.6', true);
     wp_register_script('ilightbox', get_child_or_parent_file_uri('/js/ilightbox.min.js'), array('jquery'), '2.2.0', true);
     wp_register_script('matchHeight', get_child_or_parent_file_uri('/js/jquery.matchHeight-min.js'), array('jquery'), '1.0', true);
     wp_register_script('ci-front-scripts', get_child_or_parent_file_uri('/js/scripts.js'), array('jquery', 'jquery-superfish', 'jquery-mmenu', 'jquery-flexslider', 'jquery-mousewheel', 'jquery-requestAnimationFrame', 'ilightbox', 'matchHeight', 'jquery-fitVids'), CI_THEME_VERSION, true);
 }
예제 #5
0
 function ci_register_theme_scripts()
 {
     //
     // Register all scripts here, both front-end and admin.
     // There is no need to register them conditionally, as the enqueueing can be conditional.
     //
     wp_register_script('jquery-superfish', get_child_or_parent_file_uri('/js/superfish.js'), array('jquery'), false, true);
     wp_register_script('jquery-flexslider', get_child_or_parent_file_uri('/js/jquery.flexslider.js'), array('jquery'), false, true);
     wp_register_script('prettyPhoto', get_template_directory_uri() . '/js/jquery.prettyPhoto.min.js', array('jquery'), '3.1.6', true);
     wp_register_script('jquery-isotope', get_child_or_parent_file_uri('/js/jquery.isotope.js'), array('jquery'), false, true);
     wp_register_script('jquery-mmenu', get_child_or_parent_file_uri('/js/jquery.mmenu.min.all.js'), array('jquery'), false, true);
     wp_register_script('jquery-matchHeight', get_child_or_parent_file_uri('/js/jquery.matchHeight-min.js'), array('jquery'), false, true);
     wp_register_script('jquery-parallax', get_child_or_parent_file_uri('/js/jquery.parallax-1.1.3.js'), array('jquery'), '1.1.3', true);
     wp_register_script('stapel', get_child_or_parent_file_uri('/js/jquery.stapel.js'), array('jquery'), false, true);
     wp_register_script('soundmanager-core', get_child_or_parent_file_uri('/js/soundmanager2.js'), array('jquery'), '2.97', true);
     wp_register_script('jquery-shoutcast', get_child_or_parent_file_uri('/js/jquery.shoutcast.min.js'), array('jquery'), CI_THEME_VERSION, true);
     wp_register_script('inline-player', get_child_or_parent_file_uri('/js/inlineplayer.js'), array('soundmanager-core'), '2.97', true);
     wp_register_script('ci-audioplayer', get_child_or_parent_file_uri('/js/ci_audioplayer.js'), array('jquery', 'soundmanager-core', 'inline-player'), '2.97', true);
     wp_register_script('jquery-ui-timepicker', get_child_or_parent_file_uri('/js/admin/jquery-ui-timepicker-addon.js'), array('jquery-ui-slider', 'jquery-ui-datepicker'));
     wp_register_script('jquery-gmaps-latlon-picker', get_child_or_parent_file_uri('/js/admin/jquery-gmaps-latlon-picker.js'), array('jquery', 'google-maps'), CI_THEME_VERSION, true);
     wp_register_script('ci-post-edit-scripts', get_child_or_parent_file_uri('/js/admin/post-edit-scripts.js'), array('jquery'), CI_THEME_VERSION, true);
     wp_register_script('ci-admin-widgets', get_child_or_parent_file_uri('/js/admin/admin-widgets.js'), array('jquery'), CI_THEME_VERSION, true);
     wp_register_script('ci-front-scripts', get_child_or_parent_file_uri('/js/scripts.js'), array('jquery', 'jquery-superfish', 'jquery-mmenu', 'jquery-flexslider', 'jquery-matchHeight', 'jquery-fitVids', 'prettyPhoto', 'jquery-isotope', 'jquery-parallax', 'jquery-shoutcast', 'ci-audioplayer', 'stapel'), CI_THEME_VERSION, true);
 }
예제 #6
0
 function ci_change_woocommerce_placeholder_img_src($src)
 {
     return get_child_or_parent_file_uri('/images/placeholder.png');
 }
예제 #7
0
        function form($instance)
        {
            $defaults = array('title' => '', 'post_type_name' => 'post', 'postid' => '');
            $instance = wp_parse_args((array) $instance, $defaults);
            $title = $instance['title'];
            $post_type_name = $instance['post_type_name'];
            $post_id = $instance['postid'];
            ?>
<p><label for="<?php 
            echo $this->get_field_id('title');
            ?>
"><?php 
            _e('Title (optional):', 'ci_theme');
            ?>
</label><input id="<?php 
            echo $this->get_field_id('title');
            ?>
" name="<?php 
            echo $this->get_field_name('title');
            ?>
" type="text" value="<?php 
            echo esc_attr($title);
            ?>
" class="widefat" /></p><?php 
            $post_types = get_post_types(array('public' => true), 'objects');
            unset($post_types['attachment'], $post_types['slider']);
            ?>
<p><label for="<?php 
            echo $this->get_field_id('post_type_name');
            ?>
"><?php 
            _e('Show posts from this post type:', 'ci_theme');
            ?>
</label></p><?php 
            ?>
<select name="<?php 
            echo $this->get_field_name('post_type_name');
            ?>
" id="<?php 
            echo $this->get_field_id('post_type_name');
            ?>
" ><?php 
            foreach ($post_types as $key => $pt) {
                ?>
<option value="<?php 
                echo esc_attr($key);
                ?>
" <?php 
                selected($key, $post_type_name);
                ?>
><?php 
                echo $pt->labels->name;
                ?>
</option><?php 
            }
            ?>
</select> <img src="<?php 
            echo get_child_or_parent_file_uri('/panel/img/ajax-loader-16x16.gif');
            ?>
" class="loading_posts" style="display: none;"><?php 
            ?>
<p></p><?php 
            ?>
<p><label for="<?php 
            echo $this->get_field_id('postid');
            ?>
"><?php 
            _e('Select a post to show:', 'ci_theme');
            ?>
</label></p><?php 
            ?>
<div class="ci_widget_post_type_posts_dropdown"><?php 
            wp_dropdown_posts(array('post_type' => $post_type_name, 'show_option_none' => '&nbsp;', 'selected' => $post_id, 'class' => 'widefat'), $this->get_field_name('postid'));
            ?>
</div><?php 
        }
예제 #8
0
<?php

global $ci, $ci_defaults, $load_defaults;
if ($load_defaults === TRUE) {
    $ci_defaults['touch_favicon'] = get_child_or_parent_file_uri('/panel/img/apple-touch-icon.png');
    $ci_defaults['touch_favicon_pre'] = 'disabled';
    $ci_defaults['touch_favicon_72'] = get_child_or_parent_file_uri('/panel/img/apple-touch-icon-72x72.png');
    $ci_defaults['touch_favicon_72_pre'] = 'disabled';
    $ci_defaults['touch_favicon_114'] = get_child_or_parent_file_uri('/panel/img/apple-touch-icon-114x114.png');
    $ci_defaults['touch_favicon_114_pre'] = 'disabled';
    add_action('wp_head', 'ci_touch_favicon');
    if (!function_exists('ci_touch_favicon')) {
        function ci_touch_favicon()
        {
            if (ci_setting('touch_favicon')) {
                ?>
<link rel="apple-touch-icon<?php 
                echo ci_setting('touch_favicon_pre') == 'enabled' ? '-precomposed' : '';
                ?>
" href="<?php 
                echo esc_attr(ci_setting('touch_favicon'));
                ?>
" /><?php 
            }
            if (ci_setting('touch_favicon_72')) {
                ?>
<link rel="apple-touch-icon<?php 
                echo ci_setting('touch_favicon_72_pre') == 'enabled' ? '-precomposed' : '';
                ?>
" sizes="72x72" href="<?php 
                echo esc_attr(ci_setting('touch_favicon_72'));
예제 #9
0
<?php

global $ci, $ci_defaults, $load_defaults;
if ($load_defaults === TRUE) {
    $ci_defaults['favicon'] = get_child_or_parent_file_uri('/panel/img/favicon.ico');
    add_action('wp_head', 'ci_favicon');
    if (!function_exists('ci_favicon')) {
        function ci_favicon()
        {
            if (ci_setting('favicon')) {
                ?>
<link rel="shortcut icon" type="image/x-icon" href="<?php 
                echo esc_attr(ci_setting('favicon'));
                ?>
" /><?php 
            }
        }
    }
} else {
    ?>

	<fieldset id="ci-panel-favicon" class="set">
		<legend><?php 
    _e('Favicon', 'ci_theme');
    ?>
</legend>
		<p class="guide"><?php 
    _e('As of WordPress v4.3, the Customizer (<em>Appearance &rarr; Customize</em>) provides support for a <strong>Site Icon</strong>. You are strongly adviced to use the Site Icon feature instead of the options below, as they will be removed in theme updates released after WordPress v4.4 is out.', 'ci_theme');
    ?>
</p>
		<p class="guide"><?php 
function ci_settings_page()
{
    ?>
	<div class="wrap">
		<h2>
			<?php 
    if (!CI_WHITELABEL) {
        /* translators: %1$s is the theme name. %2$s is the theme's version number prepended by a 'v', e.g. v1.2 */
        echo sprintf(_x('%1$s Settings v%2$s', 'theme name settings version', 'ci_theme'), CI_THEME_NICENAME, CI_THEME_VERSION);
    } else {
        echo sprintf(_x('%s Settings', 'theme name settings', 'ci_theme'), CI_THEME_NICENAME);
    }
    ?>
		</h2>

		<?php 
    if (!CI_WHITELABEL) {
        ?>
			<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fcssigniter&amp;width&amp;layout=button_count&amp;action=like&amp;show_faces=true&amp;share=false&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:21px;" allowTransparency="true"></iframe>
		<?php 
    }
    ?>

		<?php 
    $latest_version = ci_theme_update_check();
    ?>
		<?php 
    if ($latest_version !== false && version_compare($latest_version, CI_THEME_VERSION, '>')) {
        ?>
			<div id="theme-update">
				<?php 
        echo sprintf(__('A theme update is available. The latest version is <b>%1$s</b> and you are running <b>%2$s</b>', 'ci_theme'), $latest_version, CI_THEME_VERSION);
        ?>
			</div>
		<?php 
    }
    ?>
	
		<?php 
    $panel_classes = ci_theme_classes();
    unset($panel_classes['theme_color_scheme']);
    ?>
		<div id="ci_panel" class="<?php 
    echo implode(' ', $panel_classes);
    ?>
">
			<form method="post" action="options.php" id="theform" enctype="multipart/form-data">
				<?php 
    settings_fields('ci-settings-group');
    $theme_options = get_option(THEME_OPTIONS);
    ?>
				<div id="ci_header">
					<?php 
    if (!CI_WHITELABEL) {
        ?>
						<img src="<?php 
        echo esc_url(apply_filters('ci_panel_logo_url', get_child_or_parent_file_uri('/panel/img/logo.png'), '/panel/img/logo.png'));
        ?>
"/>
					<?php 
    }
    ?>
				</div>

				<?php 
    if (isset($_POST['reset'])) {
        ?>
					<div class="resetbox"><?php 
        _e('Settings reset!', 'ci_theme');
        ?>
</div>
				<?php 
    }
    ?>

				<div class="success"></div>

				<div class="ci_save ci_save_top group">
					<p>
						<?php 
    $docs_links = array();
    if (CI_DOCS != '') {
        $docs_links[] = sprintf('<a href="%s">%s</a>', esc_url(CI_DOCS), __('Documentation', 'ci_theme'));
    }
    if (CI_FORUM != '') {
        $docs_links[] = sprintf('<a href="%s">%s</a>', esc_url(CI_FORUM), __('Support forum', 'ci_theme'));
    }
    echo implode(' | ', $docs_links);
    ?>
					</p>
					<input type="submit" class="button-primary save" value="<?php 
    esc_attr_e('Save Changes', 'ci_theme');
    ?>
"/>
				</div>

				<div id="ci_main" class="group">
	
					<?php 
    // Each tab is responsible for adding itself to the list of the panel tabs.
    // The priority on add_filter() affects the order of the tabs.
    // Tab files are automatically loaded for initialization by the function load_ci_defaults().
    // Child themes have a chance to load their tabs (or unload the parent theme's tabs) only after
    // the parent theme has initialized its tabs.
    $paneltabs = apply_filters('ci_panel_tabs', array());
    ?>
	
					<div id="ci_sidebar_back"></div>
					<div id="ci_sidebar">
						<ul>
							<?php 
    $tabNum = 1;
    foreach ($paneltabs as $name => $title) {
        $firstclass = $tabNum == 1 ? 'active' : '';
        echo sprintf('<li id="%1$s"><a href="#tab%2$s" rel="tab%2$s" class="%3$s"><span>%4$s</span></a></li>', esc_attr($name), esc_attr($tabNum), esc_attr($firstclass), $title);
        $tabNum++;
    }
    ?>
						</ul>
					</div><!-- /sidebar -->
	
					<div id="ci_options">
						<div id="ci_options_inner">
							<?php 
    $tabNum = 1;
    foreach ($paneltabs as $name => $title) {
        $firstclass = $tabNum == 1 ? 'one' : '';
        ?>
<div id="tab<?php 
        echo esc_attr($tabNum);
        ?>
" class="tab <?php 
        echo esc_attr($firstclass);
        ?>
"><?php 
        get_template_part(CI_PANEL_TABS_DIR . '/' . $name);
        ?>
</div><?php 
        $tabNum++;
    }
    ?>
						</div>
					</div><!-- #ci_options -->
	
				</div><!-- #ci_main -->
				<div class="ci_save group">
					<input type="submit" class="button-primary save" value="<?php 
    esc_attr_e('Save Changes', 'ci_theme');
    ?>
"/>
				</div>
			</form>
		</div><!-- #ci_panel -->
	
		<div id="ci-reset-box">
			<form method="post" action="">
				<input type="hidden" name="reset" value="reset" />
				<input type="submit" class="button" value="<?php 
    esc_attr_e('Reset Settings', 'ci_theme');
    ?>
" onclick="return confirm('<?php 
    esc_attr_e('Are you sure? All settings will be lost!', 'ci_theme');
    ?>
'); "/>
			</form>
		</div>
	</div><!-- wrap -->
	<?php 
}
 function ci_enqueue_fancybox()
 {
     wp_enqueue_script('fancybox', get_child_or_parent_file_uri('/panel/scripts/fancybox-2.1.5/jquery.fancybox.pack.js'), array('jquery'), '2.1.5', true);
     wp_enqueue_style('fancybox', get_child_or_parent_file_uri('/panel/scripts/fancybox-2.1.5/jquery.fancybox.css'), array(), '2.1.5');
 }
        function form($instance)
        {
            $instance = wp_parse_args((array) $instance, array('title' => '', 'post_type_name' => 'post', 'postid' => '', 'image_left' => '', 'no_bottom_margin' => '', 'color' => '', 'background_color' => '', 'background_image' => '', 'background_repeat' => 'repeat', 'parallax' => '', 'parallax_speed' => 4));
            $title = $instance['title'];
            $post_type_name = $instance['post_type_name'];
            $post_id = $instance['postid'];
            $image_left = $instance['image_left'];
            $no_bottom_margin = $instance['no_bottom_margin'];
            $color = $instance['color'];
            $background_color = $instance['background_color'];
            $background_image = $instance['background_image'];
            $background_repeat = $instance['background_repeat'];
            $parallax = $instance['parallax'];
            $parallax_speed = $instance['parallax_speed'];
            ?>
<p><label for="<?php 
            echo $this->get_field_id('title');
            ?>
"><?php 
            _e('Title (optional):', 'ci_theme');
            ?>
</label><input id="<?php 
            echo $this->get_field_id('title');
            ?>
" name="<?php 
            echo $this->get_field_name('title');
            ?>
" type="text" value="<?php 
            echo esc_attr($title);
            ?>
" class="widefat" /></p><?php 
            $post_types = get_post_types(array('public' => true), 'objects');
            unset($post_types['attachment'], $post_types['cpt_slider'], $post_types['cpt_testimonial']);
            ?>
<p><label for="<?php 
            echo $this->get_field_id('post_type_name');
            ?>
"><?php 
            _e('Show posts from this post type:', 'ci_theme');
            ?>
</label></p><?php 
            ?>
<select name="<?php 
            echo $this->get_field_name('post_type_name');
            ?>
" id="<?php 
            echo $this->get_field_id('post_type_name');
            ?>
" class="widefat" ><?php 
            foreach ($post_types as $key => $pt) {
                ?>
<option value="<?php 
                echo esc_attr($key);
                ?>
" <?php 
                selected($key, $post_type_name);
                ?>
><?php 
                echo $pt->labels->name;
                ?>
</option><?php 
            }
            ?>
</select> <img src="<?php 
            echo get_child_or_parent_file_uri('/panel/img/ajax-loader-16x16.gif');
            ?>
" class="loading_posts" style="display: none;"><?php 
            ?>
<p></p><?php 
            ?>
<p><label for="<?php 
            echo $this->get_field_id('postid');
            ?>
"><?php 
            _e('Select a post to show:', 'ci_theme');
            ?>
</label></p><?php 
            ?>
<p class="ci_widget_post_type_posts_dropdown"><?php 
            wp_dropdown_posts(array('post_type' => $post_type_name, 'show_option_none' => '&nbsp;', 'selected' => $post_id, 'class' => 'widefat', 'select_even_if_empty' => true), $this->get_field_name('postid'));
            ?>
</p><?php 
            ?>
<p><small><?php 
            _e('For better control of the output, write a custom excerpt on the post you are about to show.', 'ci_theme');
            ?>
</small></p><?php 
            ?>
<p><label for="<?php 
            echo $this->get_field_id('image_left');
            ?>
"><input type="checkbox" name="<?php 
            echo $this->get_field_name('image_left');
            ?>
" id="<?php 
            echo $this->get_field_id('image_left');
            ?>
" value="on" <?php 
            checked($image_left, 'on');
            ?>
 /><?php 
            _e('Image on the left.', 'ci_theme');
            ?>
</label></p><?php 
            ?>
<p><label for="<?php 
            echo $this->get_field_id('no_bottom_margin');
            ?>
"><input type="checkbox" name="<?php 
            echo $this->get_field_name('no_bottom_margin');
            ?>
" id="<?php 
            echo $this->get_field_id('no_bottom_margin');
            ?>
" value="on" <?php 
            checked($no_bottom_margin, 'on');
            ?>
 /><?php 
            _e('Reduce bottom margin.', 'ci_theme');
            ?>
</label></p><?php 
            ?>
		<fieldset class="ci-collapsible">
			<legend><?php 
            _e('Custom Colors', 'ci_theme');
            ?>
 <i class="dashicons dashicons-arrow-down"></i></legend>
			<div class="elements">
				<p><label for="<?php 
            echo $this->get_field_id('color');
            ?>
"><?php 
            _e('Foreground Color:', 'ci_theme');
            ?>
</label><input id="<?php 
            echo $this->get_field_id('color');
            ?>
" name="<?php 
            echo $this->get_field_name('color');
            ?>
" type="text" value="<?php 
            echo esc_attr($color);
            ?>
" class="colorpckr widefat" /></p>
				<p><label for="<?php 
            echo $this->get_field_id('background_color');
            ?>
"><?php 
            _e('Background Color:', 'ci_theme');
            ?>
</label><input id="<?php 
            echo $this->get_field_id('background_color');
            ?>
" name="<?php 
            echo $this->get_field_name('background_color');
            ?>
" type="text" value="<?php 
            echo esc_attr($background_color);
            ?>
" class="colorpckr widefat" /></p>
				<p class="ci-collapsible-media"><label for="<?php 
            echo $this->get_field_id('background_image');
            ?>
"><?php 
            _e('Background Image:', 'ci_theme');
            ?>
</label><input id="<?php 
            echo $this->get_field_id('background_image');
            ?>
" name="<?php 
            echo $this->get_field_name('background_image');
            ?>
" type="text" value="<?php 
            echo esc_attr($background_image);
            ?>
" class="uploaded widefat" /><a href="#" class="button ci-upload"><?php 
            _e('Upload', 'ci_theme');
            ?>
</a></p>
				<p>
					<label for="<?php 
            echo $this->get_field_id('background_repeat');
            ?>
"><?php 
            _e('Background Repeat:', 'ci_theme');
            ?>
</label>
					<select id="<?php 
            echo $this->get_field_id('background_repeat');
            ?>
" name="<?php 
            echo $this->get_field_name('background_repeat');
            ?>
">
						<option value="repeat" <?php 
            selected('repeat', $background_repeat);
            ?>
><?php 
            _e('Repeat', 'ci_theme');
            ?>
</option>
						<option value="repeat-x" <?php 
            selected('repeat-x', $background_repeat);
            ?>
><?php 
            _e('Repeat Horizontally', 'ci_theme');
            ?>
</option>
						<option value="repeat-y" <?php 
            selected('repeat-y', $background_repeat);
            ?>
><?php 
            _e('Repeat Vertically', 'ci_theme');
            ?>
</option>
						<option value="no-repeat" <?php 
            selected('no-repeat', $background_repeat);
            ?>
><?php 
            _e('No Repeat', 'ci_theme');
            ?>
</option>
					</select>
				</p>

				<p><label for="<?php 
            echo $this->get_field_id('parallax');
            ?>
"><input type="checkbox" name="<?php 
            echo $this->get_field_name('parallax');
            ?>
" id="<?php 
            echo $this->get_field_id('parallax');
            ?>
" value="parallax" <?php 
            checked($parallax, 'parallax');
            ?>
 /><?php 
            _e('Parallax effect (requires a background image).', 'ci_theme');
            ?>
</label></p>
				<p><label for="<?php 
            echo $this->get_field_id('parallax_speed');
            ?>
"><?php 
            _e('Parallax speed (1-8):', 'ci_theme');
            ?>
</label><input id="<?php 
            echo $this->get_field_id('parallax_speed');
            ?>
" name="<?php 
            echo $this->get_field_name('parallax_speed');
            ?>
" type="number" min="1" max="10" step="1" value="<?php 
            echo esc_attr($parallax_speed);
            ?>
" class="widefat" /></p>

			</div>
		</fieldset>
		<?php 
        }