Advertisement
pixedelic

pix_interface.3.3.6.php

Feb 3rd, 2012
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 266.44 KB | None | 0 0
  1. <?php
  2. if(session_id() == "") session_start();
  3. function pix_add_admin() {
  4.  
  5.     global $themename, $options, $shortname, $current_user;
  6.    
  7.     get_currentuserinfo();
  8.  
  9. function pix_admin() {
  10.  
  11.     global $themename, $options, $shortname, $current_user;
  12.     get_currentuserinfo();
  13.  
  14.     if ( isset($_REQUEST['action']) && $_REQUEST['action']=='save' ) echo '
  15.     <script type="text/javascript">
  16.         //<![CDATA[
  17.         jQuery(window).one("load",function(){
  18.             jQuery("#settings-saved").fadeIn(500);
  19.             var set = setTimeout(function(){jQuery("#settings-saved").fadeOut(500)},6000);
  20.         });
  21.         //]]>
  22.     </script>
  23.     ';
  24.     if ( isset($_REQUEST['action']) && $_REQUEST['action']=='reset' ) echo '
  25.         <script type="text/javascript">
  26.         //<![CDATA[
  27.         jQuery(window).one("load",function(){
  28.             jQuery("#settings-reset").fadeIn(500);
  29.             var set = setTimeout(function(){jQuery("#settings-reset").fadeOut(500)},6000);
  30.         });
  31.         //]]>
  32.     </script>
  33.     ';
  34.    
  35.  
  36. ?>
  37.  
  38. <?php $theme_data = get_theme_data(ABSPATH . 'wp-content/themes/'.basename(TEMPLATEPATH).'/style.css');
  39. $pix_cur_version = $theme_data['Version'];
  40. ?>
  41. <div id="pix_wrap">
  42. <?php if ($current_user->display_name == 'pix_test' || $current_user->display_name == 'manu_test') { ?><p class="howto" style="padding:5px 10px">In this preview you can see only the <strong>Delight Admin panel</strong>, nothing else. And some features of the admin panel itself are unavailable, such as the media uploading... <strong>but try to change something and go <a href="http://www.pixedelic.com/themes/delight/" target="_blank">back to the site</a> to see the result!</strong></p><?php } ?>
  43.     <div id="pix_credits">
  44.         <?php if(get_pix_option('pix_show_tweets')=="show") { ?><div id="twitter_update_list"><ul>
  45. <?php
  46.     $tweets = json_decode(get_content("http://api.twitter.com/1/statuses/user_timeline/pixedelic.json?count=1000&include_rts=false"));
  47.     $pix_tweets = array();
  48.     $tweet_key = 0;
  49.  
  50.     foreach ($tweets as $value) {
  51.         if (  substr($value->text,0,1) != '@' && preg_match("/delight/i", $value->text)) {
  52.             array_push($pix_tweets, '<li>'.pix_url_2_link($value->text).' <a style="font-size:85%" href="http://twitter.com/pixedelic/statuses/'.$value->id_str.'" target="_blank">'.pix_compare_dates($value->created_at).' &rarr;</a></li>');
  53.            
  54.             if ($tweet_key == 0) {
  55.                 $pix_tweets_0 = $value->created_at;
  56.             }
  57.            
  58.             $tweet_key++;
  59.         }
  60.     }
  61.    
  62.     $i=0;
  63.     if(count($pix_tweets)==0){
  64.         echo 'Sorry, no tweets available';
  65.     } else {
  66.         while($i<3){
  67.             if($i<count($pix_tweets)){
  68.                 echo $pix_tweets[$i];
  69.             }
  70.             $i++;
  71.         }
  72.     }
  73.  
  74. ?>        </ul></div><?php } ?>
  75.         <div id="pix_credits_right">a <span id="pixedelic"><a href="http://www.pixedelic.com/" target="_blank">Pixedelic</a></span> by <span id="consorziocreativo"><a href="http://consorziocreativo.com" target="_blank">Consorzio Creativo</a></span> work</div>
  76.     </div><!-- #pix_credits -->
  77.     <div id="pix_header">
  78.  
  79.         <div id="pix_header_left">
  80.             <div id="pix_header_right">
  81.                 <a id="delight_admin_panel">&nbsp;</a>
  82.                 <div id="header-alert">
  83.                     <div id="header-left-alert">
  84.                         <div id="header-right-alert">
  85.                             <a href="http://www.pixedelic.com/delight_current_version_changelog.php" id="update-button" class="toleft" title="Delight v.<?php echo $pix_cur_version; ?> is installed. Click here to know if a new version is available">&nbsp;</a>
  86.                         </div><!-- header-right-alert -->
  87.                     </div><!-- header-left-alert -->
  88.                 </div><!-- #header-alert -->
  89.                 <div id="header-buttons">
  90.                     <a href="#" id="settings-reset">&nbsp;</a>
  91.                     <a href="#" id="settings-saved">&nbsp;</a>
  92.                     <a href="mailto:manuel.masia@consorziocreativo.com" id="mail-button" class="toleft" title="Contact the developer">&nbsp;</a>
  93.                 </div><!-- #header-buttons -->
  94.             </div><!-- #pix_header_right -->
  95.         </div><!-- #pix_header_left -->
  96.     </div><!-- #pix_header -->
  97.    
  98.         <div id="pix_body">
  99.             <ul id="pix_aside">
  100.                 <li><a href="#general-tab" id="general_icon" title="Here you can decide layouts, positions, paste some scripts..." data-width="200">General</a></li>
  101.                 <li><a href="#typo-tab" id="typo_icon" title="Select the fonts from Google Web fonts, their size... but not their colors" data-width="200">Typography</a></li>
  102.                 <li><a href="#colors-tab" id="colors_icon" title="Decide the color or the background of any element" data-width="200">Colors &amp; images</a></li>
  103.                 <li><a href="#frontpage-tab" id="frontpage_icon" title="The blog page... it could be the home page too" data-width="200">Posts page</a></li>
  104.                 <li><a href="#sidebar-tab" id="sidebar_icon" title="Generate and admin your sidebars" data-width="200">Sidebars</a></li>
  105.                 <li><a href="#contact-tab" id="contact_icon" title="Generate and admin your contact forms" data-width="200">Contacts</a></li>
  106.                 <li><a href="#blog-tab" id="blog_icon" title="Decide the settings of posts and pages, including the 404 page, the search results page and archives" data-width="200">Blog</a></li>
  107.                 <li><a href="#portfolio-main-tab" id="portfolio_icon" class="toright" title="Set all the features of your galleries" data-width="200">Portfolio</a></li>
  108.                 <li><a href="#translation-tab" id="translation_icon" class="toright" title="How to generate your own localization file" data-width="200">Translation</a></li>
  109.                 <li><a href="#styles-tab" id="styles_icon" class="toright" title="Add custom styles... they won't be overwrite with an update" data-width="200">Styles</a></li>
  110.                 <li><a href="#help-tab" id="help_icon" class="toright" title="Hacks &amp; tips... have a look" data-width="200">Hacks &amp; tips</a></li>
  111.             </ul><!-- #pix_aside -->
  112.        
  113.             <div id="general-tab">
  114.                 <ul>
  115.                     <li><a href="#admin-panel-tab">Admin panel</a></li>
  116.                     <li><a href="#layout-tab">Layout</a></li>
  117.                     <li><a href="#header-tab">Header</a></li>
  118.                     <li><a href="#navigation-tab">Navigation</a></li>
  119.                     <li><a href="#footer-tab">Footer</a></li>
  120.                     <li><a href="#scripts-tab">Scripts</a></li>
  121.                     <li><a href="#slideshows-tab">Slideshows</a></li>
  122.                 </ul>
  123.                 <form method="post">
  124.                 <div id="admin-panel-tab">
  125.                     <div class="block_separator">
  126.                         <label for="pix_show_tweets">Show the tweets in the admin panel<small>Tweets are also useful to know when a new version of Delight is ready</small></label>
  127.                         <input type="hidden" value="0" name="pix_show_tweets">
  128.                         <input type="checkbox" value="show" name="pix_show_tweets"<?php if(get_pix_option('pix_show_tweets')=="show") { ?> checked="checked"<?php } ?>>
  129.                     </div><!-- .block_separator -->
  130.  
  131.                 </div>
  132.                 <!-- #admin-panel-tab -->
  133.                 <div id="layout-tab">
  134.                     <div class="block_separator">
  135.                         <label for="pix_layout_animated">Animation on loading</label>
  136.                         <input type="hidden" value="0" name="pix_layout_animated">
  137.                         <input type="checkbox" value="show" name="pix_layout_animated"<?php if(get_pix_option('pix_layout_animated')=="show") { ?> checked="checked"<?php } ?>>
  138.                     </div><!-- .block_separator -->
  139.  
  140.                     <div class="block_separator">
  141.                         <label for="pix_sliding_page">Sliding page</label>
  142.                         <select id="pix_sliding_page" name="pix_sliding_page">
  143.                             <option value="open"<?php if (get_pix_option('pix_sliding_page') == 'open') { echo ' selected="selected"'; } ?>>Open on load</option>
  144.                             <option value="closed"<?php if (get_pix_option('pix_sliding_page') == 'closed') { echo ' selected="selected"'; } ?>>Closed on load</option>
  145.                             <option value="always"<?php if (get_pix_option('pix_sliding_page') == 'always') { echo ' selected="selected"'; } ?>>Always open</option>
  146.                         </select>
  147.                     </div><!-- .block_separator -->
  148.  
  149.                     <div class="block_separator">
  150.                         <label for="pix_general_sidebar">Show/hide sidebar and its position</label>
  151.                         <select id="pix_general_sidebar" name="pix_general_sidebar" class="toggler">
  152.                             <option value="rightsidebar"<?php if (get_pix_option('pix_general_sidebar') == 'rightsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the right</option>
  153.                             <option value="leftsidebar"<?php if (get_pix_option('pix_general_sidebar') == 'leftsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the left</option>
  154.                             <option value="nosidebar"<?php if (get_pix_option('pix_general_sidebar') == 'nosidebar') { echo ' selected="selected"'; } ?>>Hide sidebar</option>
  155.                         </select>
  156.                     </div><!-- .block_separator -->
  157.                    
  158.                     <div class="block_separator toggle pix_general_sidebar" id="pix_general_sidebar" data-type="nosidebar">
  159.                         <label for="pix_general_template">
  160.                             Main column width and position
  161.                         </label>
  162.                         <select id="pix_general_template" name="pix_general_template">
  163.                             <option value="left"<?php if (get_pix_option('pix_general_template') == 'left') { echo ' selected="selected"'; } ?>>Narrow left column</option>
  164.                             <option value="right"<?php if (get_pix_option('pix_general_template') == 'right') { echo ' selected="selected"'; } ?>>Narrow right column</option>
  165.                             <option value="wide"<?php if (get_pix_option('pix_general_template') == 'wide') { echo ' selected="selected"'; } ?>>Wide column</option>
  166.                         </select>
  167.                     </div><!-- .block_separator -->
  168.                 </div><!-- #layout-tab-->
  169.  
  170.                 <div id="header-tab">
  171.                     <div class="block_separator">
  172.                         <label for="pix_header_position">Header position</label>
  173.                         <select id="pix_header_position" name="pix_header_position">
  174.                             <option value="fixed"<?php if (get_pix_option('pix_header_position') == 'fixed') { echo ' selected="selected"'; } ?>>Fixed</option>
  175.                             <option value="scrollable"<?php if (get_pix_option('pix_header_position') == 'scrollable') { echo ' selected="selected"'; } ?>>Scrollable</option>
  176.                         </select>
  177.                     </div><!-- .block_separator -->
  178.                     <div class="block_separator">
  179.                         <label for="pix_site_title">Site title</label>
  180.                          <input name="pix_site_title" id="pix_site_title" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_site_title' )); ?>" />
  181.                     </div><!-- .block_separator -->
  182.                     <div class="block_separator">
  183.                         <label for="pix_site_description">Site description</label>
  184.                         <input name="pix_site_description" id="pix_site_description" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_site_description' )); ?>" />
  185.                     </div><!-- .block_separator -->
  186.                     <div class="block_separator">
  187.                         <label for="pix_social_bar">Social and search bar<small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/socialbar.php?TB_iframe=true&width=600&height=550" class="info thickbox">what's that?</a>)</small></label>
  188.                         <select id="pix_social_bar" name="pix_social_bar">
  189.                             <option value="closed"<?php if (get_pix_option('pix_social_bar') == 'closed') { echo ' selected="selected"'; } ?>>Closed</option>
  190.                             <option value="open"<?php if (get_pix_option('pix_social_bar') == 'open') { echo ' selected="selected"'; } ?>>Open</option>
  191.                             <option value="hidden"<?php if (get_pix_option('pix_social_bar') == 'hidden') { echo ' selected="selected"'; } ?>>Hidden</option>
  192.                         </select>
  193.                     </div><!-- .block_separator -->
  194.                    
  195.                     <div class="block_separator">
  196.                         <label>Search form</label>
  197.                         <label for="pix_seach_show" class="innerlabel">Show search form</label>
  198.                         <input type="hidden" value="0" name="pix_seach_show">
  199.                         <input type="checkbox" value="show" name="pix_seach_show"<?php if(get_pix_option('pix_seach_show')=="show") { ?> checked="checked"<?php } ?>>
  200.                     </div><!-- .block_separator -->
  201.                    
  202.                     <div class="block_separator">
  203.                         <label>Twitter link</label>
  204.                         <label for="pix_twitter_icon" class="innerlabel">Show Twitter icon</label>
  205.                         <input type="hidden" value="0" name="pix_twitter_icon">
  206.                         <input type="checkbox" value="show" name="pix_twitter_icon"<?php if(get_pix_option('pix_twitter_icon')=="show") { ?> checked="checked"<?php } ?>>
  207.                         <div class="clear"></div>
  208.                         <label for="pix_twitter_url" class="innerlabel">Twitter URL</label><input name="pix_twitter_url" id="pix_twitter_url" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_twitter_url' )); ?>" style="width:50%" />
  209.                         <label for="pix_twitter_text" class="innerlabel">Twitter title</label><input name="pix_twitter_text" id="pix_twitter_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_twitter_text' )); ?>" style="width:50%" />
  210.                     </div><!-- .block_separator -->
  211.                    
  212.                     <div class="block_separator">
  213.                         <label>Google+ link</label>
  214.                         <label for="pix_google_icon" class="innerlabel">Show Google+ icon</label>
  215.                         <input type="hidden" value="0" name="pix_google_icon">
  216.                         <input type="checkbox" value="show" name="pix_google_icon"<?php if(get_pix_option('pix_google_icon')=="show") { ?> checked="checked"<?php } ?>>
  217.                         <div class="clear"></div>
  218.                         <label for="pix_google_url" class="innerlabel">Google+ profile URL</label><input name="pix_google_url" id="pix_google_url" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_google_url' )); ?>" style="width:50%" />
  219.                         <label for="pix_google_text" class="innerlabel">Google+ title</label><input name="pix_google_text" id="pix_google_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_google_text' )); ?>" style="width:50%" />
  220.                     </div><!-- .block_separator -->
  221.                    
  222.                     <div class="block_separator">
  223.                         <label>Facebook link</label>
  224.                         <label for="pix_facebook_icon" class="innerlabel">Show Facebook icon</label>
  225.                         <input type="hidden" value="0" name="pix_facebook_icon">
  226.                         <input type="checkbox" value="show" name="pix_facebook_icon"<?php if(get_pix_option('pix_facebook_icon')=="show") { ?> checked="checked"<?php } ?>>
  227.                         <div class="clear"></div>
  228.                         <label for="pix_facebook_url" class="innerlabel">Facebook URL</label><input name="pix_facebook_url" id="pix_facebook_url" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_facebook_url' )); ?>" style="width:50%" />
  229.                         <label for="pix_facebook_text" class="innerlabel">Facebook title</label><input name="pix_facebook_text" id="pix_facebook_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_facebook_text' )); ?>" style="width:50%" />
  230.                     </div><!-- .block_separator -->
  231.                    
  232.                     <div class="block_separator">
  233.                         <label>Tumblr link</label>
  234.                         <label for="pix_tumblr_icon" class="innerlabel">Show Tumblr icon</label>
  235.                         <input type="hidden" value="0" name="pix_tumblr_icon">
  236.                         <input type="checkbox" value="show" name="pix_tumblr_icon"<?php if(get_pix_option('pix_tumblr_icon')=="show") { ?> checked="checked"<?php } ?>>
  237.                         <div class="clear"></div>
  238.                         <label for="pix_tumblr_url" class="innerlabel">Tumblr URL</label><input name="pix_tumblr_url" id="pix_tumblr_url" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_tumblr_url' )); ?>" style="width:50%" />
  239.                         <label for="pix_tumblr_text" class="innerlabel">Tumblr title</label><input name="pix_tumblr_text" id="pix_tumblr_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_tumblr_text' )); ?>" style="width:50%" />
  240.                     </div><!-- .block_separator -->
  241.                    
  242.                     <div class="block_separator">
  243.                         <label>LinkedIn link</label>
  244.                         <label for="pix_linkedin_icon" class="innerlabel">Show LinkedIn icon</label>
  245.                         <input type="hidden" value="0" name="pix_linkedin_icon">
  246.                         <input type="checkbox" value="show" name="pix_linkedin_icon"<?php if(get_pix_option('pix_linkedin_icon')=="show") { ?> checked="checked"<?php } ?>>
  247.                         <div class="clear"></div>
  248.                         <label for="pix_linkedin_url" class="innerlabel">LinkedIn URL</label><input name="pix_linkedin_url" id="pix_linkedin_url" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_linkedin_url' )); ?>" style="width:50%" />
  249.                         <label for="pix_linkedin_text" class="innerlabel">LinkedIn title</label><input name="pix_linkedin_text" id="pix_linkedin_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_linkedin_text' )); ?>" style="width:50%" />
  250.                     </div><!-- .block_separator -->
  251.                    
  252.                     <div class="block_separator">
  253.                         <label>Flickr link</label>
  254.                         <label for="pix_flickr_icon" class="innerlabel">Show Flickr icon</label>
  255.                         <input type="hidden" value="0" name="pix_flickr_icon">
  256.                         <input type="checkbox" value="show" name="pix_flickr_icon"<?php if(get_pix_option('pix_flickr_icon')=="show") { ?> checked="checked"<?php } ?>>
  257.                         <div class="clear"></div>
  258.                         <label for="pix_flickr_url" class="innerlabel">Flickr URL</label><input name="pix_flickr_url" id="pix_flickr_url" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_flickr_url' )); ?>" style="width:50%" />
  259.                         <label for="pix_flickr_text" class="innerlabel">Flickr title</label><input name="pix_flickr_text" id="pix_flickr_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_flickr_text' )); ?>" style="width:50%" />
  260.                     </div><!-- .block_separator -->
  261.                    
  262.                     <div class="block_separator">
  263.                         <label>MySpace link</label>
  264.                         <label for="pix_myspace_icon" class="innerlabel">Show MySpace icon</label>
  265.                         <input type="hidden" value="0" name="pix_myspace_icon">
  266.                         <input type="checkbox" value="show" name="pix_myspace_icon"<?php if(get_pix_option('pix_myspace_icon')=="show") { ?> checked="checked"<?php } ?>>
  267.                         <div class="clear"></div>
  268.                         <label for="pix_myspace_url" class="innerlabel">MySpace URL</label><input name="pix_myspace_url" id="pix_myspace_url" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_myspace_url' )); ?>" style="width:50%" />
  269.                         <label for="pix_myspace_text" class="innerlabel">MySpace title</label><input name="pix_myspace_text" id="pix_myspace_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_myspace_text' )); ?>" style="width:50%" />
  270.                     </div><!-- .block_separator -->
  271.                    
  272.                     <div class="block_separator">
  273.                         <label>YouTube link</label>
  274.                         <label for="pix_youtube_icon" class="innerlabel">Show YouTube icon</label>
  275.                         <input type="hidden" value="0" name="pix_youtube_icon">
  276.                         <input type="checkbox" value="show" name="pix_youtube_icon"<?php if(get_pix_option('pix_youtube_icon')=="show") { ?> checked="checked"<?php } ?>>
  277.                         <div class="clear"></div>
  278.                         <label for="pix_youtube_url" class="innerlabel">YouTube URL</label><input name="pix_youtube_url" id="pix_youtube_url" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_youtube_url' )); ?>" style="width:50%" />
  279.                         <label for="pix_youtube_text" class="innerlabel">YouTube title</label><input name="pix_youtube_text" id="pix_youtube_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_youtube_text' )); ?>" style="width:50%" />
  280.                     </div><!-- .block_separator -->
  281.                    
  282.                     <div class="block_separator">
  283.                         <label>Vimeo link</label>
  284.                         <label for="pix_vimeo_icon" class="innerlabel">Show Vimeo icon</label>
  285.                         <input type="hidden" value="0" name="pix_vimeo_icon">
  286.                         <input type="checkbox" value="show" name="pix_vimeo_icon"<?php if(get_pix_option('pix_vimeo_icon')=="show") { ?> checked="checked"<?php } ?>>
  287.                         <div class="clear"></div>
  288.                         <label for="pix_vimeo_url" class="innerlabel">Vimeo URL</label><input name="pix_vimeo_url" id="pix_vimeo_url" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_vimeo_url' )); ?>" style="width:50%" />
  289.                         <label for="pix_vimeo_text" class="innerlabel">Vimeo title</label><input name="pix_vimeo_text" id="pix_vimeo_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_vimeo_text' )); ?>" style="width:50%" />
  290.                     </div><!-- .block_separator -->
  291.                    
  292.                     <div class="block_separator">
  293.                         <label>Behance link</label>
  294.                         <label for="pix_behance_icon" class="innerlabel">Show Behance icon</label>
  295.                         <input type="hidden" value="0" name="pix_behance_icon">
  296.                         <input type="checkbox" value="show" name="pix_behance_icon"<?php if(get_pix_option('pix_behance_icon')=="show") { ?> checked="checked"<?php } ?>>
  297.                         <div class="clear"></div>
  298.                         <label for="pix_behance_url" class="innerlabel">Behance URL</label><input name="pix_behance_url" id="pix_behance_url" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_behance_url' )); ?>" style="width:50%" />
  299.                         <label for="pix_behance_text" class="innerlabel">Behance title</label><input name="pix_behance_text" id="pix_behance_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_behance_text' )); ?>" style="width:50%" />
  300.                     </div><!-- .block_separator -->
  301.                    
  302.                     <div class="block_separator">
  303.                         <label>500px link</label>
  304.                         <label for="pix_500px_icon" class="innerlabel">Show 500px icon</label>
  305.                         <input type="hidden" value="0" name="pix_500px_icon">
  306.                         <input type="checkbox" value="show" name="pix_500px_icon"<?php if(get_pix_option('pix_500px_icon')=="show") { ?> checked="checked"<?php } ?>>
  307.                         <div class="clear"></div>
  308.                         <label for="pix_500px_url" class="innerlabel">500px URL</label><input name="pix_500px_url" id="pix_500px_url" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_500px_url' )); ?>" style="width:50%" />
  309.                         <label for="pix_500px_text" class="innerlabel">500px title</label><input name="pix_500px_text" id="pix_500px_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_500px_text' )); ?>" style="width:50%" />
  310.                     </div><!-- .block_separator -->
  311.                    
  312.                     <div class="block_separator">
  313.                         <label>SoundCloud link</label>
  314.                         <label for="pix_soundcloud_icon" class="innerlabel">Show SoundCloud icon</label>
  315.                         <input type="hidden" value="0" name="pix_soundcloud_icon">
  316.                         <input type="checkbox" value="show" name="pix_soundcloud_icon"<?php if(get_pix_option('pix_soundcloud_icon')=="show") { ?> checked="checked"<?php } ?>>
  317.                         <div class="clear"></div>
  318.                         <label for="pix_soundcloud_url" class="innerlabel">SoundCloud URL</label><input name="pix_soundcloud_url" id="pix_soundcloud_url" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_soundcloud_url' )); ?>" style="width:50%" />
  319.                         <label for="pix_soundcloud_text" class="innerlabel">SoundCloud title</label><input name="pix_soundcloud_text" id="pix_soundcloud_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_soundcloud_text' )); ?>" style="width:50%" />
  320.                     </div><!-- .block_separator -->
  321.                    
  322.                     <div class="block_separator">
  323.                         <label>Skype link</label>
  324.                         <label for="pix_skype_icon" class="innerlabel">Show Skype icon</label>
  325.                         <input type="hidden" value="0" name="pix_skype_icon">
  326.                         <input type="checkbox" value="show" name="pix_skype_icon"<?php if(get_pix_option('pix_skype_icon')=="show") { ?> checked="checked"<?php } ?>>
  327.                         <div class="clear"></div>
  328.                         <label for="pix_skype_id" class="innerlabel">Skype ID</label><input name="pix_skype_id" id="pix_skype_id" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_skype_id' )); ?>" style="width:50%" />
  329.                         <div class="clear"></div>
  330.                         <label for="pix_skype_action" class="innerlabel">Skype action</label>
  331.                         <select name="pix_skype_action" id="pix_skype_action" style="width:50%">
  332.                             <option value="call"<?php if (get_pix_option('pix_skype_action') == 'call') { echo ' selected="selected"'; } ?>>Call</option>
  333.                             <option value="chat"<?php if (get_pix_option('pix_skype_action') == 'chat') { echo ' selected="selected"'; } ?>>Chat</option>
  334.                         </select>
  335.                         <label for="pix_skype_text" class="innerlabel">Skype title</label><input name="pix_skype_text" id="pix_skype_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_skype_text' )); ?>" style="width:50%" />
  336.                     </div><!-- .block_separator -->
  337.                    
  338.                     <div class="block_separator">
  339.                         <label>RSS link</label>
  340.                         <label for="pix_rss_icon" class="innerlabel">Show RSS icon</label>
  341.                         <input type="hidden" value="0" name="pix_rss_icon">
  342.                         <input type="checkbox" value="show" name="pix_rss_icon"<?php if(get_pix_option('pix_rss_icon')=="show") { ?> checked="checked"<?php } ?>>
  343.                         <div class="clear"></div>
  344.                         <label for="pix_rss_url" class="innerlabel">RSS URL</label><input name="pix_rss_url" id="pix_rss_url" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_rss_url' )); ?>" style="width:50%" />
  345.                         <label for="pix_rss_text" class="innerlabel">RSS title</label><input name="pix_rss_text" id="pix_rss_text" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_rss_text' )); ?>" style="width:50%" />
  346.                     </div><!-- .block_separator -->
  347.                 </div><!-- #header-tab -->
  348.                
  349.                 <div id="navigation-tab">
  350.                     <div class="block_separator">
  351.                         <label for="pix_nav_position">Navigation menu position</label>
  352.                         <select id="pix_nav_position" name="pix_nav_position">
  353.                             <option value="fixed"<?php if (get_pix_option('pix_nav_position') == 'fixed') { echo ' selected="selected"'; } ?>>Fixed</option>
  354.                             <option value="scrollable"<?php if (get_pix_option('pix_nav_position') == 'scrollable') { echo ' selected="selected"'; } ?>>Scrollable</option>
  355.                         </select>
  356.                     </div><!-- .block_separator -->
  357.                     <div class="block_separator">
  358.                         <label for="pix_breadcrumbs_show">Show / hide breadcrunbs</label>
  359.                         <input type="hidden" value="0" name="pix_breadcrumbs_show">
  360.                         <input type="checkbox" value="show" name="pix_breadcrumbs_show"<?php if(get_pix_option('pix_breadcrumbs_show')=="show") { ?> checked="checked"<?php } ?>>
  361.                     </div><!-- .block_separator -->
  362.                 </div><!-- #navigation-tab -->
  363.                
  364.                 <div id="footer-tab">
  365.                     <div class="block_separator">
  366.                         <label for="pix_footer_sitetitle">Site title on the footer<small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/footertitle.php?TB_iframe=true&width=600&height=550" class="info thickbox">what's that?</a>)</small></label>
  367.                          <input name="pix_footer_sitetitle" id="pix_footer_sitetitle" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_footer_sitetitle' )); ?>" />
  368.                     </div><!-- .block_separator -->
  369.                    
  370.                     <div class="block_separator">
  371.                         <label for="pix_footer_credits">Credits on the footer<small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/footercredits.php?TB_iframe=true&width=600&height=550" class="info thickbox">what's that?</a>)</small></label>
  372.                          <textarea name="pix_footer_credits" id="pix_footer_credits"><?php echo stripslashes(get_pix_option( 'pix_footer_credits' )); ?></textarea>
  373.                     </div><!-- .block_separator -->
  374.                    
  375.                     <div class="block_separator">
  376.                         <label for="pix_footer_show">Show footer</label>
  377.                         <input type="hidden" value="0" name="pix_footer_show">
  378.                         <input type="checkbox" value="show" name="pix_footer_show"<?php if(get_pix_option('pix_footer_show')=="show") { ?> checked="checked"<?php } ?>>
  379.                     </div><!-- .block_separator -->
  380.                     <div class="block_separator">
  381.                         <label for="pix_photocredits_show">Show credits of photographs / videos<small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/photocredits.php?TB_iframe=true&width=600&height=550" class="info thickbox">what's that?</a>)</small></label>
  382.                         <input type="hidden" value="0" name="pix_photocredits_show">
  383.                         <input type="checkbox" value="show" name="pix_photocredits_show"<?php if(get_pix_option('pix_photocredits_show')=="show") { ?> checked="checked"<?php } ?>>
  384.                     </div><!-- .block_separator -->
  385.                     <div class="block_separator">
  386.                         <label for="pix_photocommands_show">Show commands for slideshow / videos<small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/commands.php?TB_iframe=true&width=600&height=550" class="info thickbox">what's that?</a>)</small></label>
  387.                         <input type="hidden" value="0" name="pix_photocommands_show">
  388.                         <input type="checkbox" value="show" name="pix_photocommands_show"<?php if(get_pix_option('pix_photocommands_show')=="show") { ?> checked="checked"<?php } ?>>
  389.                     </div><!-- .block_separator -->
  390.                     <div class="block_separator">
  391.                         <label for="pix_footerthumbnail_show">Show thumbnails for slideshow<small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/slidethumb.php?TB_iframe=true&width=600&height=550" class="info thickbox">what's that?</a>)</small></label>
  392.                         <input type="hidden" value="0" name="pix_footerthumbnail_show">
  393.                         <input type="checkbox" value="show" name="pix_footerthumbnail_show"<?php if(get_pix_option('pix_footerthumbnail_show')=="show") { ?> checked="checked"<?php } ?>>
  394.                     </div><!-- .block_separator -->
  395.                 </div><!-- #footer-tab -->
  396.                
  397.                 <div id="scripts-tab">
  398.                     <div class="block_separator">
  399.                         <label for="pix_google_analytics">Google Analytics script <small>(or any other code you want to put into the footer)</small></label>
  400.                        
  401.                         <textarea name="pix_google_analytics" id="pix_google_analytics"><?php if ($current_user->display_name != 'pix_test' || $current_user->display_name != 'manu_test') {  echo stripslashes(get_pix_option( 'pix_google_analytics' )); } ?></textarea>
  402.                     </div><!-- .block_separator -->
  403.  
  404.                     <div class="block_separator">
  405.                         <label for="pix_google_prevent">Block the download from Google's servers<small>If you switch off you can't use Google fonts: probably your connection will be faster but you need to use web safe fonts<br>N.B.: after saving refresh the page.</small></label>
  406.                         <input type="hidden" value="0" name="pix_google_prevent">                        
  407.                         <input type="checkbox" value="show" name="pix_google_prevent"<?php if(get_pix_option('pix_google_prevent')=="show") { ?> checked="checked"<?php } ?>>
  408.                     </div><!-- .block_separator -->
  409.                 </div><!-- #scripts-tab -->
  410.                
  411.                 <div id="slideshows-tab">
  412.                     <div class="block_separator">
  413.                         <label for="pix_slideshow_speed">Decide the speed (between one slider on the next one) of all your background slideshows<small>But the script loads the images only when they are displayed. So, even it you decide to have 1 second between one slide and the next one, you must always wait the loading of the image itself.</small></label>
  414.                         <div class="slider_div milliseconds">
  415.                             <input type="text" id="pix_slideshow_speed" name="pix_slideshow_speed" class="slider_input milliseconds" value="<?php echo get_pix_option('pix_slideshow_speed'); ?>" />
  416.                             <div class="slider_cursor"></div>
  417.                         </div><!-- .slider_div -->
  418.    
  419.                     </div><!-- .block_separator -->
  420.  
  421.                     <div class="block_separator">
  422.                         <label for="pix_slideshow_speed">Decide the duration of the transition effect</small></label>
  423.                         <div class="slider_div milliseconds">
  424.                             <input type="text" id="pix_slideshow_fade" name="pix_slideshow_fade" class="slider_input milliseconds" value="<?php echo get_pix_option('pix_slideshow_fade'); ?>" />
  425.                             <div class="slider_cursor"></div>
  426.                         </div><!-- .slider_div -->
  427.    
  428.                     </div><!-- .block_separator -->
  429.  
  430.                     <div class="block_separator">
  431.                         <label for="pix_slideshow_adapt">Fit portraits:
  432.                         </label>
  433.                         <input type="hidden" value="0" name="pix_slideshow_adapt">                        
  434.                         <input type="checkbox" value="true" name="pix_slideshow_adapt"<?php if(get_pix_option('pix_slideshow_adapt')=="true") { ?> checked="checked"<?php } ?>>
  435.                         <small>Show the vertical images without cropping them</small>
  436.    
  437.                     </div><!-- .block_separator -->
  438.                 </div><!-- #slideshows-tab -->
  439.                
  440.                 <input name="save" type="submit" value="&nbsp;" class="input-save" />
  441.                 <input type="hidden" name="action" value="save" />
  442.             </form>
  443.             </div><!-- #general-tab -->
  444.            
  445.              <div id="typo-tab">
  446.                 <ul>
  447.                     <li><a href="#general-typo-tab">General</a></li>
  448.                     <li><a href="#header-typo-tab">Header</a></li>
  449.                     <li><a href="#navigation-typo-tab">Navigation</a></li>
  450.                     <li><a href="#footer-typo-tab">Footer</a></li>
  451.                 </ul>
  452.                 <form method="post">
  453.                 <div id="general-typo-tab">
  454.                     <div class="block_separator">
  455.                         <?php listFont('pix_typo_general', 'pix_typo_general_own', 'General font', 'Type your font from the Google font list', 'General font') ; ?>
  456.  
  457.                         <div class="slider_div">
  458.                             <label for="pix_typo_general_fontsize" style="clear:left" class="slider_input">Font size:</label>
  459.                             <input type="text" id="pix_typo_general_fontsize" name="pix_typo_general_fontsize" class="slider_input" value="<?php echo get_pix_option('pix_typo_general_fontsize'); ?>" />
  460.                             <div class="slider_cursor"></div>
  461.                         </div><!-- .slider_div -->
  462.    
  463.                     </div><!-- .block_separator -->
  464.  
  465.                     <div class="block_separator">
  466.                         <?php listFont('pix_typo_buttons', 'pix_typo_buttons_own', 'Font of the buttons', 'Type your font from the Google font list', 'Button') ; ?>
  467.  
  468.                     </div><!-- .block_separator -->
  469.  
  470.                     <div class="block_separator">
  471.                         <?php listFont('pix_typo_h1', 'pix_typo_h1_own', 'Heading 1 font', 'Type your font from the Google font list', 'Heading 1') ; ?>
  472.  
  473.                     </div><!-- .block_separator -->
  474.  
  475.                     <div class="block_separator">
  476.                         <?php listFont('pix_typo_h2', 'pix_typo_h2_own', 'Heading 2 font', 'Type your font from the Google font list', 'Heading 2') ; ?>
  477.  
  478.                     </div><!-- .block_separator -->
  479.  
  480.                     <div class="block_separator">
  481.                         <?php listFont('pix_typo_h3', 'pix_typo_h3_own', 'Heading 3 font', 'Type your font from the Google font list', 'Heading 3') ; ?>
  482.  
  483.                     </div><!-- .block_separator -->
  484.  
  485.                     <div class="block_separator">
  486.                         <?php listFont('pix_typo_h4', 'pix_typo_h4_own', 'Heading 4 font', 'Type your font from the Google font list', 'Heading 4') ; ?>
  487.  
  488.                     </div><!-- .block_separator -->
  489.  
  490.                     <div class="block_separator">
  491.                         <?php listFont('pix_typo_h5', 'pix_typo_h5_own', 'Heading 5 font', 'Type your font from the Google font list', 'Heading 5') ; ?>
  492.  
  493.                     </div><!-- .block_separator -->
  494.  
  495.                     <div class="block_separator">
  496.                         <?php listFont('pix_typo_h6', 'pix_typo_h6_own', 'Heading 6 font', 'Type your font from the Google font list', 'Heading 6') ; ?>
  497.  
  498.                     </div><!-- .block_separator -->
  499.                 </div><!-- #general-typo-tab -->
  500.                
  501.                 <div id="header-typo-tab">
  502.                     <div class="block_separator">
  503.                         <?php listFont('pix_typo_sitetitle', 'pix_typo_sitetitle_own', 'Site title', 'Type your font from the Google font list', 'Site title') ; ?>
  504.  
  505.                         <div class="slider_div">
  506.                             <label for="pix_typo_sitetitle_fontsize" style="clear:left" class="slider_input">Font size:</label>
  507.                             <input type="text" id="pix_typo_sitetitle_fontsize" name="pix_typo_sitetitle_fontsize" class="slider_input" value="<?php echo get_pix_option('pix_typo_sitetitle_fontsize'); ?>" />
  508.                             <div class="slider_cursor"></div>
  509.                         </div><!-- .slider_div -->
  510.    
  511.                     </div><!-- .block_separator -->
  512.  
  513.                     <div class="block_separator">
  514.                         <?php listFont('pix_typo_sitedescription', 'pix_typo_sitedescription_own', 'Site description', 'Type your font from the Google font list', 'Site description') ; ?>
  515.    
  516.                         <div class="slider_div">
  517.                             <label for="pix_typo_sitedescription_fontsize" style="clear:left" class="slider_input">Font size:</label>
  518.                             <input type="text" id="pix_typo_sitedescription_fontsize" name="pix_typo_sitedescription_fontsize" class="slider_input" value="<?php echo get_pix_option('pix_typo_sitedescription_fontsize'); ?>" />
  519.                             <div class="slider_cursor"></div>
  520.                         </div><!-- .slider_div -->
  521.    
  522.                     </div><!-- .block_separator -->
  523.                 </div><!-- #header-typo-tab -->
  524.                
  525.                 <div id="navigation-typo-tab">
  526.                     <div class="block_separator">
  527.                         <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/firstlevellink.php?TB_iframe=true&width=600&height=550" class="info thickbox">what's that?</a>)</small>
  528.                         <?php listFont('pix_typo_firstlevellink', 'pix_typo_firstlevellink_own', 'First level link', 'Type your font from the Google font list', 'First level link') ; ?>
  529.  
  530.                         <div class="slider_div">
  531.                             <label for="pix_typo_firstlevellink_fontsize" style="clear:left" class="slider_input">Font size:</label>
  532.                             <input type="text" id="pix_typo_firstlevellink_fontsize" name="pix_typo_firstlevellink_fontsize" class="slider_input" value="<?php echo get_pix_option('pix_typo_firstlevellink_fontsize'); ?>" />
  533.                             <div class="slider_cursor"></div>
  534.                         </div><!-- .slider_div -->
  535.    
  536.                     </div><!-- .block_separator -->
  537.  
  538.                     <div class="block_separator">
  539.                         <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/secondlevellink.php?TB_iframe=true&width=600&height=550" class="info thickbox">what's that?</a>)</small>
  540.                         <?php listFont('pix_typo_secondlevellink', 'pix_typo_secondlevellink_own', 'Second level link', 'Type your font from the Google font list', 'Second level link') ; ?>
  541.  
  542.                         <div class="slider_div">
  543.                             <label for="pix_typo_secondlevellink_fontsize" style="clear:left" class="slider_input">Font size:</label>
  544.                             <input type="text" id="pix_typo_secondlevellink_fontsize" name="pix_typo_secondlevellink_fontsize" class="slider_input" value="<?php echo get_pix_option('pix_typo_secondlevellink_fontsize'); ?>" />
  545.                             <div class="slider_cursor"></div>
  546.                         </div><!-- .slider_div -->
  547.    
  548.                     </div><!-- .block_separator -->
  549.  
  550.                     <div class="block_separator">
  551.                         <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/thirdlevellink.php?TB_iframe=true&width=600&height=550" class="info thickbox">what's that?</a>)</small>
  552.                         <?php listFont('pix_typo_thirdlevellink', 'pix_typo_thirdlevellink_own', 'Third level link', 'Type your font from the Google font list', 'Third level link') ; ?>
  553.  
  554.                         <div class="slider_div">
  555.                             <label for="pix_typo_thirdlevellink_fontsize" style="clear:left" class="slider_input">Font size:</label>
  556.                             <input type="text" id="pix_typo_thirdlevellink_fontsize" name="pix_typo_thirdlevellink_fontsize" class="slider_input" value="<?php echo get_pix_option('pix_typo_thirdlevellink_fontsize'); ?>" />
  557.                             <div class="slider_cursor"></div>
  558.                         </div><!-- .slider_div -->
  559.    
  560.                     </div><!-- .block_separator -->
  561.  
  562.                 </div><!-- #navigation-typo-tab -->
  563.  
  564.                 <div id="footer-typo-tab">
  565.                     <div class="block_separator">
  566.                     <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/footertitle.php?TB_iframe=true&width=600&height=550" class="info thickbox">what's that?</a>)</small>
  567.                         <?php listFont('pix_typo_logobottom', 'pix_typo_logobottom_own', 'Font of the bottom site title', 'Type your font from the Google font list', 'Site title') ; ?>
  568.  
  569.                         <div class="slider_div">
  570.                             <label for="pix_typo_logobottom_fontsize" style="clear:left" class="slider_input">Font size:</label>
  571.                             <input type="text" id="pix_typo_logobottom_fontsize" name="pix_typo_logobottom_fontsize" class="slider_input" value="<?php echo get_pix_option('pix_typo_logobottom_fontsize'); ?>" />
  572.                             <div class="slider_cursor"></div>
  573.                         </div><!-- .slider_div -->
  574.    
  575.                     </div><!-- .block_separator -->
  576.  
  577.                 </div><!-- #footer-typo-tab -->
  578.                
  579.    
  580.                     <input name="save" type="submit" value="&nbsp;" class="input-save" />
  581.                     <input type="hidden" name="action" value="save" />
  582.                 </form>
  583.             </div><!-- #typo-tab -->
  584.                
  585.            <div id="colors-tab">
  586.                 <ul>
  587.                     <li><a href="#bodybg-tab">Site background</a></li>
  588.                     <li><a href="#overlay_effect-tab">Overlay pattern</a></li>
  589.                     <li><a href="#widebg-tab">Wide bg</a></li>
  590.                     <li><a href="#general-colors-tab">General</a></li>
  591.                     <li><a href="#header-colors-tab">Header</a></li>
  592.                     <li><a href="#navigation-colors-tab">Navigation</a></li>
  593.                     <li><a href="#2navigation-colors-tab">2nd navigation</a></li>
  594.                     <li><a href="#footer-colors-tab">Footer</a></li>
  595.                     <li><a href="#typography-color-tab">Typography</a></li>
  596.                     <li><a href="#divs-buttons-tab">Divs, buttons etc</a></li>
  597.                     <li><a href="#colorbox-tab">ColorBox &amp; tooltips</a></li>
  598.                 </ul>
  599.                 <form method="post">
  600.                 <div id="bodybg-tab">
  601.                     <div class="block_separator pix_color">
  602.                         <label for="pix_body_background_color">General background color</label>
  603.                          <input name="pix_body_background_color" id="pix_body_background_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_body_background_color' )); ?>" />
  604.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  605.                        <div class="colorpicker"></div>
  606.                     </div><!-- .block_separator -->
  607.  
  608.                     <div class="block_separator">
  609.                         <label for="pix_body_background">Select your body background</label>
  610.                         <select id="pix_body_background" name="pix_body_background" class="toggler">
  611.                             <option value="pattern"<?php if (get_pix_option('pix_body_background') == 'pattern') { echo ' selected="selected"'; } ?>>Pattern</option>
  612.                             <option value="single_image"<?php if (get_pix_option('pix_body_background') == 'single_image') { echo ' selected="selected"'; } ?>>Single image</option>
  613.                             <option value="none"<?php if (get_pix_option('pix_body_background') == 'none') { echo ' selected="selected"'; } ?>>None</option>
  614.                         </select>
  615.                     </div><!-- .block_separator -->
  616.  
  617.                     <div class="block_separator toggle pix_body_background" id="pix_body_background" data-type="pattern">
  618.                         <label for="pix_body_background_pattern">
  619.                             Select a pattern
  620.                         </label>
  621.                         <div class="radio_labels">
  622.                             <label>Arabesque
  623.                                 <input name="pix_body_background_pattern" type="radio" value="arabesque" <?php if(get_pix_option('pix_body_background_pattern') == 'arabesque'){ echo "checked=\"checked\""; } ?>>
  624.                                 <span class="preview_pattern" id="arabesque"></span>
  625.                             </label>
  626.                             <label>Block
  627.                                 <input name="pix_body_background_pattern" type="radio" value="block" <?php if(get_pix_option('pix_body_background_pattern') == 'block'){ echo "checked=\"checked\""; } ?>>
  628.                                 <span class="preview_pattern" id="block"></span>
  629.                             </label>
  630.                             <label>Diagonal
  631.                                 <input name="pix_body_background_pattern" type="radio" value="diagonal" <?php if(get_pix_option('pix_body_background_pattern') == 'diagonal'){ echo "checked=\"checked\""; } ?>>
  632.                                 <span class="preview_pattern" id="diagonal"></span>
  633.                             </label>
  634.                             <label>Grid
  635.                                 <input name="pix_body_background_pattern" type="radio" value="grid" <?php if(get_pix_option('pix_body_background_pattern') == 'grid'){ echo "checked=\"checked\""; } ?>>
  636.                                 <span class="preview_pattern" id="grid"></span>
  637.                             </label>
  638.                             <label>Pipes
  639.                                 <input name="pix_body_background_pattern" type="radio" value="pipes" <?php if(get_pix_option('pix_body_background_pattern') == 'pipes'){ echo "checked=\"checked\""; } ?>>
  640.                                 <span class="preview_pattern" id="pipes"></span>
  641.                             </label>
  642.                             <label>Leaves
  643.                                 <input name="pix_body_background_pattern" type="radio" value="leaves" <?php if(get_pix_option('pix_body_background_pattern') == 'leaves'){ echo "checked=\"checked\""; } ?>>
  644.                                 <span class="preview_pattern" id="leaves"></span>
  645.                             </label>
  646.                             <label>Squares
  647.                                 <input name="pix_body_background_pattern" type="radio" value="squares" <?php if(get_pix_option('pix_body_background_pattern') == 'squares'){ echo "checked=\"checked\""; } ?>>
  648.                                 <span class="preview_pattern" id="squares"></span>
  649.                             </label>
  650.                             <label>Stripes
  651.                                 <input name="pix_body_background_pattern" type="radio" value="stripes" <?php if(get_pix_option('pix_body_background_pattern') == 'stripes'){ echo "checked=\"checked\""; } ?>>
  652.                                 <span class="preview_pattern" id="stripes"></span>
  653.                             </label>
  654.                             <label>Zig zag
  655.                                 <input name="pix_body_background_pattern" type="radio" value="zig" <?php if(get_pix_option('pix_body_background_pattern') == 'zig'){ echo "checked=\"checked\""; } ?>>
  656.                                 <span class="preview_pattern" id="zigzag"></span>
  657.                             </label>
  658.                        </div><!-- .radio_labels -->
  659.                     </div><!-- .block_separator -->
  660.  
  661.                     <div class="block_separator toggle pix_body_background" id="pix_body_background" data-type="single_image">
  662.                         <label for="pix_body_background_single_image">
  663.                             Upload your image
  664.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  665.                         </label>
  666.                         <div id="pix_body_background_single_image" class="rm_upload_image">
  667.                             <?php if(get_pix_option('pix_body_background_single_image')=='') { $style=' style="display:none"'; } else { $style=''; } ?>
  668.                             <div class="image_thumb"><img src="<?php echo get_pix_thumb(get_pix_option('pix_body_background_single_image'), 'exTh'); ?>" alt="Preview"<?php echo $style; ?> /></div>
  669.                             <input name="pix_body_background_single_image" type="text" value="<?php echo get_pix_option('pix_body_background_single_image'); ?>">
  670.                             <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  671.                         </div><!-- .rm_upload_image -->
  672.                     </div><!-- .block_separator -->
  673.  
  674.                     <div class="block_separator toggle pix_body_background" id="pix_body_background" data-type="single_image">
  675.                         <label for="pix_body_background_single_image_position">
  676.                             Image position
  677.                         </label>
  678.                         <select id="pix_body_background_single_image_position" name="pix_body_background_single_image_position" class="toggler">
  679.                             <option value="center top"<?php if (get_pix_option('pix_body_background_single_image_position') == 'center top') { echo ' selected="selected"'; } ?>>Center top</option>
  680.                             <option value="center"<?php if (get_pix_option('pix_body_background_single_image_position') == 'center') { echo ' selected="selected"'; } ?>>Center</option>
  681.                             <option value="center bottom"<?php if (get_pix_option('pix_body_background_single_image_position') == 'center bottom') { echo ' selected="selected"'; } ?>>Center bottom</option>
  682.                             <option value="left top"<?php if (get_pix_option('pix_body_background_single_image_position') == 'left top') { echo ' selected="selected"'; } ?>>Left top</option>
  683.                             <option value="right top"<?php if (get_pix_option('pix_body_background_single_image_position') == 'right top') { echo ' selected="selected"'; } ?>>Right top</option>
  684.                             <option value="left center"<?php if (get_pix_option('pix_body_background_single_image_position') == 'left center') { echo ' selected="selected"'; } ?>>Left center</option>
  685.                             <option value="right center"<?php if (get_pix_option('pix_body_background_single_image_position') == 'right center') { echo ' selected="selected"'; } ?>>Right center</option>
  686.                             <option value="left bottom"<?php if (get_pix_option('pix_body_background_single_image_position') == 'left bottom') { echo ' selected="selected"'; } ?>>Left bottom</option>
  687.                             <option value="right bottom"<?php if (get_pix_option('pix_body_background_single_image_position') == 'right bottom') { echo ' selected="selected"'; } ?>>Right bottom</option>
  688.                         </select>
  689.                     </div><!-- .block_separator -->
  690.  
  691.                     <div class="block_separator toggle pix_body_background" id="pix_body_background" data-type="single_image">
  692.                         <label for="pix_body_background_single_image_repeat">
  693.                             Image repeat
  694.                         </label>
  695.                         <select id="pix_body_background_single_image_repeat" name="pix_body_background_single_image_repeat" class="toggler">
  696.                             <option value="repeat"<?php if (get_pix_option('pix_body_background_single_image_repeat') == 'repeat') { echo ' selected="selected"'; } ?>>Repeat</option>
  697.                             <option value="repeat-x"<?php if (get_pix_option('pix_body_background_single_image_repeat') == 'repeat-x') { echo ' selected="selected"'; } ?>>Horizontal repeat</option>
  698.                             <option value="repeat-y"<?php if (get_pix_option('pix_body_background_single_image_repeat') == 'repeat-y') { echo ' selected="selected"'; } ?>>Vertical repeat</option>
  699.                             <option value="no-repeat"<?php if (get_pix_option('pix_body_background_single_image_repeat') == 'no-repeat') { echo ' selected="selected"'; } ?>>No repeat</option>
  700.                         </select>
  701.                     </div><!-- .block_separator -->
  702.  
  703.                     <div class="block_separator toggle pix_body_background" id="pix_body_background" data-type="single_image">
  704.                         <label for="pix_body_background_single_image_attachment">
  705.                             Image attachment
  706.                         </label>
  707.                         <select id="pix_body_background_single_image_attachment" name="pix_body_background_single_image_attachment" class="toggler">
  708.                             <option value="scroll"<?php if (get_pix_option('pix_body_background_single_image_attachment') == 'scroll') { echo ' selected="selected"'; } ?>>Scroll</option>
  709.                             <option value="fixed"<?php if (get_pix_option('pix_body_background_single_image_attachment') == 'fixed') { echo ' selected="selected"'; } ?>>Fixed</option>
  710.                         </select>
  711.  
  712.                     </div><!-- .block_separator -->
  713.                 </div><!-- #imagebg-tab2 -->
  714.    
  715.                 <div id="overlay_effect-tab">
  716.                     <div class="block_separator">
  717.                         <label for="pix_overlay_pattern">
  718.                             Select an overlay pattern
  719.                         </label>
  720.                         <div class="radio_labels">
  721.                             <label>None
  722.                                 <input name="pix_overlay_pattern" type="radio" value="none" <?php if(get_pix_option('pix_overlay_pattern') == 'none'){ echo "checked=\"checked\""; } ?>>
  723.                                 <span class="preview_pattern" id="none"></span>
  724.                             </label>
  725.                             <label>1
  726.                                 <input name="pix_overlay_pattern" type="radio" value="1" <?php if(get_pix_option('pix_overlay_pattern') == '1'){ echo "checked=\"checked\""; } ?>>
  727.                                 <span class="preview_pattern" id="one"></span>
  728.                             </label>
  729.                             <label>2
  730.                                 <input name="pix_overlay_pattern" type="radio" value="2" <?php if(get_pix_option('pix_overlay_pattern') == '2'){ echo "checked=\"checked\""; } ?>>
  731.                                 <span class="preview_pattern" id="two"></span>
  732.                             </label>
  733.                             <label>3
  734.                                 <input name="pix_overlay_pattern" type="radio" value="3" <?php if(get_pix_option('pix_overlay_pattern') == '3'){ echo "checked=\"checked\""; } ?>>
  735.                                 <span class="preview_pattern" id="three"></span>
  736.                             </label>
  737.                             <label>4
  738.                                 <input name="pix_overlay_pattern" type="radio" value="4" <?php if(get_pix_option('pix_overlay_pattern') == '4'){ echo "checked=\"checked\""; } ?>>
  739.                                 <span class="preview_pattern" id="four"></span>
  740.                             </label>
  741.                             <label>5
  742.                                 <input name="pix_overlay_pattern" type="radio" value="5" <?php if(get_pix_option('pix_overlay_pattern') == '5'){ echo "checked=\"checked\""; } ?>>
  743.                                 <span class="preview_pattern" id="five"></span>
  744.                             </label>
  745.                             <label>6
  746.                                 <input name="pix_overlay_pattern" type="radio" value="6" <?php if(get_pix_option('pix_overlay_pattern') == '6'){ echo "checked=\"checked\""; } ?>>
  747.                                 <span class="preview_pattern" id="six"></span>
  748.                             </label>
  749.                             <label>7
  750.                                 <input name="pix_overlay_pattern" type="radio" value="7" <?php if(get_pix_option('pix_overlay_pattern') == '7'){ echo "checked=\"checked\""; } ?>>
  751.                                 <span class="preview_pattern" id="seven"></span>
  752.                             </label>
  753.                             <label>8
  754.                                 <input name="pix_overlay_pattern" type="radio" value="8" <?php if(get_pix_option('pix_overlay_pattern') == '8'){ echo "checked=\"checked\""; } ?>>
  755.                                 <span class="preview_pattern" id="eight"></span>
  756.                             </label>
  757.                             <label>9
  758.                                 <input name="pix_overlay_pattern" type="radio" value="9" <?php if(get_pix_option('pix_overlay_pattern') == '9'){ echo "checked=\"checked\""; } ?>>
  759.                                 <span class="preview_pattern" id="nine"></span>
  760.                             </label>
  761.                             <label>10
  762.                                 <input name="pix_overlay_pattern" type="radio" value="10" <?php if(get_pix_option('pix_overlay_pattern') == '10'){ echo "checked=\"checked\""; } ?>>
  763.                                 <span class="preview_pattern" id="ten"></span>
  764.                             </label>
  765.                        </div><!-- .radio_labels -->
  766.                     </div><!-- .block_separator -->
  767.  
  768.                     <div class="block_separator slider_div opacity">
  769.                         <label for="pix_overlay_pattern_opacity">Overlay pattern opacity</label>
  770.                         <input type="text" id="pix_overlay_pattern_opacity" name="pix_overlay_pattern_opacity" class="slider_input" value="<?php echo get_pix_option('pix_overlay_pattern_opacity'); ?>" />
  771.                         <div class="slider_cursor"></div>
  772.                     </div><!-- .block_separator -->
  773.  
  774.                 </div><!-- #overlay_effect-tab -->
  775.                
  776.                 <div id="widebg-tab">
  777.                     <div class="block_separator">
  778.                         <label for="pix_general_background">Select your general wide background</label>
  779.                         <select id="pix_general_background" name="pix_general_background" class="toggler">
  780.                             <option value="single_wide"<?php if (get_pix_option('pix_general_background') == 'single_wide') { echo ' selected="selected"'; } ?>>Single wide image</option>
  781.                             <option value="slideshow"<?php if (get_pix_option('pix_general_background') == 'slideshow') { echo ' selected="selected"'; } ?>>Slideshow</option>
  782.                             <option value="video"<?php if (get_pix_option('pix_general_background') == 'video') { echo ' selected="selected"'; } ?>>Video</option>
  783.                             <option value="googlemap"<?php if (get_pix_option('pix_general_background') == 'googlemap') { echo ' selected="selected"'; } ?>>Google map</option>
  784.                             <option value="none"<?php if (get_pix_option('pix_general_background') == 'none') { echo ' selected="selected"'; } ?>>None</option>
  785.                         </select>
  786.                     </div><!-- .block_separator -->
  787.  
  788.                     <div class="block_separator toggle pix_general_background" id="pix_general_background" data-type="slideshow">
  789.                         <label>
  790.                             Add fields, upload images, remove them, drag and drop!
  791.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  792.                         </label>
  793.                         <div class="sorting_admin">
  794.                         <a href="#" class="add" id="add_a_slider">&nbsp;</a>
  795.                         <?php
  796.  
  797.                             $i = 0;
  798.                             $pix_array_slide_general = get_pix_option('pix_array_slide_general_');
  799.                             while($i<count($pix_array_slide_general)){
  800.                                 if($pix_array_slide_general[$i]=='') { $style=' style="display:none"'; } else { $style=''; }
  801.                                 echo '<div id="pix_array_slide_general_'.$i.'" class="rm_upload_image">
  802.                                 <div class="handle"></div>
  803.                                 <div class="image_thumb"><img src="'.get_pix_thumb($pix_array_slide_general[$i], 'exTh').'" alt="Preview"'. $style .' /></div>
  804.                                 <input name="pix_array_slide_general_['.$i.']" type="text" value="'.$pix_array_slide_general[$i].'">
  805.                                 <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  806.                                <a href="#" class="button-secondary remove">Remove</a></div>';
  807.                                 $i++;
  808.                             }
  809.                         ?>
  810.                         </div><!-- .sorting -->
  811.                     </div><!-- .block_separator -->
  812.  
  813.                     <div class="block_separator toggle pix_general_background" id="pix_general_background" data-type="single_wide">
  814.                         <label for="pix_wide_image_general">
  815.                             Upload your image
  816.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  817.                         </label>
  818.                        
  819.                         <div id="pix_wide_image_general" class="rm_upload_image">
  820.                             <?php if(get_pix_option('pix_wide_image_general')=='') { $style=' style="display:none"'; } else { $style=''; } ?>
  821.                             <div class="image_thumb"><img src="<?php echo get_pix_thumb(get_pix_option('pix_wide_image_general'), 'exTh'); ?>" alt="Preview"<?php echo $style; ?> /></div>
  822.                             <input name="pix_wide_image_general" type="text" value="<?php echo get_pix_option('pix_wide_image_general'); ?>">
  823.                             <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  824.                         </div><!-- .rm_upload_image -->
  825.                     </div><!-- .block_separator -->
  826.  
  827.                     <div class="block_separator toggle pix_general_background" id="pix_general_background" data-type="video">
  828.                         <label for="pix_wide_video_general">
  829.                             Upload your video
  830.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadvideo.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  831.                         </label>
  832.                        
  833.                         <div id="pix_wide_image_general" class="rm_upload_video">
  834.                             <input name="pix_wide_video_general" type="text" value="<?php echo get_pix_option('pix_wide_video_general'); ?>"><br>
  835.                             <a class="button-secondary pix_upload_video_button" href="#">Upload Video</a>
  836.                         </div><!-- .rm_upload_image -->
  837.                     </div><!-- .block_separator -->
  838.  
  839.                     <div class="block_separator toggle pix_general_background" id="pix_general_background" data-type="video">
  840.                         <label for="pix_wide_video_general_start">
  841.                             Auto start for your video
  842.                         </label>
  843.                         <input type="hidden" value="0" name="pix_wide_video_general_start">                        
  844.                         <input type="checkbox" value="true" name="pix_wide_video_general_start"<?php if(get_pix_option('pix_wide_video_general_start')=="true") { ?> checked="checked"<?php } ?>>
  845.                     </div><!-- .block_separator -->
  846.  
  847.                     <div class="block_separator toggle pix_general_background" id="pix_general_background" data-type="video">                        
  848.                         <label for="pix_wide_video_general_loop">
  849.                             Loop for your video
  850.                         </label>
  851.                         <input type="hidden" value="0" name="pix_wide_video_general_loop">                        
  852.                         <input type="checkbox" value="true" name="pix_wide_video_general_loop"<?php if(get_pix_option('pix_wide_video_general_loop')=="true") { ?> checked="checked"<?php } ?>>
  853.                     </div><!-- .block_separator -->
  854.  
  855.                            
  856.                     <div class="block_separator toggle pix_general_background" id="pix_general_background" data-type="googlemap">
  857.                         <label for="pix_wide_googlemap_general">
  858.                             Coordinates <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/googlemap-coords.php" class="pix_tips_ajax topLeft" data-width="520" data-height="467">how can I get them?</a>)</small>
  859.                         </label>
  860.                        
  861.                         <input name="pix_wide_googlemap_general" type="text" value="<?php echo get_pix_option('pix_wide_googlemap_general'); ?>"><br>
  862.  
  863.                     </div><!-- .block_separator -->
  864.  
  865.                     <div class="block_separator toggle pix_general_background slider_div googlemap" id="pix_general_background" data-type="googlemap">
  866.                         <label for="pix_wide_googlemap_general_zoom">Zoom</label>
  867.                         <input type="text" id="pix_wide_googlemap_general_zoom" name="pix_wide_googlemap_general_zoom" class="slider_input" value="<?php echo get_pix_option('pix_wide_googlemap_general_zoom'); ?>" />
  868.                         <div class="slider_cursor"></div>
  869.                     </div><!-- .block_separator -->
  870.  
  871.                     <div class="block_separator toggle pix_general_background" id="pix_general_background" data-type="googlemap">
  872.                         <label for="pix_wide_googlemap_indications">Indications</label>
  873.                         <textarea name="pix_wide_googlemap_indications" id="pix_wide_googlemap_indications"><?php echo stripslashes(get_pix_option( 'pix_wide_googlemap_indications' )); ?></textarea>
  874.                     </div><!-- .block_separator -->
  875.  
  876.                     <div class="block_separator toggle pix_general_background" id="pix_general_background" data-type="googlemap">
  877.                         <label for="pix_wide_googlemap_type">Type</label>
  878.                         <select id="pix_wide_googlemap_type" name="pix_wide_googlemap_type">
  879.                             <option value="HYBRID"<?php if (get_pix_option('pix_wide_googlemap_type') == 'HYBRID') { echo ' selected="selected"'; } ?>>hybrid</option>
  880.                             <option value="SATELLITE"<?php if (get_pix_option('pix_wide_googlemap_type') == 'SATELLITE') { echo ' selected="selected"'; } ?>>satellite</option>
  881.                             <option value="ROADMAP"<?php if (get_pix_option('pix_wide_googlemap_type') == 'ROADMAP') { echo ' selected="selected"'; } ?>>road map</option>
  882.                             <option value="TERRAIN"<?php if (get_pix_option('pix_wide_googlemap_type') == 'TERRAIN') { echo ' selected="selected"'; } ?>>terrain</option>
  883.                         </select>
  884.                     </div><!-- .block_separator -->
  885.  
  886.                 </div><!-- #widebg-tab -->
  887.    
  888.                 <div id="general-colors-tab">
  889.                     <div class="block_separator">
  890.                         <label for="pix_favicon_ico">Upload your favicon (.ico file)</label>
  891.                         <div id="pix_favicon_ico_div" class="rm_upload_image">
  892.                             <?php if(get_pix_option('pix_favicon_ico')=='') { $style=' style="display:none"'; } else { $style=''; } ?>
  893.                             <div class="image_thumb"><img src="<?php echo get_pix_thumb(get_pix_option('pix_favicon_ico'), 'exTh'); ?>" alt="Preview"<?php echo $style; ?> /></div>
  894.                             <input name="pix_favicon_ico" type="text" value="<?php echo get_pix_option('pix_favicon_ico'); ?>">
  895.                             <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  896.                         </div><!-- .rm_upload_image -->
  897.                     </div><!-- .block_separator -->
  898.  
  899.                     <div class="block_separator pix_color">
  900.                         <label for="pix_content_background">Content area background color<small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/contentbg.php?TB_iframe=true&width=600&height=550" class="info thickbox">what's that?</a>)</small></label>
  901.                          <input name="pix_content_background" id="pix_content_background" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_content_background' )); ?>" />
  902.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  903.                        <div class="colorpicker"></div>
  904.                     </div><!-- .block_separator -->
  905.  
  906.                     <div class="block_separator slider_div opacity">
  907.                         <label for="pix_content_bg_opacity">Content area background opacity</label>
  908.                         <input type="text" id="pix_content_bg_opacity" name="pix_content_bg_opacity" class="slider_input" value="<?php echo get_pix_option('pix_content_bg_opacity'); ?>" />
  909.                         <div class="slider_cursor"></div>
  910.                     </div><!-- .block_separator -->
  911.  
  912.                    <div class="block_separator pix_color">
  913.                         <label for="pix_content_text_color">Content area text color</label>
  914.                          <input name="pix_content_text_color" id="pix_content_text_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_content_text_color' )); ?>" />
  915.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  916.                        <div class="colorpicker"></div>
  917.                     </div><!-- .block_separator -->
  918.                    
  919.                     <div class="block_separator pix_color">
  920.                         <label for="pix_link_color">Simple link color</label>
  921.                          <input name="pix_link_color" id="pix_link_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_link_color' )); ?>" />
  922.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  923.                        <div class="colorpicker"></div>
  924.                     </div><!-- .block_separator -->
  925.  
  926.                 </div><!-- #general-colors-tab -->
  927.  
  928.  
  929.                 <div id="header-colors-tab">
  930.                     <div class="block_separator pix_color">
  931.                         <label for="pix_header_background">Header background color</label>
  932.                          <input name="pix_header_background" id="pix_header_background" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_header_background' )); ?>" />
  933.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  934.                        <div class="colorpicker"></div>
  935.                     </div><!-- .block_separator -->
  936.  
  937.                     <div class="block_separator slider_div opacity">
  938.                         <label for="pix_header_bg_opacity">Header background opacity</label>
  939.                         <input type="text" id="pix_header_bg_opacity" name="pix_header_bg_opacity" class="slider_input" value="<?php echo get_pix_option('pix_header_bg_opacity'); ?>" />
  940.                         <div class="slider_cursor"></div>
  941.                     </div><!-- .block_separator -->
  942.  
  943.                    <div class="block_separator pix_color">
  944.                         <label for="pix_header_text_color">Header text color</label>
  945.                          <input name="pix_header_text_color" id="pix_header_text_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_header_text_color' )); ?>" />
  946.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  947.                        <div class="colorpicker"></div>
  948.                     </div><!-- .block_separator -->
  949.                    
  950.                     <div class="block_separator">
  951.                         <label for="pix_header_image_bg">Header background image</label>
  952.                         <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  953.                         <div id="pix_header_image_bg" class="rm_upload_image">
  954.                             <?php if(get_pix_option('pix_header_image_bg')=='') { $style=' style="display:none"'; } else { $style=''; } ?>
  955.                             <div class="image_thumb"><img src="<?php echo get_pix_thumb(get_pix_option('pix_header_image_bg'), 'exTh'); ?>" alt="Preview"<?php echo $style; ?> /></div>
  956.                             <input name="pix_header_image_bg" type="text" value="<?php echo get_pix_option('pix_header_image_bg'); ?>">
  957.                             <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  958.                         </div><!-- .rm_upload_image -->
  959.                     </div><!-- .block_separator -->
  960.                    
  961.                     <div class="block_separator">
  962.                         <label for="pix_header_image_position">Header background image position</label>
  963.                          <input name="pix_header_image_position" id="pix_header_image_position" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_header_image_position' )); ?>" />
  964.                     </div><!-- .block_separator -->
  965.  
  966.                     <div class="block_separator">
  967.                         <label for="pix_header_image_repeat">Header background image repeat</label>
  968.                         <select id="pix_header_image_repeat" name="pix_header_image_repeat">
  969.                             <option value="no-repeat"<?php if (get_pix_option('pix_header_image_repeat') == 'no-repeat') { echo ' selected="selected"'; } ?>>No repeat</option>
  970.                             <option value="repeat"<?php if (get_pix_option('pix_header_image_repeat') == 'repeat') { echo ' selected="selected"'; } ?>>Repeat</option>
  971.                             <option value="repeat-x"<?php if (get_pix_option('pix_header_image_repeat') == 'repeat-x') { echo ' selected="selected"'; } ?>>Repeat horizontally</option>
  972.                             <option value="repeat-y"<?php if (get_pix_option('pix_header_image_repeat') == 'repeat-y') { echo ' selected="selected"'; } ?>>Repeat vertically</option>
  973.                         </select>
  974.                     </div><!-- .block_separator -->
  975.  
  976.                     <div class="block_separator">
  977.                         <label for="pix_header_padding">Header padding</label>
  978.                          <input name="pix_header_padding" id="pix_header_padding" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_header_padding' )); ?>" />
  979.                     </div><!-- .block_separator -->
  980.  
  981.                     <div class="block_separator">
  982.                         <label for="pix_header_margin">Header margin</label>
  983.                          <input name="pix_header_margin" id="pix_header_margin" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_header_margin' )); ?>" />
  984.                     </div><!-- .block_separator -->
  985.  
  986.                 </div><!-- #header-colors-tab -->
  987.                
  988.                 <div id="navigation-colors-tab">
  989.                     <div class="block_separator">
  990.                         <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/firstnavigation.php?TB_iframe=true&width=600&height=550" class="info thickbox">what's that?</a>)</small>
  991.                         <div class="pix_color clear">
  992.                             <label for="pix_first_level_background">First level menu background color</label>
  993.                              <input name="pix_first_level_background" id="pix_first_level_background" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_first_level_background' )); ?>" />
  994.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  995.                            <div class="colorpicker"></div>
  996.                         </div><!-- .pix_color -->
  997.    
  998.                         <div class="slider_div opacity clear">
  999.                             <label for="pix_first_level_opacity">First level menu background opacity</label>
  1000.                             <input type="text" id="pix_first_level_opacity" name="pix_first_level_opacity" class="slider_input" value="<?php echo get_pix_option('pix_first_level_opacity'); ?>" />
  1001.                             <div class="slider_cursor"></div>
  1002.                             <div class="clear"></div>
  1003.                             <small><strong>Pay attention!</strong> If you have sub-menus set opacity to 1</small>
  1004.                         </div><!-- .slider_div -->
  1005.    
  1006.                        <div class="pix_color clear">
  1007.                             <label for="pix_first_level_color">First level menu text color</label>
  1008.                              <input name="pix_first_level_color" id="pix_first_level_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_first_level_color' )); ?>" />
  1009.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1010.                            <div class="colorpicker"></div>
  1011.                         </div><!-- .pix_color -->
  1012.    
  1013.                        <div class="pix_color clear">
  1014.                             <label for="pix_first_level_hover">First level menu text color on mouse hover</label>
  1015.                              <input name="pix_first_level_hover" id="pix_first_level_hover" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_first_level_hover' )); ?>" />
  1016.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1017.                            <div class="colorpicker"></div>
  1018.                         </div><!-- .pix_color -->
  1019.    
  1020.                        <div class="pix_color clear">
  1021.                             <label for="pix_first_level_border">First level menu border on mouse hover</label>
  1022.                              <input name="pix_first_level_border" id="pix_first_level_border" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_first_level_border' )); ?>" />
  1023.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1024.                            <div class="colorpicker"></div>
  1025.                         </div><!-- .pix_color -->
  1026.                     </div><!-- .block_separator -->
  1027.                    
  1028.                     <div class="block_separator">
  1029.                         <div class="pix_color clear">
  1030.                             <label for="pix_second_level_background">Second level menu background color</label>
  1031.                              <input name="pix_second_level_background" id="pix_second_level_background" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_second_level_background' )); ?>" />
  1032.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1033.                            <div class="colorpicker"></div>
  1034.                         </div><!-- .pix_color -->
  1035.    
  1036.                        <div class="pix_color clear">
  1037.                             <label for="pix_second_level_color">Second level menu text color</label>
  1038.                              <input name="pix_second_level_color" id="pix_second_level_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_second_level_color' )); ?>" />
  1039.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1040.                            <div class="colorpicker"></div>
  1041.                         </div><!-- .pix_color -->
  1042.    
  1043.                        <div class="pix_color clear">
  1044.                             <label for="pix_second_level_hover">Second level menu text color on mouse hover</label>
  1045.                              <input name="pix_second_level_hover" id="pix_second_level_hover" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_second_level_hover' )); ?>" />
  1046.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1047.                            <div class="colorpicker"></div>
  1048.                         </div><!-- .pix_color -->
  1049.    
  1050.                     </div><!-- .block_separator -->
  1051.                    
  1052.                     <div class="block_separator">
  1053.                         <div class="pix_color clear">
  1054.                             <label for="pix_third_level_background">Third level menu background color</label>
  1055.                              <input name="pix_third_level_background" id="pix_third_level_background" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_third_level_background' )); ?>" />
  1056.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1057.                            <div class="colorpicker"></div>
  1058.                         </div><!-- .pix_color -->
  1059.    
  1060.                        <div class="pix_color clear">
  1061.                             <label for="pix_third_level_color">Third level menu text color</label>
  1062.                              <input name="pix_third_level_color" id="pix_third_level_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_third_level_color' )); ?>" />
  1063.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1064.                            <div class="colorpicker"></div>
  1065.                         </div><!-- .pix_color -->
  1066.    
  1067.                        <div class="pix_color clear">
  1068.                             <label for="pix_third_level_hover">Third level menu text color on mouse hover</label>
  1069.                              <input name="pix_third_level_hover" id="pix_third_level_hover" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_third_level_hover' )); ?>" />
  1070.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1071.                            <div class="colorpicker"></div>
  1072.                         </div><!-- .pix_color -->
  1073.    
  1074.                     </div><!-- .block_separator -->
  1075.                    
  1076.                 </div><!-- #navigation-colors-tab -->                
  1077.                
  1078.                 <div id="2navigation-colors-tab">
  1079.                     <div class="block_separator">
  1080.                         <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/secondnavigation.php?TB_iframe=true&width=600&height=550" class="info thickbox">what's that?</a>)</small>
  1081.                         <div class="pix_color clear">
  1082.                             <label for="pix_first_level_background_2nd">First level secondary menu background color</label>
  1083.                              <input name="pix_first_level_background_2nd" id="pix_first_level_background_2nd" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_first_level_background_2nd' )); ?>" />
  1084.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1085.                            <div class="colorpicker"></div>
  1086.                         </div><!-- .pix_color -->
  1087.    
  1088.                         <div class="slider_div opacity clear">
  1089.                             <label for="pix_first_level_opacity_2nd">First level secondary menu background opacity</label>
  1090.                             <input type="text" id="pix_first_level_opacity_2nd" name="pix_first_level_opacity_2nd" class="slider_input" value="<?php echo get_pix_option('pix_first_level_opacity_2nd'); ?>" />
  1091.                             <div class="slider_cursor"></div>
  1092.                             <div class="clear"></div>
  1093.                             <small><strong>Pay attention!</strong> If you have sub-menus set opacity to 1</small>
  1094.                         </div><!-- .slider_div -->
  1095.    
  1096.                        <div class="pix_color clear">
  1097.                             <label for="pix_first_level_color_2nd">First level secondary menu text color</label>
  1098.                              <input name="pix_first_level_color_2nd" id="pix_first_level_color_2nd" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_first_level_color_2nd' )); ?>" />
  1099.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1100.                            <div class="colorpicker"></div>
  1101.                         </div><!-- .pix_color -->
  1102.    
  1103.                        <div class="pix_color clear">
  1104.                             <label for="pix_first_level_hover_2nd">First level secondary menu text color on mouse hover</label>
  1105.                              <input name="pix_first_level_hover_2nd" id="pix_first_level_hover_2nd" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_first_level_hover_2nd' )); ?>" />
  1106.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1107.                            <div class="colorpicker"></div>
  1108.                         </div><!-- .pix_color -->
  1109.    
  1110.                        <div class="pix_color clear">
  1111.                             <label for="pix_first_level_border_2nd">First level secondary menu border on mouse hover</label>
  1112.                              <input name="pix_first_level_border_2nd" id="pix_first_level_border_2nd" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_first_level_border_2nd' )); ?>" />
  1113.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1114.                            <div class="colorpicker"></div>
  1115.                         </div><!-- .pix_color -->
  1116.                     </div><!-- .block_separator -->
  1117.                    
  1118.                     <div class="block_separator">
  1119.                         <div class="pix_color clear">
  1120.                             <label for="pix_second_level_background_2nd">Second level secondary menu background color</label>
  1121.                              <input name="pix_second_level_background_2nd" id="pix_second_level_background_2nd" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_second_level_background_2nd' )); ?>" />
  1122.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1123.                            <div class="colorpicker"></div>
  1124.                         </div><!-- .pix_color -->
  1125.    
  1126.                        <div class="pix_color clear">
  1127.                             <label for="pix_second_level_color_2nd">Second level secondary menu text color</label>
  1128.                              <input name="pix_second_level_color_2nd" id="pix_second_level_color_2nd" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_second_level_color_2nd' )); ?>" />
  1129.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1130.                            <div class="colorpicker"></div>
  1131.                         </div><!-- .pix_color -->
  1132.    
  1133.                        <div class="pix_color clear">
  1134.                             <label for="pix_second_level_hover_2nd">Second level secondary menu text color on mouse hover</label>
  1135.                              <input name="pix_second_level_hover_2nd" id="pix_second_level_hover_2nd" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_second_level_hover_2nd' )); ?>" />
  1136.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1137.                            <div class="colorpicker"></div>
  1138.                         </div><!-- .pix_color -->
  1139.    
  1140.                     </div><!-- .block_separator -->
  1141.                    
  1142.                     <div class="block_separator">
  1143.                         <div class="pix_color clear">
  1144.                             <label for="pix_third_level_background_2nd">Third level secondary menu background color</label>
  1145.                              <input name="pix_third_level_background_2nd" id="pix_third_level_background_2nd" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_third_level_background_2nd' )); ?>" />
  1146.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1147.                            <div class="colorpicker"></div>
  1148.                         </div><!-- .pix_color -->
  1149.    
  1150.                        <div class="pix_color clear">
  1151.                             <label for="pix_third_level_color_2nd">Third level secondary menu text color</label>
  1152.                              <input name="pix_third_level_color_2nd" id="pix_third_level_color_2nd" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_third_level_color_2nd' )); ?>" />
  1153.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1154.                            <div class="colorpicker"></div>
  1155.                         </div><!-- .pix_color -->
  1156.    
  1157.                        <div class="pix_color clear">
  1158.                             <label for="pix_third_level_hover_2nd">Third level secondary menu text color on mouse hover</label>
  1159.                              <input name="pix_third_level_hover_2nd" id="pix_third_level_hover_2nd" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_third_level_hover_2nd' )); ?>" />
  1160.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1161.                            <div class="colorpicker"></div>
  1162.                         </div><!-- .pix_color -->
  1163.    
  1164.                     </div><!-- .block_separator -->
  1165.                    
  1166.                 </div><!-- #2navigation-colors-tab -->
  1167.                
  1168.                 <div id="footer-colors-tab">
  1169.                     <div class="block_separator pix_color">
  1170.                         <label for="pix_footer_background">Footer background color</label>
  1171.                          <input name="pix_footer_background" id="pix_footer_background" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_footer_background' )); ?>" />
  1172.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1173.                        <div class="colorpicker"></div>
  1174.                     </div><!-- .block_separator -->
  1175.  
  1176.                    <div class="block_separator pix_color">
  1177.                         <label for="pix_footer_text_color">Footer text color</label>
  1178.                          <input name="pix_footer_text_color" id="pix_footer_text_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_footer_text_color' )); ?>" />
  1179.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1180.                        <div class="colorpicker"></div>
  1181.                     </div><!-- .block_separator -->
  1182.                    
  1183.                     <div class="block_separator">
  1184.                         <label for="pix_footer_image_bg">Footer logo</label>
  1185.                         <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  1186.                         <div id="pix_footer_image_bg" class="rm_upload_image">
  1187.                             <?php if(get_pix_option('pix_footer_image_bg')=='') { $style=' style="display:none"'; } else { $style=''; } ?>
  1188.                             <div class="image_thumb"><img src="<?php echo get_pix_thumb(get_pix_option('pix_footer_image_bg'), 'exTh'); ?>" alt="Preview"<?php echo $style; ?> /></div>
  1189.                             <input name="pix_footer_image_bg" type="text" value="<?php echo get_pix_option('pix_footer_image_bg'); ?>">
  1190.                             <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  1191.                         </div><!-- .rm_upload_image -->
  1192.                     </div><!-- .block_separator -->
  1193.                    
  1194.                     <div class="block_separator">
  1195.                         <label for="pix_footer_image_position">Footer logo position</label>
  1196.                          <input name="pix_footer_image_position" id="pix_footer_image_position" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_footer_image_position' )); ?>" />
  1197.                     </div><!-- .block_separator -->
  1198.  
  1199.                     <div class="block_separator">
  1200.                         <label for="pix_footer_image_repeat">Footer logo repeat</label>
  1201.                         <select id="pix_footer_image_repeat" name="pix_footer_image_repeat">
  1202.                             <option value="no-repeat"<?php if (get_pix_option('pix_footer_image_repeat') == 'no-repeat') { echo ' selected="selected"'; } ?>>No repeat</option>
  1203.                             <option value="repeat"<?php if (get_pix_option('pix_footer_image_repeat') == 'repeat') { echo ' selected="selected"'; } ?>>Repeat</option>
  1204.                             <option value="repeat-x"<?php if (get_pix_option('pix_footer_image_repeat') == 'repeat-x') { echo ' selected="selected"'; } ?>>Repeat horizontally</option>
  1205.                             <option value="repeat-y"<?php if (get_pix_option('pix_footer_image_repeat') == 'repeat-y') { echo ' selected="selected"'; } ?>>Repeat vertically</option>
  1206.                         </select>
  1207.                     </div><!-- .block_separator -->
  1208.  
  1209.                     <div class="block_separator">
  1210.                         <label for="pix_footer_padding">Footer logo padding</label>
  1211.                          <input name="pix_footer_padding" id="pix_footer_padding" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_footer_padding' )); ?>" />
  1212.                     </div><!-- .block_separator -->
  1213.  
  1214.                     <div class="block_separator">
  1215.                         <label for="pix_footer_margin">Footer logo margin</label>
  1216.                          <input name="pix_footer_margin" id="pix_footer_margin" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_footer_margin' )); ?>" />
  1217.                     </div><!-- .block_separator -->
  1218.  
  1219.                 </div><!-- #footer-colors-tab -->
  1220.                
  1221.                 <div id="typography-color-tab">
  1222.                     <div class="block_separator pix_color">
  1223.                         <label for="pix_h1_color">Heading 1 color</label>
  1224.                          <input name="pix_h1_color" id="pix_h1_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_h1_color' )); ?>" />
  1225.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1226.                        <div class="colorpicker"></div>
  1227.                     </div><!-- .block_separator -->
  1228.  
  1229.                     <div class="block_separator pix_color">
  1230.                         <label for="pix_h2_color">Heading 2 color</label>
  1231.                          <input name="pix_h2_color" id="pix_h2_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_h2_color' )); ?>" />
  1232.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1233.                        <div class="colorpicker"></div>
  1234.                     </div><!-- .block_separator -->
  1235.  
  1236.                     <div class="block_separator pix_color">
  1237.                         <label for="pix_h3_color">Heading 3 color</label>
  1238.                          <input name="pix_h3_color" id="pix_h3_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_h3_color' )); ?>" />
  1239.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1240.                        <div class="colorpicker"></div>
  1241.                     </div><!-- .block_separator -->
  1242.  
  1243.                     <div class="block_separator pix_color">
  1244.                         <label for="pix_h4_color">Heading 4 color</label>
  1245.                          <input name="pix_h4_color" id="pix_h4_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_h4_color' )); ?>" />
  1246.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1247.                        <div class="colorpicker"></div>
  1248.                     </div><!-- .block_separator -->
  1249.  
  1250.                     <div class="block_separator pix_color">
  1251.                         <label for="pix_h5_color">Heading 5 color</label>
  1252.                          <input name="pix_h5_color" id="pix_h5_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_h5_color' )); ?>" />
  1253.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1254.                        <div class="colorpicker"></div>
  1255.                     </div><!-- .block_separator -->
  1256.  
  1257.                     <div class="block_separator pix_color">
  1258.                         <label for="pix_h6_color">Heading 6 color</label>
  1259.                          <input name="pix_h6_color" id="pix_h6_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_h6_color' )); ?>" />
  1260.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1261.                        <div class="colorpicker"></div>
  1262.                     </div><!-- .block_separator -->
  1263.  
  1264.  
  1265.                 </div><!-- #typography-color-tab -->
  1266.                
  1267.                 <div id="divs-buttons-tab">
  1268.                     <div class="block_separator pix_color">
  1269.                         <label for="pix_buttons_bg">General button background</label>
  1270.                          <input name="pix_buttons_bg" id="pix_buttons_bg" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_buttons_bg' )); ?>" />
  1271.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1272.                        <div class="colorpicker"></div>
  1273.                     </div><!-- .block_separator -->
  1274.  
  1275.                     <div class="block_separator pix_color">
  1276.                         <label for="pix_buttons_color">General button text color</label>
  1277.                          <input name="pix_buttons_color" id="pix_buttons_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_buttons_color' )); ?>" />
  1278.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1279.                        <div class="colorpicker"></div>
  1280.                     </div><!-- .block_separator -->
  1281.  
  1282.                     <div class="block_separator pix_color">
  1283.                         <label for="pix_buttons_bghover">General button background (hover state)</label>
  1284.                          <input name="pix_buttons_bghover" id="pix_buttons_bghover" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_buttons_bghover' )); ?>" />
  1285.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1286.                        <div class="colorpicker"></div>
  1287.                     </div><!-- .block_separator -->
  1288.  
  1289.                     <div class="block_separator pix_color">
  1290.                         <label for="pix_buttons_colorhover">General button text color (hover state)</label>
  1291.                          <input name="pix_buttons_colorhover" id="pix_buttons_colorhover" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_buttons_colorhover' )); ?>" />
  1292.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1293.                        <div class="colorpicker"></div>
  1294.                     </div><!-- .block_separator -->
  1295.  
  1296.                     <div class="block_separator pix_color">
  1297.                         <label for="pix_general_box_bg">General box background color</label>
  1298.                          <input name="pix_general_box_bg" id="pix_general_box_bg" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_general_box_bg' )); ?>" />
  1299.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1300.                        <div class="colorpicker"></div>
  1301.                     </div><!-- .block_separator -->
  1302.  
  1303.                     <div class="block_separator pix_color">
  1304.                         <label for="pix_general_box_bg_hover">General box background color (hover state)</label>
  1305.                          <input name="pix_general_box_bg_hover" id="pix_general_box_bg_hover" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_general_box_bg_hover' )); ?>" />
  1306.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1307.                        <div class="colorpicker"></div>
  1308.                     </div><!-- .block_separator -->
  1309.  
  1310.                     <div class="block_separator pix_color">
  1311.                         <label for="pix_general_light_text_color">General light text color</label>
  1312.                          <input name="pix_general_light_text_color" id="pix_general_light_text_color" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_general_light_text_color' )); ?>" />
  1313.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1314.                        <div class="colorpicker"></div>
  1315.                     </div><!-- .block_separator -->
  1316.  
  1317.                     <div class="block_separator pix_color">
  1318.                         <label for="pix_general_light_text_color_hover">General light text color (hover state)</label>
  1319.                          <input name="pix_general_light_text_color_hover" id="pix_general_light_text_color_hover" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_general_light_text_color_hover' )); ?>" />
  1320.                         <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/images/color_picker_icon.gif" width="20" height="20" style="cursor:pointer; display:block; float:left; margin:6px 0 0 1px" class="a_palette" />
  1321.                        <div class="colorpicker"></div>
  1322.                     </div><!-- .block_separator -->
  1323.                    
  1324.                 </div><!-- #divs-buttons-tab -->
  1325.                
  1326.                 <div id="colorbox-tab">
  1327.                     <div class="block_separator">
  1328.                         <label for="pix_checkcolorbox">
  1329.                             Use the colorbox any time you link to an image
  1330.                         </label>
  1331.                         <input type="hidden" value="0" name="pix_checkcolorbox">                        
  1332.                         <input type="checkbox" value="show" name="pix_checkcolorbox"<?php if(get_pix_option('pix_checkcolorbox')=="show") { ?> checked="checked"<?php } ?>>
  1333.                         <small>If you select &quot;ON&quot; you can add the class &quot;noColorBox&quot; to the links where you do not want to apply the Colorbox.<br>
  1334.                         If you select &quot;OFF&quot; you can add the class &quot;colorbox&quot; to the links where you want to apply the Colorbox.</small>
  1335.                     </div><!-- .block_separator -->
  1336.  
  1337.                     <div class="block_separator">
  1338.                         <label for="pix_colorbox_theme">
  1339.                             Select the ColorBox skin
  1340.                         </label>
  1341.                         <select id="pix_colorbox_theme" name="pix_colorbox_theme">
  1342.                             <option value="whiteonblack"<?php if (get_pix_option('pix_colorbox_theme') == 'whiteonblack') { echo ' selected="selected"'; } ?>>White on black</option>
  1343.                             <option value="blackonwhite"<?php if (get_pix_option('pix_colorbox_theme') == 'blackonwhite') { echo ' selected="selected"'; } ?>>Black on white</option>
  1344.                             <option value="black"<?php if (get_pix_option('pix_colorbox_theme') == 'black') { echo ' selected="selected"'; } ?>>Black</option>
  1345.                             <option value="white"<?php if (get_pix_option('pix_colorbox_theme') == 'white') { echo ' selected="selected"'; } ?>>White</option>
  1346.                             <option value="gray"<?php if (get_pix_option('pix_colorbox_theme') == 'gray') { echo ' selected="selected"'; } ?>>Gray on black</option>
  1347.                         </select>
  1348.                     </div><!-- .block_separator -->
  1349.  
  1350.                     <div class="block_separator">
  1351.                         <label for="pix_colorbox_theme">
  1352.                             Select the Tooltip skin
  1353.                         </label>
  1354.                         <select id="pix_tooltip_theme" name="pix_tooltip_theme">
  1355.                             <option value="default"<?php if (get_pix_option('pix_tooltip_theme') == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  1356.                             <option value="light"<?php if (get_pix_option('pix_tooltip_theme') == 'light') { echo ' selected="selected"'; } ?>>Light</option>
  1357.                             <option value="dark"<?php if (get_pix_option('pix_tooltip_theme') == 'dark') { echo ' selected="selected"'; } ?>>Dark</option>
  1358.                             <option value="cream"<?php if (get_pix_option('pix_tooltip_theme') == 'cream') { echo ' selected="selected"'; } ?>>Cream</option>
  1359.                             <option value="red"<?php if (get_pix_option('pix_tooltip_theme') == 'red') { echo ' selected="selected"'; } ?>>Red</option>
  1360.                             <option value="green"<?php if (get_pix_option('pix_tooltip_theme') == 'green') { echo ' selected="selected"'; } ?>>Green</option>
  1361.                             <option value="blue"<?php if (get_pix_option('pix_tooltip_theme') == 'blue') { echo ' selected="selected"'; } ?>>Blue</option>
  1362.                             <option value="youtube"<?php if (get_pix_option('pix_tooltip_theme') == 'youtube') { echo ' selected="selected"'; } ?>>You Tube</option>
  1363.                             <option value="jtools"<?php if (get_pix_option('pix_tooltip_theme') == 'jtools') { echo ' selected="selected"'; } ?>>jQuery Tools</option>
  1364.                             <option value="cluetip"<?php if (get_pix_option('pix_tooltip_theme') == 'cluetip') { echo ' selected="selected"'; } ?>>Cluetip</option>
  1365.                             <option value="tipsy"<?php if (get_pix_option('pix_tooltip_theme') == 'tipsy') { echo ' selected="selected"'; } ?>>Tipsy</option>
  1366.                             <option value="tipped"<?php if (get_pix_option('pix_tooltip_theme') == 'tipped') { echo ' selected="selected"'; } ?>>Tipped</option>
  1367.                         </select>
  1368.                     </div><!-- .block_separator -->
  1369.                </div><!-- #colorbox-tab -->              
  1370.                     <input name="save" type="submit" value="&nbsp;" class="input-save" />
  1371.                     <input type="hidden" name="action" value="save" />
  1372.                 </form>
  1373.  
  1374.             </div><!-- #colors-tab -->
  1375.                        
  1376.             <div id="frontpage-tab">
  1377.                 <ul>
  1378.                     <li><a href="#background-front-tab">Background</a></li>
  1379.                     <li><a href="#layout-front-tab">Layout</a></li>
  1380.                     <li><a href="#content-front-tab">Content</a></li>
  1381.                     <li><a href="#seo-front-tab">SEO</a></li>
  1382.                     <li><a href="#sidebar-front-tab">Sidebar</a></li>
  1383.                 </ul>
  1384.                 <form method="post">
  1385.                 <div id="background-front-tab">
  1386.                     <div class="block_separator">
  1387.                         <label for="pix_home_background">
  1388.                             Select the background of your posts page
  1389.                         </label>
  1390.                         <select id="pix_home_background" name="pix_home_background" class="toggler">
  1391.                             <option value="default"<?php if (get_pix_option('pix_home_background') == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  1392.                             <option value="slideshow"<?php if (get_pix_option('pix_home_background') == 'slideshow') { echo ' selected="selected"'; } ?>>Slideshow</option>
  1393.                             <option value="single"<?php if (get_pix_option('pix_home_background') == 'single') { echo ' selected="selected"'; } ?>>Single image</option>
  1394.                             <option value="video"<?php if (get_pix_option('pix_home_background') == 'video') { echo ' selected="selected"'; } ?>>Video</option>
  1395.                             <option value="googlemap"<?php if (get_pix_option('pix_home_background') == 'googlemap') { echo ' selected="selected"'; } ?>>Google map</option>
  1396.                             <option value="none"<?php if (get_pix_option('pix_home_background') == 'none') { echo ' selected="selected"'; } ?>>None</option>
  1397.                         </select>
  1398.                     </div><!-- .block_separator -->
  1399.  
  1400.                     <div class="block_separator toggle pix_home_background" id="pix_home_background" data-type="single">
  1401.                         <label for="pix_wide_image_home">
  1402.                             Upload your image
  1403.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  1404.                         </label>
  1405.                        
  1406.                         <div id="pix_wide_image_home" class="rm_upload_image">
  1407.                             <?php if(get_pix_option('pix_wide_image_home')=='') { $style=' style="display:none"'; } else { $style=''; } ?>
  1408.                             <div class="image_thumb"><img src="<?php echo get_pix_thumb(get_pix_option('pix_wide_image_home'), 'exTh'); ?>" alt="Preview"<?php echo $style; ?> /></div>
  1409.                             <input name="pix_wide_image_home" type="text" value="<?php echo get_pix_option('pix_wide_image_home'); ?>">
  1410.                             <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  1411.                         </div><!-- .rm_upload_image -->
  1412.                     </div><!-- .block_separator -->
  1413.  
  1414.                     <div class="block_separator toggle pix_home_background" id="pix_home_background" data-type="slideshow">
  1415.                         <label>
  1416.                             Add fields, upload images, remove them, drag and drop!
  1417.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  1418.                         </label>
  1419.                         <div class="sorting_admin">
  1420.                         <a href="#" class="add" id="add_a_slider">&nbsp;</a>
  1421.                         <?php
  1422.  
  1423.                             $i = 0;
  1424.                             $pix_array_slide_home = get_pix_option('pix_array_slide_home_');
  1425.                             while($i<count($pix_array_slide_home)){
  1426.                                 if($pix_array_slide_home[$i]=='') { $style=' style="display:none"'; } else { $style=''; }
  1427.                                 echo '<div id="pix_array_slide_home_'.$i.'" class="rm_upload_image">
  1428.                                 <div class="handle"></div>
  1429.                                 <div class="image_thumb"><img src="'.get_pix_thumb($pix_array_slide_home[$i], 'exTh').'" alt="Preview"'. $style .' /></div>
  1430.                                 <input name="pix_array_slide_home_['.$i.']" type="text" value="'.$pix_array_slide_home[$i].'">
  1431.                                 <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  1432.                                <a href="#" class="button-secondary remove">Remove</a></div>';
  1433.                                 $i++;
  1434.                             }
  1435.                         ?>
  1436.                         </div><!-- .sorting -->
  1437.                     </div><!-- .block_separator -->
  1438.  
  1439.                     <div class="block_separator toggle pix_home_background" id="pix_home_background" data-type="video">
  1440.                         <label for="pix_wide_video_home">
  1441.                             Upload your video
  1442.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadvideo.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  1443.                         </label>
  1444.                        
  1445.                         <div id="pix_wide_image_home" class="rm_upload_video">
  1446.                             <input name="pix_wide_video_home" type="text" value="<?php echo get_pix_option('pix_wide_video_home'); ?>"><br>
  1447.                             <a class="button-secondary pix_upload_video_button" href="#">Upload Video</a>
  1448.                         </div><!-- .rm_upload_image -->
  1449.                     </div><!-- .block_separator -->
  1450.  
  1451.                     <div class="block_separator toggle pix_home_background" id="pix_home_background" data-type="video">
  1452.                         <label for="pix_wide_video_home_start">
  1453.                             Auto start for your video
  1454.                         </label>
  1455.                         <input type="hidden" value="0" name="pix_wide_video_home_start">                        
  1456.                         <input type="checkbox" value="true" name="pix_wide_video_home_start"<?php if(get_pix_option('pix_wide_video_home_start')=="true") { ?> checked="checked"<?php } ?>>
  1457.                     </div><!-- .block_separator -->
  1458.  
  1459.                     <div class="block_separator toggle pix_home_background" id="pix_home_background" data-type="video">                        
  1460.                         <label for="pix_wide_video_home_loop">
  1461.                             Loop for your video
  1462.                         </label>
  1463.                         <input type="hidden" value="0" name="pix_wide_video_home_loop">                        
  1464.                         <input type="checkbox" value="true" name="pix_wide_video_home_loop"<?php if(get_pix_option('pix_wide_video_home_loop')=="true") { ?> checked="checked"<?php } ?>>
  1465.                     </div><!-- .block_separator -->
  1466.  
  1467.                            
  1468.                     <div class="block_separator toggle pix_home_background" id="pix_home_background" data-type="googlemap">
  1469.                         <label for="pix_wide_googlemap_home">
  1470.                             Coordinates <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/googlemap-coords.php" class="pix_tips_ajax topLeft"  data-rel="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/googlemap-coords.php" data-width="520">how can I get them?</a>)</small>
  1471.                         </label>
  1472.                        
  1473.                         <input name="pix_wide_googlemap_home" type="text" value="<?php echo get_pix_option('pix_wide_googlemap_home'); ?>"><br>
  1474.  
  1475.                     </div><!-- .block_separator -->
  1476.  
  1477.                     <div class="block_separator toggle pix_home_background slider_div googlemap" id="pix_home_background" data-type="googlemap">
  1478.                         <label for="pix_wide_googlemap_home_zoom">Zoom</label>
  1479.                         <input type="text" id="pix_wide_googlemap_home_zoom" name="pix_wide_googlemap_home_zoom" class="slider_input" value="<?php echo get_pix_option('pix_wide_googlemap_home_zoom'); ?>" />
  1480.                         <div class="slider_cursor"></div>
  1481.                     </div><!-- .block_separator -->
  1482.  
  1483.                     <div class="block_separator toggle pix_home_background" id="pix_home_background" data-type="googlemap">
  1484.                         <label for="pix_wide_googlemap_indications_home">Indications</label>
  1485.                         <textarea name="pix_wide_googlemap_indications_home" id="pix_wide_googlemap_indications_home"><?php echo stripslashes(get_pix_option( 'pix_wide_googlemap_indications_home' )); ?></textarea>
  1486.                     </div><!-- .block_separator -->
  1487.  
  1488.  
  1489.                     <div class="block_separator toggle pix_home_background" id="pix_home_background" data-type="googlemap">
  1490.                         <label for="pix_wide_googlemap_type_home">Type</label>
  1491.                         <select id="pix_wide_googlemap_type_home" name="pix_wide_googlemap_type_home">
  1492.                             <option value="HYBRID"<?php if (get_pix_option('pix_wide_googlemap_type_home') == 'HYBRID') { echo ' selected="selected"'; } ?>>hybrid</option>
  1493.                             <option value="SATELLITE"<?php if (get_pix_option('pix_wide_googlemap_type_home') == 'SATELLITE') { echo ' selected="selected"'; } ?>>satellite</option>
  1494.                             <option value="ROADMAP"<?php if (get_pix_option('pix_wide_googlemap_type_home') == 'ROADMAP') { echo ' selected="selected"'; } ?>>road map</option>
  1495.                             <option value="TERRAIN"<?php if (get_pix_option('pix_wide_googlemap_type_home') == 'TERRAIN') { echo ' selected="selected"'; } ?>>terrain</option>
  1496.                         </select>
  1497.                     </div><!-- .block_separator -->
  1498.  
  1499.                 </div><!-- #background-front-tab -->
  1500.  
  1501.                 <div id="layout-front-tab">
  1502.                     <div class="block_separator">
  1503.                         <label for="pix_sliding_frontpage">Sliding page</label>
  1504.                         <select id="pix_sliding_frontpage" name="pix_sliding_frontpage">
  1505.                             <option value="default"<?php if (get_pix_option('pix_sliding_frontpage') == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  1506.                             <option value="open"<?php if (get_pix_option('pix_sliding_frontpage') == 'open') { echo ' selected="selected"'; } ?>>Open on load</option>
  1507.                             <option value="closed"<?php if (get_pix_option('pix_sliding_frontpage') == 'closed') { echo ' selected="selected"'; } ?>>Closed on load</option>
  1508.                             <option value="always"<?php if (get_pix_option('pix_sliding_frontpage') == 'always') { echo ' selected="selected"'; } ?>>Always open</option>
  1509.                         </select>
  1510.                     </div><!-- .block_separator -->
  1511.                 </div><!-- #layout-front-tab -->
  1512.  
  1513.                 <div id="content-front-tab">
  1514.                     <div class="block_separator">
  1515.                         <label for="pix_frontpage_posttype">What do you want to show in the posts page</label>
  1516.                         <select id="pix_frontpage_posttype" name="pix_frontpage_posttype" class="toggler">
  1517.                             <option value="posts"<?php if (get_pix_option('pix_frontpage_posttype') == 'posts') { echo ' selected="selected"'; } ?>>Posts</option>
  1518.                             <option value="portfolio"<?php if (get_pix_option('pix_frontpage_posttype') == 'portfolio') { echo ' selected="selected"'; } ?>>Portfolio items</option>
  1519.                             <option value="nothing"<?php if (get_pix_option('pix_frontpage_posttype') == 'nothing') { echo ' selected="selected"'; } ?>>Nothing</option>
  1520.                         </select>
  1521.                     </div><!-- .block_separator -->
  1522.  
  1523.                 <div class="toggle pix_frontpage_posttype" data-type="portfolio posts">
  1524.                     <div class="block_separator toggle pix_frontpage_posttype" data-type="posts">
  1525.                         <label for="pix_frontpage_posttype_categories">What categories</label>
  1526.                         <small>Keep &quot;ctrl&quot; button on PC or &quot;cmd&quot; button on MAC for multiple selections</small>
  1527.                         <select id="pix_frontpage_posttype_categories" multiple size="6" style="height:auto!important" name="pix_frontpage_posttype_categories[]">
  1528.                             <option value="all"<?php if (is_array(get_pix_option('pix_frontpage_posttype_categories')) && in_array('all',get_pix_option('pix_frontpage_posttype_categories'))) { echo ' selected="selected"'; } ?>>All the categories</option>
  1529.                             <?php
  1530.                             $categories =  get_categories();
  1531.                             foreach ($categories as $category) { ?>
  1532.                                 <option value="<?php echo $category->term_id; ?>"<?php if (is_array(get_pix_option('pix_frontpage_posttype_categories')) && in_array($category->term_id,get_pix_option('pix_frontpage_posttype_categories'))) { echo ' selected="selected"'; } ?>><?php echo $category->cat_name; ?></option>
  1533.                             <?php } ?>
  1534.                         </select>
  1535.                     </div><!-- .block_separator -->
  1536.                
  1537.                     <div class="block_separator toggle pix_frontpage_posttype" data-type="portfolio">
  1538.                         <label for="pix_frontpage_posttype_galleries">What galleries</label>
  1539.                         <small>Keep &quot;ctrl&quot; button on PC or &quot;cmd&quot; button on MAC for multiple selections</small>
  1540.                         <select id="pix_frontpage_posttype_galleries" multiple size="6" style="height:auto!important" name="pix_frontpage_posttype_galleries[]">
  1541.                             <option value="all"<?php if (is_array(get_pix_option('pix_frontpage_posttype_galleries')) && in_array('all',get_pix_option('pix_frontpage_posttype_galleries'))) { echo ' selected="selected"'; } ?>>All the portfolio items</option>
  1542.                             <?php $terms = get_terms("gallery");
  1543.                             $count = count($terms);
  1544.                             if($count > 0){
  1545.                                 foreach ($terms as $term) { ?>
  1546.                                     <option value="<?php echo $term->slug; ?>"<?php if (is_array(get_pix_option('pix_frontpage_posttype_galleries')) && in_array($term->slug,get_pix_option('pix_frontpage_posttype_galleries'))) { echo ' selected="selected"'; } ?>><?php echo $term->name; ?></option>
  1547.                            
  1548.                                 <?php }
  1549.                             } ?>
  1550.                         </select>
  1551.                     </div><!-- .block_separator -->
  1552.                     <div class="block_separator toggle pix_frontpage_posttype" data-type="portfolio">
  1553.  
  1554.                         <label for="pix_frontpage_galleries_template" >Template</label>
  1555.                         <select class="toggler" name="pix_frontpage_galleries_template" id="pix_frontpage_galleries_template">
  1556.                             <option value="onecolumn"<?php if (get_pix_option('pix_frontpage_galleries_template') == 'onecolumn') { echo ' selected="selected"'; } ?>>One column</option>
  1557.                             <option value="twocolumns"<?php if (get_pix_option('pix_frontpage_galleries_template') == 'twocolumns') { echo ' selected="selected"'; } ?>>Two columns</option>
  1558.                             <option value="threecolumns"<?php if (get_pix_option('pix_frontpage_galleries_template') == 'threecolumns') { echo ' selected="selected"'; } ?>>Three columns</option>
  1559.                             <option value="fourcolumns"<?php if (get_pix_option('pix_frontpage_galleries_template') == 'fourcolumns') { echo ' selected="selected"'; } ?>>Four columns</option>
  1560.                             <option value="fivecolumns"<?php if (get_pix_option('pix_frontpage_galleries_template') == 'fivecolumns') { echo ' selected="selected"'; } ?>>Five columns</option>
  1561.                             <option value="widepage"<?php if (get_pix_option('pix_frontpage_galleries_template') == 'widepage') { echo ' selected="selected"'; } ?>>Wide page</option>
  1562.                         </select>
  1563.  
  1564.                         <div class="clear"></div>
  1565.  
  1566.                         <label for="pix_frontpage_galleries_filterable">Filterable portfolio page</label>
  1567.                         <input type="hidden" value="0" name="pix_frontpage_galleries_filterable">
  1568.                         <input type="checkbox" data-target="sliding_term_toggle" class="check_toggler" value="show" name="pix_frontpage_galleries_filterable"<?php if(get_pix_option('pix_frontpage_galleries_filterable')=="show") { ?> checked="checked"<?php } ?>>
  1569.  
  1570.                         <div class="clear"></div>
  1571.  
  1572.                         <label for="pix_frontpage_galleries_scrolling">Infinite scrolling page</label>
  1573.                         <input type="hidden" value="0" name="pix_frontpage_galleries_scrolling">
  1574.                         <input type="checkbox" data-target="sliding_term_toggle" class="check_toggler" value="show" name="pix_frontpage_galleries_scrolling"<?php if(get_pix_option('pix_frontpage_galleries_scrolling')=="show") { ?> checked="checked"<?php } ?>>
  1575.                        
  1576.                         <div class="clear"></div>
  1577.  
  1578.                         <label for="pix_frontpage_galleries_colorbox">Show &quot;Open in a ColorBox&quot; link</label>
  1579.                         <input type="hidden" value="0" name="pix_frontpage_galleries_colorbox">
  1580.                         <input type="checkbox" data-target="sliding_term_toggle" class="check_toggler" value="show" name="pix_frontpage_galleries_colorbox"<?php if(get_pix_option('pix_frontpage_galleries_colorbox')=="show") { ?> checked="checked"<?php } ?>>
  1581.                        
  1582.                         <div class="clear"></div>
  1583.  
  1584.                         <label for="pix_frontpage_galleries_slideshow">Have a slideshow in the ColorBox</label>
  1585.                         <input type="hidden" value="0" name="pix_frontpage_galleries_slideshow">
  1586.                         <input type="checkbox" data-target="sliding_term_toggle" class="check_toggler" value="show" name="pix_frontpage_galleries_slideshow"<?php if(get_pix_option('pix_frontpage_galleries_slideshow')=="show") { ?> checked="checked"<?php } ?>>
  1587.                        
  1588.                         <div class="clear"></div>
  1589.  
  1590.                         <label for="pix_frontpage_galleries_gotopage">Show &quot;Go to the page&quot; link</label>
  1591.                         <input type="hidden" value="0" name="pix_frontpage_galleries_gotopage">
  1592.                         <input type="checkbox" data-target="sliding_term_toggle" class="check_toggler" value="show" name="pix_frontpage_galleries_gotopage"<?php if(get_pix_option('pix_frontpage_galleries_gotopage')=="show") { ?> checked="checked"<?php } ?>>
  1593.                        
  1594.                         <div class="clear"></div>
  1595.  
  1596.                         <label for="pix_frontpage_galleries_tooltip">Tooltip on image</label>
  1597.                         <select id="pix_frontpage_galleries_tooltip" name="pix_frontpage_galleries_tooltip">
  1598.                             <option value="title"<?php if (get_pix_option('pix_frontpage_galleries_tooltip') == 'title') { echo ' selected="selected"'; } ?>>Show title</option>
  1599.                             <option value="titleexcerpt"<?php if (get_pix_option('pix_frontpage_galleries_tooltip') == 'titleexcerpt') { echo ' selected="selected"'; } ?>>Show title and excerpt</option>
  1600.                             <option value="titleaction"<?php if (get_pix_option('pix_frontpage_galleries_tooltip') == 'titleaction') { echo ' selected="selected"'; } ?>>Show title and action</option>
  1601.                             <option value="titleexcerptaction"<?php if (get_pix_option('pix_frontpage_galleries_tooltip') == 'titleexcerptaction') { echo ' selected="selected"'; } ?>>Show title, excerpt and action</option>
  1602.                             <option value="action"<?php if (get_pix_option('pix_frontpage_galleries_tooltip') == 'action') { echo ' selected="selected"'; } ?>>Show action</option>
  1603.                             <option value="hide"<?php if (get_pix_option('pix_frontpage_galleries_tooltip') == 'hide') { echo ' selected="selected"'; } ?>>Hide tooltip</option>
  1604.                         </select>
  1605.  
  1606.                     </div><!-- .block_separator -->
  1607.  
  1608.                     <div class="block_separator toggle pix_frontpage_posttype" data-type="posts">
  1609.                         <div class="slider_div">
  1610.                             <label for="pix_frontpage_length_excerpt">How many words do you want to show in the excerpt</label>
  1611.                             <input type="text" id="pix_frontpage_length_excerpt" name="pix_frontpage_length_excerpt" class="slider_input" value="<?php echo get_pix_option('pix_frontpage_length_excerpt'); ?>" />
  1612.                             <div class="slider_cursor"></div>
  1613.                         </div><!-- .slider_div -->
  1614.                     </div><!-- .block_separator -->
  1615.        
  1616.                     <div class="block_separator toggle pix_frontpage_posttype" data-type="posts">
  1617.                         <label for="pix_frontpage_content_excerpt">What do you want to display</label>
  1618.                         <select id="pix_frontpage_content_excerpt" name="pix_frontpage_content_excerpt">
  1619.                             <option value="excerpt"<?php if (get_pix_option('pix_frontpage_content_excerpt') == 'excerpt') { echo ' selected="selected"'; } ?>>The excerpt</option>
  1620.                             <option value="content"<?php if (get_pix_option('pix_frontpage_content_excerpt') == 'content') { echo ' selected="selected"'; } ?>>The content</option>
  1621.                         </select>
  1622.                     </div><!-- .block_separator -->
  1623.        
  1624.                     <div class="block_separator toggle pix_frontpage_posttype" data-type="posts">
  1625.                         <label for="pix_frontpage_featured_image" >
  1626.                             Hide the featured images
  1627.                         </label>
  1628.                         <input type="hidden" value="0" name="pix_frontpage_featured_image">
  1629.                         <input type="checkbox" value="true" name="pix_frontpage_featured_image"<?php if(get_pix_option('pix_frontpage_featured_image')=="true") { ?> checked="checked"<?php } ?>>
  1630.                        
  1631.                     </div><!-- .block_separator -->
  1632.                        
  1633.                     <div class="block_separator toggle pix_frontpage_posttype" data-type="portfolio posts">
  1634.                         <div class="slider_div border">
  1635.                             <label for="pix_frontpage_galleries_ppp">How many posts per page</label>
  1636.                             <input type="text" id="pix_frontpage_galleries_ppp" name="pix_frontpage_galleries_ppp" class="slider_input" value="<?php echo get_pix_option('pix_frontpage_galleries_ppp'); ?>" />
  1637.                             <div class="slider_cursor"></div>
  1638.                         </div><!-- .slider_div -->
  1639.  
  1640.                     </div><!-- .block_separator -->
  1641.    
  1642.  
  1643.                     <div class="block_separator toggle pix_frontpage_posttype" data-type="posts">
  1644.  
  1645.                         <label for="pix_frontpage_posts_image_link">Featured image action</label>
  1646.                         <select id="pix_frontpage_posts_image_link" name="pix_frontpage_posts_image_link">
  1647.                             <option value="goto"<?php if (get_pix_option('pix_frontpage_posts_image_link') == 'goto') { echo ' selected="selected"'; } ?>>Go to the post</option>
  1648.                             <option value="enlarge"<?php if (get_pix_option('pix_frontpage_posts_image_link') == 'enlarge') { echo ' selected="selected"'; } ?>>Enlarge picture</option>
  1649.                             <option value="both"<?php if (get_pix_option('pix_frontpage_posts_image_link') == 'both') { echo ' selected="selected"'; } ?>>Both</option>
  1650.                         </select>
  1651.                     </div><!-- .block_separator -->
  1652.  
  1653.                     <div class="block_separator">
  1654.                         <label for="pix_front_page_title">
  1655.                             Main posts page title
  1656.                         </label>
  1657.                          <input name="pix_front_page_title" id="pix_front_page_title" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_front_page_title' )); ?>" />
  1658.                          <p></p>
  1659.                     </div><!-- .block_separator -->
  1660.                     <div class="block_separator">
  1661.                         <label for="pix_front_page_content">
  1662.                             Description
  1663.                         </label>
  1664.                         <?php the_editor(stripslashes(get_pix_option('pix_front_page_content')), $id = 'pix_front_page_content'); ?>
  1665.                     </div><!-- .block_separator -->
  1666.                  </div><!-- .toggle "nothing -->
  1667.                 </div><!-- #content-front-tab -->
  1668.  
  1669.                 <div id="seo-front-tab">
  1670.                     <div class="block_separator">
  1671.                         <label for="pix_front_page_seo_title">
  1672.                             Posts page title
  1673.                         </label>
  1674.                          <input name="pix_front_page_seo_title" id="pix_front_page_seo_title" class="pix_title_seo" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_front_page_seo_title' )); ?>" />
  1675.                         <p></p>
  1676.                     </div><!-- .block_separator -->
  1677.                     <div class="block_separator">
  1678.                         <label for="pix_front_page_seo_description">
  1679.                             Meta description
  1680.                         </label>
  1681.                          <textarea name="pix_front_page_seo_description" id="pix_front_page_seo_description" class="pix_desc_seo"><?php echo stripslashes(get_pix_option( 'pix_front_page_seo_description' )); ?></textarea>
  1682.                         <p></p>
  1683.                     </div><!-- .block_separator -->
  1684.                     <div class="block_separator">
  1685.                         <label for="pix_front_page_seo_keywords">
  1686.                             Meta keywords
  1687.                         </label>
  1688.                          <input name="pix_front_page_seo_keywords" id="pix_front_page_seo_keywords" type="text" value="<?php echo stripslashes(get_pix_option( 'pix_front_page_seo_keywords' )); ?>" />
  1689.                     </div><!-- .block_separator -->
  1690.                </div><!-- #seo-front-tab -->
  1691.  
  1692.                 <div id="sidebar-front-tab">
  1693.                     <div class="block_separator">
  1694.                         <label for="pix_sidebar_frontpage_layout">Show/hide sidebar and its position</label>
  1695.                         <select id="pix_sidebar_frontpage_layout" name="pix_sidebar_frontpage_layout" class="toggler">
  1696.                             <option value="default"<?php if (get_pix_option('pix_sidebar_frontpage_layout') == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  1697.                             <option value="rightsidebar"<?php if (get_pix_option('pix_sidebar_frontpage_layout') == 'rightsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the right</option>
  1698.                             <option value="leftsidebar"<?php if (get_pix_option('pix_sidebar_frontpage_layout') == 'leftsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the left</option>
  1699.                             <option value="nosidebar"<?php if (get_pix_option('pix_sidebar_frontpage_layout') == 'nosidebar') { echo ' selected="selected"'; } ?>>Hide sidebar</option>
  1700.                         </select>
  1701.                     </div><!-- .block_separator -->
  1702.                    
  1703.                     <div class="block_separator toggle pix_sidebar_frontpage_layout" id="pix_sidebar_frontpage_layout" data-type="nosidebar">
  1704.                         <label for="pix_front_page_layout">
  1705.                             Main content layout
  1706.                         </label>
  1707.                         <select id="pix_front_page_layout" name="pix_front_page_layout">
  1708.                             <option value="left"<?php if (get_pix_option('pix_front_page_layout') == 'left') { echo ' selected="selected"'; } ?>>Narrow left column</option>
  1709.                             <option value="right"<?php if (get_pix_option('pix_front_page_layout') == 'right') { echo ' selected="selected"'; } ?>>Narrow right column</option>
  1710.                             <option value="wide"<?php if (get_pix_option('pix_front_page_layout') == 'wide') { echo ' selected="selected"'; } ?>>Wide column</option>
  1711.                         </select>
  1712.                     </div><!-- .block_separator -->
  1713.  
  1714.                     <div class="block_separator">
  1715.                         <label for="pix_sidebar_frontpage">Select the sidebar for your posts page</label>
  1716.                         <select name="pix_sidebar_frontpage" id="pix_sidebar_frontpage" class="select_sidebar">
  1717.                             <option<?php if (get_pix_option('pix_sidebar_frontpage') == 'None') { echo ' selected="selected"'; } ?>>None</option>
  1718.                         <?php
  1719.                         $sidebars = sidebar_generator_pix::get_sidebars();
  1720.                         if(is_array($sidebars) && !empty($sidebars)){
  1721.                             foreach($sidebars as $sidebar){ ?>
  1722.                                 <option<?php if (get_pix_option('pix_sidebar_frontpage') == $sidebar) { echo ' selected="selected"'; } ?>><?php echo $sidebar; ?></option>
  1723.                             <?php }
  1724.                         }
  1725.                         ?>
  1726.                         </select>
  1727.                     </div><!-- .block_separator -->
  1728.                 </div><!-- #sidebar-front-tab -->
  1729.                     <input name="save" type="submit" value="&nbsp;" class="input-save" />
  1730.                     <input type="hidden" name="action" value="save" />
  1731.                 </form>
  1732.             </div><!-- #frontpage-tab -->
  1733.            
  1734.             <div id="sidebar-tab">
  1735.                 <ul>
  1736.                     <li><a href="#your-sidebars-tab">Your sidebars</a></li>
  1737.                     <li><a href="#associate-sidebars-tab">Associate them</a></li>
  1738.                 </ul>
  1739.                 <form method="post">
  1740.                 <div id="your-sidebars-tab">
  1741.                     <div class="block_separator">
  1742.                     <?php if ($current_user->display_name == 'pix_test' || $current_user->display_name == 'manu_test') { ?>
  1743.                         <p>Sorry, you can't see this section as a preview.</p>
  1744.                     <?php } else { ?>
  1745.                         <label for="sidebar_generator_0">Add a sidebar</label>
  1746.                         <input name="sidebar_generator_0" id="sidebar_generator_0" type="text" value="" />
  1747.                         <input name="save" type="submit" class="add-sidebar" value="&nbsp;" />
  1748.  
  1749.                     </div><!-- .block_separator -->
  1750.  
  1751.                     <div class="block_separator">
  1752.                         <label>Your sidebars</label>
  1753.     <?php
  1754.     $get_sidebar_options = sidebar_generator_pix::get_sidebars();
  1755.     if($get_sidebar_options != "") {
  1756.     $i=1;
  1757.    
  1758.     foreach ($get_sidebar_options as $sidebar_gen) { ?>
  1759.     <?php if($i == 1) { ?>
  1760.    
  1761.     <?php } ?>
  1762.    
  1763.         <div id="sidebar_row_<?php echo $i; ?>" class="sidebar_row">
  1764.             <input type="submit" name="sidebar_rm_<?php echo $i; ?>" id="<?php echo $i; ?>" class="delete-sidebar" value="&nbsp;" />
  1765.             <?php echo $i.' - '; ?>
  1766.             <span class="loading_sidebar"><img class="sidebar_rm_<?php echo $i; ?>" style="display:none;" src="images/wpspin_light.gif" alt="Loading" /></span>
  1767.             <span class="sidebar_gen_Text"><?php echo $sidebar_gen; ?></span>
  1768.  
  1769.             <input id="<?php echo 'sidebar_generator_'.$i ?>" type="hidden" name="<?php echo 'sidebar_generator_'.$i ?>" value="<?php echo $sidebar_gen; ?>" />
  1770.         </div>
  1771.     <?php $i++;  
  1772.     }
  1773.     } else {
  1774.         echo 'You still have no sidebars';
  1775.     }
  1776.    
  1777.  
  1778.     }
  1779.     ?>
  1780.                     </div><!-- .block_separator -->
  1781.  
  1782.                 </div><!-- #your-sidebars-tab -->
  1783.  
  1784.                 <div id="associate-sidebars-tab">
  1785.                     <div class="block_separator">
  1786.                         <label>To associate a sidebar to the posts page, click &quot;Posts page -&gt; Sidebar&quot;</label>
  1787.                     </div><!-- .block_separator -->
  1788.  
  1789.                     <div class="block_separator">
  1790.                         <label for="pix_sidebar_posts">Associate a sidebar to all the POSTS</label>
  1791.                         <select name="pix_sidebar_posts" id="pix_sidebar_posts" class="select_sidebar">
  1792.                             <option<?php if (get_pix_option('pix_sidebar_posts') == 'None') { echo ' selected="selected"'; } ?>>None</option>
  1793.                         <?php
  1794.                         $sidebars = sidebar_generator_pix::get_sidebars();
  1795.                         if(is_array($sidebars) && !empty($sidebars)){
  1796.                             foreach($sidebars as $sidebar){ ?>
  1797.                                 <option<?php if (get_pix_option('pix_sidebar_posts') == $sidebar) { echo ' selected="selected"'; } ?>><?php echo $sidebar; ?></option>
  1798.                             <?php }
  1799.                         }
  1800.                         ?>
  1801.                         </select>
  1802.                         <small>Then you can select a different sidebar for each single post directly by its admin panel</small>
  1803.                     </div><!-- .block_separator -->
  1804.  
  1805.                     <div class="block_separator">
  1806.                         <label for="pix_sidebar_pages">Associate a sidebar to all the PAGES</label>
  1807.                         <select name="pix_sidebar_pages" id="pix_sidebar_pages" class="select_sidebar">
  1808.                             <option<?php if (get_pix_option('pix_sidebar_pages') == 'None') { echo ' selected="selected"'; } ?>>None</option>
  1809.                         <?php
  1810.                         $sidebars = sidebar_generator_pix::get_sidebars();
  1811.                         if(is_array($sidebars) && !empty($sidebars)){
  1812.                             foreach($sidebars as $sidebar){ ?>
  1813.                                 <option<?php if (get_pix_option('pix_sidebar_pages') == $sidebar) { echo ' selected="selected"'; } ?>><?php echo $sidebar; ?></option>
  1814.                             <?php }
  1815.                         }
  1816.                         ?>
  1817.                         </select>
  1818.                         <small>Then you can select a different sidebar for each single page directly by its admin panel</small>
  1819.                     </div><!-- .block_separator -->
  1820.  
  1821.                     <div class="block_separator">
  1822.                         <label for="pix_sidebar_categories">Associate a sidebar to all the CATEGORY pages</label>
  1823.                         <select name="pix_sidebar_categories" id="pix_sidebar_categories" class="select_sidebar">
  1824.                             <option<?php if (get_pix_option('pix_sidebar_categories') == 'None') { echo ' selected="selected"'; } ?>>None</option>
  1825.                         <?php
  1826.                         $sidebars = sidebar_generator_pix::get_sidebars();
  1827.                         if(is_array($sidebars) && !empty($sidebars)){
  1828.                             foreach($sidebars as $sidebar){ ?>
  1829.                                 <option<?php if (get_pix_option('pix_sidebar_categories') == $sidebar) { echo ' selected="selected"'; } ?>><?php echo $sidebar; ?></option>
  1830.                             <?php }
  1831.                         }
  1832.                         ?>
  1833.                         </select>
  1834.                         <small>Then you can select a different sidebar for each single category page by clicking &quot;Blog -&gt; Categories&quot;</small>
  1835.                     </div><!-- .block_separator -->
  1836.  
  1837.                     <div class="block_separator">
  1838.                         <label for="pix_sidebar_taxonomies">Associate a sidebar to all the PORTFOLIO pages</label>
  1839.                         <select name="pix_sidebar_taxonomies" id="pix_sidebar_taxonomies" class="select_sidebar">
  1840.                             <option<?php if (get_pix_option('pix_sidebar_taxonomies') == 'None') { echo ' selected="selected"'; } ?>>None</option>
  1841.                         <?php
  1842.                         $sidebars = sidebar_generator_pix::get_sidebars();
  1843.                         if(is_array($sidebars) && !empty($sidebars)){
  1844.                             foreach($sidebars as $sidebar){ ?>
  1845.                                 <option<?php if (get_pix_option('pix_sidebar_taxonomies') == $sidebar) { echo ' selected="selected"'; } ?>><?php echo $sidebar; ?></option>
  1846.                             <?php }
  1847.                         }
  1848.                         ?>
  1849.                         </select>
  1850.                         <small>Then you can select a different sidebar for each single portfolio page by clicking &quot;Delight -&gt; Portfolio&quot;</small>
  1851.                     </div><!-- .block_separator -->
  1852.  
  1853.                     <div class="block_separator">
  1854.                         <label for="pix_sidebar_archives">Associate a sidebar to all the ARCHIVE pages</label>
  1855.                         <select name="pix_sidebar_archives" id="pix_sidebar_archives" class="select_sidebar">
  1856.                             <option<?php if (get_pix_option('pix_sidebar_archives') == 'None') { echo ' selected="selected"'; } ?>>None</option>
  1857.                         <?php
  1858.                         $sidebars = sidebar_generator_pix::get_sidebars();
  1859.                         if(is_array($sidebars) && !empty($sidebars)){
  1860.                             foreach($sidebars as $sidebar){ ?>
  1861.                                 <option<?php if (get_pix_option('pix_sidebar_archives') == $sidebar) { echo ' selected="selected"'; } ?>><?php echo $sidebar; ?></option>
  1862.                             <?php }
  1863.                         }
  1864.                         ?>
  1865.                         </select>
  1866.                     </div><!-- .block_separator -->
  1867.  
  1868.                     <div class="block_separator">
  1869.                         <label for="pix_sidebar_404">Associate a sidebar to the 404 page</label>
  1870.                         <select name="pix_sidebar_404" id="pix_sidebar_404" class="select_sidebar">
  1871.                             <option<?php if (get_pix_option('pix_sidebar_404') == 'None') { echo ' selected="selected"'; } ?>>None</option>
  1872.                         <?php
  1873.                         $sidebars = sidebar_generator_pix::get_sidebars();
  1874.                         if(is_array($sidebars) && !empty($sidebars)){
  1875.                             foreach($sidebars as $sidebar){ ?>
  1876.                                 <option<?php if (get_pix_option('pix_sidebar_404') == $sidebar) { echo ' selected="selected"'; } ?>><?php echo $sidebar; ?></option>
  1877.                             <?php }
  1878.                         }
  1879.                         ?>
  1880.                         </select>
  1881.                     </div><!-- .block_separator -->
  1882.  
  1883.                     <div class="block_separator">
  1884.                         <label for="pix_sidebar_search">Associate a sidebar to the SEARCH RESULTS page</label>
  1885.                         <select name="pix_sidebar_search" id="pix_sidebar_search" class="select_sidebar">
  1886.                             <option<?php if (get_pix_option('pix_sidebar_search') == 'None') { echo ' selected="selected"'; } ?>>None</option>
  1887.                         <?php
  1888.                         $sidebars = sidebar_generator_pix::get_sidebars();
  1889.                         if(is_array($sidebars) && !empty($sidebars)){
  1890.                             foreach($sidebars as $sidebar){ ?>
  1891.                                 <option<?php if (get_pix_option('pix_sidebar_search') == $sidebar) { echo ' selected="selected"'; } ?>><?php echo $sidebar; ?></option>
  1892.                             <?php }
  1893.                         }
  1894.                         ?>
  1895.                         </select>
  1896.                     </div><!-- .block_separator -->
  1897.  
  1898.                 </div><!-- #associate-sidebars-tab -->
  1899.                     <input name="save" type="submit" value="&nbsp;" class="input-save" />
  1900.                     <input type="hidden" name="action" value="save" />
  1901.                 </form>
  1902.             </div><!-- #sidebar-tab -->
  1903.  
  1904.            
  1905.             <div id="contact-tab">
  1906.                 <ul>
  1907.                     <li><a href="#your-form-tab">Admin your forms</a></li>
  1908.                      <?php
  1909.  
  1910.                         $i = 0;
  1911.                         $pix_array_your_forms = get_pix_option('pix_array_your_forms_');
  1912.                         while($i<count($pix_array_your_forms)){
  1913.                             echo '<li><a href="#'.sanitize_title($pix_array_your_forms[$i]).'_form_builder">'.$pix_array_your_forms[$i].'</a></li>';
  1914.                             $i++;
  1915.                         }
  1916.                     ?>
  1917.                 </ul>
  1918.                 <form method="post">
  1919.                 <div id="your-form-tab">
  1920.                     <div class="block_separator">
  1921.                         <label>
  1922.                             Your forms
  1923.                             <small>Be always sure to use different names for your forms.<br>
  1924.                             N.B.: only letters and numbers are allowed</small>
  1925.                         </label>
  1926.                         <div class="added_forms_div">
  1927.                             <a href="#" id="add_a_form">&nbsp;</a><br>
  1928.  
  1929.  
  1930.                              <?php
  1931.                                 $i = 0;
  1932.                                 $pix_array_your_forms = get_pix_option('pix_array_your_forms_');
  1933.                                 while($i<count($pix_array_your_forms)){
  1934.                                     echo '<div class="added_form" id="added_form_'.$i.'"><input id="'.sanitize_title($pix_array_your_forms[$i]).'" name="pix_array_your_forms_[' . $i . ']" type="text" value="'.$pix_array_your_forms[$i].'" style="width:390px; float:left;" /><a href="#" class="button-secondary remove alignright" style="margin-top:4px">Remove</a></div><div class="clear"></div>';
  1935.                                     $i++;
  1936.                                 }
  1937.                             ?>
  1938.                            
  1939.                         </div><!-- .form_added_div -->
  1940.                     </div><!-- .block_separator -->
  1941.  
  1942.                     <div class="block_separator" style="display:none;">
  1943.                         Prova
  1944.                     </div><!-- .block_separator -->
  1945.  
  1946.                 </div><!-- #your-sidebars-tab -->
  1947.                 <?php
  1948.                     $i = 0;
  1949.                     $pix_array_your_forms = get_pix_option('pix_array_your_forms_');
  1950.                     while($i<count($pix_array_your_forms)){
  1951.                         echo '<div id="'.sanitize_title($pix_array_your_forms[$i]).'_form_builder" class="form_builder">
  1952.                             <div class="block_separator">
  1953.                         <label>'.$pix_array_your_forms[$i].'</label>
  1954.                         If you want to have this form inside a page or post, use the button you find on the editor, or copy and paste this shortcode:<br><strong style="background:#fff; padding:2px 1px;">[pix_contact_form form="'.sanitize_title($pix_array_your_forms[$i]).'"]</strong><br><br>';
  1955.                         $i2 = 0;
  1956.                         $pix_array_your_field = get_pix_option('pix_array_'.sanitize_title($pix_array_your_forms[$i]).'_fields_');
  1957.                         ?>
  1958.                         Recipient address:
  1959.                         <input type="text" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_recipient" value="<?php if(get_pix_option('pix_array_'.sanitize_title($pix_array_your_forms[$i]).'_recipient')==''){ echo get_pix_option('admin_email'); } else { echo get_pix_option('pix_array_'.sanitize_title($pix_array_your_forms[$i]).'_recipient'); } ?>">
  1960.                         Email subject:
  1961.                         <input type="text" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_subject" value="<?php if(get_pix_option('pix_array_'.sanitize_title($pix_array_your_forms[$i]).'_subject')==''){ echo 'Email from '.stripslashes(get_pix_option( 'pix_site_title' )); } else { echo get_pix_option('pix_array_'.sanitize_title($pix_array_your_forms[$i]).'_subject'); } ?>">
  1962.                         Success:
  1963.                         <textarea name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_issuccess"><?php if(get_pix_option('pix_array_'.sanitize_title($pix_array_your_forms[$i]).'_issuccess')==''){ ?><strong>Thank you!</strong> We received your message.<?php } else { echo get_pix_option('pix_array_'.sanitize_title($pix_array_your_forms[$i]).'_issuccess'); } ?></textarea>
  1964.                         Unuccess:
  1965.                         <textarea name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_unsuccess"><?php if(get_pix_option('pix_array_'.sanitize_title($pix_array_your_forms[$i]).'_unsuccess')==''){ ?><strong>Sorry, unexpected error.</strong> Please try again later.<?php } else { echo get_pix_option('pix_array_'.sanitize_title($pix_array_your_forms[$i]).'_unsuccess'); } ?></textarea>
  1966.                         Send button:
  1967.                         <input type="text" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_button" value="<?php if(get_pix_option('pix_array_'.sanitize_title($pix_array_your_forms[$i]).'_button')==''){ ?>Send<?php } else { echo get_pix_option('pix_array_'.sanitize_title($pix_array_your_forms[$i]).'_button'); } ?>"><br>
  1968.                         <div class="sorting_fields">
  1969.                         <a href="#" class="add_a_field">&nbsp;</a>
  1970.                         <?php
  1971.                             while ($i2<count($pix_array_your_field)){ ?>
  1972.                                 <div id="added_field<?php echo $i; ?>_<?php echo $i2; ?>" class="added_field">
  1973.                                 <div class="handle"></div>
  1974.                                 <div style="float:left; width:190px"><select name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][0]">
  1975.                                     <option value="2"<?php if($pix_array_your_field[$i2][0]=='2') { ?> selected="selected"<?php } ?>>Text</option>
  1976.                                     <option value="3"<?php if($pix_array_your_field[$i2][0]=='3') { ?> selected="selected"<?php } ?>>Email</option>
  1977.                                     <option value="4"<?php if($pix_array_your_field[$i2][0]=='4') { ?> selected="selected"<?php } ?>>Alternative mail</option>
  1978.                                     <option value="5"<?php if($pix_array_your_field[$i2][0]=='5') { ?> selected="selected"<?php } ?>>Textarea</option>
  1979.                                     <option value="6"<?php if($pix_array_your_field[$i2][0]=='6') { ?> selected="selected"<?php } ?>>Select</option>
  1980.                                     <option value="10"<?php if($pix_array_your_field[$i2][0]=='10') { ?> selected="selected"<?php } ?>>Multiple selection select</option>
  1981.                                     <option value="11"<?php if($pix_array_your_field[$i2][0]=='11') { ?> selected="selected"<?php } ?>>Checkbox</option>
  1982.                                     <option value="12"<?php if($pix_array_your_field[$i2][0]=='12') { ?> selected="selected"<?php } ?>>Radio button</option>
  1983.                                     <option value="7"<?php if($pix_array_your_field[$i2][0]=='7') { ?> selected="selected"<?php } ?>>Period (from)</option>
  1984.                                     <option value="13"<?php if($pix_array_your_field[$i2][0]=='13') { ?> selected="selected"<?php } ?>>Period (to)</option>
  1985.                                     <option value="8"<?php if($pix_array_your_field[$i2][0]=='8') { ?> selected="selected"<?php } ?>>Captcha</option>
  1986.                                 </select>
  1987.                                 <div class="added_field_2 added_field_4 added_field_5 added_field_6 added_field_7 added_field_10 added_field_11 added_field_12 added_field_13 toHide" style="display:none">
  1988.                                     <label for="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][1]">Required:</label>
  1989.                                     <input type="hidden" value="0" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][1]">                        
  1990.                                     <input type="checkbox" value="required" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][1]"<?php if($pix_array_your_field[$i2][1]=='required') { ?> checked="checked"<?php } ?>>
  1991.                                 </div>
  1992.                                 <a href="#" class="button-secondary remove">Remove</a>
  1993.                                 <div class="added_field_2 added_field_4 added_field_5 added_field_6 added_field_7 added_field_10 added_field_11 added_field_12 added_field_13 toHide" style="display:none; clear:left; padding-top:5px">
  1994.                                     <label for="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][9]">Name:</label>
  1995.                                     <input type="text" style="border-color:#b2b2a1; width:140px; float:right" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][9]"  value="<?php if($pix_array_your_field[$i2][9]==''){ ?>Field<?php echo $i2; ?><?php } else { echo stripslashes($pix_array_your_field[$i2][9]); } ?>">
  1996.                                 </div>
  1997.                                 <div class="added_field_3 added_field_8 alert toHide" style="display: none">Use this field only once in a form!</div>
  1998.                                 </div>
  1999.                                 <textarea class="added_field_2 toHide" style="display:none" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][2]"><?php if($pix_array_your_field[$i2][2]==''){ ?><label>Name:</label>
  2000. [pix_text name="Field<?php echo $i2; ?>"]<?php } else { echo stripslashes($pix_array_your_field[$i2][2]); } ?></textarea>
  2001.                                 <textarea class="added_field_3 toHide" style="display:none" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][3]"><?php if($pix_array_your_field[$i2][3]==''){ ?><label>Email:</label>
  2002. [pix_email]<?php } else { echo stripslashes($pix_array_your_field[$i2][3]); } ?></textarea>
  2003.                                 <textarea class="added_field_4 toHide" style="display:none" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][4]"><?php if($pix_array_your_field[$i2][4]==''){ ?><label>Alternative email:</label>
  2004. [pix_alt_email name="Field<?php echo $i2; ?>"]<?php } else { echo stripslashes($pix_array_your_field[$i2][4]); } ?></textarea>
  2005.                                 <textarea class="added_field_5 toHide" style="display:none" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][5]"><?php if($pix_array_your_field[$i2][5]==''){ ?><label>Message:</label>
  2006. [pix_textarea name="Field<?php echo $i2; ?>"]<?php } else { echo stripslashes($pix_array_your_field[$i2][5]); } ?></textarea>
  2007.                                 <textarea class="added_field_6 toHide" style="display:none" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][6]"><?php if($pix_array_your_field[$i2][6]==''){ ?><label>Select an option:</label>
  2008. [pix_select name="Field<?php echo $i2; ?>"][pix_option][/pix_option][pix_option value="first"]First[/pix_option][pix_option value="second"]Second[/pix_option][/pix_select]<?php } else { echo stripslashes($pix_array_your_field[$i2][6]); } ?></textarea>
  2009.                                 <textarea class="added_field_10 toHide" style="display:none" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][10]"><?php if($pix_array_your_field[$i2][10]==''){ ?><label>Select an option:</label>
  2010. [pix_select name="Field<?php echo $i2; ?>" multiple="multiple" height="50"][pix_option][/pix_option][pix_option value="first"]First[/pix_option][pix_option value="second"]Second[/pix_option][/pix_select]<?php } else { echo stripslashes($pix_array_your_field[$i2][10]); } ?></textarea>
  2011.                                 <textarea class="added_field_11 toHide" style="display:none" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][11]"><?php if($pix_array_your_field[$i2][11]==''){ ?><label>Check this box:</label>
  2012. [pix_checkbox name="Field<?php echo $i2; ?>"]<?php } else { echo stripslashes($pix_array_your_field[$i2][11]); } ?></textarea>
  2013.                                 <textarea class="added_field_12 toHide" style="display:none" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][12]"><?php if($pix_array_your_field[$i2][12]==''){ ?><label>Radio button:</label>
  2014. [pix_radio name="Field<?php echo $i2; ?>" value="First button"][pix_radio name="Field<?php echo $i2; ?>" value="Second button"]<?php } else { echo stripslashes($pix_array_your_field[$i2][12]); } ?></textarea>
  2015.                                 <textarea class="added_field_7 toHide" style="display:none" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][7]"><?php if($pix_array_your_field[$i2][7]==''){ ?><label>Pediod from:</label>
  2016. [pix_period_from name="From<?php echo $i2; ?>"]<?php } else { echo stripslashes($pix_array_your_field[$i2][7]); } ?></textarea>
  2017.                                 <textarea class="added_field_13 toHide" style="display:none" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][13]"><?php if($pix_array_your_field[$i2][13]==''){ ?><label>Pediod to:</label>
  2018. [pix_period_to name="To<?php echo $i2; ?>"]<?php } else { echo stripslashes($pix_array_your_field[$i2][13]); } ?></textarea>
  2019.                                 <textarea class="added_field_8 toHide" style="display:none" name="pix_array_<?php echo sanitize_title($pix_array_your_forms[$i]); ?>_fields_[<?php echo $i2; ?>][8]"><?php if($pix_array_your_field[$i2][8]==''){ ?><label>Captcha:</label>
  2020. <div class="captchaCont">[pix_captcha_img] [pix_captcha_input]</div><?php } else { echo stripslashes($pix_array_your_field[$i2][8]); } ?></textarea>
  2021.                                 </div>
  2022.                             <?php
  2023.                                 $i2++;
  2024.                             }
  2025.                         ?>
  2026.                         </div><!-- .sorting -->
  2027.                         <?php
  2028.                         echo '</div><!-- .block_separator -->
  2029.                         </div><!-- #'.sanitize_title($pix_array_your_forms[$i][0]).' -->';
  2030.                         $i++;
  2031.                     }
  2032.                 ?>
  2033.                     <input name="save" type="submit" value="&nbsp;" class="input-save" />
  2034.                     <input type="hidden" name="action" value="save" />
  2035.                 </form>
  2036.             </div><!-- #contact-tab -->
  2037.  
  2038.             <div id="blog-tab">
  2039.                 <ul>
  2040.                     <li><a href="#posts-tab">Posts</a></li>
  2041.                     <li><a href="#pages-tab">Pages</a></li>
  2042.                     <li><a href="#archives-tab">Archive pages</a></li>
  2043.                     <?php $categories = get_categories();
  2044.                         $category_ids = array();
  2045.                         foreach ($categories as $category) {
  2046.                             array_push($category_ids, $category->cat_ID);
  2047.                         }
  2048.                         if(get_pix_option('pix_category_hack')=='all' || get_pix_option('pix_category_hack')=='' || (is_array(get_pix_option('pix_category_hack')) && in_array('all', get_pix_option('pix_category_hack')))) {
  2049.                             $pix_category_hack = $category_ids;
  2050.                         } else {
  2051.                             $pix_category_hack = get_pix_option('pix_category_hack');
  2052.                         }
  2053.                         foreach ($categories as $category) { if (in_array($category->cat_ID, $pix_category_hack)) {  ?>
  2054.                         <li><a href="#category-tab-<?php echo $category->cat_ID; ?>"><?php echo $category->cat_name; ?></a></li>
  2055.                     <?php } } ?>
  2056.                     <li><a href="#searchpage-tab">Search result page</a></li>
  2057.                     <li><a href="#404-tab">404 page</a></li>
  2058.                 </ul>
  2059.                
  2060.                 <form method="post">
  2061.                 <div id="posts-tab">
  2062.                     <div class="block_separator">
  2063.                         <label for="pix_show_postmetadata">Show post meta data section in single posts</label>
  2064.                         <input type="hidden" value="0" name="pix_show_postmetadata">
  2065.                         <input type="checkbox" value="show" name="pix_show_postmetadata"<?php if(get_pix_option('pix_show_postmetadata')=="show") { ?> checked="checked"<?php } ?>>
  2066.                         <div class="clear"></div>
  2067.  
  2068.                         <label for="pix_archive_show_postmetadata">Show post meta data section in archive pages</label>
  2069.                         <input type="hidden" value="0" name="pix_archive_show_postmetadata">
  2070.                         <input type="checkbox" value="show" name="pix_archive_show_postmetadata"<?php if(get_pix_option('pix_archive_show_postmetadata')=="show") { ?> checked="checked"<?php } ?>>
  2071.                         <div class="clear"></div>
  2072.  
  2073.                         <label for="pix_postmetadata_comments">Display the comments in the post meta data section</label>
  2074.                         <input type="hidden" value="0" name="pix_postmetadata_comments">
  2075.                         <input type="checkbox" value="show" name="pix_postmetadata_comments"<?php if(get_pix_option('pix_postmetadata_comments')=="show") { ?> checked="checked"<?php } ?>>
  2076.                         <div class="clear"></div>
  2077.  
  2078.                         <label for="pix_prev_next_posts">Show prev/next post links below the posts</label>
  2079.                         <input type="hidden" value="0" name="pix_prev_next_posts">
  2080.                         <input type="checkbox" value="show" name="pix_prev_next_posts"<?php if(get_pix_option('pix_prev_next_posts')=="show") { ?> checked="checked"<?php } ?>>
  2081.                         <div class="clear"></div>
  2082.  
  2083.                         <label for="pix_show_related_items">Show related items below the posts</label>
  2084.                         <input type="hidden" value="0" name="pix_show_related_items">
  2085.                         <input type="checkbox" value="show" name="pix_show_related_items"<?php if(get_pix_option('pix_show_related_items')=="show") { ?> checked="checked"<?php } ?>>
  2086.                         <div class="clear"></div>
  2087.                        
  2088.                         <label for="pix_what_related_items" >What to show in related posts</label>
  2089.                         <select id="pix_what_related_items" name="pix_what_related_items">
  2090.                             <option value="excerpt"<?php if (get_pix_option('pix_what_related_items') == 'excerpt') { echo ' selected="selected"'; } ?>>Excerpt only</option>
  2091.                             <option value="thumbnail"<?php if (get_pix_option('pix_what_related_items') == 'thumbnail') { echo ' selected="selected"'; } ?>>Thumbnail and excerpt</option>
  2092.                         </select>
  2093.  
  2094.                         <div class="slider_div">
  2095.                             <label for="pix_length_related_items">How many words do you want to show in the excerpt</label>
  2096.                             <input type="text" id="pix_length_related_items" name="pix_length_related_items" class="slider_input" value="<?php echo get_pix_option('pix_length_related_items'); ?>" />
  2097.                             <div class="slider_cursor"></div>
  2098.                         </div><!-- .slider_div -->
  2099.                         <div class="clear"></div>
  2100.    
  2101.                         <label for="pix_post_show_share_section">Show share section in posts</label>
  2102.                         <input type="hidden" value="0" name="pix_post_show_share_section">
  2103.                         <input type="checkbox" value="show" name="pix_post_show_share_section"<?php if(get_pix_option('pix_post_show_share_section')=="show") { ?> checked="checked"<?php } ?>>
  2104.                         <div class="clear"></div>
  2105.  
  2106.                        
  2107.                         <label for="pix_post_share_type" >Share section type</label>
  2108.                         <select id="pix_post_share_type" name="pix_post_share_type">
  2109.                             <option value="classic"<?php if (get_pix_option('pix_post_share_type') == 'classic') { echo ' selected="selected"'; } ?>>Simple icons</option>
  2110.                             <option value="counter"<?php if (get_pix_option('pix_post_share_type') == 'counter') { echo ' selected="selected"'; } ?>>Official icons with counter</option>
  2111.                         </select>
  2112.                         <small>"Simple icons": Twitter, Facebook, Delicious, Digg, LinkedIn, StumbleUpon<br>
  2113.                         "Official icons with counter": Twitter, Facebook, Google+</small>
  2114.                         <div class="clear"></div>
  2115.  
  2116.                     </div><!-- .block_separator -->
  2117.                 </div><!-- #posts-tab -->
  2118.  
  2119.                 <div id="pages-tab">
  2120.                     <div class="block_separator">
  2121.                         <label for="pix_page_show_share_section">Show share section in pages</label>
  2122.                         <input type="hidden" value="0" name="pix_page_show_share_section">
  2123.                         <input type="checkbox" value="show" name="pix_page_show_share_section"<?php if(get_pix_option('pix_page_show_share_section')=="show") { ?> checked="checked"<?php } ?>>
  2124.                         <div class="clear"></div>
  2125.                        
  2126.                         <label for="pix_page_share_type" >Share section type</label>
  2127.                         <select id="pix_page_share_type" name="pix_page_share_type">
  2128.                             <option value="classic"<?php if (get_pix_option('pix_page_share_type') == 'classic') { echo ' selected="selected"'; } ?>>Simple icons</option>
  2129.                             <option value="counter"<?php if (get_pix_option('pix_page_share_type') == 'counter') { echo ' selected="selected"'; } ?>>Official icons with counter</option>
  2130.                         </select>
  2131.                         <small>"Simple icons": Twitter, Facebook, Delicious, Digg, LinkedIn, StumbleUpon<br>
  2132.                         "Official icons with counter": Twitter, Facebook, Google+</small>
  2133.                         <div class="clear"></div>
  2134.  
  2135.  
  2136.                        
  2137.                     </div><!-- .block_separator -->
  2138.                 </div><!-- #posts-tab -->
  2139.  
  2140.                 <div id="archives-tab">
  2141.                     <div class="block_separator">
  2142.  
  2143.                         <label for="pix_archive_sliding_page" >Sliding page</label>
  2144.                         <select id="pix_archive_sliding_page" name="pix_archive_sliding_page">
  2145.                             <option value="default"<?php if (get_pix_option('pix_archive_sliding_page') == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2146.                             <option value="open"<?php if (get_pix_option('pix_archive_sliding_page') == 'open') { echo ' selected="selected"'; } ?>>Open on load</option>
  2147.                             <option value="closed"<?php if (get_pix_option('pix_archive_sliding_page') == 'closed') { echo ' selected="selected"'; } ?>>Closed on load</option>
  2148.                             <option value="always"<?php if (get_pix_option('pix_archive_sliding_page') == 'always') { echo ' selected="selected"'; } ?>>Always open</option>
  2149.                         </select>
  2150.  
  2151.                         <label for="pix_archive_sidebar" >Show/hide sidebar and its position</label>
  2152.                         <select id="pix_archive_sidebar" name="pix_archive_sidebar" class="toggler">
  2153.                             <option value="default"<?php if (get_pix_option('pix_archive_sidebar') == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2154.                             <option value="rightsidebar"<?php if (get_pix_option('pix_archive_sidebar') == 'rightsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the right</option>
  2155.                             <option value="leftsidebar"<?php if (get_pix_option('pix_archive_sidebar') == 'leftsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the left</option>
  2156.                             <option value="nosidebar"<?php if (get_pix_option('pix_archive_sidebar') == 'nosidebar') { echo ' selected="selected"'; } ?>>Hide sidebar</option>
  2157.                         </select>
  2158.                    
  2159.                         <div class="toggle pix_archive_sidebar" id="pix_archive_sidebar" data-type="nosidebar">
  2160.                             <label for="pix_archive_maincolumn" >
  2161.                                 Main column width and position
  2162.                             </label>
  2163.                             <select id="pix_archive_maincolumn" name="pix_archive_maincolumn">
  2164.                                 <option value="left"<?php if (get_pix_option('pix_archive_maincolumn') == 'left') { echo ' selected="selected"'; } ?>>Narrow left column</option>
  2165.                                 <option value="right"<?php if (get_pix_option('pix_archive_maincolumn') == 'right') { echo ' selected="selected"'; } ?>>Narrow right column</option>
  2166.                                 <option value="wide"<?php if (get_pix_option('pix_archive_maincolumn') == 'wide') { echo ' selected="selected"'; } ?>>Wide column</option>
  2167.                             </select>
  2168.                         </div><!-- .toggle -->
  2169.                        
  2170.                         <label for="pix_archive_slide">Select the background of your archive page</label>
  2171.                         <select id="pix_archive_slide" name="pix_archive_slide" class="toggler">
  2172.                             <option value="default"<?php if (get_pix_option('pix_archive_slide') == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2173.                             <option value="slideshow"<?php if (get_pix_option('pix_archive_slide') == 'slideshow') { echo ' selected="selected"'; } ?>>Slideshow</option>
  2174.                             <option value="single"<?php if (get_pix_option('pix_archive_slide') == 'single') { echo ' selected="selected"'; } ?>>Single image</option>
  2175.                             <option value="video"<?php if (get_pix_option('pix_archive_slide') == 'video') { echo ' selected="selected"'; } ?>>Video</option>
  2176.                             <option value="googlemap"<?php if (get_pix_option('pix_archive_slide') == 'googlemap') { echo ' selected="selected"'; } ?>>Google Map</option>
  2177.                             <option value="none"<?php if (get_pix_option('pix_archive_slide') == 'none') { echo ' selected="selected"'; } ?>>None</option>
  2178.                         </select>
  2179.  
  2180.                         <div class="toggle pix_archive_slide" id="pix_archive_slide" data-type="slideshow">
  2181.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2182.                             <div class="sorting_admin">
  2183.                             <br>
  2184.                             <a href="#" class="add" id="add_a_slider">&nbsp;</a>
  2185.                             <?php
  2186.    
  2187.                                 $i = 0;
  2188.                                 $pix_archive_slide = get_pix_option('pix_array_archive_slide_');
  2189.                                 while($i<count($pix_archive_slide)){
  2190.                                     if($pix_archive_slide[$i]=='') { $style=' style="display:none"'; } else { $style=''; }
  2191.                                     echo '<div id="pix_array_archive_slide_'.$i.'" class="rm_upload_image">
  2192.                                    <div class="handle"></div>
  2193.                                    <div class="image_thumb"><img src="'.get_pix_thumb($pix_archive_slide[$i], 'exTh').'" alt="Preview"'. $style .' /></div>
  2194.                                    <input name="pix_array_archive_slide_['.$i.']" type="text" value="'.$pix_archive_slide[$i].'">
  2195.                                    <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  2196.                                    <a href="#" class="button-secondary remove">Remove</a></div>';
  2197.                                     $i++;
  2198.                                 }
  2199.                             ?>
  2200.                             </div><!-- .sorting -->
  2201.                         </div><!-- .toggle -->
  2202.  
  2203.                         <div class="toggle pix_archive_slide" id="pix_archive_slide" data-type="single">
  2204.                             <br>
  2205.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2206.                            
  2207.                             <div id="pix_archive_single" class="rm_upload_image">
  2208.                                 <?php if(get_pix_option('pix_archive_single')=='') { $style=' style="display:none"'; } else { $style=''; } ?>
  2209.                                 <div class="image_thumb"><img src="<?php echo get_pix_thumb(get_pix_option('pix_archive_single'), 'exTh'); ?>" alt="Preview"<?php echo $style; ?> /></div>
  2210.                                 <input name="pix_archive_single" type="text" value="<?php echo get_pix_option('pix_archive_single'); ?>">
  2211.                                 <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  2212.                             </div><!-- .rm_upload_image -->
  2213.                         </div><!-- .toggle -->
  2214.  
  2215.                         <div class="toggle pix_archive_slide" id="pix_archive_slide" data-type="video">
  2216.                             <label for="pix_archive_video">
  2217.                                 Upload your video
  2218.                                 <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadvideo.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2219.                             </label>
  2220.                            
  2221.                             <div class="rm_upload_video">
  2222.                                 <input name="pix_archive_video" type="text" value="<?php echo get_pix_option('pix_archive_video'); ?>"><br>
  2223.                                 <a class="button-secondary pix_upload_video_button" href="#">Upload Video</a>
  2224.                             </div><!-- .rm_upload_image -->
  2225.                         </div><!-- .toggle -->
  2226.  
  2227.                         <div class="toggle pix_archive_slide" id="pix_archive_slide" data-type="video">
  2228.                             <label for="pix_archive_video_start">
  2229.                                 Auto start for your video
  2230.                             </label>
  2231.                             <input type="hidden" value="0" name="pix_archive_video_start">                        
  2232.                             <input type="checkbox" value="true" name="pix_archive_video_start"<?php if(get_pix_option('pix_archive_video_start')=="true") { ?> checked="checked"<?php } ?>>
  2233.                         </div><!-- .toggle -->
  2234.  
  2235.                         <div class="clear"></div>
  2236.                         <div class="toggle pix_archive_slide" id="pix_archive_slide" data-type="video">
  2237.                             <label for="pix_archive_video_loop">
  2238.                                 Loop for your video
  2239.                             </label>
  2240.                             <input type="hidden" value="0" name="pix_archive_video_loop">                        
  2241.                             <input type="checkbox" value="true" name="pix_archive_video_loop"<?php if(get_pix_option('pix_archive_video_loop')=="true") { ?> checked="checked"<?php } ?>>
  2242.                         </div><!-- .toggle -->
  2243.  
  2244.                         <div class="toggle pix_archive_slide" id="pix_archive_slide" data-type="googlemap">
  2245.                             <label for="pix_archive_googlemap">
  2246.                                 Coordinates <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/googlemap-coords.php" class="pix_tips_ajax topLeft"  data-rel="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/googlemap-coords.php" data-width="520">how can I get them?</a>)</small>
  2247.                             </label>
  2248.                            
  2249.                             <input name="pix_archive_googlemap" type="text" value="<?php echo get_pix_option('pix_archive_googlemap'); ?>">
  2250.    
  2251.    
  2252.                             <div class="slider_div googlemap">
  2253.                                 <label for="pix_archive_googlemap_zoom">Zoom</label>
  2254.                                 <input type="text" id="pix_archive_googlemap_zoom" name="pix_archive_googlemap_zoom" class="slider_input" value="<?php echo get_pix_option('pix_archive_googlemap_zoom'); ?>" />
  2255.                                 <div class="slider_cursor"></div>
  2256.                             </div><!-- .slider_div -->
  2257.                             <div class="clear"></div>
  2258.    
  2259.                             <label for="pix_archive_googlemap_indications">Indications</label>
  2260.                             <textarea name="pix_archive_googlemap_indications" id="pix_archive_googlemap_indications"><?php echo stripslashes(get_pix_option( 'pix_archive_googlemap_indications' )); ?></textarea>
  2261.                              <div class="clear"></div>
  2262.                            
  2263.                             <label for="pix_archive_googlemap_type">Type</label>
  2264.                             <select id="pix_archive_googlemap_type" name="pix_archive_googlemap_type">
  2265.                                 <option value="HYBRID"<?php if (get_pix_option('pix_archive_googlemap_type') == 'HYBRID') { echo ' selected="selected"'; } ?>>hybrid</option>
  2266.                                 <option value="SATELLITE"<?php if (get_pix_option('pix_archive_googlemap_type') == 'SATELLITE') { echo ' selected="selected"'; } ?>>satellite</option>
  2267.                                 <option value="ROADMAP"<?php if (get_pix_option('pix_archive_googlemap_type') == 'ROADMAP') { echo ' selected="selected"'; } ?>>road map</option>
  2268.                                 <option value="TERRAIN"<?php if (get_pix_option('pix_archive_googlemap_type') == 'TERRAIN') { echo ' selected="selected"'; } ?>>terrain</option>
  2269.                             </select>
  2270.  
  2271.                         </div><!-- .toggle -->
  2272.  
  2273.  
  2274.  
  2275.                     </div><!-- .block_separator -->
  2276.  
  2277.                 </div><!-- #archives-tab -->
  2278.                
  2279.                 <?php $categories = get_categories();
  2280.                     foreach ($categories as $category) { if (in_array($category->cat_ID, $category_ids)) {  ?>
  2281.                 <div id="category-tab-<?php echo $category->cat_ID; ?>">
  2282.                     <div class="block_separator">
  2283.                         <?php $pix_array_category = get_pix_option('pix_array_category_'.$category->cat_ID); ?>
  2284.  
  2285.                         <label for="pix_array_category_<?php echo $category->cat_ID; ?>_0" >Sliding page</label>
  2286.                         <select id="pix_array_category_<?php echo $category->cat_ID; ?>_0" name="pix_array_category_<?php echo $category->cat_ID; ?>[0]">
  2287.                             <option value="default"<?php if ($pix_array_category[0] == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2288.                             <option value="open"<?php if ($pix_array_category[0] == 'open') { echo ' selected="selected"'; } ?>>Open on load</option>
  2289.                             <option value="closed"<?php if ($pix_array_category[0] == 'closed') { echo ' selected="selected"'; } ?>>Closed on load</option>
  2290.                             <option value="always"<?php if ($pix_array_category[0] == 'always') { echo ' selected="selected"'; } ?>>Always open</option>
  2291.                         </select>
  2292.  
  2293.                         <label for="pix_array_category_<?php echo $category->cat_ID; ?>_1" >Show/hide sidebar and its position</label>
  2294.                         <select id="pix_array_category_<?php echo $category->cat_ID; ?>_1" name="pix_array_category_<?php echo $category->cat_ID; ?>[1]" class="toggler">
  2295.                             <option value="default"<?php if ($pix_array_category[1] == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2296.                             <option value="rightsidebar"<?php if ($pix_array_category[1] == 'rightsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the right</option>
  2297.                             <option value="leftsidebar"<?php if ($pix_array_category[1] == 'leftsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the left</option>
  2298.                             <option value="nosidebar"<?php if ($pix_array_category[1] == 'nosidebar') { echo ' selected="selected"'; } ?>>Hide sidebar</option>
  2299.                         </select>
  2300.                    
  2301.                         <div class="toggle pix_array_category_<?php echo $category->cat_ID; ?>_1" id="pix_array_category_<?php echo $category->cat_ID; ?>_1" data-type="nosidebar">
  2302.                             <label for="pix_array_category_<?php echo $category->cat_ID; ?>_2" >
  2303.                                 Main column width and position
  2304.                             </label>
  2305.                             <select id="pix_array_category_<?php echo $category->cat_ID; ?>_2" name="pix_array_category_<?php echo $category->cat_ID; ?>[2]">
  2306.                                 <option value="left"<?php if ($pix_array_category[2] == 'left') { echo ' selected="selected"'; } ?>>Narrow left column</option>
  2307.                                 <option value="right"<?php if ($pix_array_category[2] == 'right') { echo ' selected="selected"'; } ?>>Narrow right column</option>
  2308.                                 <option value="wide"<?php if ($pix_array_category[2] == 'wide') { echo ' selected="selected"'; } ?>>Wide column</option>
  2309.                             </select>
  2310.                         </div><!-- .toggle -->
  2311.                        
  2312.                         <label for="pix_array_category_<?php echo $category->cat_ID; ?>_3" >Select a sidebar</label>
  2313.                         <?php
  2314.                         $get_sidebar_options = sidebar_generator_pix::get_sidebars();
  2315.                         if($get_sidebar_options != "") { ?>
  2316.                         <select id="pix_array_category_<?php echo $category->cat_ID; ?>_3" name="pix_array_category_<?php echo $category->cat_ID; ?>[3]">
  2317.                                 <option value="none"<?php if ($pix_array_category[3] == 'none') { echo ' selected="selected"'; } ?>>None</option>
  2318.                         <?php $i=1;
  2319.                        
  2320.                         foreach ($get_sidebar_options as $sidebar_gen) { ?>
  2321.                                 <option value="<?php echo $sidebar_gen; ?>"<?php if ($pix_array_category[3] == $sidebar_gen) { echo ' selected="selected"'; } ?>><?php echo $sidebar_gen; ?></option>
  2322.                         <?php $i++;  
  2323.                         } ?>
  2324.                         </select>
  2325.                         <?php } else {
  2326.                             echo 'You still have no sidebars';
  2327.                         }
  2328.                        
  2329.                         ?>
  2330.  
  2331.                         <div class="clear"></div>
  2332.  
  2333.                         <label for="pix_front_page_seo_title">
  2334.                             Posts page title
  2335.                         </label>
  2336.                          <input name="pix_array_term_seotitle_<?php echo $category->cat_ID; ?>" id="pix_array_term_seotitle_<?php echo $category->cat_ID; ?>" class="pix_title_seo" type="text" value="<?php echo get_pix_option('pix_array_term_seotitle_'.$category->cat_ID); ?>" />
  2337.                          <p></p>
  2338.                          
  2339.                         <div class="clear"></div>
  2340.  
  2341.                         <label for="pix_front_page_seo_description">
  2342.                             Meta description
  2343.                         </label>
  2344.                          <textarea name="pix_array_term_seodescription_<?php echo $category->cat_ID; ?>" id="pix_array_term_seodescription_<?php echo $category->cat_ID; ?>" class="pix_desc_seo"><?php echo get_pix_option('pix_array_term_seodescription_'.$category->cat_ID); ?></textarea>
  2345.                          <p></p>
  2346.  
  2347.                         <div class="clear"></div>
  2348.  
  2349.                         <label for="pix_front_page_seo_keywords">
  2350.                             Meta keywords
  2351.                         </label>
  2352.                          <input name="pix_array_term_seokeywords_<?php echo $category->cat_ID; ?>" id="pix_array_term_seokeywords_<?php echo $category->cat_ID; ?>" type="text" value="<?php echo get_pix_option('pix_array_term_seokeywords_'.$category->cat_ID); ?>" />
  2353.  
  2354.                         <div class="clear"></div>
  2355.  
  2356.                         <label for="pix_array_category_slide_<?php echo $category->cat_ID; ?>">Select the background of your category page</label>
  2357.                         <select id="pix_array_category_slide_<?php echo $category->cat_ID; ?>" name="pix_array_category_slide_<?php echo $category->cat_ID; ?>" class="toggler">
  2358.                             <option value="default"<?php if (get_pix_option('pix_array_category_slide_'. $category->cat_ID) == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2359.                             <option value="slideshow"<?php if (get_pix_option('pix_array_category_slide_'. $category->cat_ID) == 'slideshow') { echo ' selected="selected"'; } ?>>Slideshow</option>
  2360.                             <option value="single"<?php if (get_pix_option('pix_array_category_slide_'. $category->cat_ID) == 'single') { echo ' selected="selected"'; } ?>>Single image</option>
  2361.                             <option value="video"<?php if (get_pix_option('pix_array_category_slide_'. $category->cat_ID) == 'video') { echo ' selected="selected"'; } ?>>Video</option>
  2362.                             <option value="googlemap"<?php if (get_pix_option('pix_array_category_slide_'. $category->cat_ID) == 'googlemap') { echo ' selected="selected"'; } ?>>Google map</option>
  2363.                             <option value="none"<?php if (get_pix_option('pix_array_category_slide_'. $category->cat_ID) == 'none') { echo ' selected="selected"'; } ?>>None</option>
  2364.                         </select>
  2365.  
  2366.                         <div class="toggle pix_array_category_slide_<?php echo $category->cat_ID; ?>" id="pix_array_category_slide_<?php echo $category->cat_ID; ?>" data-type="slideshow">
  2367.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2368.                             <div class="sorting_admin">
  2369.                             <br>
  2370.                             <a href="#" class="add" id="add_a_slider">&nbsp;</a>
  2371.                             <?php
  2372.    
  2373.                                 $i = 0;
  2374.                                 $pix_array_category_slide = get_pix_option('pix_array_category_slide_'. $category->cat_ID.'_');
  2375.                                 while($i<count($pix_array_category_slide)){
  2376.                                     if($pix_array_category_slide[$i]=='') { $style=' style="display:none"'; } else { $style=''; }
  2377.                                     echo '<div id="pix_array_category_slide_'. $category->cat_ID.'_'.$i.'" class="rm_upload_image">
  2378.                                    <div class="handle"></div>
  2379.                                    <div class="image_thumb"><img src="'.get_pix_thumb($pix_array_category_slide[$i], 'exTh').'" alt="Preview"'. $style .' /></div>
  2380.                                    <input name="pix_array_category_slide_'. $category->cat_ID.'_['.$i.']" type="text" value="'.$pix_array_category_slide[$i].'">
  2381.                                    <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  2382.                                    <a href="#" class="button-secondary remove">Remove</a></div>';
  2383.                                     $i++;
  2384.                                 }
  2385.                             ?>
  2386.                             </div><!-- .sorting -->
  2387.                         </div><!-- .toggle -->
  2388.  
  2389.                         <div class="toggle pix_array_category_slide_<?php echo $category->cat_ID; ?>" id="pix_array_category_slide_<?php echo $category->cat_ID; ?>" data-type="single">
  2390.                             <br>
  2391.                            
  2392.                             <div id="pix_array_category_single_<?php echo $category->cat_ID; ?>" class="rm_upload_image">
  2393.                                 <?php if(get_pix_option('pix_array_category_single_'.$category->cat_ID)=='') { $style=' style="display:none"'; } else { $style=''; } ?>
  2394.                                 <div class="image_thumb"><img src="<?php echo get_pix_thumb(get_pix_option('pix_array_category_single_'.$category->cat_ID), 'exTh'); ?>" alt="Preview"<?php echo $style; ?> /></div>
  2395.                                 <input name="pix_array_category_single_<?php echo $category->cat_ID; ?>" type="text" value="<?php echo get_pix_option('pix_array_category_single_'.$category->cat_ID); ?>">
  2396.                                 <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  2397.                             </div><!-- .rm_upload_image -->
  2398.                         </div><!-- .toggle -->
  2399.  
  2400.                         <div class="toggle pix_array_category_slide_<?php echo $category->cat_ID; ?>" id="pix_array_category_slide_<?php echo $category->cat_ID; ?>" data-type="video">
  2401.                            
  2402.                             <label for="pix_array_category_video_<?php echo $category->cat_ID; ?>">
  2403.                                 Upload your video
  2404.                                 <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadvideo.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2405.                             </label>
  2406.                            
  2407.                             <div class="rm_upload_video">
  2408.                                 <input name="pix_array_category_video_<?php echo $category->cat_ID; ?>" type="text" value="<?php echo get_pix_option('pix_array_category_video_'.$category->cat_ID); ?>"><br>
  2409.                                 <a class="button-secondary pix_upload_video_button" href="#">Upload Video</a>
  2410.                             </div><!-- .rm_upload_video -->
  2411.  
  2412.                             <label for="pix_array_category_video_start_<?php echo $category->cat_ID; ?>">
  2413.                                 Auto start for your video
  2414.                             </label>
  2415.                             <input type="hidden" value="0" name="pix_array_category_video_start_<?php echo $category->cat_ID; ?>">
  2416.                             <input type="checkbox" value="true" name="pix_array_category_video_start_<?php echo $category->cat_ID; ?>"<?php if(get_pix_option('pix_array_category_video_start_'.$category->cat_ID)=="true") { ?> checked="checked"<?php } ?>>
  2417.                            
  2418.                             <div class="clear"></div>
  2419.                            
  2420.                             <label for="pix_array_category_video_loop_<?php echo $category->cat_ID; ?>">
  2421.                                 Loop for your video
  2422.                             </label>
  2423.                             <input type="hidden" value="0" name="pix_array_category_video_loop_<?php echo $category->cat_ID; ?>">
  2424.                             <input type="checkbox" value="true" name="pix_array_category_video_loop_<?php echo $category->cat_ID; ?>"<?php if(get_pix_option('pix_array_category_video_loop_'.$category->cat_ID)=="true") { ?> checked="checked"<?php } ?>>
  2425.                            
  2426.                         </div><!-- .toggle -->
  2427.  
  2428.  
  2429.                         <div class="toggle pix_array_category_slide_<?php echo $category->cat_ID; ?>" id="pix_array_category_slide_<?php echo $category->cat_ID; ?>" data-type="googlemap">
  2430.                             <label for="pix_array_category_googlemap_<?php echo $category->cat_ID; ?>">
  2431.                                 Coordinates <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/googlemap-coords.php" class="pix_tips_ajax topLeft"  data-rel="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/googlemap-coords.php" data-width="520">how can I get them?</a>)</small>
  2432.                             </label>
  2433.                            
  2434.                             <input name="pix_array_category_googlemap_<?php echo $category->cat_ID; ?>" type="text" value="<?php echo get_pix_option('pix_array_category_googlemap_'.$category->cat_ID); ?>">
  2435.    
  2436.    
  2437.                             <div class="slider_div googlemap">
  2438.                                 <label for="pix_array_category_googlemap_zoom_<?php echo $category->cat_ID; ?>">Zoom</label>
  2439.                                 <input type="text" id="pix_array_category_googlemap_zoom_<?php echo $category->cat_ID; ?>" name="pix_array_category_googlemap_zoom_<?php echo $category->cat_ID; ?>" class="slider_input" value="<?php echo get_pix_option('pix_array_category_googlemap_zoom_'.$category->cat_ID); ?>" />
  2440.                                 <div class="slider_cursor"></div>
  2441.                             </div><!-- .slider_div -->
  2442.                             <div class="clear"></div>
  2443.    
  2444.                             <label for="pix_array_category_googlemap_indications_<?php echo $category->cat_ID; ?>">Indications</label>
  2445.                             <textarea name="pix_array_category_googlemap_indications_<?php echo $category->cat_ID; ?>" id="pix_array_category_googlemap_indications_<?php echo $category->cat_ID; ?>"><?php echo stripslashes(get_pix_option( 'pix_array_category_googlemap_indications_'.$category->cat_ID )); ?></textarea>
  2446.                              <div class="clear"></div>
  2447.                            
  2448.                             <label for="pix_array_category_googlemap_type_<?php echo $category->cat_ID; ?>">Type</label>
  2449.                             <select id="pix_array_category_googlemap_type_<?php echo $category->cat_ID; ?>" name="pix_array_category_googlemap_type_<?php echo $category->cat_ID; ?>">
  2450.                                 <option value="HYBRID"<?php if (get_pix_option( 'pix_array_category_googlemap_type_'.$category->cat_ID ) == 'HYBRID') { echo ' selected="selected"'; } ?>>hybrid</option>
  2451.                                 <option value="SATELLITE"<?php if (get_pix_option( 'pix_array_category_googlemap_type_'.$category->cat_ID ) == 'SATELLITE') { echo ' selected="selected"'; } ?>>satellite</option>
  2452.                                 <option value="ROADMAP"<?php if (get_pix_option( 'pix_array_category_googlemap_type_'.$category->cat_ID ) == 'ROADMAP') { echo ' selected="selected"'; } ?>>road map</option>
  2453.                                 <option value="TERRAIN"<?php if (get_pix_option( 'pix_array_category_googlemap_type_'.$category->cat_ID ) == 'TERRAIN') { echo ' selected="selected"'; } ?>>terrain</option>
  2454.                             </select>
  2455.  
  2456.                         </div><!-- .toggle -->
  2457.  
  2458.                         <label for="pix_array_category_<?php echo $category->cat_ID; ?>_4" >
  2459.                             Hide the featured images
  2460.                         </label>
  2461.                         <input type="hidden" value="0" name="pix_array_category_<?php echo $category->cat_ID; ?>[4]">
  2462.                         <input type="checkbox" value="true" name="pix_array_category_<?php echo $category->cat_ID; ?>[4]"<?php if($pix_array_category[4]=="true") { ?> checked="checked"<?php } ?>>
  2463.                        
  2464.                         <div class="clear"></div>
  2465.                        
  2466.                     </div><!-- .block_separator -->
  2467.                 </div><!-- #category-tab-<?php echo $category->cat_ID; ?> -->
  2468.                 <?php } } ?>
  2469.  
  2470.                 <div id="searchpage-tab">
  2471.                     <div class="block_separator">
  2472.  
  2473.                         <label for="pix_searchpage_sliding_page" >Sliding page</label>
  2474.                         <select id="pix_searchpage_sliding_page" name="pix_searchpage_sliding_page">
  2475.                             <option value="default"<?php if (get_pix_option('pix_searchpage_sliding_page') == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2476.                             <option value="open"<?php if (get_pix_option('pix_searchpage_sliding_page') == 'open') { echo ' selected="selected"'; } ?>>Open on load</option>
  2477.                             <option value="closed"<?php if (get_pix_option('pix_searchpage_sliding_page') == 'closed') { echo ' selected="selected"'; } ?>>Closed on load</option>
  2478.                             <option value="always"<?php if (get_pix_option('pix_searchpage_sliding_page') == 'always') { echo ' selected="selected"'; } ?>>Always open</option>
  2479.                         </select>
  2480.  
  2481.                         <label for="pix_searchpage_sidebar" >Show/hide sidebar and its position</label>
  2482.                         <select id="pix_searchpage_sidebar" name="pix_searchpage_sidebar" class="toggler">
  2483.                             <option value="default"<?php if (get_pix_option('pix_searchpage_sidebar') == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2484.                             <option value="rightsidebar"<?php if (get_pix_option('pix_searchpage_sidebar') == 'rightsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the right</option>
  2485.                             <option value="leftsidebar"<?php if (get_pix_option('pix_searchpage_sidebar') == 'leftsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the left</option>
  2486.                             <option value="nosidebar"<?php if (get_pix_option('pix_searchpage_sidebar') == 'nosidebar') { echo ' selected="selected"'; } ?>>Hide sidebar</option>
  2487.                         </select>
  2488.                    
  2489.                         <div class="toggle pix_searchpage_sidebar" id="pix_searchpage_sidebar" data-type="nosidebar">
  2490.                             <label for="pix_searchpage_maincolumn" >
  2491.                                 Main column width and position
  2492.                             </label>
  2493.                             <select id="pix_searchpage_maincolumn" name="pix_searchpage_maincolumn">
  2494.                                 <option value="left"<?php if (get_pix_option('pix_searchpage_maincolumn') == 'left') { echo ' selected="selected"'; } ?>>Narrow left column</option>
  2495.                                 <option value="right"<?php if (get_pix_option('pix_searchpage_maincolumn') == 'right') { echo ' selected="selected"'; } ?>>Narrow right column</option>
  2496.                                 <option value="wide"<?php if (get_pix_option('pix_searchpage_maincolumn') == 'wide') { echo ' selected="selected"'; } ?>>Wide column</option>
  2497.                             </select>
  2498.                         </div><!-- .toggle -->
  2499.                        
  2500.                         <label for="pix_searchpage_slide">Select the background of your search result page</label>
  2501.                         <select id="pix_searchpage_slide" name="pix_searchpage_slide" class="toggler">
  2502.                             <option value="default"<?php if (get_pix_option('pix_searchpage_slide') == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2503.                             <option value="slideshow"<?php if (get_pix_option('pix_searchpage_slide') == 'slideshow') { echo ' selected="selected"'; } ?>>Slideshow</option>
  2504.                             <option value="single"<?php if (get_pix_option('pix_searchpage_slide') == 'single') { echo ' selected="selected"'; } ?>>Single image</option>
  2505.                             <option value="video"<?php if (get_pix_option('pix_searchpage_slide') == 'video') { echo ' selected="selected"'; } ?>>Video</option>
  2506.                             <option value="googlemap"<?php if (get_pix_option('pix_searchpage_slide') == 'googlemap') { echo ' selected="selected"'; } ?>>Google map</option>
  2507.                             <option value="none"<?php if (get_pix_option('pix_searchpage_slide') == 'none') { echo ' selected="selected"'; } ?>>None</option>
  2508.                         </select>
  2509.  
  2510.                         <div class="toggle pix_searchpage_slide" id="pix_searchpage_slide" data-type="slideshow">
  2511.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2512.                             <div class="sorting_admin">
  2513.                             <br>
  2514.                             <a href="#" class="add" id="add_a_slider">&nbsp;</a>
  2515.                             <?php
  2516.    
  2517.                                 $i = 0;
  2518.                                 $pix_searchpage_slide = get_pix_option('pix_array_searchpage_slide_');
  2519.                                 while($i<count($pix_searchpage_slide)){
  2520.                                     if($pix_searchpage_slide[$i]=='') { $style=' style="display:none"'; } else { $style=''; }
  2521.                                     echo '<div id="pix_array_searchpage_slide_'.$i.'" class="rm_upload_image">
  2522.                                    <div class="handle"></div>
  2523.                                    <div class="image_thumb"><img src="'.get_pix_thumb($pix_searchpage_slide[$i], 'exTh').'" alt="Preview"'. $style .' /></div>
  2524.                                    <input name="pix_array_searchpage_slide_['.$i.']" type="text" value="'.$pix_searchpage_slide[$i].'">
  2525.                                    <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  2526.                                    <a href="#" class="button-secondary remove">Remove</a></div>';
  2527.                                     $i++;
  2528.                                 }
  2529.                             ?>
  2530.                             </div><!-- .sorting -->
  2531.                         </div><!-- .toggle -->
  2532.  
  2533.                         <div class="toggle pix_searchpage_slide" id="pix_searchpage_slide" data-type="single">
  2534.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2535.                             <br>
  2536.                            
  2537.                             <div id="pix_searchpage_single" class="rm_upload_image">
  2538.                                 <?php if(get_pix_option('pix_searchpage_single')=='') { $style=' style="display:none"'; } else { $style=''; } ?>
  2539.                                 <div class="image_thumb"><img src="<?php echo get_pix_thumb(get_pix_option('pix_searchpage_single'), 'exTh'); ?>" alt="Preview"<?php echo $style; ?> /></div>
  2540.                                 <input name="pix_searchpage_single" type="text" value="<?php echo get_pix_option('pix_searchpage_single'); ?>">
  2541.                                 <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  2542.                             </div><!-- .rm_upload_image -->
  2543.                         </div><!-- .toggle -->
  2544.  
  2545.                         <div class="toggle pix_searchpage_slide" id="pix_searchpage_slide" data-type="video">
  2546.                             <label for="pix_searchpage_video">
  2547.                                 Upload your video
  2548.                                 <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadvideo.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2549.                             </label>
  2550.                            
  2551.                             <div class="rm_upload_video">
  2552.                                 <input name="pix_searchpage_video" type="text" value="<?php echo get_pix_option('pix_searchpage_video'); ?>"><br>
  2553.                                 <a class="button-secondary pix_upload_video_button" href="#">Upload Video</a>
  2554.                             </div><!-- .rm_upload_image -->
  2555.                         </div><!-- .toggle -->
  2556.  
  2557.  
  2558.                         <div class="toggle pix_searchpage_slide" id="pix_searchpage_slide" data-type="video">
  2559.                             <label for="pix_searchpage_video_start">
  2560.                                 Auto start for your video
  2561.                             </label>
  2562.                             <input type="hidden" value="0" name="pix_searchpage_video_start">                        
  2563.                             <input type="checkbox" value="true" name="pix_searchpage_video_start"<?php if(get_pix_option('pix_searchpage_video_start')=="true") { ?> checked="checked"<?php } ?>>
  2564.                         </div><!-- .toggle -->
  2565.  
  2566.                         <div class="toggle pix_searchpage_slide" id="pix_searchpage_slide" data-type="video">
  2567.                             <label for="pix_searchpage_video_loop">
  2568.                                 Loop for your video
  2569.                             </label>
  2570.                             <input type="hidden" value="0" name="pix_searchpage_video_loop">                        
  2571.                             <input type="checkbox" value="true" name="pix_searchpage_video_loop"<?php if(get_pix_option('pix_searchpage_video_loop')=="true") { ?> checked="checked"<?php } ?>>
  2572.                         </div><!-- .toggle -->
  2573.                        
  2574.                         <div class="toggle pix_searchpage_slide" id="pix_searchpage_slide" data-type="googlemap">
  2575.                             <label for="pix_searchpage_googlemap">
  2576.                                 Coordinates <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/googlemap-coords.php" class="pix_tips_ajax topLeft"  data-rel="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/googlemap-coords.php" data-width="520">how can I get them?</a>)</small>
  2577.                             </label>
  2578.                            
  2579.                             <input name="pix_searchpage_googlemap" type="text" value="<?php echo get_pix_option('pix_searchpage_googlemap'); ?>">
  2580.    
  2581.    
  2582.                             <div class="slider_div googlemap">
  2583.                                 <label for="pix_searchpage_googlemap_zoom">Zoom</label>
  2584.                                 <input type="text" id="pix_searchpage_googlemap_zoom" name="pix_searchpage_googlemap_zoom" class="slider_input" value="<?php echo get_pix_option('pix_searchpage_googlemap_zoom'); ?>" />
  2585.                                 <div class="slider_cursor"></div>
  2586.                             </div><!-- .slider_div -->
  2587.                             <div class="clear"></div>
  2588.    
  2589.                             <label for="pix_searchpage_googlemap_indications">Indications</label>
  2590.                             <textarea name="pix_searchpage_googlemap_indications" id="pix_searchpage_googlemap_indications"><?php echo stripslashes(get_pix_option( 'pix_searchpage_googlemap_indications' )); ?></textarea>
  2591.                             <div class="clear"></div>
  2592.    
  2593.                             <label for="pix_searchpage_googlemap_type">Type</label>
  2594.                             <select id="pix_searchpage_googlemap_type" name="pix_searchpage_googlemap_type">
  2595.                                 <option value="HYBRID"<?php if (get_pix_option('pix_searchpage_googlemap_type') == 'HYBRID') { echo ' selected="selected"'; } ?>>hybrid</option>
  2596.                                 <option value="SATELLITE"<?php if (get_pix_option('pix_searchpage_googlemap_type') == 'SATELLITE') { echo ' selected="selected"'; } ?>>satellite</option>
  2597.                                 <option value="ROADMAP"<?php if (get_pix_option('pix_searchpage_googlemap_type') == 'ROADMAP') { echo ' selected="selected"'; } ?>>road map</option>
  2598.                                 <option value="TERRAIN"<?php if (get_pix_option('pix_searchpage_googlemap_type') == 'TERRAIN') { echo ' selected="selected"'; } ?>>terrain</option>
  2599.                             </select>
  2600.  
  2601.                         </div><!-- .toggle -->
  2602.  
  2603.                     </div><!-- .block_separator -->
  2604.                 </div><!-- #searchpage-tab -->
  2605.                
  2606.                 <div id="404-tab">
  2607.                     <div class="block_separator">
  2608.  
  2609.                         <label for="pix_404_sliding_page" >Sliding page</label>
  2610.                         <select id="pix_404_sliding_page" name="pix_404_sliding_page">
  2611.                             <option value="default"<?php if (get_pix_option('pix_404_sliding_page') == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2612.                             <option value="open"<?php if (get_pix_option('pix_404_sliding_page') == 'open') { echo ' selected="selected"'; } ?>>Open on load</option>
  2613.                             <option value="closed"<?php if (get_pix_option('pix_404_sliding_page') == 'closed') { echo ' selected="selected"'; } ?>>Closed on load</option>
  2614.                             <option value="always"<?php if (get_pix_option('pix_404_sliding_page') == 'always') { echo ' selected="selected"'; } ?>>Always open</option>
  2615.                         </select>
  2616.  
  2617.                         <label for="pix_404_sidebar" >Show/hide sidebar and its position</label>
  2618.                         <select id="pix_404_sidebar" name="pix_404_sidebar" class="toggler">
  2619.                             <option value="default"<?php if (get_pix_option('pix_404_sidebar') == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2620.                             <option value="rightsidebar"<?php if (get_pix_option('pix_404_sidebar') == 'rightsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the right</option>
  2621.                             <option value="leftsidebar"<?php if (get_pix_option('pix_404_sidebar') == 'leftsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the left</option>
  2622.                             <option value="nosidebar"<?php if (get_pix_option('pix_404_sidebar') == 'nosidebar') { echo ' selected="selected"'; } ?>>Hide sidebar</option>
  2623.                         </select>
  2624.                    
  2625.                         <div class="toggle pix_404_sidebar" id="pix_404_sidebar" data-type="nosidebar">
  2626.                             <label for="pix_404_maincolumn" >
  2627.                                 Main column width and position
  2628.                             </label>
  2629.                             <select id="pix_404_maincolumn" name="pix_404_maincolumn">
  2630.                                 <option value="left"<?php if (get_pix_option('pix_404_maincolumn') == 'left') { echo ' selected="selected"'; } ?>>Narrow left column</option>
  2631.                                 <option value="right"<?php if (get_pix_option('pix_404_maincolumn') == 'right') { echo ' selected="selected"'; } ?>>Narrow right column</option>
  2632.                                 <option value="wide"<?php if (get_pix_option('pix_404_maincolumn') == 'wide') { echo ' selected="selected"'; } ?>>Wide column</option>
  2633.                             </select>
  2634.                         </div><!-- .toggle -->
  2635.                        
  2636.                         <label for="pix_404_slide">Select the background of your 404 page</label>
  2637.                         <select id="pix_404_slide" name="pix_404_slide" class="toggler">
  2638.                             <option value="default"<?php if (get_pix_option('pix_404_slide') == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2639.                             <option value="slideshow"<?php if (get_pix_option('pix_404_slide') == 'slideshow') { echo ' selected="selected"'; } ?>>Slideshow</option>
  2640.                             <option value="single"<?php if (get_pix_option('pix_404_slide') == 'single') { echo ' selected="selected"'; } ?>>Single image</option>
  2641.                             <option value="video"<?php if (get_pix_option('pix_404_slide') == 'video') { echo ' selected="selected"'; } ?>>Video</option>
  2642.                             <option value="googlemap"<?php if (get_pix_option('pix_404_slide') == 'googlemap') { echo ' selected="selected"'; } ?>>Google map</option>
  2643.                             <option value="none"<?php if (get_pix_option('pix_404_slide') == 'none') { echo ' selected="selected"'; } ?>>None</option>
  2644.                         </select>
  2645.  
  2646.                         <div class="toggle pix_404_slide" id="pix_404_slide" data-type="slideshow">
  2647.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2648.                             <div class="sorting_admin">
  2649.                             <br>
  2650.                             <a href="#" class="add" id="add_a_slider">&nbsp;</a>
  2651.                             <?php
  2652.    
  2653.                                 $i = 0;
  2654.                                 $pix_404_slide = get_pix_option('pix_array_404_slide_');
  2655.                                 while($i<count($pix_404_slide)){
  2656.                                     if($pix_404_slide[$i]=='') { $style=' style="display:none"'; } else { $style=''; }
  2657.                                     echo '<div id="pix_array_404_slide_'.$i.'" class="rm_upload_image">
  2658.                                    <div class="handle"></div>
  2659.                                    <div class="image_thumb"><img src="'.get_pix_thumb($pix_404_slide[$i], 'exTh').'" alt="Preview"'. $style .' /></div>
  2660.                                    <input name="pix_array_404_slide_['.$i.']" type="text" value="'.$pix_404_slide[$i].'">
  2661.                                    <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  2662.                                    <a href="#" class="button-secondary remove">Remove</a></div>';
  2663.                                     $i++;
  2664.                                 }
  2665.                             ?>
  2666.                             </div><!-- .sorting -->
  2667.                         </div><!-- .toggle -->
  2668.  
  2669.                         <div class="toggle pix_404_slide" id="pix_404_slide" data-type="single">
  2670.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2671.                             <br>
  2672.                            
  2673.                             <div id="pix_404_single" class="rm_upload_image">
  2674.                                 <?php if(get_pix_option('pix_404_single')=='') { $style=' style="display:none"'; } else { $style=''; } ?>
  2675.                                 <div class="image_thumb"><img src="<?php echo get_pix_thumb(get_pix_option('pix_404_single'), 'exTh'); ?>" alt="Preview"<?php echo $style; ?> /></div>
  2676.                                 <input name="pix_404_single" type="text" value="<?php echo get_pix_option('pix_404_single'); ?>">
  2677.                                 <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  2678.                             </div><!-- .rm_upload_image -->
  2679.                         </div><!-- .toggle -->
  2680.  
  2681.                         <div class="toggle pix_404_slide" id="pix_404_slide" data-type="video">
  2682.                             <label for="pix_404_video">
  2683.                                 Upload your video
  2684.                                 <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2685.                             </label>
  2686.                            
  2687.                             <div class="rm_upload_video">
  2688.                                 <input name="pix_404_video" type="text" value="<?php echo get_pix_option('pix_404_video'); ?>"><br>
  2689.                                 <a class="button-secondary pix_upload_video_button" href="#">Upload Video</a>
  2690.                             </div><!-- .rm_upload_image -->
  2691.                         </div><!-- .toggle -->
  2692.  
  2693.                         <div class="toggle pix_404_slide" id="pix_404_slide" data-type="video">
  2694.                             <label for="pix_404_video_start">
  2695.                                 Auto start for your video
  2696.                             </label>
  2697.                             <input type="hidden" value="0" name="pix_404_video_start">                        
  2698.                             <input type="checkbox" value="true" name="pix_404_video_start"<?php if(get_pix_option('pix_404_video_start')=="true") { ?> checked="checked"<?php } ?>>
  2699.                         </div><!-- .toggle -->
  2700.  
  2701.                         <div class="toggle pix_404_slide" id="pix_404_slide" data-type="video">
  2702.                             <label for="pix_404_video_loop">
  2703.                                 Loop for your video
  2704.                             </label>
  2705.                             <input type="hidden" value="0" name="pix_404_video_loop">                        
  2706.                             <input type="checkbox" value="true" name="pix_404_video_loop"<?php if(get_pix_option('pix_404_video_loop')=="true") { ?> checked="checked"<?php } ?>>
  2707.                         </div><!-- .toggle -->
  2708.                        
  2709.                         <div class="toggle pix_404_slide" id="pix_404_slide" data-type="googlemap">
  2710.                             <label for="pix_404_googlemap">
  2711.                                 Coordinates <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/googlemap-coords.php" class="pix_tips_ajax topLeft"  data-rel="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/googlemap-coords.php" data-width="520">how can I get them?</a>)</small>
  2712.                             </label>
  2713.                            
  2714.                             <input name="pix_404_googlemap" type="text" value="<?php echo get_pix_option('pix_404_googlemap'); ?>">
  2715.    
  2716.    
  2717.                             <div class="slider_div googlemap">
  2718.                                 <label for="pix_404_googlemap_zoom">Zoom</label>
  2719.                                 <input type="text" id="pix_404_googlemap_zoom" name="pix_404_googlemap_zoom" class="slider_input" value="<?php echo get_pix_option('pix_404_googlemap_zoom'); ?>" />
  2720.                                 <div class="slider_cursor"></div>
  2721.                             </div><!-- .slider_div -->
  2722.                             <div class="clear"></div>
  2723.    
  2724.                             <label for="pix_404_googlemap_indications">Indications</label>
  2725.                             <textarea name="pix_404_googlemap_indications" id="pix_404_googlemap_indications"><?php echo stripslashes(get_pix_option( 'pix_404_googlemap_indications' )); ?></textarea>
  2726.                            
  2727.                             <div class="clear"></div>
  2728.                             <label for="pix_404_googlemap_type">Type</label>
  2729.                             <select id="pix_404_googlemap_type" name="pix_404_googlemap_type">
  2730.                                 <option value="HYBRID"<?php if (get_pix_option('pix_404_googlemap_type') == 'HYBRID') { echo ' selected="selected"'; } ?>>hybrid</option>
  2731.                                 <option value="SATELLITE"<?php if (get_pix_option('pix_404_googlemap_type') == 'SATELLITE') { echo ' selected="selected"'; } ?>>satellite</option>
  2732.                                 <option value="ROADMAP"<?php if (get_pix_option('pix_404_googlemap_type') == 'ROADMAP') { echo ' selected="selected"'; } ?>>road map</option>
  2733.                                 <option value="TERRAIN"<?php if (get_pix_option('pix_404_googlemap_type') == 'TERRAIN') { echo ' selected="selected"'; } ?>>terrain</option>
  2734.                             </select>
  2735.                         </div><!-- .toggle -->
  2736.  
  2737.                     </div><!-- .block_separator -->
  2738.                 </div><!-- #404-tab -->
  2739.                
  2740.                     <input name="save" type="submit" value="&nbsp;" class="input-save" />
  2741.                     <input type="hidden" name="action" value="save" />
  2742.                 </form>
  2743.             </div><!-- #blog-tab -->
  2744.            
  2745.             <div id="portfolio-main-tab">
  2746.                 <ul>
  2747.                     <li><a href="#portfolio-items-tab">Portfolio items</a></li>
  2748.                     <?php $terms = get_terms('gallery');
  2749.                         $terms_slug = array();
  2750.                         foreach ($terms as $term) {
  2751.                             array_push($terms_slug, $term->slug);
  2752.                         }
  2753.                         if(get_pix_option('pix_gallery_hack')=='all' || get_pix_option('pix_gallery_hack')=='' || (is_array(get_pix_option('pix_gallery_hack')) && in_array('all', get_pix_option('pix_gallery_hack')))) {
  2754.                             $pix_gallery_hack = $terms_slug;
  2755.                         } else {
  2756.                             $pix_gallery_hack = get_pix_option('pix_gallery_hack');
  2757.                         }
  2758.                         foreach ($terms as $term) { if (in_array($term->slug, $pix_gallery_hack)) {  ?>
  2759.                         <li><a href="#term-tab-<?php echo $term->term_id; ?>"><?php echo $term->name; ?></a></li>
  2760.                     <?php } } ?>
  2761.                 </ul>
  2762.                 <form method="post">
  2763.                 <div id="portfolio-items-tab">
  2764.                     <div class="block_separator">
  2765.                         <label for="pix_show_custom_related_items">Show related items below the posts</label>
  2766.                         <input type="hidden" value="0" name="pix_show_custom_related_items">
  2767.                         <input type="checkbox" value="show" name="pix_show_custom_related_items"<?php if(get_pix_option('pix_show_custom_related_items')=="show") { ?> checked="checked"<?php } ?>>
  2768.  
  2769.                         <div class="clear"></div>
  2770.  
  2771.                         <label for="pix_portfolio_show_share_section">Show share section in portfolio posts</label>
  2772.                         <input type="hidden" value="0" name="pix_portfolio_show_share_section">
  2773.                         <input type="checkbox" value="show" name="pix_portfolio_show_share_section"<?php if(get_pix_option('pix_portfolio_show_share_section')=="show") { ?> checked="checked"<?php } ?>>
  2774.                         <div class="clear"></div>
  2775.  
  2776.                         <label for="pix_portfolio_share_type" >Share section type</label>
  2777.                         <select id="pix_portfolio_share_type" name="pix_portfolio_share_type">
  2778.                             <option value="classic"<?php if (get_pix_option('pix_portfolio_share_type') == 'classic') { echo ' selected="selected"'; } ?>>Simple icons</option>
  2779.                             <option value="counter"<?php if (get_pix_option('pix_portfolio_share_type') == 'counter') { echo ' selected="selected"'; } ?>>Official icons with counter</option>
  2780.                         </select>
  2781.                         <small>"Simple icons": Twitter, Facebook, Delicious, Digg, LinkedIn, StumbleUpon<br>
  2782.                         "Official icons with counter": Twitter, Facebook, Google+</small>
  2783.                         <div class="clear"></div>
  2784.  
  2785.                         <label for="pix_portfolio_credits_section">Show credits section in portfolio posts</label>
  2786.                         <input type="hidden" value="0" name="pix_portfolio_credits_section">
  2787.                         <input type="checkbox" value="show" name="pix_portfolio_credits_section"<?php if(get_pix_option('pix_portfolio_credits_section')=="show") { ?> checked="checked"<?php } ?>>
  2788.                         <div class="clear"></div>
  2789.  
  2790.                     </div><!-- .block-separator -->
  2791.                 </div><!-- #portfolio-items-tab -->
  2792.                
  2793.                 <?php
  2794.                     foreach ($terms as $term) { if (in_array($term->slug, $pix_gallery_hack)) {  ?>
  2795.                 <div id="term-tab-<?php echo $term->term_id; ?>">
  2796.                     <div class="block_separator">
  2797.                         <?php $pix_array_term = get_pix_option('pix_array_term_'.$term->term_id); ?>
  2798.  
  2799.                         <label for="pix_array_term_<?php echo $term->term_id; ?>_4" >Template</label>
  2800.                         <select class="toggler" name="pix_array_term_<?php echo $term->term_id; ?>[4]" id="pix_array_term_<?php echo $term->term_id; ?>_4">
  2801.                             <option value="onecolumn"<?php if ($pix_array_term[4] == 'onecolumn') { echo ' selected="selected"'; } ?>>One column</option>
  2802.                             <option value="twocolumns"<?php if ($pix_array_term[4] == 'twocolumns') { echo ' selected="selected"'; } ?>>Two columns</option>
  2803.                             <option value="threecolumns"<?php if ($pix_array_term[4] == 'threecolumns') { echo ' selected="selected"'; } ?>>Three columns</option>
  2804.                             <option value="fourcolumns"<?php if ($pix_array_term[4] == 'fourcolumns') { echo ' selected="selected"'; } ?>>Four columns</option>
  2805.                             <option value="fivecolumns"<?php if ($pix_array_term[4] == 'fivecolumns') { echo ' selected="selected"'; } ?>>Five columns</option>
  2806.                             <option value="widepage"<?php if ($pix_array_term[4] == 'widepage') { echo ' selected="selected"'; } ?>>Wide page</option>
  2807.                         </select>
  2808.  
  2809.                         <div class="toggle pix_array_term_<?php echo $term->term_id; ?>_4" data-type="onecolumn twocolumns threecolumns fourcolumns fivecolumns">
  2810.                             <div class="check_toggle" id="sliding_term_toggle">
  2811.                                 <label for="pix_array_term_<?php echo $term->term_id; ?>_0" >Sliding page</label>
  2812.                                 <select id="pix_array_term_<?php echo $term->term_id; ?>_0" name="pix_array_term_<?php echo $term->term_id; ?>[0]">
  2813.                                     <option value="default"<?php if ($pix_array_term[0] == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2814.                                     <option value="open"<?php if ($pix_array_term[0] == 'open') { echo ' selected="selected"'; } ?>>Open on load</option>
  2815.                                     <option value="closed"<?php if ($pix_array_term[0] == 'closed') { echo ' selected="selected"'; } ?>>Closed on load</option>
  2816.                                 <option value="always"<?php if ($pix_array_term[0] == 'always') { echo ' selected="selected"'; } ?>>Always open</option>
  2817.                                 </select>
  2818.                             </div>
  2819.    
  2820.                             <label for="pix_array_term_<?php echo $term->term_id; ?>_1" >Show/hide sidebar and its position</label>
  2821.                             <select id="pix_array_term_<?php echo $term->term_id; ?>_1" name="pix_array_term_<?php echo $term->term_id; ?>[1]" class="toggler">
  2822.                                 <option value="default"<?php if ($pix_array_term[1] == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2823.                                 <option value="rightsidebar"<?php if ($pix_array_term[1] == 'rightsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the right</option>
  2824.                                 <option value="leftsidebar"<?php if ($pix_array_term[1] == 'leftsidebar') { echo ' selected="selected"'; } ?>>Sidebar on the left</option>
  2825.                                 <option value="nosidebar"<?php if ($pix_array_term[1] == 'nosidebar') { echo ' selected="selected"'; } ?>>Hide sidebar</option>
  2826.                             </select>
  2827.                        
  2828.                             <div class="toggle pix_array_term_<?php echo $term->term_id; ?>_1" id="pix_array_term_<?php echo $term->term_id; ?>_1" data-type="nosidebar">
  2829.                                 <label for="pix_array_term_<?php echo $term->term_id; ?>_2" >
  2830.                                     Main column width and position
  2831.                                 </label>
  2832.                                 <select id="pix_array_term_<?php echo $term->term_id; ?>_2" name="pix_array_term_<?php echo $term->term_id; ?>[2]">
  2833.                                     <option value="left"<?php if ($pix_array_term[2] == 'left') { echo ' selected="selected"'; } ?>>Narrow left column</option>
  2834.                                     <option value="right"<?php if ($pix_array_term[2] == 'right') { echo ' selected="selected"'; } ?>>Narrow right column</option>
  2835.                                     <option value="wide"<?php if ($pix_array_term[2] == 'wide') { echo ' selected="selected"'; } ?>>Wide column</option>
  2836.                                 </select>
  2837.                             </div><!-- .toggle -->
  2838.                            
  2839.                             <label for="pix_array_term_<?php echo $term->term_id; ?>_3" >Select a sidebar</label>
  2840.                             <?php
  2841.                             $get_sidebar_options = sidebar_generator_pix::get_sidebars();
  2842.                             if($get_sidebar_options != "") { ?>
  2843.                             <select id="pix_array_term_<?php echo $term->term_id; ?>_3" name="pix_array_term_<?php echo $term->term_id; ?>[3]">
  2844.                                     <option value="none"<?php if ($pix_array_term[3] == 'none') { echo ' selected="selected"'; } ?>>None</option>
  2845.                             <?php $i=1;
  2846.                            
  2847.                             foreach ($get_sidebar_options as $sidebar_gen) { ?>
  2848.                                     <option value="<?php echo $sidebar_gen; ?>"<?php if ($pix_array_term[3] == $sidebar_gen) { echo ' selected="selected"'; } ?>><?php echo $sidebar_gen; ?></option>
  2849.                             <?php $i++;  
  2850.                             } ?>
  2851.                             </select>
  2852.                             <?php } else {
  2853.                                 echo 'You still have no sidebars';
  2854.                             }
  2855.                            
  2856.                             ?>
  2857.                         </div><!-- .toggle -->
  2858.    
  2859.                         <label for="pix_array_term_<?php echo $term->term_id; ?>[5]">Filterable portfolio page</label>
  2860.                         <input type="hidden" value="0" name="pix_array_term_<?php echo $term->term_id; ?>_5">
  2861.                         <input type="checkbox" data-target="sliding_term_toggle" class="check_toggler" value="show" name="pix_array_term_<?php echo $term->term_id; ?>[5]"<?php if($pix_array_term[5]=="show") { ?> checked="checked"<?php } ?>>
  2862.  
  2863.                         <div class="clear"></div>
  2864.  
  2865.                         <label for="pix_array_term_<?php echo $term->term_id; ?>[6]">Infinite scrolling page</label>
  2866.                         <input type="hidden" value="0" name="pix_array_term_<?php echo $term->term_id; ?>[6]">
  2867.                         <input type="checkbox" data-target="sliding_term_toggle" class="check_toggler" value="show" name="pix_array_term_<?php echo $term->term_id; ?>[6]"<?php if($pix_array_term[6]=="show") { ?> checked="checked"<?php } ?>>
  2868.                        
  2869.                         <div class="clear"></div>
  2870.  
  2871.                         <label for="pix_array_term_<?php echo $term->term_id; ?>[7]">Show &quot;Open in a ColorBox&quot; link</label>
  2872.                         <input type="hidden" value="0" name="pix_array_term_<?php echo $term->term_id; ?>[7]">
  2873.                         <input type="checkbox" value="show" name="pix_array_term_<?php echo $term->term_id; ?>[7]"<?php if($pix_array_term[7]=="show") { ?> checked="checked"<?php } ?>>
  2874.                        
  2875.                         <div class="clear"></div>
  2876.  
  2877.                         <label for="pix_array_term_<?php echo $term->term_id; ?>[9]">Have a slideshow in the ColorBox</label>
  2878.                         <input type="hidden" value="0" name="pix_array_term_<?php echo $term->term_id; ?>[9]">
  2879.                         <input type="checkbox" value="show" name="pix_array_term_<?php echo $term->term_id; ?>[9]"<?php if($pix_array_term[9]=="show") { ?> checked="checked"<?php } ?>>
  2880.                        
  2881.                         <div class="clear"></div>
  2882.  
  2883.                         <label for="pix_array_term_<?php echo $term->term_id; ?>[8]">Show &quot;Go to the page&quot; link</label>
  2884.                         <input type="hidden" value="0" name="pix_array_term_<?php echo $term->term_id; ?>[8]">
  2885.                         <input type="checkbox" value="show" name="pix_array_term_<?php echo $term->term_id; ?>[8]"<?php if($pix_array_term[8]=="show") { ?> checked="checked"<?php } ?>>
  2886.                        
  2887.                         <div class="clear"></div>
  2888.  
  2889.                         <div class="slider_div border">
  2890.                             <label for="pix_array_term_ppp_<?php echo $term->term_id; ?>">How many posts per page</label>
  2891.                             <input type="text" id="pix_array_term_ppp_<?php echo $term->term_id; ?>" name="pix_array_term_ppp_<?php echo $term->term_id; ?>" class="slider_input" value="<?php if (get_pix_option('pix_array_term_ppp_'. $term->term_id) == '') { echo '9'; } else { echo get_pix_option('pix_array_term_ppp_'.$term->term_id); } ?>" />
  2892.                             <div class="slider_cursor"></div>
  2893.                         </div><!-- .slider_div -->
  2894.  
  2895.                         <div class="clear"></div>
  2896.    
  2897.                         <label for="pix_array_term_tooltip_<?php echo $term->term_id; ?>">Tooltip on image</label>
  2898.                         <select id="pix_array_term_tooltip_<?php echo $term->term_id; ?>" name="pix_array_term_tooltip_<?php echo $term->term_id; ?>">
  2899.                             <option value="title"<?php if (get_pix_option('pix_array_term_tooltip_'. $term->term_id) == 'title') { echo ' selected="selected"'; } ?>>Show title</option>
  2900.                             <option value="titleexcerpt"<?php if (get_pix_option('pix_array_term_tooltip_'. $term->term_id) == 'titleexcerpt') { echo ' selected="selected"'; } ?>>Show title and excerpt</option>
  2901.                             <option value="titleaction"<?php if (get_pix_option('pix_array_term_tooltip_'. $term->term_id) == 'titleaction') { echo ' selected="selected"'; } ?>>Show title and action</option>
  2902.                             <option value="titleexcerptaction"<?php if (get_pix_option('pix_array_term_tooltip_'. $term->term_id) == 'titleexcerptaction') { echo ' selected="selected"'; } ?>>Show title, excerpt and action</option>
  2903.                             <option value="action"<?php if (get_pix_option('pix_array_term_tooltip_'. $term->term_id) == 'action') { echo ' selected="selected"'; } ?>>Show action</option>
  2904.                             <option value="hide"<?php if (get_pix_option('pix_array_term_tooltip_'. $term->term_id) == 'hide') { echo ' selected="selected"'; } ?>>Hide tooltip</option>
  2905.                         </select>
  2906.  
  2907.                         <div class="clear"></div>
  2908.  
  2909.                         <label for="pix_front_page_seo_title">
  2910.                             Posts page title
  2911.                         </label>
  2912.                          <input name="pix_array_term_seotitle_<?php echo $term->term_id; ?>" id="pix_array_term_seotitle_<?php echo $term->term_id; ?>" class="pix_title_seo" type="text" value="<?php echo get_pix_option('pix_array_term_seotitle_'.$term->term_id); ?>" />
  2913.                          <p></p>
  2914.                          
  2915.                         <div class="clear"></div>
  2916.  
  2917.                         <label for="pix_front_page_seo_description">
  2918.                             Meta description
  2919.                         </label>
  2920.                          <textarea name="pix_array_term_seodescription_<?php echo $term->term_id; ?>" id="pix_array_term_seodescription_<?php echo $term->term_id; ?>" class="pix_desc_seo"><?php echo get_pix_option('pix_array_term_seodescription_'.$term->term_id); ?></textarea>
  2921.                          <p></p>
  2922.  
  2923.                         <div class="clear"></div>
  2924.  
  2925.                         <label for="pix_front_page_seo_keywords">
  2926.                             Meta keywords
  2927.                         </label>
  2928.                          <input name="pix_array_term_seokeywords_<?php echo $term->term_id; ?>" id="pix_array_term_seokeywords_<?php echo $term->term_id; ?>" type="text" value="<?php echo get_pix_option('pix_array_term_seokeywords_'.$term->term_id); ?>" />
  2929.                         <div class="clear"></div>
  2930.  
  2931.                         <label for="pix_array_term_slide_<?php echo $term->term_id; ?>">Select the background of your portofolio page</label>
  2932.                         <select id="pix_array_term_slide_<?php echo $term->term_id; ?>" name="pix_array_term_slide_<?php echo $term->term_id; ?>" class="toggler">
  2933.                             <option value="default"<?php if (get_pix_option('pix_array_term_slide_'. $term->term_id) == 'default') { echo ' selected="selected"'; } ?>>Default</option>
  2934.                             <option value="slideshow"<?php if (get_pix_option('pix_array_term_slide_'. $term->term_id) == 'slideshow') { echo ' selected="selected"'; } ?>>Slideshow</option>
  2935.                             <option value="single"<?php if (get_pix_option('pix_array_term_slide_'. $term->term_id) == 'single') { echo ' selected="selected"'; } ?>>Single image</option>
  2936.                             <option value="video"<?php if (get_pix_option('pix_array_term_slide_'. $term->term_id) == 'video') { echo ' selected="selected"'; } ?>>Video</option>
  2937.                             <option value="googlemap"<?php if (get_pix_option('pix_array_term_slide_'. $term->term_id) == 'googlemap') { echo ' selected="selected"'; } ?>>Google map</option>
  2938.                             <option value="none"<?php if (get_pix_option('pix_array_term_slide_'. $term->term_id) == 'none') { echo ' selected="selected"'; } ?>>None</option>
  2939.                         </select>
  2940.  
  2941.                         <div class="toggle pix_array_term_slide_<?php echo $term->term_id; ?>" id="pix_array_term_slide_<?php echo $term->term_id; ?>" data-type="slideshow">
  2942.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2943.                             <div class="sorting_admin">
  2944.                             <br>
  2945.                             <a href="#" class="add" id="add_a_slider">&nbsp;</a>
  2946.                             <?php
  2947.    
  2948.                                 $i = 0;
  2949.                                 $pix_array_term_slide = get_pix_option('pix_array_term_slide_'. $term->term_id.'_');
  2950.                                 while($i<count($pix_array_term_slide)){
  2951.                                     if($pix_array_term_slide[$i]=='') { $style=' style="display:none"'; } else { $style=''; }
  2952.                                     echo '<div id="pix_array_term_slide_'. $term->term_id.'_'.$i.'" class="rm_upload_image">
  2953.                                    <div class="handle"></div>
  2954.                                    <div class="image_thumb"><img src="'.get_pix_thumb($pix_array_term_slide[$i], 'exTh').'" alt="Preview"'. $style .' /></div>
  2955.                                    <input name="pix_array_term_slide_'. $term->term_id.'_['.$i.']" type="text" value="'.$pix_array_term_slide[$i].'">
  2956.                                    <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  2957.                                    <a href="#" class="button-secondary remove">Remove</a></div>';
  2958.                                     $i++;
  2959.                                 }
  2960.                             ?>
  2961.                             </div><!-- .sorting -->
  2962.                         </div><!-- .toggle -->
  2963.  
  2964.                         <div class="toggle pix_array_term_slide_<?php echo $term->term_id; ?>" id="pix_array_term_slide_<?php echo $term->term_id; ?>" data-type="single">
  2965.                             <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadimage.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2966.                             <br>
  2967.                            
  2968.                             <div id="pix_array_term_single_<?php echo $term->term_id; ?>" class="rm_upload_image">
  2969.                                 <?php if(get_pix_option('pix_array_term_single_'.$term->term_id)=='') { $style=' style="display:none"'; } else { $style=''; } ?>
  2970.                                 <div class="image_thumb"><img src="<?php echo get_pix_thumb(get_pix_option('pix_array_term_single_'.$term->term_id), 'exTh'); ?>" alt="Preview"<?php echo $style; ?> /></div>
  2971.                                 <input name="pix_array_term_single_<?php echo $term->term_id; ?>" type="text" value="<?php echo get_pix_option('pix_array_term_single_'.$term->term_id); ?>">
  2972.                                 <a class="button-secondary pix_upload_image_button" href="#">Upload Image</a>
  2973.                             </div><!-- .rm_upload_image -->
  2974.                         </div><!-- .toggle -->
  2975.  
  2976.                         <div class="toggle pix_array_term_slide_<?php echo $term->term_id; ?>" id="pix_array_term_slide_<?php echo $term->term_id; ?>" data-type="video">
  2977.                            
  2978.                             <label for="pix_array_term_video_<?php echo $term->term_id; ?>">
  2979.                                 Upload your video
  2980.                                 <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/uploadvideo.php?TB_iframe=true&width=600&height=550" class="info thickbox">how to</a>)</small>
  2981.                             </label>
  2982.                            
  2983.                             <div class="rm_upload_video">
  2984.                                 <input name="pix_array_term_video_<?php echo $term->term_id; ?>" type="text" value="<?php echo get_pix_option('pix_array_term_video_'.$term->term_id); ?>"><br>
  2985.                                 <a class="button-secondary pix_upload_video_button" href="#">Upload Video</a>
  2986.                             </div><!-- .rm_upload_video -->
  2987.  
  2988.                             <label for="pix_array_term_video_start_<?php echo $term->term_id; ?>">
  2989.                                 Auto start for your video
  2990.                             </label>
  2991.                             <input type="hidden" value="0" name="pix_array_term_video_start_<?php echo $term->term_id; ?>">
  2992.                             <input type="checkbox" value="true" name="pix_array_term_video_start_<?php echo $term->term_id; ?>"<?php if(get_pix_option('pix_array_term_video_start_'.$term->term_id)=="true") { ?> checked="checked"<?php } ?>>
  2993.                            
  2994.                         <div class="clear"></div>
  2995.  
  2996.                             <label for="pix_array_term_video_loop_<?php echo $term->term_id; ?>">
  2997.                                 Loop for your video
  2998.                             </label>
  2999.                             <input type="hidden" value="0" name="pix_array_term_video_loop_<?php echo $term->term_id; ?>">
  3000.                             <input type="checkbox" value="true" name="pix_array_term_video_loop_<?php echo $term->term_id; ?>"<?php if(get_pix_option('pix_array_term_video_loop_'.$term->term_id)=="true") { ?> checked="checked"<?php } ?>>
  3001.                            
  3002.                         </div><!-- .toggle -->
  3003.  
  3004.  
  3005.                         <div class="toggle pix_array_term_slide_<?php echo $term->term_id; ?>" id="pix_array_term_slide_<?php echo $term->term_id; ?>" data-type="googlemap">
  3006.                             <label for="pix_array_term_googlemap_<?php echo $term->term_id; ?>">
  3007.                                 Coordinates <small>(<a href="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/googlemap-coords.php" class="pix_tips_ajax topLeft"  data-rel="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/googlemap-coords.php" data-width="520">how can I get them?</a>)</small>
  3008.                             </label>
  3009.                            
  3010.                             <input name="pix_array_term_googlemap_<?php echo $term->term_id; ?>" type="text" value="<?php echo get_pix_option('pix_array_term_googlemap_'.$term->term_id); ?>">
  3011.    
  3012.    
  3013.                             <div class="slider_div googlemap">
  3014.                                 <label for="pix_array_term_googlemap_zoom_<?php echo $term->term_id; ?>">Zoom</label>
  3015.                                 <input type="text" id="pix_array_term_googlemap_zoom_<?php echo $term->term_id; ?>" name="pix_array_term_googlemap_zoom_<?php echo $term->term_id; ?>" class="slider_input" value="<?php echo get_pix_option('pix_array_term_googlemap_zoom_'.$term->term_id); ?>" />
  3016.                                 <div class="slider_cursor"></div>
  3017.                             </div><!-- .slider_div -->
  3018.                             <div class="clear"></div>
  3019.    
  3020.                             <label for="pix_array_term_googlemap_indications_<?php echo $term->term_id; ?>">Indications</label>
  3021.                             <textarea name="pix_array_term_googlemap_indications_<?php echo $term->term_id; ?>" id="pix_array_term_googlemap_indications_<?php echo $term->term_id; ?>"><?php echo stripslashes(get_pix_option( 'pix_array_term_googlemap_indications_'.$term->term_id )); ?></textarea>
  3022.                            
  3023.                             <div class="clear"></div>
  3024.                             <label for="pix_array_term_googlemap_type_<?php echo $term->term_id; ?>">Type</label>
  3025.                             <select id="pix_array_term_googlemap_type_<?php echo $term->term_id; ?>" name="pix_array_term_googlemap_type_<?php echo $term->term_id; ?>">
  3026.                                 <option value="HYBRID"<?php if (get_pix_option('pix_array_term_googlemap_type_'.$term->term_id) == 'HYBRID') { echo ' selected="selected"'; } ?>>hybrid</option>
  3027.                                 <option value="SATELLITE"<?php if (get_pix_option('pix_array_term_googlemap_type_'.$term->term_id) == 'SATELLITE') { echo ' selected="selected"'; } ?>>satellite</option>
  3028.                                 <option value="ROADMAP"<?php if (get_pix_option('pix_array_term_googlemap_type_'.$term->term_id) == 'ROADMAP') { echo ' selected="selected"'; } ?>>road map</option>
  3029.                                 <option value="TERRAIN"<?php if (get_pix_option('pix_array_term_googlemap_type_'.$term->term_id) == 'TERRAIN') { echo ' selected="selected"'; } ?>>terrain</option>
  3030.                             </select>
  3031.                         </div><!-- .toggle -->
  3032.  
  3033.                     </div><!-- .block_separator -->
  3034.                 </div><!-- #term-tab-<?php echo $term->term_id; ?> -->
  3035.                 <?php } } ?>
  3036.                
  3037.                     <input name="save" type="submit" value="&nbsp;" class="input-save" />
  3038.                     <input type="hidden" name="action" value="save" />
  3039.                 </form>
  3040.             </div><!-- #portfolio-main-tab -->
  3041.  
  3042.             <div id="translation-tab">
  3043.                 <ul>
  3044.                     <li>
  3045.                         <a href="#download-poedit-tab">Poedit</a>
  3046.                     </li>
  3047.                     <li>
  3048.                         <a href="#open-po-tab">Open .po file</a>
  3049.                     </li>
  3050.                     <li>
  3051.                         <a href="#translate-strings">Translate</a>
  3052.                     </li>
  3053.                     <li>
  3054.                         <a href="#save-po">Save and use</a>
  3055.                     </li>
  3056.                 </ul>
  3057.                 <form method="post">
  3058.                 <div id="download-poedit-tab">
  3059.                     <div class="block_separator">
  3060.                         <p>First of all download and install Poedit (of course I recommend making a donation to the developer): go to <a href="http://www.poedit.net/download.php" title="Go to Poedit" target="_blank" class="toleft">http://www.poedit.net/download.php</a></p>
  3061.                         <p>
  3062.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/images/poedit-screenshot.jpg">
  3063.                         </p>
  3064.                     </div><!-- .block_separator -->
  3065.                 </div><!-- #download-poedit-tab -->
  3066.  
  3067.                 <div id="open-po-tab">
  3068.                     <div class="block_separator">
  3069.                         <p>Launch Poedit and open &quot;delight.po&quot; (you'll find it in: delight / languages)</p>
  3070.                         <p>
  3071.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/images/open-poedit.jpg">
  3072.                         </p>
  3073.                     </div><!-- .block_separator -->
  3074.                 </div><!-- #open-po-tab -->
  3075.  
  3076.                 <div id="translate-strings">
  3077.                     <div class="block_separator">
  3078.                         <p>Now you must select all the original strings and type, in the field below each of them, your translation. See the image below:</p>
  3079.                         <p>
  3080.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/images/translate-poedit.jpg">
  3081.                         </p>
  3082.                     </div><!-- .block_separator -->
  3083.                 </div><!-- #translate-strings -->
  3084.                
  3085.                 <div id="save-po">
  3086.                     <div class="block_separator">
  3087.                         <p>Once you translated all the strings, you must save the file, according to the language you used for your Wordpress installation. If you are using the italian, you must save the file as &quot;it_IT.po&quot;, if you are using the german you must save the file as &quot;de_DE&quot; and so on...</p>
  3088.                         <p><strong>Remember:</strong> open your file wp-config.php and copy the value for WPLANG:</p>
  3089.                         <p>
  3090.                             <img src="<?php echo get_bloginfo('stylesheet_directory'); ?>/functions/documentation/images/define_wplang.jpg">
  3091.                         </p>
  3092.                         <p>
  3093.                             Save the file in the same &quot;languages&quot; folder where you found &quot;delight.po&quot;, with the value of WPLANG and .po extension. So, in this case, you must save the file as: &quot;it_IT.po&quot;.
  3094.                         </p>
  3095.                         <p>
  3096.                             A file with .mo extension will be generated automatically. Upload to the server both files, .po and .mo. That's all.
  3097.                         </p>
  3098.                         <p>
  3099.                             <strong>N.B.:</strong> I recommend you repeating the procedure after every update of Delight because the original localization file can change each time (always check the changelog).
  3100.                         </p>
  3101.                     </div><!-- .block_separator -->
  3102.                 </div><!-- #save-po -->
  3103.                 </form>
  3104.             </div><!-- #translation-tab -->
  3105.  
  3106.             <div id="styles-tab">
  3107.                 <ul>
  3108.                    
  3109.                 </ul>
  3110.                 <form method="post">
  3111.                 <div>
  3112.                     <div class="block_separator">
  3113.                         <label for="pix_custom_style">Type your rules</label>
  3114.                         <textarea name="pix_custom_style" id="pix_custom_style" class="pix_editor"><?php echo stripslashes(get_pix_option( 'pix_custom_style')  ); ?></textarea>
  3115.                     </div><!-- .block_separator -->
  3116.                 </div>
  3117.                     <input name="save" type="submit" value="&nbsp;" class="input-save" />
  3118.                     <input type="hidden" name="action" value="save" />
  3119.                 </form>
  3120.             </div><!-- #styles-tab -->
  3121.  
  3122.             <div id="help-tab">
  3123.                 <ul>
  3124.                     <li>
  3125.                         <a href="#blog-help-tab">Blog</a>
  3126.                     </li>
  3127.                     <li>
  3128.                         <a href="#portfolio-help-tab">Portfolio</a>
  3129.                     </li>
  3130.                 </ul>
  3131.                 <form method="post">
  3132.                 <div id="blog-help-tab">
  3133.                     <div class="block_separator">
  3134.                         <label for="pix_category_hack">How many categories do you need to set</label>
  3135.                         <small>Keep &quot;ctrl&quot; button on PC or &quot;cmd&quot; button on MAC for multiple selections<br><br>
  3136.                         If you can't save anything in Delight -> Blog, maybe it's because you created many categories and when you click the "Save" button too much data are sent to the database. Here you can try to include some categories only and see if this fix the problem</small>
  3137.                         <select id="pix_category_hack" multiple size="10" style="height:auto!important" name="pix_category_hack[]">
  3138.                             <option value="all"<?php if (is_array(get_pix_option('pix_category_hack')) && in_array('all',get_pix_option('pix_category_hack'))) { echo ' selected="selected"'; } ?>>All the categories</option>
  3139.                             <?php
  3140.                             $categories =  get_categories();
  3141.                             foreach ($categories as $category) { ?>
  3142.                                 <option value="<?php echo $category->term_id; ?>"<?php if (is_array(get_pix_option('pix_category_hack')) && in_array($category->term_id,get_pix_option('pix_category_hack'))) { echo ' selected="selected"'; } ?>><?php echo $category->cat_name; ?></option>
  3143.                             <?php } ?>
  3144.                         </select>
  3145.                     </div><!-- .block_separator -->
  3146.                 </div><!-- #blog-help-tab -->
  3147.  
  3148.                 <div id="portfolio-help-tab">
  3149.                     <div class="block_separator">
  3150.                         <label for="pix_gallery_hack">How many galleries do you need to set</label>
  3151.                         <small>Keep &quot;ctrl&quot; button on PC or &quot;cmd&quot; button on MAC for multiple selections<br><br>
  3152.                         If you can't save anything in Delight -> Portfolio, maybe it's because you created many galleries and when you click the "Save" button too much data are sent to the database. Here you can try to include some galleries only and see if this fix the problem</small>
  3153.                         <select id="pix_gallery_hack" multiple size="6" style="height:auto!important" name="pix_gallery_hack[]">
  3154.                             <option value="all"<?php if (is_array(get_pix_option('pix_gallery_hack')) && in_array('all',get_pix_option('pix_gallery_hack'))) { echo ' selected="selected"'; } ?>>All the portfolio items</option>
  3155.                             <?php $terms = get_terms("gallery");
  3156.                             $count = count($terms);
  3157.                             if($count > 0){
  3158.                                 foreach ($terms as $term) { ?>
  3159.                                     <option value="<?php echo $term->slug; ?>"<?php if (is_array(get_pix_option('pix_gallery_hack')) && in_array($term->slug,get_pix_option('pix_gallery_hack'))) { echo ' selected="selected"'; } ?>><?php echo $term->name; ?></option>
  3160.                            
  3161.                                 <?php }
  3162.                             } ?>
  3163.                         </select>
  3164.                     </div><!-- .block_separator -->
  3165.                 </div><!-- #portfolio-help-tab -->
  3166.                
  3167.                     <input name="save" type="submit" value="&nbsp;" class="input-save" />
  3168.                     <input type="hidden" name="action" value="save" />
  3169.                 </form>
  3170.             </div><!-- #help-tab -->
  3171.         </div><!-- #pix_body -->
  3172. <?php if ($current_user->display_name != 'pix_test' && $current_user->display_name != 'manu_test') { ?>
  3173.     <form method="post">
  3174.         <input id="pix_admin_reset" type="button" value="&nbsp;" class="input-reset" />
  3175.         <input style="display:none" name="reset" id="pix_admin_reset_hidden" type="submit" value="reset" />
  3176.         <input type="hidden" name="action" value="reset" />
  3177.     </form>
  3178. <?php } ?>
  3179.  
  3180.  
  3181. </div><!-- #pix_wrap -->
  3182.  
  3183.  
  3184. <?php
  3185.  
  3186. }
  3187.  
  3188.  
  3189.  
  3190.  
  3191.    
  3192. if ($current_user->display_name == 'pix_test' || $current_user->display_name == 'manu_test') {
  3193.    
  3194.     foreach ($_POST as $key => $value) {
  3195.         $_SESSION[$key] = $value;
  3196.     }
  3197.        
  3198.     pix_admin();
  3199.  
  3200.  
  3201.  
  3202.  
  3203. } else {
  3204.  
  3205.  
  3206.  
  3207.  
  3208.     if ( $_GET['page'] ) {
  3209.         if ( isset($_REQUEST['action']) && $_REQUEST['action']=='save' ) {
  3210.      
  3211.             foreach ($_POST as $key => $value) {
  3212.                 if ( preg_match("/pix_array/", $key) ) {
  3213.                     delete_option($key);
  3214.                     if(!get_option($key)) {
  3215.                         add_option($key, $value);
  3216.                     } else {
  3217.                         update_option($key, $value);
  3218.                     }
  3219.                 }
  3220.             }
  3221.             foreach ($options as $value) {
  3222.                 if(isset($_REQUEST[$value['id']])) {
  3223.                     update_option($value['id'], $_REQUEST[$value['id']]);
  3224.                 }
  3225.             }
  3226.    
  3227.    
  3228.    
  3229.             $get_sidebar_options = sidebar_generator_pix::get_sidebars();
  3230.             $sidebar_name = str_replace(array("\n","\r","\t"),'',$_POST['sidebar_generator_0']);
  3231.             $sidebar_id = sidebar_generator_pix::name_to_class($sidebar_name);
  3232.             if($sidebar_id == '' ){
  3233.                 $options_sidebar = $get_sidebar_options;
  3234.             }else{
  3235.                 if(isset($get_sidebar_options[$sidebar_id])){
  3236.                    
  3237.                 }
  3238.                 if ( is_array($get_sidebar_options) ) {
  3239.                     $new_sidebar_gen[$sidebar_id] = $sidebar_id;
  3240.                     $options_sidebar = array_merge($get_sidebar_options, (array) $new_sidebar_gen);
  3241.                 }else{
  3242.                     $options_sidebar[$sidebar_id] = $sidebar_id;
  3243.                 }      
  3244.              }
  3245.            
  3246.             update_option( $shortname.'_sidebar_generator', $options_sidebar);
  3247.      
  3248.      
  3249.     }
  3250.     if ( isset($_REQUEST['action']) && $_REQUEST['action']=='reset' ) {
  3251.      
  3252.         foreach ($options as $value) {
  3253.             update_option($value['id'], $value['std']);
  3254.         }
  3255.      
  3256.      
  3257.     }
  3258.     }
  3259.        
  3260.         pix_admin();
  3261.     }
  3262.      
  3263.      
  3264. }
  3265.  
  3266.  
  3267. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement