__( 'Primary Navigation', 'scylla' ), 'footer_menu' => __( 'Footer Navigation', 'scylla' ) ) ); //SIDEBAR function scl_widgets_init(){ register_sidebar(array( 'name' => __('Sidebar'), 'id' => 'sidebar', 'description' => 'Sidebar', 'before_widget' => '
  • ', 'after_widget' => '
    ', 'before_title' => '

    ', 'after_title' => '

    ' )); } add_action( 'widgets_init', 'scl_widgets_init' ); //Add Custom Slider Post add_action('init', 'scl_slider_register'); function scl_slider_register() { $labels = array( 'name' => _x('Slider', 'post type general name'), 'singular_name' => _x('Slider Item', 'post type singular name'), 'add_new' => _x('Add New', 'Slider item'), 'add_new_item' => __('Add New Slide'), 'edit_item' => __('Edit Slides'), 'new_item' => __('New Slider'), 'view_item' => __('View Sliders'), 'search_items' => __('Search Sliders'), 'menu_icon' => get_stylesheet_directory_uri() . 'images/article16.png', 'not_found' => __('Nothing found'), 'not_found_in_trash' => __('Nothing found in Trash'), 'parent_item_colon' => '' ); $args = array( 'labels' => $labels, 'public' => true, 'exclude_from_search' => true, 'publicly_queryable' => true, 'show_ui' => true, 'query_var' => true, 'menu_icon' => get_stylesheet_directory_uri() . '/images/slider_button.png', 'rewrite' => false, 'capability_type' => 'post', 'hierarchical' => false, 'menu_position' => null, 'supports' => array('title','excerpt','thumbnail'), 'register_meta_box_cb' => 'scl_add_meta' ); register_post_type( 'slider' , $args ); } //Slider Link Meta Box add_action("admin_init", "scl_add_meta"); function scl_add_meta(){ add_meta_box("scl_credits_meta", "Link", "scl_credits_meta", "slider", "normal", "low"); } function scl_credits_meta() { global $post; $custom = get_post_custom($post->ID, 'slide_link', true); $slide_link = get_post_meta( $post->ID, 'slide_link', true ); ?>

    post_type == "slider" ) { if( isset($_POST['slide_link']) ) { update_post_meta( $post->ID, 'slide_link', $_POST['slide_link'] );} } } add_action('do_meta_boxes', 'scl_slider_image_box'); function scl_slider_image_box() { remove_meta_box( 'postimagediv', 'slider', 'side' ); add_meta_box('postimagediv', __('Slide Image'), 'post_thumbnail_meta_box', 'slider', 'normal', 'high'); } //SCYLLA get the first image of the post Function function scl_get_images($overrides = '', $exclude_thumbnail = false) { return get_posts(wp_parse_args($overrides, array( 'numberposts' => -1, 'post_parent' => get_the_ID(), 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'exclude' => $exclude_thumbnail ? array(get_post_thumbnail_id()) : array(), 'orderby' => 'menu_order ID' ))); } //Custom Excerpt Length function scl_excerptlength_teaser($length) { return 27; } function scl_excerptlength_index($length) { return 12; } function scl_excerptmore($more) { return '...'; } function scl_excerpt($length_callback='', $more_callback='') { global $post; if(function_exists($length_callback)){ add_filter('excerpt_length', $length_callback); } if(function_exists($more_callback)){ add_filter('excerpt_more', $more_callback); } $output = get_the_excerpt(); $output = apply_filters('wptexturize', $output); $output = apply_filters('convert_chars', $output); $output = '

    '.$output.'

    '; echo $output; } //Load Java Scripts to header function scl_head_js() { if ( !is_admin() ) { wp_enqueue_script('jquery'); wp_enqueue_script('Scylla',get_template_directory_uri().'/js/scylla.js'); wp_enqueue_script('other',get_template_directory_uri().'/js/other.js'); $option = get_option('scl_options'); if($option['scl_slider']== "Easyslider") { wp_enqueue_script('EasySlider',get_template_directory_uri().'/js/easyslider.js'); } if($option["scl_diss_fbx"] == "1"){ } else { wp_enqueue_script('fancybox_js',get_template_directory_uri().'/js/fancybox.js'); } if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); } } add_action('wp_enqueue_scripts', 'scl_head_js'); //Load Slider Speed Control add_action('wp_footer', 'scl_load_js'); function scl_load_js() { ?>
  • id="li-comment-">
    %s'), get_comment_author_link()) ?>
    comment_approved == '0') : ?>
    $depth, 'max_depth' => $args['max_depth']))) ?>
  • id="li-comment-">
    comment_approved == '0') : ?>
    %s says:'), get_comment_author_link()) ?>