1. <?php  
  2.     add_theme_support('custom-background');
  3.     add_theme_support('automatic-feed-links');
  4.     if ( ! isset( $content_width ) )
  5.     $content_width = 630;
  6.  
  7. //Post Thumbnail   
  8.  
  9.    add_theme_support( 'post-thumbnails' );
  10.  
  11. //Register Menus
  12.     register_nav_menus( array(
  13.         'primary' => __( 'Primary Navigation', 'zenon' ),
  14.         'footer' => __( 'Footer Navigation', 'zenon' )
  15.     ) );
  16.    
  17.    
  18. //Include CSS
  19. function znn_customstyle() { ?>
  20.  
  21. <?php if(of_get_option('prmtrans_checkbox') == "1"){ ?>    
  22. <style type="text/css">
  23. #zn_slider, .midrow_blocks, .lay1 .hentry, .lay2, .lay3 .post_image, .lay3 .post_content, .single_post, .commentlist li, #commentform, #commentform label, #sidebar .widgets .widget, #footer, #copyright, .amp_current, .amp_page:hover, .amp_next:hover, .amp_prev:hover, .page-numbers:hover, .navigation .current, #related_wrap ul, .trigger_wrap, .search_term, ol#controls li, .amp_page, .amp_next, .amp_prev, .page-numbers{ background:url(<?php echo get_template_directory_uri(); ?>/images/trans_black4.png) repeat; }
  24. .comment-form-comment textarea, .comment-form-author input, .comment-form-email input, .comment-form-url input{background:url(<?php echo get_template_directory_uri(); ?>/images/trans_black3.png) repeat;}
  25. .lay3_bridge{ display:none;}
  26.  
  27. .skew_bottom_big, .skew_bottom_right, .skew_top_big, .skew_top_right, .single_skew, .single_skew .skew_bottom_big, .single_skew .skew_bottom_right, .depth-1 .single_skew, .single_skew_comm, .single_skew_comm .skew_top_big, .single_skew_comm .skew_top_right, #respond_wrap .single_skew, #respond_wrap .single_skew_comm{display:none!important;}
  28. .commentlist .depth-1{ margin-top:10px;}
  29. .midrow_blocks{ margin-top:30px;}
  30. .commentlist li{border-bottom:1px solid #ececec; border-top:1px solid #ececec;}
  31. </style>
  32. <?php } ?>
  33.  
  34. <?php if(of_get_option('rounded_checkbox') == "1"){ ?>    
  35. <style type="text/css">
  36. .skew_bottom_big, .skew_bottom_right, .skew_top_big, .skew_top_right, .single_skew, .single_skew .skew_bottom_big, .single_skew .skew_bottom_right, .depth-1 .single_skew, .single_skew_comm, .single_skew_comm .skew_top_big, .single_skew_comm .skew_top_right, #respond_wrap .single_skew, #respond_wrap .single_skew_comm{display:none!important;}
  37. .commentlist .depth-1{ margin-top:10px;}
  38. .midrow_blocks{ margin-top:30px;}
  39. .commentlist li{border-bottom:1px solid #ececec; border-top:1px solid #ececec;}
  40.  
  41. .home #topmenu{border-radius: 8px 8px 0 0; -moz-border-radius: 8px 8px 0 0; -webkit-border-radius: 8px 8px 0 0;behavior: url(<?php echo get_template_directory_uri(); ?>/images/PIE.htc);}
  42. #zn_slider, #topmenu ul li ul{border-radius: 0 0 8px 8px; -moz-border-radius: 0 0 8px 8px; -webkit-border-radius: 0 0 8px 8px;behavior: url(<?php echo get_template_directory_uri(); ?>/images/PIE.htc);}
  43. #topmenu, .midrow_blocks, #footer, #copyright, .lay1 .hentry, .single_post, #sidebar .widgets .widget, .commentlist .depth-1, #commentform, .comment-form-comment textarea, .form-submit input, #searchsubmit, #related_wrap ul, .znn_paginate span, .znn_paginate a, .navigation a, .navigation span, .lay2, .lay3 .post_image, .lay3 .post_content, .comment-form-author input, .comment-form-email input, .comment-form-url input, .commentlist li ul li .comment-body{border-radius:8px; -moz-border-radius:8px; -webkit-border-radius:8px;behavior: url(<?php echo get_template_directory_uri(); ?>/images/PIE.htc);}
  44. #commentform label{border-radius: 8px 0 0 8px; -moz-border-radius: 8px 0 0 8px; -webkit-border-radius: 8px 0 0 8px;behavior: url(<?php echo get_template_directory_uri(); ?>/images/PIE.htc);}
  45.  
  46. </style>
  47. <?php } ?>
  48.  
  49. <?php if(of_get_option('skewed_checkbox') == "0"){ ?>    
  50. <style type="text/css">
  51. .skew_bottom_big, .skew_bottom_right, .skew_top_big, .skew_top_right, .single_skew, .single_skew .skew_bottom_big, .single_skew .skew_bottom_right, .depth-1 .single_skew, .single_skew_comm, .single_skew_comm .skew_top_big, .single_skew_comm .skew_top_right, #respond_wrap .single_skew, #respond_wrap .single_skew_comm{display:none!important;}
  52. .commentlist .depth-1{ margin-top:10px;}
  53. .midrow_blocks{ margin-top:30px;}
  54. .commentlist li{border-bottom:1px solid #ececec; border-top:1px solid #ececec;}
  55. </style>
  56. <?php } else { ?>  
  57. <style type="text/css">#zn_slider{ border:none;}</style>
  58. <?php } ?>
  59.  
  60. <?php }
  61.  
  62. add_action( 'wp_head', 'znn_customstyle' );
  63.  
  64.    
  65. function znn_mobile_css() {
  66. if ( !is_admin() ) {   
  67. wp_enqueue_style( 'znn_mobile', get_template_directory_uri() . '/mobile.css', false, '1.0', 'only screen and (max-width: 400px)' );
  68.     }
  69. }
  70. add_action('wp_enqueue_scripts', 'znn_mobile_css');
  71.  
  72. function znn_ie_css() {
  73. if ( !is_admin() ) {
  74.     wp_register_style( 'znn_ie', get_template_directory_uri().'/css/ie.css', false, 1.5 );
  75.     $GLOBALS['wp_styles']->add_data( 'znn_ie', 'conditional', 'IE 8' );
  76.     wp_enqueue_style( 'znn_ie' );
  77.     }
  78. }
  79. add_action('wp_enqueue_scripts', 'znn_ie_css');
  80.  
  81. function znn_other_css() {
  82. if ( !is_admin() ) {
  83. wp_enqueue_style('customfont',get_template_directory_uri().'/fonts/'.$zn_fonts = of_get_option('font_select', 'yanone_kaffeesatz' ).'.css');
  84. if(of_get_option('disslight_checkbox') == "0"){ ?><?php wp_enqueue_style('fancybox',get_template_directory_uri().'/css/fancybox.css'); }
  85.     }
  86. }
  87. add_action('wp_enqueue_scripts', 'znn_other_css'); 
  88.    
  89. //Load Java Scripts to header
  90. function znn_head_js() {
  91. if ( !is_admin() ) {
  92. wp_enqueue_script('jquery');
  93. wp_enqueue_script('znn_js',get_template_directory_uri().'/zenon.js');
  94. wp_enqueue_script('znn_other',get_template_directory_uri().'/js/other.js');
  95. wp_enqueue_script('znn_transform',get_template_directory_uri().'/js/jquery.transform.min.js');
  96. if(of_get_option('slider_select') == "easyslider"){ wp_enqueue_script('znn_easyslider',get_template_directory_uri().'/js/easyslider.js');}
  97. if(of_get_option('disslight_checkbox') == "0"){ wp_enqueue_script('znn_fancybox',get_template_directory_uri().'/js/fancybox.js'); }
  98.  
  99.     }
  100. }
  101. add_action('wp_enqueue_scripts', 'znn_head_js');
  102.  
  103. //Load Java Scripts to Footer
  104. add_action('wp_footer', 'znn_load_js');
  105.  
  106. function znn_load_js() { ?>
  107.  
  108. <?php if(of_get_option('slider_select') == "easyslider"){ ?>
  109.     <script type="text/javascript">
  110.         /* <![CDATA[ */
  111.     jQuery(function(){
  112.     jQuery("#slider").easySlider({
  113.         auto: true,
  114.         continuous: true,
  115.         numeric: true,
  116.         pause: <?php echo of_get_option('sliderspeed_text'); ?>
  117.         });
  118.     });
  119.     /* ]]> */
  120.     </script>
  121. <?php } ?>
  122.    
  123.  <?php if(of_get_option('stickm_checkbox') == "1"){ ?>  
  124.     <script type="text/javascript">
  125.     /* <![CDATA[ */  
  126.     //Sticky MENU
  127.     jQuery(window).load(function($) {
  128.     if (jQuery("body").hasClass('logged-in')) {
  129.             jQuery("#topmenu").sticky({topSpacing:27});
  130.         }
  131.         else {
  132.             jQuery("#topmenu").sticky({topSpacing:0});
  133.     }
  134.     jQuery("#topmenu").css({"z-index":"11"});
  135.     });
  136.     //JQUERY Site title Animation
  137.     jQuery(window).scroll(function() {
  138.         if (jQuery(this).scrollTop() < 150) {
  139.             jQuery(".scroll_title").hide();
  140.         }
  141.         else {
  142.             jQuery(".scroll_title").show('fast');
  143.         }
  144.     });
  145.     /* ]]> */
  146.     </script>
  147. <?php } ?>
  148.  
  149. <?php if(of_get_option('ajaxd_checkbox') == "1"){ ?>
  150. <script type="text/javascript">
  151. /* <![CDATA[ */
  152. //AJAX PAGINATION
  153. jQuery(document).ready(function(){
  154. jQuery('.amp_next, .amp_prev').css({"display":"none"});
  155. jQuery('.znn_paginate a:first').each(function () {
  156.     var href = jQuery(this).attr('href');
  157.     jQuery(this).attr('href', href + '?paged=1');
  158. });
  159.  
  160. jQuery('.znn_paginate a').each(function(){
  161.         this.href = this.href.replace('/page/', '?paged=');
  162. });
  163.     jQuery('.znn_paginate a').live('click', function(e)  {
  164.     jQuery('.znn_paginate a, span.amp_page').removeClass('amp_current'); // remove if already existant
  165.     jQuery(this).addClass('amp_current');
  166.  
  167. <?php if(of_get_option('layout_images') == "layout1"){ ?>
  168.     e.preventDefault();
  169.             var link = jQuery(this).attr('href');
  170.     jQuery('.lay1_wrap').html('<div class="zn_ajaxwrap"><div class="zn_ajax"></div></div>').load(link + '.lay1_wrap .post', function() {
  171.             var divs = jQuery(".lay1 .post");
  172.             for(var i = 0; i < divs.length; i+=3) {
  173.               divs.slice(i, i+3).wrapAll("<div class='zn_row'></div>"); }
  174.     jQuery('.lay1_wrap').fadeIn(500); });
  175. <?php } ?> 
  176.    
  177.     });
  178. });  // end ready function
  179. /* ]]> */
  180. </script>
  181. <?php } ?>
  182.  
  183.  
  184.     <?php }
  185.  
  186. //Zenon get the first image of the post Function
  187. function znn_get_images($overrides = '', $exclude_thumbnail = false)
  188. {
  189.     return get_posts(wp_parse_args($overrides, array(
  190.         'numberposts' => -1,
  191.         'post_parent' => get_the_ID(),
  192.         'post_type' => 'attachment',
  193.         'post_mime_type' => 'image',
  194.         'order' => 'ASC',
  195.         'exclude' => $exclude_thumbnail ? array(get_post_thumbnail_id()) : array(),
  196.         'orderby' => 'menu_order ID'
  197.     )));
  198. }
  199.  
  200.  
  201. // Change what's hidden by default
  202. add_filter('default_hidden_meta_boxes', 'znn_hidden_meta_boxes', 10, 2);
  203. function znn_hidden_meta_boxes($hidden, $screen) {
  204.     if ( 'post' == $screen->base || 'page' == $screen->base || 'slider' == $screen->base  )
  205.         $hidden = array('slugdiv', 'trackbacksdiv', 'commentstatusdiv', 'commentsdiv', 'authordiv', 'revisionsdiv');
  206.         // removed 'postcustom',
  207.     return $hidden;
  208. }
  209.  
  210.  
  211. //Custom Excerpt Length
  212. function znn_excerptlength_teaser($length) {
  213.     return 33;
  214. }
  215. function znn_excerptlength_index($length) {
  216.     return 12;
  217. }
  218. function znn_excerptmore($more) {
  219.     return '...';
  220. }
  221.  
  222. function znn_excerpt($length_callback='', $more_callback='') {
  223.     global $post;
  224.     if(function_exists($length_callback)){
  225.         add_filter('excerpt_length', $length_callback);
  226.     }
  227.     if(function_exists($more_callback)){
  228.         add_filter('excerpt_more', $more_callback);
  229.     }
  230.     $output = get_the_excerpt();
  231.     $output = apply_filters('wptexturize', $output);
  232.     $output = apply_filters('convert_chars', $output);
  233.     $output = '<p>'.$output.'</p>';
  234.     echo $output;
  235. }
  236.  
  237. //SIDEBAR
  238. function znn_widgets_init(){
  239.     register_sidebar(array(
  240.     'name'          => __('Right Sidebar', 'zenon'),
  241.     'id'            => 'sidebar',
  242.     'description'   => __('Right Sidebar', 'zenon'),
  243.     'before_widget' => '<li id="%1$s" class="widget %2$s"><div class="widget_top"></div><div class="widget_wrap">',
  244.     'after_widget'  => '</div><div class="widget_bottom"></div>',
  245.     'before_title'  => '<h3 class="widgettitle">',
  246.     'after_title'   => '</h3>'
  247.     ));
  248.    
  249.     register_sidebar(array(
  250.     'name'          => __('Footer Widgets', 'zenon'),
  251.     'id'            => 'foot_sidebar',
  252.     'description'   => __('Widget Area for the Footer', 'zenon'),
  253.     'before_widget' => '<li id="%1$s" class="widget %2$s"><div class="widget_wrap">',
  254.     'after_widget'  => '</div>',
  255.     'before_title'  => '<h3 class="widgettitle">',
  256.     'after_title'   => '</h3>'
  257.     ));
  258. }
  259.  
  260. add_action( 'widgets_init', 'znn_widgets_init' );
  261.  
  262.  
  263. //ZENON COMMENTS
  264. function znn_comment($comment, $args, $depth) {
  265.    $GLOBALS['comment'] = $comment; ?>
  266.    <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
  267.    <div class="single_skew_comm">
  268.         <div class="skew_top_big"></div>
  269.         <div class="skew_top_right"></div>
  270.     </div>
  271.      
  272.      <div id="comment-<?php comment_ID(); ?>" class="comment-body">
  273.       <div class="comment-author vcard">
  274.       <div class="avatar"><?php echo get_avatar($comment,$size='50' ); ?></div>
  275.       </div>
  276.       <div class="comment-meta commentmetadata">
  277.       <?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()) ?> <?php _e('on' , 'zenon'); ?> <a class="comm_date"><?php printf(get_comment_date()) ?></a> <a class="comm_time"><?php printf( get_comment_time()) ?></a>
  278.         </div>
  279.       <?php if ($comment->comment_approved == '0') : ?>
  280.          <em><?php _e('Your comment is awaiting moderation.', 'zenon') ?></em>
  281.          <br />
  282.       <?php endif; ?>
  283.  
  284.       <div class="org_comment"><?php comment_text() ?>
  285.         <div class="comm_meta_reply">
  286.         <div class="comm_reply"><?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?></div>
  287.         <div class='comm_edit'><?php edit_comment_link(__('Edit', 'zenon'),'  ','') ?></div></div>
  288.      </div>
  289.      
  290.      </div><div class="single_skew">
  291.         <div class="skew_bottom_big"></div>
  292.         <div class="skew_bottom_right"></div>
  293.     </div>
  294. <?php
  295.         }
  296.        
  297. //ZENON TRACKBACKS & PINGS
  298. function znn_ping($comment, $args, $depth) {
  299.  
  300. $GLOBALS['comment'] = $comment; ?>
  301.    
  302.    <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
  303.    
  304.      <div id="comment-<?php comment_ID(); ?>" class="comment-body">
  305.       <?php if ($comment->comment_approved == '0') : ?>
  306.          <em><?php _e('Your comment is awaiting moderation.', 'zenon') ?></em>
  307.          <br />
  308.       <?php endif; ?>
  309.  
  310.       <div class="org_ping">
  311.         <?php printf(__('<cite class="citeping">%s</cite> <span class="says">:</span>'), get_comment_author_link()) ?>
  312.         <?php comment_text() ?>
  313.             <div class="comment-meta commentmetadata">
  314.             <a class="comm_date"><?php printf(get_comment_date()) ?></a>
  315.             <a class="comm_time"><?php printf( get_comment_time()) ?></a>
  316.             <div class='comm_edit'><?php edit_comment_link(__('Edit', 'zenon'),'  ','') ?></div></div>
  317.      </div>
  318.      </div>
  319.      
  320.      
  321. <?php }
  322.  
  323. //Add Custom Slider Post
  324. add_action('init', 'znn_slider_register');
  325.  
  326. function znn_slider_register() {
  327.  
  328.     $labels = array(
  329.         'name' => __('Slider', 'zenon'),
  330.         'singular_name' => __('Slider Item', 'zenon'),
  331.         'add_new' => __('Add New', 'zenon'),
  332.         'add_new_item' => __('Add New Slide', 'zenon'),
  333.         'edit_item' => __('Edit Slides', 'zenon'),
  334.         'new_item' => __('New Slider', 'zenon'),
  335.         'view_item' => __('View Sliders', 'zenon'),
  336.         'search_items' => __('Search Sliders', 'zenon'),
  337.         'menu_icon' => get_stylesheet_directory_uri() . 'images/article16.png',
  338.         'not_found' =>  __('Nothing found', 'zenon'),
  339.         'not_found_in_trash' => __('Nothing found in Trash', 'zenon'),
  340.         'parent_item_colon' => ''
  341.     );
  342.  
  343.     $args = array(
  344.         'labels' => $labels,
  345.         'public' => true,
  346.         'exclude_from_search' => true,
  347.         'publicly_queryable' => true,
  348.         'show_ui' => true,
  349.         'query_var' => true,
  350.         'menu_icon' => get_stylesheet_directory_uri() . '/images/slides.png',
  351.         'rewrite' => false,
  352.         'capability_type' => 'post',
  353.         'hierarchical' => false,
  354.         'menu_position' => null,
  355.         'supports' => array('title','excerpt','thumbnail'),
  356.         'register_meta_box_cb' => 'znn_add_meta'
  357.       );
  358.  
  359.     register_post_type( 'slider' , $args );
  360. }
  361. //Slider Link Meta Box
  362. add_action("admin_init", "znn_add_meta");
  363.  
  364. function znn_add_meta(){
  365.   add_meta_box("znn_credits_meta", "Link", "znn_credits_meta", "slider", "normal", "low");
  366.   add_meta_box("znn_da_title_meta", "Danish Title", "znn_da_title_meta", "slider", "normal", "low");  
  367.   add_meta_box("znn_da_link_meta", "Danish Link", "znn_da_link_meta", "slider", "normal", "low");  
  368.   add_meta_box("znn_da_text_meta", "Danish Excerpt", "znn_da_text_meta", "slider", "normal", "low");  
  369. }
  370.  
  371.  
  372. function znn_credits_meta( $post ) {
  373.  
  374.   // Use nonce for verification
  375.   $znndata = get_post_meta($post->ID, 'znn_slide_link', TRUE);
  376.   wp_nonce_field( 'znn_meta_box_nonce', 'meta_box_nonce' );
  377.  
  378.   // The actual fields for data entry
  379.   echo '<input type="text" id="znn_sldurl" name="znn_sldurl" value="'.$znndata.'" size="75" />';
  380. }
  381.  
  382. //Save Slider Link Value
  383. add_action('save_post', 'znn_save_details');
  384. function znn_save_details($post_id){
  385.   if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
  386.       return;
  387.  
  388. if( !isset( $_POST['meta_box_nonce'] ) || !wp_verify_nonce( $_POST['meta_box_nonce'], 'znn_meta_box_nonce' ) ) return;
  389.  
  390.   if ( !current_user_can( 'edit_post', $post_id ) )
  391.         return;
  392.  
  393. $znndata = esc_url( $_POST['znn_sldurl'] );
  394. update_post_meta($post_id, 'znn_slide_link', $znndata);
  395. return $znndata;  
  396. }
  397.  
  398. function znn_da_title_meta( $post ) {
  399.  
  400.   // Use nonce for verification
  401.   $znntitle = get_post_meta($post->ID, 'znn_da_title', TRUE);
  402.   wp_nonce_field( 'znn_meta_box_nonce', 'meta_box_nonce' );
  403.  
  404.   // The actual fields for data entry
  405.   echo '<input type="text" id="znn_da_title" name="znn_da_title" value="'.$znntitle.'" size="75" />';
  406. }
  407.  
  408. //Save Slider Link Value
  409. add_action('save_post', 'znn_title_save_details');
  410. function znn_title_save_details($post_id){
  411.   if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
  412.       return;
  413.  
  414. if( !isset( $_POST['meta_box_nonce'] ) || !wp_verify_nonce( $_POST['meta_box_nonce'], 'znn_meta_box_nonce' ) ) return;
  415.  
  416.   if ( !current_user_can( 'edit_post', $post_id ) )
  417.         return;
  418.  
  419. $znntitle = ( $_POST['znn_da_title'] );
  420. update_post_meta($post_id, 'znn_da_title', $znntitle);
  421. return $znntitle;  
  422. }
  423.  
  424.  
  425. function znn_da_link_meta( $post ) {
  426.  
  427.   // Use nonce for verification
  428.   $znndalink = get_post_meta($post->ID, 'znn_da_link', TRUE);
  429.   wp_nonce_field( 'znn_meta_box_nonce', 'meta_box_nonce' );
  430.  
  431.   // The actual fields for data entry
  432.   echo '<input type="text" id="znn_da_link" name="znn_da_link" value="'.$znndalink.'" size="75" />';
  433. }
  434.  
  435. //Save Slider Link Value
  436. add_action('save_post', 'znn_da_link_save_details');
  437. function znn_da_link_save_details($post_id){
  438.   if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
  439.       return;
  440.  
  441. if( !isset( $_POST['meta_box_nonce'] ) || !wp_verify_nonce( $_POST['meta_box_nonce'], 'znn_meta_box_nonce' ) ) return;
  442.  
  443.   if ( !current_user_can( 'edit_post', $post_id ) )
  444.         return;
  445.  
  446. $znndalink = esc_url( $_POST['znn_da_link'] );
  447. update_post_meta($post_id, 'znn_da_link', $znndalink);
  448. return $znndalink;  
  449. }
  450.  
  451. function znn_da_text_meta( $post ) {
  452.  
  453.   // Use nonce for verification
  454.   $znndatext = get_post_meta($post->ID, 'znn_da_text', TRUE);
  455.   wp_nonce_field( 'znn_meta_box_nonce', 'meta_box_nonce' );
  456.  
  457.   // The actual fields for data entry
  458.   echo '<input type="text" id="znn_da_text" name="znn_da_text" value="'.$znndatext.'" size="170" />';
  459. }
  460.  
  461. //Save Slider Link Value
  462. add_action('save_post', 'znn_da_text_save_details');
  463. function znn_da_text_save_details($post_id){
  464.   if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
  465.       return;
  466.  
  467. if( !isset( $_POST['meta_box_nonce'] ) || !wp_verify_nonce( $_POST['meta_box_nonce'], 'znn_meta_box_nonce' ) ) return;
  468.  
  469.   if ( !current_user_can( 'edit_post', $post_id ) )
  470.         return;
  471.  
  472. $znndatext = ( $_POST['znn_da_text'] );
  473. update_post_meta($post_id, 'znn_da_text', $znndatext);
  474. return $znndatext;  
  475. }
  476.  
  477.  
  478.  
  479. add_action('do_meta_boxes', 'znn_slider_image_box');
  480.  
  481. function znn_slider_image_box() {
  482.     remove_meta_box( 'postimagediv', 'slider', 'side' );
  483.     add_meta_box('postimagediv', __('Slide Image', 'zenon'), 'post_thumbnail_meta_box', 'slider', 'normal', 'high');
  484. }
  485.  
  486. /*
  487.  * Loads the Options Panel
  488.  */
  489.  
  490.  
  491.  
  492.     /* Set the file path based on whether we're in a child theme or parent theme */
  493.  
  494.     if ( STYLESHEETPATH == TEMPLATEPATH ) {
  495.         define('OPTIONS_FRAMEWORK_URL', TEMPLATEPATH . '/admin/');
  496.         define('OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/admin/');
  497.     } else {
  498.         define('OPTIONS_FRAMEWORK_URL', STYLESHEETPATH . '/admin/');
  499.         define('OPTIONS_FRAMEWORK_DIRECTORY', get_stylesheet_directory_uri() . '/admin/');
  500.     }
  501.  
  502.     require_once (OPTIONS_FRAMEWORK_URL . 'options-framework.php');
  503.  
  504.  
  505. include(TEMPLATEPATH . '/lib/script/pagination.php');
  506. include(TEMPLATEPATH . '/lib/includes/shortcodes.php');
  507. include(TEMPLATEPATH . '/lib/includes/widgets.php');
  508. ?>