esc_html__( 'Main Menu', 'awesome-portfolio-lite' ), 'secondary' => esc_html__( 'Footer Menu', 'awesome-portfolio-lite' ) ) ); add_theme_support( 'custom-logo', array( 'height' => 80, 'width' => 200, 'flex-width' => true, ) ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'post-thumbnails' ); add_theme_support( 'custom-background' ); add_theme_support( 'custom-header'); add_editor_style($stylesheet = 'editor-style.css' ); add_theme_support( 'title-tag' ); if ( ! isset( $content_width ) ) { $content_width = 600; } } add_action( 'after_setup_theme', 'awesome_portfolio_setup' ); /*Change title seprator*/ add_filter( 'document_title_separator', 'your_custom_separator' ); function your_custom_separator( $separator ) { $separator = '|'; return $separator; } function awesome_portfolio_free_version_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Blog Sidebar', 'awesome-portfolio-lite' ), 'id' => 'sidebar-2', 'description' => esc_html__( 'Appears on posts and pages in the sidebar.', 'awesome-portfolio-lite' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widget One', 'awesome-portfolio-lite' ), 'id' => 'footer-widget-one', 'description' => esc_html__( 'Appears in the footer section of the site.', 'awesome-portfolio-lite' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widget Two', 'awesome-portfolio-lite' ), 'id' => 'footer-widget-two', 'description' => esc_html__( 'Appears in the footer section of the site.', 'awesome-portfolio-lite' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widget Three', 'awesome-portfolio-lite' ), 'id' => 'footer-widget-three', 'description' => esc_html__( 'Appears in the footer section of the site.', 'awesome-portfolio-lite' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__( 'Footer Widget four', 'awesome-portfolio-lite' ), 'id' => 'footer-widget-four', 'description' => esc_html__( 'Appears in the footer section of the site.', 'awesome-portfolio-lite' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'awesome_portfolio_free_version_widgets_init' ); add_filter( 'body_class', 'custom_class' ); function custom_class( $class ) { if ( is_page_template( 'index.php' ) ) { $class[] = 'example'; } return $class; } ?> max_num_pages; if ($total_pages > 1){ $current_page = max(1, get_query_var('paged')); echo paginate_links(array( 'base' => get_pagenum_link(1) . '%_%', 'format' => 'page/%#%', 'current' => $current_page, 'total' => $total_pages, )); } } ?> ID; } $current = array_search(get_the_ID(), $pages); $prevID = $pages[$current-1]; $nextID = $pages[$current+1]; echo ''); } return $content; } add_filter( 'awesome-portfolio-lite', 'tags_after_single_post_content' );?> '

' . esc_html__( 'Pages:','awesome-portfolio-lite' ), 'after' => '

', 'text_before' => '', 'text_after' => '', 'next_or_number' => 'number', 'nextpagelink' => esc_html__( 'Next page','awesome-portfolio-lite' ), 'previouspagelink' => esc_html__( 'Previous page','awesome-portfolio-lite' ), 'pagelink' => '%', 'echo' => 1 ); $r = wp_parse_args( $args, $defaults ); $r = apply_filters( 'wp_link_pages_args', $r ); extract( $r, EXTR_SKIP ); global $page, $numpages, $multipage, $more, $pagenow; $output = ''; if ( $multipage ) { if ( 'number' == $next_or_number ) { $output .= $before; for ( $i = 1; $i < ( $numpages + 1 ); $i = $i + 1 ) { $j = str_replace( '%', $i, $pagelink ); $output .= ' '; if ( $i != $page || ( ( ! $more ) && ( $page == 1 ) ) ) $output .= _wp_link_page( $i ); else $output .= ''; $output .= $text_before . $j . $text_after; if ( $i != $page || ( ( ! $more ) && ( $page == 1 ) ) ) $output .= ''; else $output .= ''; } $output .= $after; } else { if ( $more ) { $output .= $before; $i = $page - 1; if ( $i && $more ) { $output .= _wp_link_page( $i ); $output .= $text_before . $previouspagelink . $text_after . ''; } $i = $page + 1; if ( $i <= $numpages && $more ) { $output .= _wp_link_page( $i ); $output .= $text_before . $nextpagelink . $text_after . ''; } $output .= $after; } } } if ( $echo ) echo $output; return $output; } ?> add_section( 'topbar_setting_section', array( 'title' => 'Top Bar', 'description' => 'In this session you can change all topbar options', 'priority' => 9999, ) ); //Add a setting $wp_customize->add_setting( 'topbar_phone_no', array( 'default' => '(555) 5555 5555', ),array('sanitize_callback' => '__return_false',) ); //Add control $wp_customize->add_control( 'topbar_phone_no', array( 'label' => 'Phone No', 'section' => 'topbar_setting_section', 'type' => 'text', ) ); //Add a setting $wp_customize->add_setting( 'topbar_email_id', array( 'default' => 'demo@gmail.com', ),array('sanitize_callback' => '__return_false',) ); //Add control $wp_customize->add_control( 'topbar_email_id', array( 'label' => 'Email Id', 'section' => 'topbar_setting_section', 'type' => 'text', ) ); //social 1 //Add a setting $wp_customize->add_setting( 'topbar_social_icon_1', array( 'default' => 'fa fa-facebook', ),array('sanitize_callback' => '__return_false',) ); //Add control $wp_customize->add_control( 'topbar_social_icon_1', array( 'label' => 'Social icon 1', 'section' => 'topbar_setting_section', 'type' => 'text', ) ); //Add a setting $wp_customize->add_setting( 'topbar_social_link_1', array( 'default' => 'https://www.facebook.com/', ),array('sanitize_callback' => '__return_false',) ); //Add control $wp_customize->add_control( 'topbar_social_link_1', array( 'label' => 'Social link 1', 'section' => 'topbar_setting_section', 'type' => 'text', ) ); //social 2 //Add a setting $wp_customize->add_setting( 'topbar_social_icon_2', array( 'default' => 'fa fa-google-plus', ),array('sanitize_callback' => '__return_false',) ); //Add control $wp_customize->add_control( 'topbar_social_icon_2', array( 'label' => 'Social icon 2', 'section' => 'topbar_setting_section', 'type' => 'text', ) ); //Add a setting $wp_customize->add_setting( 'topbar_social_link_2', array( 'default' => 'https://www.google.com/', ),array('sanitize_callback' => '__return_false',) ); //Add control $wp_customize->add_control( 'topbar_social_link_2', array( 'label' => 'Social link 2', 'section' => 'topbar_setting_section', 'type' => 'text', ) ); //social 3 //Add a setting $wp_customize->add_setting( 'topbar_social_icon_3', array( 'default' => 'fa fa-twitter', ),array('sanitize_callback' => '__return_false',) ); //Add control $wp_customize->add_control( 'topbar_social_icon_3', array( 'label' => 'Social icon 3', 'section' => 'topbar_setting_section', 'type' => 'text', ) ); //Add a setting $wp_customize->add_setting( 'topbar_social_link_3', array( 'default' => 'https://www.twitter.com/', ),array('sanitize_callback' => '__return_false',) ); //Add control $wp_customize->add_control( 'topbar_social_link_3', array( 'label' => 'Social link 3', 'section' => 'topbar_setting_section', 'type' => 'text', ) ); //social 4 //Add a setting $wp_customize->add_setting( 'topbar_social_icon_4', array( 'default' => 'fa fa-linkedin ', ),array('sanitize_callback' => '__return_false',) ); //Add control $wp_customize->add_control( 'topbar_social_icon_4', array( 'label' => 'Social icon 4', 'section' => 'topbar_setting_section', 'type' => 'text', ) ); //Add a setting $wp_customize->add_setting( 'topbar_social_link_4', array( 'default' => 'https://www.linkedin.com/', ),array('sanitize_callback' => '__return_false',) ); //Add control $wp_customize->add_control( 'topbar_social_link_4', array( 'label' => 'Social link 4', 'section' => 'topbar_setting_section', 'type' => 'text', ) ); } add_action( 'customize_register' , 'awesome_portfolio_customize_register' ); function awesome_portfolio_slider_customize_register( $wp_customize ) { //Adding a section $wp_customize->add_section( 'slider_setting_section', array( 'title' => 'Slider', 'description' => 'In this session you can paste shortcode of slider plugin so that it will appear in homepage', 'priority' => 500, ) ); //Add a setting $wp_customize->add_setting( 'awesome_slider', array( 'default' => 'Paste your shortcode in Apperance customize slider', ),array('sanitize_callback' => '__return_false',) ); //Add control $wp_customize->add_control( 'awesome_slider', array( 'label' => 'slider', 'section' => 'slider_setting_section', 'type' => 'text', ) ); } add_action( 'customize_register' , 'awesome_portfolio_slider_customize_register' ); ?>