tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); add_image_size( 'centilium_big', 750, 350, array('center','top') ); //big Post Featured add_image_size( 'centilium_smallfeatured', 280, 250, array('center','top') ); //featured image add_image_size( 'centilium_small', 120, 120, true ); //small // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => esc_html__( 'Primary Menu', 'centilium' ), ) ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); /* * Enable support for Post Formats. * See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'centilium_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); } endif; // centilium_setup add_action( 'after_setup_theme', 'centilium_setup' ); /*-----------------------------------------------------------------------------------*/ /* Custom Excerpts. /*-----------------------------------------------------------------------------------*/ function centilium_new_excerpt_more ($more){ return '...'; } add_filter('excerpt_more','centilium_new_excerpt_more'); function centilium_custom_excerpt_length ($lenth){ return 50; // Excerpts } add_filter ('excerpt_length', 'centilium_custom_excerpt_length', 999); /*-----------------------------------------------------------------------------------*/ /* Add Post Thumbnail Support. /*-----------------------------------------------------------------------------------*/ function centilium_get_thumbnail_url( $size = 'featured' ) { global $post; if (has_post_thumbnail( $post->ID ) ) { $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), $size ); return $image[0]; } // use first attached image if no featured image was already set. $images =& get_children( 'post_type=attachment&post_mime_type=image&post_parent=' . $post->ID ); if (!empty($images)) { $image = reset($images); $image_data = wp_get_attachment_image_src( $image->ID, $size ); return $image_data[0]; } } //Display small search bar in the mobile menu. if ( ! function_exists( 'centilium_small_search_bar' ) ) { function centilium_small_search_bar() { ?>
%link
', ''. __('Previous Post','centilium')); next_post_link( '', __('Next Post','centilium'). '' ); ?>

max_num_pages; if(!$pages){ $pages = 1; } } if(1 != $pages) { echo ""; } } } /** * Register Sidebar and Footer widget area. * * @link http://codex.wordpress.org/Function_Reference/register_sidebar */ function centilium_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar', 'centilium' ), 'id' => 'sidebar-1', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); //Register footer 1 register_sidebar( array( 'name' => esc_html__( 'Footer 1', 'centilium' ), 'id' => 'footer-1', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); //Register footer 2 register_sidebar( array( 'name' => esc_html__( 'Footer 2', 'centilium' ), 'id' => 'footer-2', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); //Register footer 3 register_sidebar( array( 'name' => esc_html__( 'Footer 3', 'centilium' ), 'id' => 'footer-3', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); //Register footer 4 register_sidebar( array( 'name' => esc_html__( 'Footer 4', 'centilium' ), 'id' => 'footer-4', 'description' => '', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'centilium_widgets_init' ); /* * Print Powered by WordPress */ if (!function_exists ('centilium_copyright')){ function centilium_copyright(){ ?>

Centilium ', 'icyNETS' ); ?>