diff -r 0d9a58d2c515 -r 0d28b7c10758 web/wp-content/themes/selecta/functions/custom.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/wp-content/themes/selecta/functions/custom.php Fri Mar 12 13:29:04 2010 +0000
@@ -0,0 +1,84 @@
+ array (
+ "name" => "video_thumbnail",
+ "default" => "",
+ "label" => "Video Thumbnail url",
+ "desc" => "Add an image using the button above the WYSIWYG, and paste url here.",
+ "input_type" => "textarea"
+ ),
+ "video" => array (
+ "name" => "main_video",
+ "default" => "",
+ "label" => "Video Object",
+ "desc" => "Insert your video's embed code here.",
+ "input_type" => "textarea"
+ ),
+ "media" => array (
+ "name" => "other_media",
+ "default" => "",
+ "label" => "Image url",
+ "desc" => "Add an image using the
button above the WYSIWYG, and paste url here.",
+ "input_type" => "textarea"
+ )
+ );
+
+function create_meta_box_ui() {
+ global $post, $obox_metaboxes;
+ $meta_count = 0;
+ foreach ($obox_metaboxes as $obox_custom_metabox) {
+ $meta_count = ($meta_count + 1);
+ $obox_metabox_value = get_post_meta($post->ID,$obox_custom_metabox["name"],true);
+
+ if ($obox_metabox_value == "" || !isset($obox_metabox_value)) {
+ $obox_metabox_value = $obox_custom_metabox['default'];
+ }
+ if($meta_count > 1) :
+?>
+
+
+
+
+ | ||
---|---|---|
+ + | + + | " id="" value="" size="" /> | + +