'', 'height'=>'55', 'width'=>'150', '_frontpage' => '1', 'blog_count'=>'3', 'upload_image_favicon'=>'', 'custom_css'=>'', 'slide_image_1' => $ImageUrl, 'slide_title_1' => __('Slide Title', 'weblizar' ), 'slide_desc_1' => __('Lorem Ipsum is simply dummy text of the printing', 'weblizar' ), 'slide_btn_text_1' => __('Read More', 'weblizar' ), 'slide_btn_link_1' => '#', 'slide_image_2' => $ImageUrl2, 'slide_title_2' => __('variations of passages', 'weblizar' ), 'slide_desc_2' => __('Contrary to popular belief, Lorem Ipsum is not simply random text', 'weblizar' ), 'slide_btn_text_2' => __('Read More', 'weblizar' ), 'slide_btn_link_2' => '#', 'slide_image_3' => $ImageUrl3, 'slide_title_3' => __('Contrary to popular ', 'weblizar' ), 'slide_desc_3' => __('Aldus PageMaker including versions of Lorem Ipsum, rutrum turpi', 'weblizar' ), 'slide_btn_text_3' => __('Read More', 'weblizar' ), 'slide_btn_link_3' => '#', // Footer Call-Out 'fc_home'=>'1', 'fc_title' => __('Lorem Ipsum is simply dummy text of the printing and typesetting industry. ', 'weblizar' ), 'fc_btn_txt' => __('More Features', 'weblizar' ), 'fc_btn_link' =>"#", //Social media links 'header_social_media_in_enabled'=>'1', 'footer_section_social_media_enbled'=>'1', 'twitter_link' =>"#", 'fb_link' =>"#", 'linkedin_link' =>"#", 'youtube_link' =>"#", 'instagram' =>"#", 'gplus' =>"#", 'email_id' => 'example@mymail.com', 'phone_no' => '0159753586', 'footer_customizations' => __(' © 2015 Enigma Theme', 'weblizar' ), 'developed_by_text' => __('Theme Developed By', 'weblizar' ), 'developed_by_weblizar_text' => __('Weblizar Themes', 'weblizar' ), 'developed_by_link' => 'http://weblizar.com/', 'home_service_heading' => __('Our Services', 'weblizar' ), 'service_1_title'=>__("Idea",'weblizar' ), 'service_1_icons'=>"fa fa-google", 'service_1_text'=>__("There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in.", 'weblizar' ), 'service_1_link'=>"#", 'service_2_title'=>__('Records', 'weblizar' ), 'service_2_icons'=>"fa fa-database", 'service_2_text'=>__("There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in.", 'weblizar' ), 'service_2_link'=>"#", 'service_3_title'=>__("WordPress", 'weblizar' ), 'service_3_icons'=>"fa fa-wordpress", 'service_3_text'=>__("There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in.", 'weblizar' ), 'service_3_link'=>"#", //Portfolio Settings: 'portfolio_home'=>'1', 'port_heading' => __('Recent Works', 'weblizar' ), 'port_1_img'=> $ImageUrl4, 'port_1_title'=>__('Bonorum', 'weblizar' ), 'port_1_link'=>'#', 'port_2_img'=> $ImageUrl5, 'port_2_title'=>__('Content', 'weblizar' ), 'port_2_link'=>'#', 'port_3_img'=> $ImageUrl6, 'port_3_title'=>__('dictionary', 'weblizar' ), 'port_3_link'=>'#', 'port_4_img'=> $ImageUrl7, 'port_4_title'=>__('randomised', 'weblizar' ), 'port_4_link'=>'#', //BLOG Settings 'show_blog' => '1', 'blog_title'=>__('Latest Blog', 'weblizar' ) ); return apply_filters( 'enigma_options', $wl_theme_options ); } function weblizar_get_options() { // Options API return wp_parse_args( get_option( 'enigma_options', array() ), weblizar_default_settings() ); } require( WL_TEMPLATE_DIR_CORE . '/theme-options/option-panel.php' ); // for Options Panel /*After Theme Setup*/ add_action( 'after_setup_theme', 'weblizar_head_setup' ); function weblizar_head_setup() { global $content_width; //content width if ( ! isset( $content_width ) ) $content_width = 550; //px //Blog Thumb Image Sizes add_image_size('home_post_thumb',340,210,true); //Blogs thumbs add_image_size('wl_page_thumb',730,350,true); add_image_size('blog_2c_thumb',570,350,true); add_theme_support( 'title-tag' ); // Load text domain for translation-ready load_theme_textdomain( 'weblizar', WL_TEMPLATE_DIR_CORE . '/lang' ); add_theme_support( 'post-thumbnails' ); //supports featured image // This theme uses wp_nav_menu() in one location. register_nav_menu( 'primary', __( 'Primary Menu', 'weblizar' ) ); // theme support $args = array('default-color' => '000000',); add_theme_support( 'custom-background', $args); add_theme_support( 'automatic-feed-links'); require( WL_TEMPLATE_DIR . '/options-reset.php'); //Reset Theme Options Here } // Read more tag to formatting in blog page function weblizar_content_more($more) { return '
"'.__('Read More', 'weblizar' ).'"
'; } add_filter( 'the_content_more_link', 'weblizar_content_more' ); // Replaces the excerpt "more" text by a link function weblizar_excerpt_more($more) { return ''; } add_filter('excerpt_more', 'weblizar_excerpt_more'); /* * Weblizar widget area */ add_action( 'widgets_init', 'weblizar_widgets_init'); function weblizar_widgets_init() { /*sidebar*/ register_sidebar( array( 'name' => __( 'Sidebar', 'weblizar' ), 'id' => 'sidebar-primary', 'description' => __( 'The primary widget area', 'weblizar' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __( 'Footer Widget Area', 'weblizar' ), 'id' => 'footer-widget-area', 'description' => __( 'footer widget area', 'weblizar' ), 'before_widget' => '', 'before_title' => '', ) ); } /* Breadcrumbs */ function weblizar_breadcrumbs() { $delimiter = ''; $home = __('Home', 'weblizar' ); // text for the 'Home' link $before = '
  • '; // tag before the current crumb $after = '
  • '; // tag after the current crumb echo ''; } //PAGINATION function weblizar_pagination($pages = '', $range = 2) { $showitems = ($range * 2)+1; global $paged; if(empty($paged)) $paged = 1; if($pages == '') { global $wp_query; $pages = $wp_query->max_num_pages; if(!$pages) { $pages = 1; } } if(1 != $pages) { echo "
    "; if($paged > 2 && $paged > $range+1 && $showitems < $pages) echo "«"; if($paged > 1 && $showitems < $pages) echo ""; for ($i=1; $i <= $pages; $i++) { if (1 != $pages &&( !($i >= $paged+$range+1 || $i <= $paged-$range-1) || $pages <= $showitems )) { echo ($paged == $i)? "".$i."":"".$i.""; } } if ($paged < $pages && $showitems < $pages) echo ""; if ($paged < $pages-1 && $paged+$range-1 < $pages && $showitems < $pages) echo "»"; echo "
    "; } } /*=================================================================================== * Add Author Links * =================================================================================*/ function weblizar_author_profile( $contactmethods ) { $contactmethods['youtube_profile'] = __('Youtube Profile URL','weblizar'); $contactmethods['twitter_profile'] = __('Twitter Profile URL','weblizar'); $contactmethods['facebook_profile'] = __('Facebook Profile URL','weblizar'); $contactmethods['linkedin_profile'] = __('Linkedin Profile URL','weblizar'); return $contactmethods; } add_filter( 'user_contactmethods', 'weblizar_author_profile', 10, 1); /*=================================================================================== * Add Class Gravtar * =================================================================================*/ add_filter('get_avatar','weblizar_gravatar_class'); function weblizar_gravatar_class($class) { $class = str_replace("class='avatar", "class='author_detail_img", $class); return $class; } /****--- Navigation for Author, Category , Tag , Archive ---***/ function weblizar_navigation() { ?>