diff --git a/class-meta-box.php b/class-meta-box.php index 8e08bf6a..30d0ce72 100644 --- a/class-meta-box.php +++ b/class-meta-box.php @@ -16,6 +16,8 @@ class TitanFrameworkMetaBox { 'hide_custom_fields' => true, // If true, the custom fields box will not be shown 'priority' => 'high', // high, core, default, low 'desc' => '', // Description displayed below the title + 'post_format'=>array('standard','aside','chat','link','gallery','image','audio','video','status','quote'), + 'page_template'=>array() ); public $settings; @@ -82,7 +84,7 @@ public function display( $post ) { } ?> - +
settings['post_format']);?>" data-page-template="settings['page_template']);?>"> options as $option ) { diff --git a/class-option-checkbox.php b/class-option-checkbox.php index d8cd1bd1..10cdea18 100644 --- a/class-option-checkbox.php +++ b/class-option-checkbox.php @@ -12,7 +12,7 @@ public function display() { ?> echoOptionHeader(); ?> - + settings['dependency'])) $this->settings['dependency']=array("id"=>"","value"=>""); + $this->echoOptionHeader(); + echo ""; + echo ""; + echo ""; + echo ""; + $this->echoOptionFooter(); + } + + public function enqueueScripts(){ + wp_enqueue_media(); + wp_enqueue_script("tf-gallery",get_template_directory_uri()."/libs/titan-framework/js/gallery.js","jquery","1.0",true); + wp_enqueue_style("tf-gallery-css",get_template_directory_uri()."/libs/titan-framework/css/class-option-gallery.css"); + } + + + +} diff --git a/class-option-image.php b/class-option-image.php new file mode 100644 index 00000000..eda87893 --- /dev/null +++ b/class-option-image.php @@ -0,0 +1,33 @@ +settings['dependency'])) $this->settings['dependency']=array("id"=>"","value"=>""); + $this->echoOptionHeader(); + echo ""; + echo ""; + echo ""; + echo ""; + $this->echoOptionFooter(); + } + + public function enqueueScripts(){ + wp_enqueue_media(); + wp_enqueue_script("tf-gallery",get_template_directory_uri()."/libs/titan-framework/js/gallery.js","jquery","1.0",true); + wp_enqueue_style("tf-gallery-css",get_template_directory_uri()."/libs/titan-framework/css/class-option-gallery.css"); + } + + + +} diff --git a/class-option-multitext.php b/class-option-multitext.php new file mode 100644 index 00000000..4e0d3c5a --- /dev/null +++ b/class-option-multitext.php @@ -0,0 +1,47 @@ +getValue(); + if(empty($value)) + $value = $this->settings['default']; + + if(is_array($value)) + $value=join("|||",$value); + + + + if(!isset($this->settings['dependency'])) $this->settings['dependency']=array("id"=>"","value"=>""); + $this->echoOptionHeader(); + echo ""; + echo "
"; + echo "
"; + $this->echoOptionFooter(); + } + + function enqueueScripts(){ + wp_enqueue_script("tf-repeatable",get_template_directory_uri()."/libs/titan-framework/js/repeatable.js","jquery","1.0",true); + } + + function cleanValueForGetting($value){ + + if( !is_array($value)){ + $parts = explode("|||",$value); + return $parts; + }else{ + return $value; + } + + } + +} \ No newline at end of file diff --git a/class-option-radio-palette.php b/class-option-radio-palette.php index 08dfb7c1..a4048dd1 100644 --- a/class-option-radio-palette.php +++ b/class-option-radio-palette.php @@ -36,6 +36,8 @@ public function display() { $value = $this->settings['options'][$value]; } + echo ""; + // print the palettes foreach ( $this->settings['options'] as $key => $colorSet ) { printf( '