Ejemplo n.º 1
0
function slider_settings()
{
    foreach ($_REQUEST as $keys => $values) {
        ${$keys} = trim($values);
    }
    $return_data = array('success' => '-1', 'alert' => 'Save option failed, please try contacting your host provider to increase the post_max_size and suhosin.post.max_vars varialble on the server.');
    ?>
		
<div class="cp-wrapper bootstrap_admin cp-margin-left"> 

    <!--content area start -->	  
	<div class="hbg top_navigation row-fluid">
		<div class="cp-logo span2">
			<img src="<?php 
    echo CP_PATH_URL;
    ?>
/framework/images/logo.png" class="logo" />
		</div>
		<div class="sidebar span10">
			<?php 
    echo top_navigation_html_tooltip();
    ?>
		</div>
	 <?php 
    //echo top_navigation_html();
    ?>
	</div>
	<div class="content-area-main row-fluid"> 
	
      <!--sidebar start -->
      <div class="sidebar-wraper span2">
        <div class="sidebar-sublinks">
      <ul id="wp_t_o_right_menu">
				<li class="slide_settings" id="active_tab"><?php 
    _e('Slider Settings', 'crunchpress');
    ?>
</li>
			</ul>
        </div>
      </div>
		  <!--sidebar end --> 
      <!--content start -->
      <div class="content-area span10">
	  <?php 
    //echo top_navigation_html();
    ?>
        <form id="options-panel-form" name="cp-panel-form">
          <div class="panel-elements" id="panel-elements">
            <div class="panel-element" id="panel-element-save-complete">
              <div class="panel-element-save-text">
                <?php 
    _e('Save Options Complete', 'crunchpress');
    ?>
                .</div>
              <div class="panel-element-save-arrow"></div>
            </div>
            <div class="panel-element">
			<?php 
    if (isset($action) and $action == 'slider_settings') {
        $slider_settings_xml = '<slider_settings>';
        $slider_settings_xml = $slider_settings_xml . create_xml_tag('select_slider', $select_slider);
        // $slider_settings_xml = $slider_settings_xml . '<flex_slider_settings>';
        // $slider_settings_xml = $slider_settings_xml . create_xml_tag('animation_type_flex',$animation_type_flex);
        // $slider_settings_xml = $slider_settings_xml . create_xml_tag('reverse_order_flex',$reverse_order_flex);
        // $slider_settings_xml = $slider_settings_xml . create_xml_tag('startat_flex_slider',$startat_flex_slider);
        // $slider_settings_xml = $slider_settings_xml . create_xml_tag('auto_play_flex',$auto_play_flex);
        // $slider_settings_xml = $slider_settings_xml . create_xml_tag('animation_speed_flex',$animation_speed_flex);
        // $slider_settings_xml = $slider_settings_xml . create_xml_tag('pause_on_flex',$pause_on_flex);
        // $slider_settings_xml = $slider_settings_xml . create_xml_tag('navigation_on_flex',$navigation_on_flex);
        // $slider_settings_xml = $slider_settings_xml . create_xml_tag('arrow_on_flex',$arrow_on_flex);
        // $slider_settings_xml = $slider_settings_xml . '</flex_slider_settings>';
        // $slider_settings_xml = $slider_settings_xml . '<anything_slider_settings>';
        //$slider_settings_xml = $slider_settings_xml . create_xml_tag('slide_mod_anything',$slide_mod_anything);
        // $slider_settings_xml = $slider_settings_xml . create_xml_tag('auto_play_anything',$auto_play_anything);
        // $slider_settings_xml = $slider_settings_xml . create_xml_tag('pause_on_anything',$pause_on_anything);
        // $slider_settings_xml = $slider_settings_xml . create_xml_tag('animation_speed_anything',$animation_speed_anything);
        // $slider_settings_xml = $slider_settings_xml . '</anything_slider_settings>';
        $slider_settings_xml = $slider_settings_xml . '<bx_slider_settings>';
        $slider_settings_xml = $slider_settings_xml . create_xml_tag('slide_order_bx', $slide_order_bx);
        $slider_settings_xml = $slider_settings_xml . create_xml_tag('auto_play_bx', $auto_play_bx);
        $slider_settings_xml = $slider_settings_xml . create_xml_tag('pause_on_bx', $pause_on_bx);
        $slider_settings_xml = $slider_settings_xml . create_xml_tag('animation_speed_bx', $animation_speed_bx);
        $slider_settings_xml = $slider_settings_xml . create_xml_tag('show_bullets', $show_bullets);
        $slider_settings_xml = $slider_settings_xml . create_xml_tag('show_arrow', $show_arrow);
        $slider_settings_xml = $slider_settings_xml . '</bx_slider_settings>';
        $slider_settings_xml = $slider_settings_xml . '</slider_settings>';
        if (!save_option('slider_settings', get_option('slider_settings'), $slider_settings_xml)) {
            die(json_encode($return_data));
        }
        die(json_encode(array('success' => '0')));
    }
    $select_slider = '';
    //Flex slider
    $animation_type_flex = '';
    $reverse_order_flex = '';
    $startat_flex_slider = '';
    $auto_play_flex = '';
    $animation_speed_flex = '';
    $pause_on_flex = '';
    $navigation_on_flex = '';
    $arrow_on_flex = '';
    //Anything slider
    $slide_mod_anything = '';
    $auto_play_anything = '';
    $pause_on_anything = '';
    $animation_speed_anything = '';
    //BX slider
    $slide_order_bx = '';
    $auto_play_bx = '';
    $pause_on_bx = '';
    $animation_speed_bx = '';
    $show_bullets = '';
    $show_arrow = '';
    $cp_slider_settings = get_option('slider_settings');
    //$dd = find_xml_node($logo_uploa_d,'logo_upload');
    if ($cp_slider_settings != '') {
        $cp_slider = new DOMDocument();
        $cp_slider->preserveWhiteSpace = FALSE;
        $cp_slider->loadXML($cp_slider_settings);
        // $select_slider = find_xml_value($cp_slider->documentElement,'select_slider');
        // $animation_type_flex = find_xml_child_nodes($cp_slider_settings,'flex_slider_settings','animation_type_flex');
        // $reverse_order_flex = find_xml_child_nodes($cp_slider_settings,'flex_slider_settings','reverse_order_flex');
        // $startat_flex_slider = find_xml_child_nodes($cp_slider_settings,'flex_slider_settings','startat_flex_slider');
        // $auto_play_flex = find_xml_child_nodes($cp_slider_settings,'flex_slider_settings','auto_play_flex');
        // $animation_speed_flex = find_xml_child_nodes($cp_slider_settings,'flex_slider_settings','animation_speed_flex');
        // $pause_on_flex = find_xml_child_nodes($cp_slider_settings,'flex_slider_settings','pause_on_flex');
        // $navigation_on_flex = find_xml_child_nodes($cp_slider_settings,'flex_slider_settings','navigation_on_flex');
        // $arrow_on_flex = find_xml_child_nodes($cp_slider_settings,'flex_slider_settings','arrow_on_flex');
        //Anything Slider Values
        // $slide_mod_anything = find_xml_child_nodes($cp_slider_settings,'anything_slider_settings','slide_mod_anything');
        // $auto_play_anything = find_xml_child_nodes($cp_slider_settings,'anything_slider_settings','auto_play_anything');
        // $pause_on_anything = find_xml_child_nodes($cp_slider_settings,'anything_slider_settings','pause_on_anything');
        // $animation_speed_anything = find_xml_child_nodes($cp_slider_settings,'anything_slider_settings','animation_speed_anything');
        //Bx Slider Values
        $slide_order_bx = find_xml_child_nodes($cp_slider_settings, 'bx_slider_settings', 'slide_order_bx');
        $auto_play_bx = find_xml_child_nodes($cp_slider_settings, 'bx_slider_settings', 'auto_play_bx');
        $pause_on_bx = find_xml_child_nodes($cp_slider_settings, 'bx_slider_settings', 'pause_on_bx');
        $animation_speed_bx = find_xml_child_nodes($cp_slider_settings, 'bx_slider_settings', 'animation_speed_bx');
        $show_bullets = find_xml_child_nodes($cp_slider_settings, 'bx_slider_settings', 'show_bullets');
        $show_arrow = find_xml_child_nodes($cp_slider_settings, 'bx_slider_settings', 'show_arrow');
    }
    ?>
			</div>
					<ul class="slide_settings">
						<li id="slide_settings" class="slider_settings_class active_tab">
							<ul class="recipe_class row-fluid">
								<li class="panel-input span8">	
									<span class="panel-title">
										<h3 for="select_slider"><?php 
    _e('SELECT SLIDER', 'crunchpress');
    ?>
</h3>
									</span>
									<div class="combobox">
										<select name="select_slider" id="select_slider">
											<option value="default" selected class="default"> <?php 
    _e('--No Slider--', 'crunchpress');
    ?>
 </option>
											<!--<option value="flex_slider" class="flex_slider">Flex Slider</option>
											<option value="anything_slider" class="anything_slider">Anything Slider</option>-->
											<option value="bx_slider" class="bx_slider"> <?php 
    _e('BX Slider', 'crunchpress');
    ?>
 </option>
										</select>
									</div>
								</li>
								<li class="span4 right-box-sec"><p> <?php 
    _e('Select slider for configuration.', 'crunchpress');
    ?>
 </p></li>
							</ul>	
						
							<!--<div class="flex_slider_box">
							<h4>Flex Slider Configurations</h4>
								<ul class="recipe_class">
									<div class="panel-title">
										<label for="animation_type_flex"><?php 
    _e('ANIMATION TYPE', 'crunchpress');
    ?>
</label>
									</div>
									<div class="panel-input">	
										<div class="combobox">
											<select name="animation_type_flex" id="animation_type_flex">
												<option <?php 
    if ($animation_type_flex == 'fade') {
        echo 'selected';
    }
    ?>
 value="fade">Fade</option>
												<option <?php 
    if ($animation_type_flex == 'slide') {
        echo 'selected';
    }
    ?>
 value="slide">Slide</option>
											</select>
										</div>
									</div>
									<div class="description">Please Select animation type of slider.</div>
								</ul>
								<div class="clear"></div>
								<ul class="recipe_class">
									<li class="panel-title">
										<label for="reverse_order_flex"><?php 
    _e('REVERSE ORDER', 'crunchpress');
    ?>
</label>
									</li>
									<li class="panel-input">	
										<div class="combobox">
											<select name="reverse_order_flex" id="reverse_order_flex">
												<option value="true" <?php 
    if ($reverse_order_flex == 'true') {
        echo 'selected';
    }
    ?>
>Yes</option>
												<option value="false" <?php 
    if ($reverse_order_flex == 'false') {
        echo 'selected';
    }
    ?>
>No</option>
											</select>
										</div>
									</li>
									<li class="description">Please select slider image order.</li>
								</ul>
								<div class="clear"></div>
								<ul class="panel-body recipe_class">
									<li class="panel-title">
										<label for="startat_flex_slider" > <?php 
    _e('START SLIDER FROM', 'crunchpress');
    ?>
 </label>
									</li>				
									<li class="panel-input">
										<input type="text" name="startat_flex_slider" id="startat_flex_slider" value="<?php 
    if ($startat_flex_slider != '') {
        echo $startat_flex_slider;
    }
    ?>
" />
									</li>
									<li class="description">Please give number from which image you want to start slider.</li>
								</ul>
								<div class="clear"></div>
								<ul class="panel-body recipe_class">
									<li class="panel-title">
										<label for="auto_play_flex" > <?php 
    _e('AUTO PLAY', 'crunchpress');
    ?>
 </label>
									</li>	
									<li class="panel-input">
										<label for="auto_play_flex">
											<div class="checkbox-switch <?php 
    echo $auto_play_flex == 'enable' || $auto_play_flex == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
										</label>
										<input type="checkbox" name="auto_play_flex" class="checkbox-switch" value="disable" checked>
										<input type="checkbox" name="auto_play_flex" id="auto_play_flex" class="checkbox-switch" value="enable" <?php 
    echo $auto_play_flex == 'enable' || $auto_play_flex == '' ? 'checked' : '';
    ?>
>
									</li>
									<li class="description">Please turn on/off autoplay.</li>
								</ul>
								<div class="clear"></div>
								<ul class="panel-body recipe_class">
									<div class="panel-title">
										<label for="animation_speed_flex" > <?php 
    _e('ANIMATION SPEED', 'crunchpress');
    ?>
 </label>
									</div>				
									<div class="panel-input">
										<input type="text" name="animation_speed_flex" id="animation_speed_flex" value="<?php 
    if ($animation_speed_flex != '') {
        echo $animation_speed_flex;
    }
    ?>
" />
									</div>
									<div class="description">Please enter slider animation speed.</div>
								</ul>
								<div class="clear"></div>
								<ul class="panel-body recipe_class">
									<li class="panel-title">
										<label for="pause_on_flex" > <?php 
    _e('PAUSE ON HOVER', 'crunchpress');
    ?>
 </label>
									</li>	
									<li class="panel-input">
										<label for="pause_on_flex">
											<div class="checkbox-switch <?php 
    echo $pause_on_flex == 'enable' || $pause_on_flex == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
										</label>
										<input type="checkbox" name="pause_on_flex" class="checkbox-switch" value="disable" checked>
										<input type="checkbox" name="pause_on_flex" id="pause_on_flex" class="checkbox-switch" value="enable" <?php 
    echo $pause_on_flex == 'enable' || $pause_on_flex == '' ? 'checked' : '';
    ?>
>
									</li>
									<li class="description">Please turn on/off slider pause on hover.</li>
								</ul>
								<div class="clear"></div>
								<ul class="panel-body recipe_class">
									<li class="panel-title">
										<label for="navigation_on_flex" > <?php 
    _e('BULLETS NAVIGATION', 'crunchpress');
    ?>
 </label>
									</li>	
									<li class="panel-input">
										<label for="navigation_on_flex">
											<div class="checkbox-switch <?php 
    echo $navigation_on_flex == 'enable' || $navigation_on_flex == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
										</label>
										<input type="checkbox" name="navigation_on_flex" class="checkbox-switch" value="disable" checked>
										<input type="checkbox" name="navigation_on_flex" id="navigation_on_flex" class="checkbox-switch" value="enable" <?php 
    echo $navigation_on_flex == 'enable' || $navigation_on_flex == '' ? 'checked' : '';
    ?>
>
									</li>
									<li class="description">Please turn on/off slider navigation.</li>
								</ul>
								<div class="clear"></div>
								<ul class="panel-body recipe_class">
									<li class="panel-title">
										<label for="arrow_on_flex" > <?php 
    _e('ARROW NAVIGATION', 'crunchpress');
    ?>
 </label>
									</li>	
									<li class="panel-input">
										<label for="arrow_on_flex">
											<div class="checkbox-switch <?php 
    echo $arrow_on_flex == 'enable' || $arrow_on_flex == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
										</label>
										<input type="checkbox" name="arrow_on_flex" class="checkbox-switch" value="disable" checked>
										<input type="checkbox" name="arrow_on_flex" id="arrow_on_flex" class="checkbox-switch" value="enable" <?php 
    echo $arrow_on_flex == 'enable' || $arrow_on_flex == '' ? 'checked' : '';
    ?>
>
									</li>
									<li class="description">Please turn on/off Slider Arrow Navigation.</li>
								</ul>
							</div>
							<div class="anything_slider_box">
								<h4>Anything Slider Configurations</h4>
								<ul class="panel-body recipe_class">
									<li class="panel-title">
										<label for="auto_play_anything" > <?php 
    _e('AUTO PLAY', 'crunchpress');
    ?>
 </label>
									</li>	
									<li class="panel-input">
										<label for="auto_play_anything">
											<div class="checkbox-switch <?php 
    echo $auto_play_anything == 'enable' || $auto_play_anything == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
										</label>
										<input type="checkbox" name="auto_play_anything" class="checkbox-switch" value="disable" checked>
										<input type="checkbox" name="auto_play_anything" id="auto_play_anything" class="checkbox-switch" value="enable" <?php 
    echo $auto_play_anything == 'enable' || $auto_play_anything == '' ? 'checked' : '';
    ?>
>
									</li>
									<li class="description">Please turn on/off Slider autoplay.</li>
								</ul>
								<div class="clear"></div>
								<ul class="panel-body recipe_class">
									<li class="panel-title">
										<label for="pause_on_anything"><?php 
    _e('PAUSE ON HOVER', 'crunchpress');
    ?>
</label>
									</li>	
									<li class="panel-input">
										<label for="pause_on_anything">
											<div class="checkbox-switch <?php 
    echo $pause_on_anything == 'enable' || $pause_on_anything == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
										</label>
										<input type="checkbox" name="pause_on_anything" class="checkbox-switch" value="disable" checked>
										<input type="checkbox" name="pause_on_anything" id="pause_on_anything" class="checkbox-switch" value="enable" <?php 
    echo $pause_on_anything == 'enable' || $pause_on_anything == '' ? 'checked' : '';
    ?>
>
									</li>
									<li class="description">Please On/Off slider pause on hover.</li>
								</ul>
								<div class="clear"></div>
								<ul class="panel-body recipe_class">
									<li class="panel-title">
										<label for="animation_speed_anything" > <?php 
    _e('ANIMATION SPEED', 'crunchpress');
    ?>
 </label>
									</li>				
									<li class="panel-input">
										<input type="text" name="animation_speed_anything" id="animation_speed_anything" value="<?php 
    if ($animation_speed_anything != '') {
        echo $animation_speed_anything;
    }
    ?>
" />
									</li>
									<li class="description">Please define animation speed for slider.</li>
								</ul>
							</div>-->
							<div class="clear"></div>
							<div class="bx_slider_box">
								<h4> <?php 
    _e('BX Slider Configurations', 'crunchpress');
    ?>
 </h4>
								<div class="row-fluid">
									<ul class="recipe_class span3">
										<li class="panel-input full-width">
											<span class="panel-title">
												<h3 for="slide_order_bx"><?php 
    _e('Slider Effect', 'crunchpress');
    ?>
</h3>
											</span>
											<div class="combobox">
												<select name="slide_order_bx" id="slide_order_bx">
													<option value="slide" <?php 
    if ($slide_order_bx == 'false') {
        echo 'selected';
    }
    ?>
> <?php 
    _e('Slide', 'crunchpress');
    ?>
 </option>
													<option value="fade" <?php 
    if ($slide_order_bx == 'false') {
        echo 'selected';
    }
    ?>
> <?php 
    _e('Fade', 'crunchpress');
    ?>
 </option>
												</select>
											</div>
											<p><?php 
    _e('Please select slider image order.', 'crunchpress');
    ?>
</p>
										</li>
									</ul>
									<ul class="panel-body recipe_class span3">
										<li class="panel-input full-width">
											<span class="panel-title">
												<h3 for="auto_play_bx" > <?php 
    _e('AUTO PLAY', 'crunchpress');
    ?>
 </h3>
											</span>	
											<label for="auto_play_bx">
												<div class="checkbox-switch <?php 
    echo $auto_play_bx == 'enable' || $auto_play_bx == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
											</label>
											<input type="checkbox" name="auto_play_bx" class="checkbox-switch" value="disable" checked>
											<input type="checkbox" name="auto_play_bx" id="auto_play_bx" class="checkbox-switch" value="enable" <?php 
    echo $auto_play_bx == 'enable' || $auto_play_bx == '' ? 'checked' : '';
    ?>
>
											<p> <?php 
    _e('Please turn on/off Slider autoplay.', 'crunchpress');
    ?>
<p>
										</li>
									</ul>
									<ul class="panel-body recipe_class span3">
										<li class="panel-input full-width">
											<span class="panel-title">
												<h3 for="pause_on_bx"><?php 
    _e('PAUSE ON HOVER', 'crunchpress');
    ?>
</h3>
											</span>	
											<label for="pause_on_bx">
												<div class="checkbox-switch <?php 
    echo $pause_on_bx == 'enable' || $pause_on_bx == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
											</label>
											<input type="checkbox" name="pause_on_bx" class="checkbox-switch" value="disable" checked>
											<input type="checkbox" name="pause_on_bx" id="pause_on_bx" class="checkbox-switch" value="enable" <?php 
    echo $pause_on_bx == 'enable' || $pause_on_bx == '' ? 'checked' : '';
    ?>
>
											<p> <?php 
    _e('Please On/Off slider pause on hover.', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
									<ul class="panel-body recipe_class span3">
										<li class="panel-input full-width">
											<span class="panel-title">
												<h3 for="animation_speed_bx" > <?php 
    _e('ANIMATION SPEED', 'crunchpress');
    ?>
 </h3>
											</span>	
											<input type="text" name="animation_speed_bx" id="animation_speed_bx" value="<?php 
    if ($animation_speed_bx != '') {
        echo $animation_speed_bx;
    }
    ?>
" />
											<p> <?php 
    _e('Please define animation speed for slider.', 'crunchpress');
    ?>
 </p>
										</li>									
									</ul>
								</div>
								<div class="row-fluid">
									<ul class="panel-body recipe_class span3">
										<li class="panel-input full-width">
											<span class="panel-title">
												<h3 for="show_bullets"><?php 
    _e('SHOW BULLETS NAVIGATION', 'crunchpress');
    ?>
</h3>
											</span>	
											<label for="show_bullets">
												<div class="checkbox-switch <?php 
    echo $show_bullets == 'enable' || $show_bullets == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
											</label>
											<input type="checkbox" name="show_bullets" class="checkbox-switch" value="disable" checked>
											<input type="checkbox" name="show_bullets" id="show_bullets" class="checkbox-switch" value="enable" <?php 
    echo $show_bullets == 'enable' || $show_bullets == '' ? 'checked' : '';
    ?>
>
											<p> <?php 
    _e('Please On/Off slider pause on hover.', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
									<ul class="panel-body recipe_class span3">
										<li class="panel-input full-width">
											<span class="panel-title">
												<h3 for="show_arrow"><?php 
    _e('SHOW ARROW NAVIGATION', 'crunchpress');
    ?>
</h3>
											</span>	
											<label for="show_arrow">
												<div class="checkbox-switch <?php 
    echo $show_arrow == 'enable' || $show_arrow == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
											</label>
											<input type="checkbox" name="show_arrow" class="checkbox-switch" value="disable" checked>
											<input type="checkbox" name="show_arrow" id="show_arrow" class="checkbox-switch" value="enable" <?php 
    echo $show_arrow == 'enable' || $show_arrow == '' ? 'checked' : '';
    ?>
>
											<p> <?php 
    _e('Please On/Off slider pause on hover.', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
								</div>
							</div>
						</li>
					</ul>
          
            <div class="panel-element-tail">
              <div class="tail-save-changes">
                <div class="loading-save-changes"></div>
                <input type="submit" value="<?php 
    echo __('Save Changes', 'crunchpress');
    ?>
">
                <input type="hidden" name="action" value="slider_settings">
                <!--<input type="hidden" name="security" value="<?php 
    //echo wp_create_nonce(plugin_basename(__FILE__))
    ?>
">--> 
              </div>
            </div>
          </div>
        </form>
      </div>
      <!--content End --> 
    </div>
    <!--content area end --> 
  </div>
	<?php 
}
Ejemplo n.º 2
0
function general_options()
{
    foreach ($_REQUEST as $keys => $values) {
        ${$keys} = trim($values);
    }
    $return_data = array('success' => '-1', 'alert' => 'Save option failed, please try contacting your host provider to increase the post_max_size and suhosin.post.max_vars varialble on the server.');
    ?>
<div class="cp-wrapper bootstrap_admin cp-margin-left"> 

    <!--content area start -->	  
	<div class="hbg top_navigation row-fluid">
		<div class="cp-logo span2">
			<img src="<?php 
    echo CP_PATH_URL;
    ?>
/framework/images/logo.png" class="logo" alt="logo" />
		</div>
		<div class="sidebar span10">
			<?php 
    echo top_navigation_html_tooltip();
    ?>
		</div>
	 <?php 
    //echo top_navigation_html();
    ?>
	</div>
	<div class="content-area-main row-fluid"> 
	 
      <!--sidebar start -->
      <div class="sidebar-wraper span2">
        <div class="sidebar-sublinks">
          <ul id="wp_t_o_right_menu">
            <li id="active_tab" class="logo" >
              <?php 
    _e('Logo Settings', 'crunchpress');
    ?>
            </li>
            <li class="color_style">
              <?php 
    _e('Style & Color Scheme', 'crunchpress');
    ?>
              </li>
            <li class="hr_settings">
              <?php 
    _e('Header Settings', 'crunchpress');
    ?>
              </li>
            <li class="ft_settings">
              <?php 
    _e('Footer Settings', 'crunchpress');
    ?>
              </li>
            <li class="misc_settings">
              <?php 
    _e('MISC Settings', 'crunchpress');
    ?>
              </li>
			  <li class="maintenance_mode_settings">
              <?php 
    _e('Maintenance Mode Settings', 'crunchpress');
    ?>
              </li>
			  
            <?php 
    if (!class_exists('Envato_WordPress_Theme_Upgrader')) {
    } else {
        ?>
            <li class="envato_api">
              <?php 
        _e('User API Settings', 'crunchpress');
        ?>
              </li>
            <?php 
    }
    ?>
          </ul>
        </div>
      </div>
      <!--sidebar end --> 
      <!--content start -->
      <div class="content-area span10">
	  <?php 
    //echo top_navigation_html();
    ?>
        <form id="options-panel-form" name="cp-panel-form">
          <div class="panel-elements" id="panel-elements">
            <div class="panel-element" id="panel-element-save-complete">
              <div class="panel-element-save-text">
                <?php 
    _e('Save Options Complete', 'crunchpress');
    ?>
                .</div>
              <div class="panel-element-save-arrow"></div>
            </div>
            <div class="panel-element">
              <?php 
    if (isset($action) and $action == 'general_options') {
        $general_logo_xml = '<general_settings>';
        $general_logo_xml = $general_logo_xml . create_xml_tag('header_logo', htmlspecialchars(stripslashes($header_logo)));
        $general_logo_xml = $general_logo_xml . create_xml_tag('logo_width', $logo_width);
        $general_logo_xml = $general_logo_xml . create_xml_tag('logo_height', $logo_height);
        $general_logo_xml = $general_logo_xml . create_xml_tag('select_layout_cp', $select_layout_cp);
        //$general_logo_xml = $general_logo_xml . create_xml_tag('boxed_scheme',$boxed_scheme);
        $general_logo_xml = $general_logo_xml . create_xml_tag('color_scheme', $color_scheme);
        $general_logo_xml = $general_logo_xml . create_xml_tag('select_bg_pat', $select_background_patren);
        $general_logo_xml = $general_logo_xml . create_xml_tag('bg_scheme', $bg_scheme);
        $general_logo_xml = $general_logo_xml . create_xml_tag('body_patren', $body_patren);
        $general_logo_xml = $general_logo_xml . create_xml_tag('color_patren', $color_patren);
        $general_logo_xml = $general_logo_xml . create_xml_tag('body_image', $body_image);
        $general_logo_xml = $general_logo_xml . create_xml_tag('position_image_layout', $position_image_layout);
        $general_logo_xml = $general_logo_xml . create_xml_tag('image_repeat_layout', $image_repeat_layout);
        $general_logo_xml = $general_logo_xml . create_xml_tag('image_attachment_layout', $image_attachment_layout);
        $general_logo_xml = $general_logo_xml . create_xml_tag('contact_us_code', htmlspecialchars(stripslashes($contact_us_code)));
        $general_logo_xml = $general_logo_xml . create_xml_tag('topcounter_circle', $topcounter_circle);
        $general_logo_xml = $general_logo_xml . create_xml_tag('countd_event_category', $countd_event_category);
        $general_logo_xml = $general_logo_xml . create_xml_tag('header_css_code', htmlspecialchars(stripslashes($header_css_code)));
        $general_logo_xml = $general_logo_xml . create_xml_tag('google_webmaster_code', htmlspecialchars(stripslashes($google_webmaster_code)));
        $general_logo_xml = $general_logo_xml . create_xml_tag('topbutton_icon', $topbutton_icon);
        $general_logo_xml = $general_logo_xml . create_xml_tag('topcart_icon', $topcart_icon);
        $general_logo_xml = $general_logo_xml . create_xml_tag('topsocial_icon', $topsocial_icon);
        $general_logo_xml = $general_logo_xml . create_xml_tag('select_footer_cp', $select_footer_cp);
        $general_logo_xml = $general_logo_xml . create_xml_tag('footer_style_apply', $footer_style_apply);
        $general_logo_xml = $general_logo_xml . create_xml_tag('footer_upper_layout', $footer_upper_layout);
        $general_logo_xml = $general_logo_xml . create_xml_tag('copyright_code', htmlspecialchars(stripslashes($copyright_code)));
        $general_logo_xml = $general_logo_xml . create_xml_tag('social_networking', $social_networking);
        $general_logo_xml = $general_logo_xml . create_xml_tag('top_count_header', $top_count_header);
        $general_logo_xml = $general_logo_xml . create_xml_tag('footer_banner', htmlspecialchars(stripslashes($footer_banner)));
        $general_logo_xml = $general_logo_xml . create_xml_tag('footer_col_layout', $footer_col_layout);
        $general_logo_xml = $general_logo_xml . create_xml_tag('breadcrumbs', $breadcrumbs);
        $general_logo_xml = $general_logo_xml . create_xml_tag('rtl_layout', $rtl_layout);
        $general_logo_xml = $general_logo_xml . create_xml_tag('site_loader', $site_loader);
        $general_logo_xml = $general_logo_xml . create_xml_tag('element_loader', $element_loader);
        $general_logo_xml = $general_logo_xml . create_xml_tag('maintenance_mode', $maintenance_mode);
        $general_logo_xml = $general_logo_xml . create_xml_tag('maintenace_title', htmlspecialchars(stripslashes($maintenace_title)));
        $general_logo_xml = $general_logo_xml . create_xml_tag('countdown_time', $countdown_time);
        $general_logo_xml = $general_logo_xml . create_xml_tag('email_mainte', $email_mainte);
        $general_logo_xml = $general_logo_xml . create_xml_tag('mainte_description', htmlspecialchars(stripslashes($mainte_description)));
        $general_logo_xml = $general_logo_xml . create_xml_tag('social_icons_mainte', $social_icons_mainte);
        $general_logo_xml = $general_logo_xml . create_xml_tag('tf_username', $tf_username);
        $general_logo_xml = $general_logo_xml . create_xml_tag('tf_sec_api', $tf_sec_api);
        $general_logo_xml = $general_logo_xml . '</general_settings>';
        if (!save_option('general_settings', get_option('general_settings'), $general_logo_xml)) {
            die(json_encode($return_data));
        }
        die(json_encode(array('success' => '0')));
    }
    ?>
            </div>
            <?php 
    $header_logo_upload = '';
    $logo_width = '';
    $logo_height = '';
    $select_layout_cp = '';
    //$boxed_scheme = '';
    $select_bg_pat = '';
    $scheme_color_scheme = '';
    $color_scheme = '';
    //$color_scheme_1 = '';
    $border_color = '';
    $button_color = '';
    $button_hover_color = '';
    $color_patren = '';
    $bg_scheme = '';
    $body_patren = '';
    $body_image = '';
    $position_image_layout = '';
    $image_repeat_layout = '';
    $image_attachment_layout = '';
    $contact_us_code = '';
    $header_css_code = '';
    $google_webmaster_code = '';
    $topbutton_icon = '';
    $footer_upper_layout = '';
    $select_header_cp = '';
    $header_style_apply = '';
    $about_header = '';
    $topcart_icon = '';
    $topcounter_circle = '';
    $countd_event_category = '';
    $topsocial_icon = '';
    $topsearch_icon = '';
    $copyright_code = '';
    $footer_banner = '';
    $footer_col_layout = '';
    $social_networking = '';
    $top_count_header = '';
    $footer_logo = '';
    $footer_logo_width = '';
    $footer_logo_height = '';
    $footer_layout = '';
    $breadcrumbs = '';
    $rtl_layout = '';
    $site_loader = '';
    $element_loader = '';
    $maintenance_mode = '';
    $maintenace_title = '';
    $countdown_time = '';
    $email_mainte = '';
    $mainte_description = '';
    $social_icons_mainte = '';
    $tf_username = '';
    $tf_sec_api = '';
    $cp_general_settings = get_option('general_settings');
    if ($cp_general_settings != '') {
        $cp_logo = new DOMDocument();
        $cp_logo->loadXML($cp_general_settings);
        $header_logo = find_xml_value($cp_logo->documentElement, 'header_logo');
        $logo_width = find_xml_value($cp_logo->documentElement, 'logo_width');
        $logo_height = find_xml_value($cp_logo->documentElement, 'logo_height');
        $select_layout_cp = find_xml_value($cp_logo->documentElement, 'select_layout_cp');
        //$boxed_scheme = find_xml_value($cp_logo->documentElement,'boxed_scheme');
        $color_scheme = find_xml_value($cp_logo->documentElement, 'color_scheme');
        //$color_scheme_1 = find_xml_value($cp_logo->documentElement,'color_scheme_1');
        $select_bg_pat = find_xml_value($cp_logo->documentElement, 'select_bg_pat');
        $bg_scheme = find_xml_value($cp_logo->documentElement, 'bg_scheme');
        $body_patren = find_xml_value($cp_logo->documentElement, 'body_patren');
        $color_patren = find_xml_value($cp_logo->documentElement, 'color_patren');
        $body_image = find_xml_value($cp_logo->documentElement, 'body_image');
        $position_image_layout = find_xml_value($cp_logo->documentElement, 'position_image_layout');
        $image_repeat_layout = find_xml_value($cp_logo->documentElement, 'image_repeat_layout');
        $image_attachment_layout = find_xml_value($cp_logo->documentElement, 'image_attachment_layout');
        $contact_us_code = find_xml_value($cp_logo->documentElement, 'contact_us_code');
        $topcounter_circle = find_xml_value($cp_logo->documentElement, 'topcounter_circle');
        $countd_event_category = find_xml_value($cp_logo->documentElement, 'countd_event_category');
        $header_css_code = find_xml_value($cp_logo->documentElement, 'header_css_code');
        $google_webmaster_code = find_xml_value($cp_logo->documentElement, 'google_webmaster_code');
        $topbutton_icon = find_xml_value($cp_logo->documentElement, 'topbutton_icon');
        $topcart_icon = find_xml_value($cp_logo->documentElement, 'topcart_icon');
        $topsocial_icon = find_xml_value($cp_logo->documentElement, 'topsocial_icon');
        $select_footer_cp = find_xml_value($cp_logo->documentElement, 'select_footer_cp');
        $footer_style_apply = find_xml_value($cp_logo->documentElement, 'footer_style_apply');
        $footer_upper_layout = find_xml_value($cp_logo->documentElement, 'footer_upper_layout');
        $copyright_code = find_xml_value($cp_logo->documentElement, 'copyright_code');
        $footer_banner = find_xml_value($cp_logo->documentElement, 'footer_banner');
        $footer_col_layout = find_xml_value($cp_logo->documentElement, 'footer_col_layout');
        $social_networking = find_xml_value($cp_logo->documentElement, 'social_networking');
        $breadcrumbs = find_xml_value($cp_logo->documentElement, 'breadcrumbs');
        $rtl_layout = find_xml_value($cp_logo->documentElement, 'rtl_layout');
        $site_loader = find_xml_value($cp_logo->documentElement, 'site_loader');
        $element_loader = find_xml_value($cp_logo->documentElement, 'element_loader');
        $maintenance_mode = find_xml_value($cp_logo->documentElement, 'maintenance_mode');
        $maintenace_title = find_xml_value($cp_logo->documentElement, 'maintenace_title');
        $countdown_time = find_xml_value($cp_logo->documentElement, 'countdown_time');
        $email_mainte = find_xml_value($cp_logo->documentElement, 'email_mainte');
        $mainte_description = find_xml_value($cp_logo->documentElement, 'mainte_description');
        $social_icons_mainte = find_xml_value($cp_logo->documentElement, 'social_icons_mainte');
        $tf_username = find_xml_value($cp_logo->documentElement, 'tf_username');
        $tf_sec_api = find_xml_value($cp_logo->documentElement, 'tf_sec_api');
    }
    ?>
            <ul class="logo_tab">
              <li id="logo" class="logo_dimenstion active_tab">
                <ul class="panel-body recipe_class logo_upload row-fluid">
                  <?php 
    $image_src_head = '';
    if (!empty($header_logo)) {
        $image_src_head = wp_get_attachment_image_src($header_logo, 'full');
        $image_src_head = empty($image_src_head) ? '' : $image_src_head[0];
    }
    ?>
					<li class="panel-input span8 eql_height">
						<span class="panel-title">
							<h3 for="header_logo" >
							  <?php 
    _e('Logo', 'crunchpress');
    ?>
							</h3>
						</span>
						<div class="content_con">
							<input name="header_logo" type="hidden" class="clearme" id="upload_image_attachment_id" value="<?php 
    echo $header_logo;
    ?>
" />
							<input name="header_link" id="upload_image_text" class="clearme upload_image_text" type="text" value="<?php 
    echo $image_src_head;
    ?>
" />
							<input class="upload_image_button" type="button" value="Upload" />
						</div>
						<p> <?php 
    _e('Upload logo image here, PNG, Gif, JPEG, JPG format supported only.', 'crunchpress');
    ?>
 </p>  
					</li>
					<li class="panel-right-box span4 eql_height">
						<div class="admin-logo-image">
						  <?php 
    if (!empty($header_logo)) {
        $image_src_head = wp_get_attachment_image_src($header_logo, 'full');
        $image_src_head = empty($image_src_head) ? '' : $image_src_head[0];
        $thumb_src_preview = wp_get_attachment_image_src($header_logo, array(150, 150));
        ?>
									<img class="clearme img-class" src="<?php 
        if (!empty($image_src_head)) {
            echo $thumb_src_preview[0];
        }
        ?>
" alt="logo" />
									<span class="close-me"></span>
						  <?php 
    }
    ?>
						</div>
					</li>
                </ul>
                <div class="clear"></div>
                <ul class="panel-body recipe_class row-fluid">
                  <li class="panel-input span8">
					  <span class="panel-title">
						<h3 for="logo_width" >
						  <?php 
    _e('Width', 'crunchpress');
    ?>
						</h3>
					  </span>
                    <div id="logo_width" class="sliderbar" rel="logo_bar"></div>
                    <input type="hidden" name="logo_width" value="<?php 
    echo $logo_width;
    ?>
">
					<p> <?php 
    _e('Please scroll Left to Right to adjust logo image width, you can also use Arrow keys UP,Down - Left,Right.', 'crunchpress');
    ?>
 </p>                  
                  </li>
                  <li class="span4 right-box-sec" id="slidertext"><?php 
    echo $logo_width;
    ?>
 <?php 
    _e('px', 'crunchpress');
    ?>
 </li>
                </ul>
                <div class="clear"></div>
                <ul class="panel-body recipe_class row-fluid">
                  <li class="panel-input span8">
					  <span class="panel-title">
						<h3 for="logo_height" >
						  <?php 
    _e('Height', 'crunchpress');
    ?>
						</h3>
					  </span>
                    <div id="logo_height" class="sliderbar" rel="logo_bar"></div>
                    <input type="hidden" name="logo_height" value="<?php 
    echo $logo_height;
    ?>
">
					<p> <?php 
    _e('Please scroll Left to Right to adjust logo image height, you can also use Arrow keys UP,Down - Left,Right.', 'crunchpress');
    ?>
 </p>  
                  </li>
				  <li class="span4 right-box-sec" id="slidertext"><?php 
    echo $logo_height;
    ?>
 <?php 
    _e('px', 'crunchpress');
    ?>
 </li>
                </ul>
              </li>
              <li id="color_style" class="style_color_scheme">
                <ul class="panel-body recipe_class row-fluid">
                  <li class="panel-input span8">
					<span class="panel-title">
						<h3 for="select_layout_cp">
						  <?php 
    _e('SELECT LAYOUT', 'crunchpress');
    ?>
						</h3>
					</span>
                    <div class="combobox">
                      <select name="select_layout_cp" class="select_layout_cp" id="select_layout_cp">
                        <option <?php 
    if ($select_layout_cp == 'full_layout') {
        echo 'selected';
    }
    ?>
 value="full_layout" class="full_layout">Full Layout</option>
                        <option <?php 
    if ($select_layout_cp == 'boxed_layout') {
        echo 'selected';
    }
    ?>
 value="boxed_layout" class="box_layout">Box Layout</option>
                      </select>
                    </div>
					<p> <?php 
    _e('Please select website layout Full or Boxed.', 'crunchpress');
    ?>
 </p>
                  </li>
                  <li class="span4 logo_upload">
					<div class="admin-logo-image">
						<img src="<?php 
    echo CP_PATH_URL;
    ?>
/images/full_version.jpg" class="full_v" />
						<img src="<?php 
    echo CP_PATH_URL;
    ?>
/images/boxed_version.jpg" class="boxed_v" />
					</div>	
				  </li>
                </ul>
                <!--<div class="clear"></div>
						<ul id="boxed_layout" class="panel-body recipe_class ">
							<li class="panel-title">
								<label for="boxed_scheme" > <?php 
    _e('BOXED LAYOUT BACKGROUND', 'crunchpress');
    ?>
 </label>
							</li>				
							<li class="panel-input">
								<input type="text" name="boxed_scheme" class="color-picker" value="<?php 
    //if($boxed_scheme <> ''){echo $boxed_scheme;}
    ?>
"/>
							</li>
							<li class="description">Please select any color from color palette to use as color scheme, leaving blank color scheme will be auto selected as default.</li>
						</ul>-->
                <div class="clear"></div>
                <ul class="panel-body recipe_class row-fluid">
                   <li class="panel-input span8">
					<span class="panel-title">
						<h3 for="color_scheme" >
						  <?php 
    _e('COLOR SCHEME', 'crunchpress');
    ?>
						</h3>
					</span>
					<div class="color-picker-container">
						<input type="text" name="color_scheme" class="color-picker" value="<?php 
    if ($color_scheme != '') {
        echo $color_scheme;
    }
    ?>
" />
					</div>
					<p> <?php 
    _e('Please select any color from color palette to use as color scheme (it will effect on all headings and anchors), leaving blank color scheme will be auto selected as default.', 'crunchpress');
    ?>
 </p>
                  </li>
                  <li class="span4 right-box-sec"> </li>
                </ul>
				<div class="clear"></div>
                <ul class="panel-body recipe_class row-fluid"> 
                  <li class="panel-input span8">
				  <span class="panel-title">
                    <h3>
                      <?php 
    _e('SELECT BACKGROUND TYPE', 'crunchpress');
    ?>
                    </h3>
                  </span>
                    <div class="combobox">
                      <select name="select_background_patren" class="select_background_patren" id="select_background_patren">
                        <option <?php 
    if ($select_bg_pat == 'Background-Patren') {
        echo 'selected';
    }
    ?>
 value="Background-Patren" class="select_bg_patren"> <?php 
    _e('Background Pattern', 'crunchpress');
    ?>
 </option>
                        <option <?php 
    if ($select_bg_pat == 'Background-Color') {
        echo 'selected';
    }
    ?>
 value="Background-Color" class="select_bg_color"> <?php 
    _e('Background Color', 'crunchpress');
    ?>
 </option>
                        <option <?php 
    if ($select_bg_pat == 'Background-Image') {
        echo 'selected';
    }
    ?>
 value="Background-Image" class="select_bg_image"> <?php 
    _e('Background Image', 'crunchpress');
    ?>
 </option>
                      </select>
                    </div>
					<p> <?php 
    _e('Please select background pattern or background color.', 'crunchpress');
    ?>
 </p>
                  </li>
                  <li id="select_bg_patren" class="span4 pattern-container">
				  <?php 
    $options = array('1' => array('value' => '1', 'image' => '/framework/images/pattern/pattern-1.png'), '2' => array('value' => '2', 'image' => '/framework/images/pattern/pattern-2.png'), '3' => array('value' => '3', 'image' => '/framework/images/pattern/pattern-3.png'), '4' => array('value' => '4', 'image' => '/framework/images/pattern/pattern-4.png'), '5' => array('value' => '5', 'image' => '/framework/images/pattern/pattern-5.png'), '6' => array('value' => '6', 'image' => '/framework/images/pattern/pattern-6.png'), '7' => array('value' => '7', 'image' => '/framework/images/pattern/pattern-7.png'), '8' => array('value' => '8', 'image' => '/framework/images/pattern/pattern-8.png'), '9' => array('value' => '9', 'image' => '/framework/images/pattern/pattern-9.png'), '10' => array('value' => '10', 'image' => '/framework/images/pattern/pattern-10.png'), '11' => array('value' => '11', 'image' => '/framework/images/pattern/pattern-11.png'), '12' => array('value' => '12', 'image' => '/framework/images/pattern/pattern-12.png'), '13' => array('value' => '13', 'image' => '/framework/images/pattern/pattern-13.png'), '14' => array('value' => '14', 'image' => '/framework/images/pattern/pattern-14.png'), '15' => array('value' => '15', 'image' => '/framework/images/pattern/pattern-15.png'), '16' => array('value' => '16', 'image' => '/framework/images/pattern/pattern-16.png'), '17' => array('value' => '17', 'image' => '/framework/images/pattern/pattern-17.png'), '18' => array('value' => '18', 'image' => '/framework/images/pattern/pattern-18.png'), '19' => array('value' => '19', 'image' => '/framework/images/pattern/pattern-19.png'), '20' => array('value' => '20', 'image' => '/framework/images/pattern/pattern-20.png'), '21' => array('value' => '21', 'image' => '/framework/images/pattern/pattern-21.png'), '22' => array('value' => '22', 'image' => '/framework/images/pattern/pattern-22.png'), '23' => array('value' => '23', 'image' => '/framework/images/pattern/pattern-45.png'));
    $value = '';
    $default = '';
    foreach ($options as $option) {
        ?>
                    <div class='radio-image-wrapper'>
                      <label for="<?php 
        echo $option['value'];
        ?>
">
                      <img src=<?php 
        echo CP_PATH_URL . $option['image'];
        ?>
 class="color_patren" alt="color_patren">
                      <div id="check-list"></div>
                      </label>
                      <input type="radio" class="checkbox_class" name="color_patren" value="<?php 
        echo $option['image'];
        ?>
" <?php 
        if ($color_patren == $option['image']) {
            echo 'checked';
        } else {
            if ($color_patren == '' && $default == $option['image']) {
                echo 'checked';
            }
        }
        ?>
 id="<?php 
        echo $option['value'];
        ?>
" class=""
										>
                    </div>
                    <?php 
    }
    ?>
 
				  </li>
                </ul>
                <div class="clear"></div>
                <ul id="select_bg_color" class="panel-body recipe_class row-fluid">
                  
                  <li class="panel-input span8">
				  <span class="panel-title">
                    <h3 for="bg_scheme" >
                      <?php 
    _e('BACKGROUND COLOR', 'crunchpress');
    ?>
                    </h3>
                  </span>
                    <div class="color-picker-container">
						<input type="text" name="bg_scheme" class="color-picker" value="<?php 
    if ($bg_scheme != '') {
        echo $bg_scheme;
    }
    ?>
"/>
					</div>
					<p> <?php 
    _e('Please select any color from color palette to use as background color, leaving blank background will be auto selected as default background.', 'crunchpress');
    ?>
 </p>
                  </li>
                  <li class="span4 right-box-sec"></li>
                </ul>
                <div class="clear"></div>
                <ul id="bg_upload_id" class="recipe_class logo_upload row-fluid">
                  <li class="panel-input span8 ">
					  <span class="panel-title">
						<h3 for="body_patren" >
						  <?php 
    _e('Upload Background Pattern', 'crunchpress');
    ?>
						</h3>
					  </span>
					  <?php 
    $image_src_head = '';
    if (!empty($header_logo)) {
        $image_src_head = wp_get_attachment_image_src($body_patren, 'full');
        $image_src_head = empty($image_src_head) ? '' : $image_src_head[0];
        //$thumb_src_preview = wp_get_attachment_image_src( $header_logo, '150x150');
        //echo '<img src="' . $thumb_src_preview[0] . '" />';
    }
    ?>
					<div class="content_con">
						<input name="body_patren" class="emptyme" type="hidden" id="upload_image_attachment_id" value="<?php 
    echo $body_patren;
    ?>
" />
						<input id="upload_image_text" class="emptyme upload_image_text" type="text" value="<?php 
    echo $image_src_head;
    ?>
" />
						<input class="upload_image_button" type="button" value="Upload" />
					</div>
					<p> <?php 
    _e('Upload background pattern for your theme this option provide you access to put your own image to use as background pattern.', 'crunchpress');
    ?>
 </p>
                  </li>
                  
				   <li class="panel-right-box span4">
					   <div class="admin-logo-image">
						  <?php 
    if (!empty($body_patren)) {
        $image_src_head = wp_get_attachment_image_src($body_patren, 'full');
        $image_src_head = empty($image_src_head) ? '' : $image_src_head[0];
        $thumb_src_preview = wp_get_attachment_image_src($body_patren, array(150, 150));
        ?>
						  <img class="clearme img-class" src="<?php 
        if (!empty($image_src_head)) {
            echo $thumb_src_preview[0];
        }
        ?>
" /><span class="close-me"></span>
						  <?php 
    }
    ?>
						</div>
					</li>
                </ul>
                <ul id="image_upload_id" class="recipe_class logo_upload row-fluid">
                 
                  <li class="panel-input span8">
					   <span class="panel-title">
						<h3 for="body_image" >
						  <?php 
    _e('Upload Background Image', 'crunchpress');
    ?>
						</h3>
					  </span>
					  <?php 
    $image_src_head = '';
    if (!empty($body_image)) {
        $image_src_head = wp_get_attachment_image_src($body_image, 'full');
        $image_src_head = empty($image_src_head) ? '' : $image_src_head[0];
        //$thumb_src_preview = wp_get_attachment_image_src( $header_logo, '150x150');
        //echo '<img src="' . $thumb_src_preview[0] . '" />';
    }
    ?>
                    <div class="content_con">
						<input name="body_image" class="clearme" type="hidden" id="upload_image_attachment_id" value="<?php 
    echo $body_image;
    ?>
" />
						<input id="upload_image_text" class="clearme upload_image_text" type="text" value="<?php 
    echo $image_src_head;
    ?>
" />
						<input class="upload_image_button" type="button" value="Upload" />
					</div>
					<p> <?php 
    _e('Upload background Image for your theme this option provide you access to put your own image to use as background Image.', 'crunchpress');
    ?>
 </p>
                  </li>
				   <li class="span4 description" >
					   <div class="admin-logo-image">
						  <?php 
    if (!empty($body_image)) {
        $image_src_head = wp_get_attachment_image_src($body_image, 'full');
        $image_src_head = empty($image_src_head) ? '' : $image_src_head[0];
        $thumb_src_preview = wp_get_attachment_image_src($body_image, array(150, 150));
        ?>
						  <img class="clearme img-class" src="<?php 
        if (!empty($image_src_head)) {
            echo $thumb_src_preview[0];
        }
        ?>
" /><span class="close-me"></span>
						  <?php 
    }
    ?>
						</div>
					</li>
					
                </ul>
                <div class="clear"></div>
				<div class="row-fluid">
                <ul class="recipe_class image_upload_options span4">
                 
                  <li class="panel-radioimage panel-input full-width">
				   <span class="panel-title">
                    <h3 for="position_image_layout">
                      <?php 
    _e('Image Position', 'crunchpress');
    ?>
                    </h3>
                  </span>
				  <div class="combobox cp-select-wrap">
					<select name="position_image_layout" class="position_image_layout" id="position_image_layout">
							<?php 
    $value = '';
    $options = array('1' => array('value' => 'top', 'title' => 'Position Top'), '2' => array('value' => 'right', 'title' => 'Position Right'), '3' => array('value' => 'left', 'title' => 'Position Left'), '4' => array('value' => 'bottom', 'title' => 'Position Bottom'), '5' => array('value' => 'center', 'title' => 'Position Center'));
    foreach ($options as $option) {
        ?>
									<option <?php 
        if ($position_image_layout == $option['value']) {
            echo 'selected';
        }
        ?>
 value="<?php 
        echo $option['value'];
        ?>
" class="position_image_layout"><?php 
        echo $option['title'];
        ?>
</option>
								<?php 
    }
    ?>
                    </select>
					</div>
					<p> <?php 
    _e('You can manage background image position in this area.', 'crunchpress');
    ?>
 </p>
                  </li>
				  
                </ul>
                <ul class="panel-body recipe_class image_upload_options span4">
                  <li class="panel-input full-width">
				  <span class="panel-title">
                    <h3 for="image_repeat_layout">
                      <?php 
    _e('SELECT BACKGROUND TYPE', 'crunchpress');
    ?>
                    </h3>
                  </span>
                    <div class="combobox cp-select-wrap">
                      <select name="image_repeat_layout" class="image_repeat_layout" id="image_repeat_layout">
					  			<?php 
    $value = '';
    $options = array('1' => array('value' => 'no-repeat', 'title' => 'No Repeat'), '2' => array('value' => 'repeat-x', 'title' => 'Repeat Horizontal'), '3' => array('value' => 'repeat-y', 'title' => 'Repeat Vertical'), '4' => array('value' => 'repeat', 'title' => 'Repeat'));
    foreach ($options as $option) {
        ?>
							<option <?php 
        if ($image_repeat_layout == $option['value']) {
            echo 'selected';
        }
        ?>
 value="<?php 
        echo $option['value'];
        ?>
" class="select_bg_patren"><?php 
        echo $option['title'];
        ?>
</option>
						<?php 
    }
    ?>
                      </select>
                    </div>
					<p> <?php 
    _e('You can manage your image repeat whether its repeated horizontal verticle or both.', 'crunchpress');
    ?>
 </p>
                  </li>
                </ul>
                <ul class="recipe_class image_upload_options span4">
                  
                  <li class="panel-radioimage panel-input full-width">
				  <span class="panel-title ">
                    <h3 for="image_attachment_layout">
                      <?php 
    _e('Image Attachment', 'crunchpress');
    ?>
                    </h3>
                  </span>
				  <div class="combobox cp-select-wrap">
				   <select name="image_attachment_layout" class="image_attachment_layout" id="image_attachment_layout">
						<?php 
    $value = '';
    $options = array('1' => array('value' => 'fixed', 'title' => 'Fixed'), '2' => array('value' => 'scroll', 'title' => 'Scroll'));
    foreach ($options as $option) {
        ?>
							<option <?php 
        if ($image_attachment_layout == $option['value']) {
            echo 'selected';
        }
        ?>
 value="<?php 
        echo $option['value'];
        ?>
" class="image_attachment_layout"><?php 
        echo $option['title'];
        ?>
</option>                   
						<?php 
    }
    ?>
					</select>
					</div>
					<p> <?php 
    _e('You can manage your background image attachment fixed or scroll.', 'crunchpress');
    ?>
 </p>
                  </li>
				 
                </ul>
				</div>
              </li>
              <li id="hr_settings" class="logo_dimenstion">
				<div class="row-fluid">
					<ul class="panel-body recipe_class span6">
						<li class="panel-input full-width">
							<span class="panel-title">
								<h3 >
									<?php 
    _e('TOP BAR', 'crunchpress');
    ?>
								</h3>
							</span>
							<label for="topbutton_icon">
								<div class="checkbox-switch <?php 
    echo $topbutton_icon == 'enable' || $topbutton_icon == '' && empty($default) ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
							</label>
							<input type="checkbox" name="topbutton_icon" class="checkbox-switch" value="disable" checked>
							<input type="checkbox" name="topbutton_icon" id="topbutton_icon" class="checkbox-switch" value="enable" 
							<?php 
    echo $topbutton_icon == 'enable' || $topbutton_icon == '' && empty($default) ? 'checked' : '';
    ?>
>
							<!--<p><?php 
    _e('You can turn On/Off Top Bar. Note: Turning it off Search and Top Social Networking Icons will be activated.', 'crunchpress');
    ?>
</p>-->
							<p><?php 
    _e('You can turn On/Off Top Bar. Social Icons, Sign in Sign up search everything will be disappear onces you turn it off.', 'crunchpress');
    ?>
</p>
						</li>
					</ul>
					<ul class="panel-body recipe_class span6">
						<li class="panel-input full-width">
							<span class="panel-title">
								<h3>
									<?php 
    _e('TOP CONTACT US FIELD', 'crunchpress');
    ?>
								</h3>
							</span>
							<textarea name="contact_us_code" id="contact_us_code" ><?php 
    echo $contact_us_code == '' ? esc_textarea($contact_us_code) : esc_textarea($contact_us_code);
    ?>
</textarea>
							<p><?php 
    _e('Please add html or shortcodes for top contact us links.', 'crunchpress');
    ?>
</p>
						</li>				 
					</ul>
					
				</div>	
				<div class="row-fluid">
					<ul class="panel-body recipe_class span4">
						<li class="panel-input full-width">
							<span class="panel-title">
								<h3>
									<?php 
    _e('TOP COUNTER', 'crunchpress');
    ?>
								</h3>
							</span>
							<label for="topcounter_circle">
								<div class="checkbox-switch <?php 
    echo $topcounter_circle == 'enable' || $topcounter_circle == '' && empty($default) ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
							</label>
							<input type="checkbox" name="topcounter_circle" class="checkbox-switch" value="disable" checked>
							<input type="checkbox" name="topcounter_circle" id="topcounter_circle" class="checkbox-switch" value="enable" 
							<?php 
    echo $topcounter_circle == 'enable' || $topcounter_circle == '' && empty($default) ? 'checked' : '';
    ?>
>
							<!--<p><?php 
    _e('You can turn On/Off Top Bar. Note: Turning it off Search and Top Social Networking Icons will be activated.', 'crunchpress');
    ?>
</p>-->
							<p><?php 
    _e('You can turn On/Off top counter from here.', 'crunchpress');
    ?>
</p>
						</li>
					</ul>
					<ul class="panel-body recipe_class span4">
						 <li class="panel-input full-width">
							<span class="panel-title">
								<h3>
								  <?php 
    _e('SELECT EVENT FOR COUNTDOWN', 'crunchpress');
    ?>
								</h3>
							</span>
							<div class="combobox">
								<select name="countd_event_category" class="countd_event_category" id="countd_event_category">
								<?php 
    foreach (get_title_list_array('event') as $values) {
        ?>
									<option <?php 
        if ($values->ID == $countd_event_category) {
            echo 'selected';
        }
        ?>
 value="<?php 
        echo $values->ID;
        ?>
"><?php 
        echo $values->post_title;
        ?>
</option>
									<?php 
    }
    ?>
								</select>
							</div>
							<p> <?php 
    _e('Please select event from dropdown to show its countdown.', 'crunchpress');
    ?>
 </p>
						  </li>
					</ul>   
					<ul class="panel-body recipe_class span4">
					  <li class="panel-input full-width">
						<span class="panel-title">
							<h3 for="" >
								<?php 
    _e('TOP SOCIAL NETWORK ICONS', 'crunchpress');
    ?>
							</h3>
						</span>
						<label for="topsocial_icon">
							<div class="checkbox-switch <?php 
    echo $topsocial_icon == 'enable' || $topsocial_icon == '' && empty($default) ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
						</label>
						<input type="checkbox" name="topsocial_icon" class="checkbox-switch" value="disable" checked>
						<input type="checkbox" name="topsocial_icon" id="topsocial_icon" class="checkbox-switch" value="enable" <?php 
    echo $topsocial_icon == 'enable' || $topsocial_icon == '' && empty($default) ? 'checked' : '';
    ?>
>
						<p><?php 
    _e('You can turn On/Off Top social network icons from main menu.', 'crunchpress');
    ?>
</p>
					  </li>
					</ul>
				</div>
				<div class="row-fluid">
					<ul class="panel-body recipe_class span6">
						<li class="panel-input full-width">
							<span class="panel-title">
								<h3 for="header_css_code" >
									<?php 
    _e('HEADER CODE', 'crunchpress');
    ?>
								</h3>
							</span>
							<textarea name="header_css_code" id="header_css_code" ><?php 
    echo $header_css_code == '' ? esc_textarea($header_css_code) : esc_textarea($header_css_code);
    ?>
</textarea>
							<p><?php 
    _e('Please write css code for you theme if you want to put some extra code in css for styling purpose only.', 'crunchpress');
    ?>
</p>
						</li>				 
					</ul>
					<ul class="panel-body recipe_class span6">
						<li class="panel-input full-width">
							<span class="panel-title">
								<h3 for="google_webmaster_code" >
									<?php 
    _e('GOOGLE WEBMASTER VERIFY CODE', 'crunchpress');
    ?>
								</h3>
							</span>
							<textarea name="google_webmaster_code" id="google_webmaster_code" ><?php 
    if ($google_webmaster_code != '') {
        echo esc_textarea($google_webmaster_code);
    }
    ?>
</textarea>
							<p><?php 
    _e('Please paste google, Bing, yahoo etc analytics code here to validate your site in webmaster.', 'crunchpress');
    ?>
</p>
						</li> 
					</ul>    
				</div>
              </li>
            <li id="ft_settings" class="logo_dimenstion">
				<div class="row-fluid">
					<ul class="panel-body recipe_class span4">
					  <li class="panel-input full-width">
					  <span class="panel-title">
						<h3 for="" >
						  <?php 
    _e('SOCIAL ICONS', 'crunchpress');
    ?>
						</h3>
					  </span>
						<label for="social_networking">
						<div class="checkbox-switch <?php 
    echo $social_networking == 'enable' || $social_networking == '' && empty($default) ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
						</label>
						<input type="checkbox" name="social_networking" class="checkbox-switch" value="disable" checked>
						<input type="checkbox" name="social_networking" id="social_networking" class="checkbox-switch" value="enable" <?php 
    echo $social_networking == 'enable' || $social_networking == '' && empty($default) ? 'checked' : '';
    ?>
>
								<div class="clear"></div>
							<p> <?php 
    _e('You can turn On/Off footer social networking profile icons.', 'crunchpress');
    ?>
</p>
					  </li>
					</ul>
					<ul class="panel-body recipe_class span4">
						<li class="panel-input full-width">
							<span class="panel-title">
								<h3 for="copyright_code" >
									<?php 
    _e('COPY RIGHT TEXT', 'crunchpress');
    ?>
								</h3>
							</span>
							<input type="text" name="copyright_code" id="copyright_code" value="<?php 
    echo $copyright_code == '' ? esc_html($copyright_code) : esc_html($copyright_code);
    ?>
" />
							<div class="clear"></div>
							<p><?php 
    _e('Please paste here your copy right text.', 'crunchpress');
    ?>
</p>
						</li>
					</ul>
					<ul class="recipe_class span4">
						<li class="panel-radioimage panel-input full-width">
							<span class="panel-title">
								<h3 for="">
								  <?php 
    _e('FOOTER WIDGET LAYOUT', 'crunchpress');
    ?>
								</h3>
							</span>
							<?php 
    $value = '';
    $options = array('1' => array('value' => 'footer-style1', 'image' => '/framework/images/footer-style1.png'), '6' => array('value' => 'footer-style6', 'image' => '/framework/images/footer-style6.png'));
    foreach ($options as $option) {
        ?>
							<div class='radio-image-wrapper'>
								<label for="<?php 
        echo $option['value'];
        ?>
">
								  <img src=<?php 
        echo CP_PATH_URL . $option['image'];
        ?>
 class="footer_col_layout" alt="footer_col_layout" />
								  <div id="check-list"></div>
								</label>
								<input type="radio" name="footer_col_layout" value="<?php 
        echo $option['value'];
        ?>
" id="<?php 
        echo $option['value'];
        ?>
" class="dd"
								<?php 
        if ($footer_col_layout == $option['value']) {
            echo 'checked';
        }
        ?>
>
							</div>
							<?php 
    }
    ?>
							<div class="clear"></div>
							<p> <?php 
    _e('Please select home page layout style.', 'crunchpress');
    ?>
</p>
						</li>
					</ul>
				</div>
            </li>
              <li id="misc_settings">
				<div class="row-fluid">
					<ul class="panel-body recipe_class span6">
					  <li class="panel-input full-width">
					   <span class="panel-title">
						<h3 for="" >
						  <?php 
    _e('BREADCRUMBS', 'crunchpress');
    ?>
						</h3>
					  </span>
						<label for="breadcrumbs">
						<div class="checkbox-switch <?php 
    echo $breadcrumbs == 'enable' || $breadcrumbs == '' && empty($default) ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
						</label>
						<input type="checkbox" name="breadcrumbs" class="checkbox-switch" value="disable" checked>
						<input type="checkbox" name="breadcrumbs" id="breadcrumbs" class="checkbox-switch" value="enable" <?php 
    if ($breadcrumbs == 'enable') {
        echo '';
    }
    echo $breadcrumbs == 'enable' || $breadcrumbs == '' && empty($default) ? 'checked' : '';
    ?>
>
						<p> <?php 
    _e('You can turn On/Off BreadCrumbs from Top of the page.', 'crunchpress');
    ?>
</p>
					  </li>
					  
					</ul>
					<ul class="panel-body recipe_class span6">
						<li class="panel-input full-width">
							<span class="panel-title">
								<h3 for="rtl_layout" >
									<?php 
    _e('RTL LAYOUTS', 'crunchpress');
    ?>
								</h3>
							</span>
							<label for="rtl_layout">
								<div class="checkbox-switch <?php 
    echo $rtl_layout == 'enable' || $rtl_layout == '' && empty($default) ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
							</label>
							<input type="checkbox" name="rtl_layout" class="checkbox-switch" value="disable" checked>
							<input type="checkbox" name="rtl_layout" id="rtl_layout" class="checkbox-switch" value="enable" <?php 
    echo $rtl_layout == 'enable' || $rtl_layout == '' && empty($default) ? 'checked' : '';
    ?>
>
							<p> <?php 
    _e('You can turn On/Off RTL Layout of website.', 'crunchpress');
    ?>
 </p>
						</li>
					</ul>
					<!--<ul class="panel-body recipe_class span3">
					  
					  <li class="panel-input full-width">
					  <span class="panel-title">
						<h3 for="site_loader" >
						  <?php 
    _e('TURN ON/OFF LOADER', 'crunchpress');
    ?>
						</h3>
					  </span>
						<label for="site_loader">
						<div class="checkbox-switch <?php 
    echo $site_loader == 'enable' || $site_loader == '' && empty($default) ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
						</label>
						<input type="checkbox" name="site_loader" class="checkbox-switch" value="disable" checked>
						<input type="checkbox" name="site_loader" id="site_loader" class="checkbox-switch" value="enable" <?php 
    echo $site_loader == 'enable' || $site_loader == '' && empty($default) ? 'checked' : '';
    ?>
>
								<p> <?php 
    _e('You can turn On/Off site Loader of website.', 'crunchpress');
    ?>
</p>
					  </li>
					  
					</ul>
					<ul class="panel-body recipe_class span3">
					  
					  <li class="panel-input full-width">
					  <span class="panel-title">
						<h3 for="element_loader" >
						  <?php 
    _e('TURN ON/OFF ELEMENT LOAD ON SCROLL', 'crunchpress');
    ?>
						</h3>
					  </span>
						<label for="element_loader">
						<div class="checkbox-switch <?php 
    echo $element_loader == 'enable' || $element_loader == '' && empty($default) ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
						</label>
						<input type="checkbox" name="element_loader" class="checkbox-switch" value="disable" checked>
						<input type="checkbox" name="element_loader" id="element_loader" class="checkbox-switch" value="enable" <?php 
    echo $element_loader == 'enable' || $element_loader == '' && empty($default) ? 'checked' : '';
    ?>
>
								<p><?php 
    _e('You can turn On/Off element Loader of website.', 'crunchpress');
    ?>
</p>
					  </li>
					  
					</ul>-->
				</div>
              </li>
			  <li id="maintenance_mode_settings">
				<div class="row-fluid">
					<ul class="panel-body recipe_class span3">
						<li class="panel-input full-width">
						   <span class="panel-title">
							<h3 for="" >
							  <?php 
    _e('Maintenance Mode', 'crunchpress');
    ?>
							</h3>
						  </span>
							<label for="maintenance_mode">
							<div class="checkbox-switch <?php 
    echo $maintenance_mode == 'enable' || $maintenance_mode == '' && empty($default) ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
							</label>
							<input type="checkbox" name="maintenance_mode" class="checkbox-switch" value="disable" checked>
							<input type="checkbox" name="maintenance_mode" id="maintenance_mode" class="checkbox-switch" value="enable" 
							<?php 
    if ($maintenance_mode == 'enable') {
        echo '';
    }
    echo $maintenance_mode == 'enable' || $maintenance_mode == '' && empty($default) ? 'checked' : '';
    ?>
>
							<p><?php 
    _e('You can turn On/Off Maintenance mode from here.', 'crunchpress');
    ?>
</p>
						</li>
					</ul>
					<ul class="panel-body recipe_class span3">
						<li class="panel-input full-width">
							<span class="panel-title">
								<h3>
									<?php 
    _e('Maintenance Title', 'crunchpress');
    ?>
								</h3>
							</span>
							<input type="text" name="maintenace_title" id="maintenace_title" value="<?php 
    echo $maintenace_title == '' ? esc_html($maintenace_title) : esc_html($maintenace_title);
    ?>
" />
							<div class="clear"></div>
							<p><?php 
    _e('Please add title on maintenance page.', 'crunchpress');
    ?>
</p>
						</li>
					</ul>
					<ul class="panel-body recipe_class span3">
						<li class="panel-input full-width">
							<span class="panel-title">
								<h3>
									<?php 
    _e('Countdown Time', 'crunchpress');
    ?>
								</h3>
							</span>
							<input type="text" name="countdown_time" id="countdown_time" value="<?php 
    echo $countdown_time == '' ? esc_html($countdown_time) : esc_html($countdown_time);
    ?>
" />
							<div class="clear"></div>
							<p><?php 
    _e('Please select time span when your site will be live and counter will countdown seconds to mints and days till that on maintenance page.', 'crunchpress');
    ?>
</p>
						</li>
					</ul>
					<ul class="panel-body recipe_class span3">
						<li class="panel-input full-width">
							<span class="panel-title">
								<h3>
									<?php 
    _e('Email', 'crunchpress');
    ?>
								</h3>
							</span>
							<input type="text" name="email_mainte" id="email_mainte" value="<?php 
    echo $email_mainte == '' ? esc_html($email_mainte) : esc_html($email_mainte);
    ?>
" />
							<div class="clear"></div>
							<p><?php 
    _e('Add email where you want to post subscriptions.', 'crunchpress');
    ?>
</p>
						</li>
					</ul>
				</div>
				<div class="row-fluid">
					<ul class="panel-body recipe_class span8">
						<li class="panel-input full-width">
							<span class="panel-title">
								<h3 for="mainte_description" >
									<?php 
    _e('Description', 'crunchpress');
    ?>
								</h3>
							</span>
							<textarea name="mainte_description" id="mainte_description" ><?php 
    if ($mainte_description != '') {
        echo esc_textarea($mainte_description);
    }
    ?>
</textarea>
							<p><?php 
    _e('Please add description text for your website maintenance.', 'crunchpress');
    ?>
</p>
						</li> 
					</ul>    
					<ul class="panel-body recipe_class span4">
						<li class="panel-input full-width">
						   <span class="panel-title">
							<h3 for="" >
							  <?php 
    _e('Social Icons', 'crunchpress');
    ?>
							</h3>
						  </span>
							<label for="social_icons_mainte">
							<div class="checkbox-switch <?php 
    echo $social_icons_mainte == 'enable' || $social_icons_mainte == '' && empty($default) ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
							</label>
							<input type="checkbox" name="social_icons_mainte" class="checkbox-switch" value="disable" checked>
							<input type="checkbox" name="social_icons_mainte" id="social_icons_mainte" class="checkbox-switch" value="enable" 
							<?php 
    if ($social_icons_mainte == 'enable') {
        echo '';
    }
    echo $social_icons_mainte == 'enable' || $social_icons_mainte == '' && empty($default) ? 'checked' : '';
    ?>
>
							<p><?php 
    _e('You can turn On/Off Maintenance mode social icons that are showing at bottom of page.', 'crunchpress');
    ?>
</p>
						</li>
					</ul>
				</div>	
              </li>
              <?php 
    if (!class_exists('Envato_WordPress_Theme_Upgrader')) {
    } else {
        ?>
              <li id="envato_api" class="envato_api">
                <ul class="panel-body recipe_class">
                 
                  <li class="panel-input">
					   <span class="panel-title">
						<h3 for="tf_username" >
						  <?php 
        _e('Username', 'crunchpress');
        ?>
						</h3>
					  </span>
                    <input type="text" name="tf_username" id="tf_username" value="<?php 
        echo $tf_username == '' ? esc_html($tf_username) : esc_html($tf_username);
        ?>
" />
					<span><?php 
        _e('Please enter your Theme Forest username.', 'crunchpress');
        ?>
  <br />
                    <p><?php 
        _e('For example: denonstudio', 'crunchpress');
        ?>
  </p></span>
                  </li>
                  
                </ul>
                <ul class="panel-body recipe_class">
                  
                  <li class="panel-input">
				  <span class="panel-title">
                    <h3 for="tf_sec_api" >
                      <?php 
        _e('API Key', 'crunchpress');
        ?>
                    </h3>
                  </span>
                    <input type="text" name="tf_sec_api" id="tf_sec_api" value="<?php 
        echo $tf_sec_api == '' ? esc_html($tf_sec_api) : esc_html($tf_sec_api);
        ?>
" />
                  </li>
                  <span class="right-box-sec"> <?php 
        _e('Please paste here your theme forest Secret API Key.', 'crunchpress');
        ?>
  <br />
                     <p><?php 
        _e('For example: xxxxxxxav7hny3p1ptm7xxxxxxxx', 'crunchpress');
        ?>
 <p></span>
                </ul>
              </li>
              <?php 
    }
    ?>
            </ul>
            <div class="clear"></div>
            <div class="panel-element-tail">
              <div class="tail-save-changes">
                <div class="loading-save-changes"></div>
                <input type="submit" value="<?php 
    echo __('Save Changes', 'crunchpress');
    ?>
">
                <input type="hidden" name="action" value="general_options">
                <!--<input type="hidden" name="security" value="<?php 
    //echo wp_create_nonce(plugin_basename(__FILE__))
    ?>
">--> 
              </div>
            </div>
          </div>
        </form>
      </div>
      <!--content End --> 
    </div>
    <!--content area end --> 
  </div>
<?php 
}
Ejemplo n.º 3
0
function dummydata_import()
{
    foreach ($_REQUEST as $keys => $values) {
        ${$keys} = trim($values);
    }
    $return_data = array('success' => '-1', 'alert' => 'Save option failed, please try contacting your host provider to increase the post_max_size and suhosin.post.max_vars varialble on the server.');
    ?>
<div class="cp-wrapper bootstrap_admin cp-margin-left"> 

    <!--content area start -->	  
	<div class="hbg top_navigation row-fluid">
		<div class="cp-logo span2">
			<img src="<?php 
    echo CP_PATH_URL;
    ?>
/framework/images/logo.png" class="logo" />
		</div>
		<div class="sidebar span10">
			<?php 
    echo top_navigation_html_tooltip();
    ?>
		</div>
	 <?php 
    //echo top_navigation_html();
    ?>
	</div>
	<div class="content-area-main row-fluid"> 
	
      <!--sidebar start -->
      <div class="sidebar-wraper span2">
        <div class="sidebar-sublinks">
				<ul id="wp_t_o_right_menu">
					<li class="news_letter" id="active_tab"><?php 
    _e('Dummy Content Settings', 'crunchpress');
    ?>
</li>
				</ul>
        </div>
      </div>
      <!--sidebar end --> 
		<div class="content-area span10">
		<?php 
    //echo top_navigation_html();
    ?>
			<div class="wrapper_right themeple_container">
				<ul class="newsletter_class">
					<li id="news_letter" class="active_tab">
						<ul class="download_newsletter recipe_class row-fluid">
							<li class="panel-input span8">
								<span class="panel-title">
									<h3><?php 
    _e('Import Dummy Content', 'crunchpress');
    ?>
 </h3>
								</span>
								<input type="hidden" value="<?php 
    echo wp_create_nonce('themeple_nonce_import_dummy_data');
    ?>
" name="themeple-nonce-dummy">
								<a class="themeple_btn themeple_btn_active themeple_dummy_data"><input type="button" value="<?php 
    _e('Import Content', 'crunchpress');
    ?>
" id="importcontent" /></a>
								<div class="js_data" id="themeple_js_data">
									<input type="hidden" value="<?php 
    echo admin_url("admin-ajax.php");
    ?>
" name="admin_ajax_url">						
								</div>
								<span class="loading"></span>
							</li>
							<li class="span4 right-box-sec"><p><?php 
    _e('Click on Import button to import your theme dummy content, After Clicking here everything will be set as demo. <br /><br />Note: If dummy content display any error please make sure your Allowed memory size greater than 64MB.', 'crunchpress');
    ?>
</p></li>
						</ul>
					</li>
				</ul>	
			</div>	
		</div>
	</div>				
</div>	
</div>		
	<?php 
}
Ejemplo n.º 4
0
function social_settings()
{
    foreach ($_REQUEST as $keys => $values) {
        ${$keys} = trim($values);
    }
    $return_data = array('success' => '-1', 'alert' => 'Save option failed, please try contacting your host provider to increase the post_max_size and suhosin.post.max_vars varialble on the server.');
    ?>
<div class="cp-wrapper bootstrap_admin cp-margin-left"> 

    <!--content area start -->	  
	<div class="hbg top_navigation row-fluid">
		<div class="cp-logo span2">
			<img src="<?php 
    echo CP_PATH_URL;
    ?>
/framework/images/logo.png" class="logo" />
		</div>
		<div class="sidebar span10">
			<?php 
    echo top_navigation_html_tooltip();
    ?>
		</div>
	 <?php 
    //echo top_navigation_html();
    ?>
	</div>
	<div class="content-area-main row-fluid"> 
	
      <!--sidebar start -->
      <div class="sidebar-wraper span2">
        <div class="sidebar-sublinks">
       <ul id="wp_t_o_right_menu">
					<li class="social_networking" id="active_tab"><?php 
    _e('Social Networking', 'crunchpress');
    ?>
</li>
					<li class="social_sharing"><?php 
    _e('Social Sharing', 'crunchpress');
    ?>
</li>
				</ul>
        </div>
      </div>
		  <!--sidebar end --> 
		  <!--content start -->
		  <div class="content-area span10">
		  <?php 
    //echo top_navigation_html();
    ?>
			<form id="options-panel-form" name="cp-panel-form">
			  <div class="panel-elements" id="panel-elements">
				<div class="panel-element" id="panel-element-save-complete">
				  <div class="panel-element-save-text">
					<?php 
    _e('Save Options Complete', 'crunchpress');
    ?>
					.</div>
				  <div class="panel-element-save-arrow"></div>
				</div>
				<div class="panel-element">
			<?php 
    //Social Sharing and Networking Values Saving as XML
    if (isset($action) and $action == 'social_settings') {
        $social_xml = '<social_settings>';
        $social_xml = $social_xml . create_xml_tag('facebook_network', htmlspecialchars(stripslashes($facebook_network)));
        $social_xml = $social_xml . create_xml_tag('twitter_network', htmlspecialchars(stripslashes($twitter_network)));
        $social_xml = $social_xml . create_xml_tag('delicious_network', htmlspecialchars(stripslashes($delicious_network)));
        $social_xml = $social_xml . create_xml_tag('google_plus_network', htmlspecialchars(stripslashes($google_plus_network)));
        //$social_xml = $social_xml . create_xml_tag('su_network',$su_network);
        $social_xml = $social_xml . create_xml_tag('linked_in_network', htmlspecialchars(stripslashes($linked_in_network)));
        //$social_xml = $social_xml . create_xml_tag('digg_network',$digg_network);
        //$social_xml = $social_xml . create_xml_tag('myspace_network',$myspace_network);
        //$social_xml = $social_xml . create_xml_tag('reddit_network',$reddit_network);
        $social_xml = $social_xml . create_xml_tag('youtube_network', htmlspecialchars(stripslashes($youtube_network)));
        $social_xml = $social_xml . create_xml_tag('flickr_network', htmlspecialchars(stripslashes($flickr_network)));
        //$social_xml = $social_xml . create_xml_tag('picasa_network',$picasa_network);
        $social_xml = $social_xml . create_xml_tag('vimeo_network', htmlspecialchars(stripslashes($vimeo_network)));
        $social_xml = $social_xml . create_xml_tag('pinterest_network', htmlspecialchars(stripslashes($pinterest_network)));
        $social_xml = $social_xml . create_xml_tag('Instagram_network', htmlspecialchars(stripslashes($Instagram_network)));
        $social_xml = $social_xml . create_xml_tag('github_network', htmlspecialchars(stripslashes($github_network)));
        $social_xml = $social_xml . create_xml_tag('skype_network', htmlspecialchars(stripslashes($skype_network)));
        //Social Sharing
        $social_xml = $social_xml . create_xml_tag('facebook_sharing', htmlspecialchars(stripslashes($facebook_sharing)));
        $social_xml = $social_xml . create_xml_tag('twitter_sharing', htmlspecialchars(stripslashes($twitter_sharing)));
        $social_xml = $social_xml . create_xml_tag('stumble_sharing', htmlspecialchars(stripslashes($stumble_sharing)));
        $social_xml = $social_xml . create_xml_tag('delicious_sharing', htmlspecialchars(stripslashes($delicious_sharing)));
        $social_xml = $social_xml . create_xml_tag('googleplus_sharing', htmlspecialchars(stripslashes($googleplus_sharing)));
        $social_xml = $social_xml . create_xml_tag('digg_sharing', htmlspecialchars(stripslashes($digg_sharing)));
        $social_xml = $social_xml . create_xml_tag('myspace_sharing', htmlspecialchars(stripslashes($myspace_sharing)));
        $social_xml = $social_xml . create_xml_tag('reddit_sharing', htmlspecialchars(stripslashes($reddit_sharing)));
        $social_xml = $social_xml . '</social_settings>';
        if (!save_option('social_settings', get_option('social_settings'), $social_xml)) {
            die(json_encode($return_data));
        }
        die(json_encode(array('success' => '0')));
    }
    //Social Networking
    $facebook_network = '';
    $twitter_network = '';
    $delicious_network = '';
    $google_plus_network = '';
    $su_network = '';
    $linked_in_network = '';
    $digg_network = '';
    $myspace_network = '';
    $reddit_network = '';
    $youtube_network = '';
    $flickr_network = '';
    $picasa_network = '';
    $vimeo_network = '';
    $pinterest_network = '';
    $Instagram_network = '';
    $github_network = '';
    $skype_network = '';
    //Social Sharing
    $facebook_sharing = '';
    $twitter_sharing = '';
    $stumble_sharing = '';
    $delicious_sharing = '';
    $googleplus_sharing = '';
    $digg_sharing = '';
    $myspace_sharing = '';
    $reddit_sharing = '';
    //Getting Values from database
    $cp_social_settings = get_option('social_settings');
    if ($cp_social_settings != '') {
        $cp_social = new DOMDocument();
        $cp_social->loadXML($cp_social_settings);
        //Social Networking Values
        $facebook_network = find_xml_value($cp_social->documentElement, 'facebook_network');
        $twitter_network = find_xml_value($cp_social->documentElement, 'twitter_network');
        $delicious_network = find_xml_value($cp_social->documentElement, 'delicious_network');
        $google_plus_network = find_xml_value($cp_social->documentElement, 'google_plus_network');
        //$su_network = find_xml_value($cp_social->documentElement,'su_network');
        $linked_in_network = find_xml_value($cp_social->documentElement, 'linked_in_network');
        //$digg_network = find_xml_value($cp_social->documentElement,'digg_network');
        //$myspace_network = find_xml_value($cp_social->documentElement,'myspace_network');
        //$reddit_network = find_xml_value($cp_social->documentElement,'reddit_network');
        $youtube_network = find_xml_value($cp_social->documentElement, 'youtube_network');
        //$flickr_network = find_xml_value($cp_social->documentElement,'flickr_network');
        //$picasa_network = find_xml_value($cp_social->documentElement,'picasa_network');
        $vimeo_network = find_xml_value($cp_social->documentElement, 'vimeo_network');
        $pinterest_network = find_xml_value($cp_social->documentElement, 'pinterest_network');
        // Social Sharing Values
        $facebook_sharing = find_xml_value($cp_social->documentElement, 'facebook_sharing');
        $twitter_sharing = find_xml_value($cp_social->documentElement, 'twitter_sharing');
        $stumble_sharing = find_xml_value($cp_social->documentElement, 'stumble_sharing');
        $delicious_sharing = find_xml_value($cp_social->documentElement, 'delicious_sharing');
        $googleplus_sharing = find_xml_value($cp_social->documentElement, 'googleplus_sharing');
        $digg_sharing = find_xml_value($cp_social->documentElement, 'digg_sharing');
        $myspace_sharing = find_xml_value($cp_social->documentElement, 'myspace_sharing');
        $reddit_sharing = find_xml_value($cp_social->documentElement, 'reddit_sharing');
    }
    ?>
				
				</div>
						<ul class="social_networking">
							<!--Social Networking Start -->
							<li id="social_networking" class="social_network_class active_tab">
								<div class="row-fluid">
									<ul class="panel-body recipe_class span4">											
										<li class="panel-input full-width">
											<span class="panel-title">
												<h3 for="facebook_network" > <?php 
    _e('Facebook', 'crunchpress');
    ?>
 </h3>
											</span>	
											<input type="text" name="facebook_network" id="facebook_network" value="<?php 
    if ($facebook_network != '') {
        echo esc_url($facebook_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="facebook"><i class="fa fa-facebook"></i></span>
											</div>
											<p><?php 
    _e('Please paste your Profile URl', 'crunchpress');
    ?>
</p>
										</li>
									</ul>
									<ul class="panel-body recipe_class span4">
										<li class="panel-input full-width">
											<span class="panel-title">
												<h3 for="twitter_network" > <?php 
    _e('Twitter', 'crunchpress');
    ?>
 </h3>
											</span>
											<input type="text" name="twitter_network" id="twitter_network" value="<?php 
    if ($twitter_network != '') {
        echo esc_url($twitter_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="twitter"><i class="fa fa-twitter"></i></span>
											</div>
											<p> <?php 
    _e('Please paste your Profile URl', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
									<ul class="panel-body recipe_class span4">	
										<li class="panel-input full-width">
											<span class="panel-title">
												<h3 for="delicious_network" > <?php 
    _e('Delicious', 'crunchpress');
    ?>
 </h3>
											</span>
											<input type="text" name="delicious_network" id="delicious_network" value="<?php 
    if ($delicious_network != '') {
        echo esc_url($delicious_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="delicious"><i class="fa fa-delicious"></i></span>
											</div>
											<p> <?php 
    _e('Please paste your Profile URl', 'crunchpress');
    ?>
</p> 
										</li>
									</ul>
								</div>
								<div class="row-fluid">
									<ul class="panel-body recipe_class span4">												
										<li class="panel-input full-width ">
											<span class="panel-title">
												<h3 for="google_plus_network" > <?php 
    _e('Google Plus', 'crunchpress');
    ?>
 </h3>
											</span>	
											<input type="text" name="google_plus_network" id="google_plus_network" value="<?php 
    if ($google_plus_network != '') {
        echo esc_url($google_plus_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="googleplus"><i class="fa fa-google-plus"></i></span>
											</div>
											<p> <?php 
    _e('Please paste your Profile URl', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
								
									<!--<ul class="panel-body recipe_class">
										<li class="panel-title">
											<label for="su_network" > <?php 
    _e('Stumble Upon', 'crunchpress');
    ?>
 </h3>
										</li>				
										<li class="panel-input full-width">
											<input type="text" name="su_network" id="su_network" value="<?php 
    if ($su_network != '') {
        echo esc_url($su_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="su_network">&nbsp;</span>
											</div>
										</li>
										<li class="description">Please paste your Profile URl</li>
									</ul>-->
								
									<ul class="panel-body recipe_class span4">
												
										<li class="panel-input full-width ">
											<span class="panel-title">
											<h3 for="linked_in_network" > <?php 
    _e('Linked In', 'crunchpress');
    ?>
 </h3>
										</span>	
											<input type="text" name="linked_in_network" id="linked_in_network" value="<?php 
    if ($linked_in_network != '') {
        echo esc_url($linked_in_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="linkedin"><i class="fa fa-linkedin"></i></span>
											</div>
											<p> <?php 
    _e('Please paste your Profile URl', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
							
									<!--<ul class="panel-body recipe_class">
										<li class="panel-title">
											<label for="digg_network" > <?php 
    _e('Digg', 'crunchpress');
    ?>
 </h3>
										</li>				
										<li class="panel-input full-width">
											<input type="text" name="digg_network" id="digg_network" value="<?php 
    if ($digg_network != '') {
        echo esc_url($digg_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="digg">&nbsp;</span>
											</div>
										</li>
										<li class="description">Please paste your Profile URl</li>
									</ul>
									<div class="clear"></div>
									<ul class="panel-body recipe_class">
										<li class="panel-title">
											<label for="myspace_network" > <?php 
    _e('Myspace', 'crunchpress');
    ?>
 </h3>
										</li>				
										<li class="panel-input full-width">
											<input type="text" name="myspace_network" id="myspace_network" value="<?php 
    if ($myspace_network != '') {
        echo esc_url($myspace_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="myspace">&nbsp;</span>
											</div>
										</li>
										<li class="description">Please paste your Profile URl</li>
									</ul>
									<div class="clear"></div>
									<ul class="panel-body recipe_class">
										<li class="panel-title">
											<label for="reddit_network" > <?php 
    _e('Reddit', 'crunchpress');
    ?>
 </h3>
										</li>				
										<li class="panel-input full-width">
											<input type="text" name="reddit_network" id="reddit_network" value="<?php 
    if ($reddit_network != '') {
        echo esc_url($reddit_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="reddit">&nbsp;</span>
											</div>
										</li>
										<li class="description">Please paste your Profile URl</li>
									</ul>
									<div class="clear"></div>-->
									<ul class="panel-body recipe_class span4">
														
										<li class="panel-input full-width">
										<span class="panel-title">
											<h3 for="youtube_network" > <?php 
    _e('Youtube', 'crunchpress');
    ?>
 </h3>
										</span>
											<input type="text" name="youtube_network" id="youtube_network" value="<?php 
    if ($youtube_network != '') {
        echo esc_url($youtube_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="youtube"><i class="fa fa-youtube"></i></span>
											</div>
											<p> <?php 
    _e('Please paste your Profile URl', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
								</div>
								<div class="row-fluid">
									<ul class="panel-body recipe_class span4">
													
										<li class="panel-input full-width ">
										<span class="panel-title">
											<h3 for="flickr_network" > <?php 
    _e('Flickr', 'crunchpress');
    ?>
 </h3>
										</span>	
											<input type="text" name="flickr_network" id="flickr_network" value="<?php 
    if ($flickr_network != '') {
        echo esc_url($flickr_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="flickr"><i class="fa fa-flickr"></i></span>
											</div>
											<p> <?php 
    _e('Please paste your Profile URl', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
									<!--<div class="clear"></div>
									<ul class="panel-body recipe_class">
										<li class="panel-title">
											<label for="picasa_network" > <?php 
    _e('Picasa', 'crunchpress');
    ?>
 </h3>
										</li>				
										<li class="panel-input full-width">
											<input type="text" name="picasa_network" id="picasa_network" value="<?php 
    if ($picasa_network != '') {
        echo esc_url($picasa_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="picasa">&nbsp;</span>
											</div>
										</li>
										<li class="description">Please paste your Profile URl</li>
									</ul>-->
								
									<ul class="panel-body recipe_class span4">
											
										<li class="panel-input full-width ">
											<span class="panel-title">
											<h3 for="vimeo_network" > <?php 
    _e('Vimeo', 'crunchpress');
    ?>
 </h3>
										</span>		
											<input type="text" name="vimeo_network" id="vimeo_network" value="<?php 
    if ($vimeo_network != '') {
        echo esc_url($vimeo_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="vimeo"><i class="fa fa-vimeo-square"></i></span>
											</div>
											<p> <?php 
    _e('Please paste your Profile URl', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
									<ul class="panel-body recipe_class span4">
													
										<li class="panel-input full-width ">
										<span class="panel-title">
											<h3 for="pinterest_network" > <?php 
    _e('Pinterest', 'crunchpress');
    ?>
 </h3>
										</span>	
											<input type="text" name="pinterest_network" id="pinterest_network" value="<?php 
    if ($pinterest_network != '') {
        echo esc_url($pinterest_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="pinterest"><i class="fa fa-pinterest"></i></span>
											</div>
											<p> <?php 
    _e('Please paste your Profile URl', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>	
								</div>
								<div class="row-fluid">
									<ul class="panel-body recipe_class span4">
													
										<li class="panel-input full-width ">
										<span class="panel-title">
											<h3> <?php 
    _e('Instagram', 'crunchpress');
    ?>
 </h3>
										</span>	
											<input type="text" name="Instagram_network" id="Instagram_network" value="<?php 
    if ($Instagram_network != '') {
        echo esc_url($Instagram_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="instagram"><i class="fa fa-instagram"></i></span>
											</div>
											<p> <?php 
    _e('Please paste your Profile URl', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
									<ul class="panel-body recipe_class span4">
										<li class="panel-input full-width ">
											<span class="panel-title">
											<h3> <?php 
    _e('Github', 'crunchpress');
    ?>
 </h3>
										</span>		
											<input type="text" name="github_network" id="github_network" value="<?php 
    if ($github_network != '') {
        echo esc_url($github_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="github"><i class="fa fa-github"></i></span>
											</div>
											<p> <?php 
    _e('Please paste your Profile URl', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
									<ul class="panel-body recipe_class span4">
										<li class="panel-input full-width ">
										<span class="panel-title">
											<h3> <?php 
    _e('Skype', 'crunchpress');
    ?>
 </h3>
										</span>	
											<input type="text" name="skype_network" id="skype_network" value="<?php 
    if ($skype_network != '') {
        echo esc_url($skype_network);
    }
    ?>
" />
											<div class="admin-social-image">
												<span class="skype"><i class="fa fa-skype"></i></span>
											</div>
											<p> <?php 
    _e('Please paste your Profile URl', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>	
								</div>
							</li>
							<!--Social Sharing Start -->
							<li id="social_sharing" class="social_sharing_class">
								<div class="row-fluid">
									<ul class="panel-body recipe_class span4">
										<li class="panel-input full-width ">
											<span class="panel-title">
												<h3 for="facebook_sharing" > <?php 
    _e('FACEBOOK SHARING', 'crunchpress');
    ?>
 </h3>
											</span>
											<label for="facebook_sharing">
												<div class="checkbox-switch <?php 
    echo $facebook_sharing == 'enable' || $facebook_sharing == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
											</label>
											<input type="checkbox" name="facebook_sharing" class="checkbox-switch" value="disable" checked>
											<input type="checkbox" name="facebook_sharing" id="facebook_sharing" class="checkbox-switch" value="enable" <?php 
    echo $facebook_sharing == 'enable' || $facebook_sharing == '' ? 'checked' : '';
    ?>
>
											<div class="admin-social-image">
												<span class="facebook">&nbsp;</span>
											</div>
											<p> <?php 
    _e('Please turn On/Off sharing on post detail page.', 'crunchpress');
    ?>
</p>
										</li>
									</ul>
									<ul class="panel-body recipe_class span4">
										<li class="panel-input full-width ">
											<span class="panel-title">
												<h3 for="twitter_sharing" > <?php 
    _e('TWITTER SHARING', 'crunchpress');
    ?>
 </h3>
											</span>	
											<label for="twitter_sharing">
												<div class="checkbox-switch <?php 
    echo $twitter_sharing == 'enable' || $twitter_sharing == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
											</label>
											<input type="checkbox" name="twitter_sharing" class="checkbox-switch" value="disable" checked>
											<input type="checkbox" name="twitter_sharing" id="twitter_sharing" class="checkbox-switch" value="enable" <?php 
    echo $twitter_sharing == 'enable' || $twitter_sharing == '' ? 'checked' : '';
    ?>
>
											<div class="admin-social-image">
												<span class="twitter">&nbsp;</span>
											</div>
											<p> <?php 
    _e('Please turn On/Off sharing on post detail page.', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>												
									<ul class="panel-body recipe_class span4">
										<li class="panel-input full-width ">
											<span class="panel-title">
												<h3 for="stumble_sharing" > <?php 
    _e('STUMBLEUPON SHARING', 'crunchpress');
    ?>
 </h3>
											</span>
											<label for="stumble_sharing">
												<div class="checkbox-switch <?php 
    echo $stumble_sharing == 'enable' || $stumble_sharing == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
											</label>
											<input type="checkbox" name="stumble_sharing" class="checkbox-switch" value="disable" checked>
											<input type="checkbox" name="stumble_sharing" id="stumble_sharing" class="checkbox-switch" value="enable" <?php 
    echo $stumble_sharing == 'enable' || $stumble_sharing == '' ? 'checked' : '';
    ?>
>
											<div class="admin-social-image">
												<span class="stumble">&nbsp;</span>
											</div>
											<p> <?php 
    _e('Please turn On/Off sharing on post detail page.', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
								</div>	
								<div class="row-fluid">							
									<ul class="panel-body recipe_class span4">									
										<li class="panel-input full-width ">
											<span class="panel-title">
												<h3 for="delicious_sharing" > <?php 
    _e('DELICIOUS SHARING', 'crunchpress');
    ?>
 </h3>
											</span>	
											<label for="delicious_sharing">
												<div class="checkbox-switch <?php 
    echo $delicious_sharing == 'enable' || $delicious_sharing == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
											</label>
											<input type="checkbox" name="delicious_sharing" class="checkbox-switch" value="disable" checked>
											<input type="checkbox" name="delicious_sharing" id="delicious_sharing" class="checkbox-switch" value="enable" <?php 
    echo $delicious_sharing == 'enable' || $delicious_sharing == '' ? 'checked' : '';
    ?>
>
											<div class="admin-social-image">
												<span class="delicious">&nbsp;</span>
											</div>
											<p> <?php 
    _e('Please turn On/Off sharing on post detail page.', 'crunchpress');
    ?>
</p>
										</li>
									</ul>											
									<ul class="panel-body recipe_class span4">
											
										<li class="panel-input full-width ">
										<span class="panel-title">
											<h3 for="googleplus_sharing" > <?php 
    _e('GOOGLE PLUS SHARING', 'crunchpress');
    ?>
 </h3>
										</span>
											<label for="googleplus_sharing">
												<div class="checkbox-switch <?php 
    echo $googleplus_sharing == 'enable' || $googleplus_sharing == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
											</label>
											<input type="checkbox" name="googleplus_sharing" class="checkbox-switch" value="disable" checked>
											<input type="checkbox" name="googleplus_sharing" id="googleplus_sharing" class="checkbox-switch" value="enable" <?php 
    echo $googleplus_sharing == 'enable' || $googleplus_sharing == '' ? 'checked' : '';
    ?>
>
											<div class="admin-social-image">
												<span class="googleplus">&nbsp;</span>
											</div>
											<p> <?php 
    _e('Please turn On/Off sharing on post detail page.', 'crunchpress');
    ?>
 </p>
										</li>
										
									</ul>											
									<ul class="panel-body recipe_class span4">
										<li class="panel-input full-width ">
											<span class="panel-title">
												<h3 for="digg_sharing" > <?php 
    _e('DIGG SHARING', 'crunchpress');
    ?>
 </h3>
											</span>
											<label for="digg_sharing">
												<div class="checkbox-switch <?php 
    echo $digg_sharing == 'enable' || $digg_sharing == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
											</label>
											<input type="checkbox" name="digg_sharing" class="checkbox-switch" value="disable" checked>
											<input type="checkbox" name="digg_sharing" id="digg_sharing" class="checkbox-switch" value="enable" <?php 
    echo $digg_sharing == 'enable' || $digg_sharing == '' ? 'checked' : '';
    ?>
>
											<div class="admin-social-image">
												<span class="digg">&nbsp;</span>
											</div>
											<p> <?php 
    _e('Please turn On/Off sharing on post detail page.', 'crunchpress');
    ?>
</p>
										</li>
									</ul>
								</div>	
								<div class="row-fluid">										
									<ul class="panel-body recipe_class span4">									
										<li class="panel-input full-width ">
											<span class="panel-title">
												<h3 for="myspace_sharing" > <?php 
    _e('MYSPACE SHARING', 'crunchpress');
    ?>
 </h3>
											</span>	
											<label for="myspace_sharing">
												<div class="checkbox-switch <?php 
    echo $myspace_sharing == 'enable' || $myspace_sharing == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
											</label>
											<input type="checkbox" name="myspace_sharing" class="checkbox-switch" value="disable" checked>
											<input type="checkbox" name="myspace_sharing" id="myspace_sharing" class="checkbox-switch" value="enable" <?php 
    echo $myspace_sharing == 'enable' || $myspace_sharing == '' ? 'checked' : '';
    ?>
>
											<div class="admin-social-image">
												<span class="myspace">&nbsp;</span>
											</div>
											<p> <?php 
    _e('Please turn On/Off sharing on post detail page.', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
									<ul class="panel-body recipe_class span4">
										<li class="panel-input full-width ">
											<span class="panel-title">
												<h3 for="reddit_sharing" > <?php 
    _e('REDDIT SHARING', 'crunchpress');
    ?>
 </h3>
											</span>	
											<label for="reddit_sharing">
												<div class="checkbox-switch <?php 
    echo $reddit_sharing == 'enable' || $reddit_sharing == '' ? 'checkbox-switch-on' : 'checkbox-switch-off';
    ?>
"></div>
											</label>
											<input type="checkbox" name="reddit_sharing" class="checkbox-switch" value="disable" checked>
											<input type="checkbox" name="reddit_sharing" id="reddit_sharing" class="checkbox-switch" value="enable" <?php 
    echo $reddit_sharing == 'enable' || $reddit_sharing == '' ? 'checked' : '';
    ?>
>
											<div class="admin-social-image">
												<span class="reddit">&nbsp;</span>
											</div>
											<p> <?php 
    _e('Please turn On/Off sharing on post detail page.', 'crunchpress');
    ?>
 </p>
										</li>
									</ul>
								</div>							
							</li>
					
					<div class="panel-element-tail">
						<div class="tail-save-changes">
							<div class="loading-save-changes"></div>
							<input type="submit" value="<?php 
    echo __('Save Changes', 'crunchpress');
    ?>
">
							<input type="hidden" name="action" value="social_settings">
							<!--<input type="hidden" name="security" value="<?php 
    //echo wp_create_nonce(plugin_basename(__FILE__))
    ?>
">--> 
						</div>
					</div>
				</div>
			</form>
		  </div>
		  <!--content End --> 
		</div>
		<!--content area end --> 
	  </div>
		<?php 
}
Ejemplo n.º 5
0
function typography_settings()
{
    foreach ($_REQUEST as $keys => $values) {
        ${$keys} = trim($values);
    }
    $return_data = array('success' => '-1', 'alert' => 'Save option failed, please try contacting your host provider to increase the post_max_size and suhosin.post.max_vars varialble on the server.');
    if (isset($action) and $action == 'typography_settings') {
        $typography_xml = '<typography_settings>';
        $typography_xml = $typography_xml . create_xml_tag('font_google', $font_google);
        $typography_xml = $typography_xml . create_xml_tag('font_size_normal', $font_size_normal);
        $typography_xml = $typography_xml . create_xml_tag('font_google_heading', $font_google_heading);
        $typography_xml = $typography_xml . create_xml_tag('menu_font_google', $menu_font_google);
        $typography_xml = $typography_xml . create_xml_tag('heading_h1', $heading_h1);
        $typography_xml = $typography_xml . create_xml_tag('heading_h2', $heading_h2);
        $typography_xml = $typography_xml . create_xml_tag('heading_h3', $heading_h3);
        $typography_xml = $typography_xml . create_xml_tag('heading_h4', $heading_h4);
        $typography_xml = $typography_xml . create_xml_tag('heading_h5', $heading_h5);
        $typography_xml = $typography_xml . create_xml_tag('heading_h6', $heading_h6);
        $typography_xml = $typography_xml . create_xml_tag('embed_typekit_code', htmlspecialchars(stripslashes($embed_typekit_code)));
        $typography_xml = $typography_xml . '</typography_settings>';
        $font_setting_xml = '<typekit_font>';
        $sidebars = $_POST['typekit_font'];
        foreach ($sidebars as $keys => $values) {
            $font_setting_xml = $font_setting_xml . create_xml_tag('typekit_font', $values);
        }
        $font_setting_xml = $font_setting_xml . '</typekit_font>';
        save_option('typokit_settings', get_option('typokit_settings'), $font_setting_xml);
        if (!save_option('typography_settings', get_option('typography_settings'), $typography_xml)) {
            die(json_encode($return_data));
        }
        die(json_encode(array('success' => '0')));
    }
    $font_google = '';
    $font_size_normal = '';
    $menu_font_google = '';
    $fonts_array = '';
    $font_google_heading = '';
    $heading_h1 = '';
    $heading_h2 = '';
    $heading_h3 = '';
    $heading_h4 = '';
    $heading_h5 = '';
    $heading_h6 = '';
    $embed_typekit_code = '';
    $cp_typography_settings = get_option('typography_settings');
    //$dd = find_xml_node($logo_uploa_d,'logo_upload');
    if ($cp_typography_settings != '') {
        $cp_typo = new DOMDocument();
        $cp_typo->loadXML($cp_typography_settings);
        $font_google = find_xml_value($cp_typo->documentElement, 'font_google');
        $font_size_normal = find_xml_value($cp_typo->documentElement, 'font_size_normal');
        $menu_font_google = find_xml_value($cp_typo->documentElement, 'menu_font_google');
        $font_google_heading = find_xml_value($cp_typo->documentElement, 'font_google_heading');
        $heading_h1 = find_xml_value($cp_typo->documentElement, 'heading_h1');
        $heading_h2 = find_xml_value($cp_typo->documentElement, 'heading_h2');
        $heading_h3 = find_xml_value($cp_typo->documentElement, 'heading_h3');
        $heading_h4 = find_xml_value($cp_typo->documentElement, 'heading_h4');
        $heading_h5 = find_xml_value($cp_typo->documentElement, 'heading_h5');
        $heading_h6 = find_xml_value($cp_typo->documentElement, 'heading_h6');
        $embed_typekit_code = find_xml_value($cp_typo->documentElement, 'embed_typekit_code');
    }
    ?>
		

<div class="cp-wrapper bootstrap_admin cp-margin-left"> 

    <!--content area start -->	  
	<div class="hbg top_navigation row-fluid">
		<div class="cp-logo span2">
			<img src="<?php 
    echo CP_PATH_URL;
    ?>
/framework/images/logo.png" class="logo" />
		</div>
		<div class="sidebar span10">
			<?php 
    echo top_navigation_html_tooltip();
    ?>
		</div>
	 <?php 
    //echo top_navigation_html();
    ?>
	</div>
	<div class="content-area-main row-fluid"> 
	 
      <!--sidebar start -->
      <div class="sidebar-wraper span2">
        <div class="sidebar-sublinks">
         <ul id="wp_t_o_right_menu">
				<li class="font_family" id="active_tab"><?php 
    _e('Font Family', 'crunchpress');
    ?>
</li>
				<li class="font_size"><?php 
    _e('Font Size', 'crunchpress');
    ?>
</li>
				<li class="type_kit_font"><?php 
    _e('Type Kit Font', 'crunchpress');
    ?>
</li>
			</ul>
        </div>
      </div>
      <!--sidebar end --> 
      <!--content start -->
      <div class="content-area span10">
	  <?php 
    //echo top_navigation_html();
    ?>
        <form id="options-panel-form" name="cp-panel-form">
          <div class="panel-elements" id="panel-elements">
            <div class="panel-element" id="panel-element-save-complete">
              <div class="panel-element-save-text">
                <?php 
    _e('Save Options Complete', 'crunchpress');
    ?>
                .</div>
              <div class="panel-element-save-arrow"></div>
            </div>
            <div class="panel-element"></div>
			<ul class="typography_class">
				<li id="font_family" class="active_tab">
						
						<?php 
    $fonts_array = get_font_array();
    ?>
						<ul class="recipe_class row-fluid">
							
							<li class="panel-input span8">	
								<span class="panel-title">
									<h3 for="font_google"><?php 
    _e('FONT FAMILY', 'crunchpress');
    ?>
</h3>
								</span>
								<div class="combobox">
									<select class="font_google" name="font_google" id="font_google">
										<option <?php 
    if ($font_google == 'Default') {
        echo 'selected';
    }
    ?>
 value="Default"><h3> <?php 
    _e('Theme Default', 'crunchpress');
    ?>
 </h3></option>
										<!--<optgroup label="Used font">
										<?php 
    $fonts_arr = get_font_array();
    foreach ($fonts_arr as $keys => $values) {
        if ($values == 'Used font') {
            ?>
												<option <?php 
            if ($font_google == esc_html($keys)) {
                echo 'selected';
            }
            ?>
><?php 
            echo $keys;
            ?>
</option>
												<?php 
        }
    }
    ?>
										</optgroup>-->		
										<div class="clear"></div>
										<!--ADOBE EDGE FONT START -->
										<optgroup label="ADOBE EDGE FONT">
											<option <?php 
    if ($font_google == 'abril-fatface') {
        echo 'selected';
    }
    ?>
 value="abril-fatface">Abril Fatface</option>
											<option <?php 
    if ($font_google == 'acme') {
        echo 'selected';
    }
    ?>
 value="acme">Acme</option>
											<option <?php 
    if ($font_google == 'alegreya_sc') {
        echo 'selected';
    }
    ?>
 value="alegreya-sc">Alegreya SC</option>
											<option <?php 
    if ($font_google == 'alegreya') {
        echo 'selected';
    }
    ?>
 value="alegreya">Alegreya</option>
											<option <?php 
    if ($font_google == 'alexa-std') {
        echo 'selected';
    }
    ?>
 value="alexa-std">Alexa Std</option>
											<option <?php 
    if ($font_google == 'amaranth') {
        echo 'selected';
    }
    ?>
 value="amaranth">Amaranth</option>
											<option <?php 
    if ($font_google == 'andika') {
        echo 'selected';
    }
    ?>
 value="andika">Andika</option>
											<option <?php 
    if ($font_google == 'anonymous-pro') {
        echo 'selected';
    }
    ?>
 value="anonymous-pro">Anonymous Pro</option>
											<option <?php 
    if ($font_google == 'arvo') {
        echo 'selected';
    }
    ?>
 value="arvo">Arvo</option>
											<option <?php 
    if ($font_google == 'asap') {
        echo 'selected';
    }
    ?>
 value="asap">Asap</option>
											<option <?php 
    if ($font_google == 'berkshire-swash') {
        echo 'selected';
    }
    ?>
 value="berkshire-swash">Berkshire Swash</option>
											<option <?php 
    if ($font_google == 'bree-serif') {
        echo 'selected';
    }
    ?>
 value="bree-serif">Bree Serif</option>
											<option <?php 
    if ($font_google == 'brush-script-std') {
        echo 'selected';
    }
    ?>
 value="brush-script-std">Brush Script Std</option>
											<option <?php 
    if ($font_google == 'chunk') {
        echo 'selected';
    }
    ?>
 value="chunk">Chunk</option>
											<option <?php 
    if ($font_google == 'cousine') {
        echo 'selected';
    }
    ?>
 value="cousine">Cousine</option>
											<option <?php 
    if ($font_google == 'crete-round') {
        echo 'selected';
    }
    ?>
 value="crete-round">Crete Round</option>
											<option <?php 
    if ($font_google == 'droid-sans-mono') {
        echo 'selected';
    }
    ?>
 value="droid-sans-mono">Droid Sans Mono</option>
											<option <?php 
    if ($font_google == 'droid-sans') {
        echo 'selected';
    }
    ?>
 value="droid-sans">Droid Sans</option>
											<option <?php 
    if ($font_google == 'droid-serif') {
        echo 'selected';
    }
    ?>
 value="droid-serif">Droid Serif</option>
											<option <?php 
    if ($font_google == 'ewert') {
        echo 'selected';
    }
    ?>
 value="ewert">Ewert</option>
											<option <?php 
    if ($font_google == 'fusaka-std') {
        echo 'selected';
    }
    ?>
 value="fusaka-std">Fusaka Std</option>
											<option <?php 
    if ($font_google == 'gentium-basic') {
        echo 'selected';
    }
    ?>
 value="gentium-basic">Gentium Basic</option>
											<option <?php 
    if ($font_google == 'gentium-book-basic') {
        echo 'selected';
    }
    ?>
 value="gentium-book-basic">Gentium Book Basic</option>
											<option <?php 
    if ($font_google == 'giddyup-std') {
        echo 'selected';
    }
    ?>
 value="giddyup-std">Giddyup Std</option>
											<option <?php 
    if ($font_google == 'gravitas-one') {
        echo 'selected';
    }
    ?>
 value="gravitas-one">Gravitas One</option>
											<option <?php 
    if ($font_google == 'hobo-std') {
        echo 'selected';
    }
    ?>
 value="hobo-std">Hobo Std</option>
											<option <?php 
    if ($font_google == 'holtwood-one-sc') {
        echo 'selected';
    }
    ?>
 value="holtwood-one-sc">Holtwood One SC</option>
											<option <?php 
    if ($font_google == 'imprima') {
        echo 'selected';
    }
    ?>
 value="imprima">Imprima</option>
											<option <?php 
    if ($font_google == 'inconsolata') {
        echo 'selected';
    }
    ?>
 value="inconsolata">Inconsolata</option>
											<option <?php 
    if ($font_google == 'inika') {
        echo 'selected';
    }
    ?>
 value="inika">Inika</option>
											<option <?php 
    if ($font_google == 'istok-web') {
        echo 'selected';
    }
    ?>
 value="istok-web">Istok Web</option>
											<option <?php 
    if ($font_google == 'jim-nightshade') {
        echo 'selected';
    }
    ?>
 value="jim-nightshade">Jim Nightshade</option>
											<option <?php 
    if ($font_google == 'josefin-slab') {
        echo 'selected';
    }
    ?>
 value="josefin-slab">Josefin Slab</option>
											<option <?php 
    if ($font_google == 'kameron') {
        echo 'selected';
    }
    ?>
 value="kameron">Kameron</option>
											<option <?php 
    if ($font_google == 'kaushan-script') {
        echo 'selected';
    }
    ?>
 value="kaushan-script">Kaushan Script</option>
											<option <?php 
    if ($font_google == 'kotta-one') {
        echo 'selected';
    }
    ?>
 value="kotta-one">Kotta One</option>
											<option <?php 
    if ($font_google == 'krona-one') {
        echo 'selected';
    }
    ?>
 value="krona-one">Krona One</option>
											<option <?php 
    if ($font_google == 'la-belle-aurore') {
        echo 'selected';
    }
    ?>
 value="la-belle-aurore">La Belle Aurore</option>
											<option <?php 
    if ($font_google == 'lato') {
        echo 'selected';
    }
    ?>
 value="lato">Lato</option>
											<option <?php 
    if ($font_google == 'league-gothic') {
        echo 'selected';
    }
    ?>
 value="league-gothic">League Gothic</option>
											<option <?php 
    if ($font_google == 'lekton') {
        echo 'selected';
    }
    ?>
 value="lekton">Lekton</option>
											<option <?php 
    if ($font_google == 'linden-hill') {
        echo 'selected';
    }
    ?>
 value="linden-hill">Linden Hill</option>
											<option <?php 
    if ($font_google == 'lobster-two') {
        echo 'selected';
    }
    ?>
 value="lobster-two">Lobster Two</option>
											<option <?php 
    if ($font_google == 'lobster') {
        echo 'selected';
    }
    ?>
 value="lobster">Lobster</option>
											<option <?php 
    if ($font_google == 'lusitana') {
        echo 'selected';
    }
    ?>
 value="lusitana">Lusitana</option>
											<option <?php 
    if ($font_google == 'm-1c') {
        echo 'selected';
    }
    ?>
 value="m-1c">M+ 1c</option>
											<option <?php 
    if ($font_google == 'm-1m') {
        echo 'selected';
    }
    ?>
 value="m-1m">M+ 1m</option>
											<option <?php 
    if ($font_google == 'marck-script') {
        echo 'selected';
    }
    ?>
 value="marck-script">Marck Script</option>
											<option <?php 
    if ($font_google == 'marvel') {
        echo 'selected';
    }
    ?>
 value="marvel">Marvel</option>
											<option <?php 
    if ($font_google == 'maven-pro') {
        echo 'selected';
    }
    ?>
 value="maven-pro">Maven Pro</option>
											<option <?php 
    if ($font_google == 'merienda-one') {
        echo 'selected';
    }
    ?>
 value="merienda-one">Merienda One</option>
											<option <?php 
    if ($font_google == 'merriweather') {
        echo 'selected';
    }
    ?>
 value="merriweather">Merriweather</option>
											<option <?php 
    if ($font_google == 'mr-bedfort') {
        echo 'selected';
    }
    ?>
 value="mr-bedfort">Mr Bedfort</option>
											<option <?php 
    if ($font_google == 'mr-de-haviland') {
        echo 'selected';
    }
    ?>
 value="mr-de-haviland">Mr De Haviland</option>
											<option <?php 
    if ($font_google == 'mrs-saint-delafield') {
        echo 'selected';
    }
    ?>
 value="mrs-saint-delafield">Mrs Saint Delafield</option>
											<option <?php 
    if ($font_google == 'muli') {
        echo 'selected';
    }
    ?>
 value="muli">Muli</option>
											<option <?php 
    if ($font_google == 'neuton-cursive') {
        echo 'selected';
    }
    ?>
 value="neuton-cursive">Neuton Cursive</option>
											<option <?php 
    if ($font_google == 'neuton') {
        echo 'selected';
    }
    ?>
 value="neuton">Neuton</option>
											<option <?php 
    if ($font_google == 'noticia-text') {
        echo 'selected';
    }
    ?>
 value="noticia-text">Noticia Text</option>
											<option <?php 
    if ($font_google == 'open-sans-condensed') {
        echo 'selected';
    }
    ?>
 value="open-sans-condensed">Open Sans Condensed</option>
											<option <?php 
    if ($font_google == 'open-sans') {
        echo 'selected';
    }
    ?>
 value="open-sans">Open Sans</option>
											<option <?php 
    if ($font_google == 'overlock-sc') {
        echo 'selected';
    }
    ?>
 value="overlock-sc">Overlock SC</option>
											<option <?php 
    if ($font_google == 'overlock') {
        echo 'selected';
    }
    ?>
 value="overlock">Overlock</option>
											<option <?php 
    if ($font_google == 'parisienne') {
        echo 'selected';
    }
    ?>
 value="parisienne">Parisienne</option>
											<option <?php 
    if ($font_google == 'passion-one') {
        echo 'selected';
    }
    ?>
 value="passion-one">Passion One</option>
											<option <?php 
    if ($font_google == 'patua-one') {
        echo 'selected';
    }
    ?>
 value="patua-one">Patua One</option>
											<option <?php 
    if ($font_google == 'petrona') {
        echo 'selected';
    }
    ?>
 value="petrona">Petrona</option>
											<option <?php 
    if ($font_google == 'pinyon-script') {
        echo 'selected';
    }
    ?>
 value="pinyon-script">Pinyon Script</option>
											<option <?php 
    if ($font_google == 'playball') {
        echo 'selected';
    }
    ?>
 value="playball">Playball</option>
											<option <?php 
    if ($font_google == 'playfair-display') {
        echo 'selected';
    }
    ?>
 value="playfair-display">Playfair Display</option>
											<option <?php 
    if ($font_google == 'poiret-one') {
        echo 'selected';
    }
    ?>
 value="poiret-one">Poiret One</option>
											<option <?php 
    if ($font_google == 'prata') {
        echo 'selected';
    }
    ?>
 value="prata">Prata</option>
											<option <?php 
    if ($font_google == 'pt-sans-caption') {
        echo 'selected';
    }
    ?>
 value="pt-sans-caption">PT Sans Caption</option>
											<option <?php 
    if ($font_google == 'pt-sans-narrow') {
        echo 'selected';
    }
    ?>
 value="pt-sans-narrow">PT Sans Narrow</option>
											<option <?php 
    if ($font_google == 'pt-sans') {
        echo 'selected';
    }
    ?>
 value="pt-sans">PT Sans</option>
											<option <?php 
    if ($font_google == 'pt-serif-caption') {
        echo 'selected';
    }
    ?>
 value="pt-serif-caption">PT Serif Caption</option>
											<option <?php 
    if ($font_google == 'pt-serif') {
        echo 'selected';
    }
    ?>
 value="pt-serif">PT Serif</option>
											<option <?php 
    if ($font_google == 'quantico') {
        echo 'selected';
    }
    ?>
 value="quantico">Quantico</option>
											<option <?php 
    if ($font_google == 'quattrocento-sans') {
        echo 'selected';
    }
    ?>
 value="quattrocento-sans">Quattrocento Sans</option>
											<option <?php 
    if ($font_google == 'questrial') {
        echo 'selected';
    }
    ?>
 value="questrial">Questrial</option>
											<option <?php 
    if ($font_google == 'quicksand') {
        echo 'selected';
    }
    ?>
 value="quicksand">Quicksand</option>
											<option <?php 
    if ($font_google == 'qwigley') {
        echo 'selected';
    }
    ?>
 value="qwigley">Qwigley</option>
											<option <?php 
    if ($font_google == 'radley') {
        echo 'selected';
    }
    ?>
 value="radley">Radley</option>
											<option <?php 
    if ($font_google == 'rochester') {
        echo 'selected';
    }
    ?>
 value="rochester">Rochester</option>
											<option <?php 
    if ($font_google == 'ropa-sans') {
        echo 'selected';
    }
    ?>
 value="ropa-sans">Ropa Sans</option>
											<option <?php 
    if ($font_google == 'rosario') {
        echo 'selected';
    }
    ?>
 value="rosario">Rosario</option>
											<option <?php 
    if ($font_google == 'ruda') {
        echo 'selected';
    }
    ?>
 value="ruda">Ruda</option>
											<option <?php 
    if ($font_google == 'sail') {
        echo 'selected';
    }
    ?>
 value="sail">Sail</option>
											<option <?php 
    if ($font_google == 'ansita-one') {
        echo 'selected';
    }
    ?>
 value="sansita-one">Sansita One</option>
											<option <?php 
    if ($font_google == 'sanvito-pro-display') {
        echo 'selected';
    }
    ?>
 value="sanvito-pro-display">Sanvito Pro Display</option>
											<option <?php 
    if ($font_google == 'sarina') {
        echo 'selected';
    }
    ?>
 value="sarina">Sarina</option>
											<option <?php 
    if ($font_google == 'satisfy') {
        echo 'selected';
    }
    ?>
 value="satisfy">Satisfy</option>
											<option <?php 
    if ($font_google == 'seaweed-script') {
        echo 'selected';
    }
    ?>
 value="seaweed-script">Seaweed Script</option>
											<option <?php 
    if ($font_google == 'share-regular') {
        echo 'selected';
    }
    ?>
 value="share-regular">Share Regular</option>
											<option <?php 
    if ($font_google == 'shuriken-std') {
        echo 'selected';
    }
    ?>
 value="shuriken-std">Shuriken Std</option>
											<option <?php 
    if ($font_google == 'sigmar-one') {
        echo 'selected';
    }
    ?>
 value="sigmar-one">Sigmar One</option>
											<option <?php 
    if ($font_google == 'sofia') {
        echo 'selected';
    }
    ?>
 value="sofia">Sofia</option>
											<option <?php 
    if ($font_google == 'source-code-pro') {
        echo 'selected';
    }
    ?>
 value="source-code-pro">Source Code Pro</option>
											<option <?php 
    if ($font_google == 'source-sans-pro') {
        echo 'selected';
    }
    ?>
 value="source-sans-pro">Source Sans Pro</option>
											<option <?php 
    if ($font_google == 'strumpf-std') {
        echo 'selected';
    }
    ?>
 value="strumpf-std">Strumpf Std</option>
											<option <?php 
    if ($font_google == 'syncopate') {
        echo 'selected';
    }
    ?>
 value="syncopate">Syncopate</option>
											<option <?php 
    if ($font_google == 'titan-one') {
        echo 'selected';
    }
    ?>
 value="titan-one">Titan One</option>
											<option <?php 
    if ($font_google == 'ubuntu-condensed') {
        echo 'selected';
    }
    ?>
 value="ubuntu-condensed">Ubuntu Condensed</option>
											<option <?php 
    if ($font_google == 'ultra') {
        echo 'selected';
    }
    ?>
 value="ultra">Ultra</option>
											<option <?php 
    if ($font_google == 'unifrakturcook') {
        echo 'selected';
    }
    ?>
 value="unifrakturcook">UnifrakturCook</option>
											<option <?php 
    if ($font_google == 'vera-sans') {
        echo 'selected';
    }
    ?>
 value="vera-sans">Vera Sans</option>
											<option <?php 
    if ($font_google == 'vidaloka') {
        echo 'selected';
    }
    ?>
 value="vidaloka">Vidaloka</option>
											<option <?php 
    if ($font_google == 'Volkhov') {
        echo 'selected';
    }
    ?>
 value="volkhov">Volkhov</option>
											<option <?php 
    if ($font_google == 'yellowtail') {
        echo 'selected';
    }
    ?>
 value="yellowtail">Yellowtail</option>							
										</optgroup>
										
										<!--GOOGLE Font Start -->
										<optgroup label="GOOGLE FONT">
										<?php 
    foreach ($fonts_array as $font_key => $font_value) {
        if ($font_value == 'Google Font') {
            ?>
												<option <?php 
            if ($font_google == esc_html($font_key)) {
                echo 'selected';
            }
            ?>
><?php 
            echo $font_key;
            ?>
</option>
											<?php 
        }
    }
    ?>
										</optgroup>		
										<!--Typekit Font Start -->
										<optgroup label="Typekit font">
										<?php 
    $fonts_arr = get_font_array();
    foreach ($fonts_arr as $keys => $values) {
        if ($values == 'Used font') {
            ?>
												<option <?php 
            if ($font_google == esc_html($keys)) {
                echo 'selected';
            }
            ?>
><?php 
            echo $keys;
            ?>
</option>
												<?php 
        }
    }
    ?>
										</optgroup>							
									</select>
								</div>
								<span class="description "><?php 
    _e('Please Select font family from dropdown for website body text.', 'crunchpress');
    ?>
</span>
							</li>
							<li class="sample_text span4"><p class="option-font-sample" id="option-font-sample"><?php 
    _e('SAMPLE TEXT', 'crunchpress');
    ?>
</p></li>
						</ul>
						
					
						<ul class="recipe_class row-fluid">
							<li class="panel-input span8">							
								<span class="panel-title">
									<h3 for="font_google_heading"><?php 
    _e('FONT FAMILY HEADINGS', 'crunchpress');
    ?>
</h3>
								</span>
								<div class="combobox">
									<select class="font_google" name="font_google_heading" id="font_google_heading">
										<option <?php 
    if ($font_google_heading == 'Default') {
        echo 'selected';
    }
    ?>
 value="Default"><h3> <?php 
    _e('Theme Default', 'crunchpress');
    ?>
 </h3></option>
										<!--ADOBE EDGE FONT START -->
										<optgroup label="ADOBE EDGE FONT">
											
											<option <?php 
    if ($font_google_heading == 'abril-fatface') {
        echo 'selected';
    }
    ?>
 value="abril-fatface">Abril Fatface</option>
											<option <?php 
    if ($font_google_heading == 'acme') {
        echo 'selected';
    }
    ?>
 value="acme">Acme</option>
											<option <?php 
    if ($font_google_heading == 'alegreya_sc') {
        echo 'selected';
    }
    ?>
 value="alegreya-sc">Alegreya SC</option>
											<option <?php 
    if ($font_google_heading == 'alegreya') {
        echo 'selected';
    }
    ?>
 value="alegreya">Alegreya</option>
											<option <?php 
    if ($font_google_heading == 'alexa-std') {
        echo 'selected';
    }
    ?>
 value="alexa-std">Alexa Std</option>
											<option <?php 
    if ($font_google_heading == 'amaranth') {
        echo 'selected';
    }
    ?>
 value="amaranth">Amaranth</option>
											<option <?php 
    if ($font_google_heading == 'andika') {
        echo 'selected';
    }
    ?>
 value="andika">Andika</option>
											<option <?php 
    if ($font_google_heading == 'anonymous-pro') {
        echo 'selected';
    }
    ?>
 value="anonymous-pro">Anonymous Pro</option>
											<option <?php 
    if ($font_google_heading == 'arvo') {
        echo 'selected';
    }
    ?>
 value="arvo">Arvo</option>
											<option <?php 
    if ($font_google_heading == 'asap') {
        echo 'selected';
    }
    ?>
 value="asap">Asap</option>
											<option <?php 
    if ($font_google_heading == 'berkshire-swash') {
        echo 'selected';
    }
    ?>
 value="berkshire-swash">Berkshire Swash</option>
											<option <?php 
    if ($font_google_heading == 'bree-serif') {
        echo 'selected';
    }
    ?>
 value="bree-serif">Bree Serif</option>
											<option <?php 
    if ($font_google_heading == 'brush-script-std') {
        echo 'selected';
    }
    ?>
 value="brush-script-std">Brush Script Std</option>
											<option <?php 
    if ($font_google_heading == 'chunk') {
        echo 'selected';
    }
    ?>
 value="chunk">Chunk</option>
											<option <?php 
    if ($font_google_heading == 'cousine') {
        echo 'selected';
    }
    ?>
 value="cousine">Cousine</option>
											<option <?php 
    if ($font_google_heading == 'crete-round') {
        echo 'selected';
    }
    ?>
 value="crete-round">Crete Round</option>
											<option <?php 
    if ($font_google_heading == 'droid-sans-mono') {
        echo 'selected';
    }
    ?>
 value="droid-sans-mono">Droid Sans Mono</option>
											<option <?php 
    if ($font_google_heading == 'droid-sans') {
        echo 'selected';
    }
    ?>
 value="droid-sans">Droid Sans</option>
											<option <?php 
    if ($font_google_heading == 'droid-serif') {
        echo 'selected';
    }
    ?>
 value="droid-serif">Droid Serif</option>
											<option <?php 
    if ($font_google_heading == 'ewert') {
        echo 'selected';
    }
    ?>
 value="ewert">Ewert</option>
											<option <?php 
    if ($font_google_heading == 'fusaka-std') {
        echo 'selected';
    }
    ?>
 value="fusaka-std">Fusaka Std</option>
											<option <?php 
    if ($font_google_heading == 'gentium-basic') {
        echo 'selected';
    }
    ?>
 value="gentium-basic">Gentium Basic</option>
											<option <?php 
    if ($font_google_heading == 'gentium-book-basic') {
        echo 'selected';
    }
    ?>
 value="gentium-book-basic">Gentium Book Basic</option>
											<option <?php 
    if ($font_google_heading == 'giddyup-std') {
        echo 'selected';
    }
    ?>
 value="giddyup-std">Giddyup Std</option>
											<option <?php 
    if ($font_google_heading == 'gravitas-one') {
        echo 'selected';
    }
    ?>
 value="gravitas-one">Gravitas One</option>
											<option <?php 
    if ($font_google_heading == 'hobo-std') {
        echo 'selected';
    }
    ?>
 value="hobo-std">Hobo Std</option>
											<option <?php 
    if ($font_google_heading == 'holtwood-one-sc') {
        echo 'selected';
    }
    ?>
 value="holtwood-one-sc">Holtwood One SC</option>
											<option <?php 
    if ($font_google_heading == 'imprima') {
        echo 'selected';
    }
    ?>
 value="imprima">Imprima</option>
											<option <?php 
    if ($font_google_heading == 'inconsolata') {
        echo 'selected';
    }
    ?>
 value="inconsolata">Inconsolata</option>
											<option <?php 
    if ($font_google_heading == 'inika') {
        echo 'selected';
    }
    ?>
 value="inika">Inika</option>
											<option <?php 
    if ($font_google_heading == 'istok-web') {
        echo 'selected';
    }
    ?>
 value="istok-web">Istok Web</option>
											<option <?php 
    if ($font_google_heading == 'jim-nightshade') {
        echo 'selected';
    }
    ?>
 value="jim-nightshade">Jim Nightshade</option>
											<option <?php 
    if ($font_google_heading == 'josefin-slab') {
        echo 'selected';
    }
    ?>
 value="josefin-slab">Josefin Slab</option>
											<option <?php 
    if ($font_google_heading == 'kameron') {
        echo 'selected';
    }
    ?>
 value="kameron">Kameron</option>
											<option <?php 
    if ($font_google_heading == 'kaushan-script') {
        echo 'selected';
    }
    ?>
 value="kaushan-script">Kaushan Script</option>
											<option <?php 
    if ($font_google_heading == 'kotta-one') {
        echo 'selected';
    }
    ?>
 value="kotta-one">Kotta One</option>
											<option <?php 
    if ($font_google_heading == 'krona-one') {
        echo 'selected';
    }
    ?>
 value="krona-one">Krona One</option>
											<option <?php 
    if ($font_google_heading == 'la-belle-aurore') {
        echo 'selected';
    }
    ?>
 value="la-belle-aurore">La Belle Aurore</option>
											<option <?php 
    if ($font_google_heading == 'lato') {
        echo 'selected';
    }
    ?>
 value="lato">Lato</option>
											<option <?php 
    if ($font_google_heading == 'league-gothic') {
        echo 'selected';
    }
    ?>
 value="league-gothic">League Gothic</option>
											<option <?php 
    if ($font_google_heading == 'lekton') {
        echo 'selected';
    }
    ?>
 value="lekton">Lekton</option>
											<option <?php 
    if ($font_google_heading == 'linden-hill') {
        echo 'selected';
    }
    ?>
 value="linden-hill">Linden Hill</option>
											<option <?php 
    if ($font_google_heading == 'lobster-two') {
        echo 'selected';
    }
    ?>
 value="lobster-two">Lobster Two</option>
											<option <?php 
    if ($font_google_heading == 'lobster') {
        echo 'selected';
    }
    ?>
 value="lobster">Lobster</option>
											<option <?php 
    if ($font_google_heading == 'lusitana') {
        echo 'selected';
    }
    ?>
 value="lusitana">Lusitana</option>
											<option <?php 
    if ($font_google_heading == 'm-1c') {
        echo 'selected';
    }
    ?>
 value="m-1c">M+ 1c</option>
											<option <?php 
    if ($font_google_heading == 'm-1m') {
        echo 'selected';
    }
    ?>
 value="m-1m">M+ 1m</option>
											<option <?php 
    if ($font_google_heading == 'marck-script') {
        echo 'selected';
    }
    ?>
 value="marck-script">Marck Script</option>
											<option <?php 
    if ($font_google_heading == 'marvel') {
        echo 'selected';
    }
    ?>
 value="marvel">Marvel</option>
											<option <?php 
    if ($font_google_heading == 'maven-pro') {
        echo 'selected';
    }
    ?>
 value="maven-pro">Maven Pro</option>
											<option <?php 
    if ($font_google_heading == 'merienda-one') {
        echo 'selected';
    }
    ?>
 value="merienda-one">Merienda One</option>
											<option <?php 
    if ($font_google_heading == 'merriweather') {
        echo 'selected';
    }
    ?>
 value="merriweather">Merriweather</option>
											<option <?php 
    if ($font_google_heading == 'mr-bedfort') {
        echo 'selected';
    }
    ?>
 value="mr-bedfort">Mr Bedfort</option>
											<option <?php 
    if ($font_google_heading == 'mr-de-haviland') {
        echo 'selected';
    }
    ?>
 value="mr-de-haviland">Mr De Haviland</option>
											<option <?php 
    if ($font_google_heading == 'mrs-saint-delafield') {
        echo 'selected';
    }
    ?>
 value="mrs-saint-delafield">Mrs Saint Delafield</option>
											<option <?php 
    if ($font_google_heading == 'muli') {
        echo 'selected';
    }
    ?>
 value="muli">Muli</option>
											<option <?php 
    if ($font_google_heading == 'neuton-cursive') {
        echo 'selected';
    }
    ?>
 value="neuton-cursive">Neuton Cursive</option>
											<option <?php 
    if ($font_google_heading == 'neuton') {
        echo 'selected';
    }
    ?>
 value="neuton">Neuton</option>
											<option <?php 
    if ($font_google_heading == 'noticia-text') {
        echo 'selected';
    }
    ?>
 value="noticia-text">Noticia Text</option>
											<option <?php 
    if ($font_google_heading == 'open-sans-condensed') {
        echo 'selected';
    }
    ?>
 value="open-sans-condensed">Open Sans Condensed</option>
											<option <?php 
    if ($font_google_heading == 'open-sans') {
        echo 'selected';
    }
    ?>
 value="open-sans">Open Sans</option>
											<option <?php 
    if ($font_google_heading == 'overlock-sc') {
        echo 'selected';
    }
    ?>
 value="overlock-sc">Overlock SC</option>
											<option <?php 
    if ($font_google_heading == 'overlock') {
        echo 'selected';
    }
    ?>
 value="overlock">Overlock</option>
											<option <?php 
    if ($font_google_heading == 'parisienne') {
        echo 'selected';
    }
    ?>
 value="parisienne">Parisienne</option>
											<option <?php 
    if ($font_google_heading == 'passion-one') {
        echo 'selected';
    }
    ?>
 value="passion-one">Passion One</option>
											<option <?php 
    if ($font_google_heading == 'patua-one') {
        echo 'selected';
    }
    ?>
 value="patua-one">Patua One</option>
											<option <?php 
    if ($font_google_heading == 'petrona') {
        echo 'selected';
    }
    ?>
 value="petrona">Petrona</option>
											<option <?php 
    if ($font_google_heading == 'pinyon-script') {
        echo 'selected';
    }
    ?>
 value="pinyon-script">Pinyon Script</option>
											<option <?php 
    if ($font_google_heading == 'playball') {
        echo 'selected';
    }
    ?>
 value="playball">Playball</option>
											<option <?php 
    if ($font_google_heading == 'playfair-display') {
        echo 'selected';
    }
    ?>
 value="playfair-display">Playfair Display</option>
											<option <?php 
    if ($font_google_heading == 'poiret-one') {
        echo 'selected';
    }
    ?>
 value="poiret-one">Poiret One</option>
											<option <?php 
    if ($font_google_heading == 'prata') {
        echo 'selected';
    }
    ?>
 value="prata">Prata</option>
											<option <?php 
    if ($font_google_heading == 'pt-sans-caption') {
        echo 'selected';
    }
    ?>
 value="pt-sans-caption">PT Sans Caption</option>
											<option <?php 
    if ($font_google_heading == 'pt-sans-narrow') {
        echo 'selected';
    }
    ?>
 value="pt-sans-narrow">PT Sans Narrow</option>
											<option <?php 
    if ($font_google_heading == 'pt-sans') {
        echo 'selected';
    }
    ?>
 value="pt-sans">PT Sans</option>
											<option <?php 
    if ($font_google_heading == 'pt-serif-caption') {
        echo 'selected';
    }
    ?>
 value="pt-serif-caption">PT Serif Caption</option>
											<option <?php 
    if ($font_google_heading == 'pt-serif') {
        echo 'selected';
    }
    ?>
 value="pt-serif">PT Serif</option>
											<option <?php 
    if ($font_google_heading == 'quantico') {
        echo 'selected';
    }
    ?>
 value="quantico">Quantico</option>
											<option <?php 
    if ($font_google_heading == 'quattrocento-sans') {
        echo 'selected';
    }
    ?>
 value="quattrocento-sans">Quattrocento Sans</option>
											<option <?php 
    if ($font_google_heading == 'questrial') {
        echo 'selected';
    }
    ?>
 value="questrial">Questrial</option>
											<option <?php 
    if ($font_google_heading == 'quicksand') {
        echo 'selected';
    }
    ?>
 value="quicksand">Quicksand</option>
											<option <?php 
    if ($font_google_heading == 'qwigley') {
        echo 'selected';
    }
    ?>
 value="qwigley">Qwigley</option>
											<option <?php 
    if ($font_google_heading == 'radley') {
        echo 'selected';
    }
    ?>
 value="radley">Radley</option>
											<option <?php 
    if ($font_google_heading == 'rochester') {
        echo 'selected';
    }
    ?>
 value="rochester">Rochester</option>
											<option <?php 
    if ($font_google_heading == 'ropa-sans') {
        echo 'selected';
    }
    ?>
 value="ropa-sans">Ropa Sans</option>
											<option <?php 
    if ($font_google_heading == 'rosario') {
        echo 'selected';
    }
    ?>
 value="rosario">Rosario</option>
											<option <?php 
    if ($font_google_heading == 'ruda') {
        echo 'selected';
    }
    ?>
 value="ruda">Ruda</option>
											<option <?php 
    if ($font_google_heading == 'sail') {
        echo 'selected';
    }
    ?>
 value="sail">Sail</option>
											<option <?php 
    if ($font_google_heading == 'ansita-one') {
        echo 'selected';
    }
    ?>
 value="sansita-one">Sansita One</option>
											<option <?php 
    if ($font_google_heading == 'sanvito-pro-display') {
        echo 'selected';
    }
    ?>
 value="sanvito-pro-display">Sanvito Pro Display</option>
											<option <?php 
    if ($font_google_heading == 'sarina') {
        echo 'selected';
    }
    ?>
 value="sarina">Sarina</option>
											<option <?php 
    if ($font_google_heading == 'satisfy') {
        echo 'selected';
    }
    ?>
 value="satisfy">Satisfy</option>
											<option <?php 
    if ($font_google_heading == 'seaweed-script') {
        echo 'selected';
    }
    ?>
 value="seaweed-script">Seaweed Script</option>
											<option <?php 
    if ($font_google_heading == 'share-regular') {
        echo 'selected';
    }
    ?>
 value="share-regular">Share Regular</option>
											<option <?php 
    if ($font_google_heading == 'shuriken-std') {
        echo 'selected';
    }
    ?>
 value="shuriken-std">Shuriken Std</option>
											<option <?php 
    if ($font_google_heading == 'sigmar-one') {
        echo 'selected';
    }
    ?>
 value="sigmar-one">Sigmar One</option>
											<option <?php 
    if ($font_google_heading == 'sofia') {
        echo 'selected';
    }
    ?>
 value="sofia">Sofia</option>
											<option <?php 
    if ($font_google_heading == 'source-code-pro') {
        echo 'selected';
    }
    ?>
 value="source-code-pro">Source Code Pro</option>
											<option <?php 
    if ($font_google_heading == 'source-sans-pro') {
        echo 'selected';
    }
    ?>
 value="source-sans-pro">Source Sans Pro</option>
											<option <?php 
    if ($font_google_heading == 'strumpf-std') {
        echo 'selected';
    }
    ?>
 value="strumpf-std">Strumpf Std</option>
											<option <?php 
    if ($font_google_heading == 'syncopate') {
        echo 'selected';
    }
    ?>
 value="syncopate">Syncopate</option>
											<option <?php 
    if ($font_google_heading == 'titan-one') {
        echo 'selected';
    }
    ?>
 value="titan-one">Titan One</option>
											<option <?php 
    if ($font_google_heading == 'ubuntu-condensed') {
        echo 'selected';
    }
    ?>
 value="ubuntu-condensed">Ubuntu Condensed</option>
											<option <?php 
    if ($font_google_heading == 'ultra') {
        echo 'selected';
    }
    ?>
 value="ultra">Ultra</option>
											<option <?php 
    if ($font_google_heading == 'unifrakturcook') {
        echo 'selected';
    }
    ?>
 value="unifrakturcook">UnifrakturCook</option>
											<option <?php 
    if ($font_google_heading == 'vera-sans') {
        echo 'selected';
    }
    ?>
 value="vera-sans">Vera Sans</option>
											<option <?php 
    if ($font_google_heading == 'vidaloka') {
        echo 'selected';
    }
    ?>
 value="vidaloka">Vidaloka</option>
											<option <?php 
    if ($font_google_heading == 'Volkhov') {
        echo 'selected';
    }
    ?>
 value="volkhov">Volkhov</option>
											<option <?php 
    if ($font_google_heading == 'yellowtail') {
        echo 'selected';
    }
    ?>
 value="yellowtail">Yellowtail</option>							
										</optgroup>
										
										<!--GOOGLE Font Start -->
										<optgroup label="GOOGLE FONT">
										<?php 
    foreach ($fonts_array as $font_key => $font_value) {
        if ($font_value == 'Google Font') {
            ?>
												<option <?php 
            if ($font_google_heading == esc_html($font_key)) {
                echo 'selected';
            }
            ?>
><?php 
            echo $font_key;
            ?>
</option>
											<?php 
        }
    }
    ?>
										
										<!--Typekit Font Start -->
										<optgroup label="Typekit font">
										<?php 
    $fonts_arr = get_font_array();
    foreach ($fonts_arr as $keys => $values) {
        if ($values == 'Typekit font') {
            ?>
												<option <?php 
            if ($font_google_heading == esc_html($keys)) {
                echo 'selected';
            }
            ?>
><?php 
            echo $keys;
            ?>
</option>
												<?php 
        }
    }
    ?>
										</optgroup>							
									</select>
								</div>
								<span class="description"><?php 
    _e('Please select font family from dropdown for website Headings.', 'crunchpress');
    ?>
</span>
							</li>
							<li class="sample_text span4"><p class="option-font-sample" id="option-font-sample"><?php 
    _e('SAMPLE TEXT', 'crunchpress');
    ?>
</p></li>
						</ul>
						<ul class="recipe_class row-fluid">							
							<li class="panel-input span8">	
								<span class="panel-title">
									<h3 for="menu_font_google"><?php 
    _e('MENU FONT FAMILY', 'crunchpress');
    ?>
</h3>
								</span>
								<div class="combobox">
									<select class="font_google" name="menu_font_google" id="menu_font_google">
										<option <?php 
    if ($menu_font_google == 'Default') {
        echo 'selected';
    }
    ?>
 value="Default"><h3> <?php 
    _e('Theme Default', 'crunchpress');
    ?>
 </h3></option>
										<!--<optgroup label="Used font">
										<?php 
    $fonts_arr = get_font_array();
    foreach ($fonts_arr as $keys => $values) {
        if ($values == 'Used font') {
            ?>
												<option <?php 
            if ($menu_font_google == esc_html($keys)) {
                echo 'selected';
            }
            ?>
><?php 
            echo $keys;
            ?>
</option>
												<?php 
        }
    }
    ?>
										</optgroup>-->		
										<div class="clear"></div>
										<!--ADOBE EDGE FONT START -->
										<optgroup label="ADOBE EDGE FONT">
											<option <?php 
    if ($menu_font_google == 'abril-fatface') {
        echo 'selected';
    }
    ?>
 value="abril-fatface">Abril Fatface</option>
											<option <?php 
    if ($menu_font_google == 'acme') {
        echo 'selected';
    }
    ?>
 value="acme">Acme</option>
											<option <?php 
    if ($menu_font_google == 'alegreya_sc') {
        echo 'selected';
    }
    ?>
 value="alegreya-sc">Alegreya SC</option>
											<option <?php 
    if ($menu_font_google == 'alegreya') {
        echo 'selected';
    }
    ?>
 value="alegreya">Alegreya</option>
											<option <?php 
    if ($menu_font_google == 'alexa-std') {
        echo 'selected';
    }
    ?>
 value="alexa-std">Alexa Std</option>
											<option <?php 
    if ($menu_font_google == 'amaranth') {
        echo 'selected';
    }
    ?>
 value="amaranth">Amaranth</option>
											<option <?php 
    if ($menu_font_google == 'andika') {
        echo 'selected';
    }
    ?>
 value="andika">Andika</option>
											<option <?php 
    if ($menu_font_google == 'anonymous-pro') {
        echo 'selected';
    }
    ?>
 value="anonymous-pro">Anonymous Pro</option>
											<option <?php 
    if ($menu_font_google == 'arvo') {
        echo 'selected';
    }
    ?>
 value="arvo">Arvo</option>
											<option <?php 
    if ($menu_font_google == 'asap') {
        echo 'selected';
    }
    ?>
 value="asap">Asap</option>
											<option <?php 
    if ($menu_font_google == 'berkshire-swash') {
        echo 'selected';
    }
    ?>
 value="berkshire-swash">Berkshire Swash</option>
											<option <?php 
    if ($menu_font_google == 'bree-serif') {
        echo 'selected';
    }
    ?>
 value="bree-serif">Bree Serif</option>
											<option <?php 
    if ($menu_font_google == 'brush-script-std') {
        echo 'selected';
    }
    ?>
 value="brush-script-std">Brush Script Std</option>
											<option <?php 
    if ($menu_font_google == 'chunk') {
        echo 'selected';
    }
    ?>
 value="chunk">Chunk</option>
											<option <?php 
    if ($menu_font_google == 'cousine') {
        echo 'selected';
    }
    ?>
 value="cousine">Cousine</option>
											<option <?php 
    if ($menu_font_google == 'crete-round') {
        echo 'selected';
    }
    ?>
 value="crete-round">Crete Round</option>
											<option <?php 
    if ($menu_font_google == 'droid-sans-mono') {
        echo 'selected';
    }
    ?>
 value="droid-sans-mono">Droid Sans Mono</option>
											<option <?php 
    if ($menu_font_google == 'droid-sans') {
        echo 'selected';
    }
    ?>
 value="droid-sans">Droid Sans</option>
											<option <?php 
    if ($menu_font_google == 'droid-serif') {
        echo 'selected';
    }
    ?>
 value="droid-serif">Droid Serif</option>
											<option <?php 
    if ($menu_font_google == 'ewert') {
        echo 'selected';
    }
    ?>
 value="ewert">Ewert</option>
											<option <?php 
    if ($menu_font_google == 'fusaka-std') {
        echo 'selected';
    }
    ?>
 value="fusaka-std">Fusaka Std</option>
											<option <?php 
    if ($menu_font_google == 'gentium-basic') {
        echo 'selected';
    }
    ?>
 value="gentium-basic">Gentium Basic</option>
											<option <?php 
    if ($menu_font_google == 'gentium-book-basic') {
        echo 'selected';
    }
    ?>
 value="gentium-book-basic">Gentium Book Basic</option>
											<option <?php 
    if ($menu_font_google == 'giddyup-std') {
        echo 'selected';
    }
    ?>
 value="giddyup-std">Giddyup Std</option>
											<option <?php 
    if ($menu_font_google == 'gravitas-one') {
        echo 'selected';
    }
    ?>
 value="gravitas-one">Gravitas One</option>
											<option <?php 
    if ($menu_font_google == 'hobo-std') {
        echo 'selected';
    }
    ?>
 value="hobo-std">Hobo Std</option>
											<option <?php 
    if ($menu_font_google == 'holtwood-one-sc') {
        echo 'selected';
    }
    ?>
 value="holtwood-one-sc">Holtwood One SC</option>
											<option <?php 
    if ($menu_font_google == 'imprima') {
        echo 'selected';
    }
    ?>
 value="imprima">Imprima</option>
											<option <?php 
    if ($menu_font_google == 'inconsolata') {
        echo 'selected';
    }
    ?>
 value="inconsolata">Inconsolata</option>
											<option <?php 
    if ($menu_font_google == 'inika') {
        echo 'selected';
    }
    ?>
 value="inika">Inika</option>
											<option <?php 
    if ($menu_font_google == 'istok-web') {
        echo 'selected';
    }
    ?>
 value="istok-web">Istok Web</option>
											<option <?php 
    if ($menu_font_google == 'jim-nightshade') {
        echo 'selected';
    }
    ?>
 value="jim-nightshade">Jim Nightshade</option>
											<option <?php 
    if ($menu_font_google == 'josefin-slab') {
        echo 'selected';
    }
    ?>
 value="josefin-slab">Josefin Slab</option>
											<option <?php 
    if ($menu_font_google == 'kameron') {
        echo 'selected';
    }
    ?>
 value="kameron">Kameron</option>
											<option <?php 
    if ($menu_font_google == 'kaushan-script') {
        echo 'selected';
    }
    ?>
 value="kaushan-script">Kaushan Script</option>
											<option <?php 
    if ($menu_font_google == 'kotta-one') {
        echo 'selected';
    }
    ?>
 value="kotta-one">Kotta One</option>
											<option <?php 
    if ($menu_font_google == 'krona-one') {
        echo 'selected';
    }
    ?>
 value="krona-one">Krona One</option>
											<option <?php 
    if ($menu_font_google == 'la-belle-aurore') {
        echo 'selected';
    }
    ?>
 value="la-belle-aurore">La Belle Aurore</option>
											<option <?php 
    if ($menu_font_google == 'lato') {
        echo 'selected';
    }
    ?>
 value="lato">Lato</option>
											<option <?php 
    if ($menu_font_google == 'league-gothic') {
        echo 'selected';
    }
    ?>
 value="league-gothic">League Gothic</option>
											<option <?php 
    if ($menu_font_google == 'lekton') {
        echo 'selected';
    }
    ?>
 value="lekton">Lekton</option>
											<option <?php 
    if ($menu_font_google == 'linden-hill') {
        echo 'selected';
    }
    ?>
 value="linden-hill">Linden Hill</option>
											<option <?php 
    if ($menu_font_google == 'lobster-two') {
        echo 'selected';
    }
    ?>
 value="lobster-two">Lobster Two</option>
											<option <?php 
    if ($menu_font_google == 'lobster') {
        echo 'selected';
    }
    ?>
 value="lobster">Lobster</option>
											<option <?php 
    if ($menu_font_google == 'lusitana') {
        echo 'selected';
    }
    ?>
 value="lusitana">Lusitana</option>
											<option <?php 
    if ($menu_font_google == 'm-1c') {
        echo 'selected';
    }
    ?>
 value="m-1c">M+ 1c</option>
											<option <?php 
    if ($menu_font_google == 'm-1m') {
        echo 'selected';
    }
    ?>
 value="m-1m">M+ 1m</option>
											<option <?php 
    if ($menu_font_google == 'marck-script') {
        echo 'selected';
    }
    ?>
 value="marck-script">Marck Script</option>
											<option <?php 
    if ($menu_font_google == 'marvel') {
        echo 'selected';
    }
    ?>
 value="marvel">Marvel</option>
											<option <?php 
    if ($menu_font_google == 'maven-pro') {
        echo 'selected';
    }
    ?>
 value="maven-pro">Maven Pro</option>
											<option <?php 
    if ($menu_font_google == 'merienda-one') {
        echo 'selected';
    }
    ?>
 value="merienda-one">Merienda One</option>
											<option <?php 
    if ($menu_font_google == 'merriweather') {
        echo 'selected';
    }
    ?>
 value="merriweather">Merriweather</option>
											<option <?php 
    if ($menu_font_google == 'mr-bedfort') {
        echo 'selected';
    }
    ?>
 value="mr-bedfort">Mr Bedfort</option>
											<option <?php 
    if ($menu_font_google == 'mr-de-haviland') {
        echo 'selected';
    }
    ?>
 value="mr-de-haviland">Mr De Haviland</option>
											<option <?php 
    if ($menu_font_google == 'mrs-saint-delafield') {
        echo 'selected';
    }
    ?>
 value="mrs-saint-delafield">Mrs Saint Delafield</option>
											<option <?php 
    if ($menu_font_google == 'muli') {
        echo 'selected';
    }
    ?>
 value="muli">Muli</option>
											<option <?php 
    if ($menu_font_google == 'neuton-cursive') {
        echo 'selected';
    }
    ?>
 value="neuton-cursive">Neuton Cursive</option>
											<option <?php 
    if ($menu_font_google == 'neuton') {
        echo 'selected';
    }
    ?>
 value="neuton">Neuton</option>
											<option <?php 
    if ($menu_font_google == 'noticia-text') {
        echo 'selected';
    }
    ?>
 value="noticia-text">Noticia Text</option>
											<option <?php 
    if ($menu_font_google == 'open-sans-condensed') {
        echo 'selected';
    }
    ?>
 value="open-sans-condensed">Open Sans Condensed</option>
											<option <?php 
    if ($menu_font_google == 'open sans') {
        echo 'selected';
    }
    ?>
 value="open sans">Open Sans</option>
											<option <?php 
    if ($menu_font_google == 'overlock-sc') {
        echo 'selected';
    }
    ?>
 value="overlock-sc">Overlock SC</option>
											<option <?php 
    if ($menu_font_google == 'overlock') {
        echo 'selected';
    }
    ?>
 value="overlock">Overlock</option>
											<option <?php 
    if ($menu_font_google == 'parisienne') {
        echo 'selected';
    }
    ?>
 value="parisienne">Parisienne</option>
											<option <?php 
    if ($menu_font_google == 'passion-one') {
        echo 'selected';
    }
    ?>
 value="passion-one">Passion One</option>
											<option <?php 
    if ($menu_font_google == 'patua-one') {
        echo 'selected';
    }
    ?>
 value="patua-one">Patua One</option>
											<option <?php 
    if ($menu_font_google == 'petrona') {
        echo 'selected';
    }
    ?>
 value="petrona">Petrona</option>
											<option <?php 
    if ($menu_font_google == 'pinyon-script') {
        echo 'selected';
    }
    ?>
 value="pinyon-script">Pinyon Script</option>
											<option <?php 
    if ($menu_font_google == 'playball') {
        echo 'selected';
    }
    ?>
 value="playball">Playball</option>
											<option <?php 
    if ($menu_font_google == 'playfair-display') {
        echo 'selected';
    }
    ?>
 value="playfair-display">Playfair Display</option>
											<option <?php 
    if ($menu_font_google == 'poiret-one') {
        echo 'selected';
    }
    ?>
 value="poiret-one">Poiret One</option>
											<option <?php 
    if ($menu_font_google == 'prata') {
        echo 'selected';
    }
    ?>
 value="prata">Prata</option>
											<option <?php 
    if ($menu_font_google == 'pt-sans-caption') {
        echo 'selected';
    }
    ?>
 value="pt-sans-caption">PT Sans Caption</option>
											<option <?php 
    if ($menu_font_google == 'pt-sans-narrow') {
        echo 'selected';
    }
    ?>
 value="pt-sans-narrow">PT Sans Narrow</option>
											<option <?php 
    if ($menu_font_google == 'pt-sans') {
        echo 'selected';
    }
    ?>
 value="pt-sans">PT Sans</option>
											<option <?php 
    if ($menu_font_google == 'pt-serif-caption') {
        echo 'selected';
    }
    ?>
 value="pt-serif-caption">PT Serif Caption</option>
											<option <?php 
    if ($menu_font_google == 'pt-serif') {
        echo 'selected';
    }
    ?>
 value="pt-serif">PT Serif</option>
											<option <?php 
    if ($menu_font_google == 'quantico') {
        echo 'selected';
    }
    ?>
 value="quantico">Quantico</option>
											<option <?php 
    if ($menu_font_google == 'quattrocento-sans') {
        echo 'selected';
    }
    ?>
 value="quattrocento-sans">Quattrocento Sans</option>
											<option <?php 
    if ($menu_font_google == 'questrial') {
        echo 'selected';
    }
    ?>
 value="questrial">Questrial</option>
											<option <?php 
    if ($menu_font_google == 'quicksand') {
        echo 'selected';
    }
    ?>
 value="quicksand">Quicksand</option>
											<option <?php 
    if ($menu_font_google == 'qwigley') {
        echo 'selected';
    }
    ?>
 value="qwigley">Qwigley</option>
											<option <?php 
    if ($menu_font_google == 'radley') {
        echo 'selected';
    }
    ?>
 value="radley">Radley</option>
											<option <?php 
    if ($menu_font_google == 'rochester') {
        echo 'selected';
    }
    ?>
 value="rochester">Rochester</option>
											<option <?php 
    if ($menu_font_google == 'ropa-sans') {
        echo 'selected';
    }
    ?>
 value="ropa-sans">Ropa Sans</option>
											<option <?php 
    if ($menu_font_google == 'rosario') {
        echo 'selected';
    }
    ?>
 value="rosario">Rosario</option>
											<option <?php 
    if ($menu_font_google == 'ruda') {
        echo 'selected';
    }
    ?>
 value="ruda">Ruda</option>
											<option <?php 
    if ($menu_font_google == 'sail') {
        echo 'selected';
    }
    ?>
 value="sail">Sail</option>
											<option <?php 
    if ($menu_font_google == 'ansita-one') {
        echo 'selected';
    }
    ?>
 value="sansita-one">Sansita One</option>
											<option <?php 
    if ($menu_font_google == 'sanvito-pro-display') {
        echo 'selected';
    }
    ?>
 value="sanvito-pro-display">Sanvito Pro Display</option>
											<option <?php 
    if ($menu_font_google == 'sarina') {
        echo 'selected';
    }
    ?>
 value="sarina">Sarina</option>
											<option <?php 
    if ($menu_font_google == 'satisfy') {
        echo 'selected';
    }
    ?>
 value="satisfy">Satisfy</option>
											<option <?php 
    if ($menu_font_google == 'seaweed-script') {
        echo 'selected';
    }
    ?>
 value="seaweed-script">Seaweed Script</option>
											<option <?php 
    if ($menu_font_google == 'share-regular') {
        echo 'selected';
    }
    ?>
 value="share-regular">Share Regular</option>
											<option <?php 
    if ($menu_font_google == 'shuriken-std') {
        echo 'selected';
    }
    ?>
 value="shuriken-std">Shuriken Std</option>
											<option <?php 
    if ($menu_font_google == 'sigmar-one') {
        echo 'selected';
    }
    ?>
 value="sigmar-one">Sigmar One</option>
											<option <?php 
    if ($menu_font_google == 'sofia') {
        echo 'selected';
    }
    ?>
 value="sofia">Sofia</option>
											<option <?php 
    if ($menu_font_google == 'source-code-pro') {
        echo 'selected';
    }
    ?>
 value="source-code-pro">Source Code Pro</option>
											<option <?php 
    if ($menu_font_google == 'source-sans-pro') {
        echo 'selected';
    }
    ?>
 value="source-sans-pro">Source Sans Pro</option>
											<option <?php 
    if ($menu_font_google == 'strumpf-std') {
        echo 'selected';
    }
    ?>
 value="strumpf-std">Strumpf Std</option>
											<option <?php 
    if ($menu_font_google == 'syncopate') {
        echo 'selected';
    }
    ?>
 value="syncopate">Syncopate</option>
											<option <?php 
    if ($menu_font_google == 'titan-one') {
        echo 'selected';
    }
    ?>
 value="titan-one">Titan One</option>
											<option <?php 
    if ($menu_font_google == 'ubuntu-condensed') {
        echo 'selected';
    }
    ?>
 value="ubuntu-condensed">Ubuntu Condensed</option>
											<option <?php 
    if ($menu_font_google == 'ultra') {
        echo 'selected';
    }
    ?>
 value="ultra">Ultra</option>
											<option <?php 
    if ($menu_font_google == 'unifrakturcook') {
        echo 'selected';
    }
    ?>
 value="unifrakturcook">UnifrakturCook</option>
											<option <?php 
    if ($menu_font_google == 'vera-sans') {
        echo 'selected';
    }
    ?>
 value="vera-sans">Vera Sans</option>
											<option <?php 
    if ($menu_font_google == 'vidaloka') {
        echo 'selected';
    }
    ?>
 value="vidaloka">Vidaloka</option>
											<option <?php 
    if ($menu_font_google == 'Volkhov') {
        echo 'selected';
    }
    ?>
 value="volkhov">Volkhov</option>
											<option <?php 
    if ($menu_font_google == 'yellowtail') {
        echo 'selected';
    }
    ?>
 value="yellowtail">Yellowtail</option>							
										</optgroup>
										
										<!--GOOGLE Font Start -->
										<optgroup label="GOOGLE FONT">
										<?php 
    foreach ($fonts_array as $font_key => $font_value) {
        if ($font_value == 'Google Font') {
            ?>
												<option <?php 
            if ($menu_font_google == esc_html($font_key)) {
                echo 'selected';
            }
            ?>
><?php 
            echo $font_key;
            ?>
</option>
											<?php 
        }
    }
    ?>
										</optgroup>		
										<!--Typekit Font Start -->
										<optgroup label="Typekit font">
										<?php 
    $fonts_arr = get_font_array();
    foreach ($fonts_arr as $keys => $values) {
        if ($values == 'Typekit font') {
            ?>
												<option <?php 
            if ($menu_font_google == esc_html($keys)) {
                echo 'selected';
            }
            ?>
><?php 
            echo $keys;
            ?>
</option>
												<?php 
        }
    }
    ?>
										</optgroup>							
									</select>
								</div>
								<span class="description"><?php 
    _e('Please Select font family from dropdown for website Menu.', 'crunchpress');
    ?>
</span>
							</li>
							<li class="sample_text span4"><p class="option-font-sample" id="option-font-sample"><?php 
    _e('SAMPLE TEXT', 'crunchpress');
    ?>
</p></li>
						</ul>
												
				</li>
				<li id="font_size">
					<h3>Font Size Settings</h3>
						<ul class="panel-body recipe_class row-fluid">
							<li class="panel-input span8">
								<span class="panel-title">
									<h3 for="heading_h1" > <?php 
    _e('BODY TEXT FONT SIZE', 'crunchpress');
    ?>
 </h3>
								</span>
								<div id="font_size_normal" class="sliderbar" rel="sliderbar"></div>
								<input type="hidden" name="font_size_normal" value="<?php 
    echo $font_size_normal;
    ?>
">
								<span class="description"><?php 
    _e('Please manage font body size for your website body text.', 'crunchpress');
    ?>
</span>
							</li>
							<li class="span4" id="slidertext"><p><?php 
    echo $font_size_normal;
    _e('px', 'crunchpress');
    ?>
</p></li>
						</ul>
					
						<ul class="panel-body recipe_class row-fluid">
							<li class="panel-input span8">
								<span class="panel-title">
									<h3 for="heading_h1" > <?php 
    _e('HEADING H1 SIZE', 'crunchpress');
    ?>
 </h3>
								</span>	
								<div id="heading_h1" class="sliderbar" rel="sliderbar"></div>
								<input type="hidden" name="heading_h1" value="<?php 
    echo $heading_h1;
    ?>
">
								<span class="description"><?php 
    _e('Please manage font size for website Heading - h1', 'crunchpress');
    ?>
</span>
							</li>
							<li class="span4" id="slidertext"><p><?php 
    echo $heading_h1;
    _e('px', 'crunchpress');
    ?>
</p></li>							
						</ul>
					
						<ul class="panel-body recipe_class row-fluid">
							
							<li class="panel-input span8">
								<span class="panel-title">
									<h3 for="heading_h2" > <?php 
    _e('HEADING H2 SIZE', 'crunchpress');
    ?>
 </h3>
								</span>	
								<div id="heading_h2" class="sliderbar" rel="sliderbar"></div>
								<input type="hidden" name="heading_h2" value="<?php 
    echo $heading_h2;
    ?>
">
								<span class="description"><?php 
    _e('Please manage font size for website Heading - h2', 'crunchpress');
    ?>
</span>
							</li>
							<li class="span4" id="slidertext"><p><?php 
    echo $heading_h2;
    _e('px', 'crunchpress');
    ?>
</p></li>
						</ul>
						
						<ul class="panel-body recipe_class row-fluid">
							<li class="panel-input span8">
								<span class="panel-title">
									<h3 for="heading_h3" > <?php 
    _e('HEADING H3 SIZE', 'crunchpress');
    ?>
 </h3>
								</span>	
								<div id="heading_h3" class="sliderbar" rel="sliderbar"></div>
								<input type="hidden" name="heading_h3" value="<?php 
    echo $heading_h3;
    ?>
">
								<span class="description"><?php 
    _e('Please manage font size for website Heading - h3', 'crunchpress');
    ?>
 </span>
							</li>
							<li class="span4" id="slidertext"><p><?php 
    echo $heading_h3;
    _e('px', 'crunchpress');
    ?>
</p></li>
						</ul>
				
						<ul class="panel-body recipe_class row-fluid">
							<li class="panel-input span8">
								<span class="panel-title">
									<h3 for="heading_h4" > <?php 
    _e('HEADING H4 SIZE', 'crunchpress');
    ?>
 </h3>
								</span>	
								<div id="heading_h4" class="sliderbar" rel="sliderbar"></div>
								<input type="hidden" name="heading_h4" value="<?php 
    echo $heading_h4;
    ?>
">
								<span class="description"><?php 
    _e('Please manage font size for website Heading - h4', 'crunchpress');
    ?>
</span>
							</li>
							<li class="span4" id="slidertext"><p><?php 
    echo $heading_h4;
    _e('px', 'crunchpress');
    ?>
</p></li>
						</ul>
						
						<ul class="panel-body recipe_class row-fluid">
							<li class="panel-input span8">
								<span class="panel-title">
									<h3 for="heading_h5" > <?php 
    _e('HEADING H5 SIZE', 'crunchpress');
    ?>
 </h3>
								</span>
								<div id="heading_h5" class="sliderbar" rel="sliderbar"></div>
								<input type="hidden" name="heading_h5" value="<?php 
    echo $heading_h5;
    ?>
">
								<span class="description"><?php 
    _e('Please manage font size for website Heading - h5', 'crunchpress');
    ?>
</span>
							</li>
							<li class="span4" id="slidertext"><p><?php 
    echo $heading_h5;
    _e('px', 'crunchpress');
    ?>
</p> </li>
						</ul>
					
						<ul class="panel-body recipe_class row-fluid">
							<li class="panel-input span8">
								<span class="panel-title">
									<h3 for="heading_h6" > <?php 
    _e('HEADING H6 SIZE', 'crunchpress');
    ?>
 </h3>
								</span>	
								<div id="heading_h6" class="sliderbar" rel="sliderbar"></div>
								<input type="hidden" name="heading_h6" value="<?php 
    echo $heading_h6;
    ?>
">
								<span class="description"><?php 
    _e('Please manage font size for website Heading - h6', 'crunchpress');
    ?>
</span>
							</li>
							<li class="span4" id="slidertext"><p><?php 
    echo $heading_h6;
    _e('px', 'crunchpress');
    ?>
</p></li>
						</ul>					
				</li>	
				<li id="type_kit_font">
					<div class="typekit_font_class">
						<h3> <?php 
    _e('Typekit Font Upload Settings', 'crunchpress');
    ?>
 </h3>
						<div class="type_kit">
							<ul class="panel-body recipe_class row-fluid">
								<li class="panel-input span8">
								<span class="panel-title">
									<h3 for="embed_typekit_code" > <?php 
    _e('TYPEKIT EMBED CODE', 'crunchpress');
    ?>
 </h3>
								</span>	
									<textarea name="embed_typekit_code" id="embed_typekit_code" ><?php 
    echo $embed_typekit_code == '' ? esc_html($embed_typekit_code) : esc_html($embed_typekit_code);
    ?>
</textarea>
								</li>
								<li class="span4 right-box-sec"><p><?php 
    _e('Please paste TypeKit Embeded Code JavaScript Here.', 'crunchpress');
    ?>
</p></li>
							</ul>
							<div class="font_name_bg row-fluid">								
								<div class="panel-input span12">
									<div class="panel-title">
										<h3 for="add-typekit-font" > <?php 
    _e('Font Name', 'crunchpress');
    ?>
 </h3>
									</div>	
									<input type="text" id="add-typekit-font" value="type font family here" rel="type font family here">
									<div id="add-typekit-font" class="add-typekit-font"></div>
								</div>
								<div id="selected_typekitfont" class="selected_typekitfont">
									<div class="default_typekit" id="typekit_item">
										<div class="panel-delete-typekitfont"></div>
										<div class="typekitfont_text"></div>
										<input type="hidden" id="typekit_font">
									</div>
								<?php 
    //Sidebar addition
    $cp_typekit_settings = get_option('typokit_settings');
    if ($cp_typekit_settings != '') {
        $typekit_xml = new DOMDocument();
        $typekit_xml->loadXML($cp_typekit_settings);
        foreach ($typekit_xml->documentElement->childNodes as $typekit_font) {
            ?>
									<div class="typekit_item" id="typekit_item">
										<div class="panel-delete-typekitfont"></div>
										<div class="typekitfont_text"><?php 
            echo $typekit_font->nodeValue;
            ?>
</div>
										<input type="hidden" name="typekit_font[]" id="typekit_font" value="<?php 
            echo $typekit_font->nodeValue;
            ?>
">
									</div>
								<?php 
        }
    }
    ?>
								</div>
							</div>
						</div>
					</div>
				</li>
			</ul>			
			            <div class="clear"></div>
            <div class="panel-element-tail">
              <div class="tail-save-changes">
                <div class="loading-save-changes"></div>
                <input type="submit" value="<?php 
    echo __('Save Changes', 'crunchpress');
    ?>
">
                <input type="hidden" name="action" value="typography_settings">
                <!--<input type="hidden" name="security" value="<?php 
    //echo wp_create_nonce(plugin_basename(__FILE__))
    ?>
">--> 
              </div>
            </div>
          </div>
        </form>
      </div>
      <!--content End --> 
    </div>
    <!--content area end --> 
   </div>
	<?php 
}
Ejemplo n.º 6
0
function sidebar_settings()
{
    foreach ($_REQUEST as $keys => $values) {
        ${$keys} = trim($values);
    }
    ?>
	<div class="cp-wrapper bootstrap_admin cp-margin-left"> 

    <!--content area start -->	  
	<div class="hbg top_navigation row-fluid">
		<div class="cp-logo span2">
			<img src="<?php 
    echo CP_PATH_URL;
    ?>
/framework/images/logo.png" class="logo" />
		</div>
		<div class="sidebar span10">
			<?php 
    echo top_navigation_html_tooltip();
    ?>
		</div>
	 <?php 
    //echo top_navigation_html();
    ?>
	</div>
	<div class="content-area-main row-fluid"> 
	
      <!--sidebar start -->
      <div class="sidebar-wraper span2">
        <div class="sidebar-sublinks">
     <ul id="wp_t_o_right_menu">
				<li id="active_tab" class="sidebar_settings"><?php 
    _e('Add New Sidebar', 'crunchpress');
    ?>
</li>
			</ul>
        </div>
      </div>
      <!--content start -->
      <div class="content-area span10">
	  <?php 
    //echo top_navigation_html();
    ?>
        <form id="options-panel-form" name="cp-panel-form">
          <div class="panel-elements" id="panel-elements">
            <div class="panel-element" id="panel-element-save-complete">
              <div class="panel-element-save-text">
                <?php 
    _e('Save Options Complete', 'crunchpress');
    ?>
                .</div>
              <div class="panel-element-save-arrow"></div>
            </div>
            <div class="panel-element">
			<?php 
    $return_data = array('success' => '-1', 'alert' => 'Save option failed, please try contacting your host provider to increase the post_max_size and suhosin.post.max_vars varialble on the server.');
    //Sidebar settings Saved
    if (isset($action) and $action == 'sidebar_settings') {
        $sidebar_xml = '<sidebar_settings>';
        if (isset($_POST['sidebar'])) {
            $sidebars = $_POST['sidebar'];
            foreach ($sidebars as $keys => $values) {
                $sidebar_xml = $sidebar_xml . create_xml_tag('sidebar_name', $values);
            }
        }
        $sidebar_xml = $sidebar_xml . '</sidebar_settings>';
        if (!save_option('sidebar_settings', get_option('sidebar_settings'), $sidebar_xml)) {
            die(json_encode($return_data));
        }
        die(json_encode(array('success' => '0')));
    }
    //Sidebar values getting from database
    $cp_sidebar_settings = get_option('sidebar_settings');
    ?>
			</div>
					<ul class="sidebar_settings">
						<li class="active_tab" id="sidebar_settings">
							<div class="row-fluid">
								<div class="panel-input span8">
									<div class="panel-title">
										<h3> <?php 
    _e('Add Sidebar Name', 'crunchpress');
    ?>
 </h3>
									</div>
									<input type="text" id="add-more-sidebar" value="type title here" rel="type title here">
									<div id="add-more-sidebar" class="add-more-sidebar"></div>
								</div>
								<div class="span4 right-box-sec"><p><?php 
    _e('Add New Sidebars(Widget Areas) here you can manage them from Dashboard > Appearance > Widgets.', 'crunchpress');
    ?>
</p></div>
								<div id="selected-sidebar" class="selected-sidebar first span12">
									<div class="default-sidebar-item" id="sidebar-item">
										<div class="panel-delete-sidebar"></div>
										<div class="slider-item-text"></div>
										<input type="hidden" id="sidebar">
									</div>
								<?php 
    //Sidebar addition
    if ($cp_sidebar_settings != '') {
        $sidebars_xml = new DOMDocument();
        $sidebars_xml->loadXML($cp_sidebar_settings);
        foreach ($sidebars_xml->documentElement->childNodes as $sidebar_name) {
            ?>
									<div class="sidebar-item" id="sidebar-item">
										<div class="panel-delete-sidebar"></div>
										<div class="slider-item-text"><?php 
            echo $sidebar_name->nodeValue;
            ?>
</div>
										<input type="hidden" name="sidebar[]" id="sidebar" value="<?php 
            echo $sidebar_name->nodeValue;
            ?>
">
									</div>
								<?php 
        }
    }
    ?>
								</div>
							</div>
						</li>
					</ul>
            <div class="clear"></div>
            <div class="panel-element-tail">
              <div class="tail-save-changes">
                <div class="loading-save-changes"></div>
                <input type="submit" value="<?php 
    echo __('Save Changes', 'crunchpress');
    ?>
">
                <input type="hidden" name="action" value="sidebar_settings">
                <!--<input type="hidden" name="security" value="<?php 
    //echo wp_create_nonce(plugin_basename(__FILE__))
    ?>
">--> 
              </div>
            </div>
          </div>
        </form>
      </div>
      <!--content End --> 
    </div>
    <!--content area end --> 
  </div>
	<?php 
}
function default_pages_settings()
{
    foreach ($_REQUEST as $keys => $values) {
        ${$keys} = trim($values);
    }
    $return_data = array('success' => '-1', 'alert' => 'Save option failed, please try contacting your host provider to increase the post_max_size and suhosin.post.max_vars varialble on the server.');
    ?>
	

	<div class="cp-wrapper bootstrap_admin cp-margin-left"> 

    <!--content area start -->	  
	<div class="hbg top_navigation row-fluid">
		<div class="cp-logo span2">
			<img src="<?php 
    echo CP_PATH_URL;
    ?>
/framework/images/logo.png" class="logo" />
		</div>
		<div class="sidebar span10">
			<?php 
    echo top_navigation_html_tooltip();
    ?>
		</div>
	 <?php 
    //echo top_navigation_html();
    ?>
	</div>
	<div class="content-area-main row-fluid"> 
	
      <!--sidebar start -->
      <div class="sidebar-wraper span2">
        <div class="sidebar-sublinks">
  <ul id="wp_t_o_right_menu">
				<li id="active_tab" class="default_pages"><?php 
    _e('Default Pages Settings', 'crunchpress');
    ?>
</li>
			</ul>
        </div>
      </div>
      <!--sidebar end --> 
      <!--content start -->
      <div class="content-area span10 default_cate_sec">
	  <?php 
    //echo top_navigation_html();
    ?>
        <form id="options-panel-form" name="cp-panel-form">
          <div class="panel-elements" id="panel-elements">
            <div class="panel-element" id="panel-element-save-complete">
              <div class="panel-element-save-text"><?php 
    _e('Save Options Complete', 'crunchpress');
    ?>
.</div>
              <div class="panel-element-save-arrow"></div>
            </div>
            <div class="panel-element">
			<?php 
    if (isset($action) and $action == 'default_pages_settings') {
        $default_pages_xml = '<default_pages_settings>';
        $default_pages_xml = $default_pages_xml . create_xml_tag('sidebar_default', $sidebars);
        $default_pages_xml = $default_pages_xml . create_xml_tag('right_sidebar_default', $right_sidebar_default);
        $default_pages_xml = $default_pages_xml . create_xml_tag('left_sidebar_default', $left_sidebar_default);
        $default_pages_xml = $default_pages_xml . create_xml_tag('default_excerpt', $default_excerpt);
        $default_pages_xml = $default_pages_xml . '</default_pages_settings>';
        if (!save_option('default_pages_settings', get_option('default_pages_settings'), $default_pages_xml)) {
            die(json_encode($return_data));
        }
        die(json_encode(array('success' => '0')));
    }
    $sidebar_default = '';
    $right_sidebar_default = '';
    $left_sidebar_default = '';
    $default_excerpt = '';
    $cp_default_settings = get_option('default_pages_settings');
    if ($cp_default_settings != '') {
        $cp_default = new DOMDocument();
        $cp_default->loadXML($cp_default_settings);
        $sidebar_default = find_xml_value($cp_default->documentElement, 'sidebar_default');
        $right_sidebar_default = find_xml_value($cp_default->documentElement, 'right_sidebar_default');
        $left_sidebar_default = find_xml_value($cp_default->documentElement, 'left_sidebar_default');
        $default_excerpt = find_xml_value($cp_default->documentElement, 'default_excerpt');
    }
    ?>
	
			</div>
			<h3> <?php 
    _e('Category Pages, Search, Archives, Taxonomy, Tags.', 'crunchpress');
    ?>
 </h3>
			<div class="sidebar_default_sec">
				<?php 
    echo show_sidebar($sidebar_default, 'right_sidebar_default', 'left_sidebar_default', $right_sidebar_default, $left_sidebar_default);
    ?>
			</div>
			
			<ul class="default_excerpt recipe_class row-fluid">
				<li class="panel-input span8">
					<span class="panel-title">
						<h3 for="default_excerpt" > <?php 
    _e('Default Excerpt', 'crunchpress');
    ?>
 </h3>
					</span>	
					<input type="text" name="default_excerpt" id="default_excerpt" value="<?php 
    if ($default_excerpt != '') {
        echo $default_excerpt;
    }
    ?>
" />
				</li>
				<li class="description span4"><p><?php 
    _e('Please Paste Your Default Excerpt(Number of words).', 'crunchpress');
    ?>
</p></li>
			</ul>
  
            <div class="panel-element-tail">
              <div class="tail-save-changes">
                <div class="loading-save-changes"></div>
                <input type="submit" value="<?php 
    echo __('Save Changes', 'crunchpress');
    ?>
">
                <input type="hidden" name="action" value="default_pages_settings">
                <!--<input type="hidden" name="security" value="<?php 
    //echo wp_create_nonce(plugin_basename(__FILE__))
    ?>
">--> 
              </div>
            </div>
          </div>
        </form>
      </div>
      <!--content End --> 
    </div>
    <!--content area end --> 
  </div>
	<?php 
}
Ejemplo n.º 8
0
function newsletter_settings()
{
    foreach ($_REQUEST as $keys => $values) {
        ${$keys} = trim($values);
    }
    $return_data = array('success' => '-1', 'alert' => 'Save option failed, please try contacting your host provider to increase the post_max_size and suhosin.post.max_vars varialble on the server.');
    ?>
	<div class="cp-wrapper bootstrap_admin cp-margin-left"> 

    <!--content area start -->	  
	<div class="hbg top_navigation row-fluid">
		<div class="cp-logo span2">
			<img src="<?php 
    echo CP_PATH_URL;
    ?>
/framework/images/logo.png" class="logo" />
		</div>
		<div class="sidebar span10">
			<?php 
    echo top_navigation_html_tooltip();
    ?>
		</div>
	 <?php 
    //echo top_navigation_html();
    ?>
	</div>
	<div class="content-area-main row-fluid"> 
	
      <!--sidebar start -->
      <div class="sidebar-wraper span2">
        <div class="sidebar-sublinks">
   <ul id="wp_t_o_right_menu">
				<li id="active_tab" class="news_letter" ><?php 
    _e('Newsletter Settings', 'crunchpress');
    ?>
</li>
			</ul>
        </div>
      </div>
      <!--sidebar end --> 
      <!--content start -->
      <div class="content-area span10">
	  <?php 
    //echo top_navigation_html();
    ?>
        <form id="options-panel-form" name="cp-panel-form">
          <div class="panel-elements" id="panel-elements">
            <div class="panel-element" id="panel-element-save-complete">
              <div class="panel-element-save-text">
                <?php 
    _e('Save Options Complete', 'crunchpress');
    ?>
                .</div>
              <div class="panel-element-save-arrow"></div>
            </div>
            <div class="panel-element">
				<?php 
    if (isset($action) and $action == 'newsletter_settings') {
        $newsletter_xml = '<newsletter_settings>';
        $newsletter_xml = $newsletter_xml . create_xml_tag('newsletter_config', $newsletter_config);
        $newsletter_xml = $newsletter_xml . create_xml_tag('feed_burner_text', $feed_burner_text);
        $newsletter_xml = $newsletter_xml . '</newsletter_settings>';
        if (!save_option('newsletter_settings', get_option('newsletter_settings'), $newsletter_xml)) {
            die(json_encode($return_data));
        }
        die(json_encode(array('success' => '0')));
    }
    $newsletter_config = '';
    $feed_burner_text = '';
    $cp_newsletter_settings = get_option('newsletter_settings');
    if ($cp_newsletter_settings != '') {
        $cp_newsletter = new DOMDocument();
        $cp_newsletter->loadXML($cp_newsletter_settings);
        $newsletter_config = find_xml_value($cp_newsletter->documentElement, 'newsletter_config');
        $feed_burner_text = find_xml_value($cp_newsletter->documentElement, 'feed_burner_text');
    }
    ?>
			</div>
				<ul class="newsletter_class">
					<li id="news_letter" class="active_tab">
						<ul class="recipe_class row-fluid">
							
							<li class="panel-input span8">	
							<span class="panel-title">
								<h3> <?php 
    _e('Newsletter Type', 'crunchpress');
    ?>
</h3>
							</span>
								<div class="combobox">
									<select name="newsletter_config" id="newsletter_settings">
										<option class="google_feed_burner" value="google_feed_burner" <?php 
    if ($newsletter_config == 'google_feed_burner') {
        echo 'selected';
    }
    ?>
><h3> <?php 
    _e('Google Feed Burner', 'crunchpress');
    ?>
 </h3>
</option>
										<option class="built_in_newsletter" value="built_in_newsletter" <?php 
    if ($newsletter_config == 'built_in_newsletter') {
        echo 'selected';
    }
    ?>
><h3> <?php 
    _e('CP Newsletter', 'crunchpress');
    ?>
 </h3>
</option>
									</select>
								</div>
							</li>
							<li class="right-box-sec span4"><?php 
    _e('Please Select Newsletter Type from dropdown', 'crunchpress');
    ?>
</li>
						</ul>
						
						<ul class="feedburner_id recipe_class row-fluid">
											
							<li class="panel-input span8">
							<span class="panel-title">
								<h3> <?php 
    _e('Feed Burner ID', 'crunchpress');
    ?>
 </h3>
							</span>
								<input type="text" name="feed_burner_text" id="feed_burner_text" value="<?php 
    if ($feed_burner_text != '') {
        echo $feed_burner_text;
    }
    ?>
" />
							</li>
							<li class="right-box-sec span4"><?php 
    _e('Please enter your google feed burner id in text field.', 'crunchpress');
    ?>
</li>
						</ul>
						<ul class="download_newsletter recipe_class row-fluid">
							
							<li class="panel-input span8">
							<span class="panel-title">
								<h3> <?php 
    _e('Download Newsletter', 'crunchpress');
    ?>
 </h3>
							</span>
								<a href="<?php 
    echo CP_PATH_URL;
    ?>
/framework/extensions/export_newsletter.php"><input type="button" value="Download" id="download_newsletter" /></a>
							</li>
							<li class="right-box-sec span4"><?php 
    _e('Download your newsletters csv file from here.', 'crunchpress');
    ?>
</li>
						</ul>
					</li>				
				</ul>
				
            <div class="panel-element-tail">
              <div class="tail-save-changes">
                <div class="loading-save-changes"></div>
                <input type="submit" value="<?php 
    echo __('Save Changes', 'crunchpress');
    ?>
">
                <input type="hidden" name="action" value="newsletter_settings">
                <!--<input type="hidden" name="security" value="<?php 
    //echo wp_create_nonce(plugin_basename(__FILE__))
    ?>
">--> 
              </div>
            </div>
          </div>
        </form>
      </div>
      <!--content End --> 
    </div>
    <!--content area end --> 
  </div>
	<?php 
}