= 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( 'save_post', 'appointment_save_slider_data' ); 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',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', $args ); // Add support for a variety of post formats add_theme_support( 'post-formats', array( 'aside', 'link', 'gallery', 'status', 'quote', 'image','chat','audio','video' ) ); } //enqueue scripts add_action('wp_enqueue_scripts','appointment_enqueue_script'); function appointment_enqueue_script() { if ( is_singular() ) wp_enqueue_script( "comment-reply" ); if(!is_admin()) { wp_enqueue_script('jquery'); wp_enqueue_script('jquery.nivo.slider.pack', get_template_directory_uri('template_directory').'/js/jquery.nivo.slider.pack.js'); wp_enqueue_script('custom_nivo_slider',get_template_directory_uri().'/js/jquery_nivo_slider.php'); } wp_enqueue_style('nivo-slider', get_template_directory_uri('template_directory').'/css/nivo-slider.css'); wp_enqueue_style('style_nivo_support', get_template_directory_uri('template_directory').'/css/style_nivo_support.css'); wp_enqueue_style('default', get_template_directory_uri('template_directory').'/css/default.css'); wp_enqueue_style('font',get_template_directory_uri('template_directory').'/css/font/font.css'); } add_action('after_setup_theme', 'appointment_textdomain'); function appointment_textdomain(){ load_theme_textdomain('appointment', get_template_directory() . '/languages'); } //code for the custom menus.... add_action( 'init', 'appointment_menu' ); function appointment_menu() { register_nav_menus( array( 'header-menu' => __('Header Menu','appointment') ) ); } // code for custom post type services 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' => '

    ', ) ); } add_action( 'widgets_init', 'appointment_widgets_init' ); /* Make redify available for translation.*/ load_theme_textdomain( 'appointment', get_template_directory() . '/languages' ); /*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']))) ?>
    0, ); return apply_filters( 'appointment_option_defaults', $defaults ); } ?>