diff -r 000000000000 -r d970ebf37754 wp/wp-content/themes/IN-MOTION-package-u1/in-motion/functions/custom-post.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wp/wp-content/themes/IN-MOTION-package-u1/in-motion/functions/custom-post.php Wed Nov 06 03:21:17 2013 +0000 @@ -0,0 +1,163 @@ + array( + 'name' => 'post_type_selected', + 'title' => __(' Post type:', 'pego_tr'), + 'description' => __('Choose the type of the post.','pego_tr'), + 'type' => "select", 'std' => 'Image', + 'options' => array('Image', 'Slideshow', 'Video', 'News')), + 'post_video_url' => array( + 'name' => 'post_video_url', + 'title' => __('Video URL:', 'pego_tr'), + 'description' => __('Enter the embedded code of the post.','pego_tr'), + 'type' => 'textarea' ) +); + return apply_filters( 'hybrid_post_meta_boxes', $meta_boxes ); +} + +function post_meta_boxes() { + global $post; + $meta_boxes = hybrid_post_meta_boxes(); ?> + + + ID, $meta['name'], true ); + + if ( $meta['type'] == 'text' ) + get_meta_text_input( $meta, $value ); + elseif ( $meta['type'] == 'textarea' ) + get_meta_textarea( $meta, $value ); + elseif ( $meta['type'] == 'select' ) + get_meta_select( $meta, $value ); + + endforeach; ?> +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + # + + + + \ No newline at end of file