'Header Menu' ) ); } // code for custom post type services add_action( 'init', 'create_post_type_services' ); function create_post_type_services() { register_post_type( 'services', array( 'labels' => array( 'name' => 'Services', 'singular_name' => 'Services', 'add_new' => __('Add New Service', 'appointment'), 'add_new_item' => __('Enter Name with Designation','appointment'), 'edit_item' => __('Enter Name with Designation','appointment'), 'new_item' => __('New Link','appointment'), 'all_items' => __('All Services','appointment'), 'view_item' => __('View Link','appointment'), 'search_items' => __('Search Links','appointment'), 'not_found' => __('No Links found','appointment'), 'not_found_in_trash' => __('No Links found in Trash','appointment'), ), 'supports' => array('title','editor','thumbnail','comments'), 'public' => true, 'menu_position' => 11 ) ); } add_action( 'init', 'create_post_type_featured_slider' ); function create_post_type_featured_slider() { register_post_type( 'featured_slider', array( 'labels' => array( 'name' => 'Slider', 'singular_name' => 'Slider', 'add_new' => __('Add New Slide', 'appointment'), 'add_new_item' => __('Add New Slide','appointment'), 'edit_item' => __('Add New Slide','appointment'), 'new_item' => __('New Link','appointment'), 'all_items' => __('All Slide','appointment'), 'view_item' => __('View Link','appointment'), 'search_items' => __('Search Links','appointment'), 'not_found' => __('No Links found','appointment'), 'not_found_in_trash' => __('No Links found in Trash','appointment'), ), 'supports' => array('title','editor'), 'public' => true, 'menu_position' => 11 ) ); } function appointpres_widgets_init() { /*sidebar*/ register_sidebar( array( 'name' => __( ' Sidebar', 'appointment' ), 'id' => 'sidebar-primary', 'description' => __( 'The primary widget area', 'appointment' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); /*footer sidebar*/ register_sidebar( array( 'name' => __( 'First Footer Widget Area', 'appointment' ), 'id' => 'first-footer-widget-area', 'description' => __( 'The first footer widget area', 'appointment' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Second Footer Widget Area', 'appointment' ), 'id' => 'second-footer-widget-area', 'description' => __( 'The second footer widget area', 'appointment' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Third Footer Widget Area', 'appointment' ), 'id' => 'third-footer-widget-area', 'description' => __( 'The third footer widget area', 'appointment' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => __( 'Fourth Footer Widget Area', 'appointment' ), 'id' => 'fourth-footer-widget-area', 'description' => __( 'The fourth footer widget area', 'appointment' ), 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); } add_action( 'widgets_init', 'appointpres_widgets_init' ); /*Post date show*/ if ( ! function_exists( 'appointment_posted_on' ) ) : function appointment_posted_on() { printf( __( 'Posted by on ', 'appointment' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), sprintf( esc_attr__( 'View all posts by %s', 'appointment' ), get_the_author() ), esc_html( get_the_author() ) ); } endif; // code for comment if ( ! function_exists( 'appointment_comment' ) ) : /** * Template for comments and pingbacks. * * To override this walker in a child theme without modifying the comments template * simply create your own appointment(), and that function will be used instead. * * Used as a callback by wp_list_comments() for displaying the comments. * * @since appointment */ function appointment_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; //get theme data global $data; //translations $leave_reply = $data['translation_reply_to_coment'] ? $data['translation_reply_to_coment'] : __('Reply','appointment'); ?>
  • id="li-comment-">
    %s'), get_comment_author_link()) ?> -
    comment_approved == '0' ) : ?>
    $leave_reply. '→','depth' => $depth, 'max_depth' => $args['max_depth']))) ?>