= 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'appointment' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'appointment_wp_title', 10, 2 ); add_action('add_meta_boxes','appointment_slider_meta'); function appointment_slider_meta() { add_action('admin_enqueue_scripts', 'appointment_admin_enqueue_script'); function appointment_admin_enqueue_script(){ wp_enqueue_script('my-upload-admin',get_bloginfo('template_directory').'/js/media-upload-script.js',array('media-upload','thickbox')); } $screens = array( 'post' ); foreach ($screens as $screen) { add_meta_box( 'slider_section', __( 'HomePage Slider', 'appointment' ), 'appointment_slider_custom_box', $screen ); } } function appointment_slider_custom_box( $post ) { // Use nonce for verification wp_nonce_field( plugin_basename( __FILE__ ), 'myplugin_noncename' ); // The actual fields for data entry // Use get_post_meta to retrieve an existing value from the database and use the value for the form $value = get_post_meta( $post->ID, '_meta_value_key', true );?>
'; _e("Image Caption", 'appointment' ); echo ' ';?>
:
true, 'width' => 200, 'flex-height' => true, 'height' => 40, 'default-image' => get_template_directory_uri() . '/images/logo.png', ); add_theme_support( 'custom-header', $header_args ); // Add support for a variety of post formats add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image','chat','audio','video' ) ); } } //code for the admin side.... add_action( 'init', 'appointment_admin' ); function appointment_admin() { add_editor_style( get_template_directory_uri() . '/custom-editor-style.css' ); register_nav_menus( array( 'header-menu' => __('Header Menu','appointment') ) ); } // code for custom post type services add_action( 'widgets_init', 'appointment_widgets_init'); function appointment_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' => '

    ', ) ); } /*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 $comment_data; //translations $leave_reply = $comment_data['translation_reply_to_coment'] ? $comment_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']))) ?>
    0, ); return apply_filters( 'appointment_option_defaults', $defaults ); } ?> $cat_name, 'posts_per_page' => -1 ) ); // The Loop if(have_posts()){ while ( have_posts() ) : the_post();?>

    0))):?>
      '
    • '.__('Pages:','appointment'),'after' => '
    • '); wp_link_pages($args); ?>
    '.__('Tags:','appointment').'','');?>