';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/menu_location_select/field_menu_location_select.php b/wp-content/themes/acute/lib/admin/options/fields/menu_location_select/field_menu_location_select.php
new file mode 100644
index 0000000..063dd70
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/menu_location_select/field_menu_location_select.php
@@ -0,0 +1,49 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?'class="'.$this->field['class'].'" ':'';
+ global $_wp_registered_nav_menus;
+
+ echo '';
+
+ if($_wp_registered_nav_menus){
+ foreach ( $_wp_registered_nav_menus as $k => $v ) {
+ echo 'value, $k, false).'>'.$v.' ';
+ }
+ }//if
+
+ echo ' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?' '.$this->field['desc'].' ':'';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/menu_select/field_menu_select.php b/wp-content/themes/acute/lib/admin/options/fields/menu_select/field_menu_select.php
new file mode 100644
index 0000000..d97fb0c
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/menu_select/field_menu_select.php
@@ -0,0 +1,52 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?'class="'.$this->field['class'].'" ':'';
+
+ echo '';
+
+ if(!isset($this->field['args'])){$this->field['args'] = array();}
+ $args = wp_parse_args($this->field['args'], array());
+
+ $menus = wp_get_nav_menus($args);
+ if($menus){
+ foreach ( $menus as $menu ) {
+ echo 'value, $menu->term_id, false).'>'.$menu->name.' ';
+ }
+ }//if
+
+ echo ' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?' '.$this->field['desc'].' ':'';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/multi_checkbox/field_multi_checkbox.php b/wp-content/themes/acute/lib/admin/options/fields/multi_checkbox/field_multi_checkbox.php
new file mode 100644
index 0000000..8a2bcc4
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/multi_checkbox/field_multi_checkbox.php
@@ -0,0 +1,52 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?$this->field['class']:'regular-text';
+
+ echo '';
+
+ foreach($this->field['options'] as $k => $v){
+
+ $this->value[$k] = (isset($this->value[$k]))?$this->value[$k]:'';
+
+ echo '';
+ echo ' value[$k], '1', false).'/>';
+ echo ' '.$v.' ';
+
+ }//foreach
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?''.$this->field['desc'].' ':'';
+
+ echo ' ';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/multi_select/field_multi_select.php b/wp-content/themes/acute/lib/admin/options/fields/multi_select/field_multi_select.php
new file mode 100644
index 0000000..43c6884
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/multi_select/field_multi_select.php
@@ -0,0 +1,50 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?'class="'.$this->field['class'].'" ':'';
+
+ echo '';
+
+ foreach($this->field['options'] as $k => $v){
+
+ $selected = (is_array($this->value) && in_array($k, $this->value))?' selected="selected"':'';
+
+ echo ''.$v.' ';
+
+ }//foreach
+
+ echo ' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?''.$this->field['desc'].' ':'';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/multi_text/field_multi_text.js b/wp-content/themes/acute/lib/admin/options/fields/multi_text/field_multi_text.js
new file mode 100644
index 0000000..3df1e10
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/multi_text/field_multi_text.js
@@ -0,0 +1,16 @@
+jQuery(document).ready(function(){
+
+ jQuery('.radium-opts-multi-text-remove').live('click', function(){
+ jQuery(this).prev('input[type="text"]').val('');
+ jQuery(this).parent().fadeOut('slow', function(){jQuery(this).remove();});
+ });
+
+ jQuery('.radium-opts-multi-text-add').click(function(){
+ var new_input = jQuery('#'+jQuery(this).attr('rel-id')+' li:last-child').clone();
+ jQuery('#'+jQuery(this).attr('rel-id')).append(new_input);
+ jQuery('#'+jQuery(this).attr('rel-id')+' li:last-child').removeAttr('style');
+ jQuery('#'+jQuery(this).attr('rel-id')+' li:last-child input[type="text"]').val('');
+ jQuery('#'+jQuery(this).attr('rel-id')+' li:last-child input[type="text"]').attr('name' , jQuery(this).attr('rel-name'));
+ });
+
+});
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/multi_text/field_multi_text.php b/wp-content/themes/acute/lib/admin/options/fields/multi_text/field_multi_text.php
new file mode 100644
index 0000000..97d627b
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/multi_text/field_multi_text.php
@@ -0,0 +1,81 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0.5
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?$this->field['class']:'regular-text';
+
+ echo '';
+
+ echo ''.__('Add More', 'bean').' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?' '.$this->field['desc'].' ':'';
+
+ }//function
+
+
+ /**
+ * Enqueue Function.
+ *
+ * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
+ *
+ * @since RADIUM_Options 1.0.5
+ */
+ function enqueue(){
+
+ wp_enqueue_script(
+ 'radium-opts-field-multi-text-js',
+ RADIUM_OPTIONS_URL.'fields/multi_text/field_multi_text.js',
+ array('jquery'),
+ time(),
+ true
+ );
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/pages_multi_select/field_pages_multi_select.php b/wp-content/themes/acute/lib/admin/options/fields/pages_multi_select/field_pages_multi_select.php
new file mode 100644
index 0000000..73f84f2
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/pages_multi_select/field_pages_multi_select.php
@@ -0,0 +1,52 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?'class="'.$this->field['class'].'" ':'';
+
+ echo '';
+
+ $args = wp_parse_args($this->field['args'], array());
+
+ $pages = get_pages($args);
+ foreach ( $pages as $page ) {
+ $selected = (is_array($this->value) && in_array($page->ID, $this->value))?' selected="selected"':'';
+ echo ''.$page->post_title.' ';
+ }
+
+
+
+ echo ' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?''.$this->field['desc'].' ':'';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/pages_select/field_pages_select.php b/wp-content/themes/acute/lib/admin/options/fields/pages_select/field_pages_select.php
new file mode 100644
index 0000000..3c89637
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/pages_select/field_pages_select.php
@@ -0,0 +1,49 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?'class="'.$this->field['class'].'" ':'';
+
+ echo '';
+
+ $args = wp_parse_args($this->field['args'], array());
+
+ $pages = get_pages($args);
+ foreach ( $pages as $page ) {
+ echo 'value, $page->ID, false).'>'.$page->post_title.' ';
+ }
+
+ echo ' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?' '.$this->field['desc'].' ':'';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/post_type_select/field_post_type_select.php b/wp-content/themes/acute/lib/admin/options/fields/post_type_select/field_post_type_select.php
new file mode 100644
index 0000000..ae29ad8
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/post_type_select/field_post_type_select.php
@@ -0,0 +1,49 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?'class="'.$this->field['class'].'" ':'';
+
+ echo '';
+
+ if(!isset($this->field['args'])){$this->field['args'] = array();}
+ $args = wp_parse_args($this->field['args'], array('public' => true));
+
+ $post_types = get_post_types($args, 'object');
+ foreach ( $post_types as $k => $post_type ) {
+ echo 'value, $k, false).'>'.$post_type->labels->name.' ';
+ }
+ echo ' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?' '.$this->field['desc'].' ':'';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/posts_multi_select/field_posts_multi_select.php b/wp-content/themes/acute/lib/admin/options/fields/posts_multi_select/field_posts_multi_select.php
new file mode 100644
index 0000000..8a3f301
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/posts_multi_select/field_posts_multi_select.php
@@ -0,0 +1,50 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?'class="'.$this->field['class'].'" ':'';
+
+ echo '';
+
+ $args = wp_parse_args($this->field['args'], array('numberposts' => '-1'));
+
+ $posts = get_posts($args);
+ foreach ( $posts as $post ) {
+ $selected = (is_array($this->value) && in_array($post->ID, $this->value))?' selected="selected"':'';
+ echo ''.$post->post_title.' ';
+ }
+
+ echo ' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?''.$this->field['desc'].' ':'';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/posts_select/field_posts_select.php b/wp-content/themes/acute/lib/admin/options/fields/posts_select/field_posts_select.php
new file mode 100644
index 0000000..62bf9a2
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/posts_select/field_posts_select.php
@@ -0,0 +1,49 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?'class="'.$this->field['class'].'" ':'';
+
+ echo '';
+
+ $args = wp_parse_args($this->field['args'], array('numberposts' => '-1'));
+
+ $posts = get_posts($args);
+ foreach ( $posts as $post ) {
+ echo 'value, $post->ID, false).'>'.$post->post_title.' ';
+ }
+
+ echo ' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?' '.$this->field['desc'].' ':'';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/radio/field_radio.php b/wp-content/themes/acute/lib/admin/options/fields/radio/field_radio.php
new file mode 100644
index 0000000..b5ed3f0
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/radio/field_radio.php
@@ -0,0 +1,52 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?'class="'.$this->field['class'].'" ':'';
+
+ echo '';
+
+ foreach($this->field['options'] as $k => $v){
+
+ //echo 'value, $k, false).'>'.$v.' ';
+ echo '';
+ echo ' value, $k, false).'/>';
+ echo ' '.$v.' ';
+ echo ' ';
+
+ }//foreach
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?''.$this->field['desc'].' ':'';
+
+ echo ' ';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/radio_img/field_radio_img.js b/wp-content/themes/acute/lib/admin/options/fields/radio_img/field_radio_img.js
new file mode 100644
index 0000000..52d3feb
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/radio_img/field_radio_img.js
@@ -0,0 +1,13 @@
+/*
+ *
+ * RADIUM_Options_radio_img function
+ * Changes the radio select option, and changes class on images
+ *
+ */
+function radium_radio_img_select(relid, labelclass){
+ jQuery(this).prev('input[type="radio"]').prop('checked');
+
+ jQuery('.radium-radio-img-'+labelclass).removeClass('radium-radio-img-selected');
+
+ jQuery('label[for="'+relid+'"]').addClass('radium-radio-img-selected');
+}//function
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/radio_img/field_radio_img.php b/wp-content/themes/acute/lib/admin/options/fields/radio_img/field_radio_img.php
new file mode 100644
index 0000000..2af0c83
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/radio_img/field_radio_img.php
@@ -0,0 +1,78 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?'class="'.$this->field['class'].'" ':'';
+
+ echo '';
+
+ foreach($this->field['options'] as $k => $v){
+
+ $selected = (checked($this->value, $k, false) != '')?' radium-radio-img-selected':'';
+
+ echo '';
+
+ echo ' value, $k, false).'/>';
+
+ echo ' ';
+
+ echo ''.$v['title'].' ';
+ echo ' ';
+
+ }//foreach
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?''.$this->field['desc'].' ':'';
+
+ echo ' ';
+
+ }//function
+
+
+
+ /**
+ * Enqueue Function.
+ *
+ * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function enqueue(){
+
+ wp_enqueue_script(
+ 'radium-opts-field-radio_img-js',
+ RADIUM_OPTIONS_URL.'fields/radio_img/field_radio_img.js',
+ array('jquery'),
+ time(),
+ true
+ );
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/select/field_select.php b/wp-content/themes/acute/lib/admin/options/fields/select/field_select.php
new file mode 100644
index 0000000..d3b1819
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/select/field_select.php
@@ -0,0 +1,48 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?'class="'.$this->field['class'].'" ':'';
+
+ echo '';
+
+ foreach($this->field['options'] as $k => $v){
+
+ echo 'value, $k, false).'>'.$v.' ';
+
+ }//foreach
+
+ echo ' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?' '.$this->field['desc'].' ':'';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/select_hide_below/field_select_hide_below.js b/wp-content/themes/acute/lib/admin/options/fields/select_hide_below/field_select_hide_below.js
new file mode 100644
index 0000000..89cc4f9
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/select_hide_below/field_select_hide_below.js
@@ -0,0 +1,26 @@
+jQuery(document).ready(function(){
+
+ jQuery('.radium-opts-select-hide-below').each(function(){
+ if(jQuery('option:selected',this).attr('data-allow') == 'false'){
+ jQuery(this).closest('tr').next('tr').hide();
+ }
+ });
+
+ jQuery('.radium-opts-select-hide-below').change(function(){
+ var option = jQuery('option:selected', this);
+
+ if(option.attr('data-allow') == 'false'){
+
+ if(jQuery(this).closest('tr').next('tr').is(':visible')){
+ jQuery(this).closest('tr').next('tr').fadeOut('slow');
+ }
+
+ }else{
+ if(jQuery(this).closest('tr').next('tr').is(':hidden')){
+ jQuery(this).closest('tr').next('tr').fadeIn('slow');
+ }
+
+ }
+ });
+
+});
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/select_hide_below/field_select_hide_below.php b/wp-content/themes/acute/lib/admin/options/fields/select_hide_below/field_select_hide_below.php
new file mode 100644
index 0000000..6f417e6
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/select_hide_below/field_select_hide_below.php
@@ -0,0 +1,68 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?$this->field['class']:'';
+
+ echo '';
+
+ foreach($this->field['options'] as $k => $v){
+
+ echo 'value, $k, false).' data-allow="'.$v['allow'].'">'.$v['name'].' ';
+
+ }//foreach
+
+ echo ' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?' '.$this->field['desc'].' ':'';
+
+ }//function
+
+
+ /**
+ * Enqueue Function.
+ *
+ * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function enqueue(){
+
+ wp_enqueue_script(
+ 'radium-opts-select-hide-below-js',
+ RADIUM_OPTIONS_URL.'fields/select_hide_below/field_select_hide_below.js',
+ array('jquery'),
+ time(),
+ true
+ );
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/tags_multi_select/field_tags_multi_select.php b/wp-content/themes/acute/lib/admin/options/fields/tags_multi_select/field_tags_multi_select.php
new file mode 100644
index 0000000..cfb4a55
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/tags_multi_select/field_tags_multi_select.php
@@ -0,0 +1,50 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?'class="'.$this->field['class'].'" ':'';
+
+ echo '';
+
+ $args = wp_parse_args($this->field['args'], array());
+
+ $tags = get_tags($args);
+ foreach ( $tags as $tag ) {
+ $selected = (is_array($this->value) && in_array($tag->term_id, $this->value))?' selected="selected"':'';
+ echo ''.$tag->name.' ';
+ }
+
+ echo ' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?''.$this->field['desc'].' ':'';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/tags_select/field_tags_select.php b/wp-content/themes/acute/lib/admin/options/fields/tags_select/field_tags_select.php
new file mode 100644
index 0000000..97063e4
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/tags_select/field_tags_select.php
@@ -0,0 +1,49 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?'class="'.$this->field['class'].'" ':'';
+
+ echo '';
+
+ $args = wp_parse_args($this->field['args'], array());
+
+ $tags = get_tags($args);
+ foreach ( $tags as $tag ) {
+ echo 'value, $tag->term_id, false).'>'.$tag->name.' ';
+ }
+
+ echo ' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?' '.$this->field['desc'].' ':'';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/text/field_text.php b/wp-content/themes/acute/lib/admin/options/fields/text/field_text.php
new file mode 100644
index 0000000..c3a6afd
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/text/field_text.php
@@ -0,0 +1,42 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?$this->field['class']:'regular-text';
+
+ $placeholder = (isset($this->field['placeholder']))?' placeholder="'.esc_attr($this->field['placeholder']).'" ':'';
+
+ echo ' value).'" class="'.$class.'" />';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?' '.$this->field['desc'].' ':'';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/textarea/field_textarea.php b/wp-content/themes/acute/lib/admin/options/fields/textarea/field_textarea.php
new file mode 100644
index 0000000..d2eb808
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/textarea/field_textarea.php
@@ -0,0 +1,42 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?$this->field['class']:'large-text';
+
+ $placeholder = (isset($this->field['placeholder']))?' placeholder="'.esc_attr($this->field['placeholder']).'" ':'';
+
+ echo '';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?''.$this->field['desc'].' ':'';
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/upload/blank.png b/wp-content/themes/acute/lib/admin/options/fields/upload/blank.png
new file mode 100644
index 0000000..7cb6f5d
Binary files /dev/null and b/wp-content/themes/acute/lib/admin/options/fields/upload/blank.png differ
diff --git a/wp-content/themes/acute/lib/admin/options/fields/upload/field_upload.js b/wp-content/themes/acute/lib/admin/options/fields/upload/field_upload.js
new file mode 100644
index 0000000..bdf140a
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/upload/field_upload.js
@@ -0,0 +1,50 @@
+jQuery(document).ready(function(){
+
+
+ /*
+ *
+ * RADIUM_Options_upload function
+ * Adds media upload functionality to the page
+ *
+ */
+
+ var header_clicked = false;
+
+ jQuery("img[src='']").attr("src", radium_upload.url);
+
+ jQuery('.radium-opts-upload').click(function() {
+ header_clicked = true;
+ formfield = jQuery(this).attr('rel-id');
+ preview = jQuery(this).prev('img');
+ tb_show('', 'media-upload.php?type=image&post_id=0&TB_iframe=true');
+ return false;
+ });
+
+
+ // Store original function
+ window.original_send_to_editor = window.send_to_editor;
+
+
+ window.send_to_editor = function(html) {
+ if (header_clicked) {
+ imgurl = jQuery('img',html).attr('src');
+ jQuery('#' + formfield).val(imgurl);
+ jQuery('#' + formfield).next().fadeIn('slow');
+ jQuery('#' + formfield).next().next().fadeOut('slow');
+ jQuery('#' + formfield).next().next().next().fadeIn('slow');
+ jQuery(preview).attr('src' , imgurl);
+ tb_remove();
+ header_clicked = false;
+ } else {
+ window.original_send_to_editor(html);
+ }
+ }
+
+ jQuery('.radium-opts-upload-remove').click(function(){
+ $relid = jQuery(this).attr('rel-id');
+ jQuery('#'+$relid).val('');
+ jQuery(this).prev().fadeIn('slow');
+ jQuery(this).prev().prev().fadeOut('slow', function(){jQuery(this).attr("src", radium_upload.url);});
+ jQuery(this).fadeOut('slow');
+ });
+});
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/upload/field_upload.php b/wp-content/themes/acute/lib/admin/options/fields/upload/field_upload.php
new file mode 100644
index 0000000..debce31
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/upload/field_upload.php
@@ -0,0 +1,72 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function render(){
+
+ $class = (isset($this->field['class']))?$this->field['class']:'regular-text';
+
+
+ echo ' ';
+ //if($this->value != ''){
+ echo ' ';
+ //}
+
+ if($this->value == ''){$remove = ' style="display:none;"';$upload = '';}else{$remove = '';$upload = ' style="display:none;"';}
+ echo ' '.__('Browse', 'bean').' ';
+ echo ' ';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?''.$this->field['desc'].' ':'';
+
+ }//function
+
+
+
+ /**
+ * Enqueue Function.
+ *
+ * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function enqueue(){
+
+ wp_enqueue_script(
+ 'radium-opts-field-upload-js',
+ RADIUM_OPTIONS_URL.'fields/upload/field_upload.js',
+ array('jquery', 'thickbox', 'media-upload'),
+ time(),
+ true
+ );
+
+ wp_enqueue_style('thickbox');// thanks to https://github.com/rzepak
+
+ wp_localize_script('radium-opts-field-upload-js', 'radium_upload', array('url' => $this->url.'fields/upload/blank.png'));
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/value_slider/field_value_slider.js b/wp-content/themes/acute/lib/admin/options/fields/value_slider/field_value_slider.js
new file mode 100644
index 0000000..318bf6c
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/value_slider/field_value_slider.js
@@ -0,0 +1,35 @@
+jQuery(document).ready(function($){
+
+ /*
+ *
+ * RADIUM_Options_value_slider function
+ * Adds a value slider functionality to the page
+ *
+ */
+
+ $(".radium-opts-value-slider").each(function() {
+ var $this = $(this),
+ min = ($this.attr('data-min')) ? parseFloat($this.attr('data-min')) : 0,
+ max = ($this.attr('data-max')) ? parseFloat($this.attr('data-max')) : 100,
+ unit = $this.attr('data-unit'),
+ name = $this.attr('data-name'),
+ value = parseFloat($this.attr('data-value')),
+ $input = $(' '),
+ $span = $(''+value+unit+' ');
+
+ $this.slider({
+ min: min,
+ max: max,
+ value: value,
+ range: 'min',
+ slide: function(ev, ui) {
+ $input.val(ui.value);
+ $span.html(ui.value+unit);
+ }
+ });
+
+ $input.prependTo($this.parent());
+ $span.prependTo($this.parent());
+ });
+
+});
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/fields/value_slider/field_value_slider.php b/wp-content/themes/acute/lib/admin/options/fields/value_slider/field_value_slider.php
new file mode 100644
index 0000000..758d046
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/fields/value_slider/field_value_slider.php
@@ -0,0 +1,58 @@
+sections, $parent->args, $parent->extra_tabs);
+ $this->field = $field;
+ $this->value = $value;
+ //$this->render();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function render(){
+
+ $class = (isset($this->field['class'])) ? $this->field['class'] : 'value-slider';
+
+ echo '
';
+
+ echo (isset($this->field['desc']) && !empty($this->field['desc']))?' '.$this->field['desc'].' ':'';
+
+ }//function
+
+
+ /**
+ * Enqueue Function.
+ *
+ * If this field requires any scripts, or css define this function and register/enqueue the scripts/css
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function enqueue(){
+
+ wp_enqueue_script(
+ 'radium-opts-field-value-slider-js', RADIUM_OPTIONS_URL.'fields/value_slider/field_value_slider.js', array( 'jquery', 'jquery-ui-slider' ), time(), true
+ );
+
+ wp_enqueue_style('radium-opts-jquery-ui-css');
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/options-init.php b/wp-content/themes/acute/lib/admin/options/options-init.php
new file mode 100644
index 0000000..0273d59
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/options-init.php
@@ -0,0 +1,113 @@
+ 'radium-opts-1',
+ 'title' => __('Theme Information 1', 'bean'),
+ 'content' => __('This is the tab content, HTML is allowed.
', 'bean')
+ );
+$args['help_tabs'][] = array(
+ 'id' => 'radium-opts-2',
+ 'title' => __('Theme Information 2', 'bean'),
+ 'content' => __('This is the tab content, HTML is allowed.
', 'bean')
+ );
+
+//Set the Help Sidebar for the options page - no sidebar by default
+$args['help_sidebar'] = __('This is the sidebar content, HTML is allowed.
', 'bean');
+
+*/
+
+$sections = array();
+
+$tabs = array();
+
+if( DEV_MODE ) {
+
+ $theme_data = wp_get_theme();
+ $theme_uri = $theme_data->get('ThemeURI');
+ $description = $theme_data->get('Description');
+ $author = $theme_data->get('Author');
+ $version = $theme_data->get('Version');
+ global $wp_version;
+
+
+ $theme_info = '';
+ $theme_info .= '
'.__('Theme URL: ', 'bean').''.$theme_uri.'
';
+ $theme_info .= '
'.__('Author: ', 'bean').$author.'
';
+ $theme_info .= '
'.__('Version: ', 'bean').$version.'
';
+ $theme_info .= '
'.$description.'
';
+ $theme_info .= '
PHP Version: '.PHP_VERSION.'
';
+ $theme_info .= '
WordPress Version: '.$wp_version.'
';
+ $theme_info .= '
';
+}
+
+global $RADIUM_Options;
+$RADIUM_Options = new RADIUM_Options($sections, $args, $tabs);
+
+
+}
+add_action('init', 'setup_radium_framework_options', 0);
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/options.php b/wp-content/themes/acute/lib/admin/options/options.php
new file mode 100644
index 0000000..dcf861b
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/options.php
@@ -0,0 +1,969 @@
+args = wp_parse_args($args, $defaults);
+ $this->args = apply_filters('radium-opts-args-'.$this->args['opt_name'], $this->args);
+
+ //get sections
+ $this->sections = apply_filters('radium-opts-sections-'.$this->args['opt_name'], $sections);
+
+ //get extra tabs
+ $this->extra_tabs = apply_filters('radium-opts-extra-tabs-'.$this->args['opt_name'], $extra_tabs);
+
+ //set option with defaults
+ add_action('init', array(&$this, '_set_default_options'));
+
+ //options page
+ add_action('admin_menu', array(&$this, '_options_page'));
+
+ //register setting
+ add_action('admin_init', array(&$this, '_register_setting'));
+
+ //add the js for the error handling before the form
+ add_action('radium-opts-page-before-form-'.$this->args['opt_name'], array(&$this, '_errors_js'), 1);
+
+ //add the js for the warning handling before the form
+ add_action('radium-opts-page-before-form-'.$this->args['opt_name'], array(&$this, '_warnings_js'), 2);
+
+ //hook into the wp feeds for downloading the exported settings
+ add_action('do_feed_radiumopts-'.$this->args['opt_name'], array(&$this, '_download_options'), 1, 1);
+
+ //get the options for use later on
+ $this->options = get_option($this->args['opt_name']);
+
+ }//function
+
+
+ /**
+ * ->get(); This is used to return and option value from the options array
+ *
+ * @since RADIUM_Options 2.0.1
+ *
+ * @param $array $args Arguments. Class constructor arguments.
+ */
+ function get($opt_name, $default = null){
+ return (!empty($this->options[$opt_name])) ? $this->options[$opt_name] : $default;
+ }//function
+
+ /**
+ * ->set(); This is used to set an arbitrary option in the options array
+ *
+ * @since RADIUM_Options 2.0.1
+ *
+ * @param string $opt_name the name of the option being added
+ * @param mixed $value the value of the option being added
+ */
+ function set($opt_name = '', $value = '') {
+ if($opt_name != ''){
+ $this->options[$opt_name] = $value;
+ update_option($this->args['opt_name'], $this->options);
+ }//if
+ }
+
+ /**
+ * ->show(); This is used to echo and option value from the options array
+ *
+ * @since RADIUM_Options 2.0.1
+ *
+ * @param $array $args Arguments. Class constructor arguments.
+ */
+ function show($opt_name, $default = ''){
+ $option = $this->get($opt_name);
+ if(!is_array($option) && $option != ''){
+ echo $option;
+ }elseif($default != ''){
+ echo $default;
+ }
+ }//function
+
+
+ /**
+ * Get default options into an array suitable for the settings API
+ *
+ * @since RADIUM_Options 2.0
+ *
+ */
+ function _default_values(){
+
+ $defaults = array();
+
+ foreach($this->sections as $k => $section){
+
+ if(isset($section['fields'])){
+
+ foreach($section['fields'] as $fieldk => $field){
+
+ if(!isset($field['std'])){$field['std'] = '';}
+
+ $defaults[$field['id']] = $field['std'];
+
+ }//foreach
+
+ }//if
+
+ }//foreach
+
+ //fix for notice on first page load
+ $defaults['last_tab'] = 0;
+
+ return $defaults;
+
+ }
+
+
+ /**
+ * Set default options on admin_init if option doesn't exist (theme activation hook caused problems, so admin_init it is)
+ *
+ * @since RADIUM_Options 2.0
+ *
+ */
+ function _set_default_options(){
+ if(!get_option($this->args['opt_name'])){
+ add_option($this->args['opt_name'], $this->_default_values());
+ }
+ $this->options = get_option($this->args['opt_name']);
+ }//function
+
+
+ /**
+ * Class Theme Options Page Function, creates main options page.
+ *
+ * @since RADIUM_Options 2.0
+ */
+ function _options_page(){
+ if($this->args['page_type'] == 'submenu'){
+ if(!isset($this->args['page_parent']) || empty($this->args['page_parent'])){
+ $this->args['page_parent'] = 'themes.php';
+ }
+ $this->page = add_submenu_page(
+ $this->args['page_parent'],
+ $this->args['page_title'],
+ $this->args['menu_title'],
+ $this->args['page_cap'],
+ $this->args['page_slug'],
+ array(&$this, '_options_page_html')
+ );
+ }else{
+ $this->page = add_menu_page(
+ $this->args['page_title'],
+ $this->args['menu_title'],
+ $this->args['page_cap'],
+ $this->args['page_slug'],
+ array(&$this, '_options_page_html'),
+ $this->args['menu_icon'],
+ $this->args['page_position']
+ );
+
+ if(true === $this->args['allow_sub_menu']){
+
+ //this is needed to remove the top level menu item from showing in the submenu
+ add_submenu_page($this->args['page_slug'],$this->args['page_title'],'',$this->args['page_cap'],$this->args['page_slug'],create_function( '$a', "return null;" ));
+
+
+ foreach($this->sections as $k => $section){
+
+ add_submenu_page(
+ $this->args['page_slug'],
+ $section['title'],
+ $section['title'],
+ $this->args['page_cap'],
+ $this->args['page_slug'].'&tab='.$k,
+ create_function( '$a', "return null;" )
+ );
+
+ }
+
+ if(true === $this->args['show_import_export']){
+
+ add_submenu_page(
+ $this->args['page_slug'],
+ __('Import / Export / Reset', 'bean'),
+ __('Import / Export / Reset', 'bean'),
+ $this->args['page_cap'],
+ $this->args['page_slug'].'&tab=import_export_default',
+ create_function( '$a', "return null;" )
+ );
+
+ }//if
+
+
+ foreach($this->extra_tabs as $k => $tab){
+
+ add_submenu_page(
+ $this->args['page_slug'],
+ $tab['title'],
+ $tab['title'],
+ $this->args['page_cap'],
+ $this->args['page_slug'].'&tab='.$k,
+ create_function( '$a', "return null;" )
+ );
+
+ }
+
+ if(true === $this->args['dev_mode']){
+
+ add_submenu_page(
+ $this->args['page_slug'],
+ __('Dev Mode Info', 'bean'),
+ __('Dev Mode Info', 'bean'),
+ $this->args['page_cap'],
+ $this->args['page_slug'].'&tab=dev_mode_default',
+ create_function( '$a', "return null;" )
+ );
+
+ }//if
+
+ }//if
+
+
+ }//else
+
+ add_action('admin_print_styles-'.$this->page, array(&$this, '_enqueue'));
+ add_action('load-'.$this->page, array(&$this, '_load_page'));
+ }//function
+
+
+ /**
+ * enqueue styles/js for theme page
+ *
+ * @since RADIUM_Options 2.0
+ */
+ function _enqueue(){
+
+ wp_register_style(
+ 'radium-opts-css',
+ $this->url.'assets/css/options.css',
+ array('farbtastic'),
+ time(),
+ 'all'
+ );
+
+ wp_register_style(
+ 'radium-opts-jquery-ui-css',
+ apply_filters('radium-opts-ui-theme', $this->url.'assets/css/jquery-ui-aristo/aristo.css'),
+ '',
+ time(),
+ 'all'
+ );
+
+
+ if(false === $this->args['stylesheet_override']){
+ wp_enqueue_style('radium-opts-css');
+ }
+
+ wp_enqueue_script(
+ 'radium-opts-js',
+ $this->url.'assets/js/options.js',
+ array('jquery'),
+ time(),
+ true
+ );
+ wp_localize_script('radium-opts-js', 'radium_opts', array('reset_confirm' => __('Are you sure? Resetting will loose all custom values.', 'bean'), 'opt_name' => $this->args['opt_name']));
+
+ do_action('radium-opts-enqueue-'.$this->args['opt_name']);
+
+
+ foreach($this->sections as $k => $section){
+
+ if(isset($section['fields'])){
+
+ foreach($section['fields'] as $fieldk => $field){
+
+ if(isset($field['type'])){
+
+ $field_class = 'RADIUM_Options_'.$field['type'];
+
+ if(!class_exists($field_class)){
+ require_once($this->dir.'fields/'.$field['type'].'/field_'.$field['type'].'.php');
+ }//if
+
+ if(class_exists($field_class) && method_exists($field_class, 'enqueue')){
+ $enqueue = new $field_class('','',$this);
+ $enqueue->enqueue();
+ }//if
+
+ }//if type
+
+ }//foreach
+
+ }//if fields
+
+ }//foreach
+
+
+ }//function
+
+ /**
+ * Download the options file, or display it
+ *
+ * @since RADIUM_Options 2.0.1
+ */
+ function _download_options(){
+ //-'.$this->args['opt_name']
+ if(!isset($_GET['secret']) || $_GET['secret'] != md5(AUTH_KEY.SECURE_AUTH_KEY)){wp_die('Invalid Secret for options use');exit;}
+ if(!isset($_GET['feed'])){wp_die('No Feed Defined');exit;}
+ $backup_options = get_option(str_replace('radiumopts-','',$_GET['feed']));
+ $backup_options['radium-opts-backup'] = '1';
+ $content = '###'.serialize($backup_options).'###';
+
+
+ if(isset($_GET['action']) && $_GET['action'] == 'download_options'){
+ header('Content-Description: File Transfer');
+ header('Content-type: application/txt');
+ header('Content-Disposition: attachment; filename="'.str_replace('radiumopts-','',$_GET['feed']).'_options_'.date('d-m-Y').'.txt"');
+ header('Content-Transfer-Encoding: binary');
+ header('Expires: 0');
+ header('Cache-Control: must-revalidate');
+ header('Pragma: public');
+ echo $content;
+ exit;
+ }else{
+ echo $content;
+ exit;
+ }
+ }
+
+
+ /**
+ * show page help
+ *
+ * @since RADIUM_Options 2.0
+ */
+ function _load_page(){
+
+ //do admin head action for this page
+ add_action('admin_head', array(&$this, 'admin_head'));
+
+ //do admin footer text hook
+ add_filter('admin_footer_text', array(&$this, 'admin_footer_text'));
+
+ $screen = get_current_screen();
+
+ if(is_array($this->args['help_tabs'])){
+ foreach($this->args['help_tabs'] as $tab){
+ $screen->add_help_tab($tab);
+ }//foreach
+ }//if
+
+ if($this->args['help_sidebar'] != ''){
+ $screen->set_help_sidebar($this->args['help_sidebar']);
+ }//if
+
+ do_action('radium-opts-load-page-'.$this->args['opt_name'], $screen);
+
+ }//function
+
+
+ /**
+ * do action radium-opts-admin-head for theme options page
+ *
+ * @since RADIUM_Options 2.0
+ */
+ function admin_head(){
+
+ do_action('radium-opts-admin-head-'.$this->args['opt_name'], $this);
+
+ }//function
+
+
+ function admin_footer_text($footer_text){
+
+ }//function
+
+
+
+
+ /**
+ * Register Option for use
+ *
+ * @since RADIUM_Options 2.0
+ */
+ function _register_setting(){
+
+ register_setting($this->args['opt_name'].'_group', $this->args['opt_name'], array(&$this,'_validate_options'));
+
+ foreach($this->sections as $k => $section){
+
+ add_settings_section($k.'_section', $section['title'], array(&$this, '_section_desc'), $k.'_section_group');
+
+ if(isset($section['fields'])){
+
+ foreach($section['fields'] as $fieldk => $field){
+
+ if(isset($field['title'])){
+
+ $th = (isset($field['sub_desc']))?$field['title'].''.$field['sub_desc'].' ':$field['title'];
+ }else{
+ $th = '';
+ }
+
+ add_settings_field($fieldk.'_field', $th, array(&$this,'_field_input'), $k.'_section_group', $k.'_section', $field); // checkbox
+
+ }//foreach
+
+ }//if(isset($section['fields'])){
+
+ }//foreach
+
+ do_action('radium-opts-register-settings-'.$this->args['opt_name']);
+
+ }//function
+
+
+ /**
+ * Validate the Options options before insertion
+ *
+ * @since RADIUM_Options 2.0
+ */
+ function _validate_options($plugin_options){
+
+ set_transient('radium-opts-saved', '1', 1000 );
+
+ if(!empty($plugin_options['import'])){
+
+ if($plugin_options['import_code'] != ''){
+ $import = $plugin_options['import_code'];
+ }elseif($plugin_options['import_link'] != ''){
+ $import = wp_remote_retrieve_body( wp_remote_get($plugin_options['import_link']) );
+ }
+
+ $imported_options = unserialize(trim($import,'###'));
+ if(is_array($imported_options) && isset($imported_options['radium-opts-backup']) && $imported_options['radium-opts-backup'] == '1'){
+ $imported_options['imported'] = 1;
+ return $imported_options;
+ }
+
+
+ }
+
+
+ if(!empty($plugin_options['defaults'])){
+ $plugin_options = $this->_default_values();
+ return $plugin_options;
+ }//if set defaults
+
+
+ //validate fields (if needed)
+ $plugin_options = $this->_validate_values($plugin_options, $this->options);
+
+ if($this->errors){
+ set_transient('radium-opts-errors-'.$this->args['opt_name'], $this->errors, 1000 );
+ }//if errors
+
+ if($this->warnings){
+ set_transient('radium-opts-warnings-'.$this->args['opt_name'], $this->warnings, 1000 );
+ }//if errors
+
+ do_action('radium-opts-options-validate-'.$this->args['opt_name'], $plugin_options, $this->options);
+
+
+ unset($plugin_options['defaults']);
+ unset($plugin_options['import']);
+ unset($plugin_options['import_code']);
+ unset($plugin_options['import_link']);
+
+ return $plugin_options;
+
+ }//function
+
+
+ /**
+ * Validate values from options form (used in settings api validate function)
+ * calls the custom validation class for the field so authors can override with custom classes
+ *
+ * @since RADIUM_Options 2.0
+ */
+ function _validate_values($plugin_options, $options){
+ foreach($this->sections as $k => $section){
+
+ if(isset($section['fields'])){
+
+ foreach($section['fields'] as $fieldk => $field){
+ $field['section_id'] = $k;
+
+ if(isset($field['type']) && $field['type'] == 'multi_text'){continue;}//we cant validate this yet
+
+ if(!isset($plugin_options[$field['id']]) || $plugin_options[$field['id']] == ''){
+ continue;
+ }
+
+ //force validate of custom filed types
+
+ if(isset($field['type']) && !isset($field['validate'])){
+ if($field['type'] == 'color' || $field['type'] == 'color_gradient'){
+ $field['validate'] = 'color';
+ }elseif($field['type'] == 'date'){
+ $field['validate'] = 'date';
+ }
+ }//if
+
+ if(isset($field['validate'])){
+ $validate = 'RADIUM_Validation_'.$field['validate'];
+
+ if(!class_exists($validate)){
+ require_once($this->dir.'validation/'.$field['validate'].'/validation_'.$field['validate'].'.php');
+ }//if
+
+ if(class_exists($validate)){
+ $validation = new $validate($field, $plugin_options[$field['id']], $options[$field['id']]);
+ $plugin_options[$field['id']] = $validation->value;
+ if(isset($validation->error)){
+ $this->errors[] = $validation->error;
+ }
+ if(isset($validation->warning)){
+ $this->warnings[] = $validation->warning;
+ }
+ continue;
+ }//if
+ }//if
+
+
+ if(isset($field['validate_callback']) && function_exists($field['validate_callback'])){
+
+ $callbackvalues = call_user_func($field['validate_callback'], $field, $plugin_options[$field['id']], $options[$field['id']]);
+ $plugin_options[$field['id']] = $callbackvalues['value'];
+ if(isset($callbackvalues['error'])){
+ $this->errors[] = $callbackvalues['error'];
+ }//if
+ if(isset($callbackvalues['warning'])){
+ $this->warnings[] = $callbackvalues['warning'];
+ }//if
+
+ }//if
+
+
+ }//foreach
+
+ }//if(isset($section['fields'])){
+
+ }//foreach
+ return $plugin_options;
+ }//function
+
+
+ /**
+ * HTML OUTPUT.
+ *
+ * @since RADIUM_Options 2.0
+ */
+ function _options_page_html(){
+
+ echo '';
+ echo '
';
+ echo '
'.get_admin_page_title().' ';
+ echo (isset($this->args['intro_text']))?$this->args['intro_text']:'';
+
+ do_action('radium-opts-page-before-form-'.$this->args['opt_name']);
+
+ echo '
';
+
+ do_action('radium-opts-page-after-form-'.$this->args['opt_name']);
+
+ echo '
';
+ echo '
';
+
+ }//function
+
+
+ /**
+ * JS to display the errors on the page
+ *
+ * @since RADIUM_Options 2.0
+ */
+ function _errors_js(){
+
+ if(isset($_GET['settings-updated']) && $_GET['settings-updated'] == 'true' && get_transient('radium-opts-errors-'.$this->args['opt_name'])){
+ $errors = get_transient('radium-opts-errors-'.$this->args['opt_name']);
+ $section_errors = array();
+ foreach($errors as $error){
+ $section_errors[$error['section_id']] = (isset($section_errors[$error['section_id']]))?$section_errors[$error['section_id']]:0;
+ $section_errors[$error['section_id']]++;
+ }
+
+ echo '';
+ delete_transient('radium-opts-errors-'.$this->args['opt_name']);
+ }
+
+ }//function
+
+
+ /**
+ * JS to display the warnings on the page
+ *
+ * @since RADIUM_Options 2.0
+ */
+ function _warnings_js(){
+
+ if(isset($_GET['settings-updated']) && $_GET['settings-updated'] == 'true' && get_transient('radium-opts-warnings-'.$this->args['opt_name'])){
+ $warnings = get_transient('radium-opts-warnings-'.$this->args['opt_name']);
+ $section_warnings = array();
+ foreach($warnings as $warning){
+ $section_warnings[$warning['section_id']] = (isset($section_warnings[$warning['section_id']]))?$section_warnings[$warning['section_id']]:0;
+ $section_warnings[$warning['section_id']]++;
+ }
+
+
+ echo '';
+ delete_transient('radium-opts-warnings-'.$this->args['opt_name']);
+ }
+
+ }//function
+
+
+ /**
+ * Section HTML OUTPUT.
+ *
+ * @since RADIUM_Options 2.0
+ */
+ function _section_desc($section){
+
+ $id = rtrim($section['id'], '_section');
+
+ if(isset($this->sections[$id]['desc']) && !empty($this->sections[$id]['desc'])) {
+ echo ''.$this->sections[$id]['desc'].'
';
+ }
+
+ }//function
+
+
+ /**
+ * Field HTML OUTPUT.
+ *
+ * Gets option from options array, then calls the specific field type class - allows extending by other devs
+ *
+ * @since RADIUM_Options 2.0
+ */
+ function _field_input($field){
+
+
+ if(isset($field['callback']) && function_exists($field['callback'])){
+ $value = (isset($this->options[$field['id']]))?$this->options[$field['id']]:'';
+ do_action('radium-opts-before-field-'.$this->args['opt_name'], $field, $value);
+ call_user_func($field['callback'], $field, $value);
+ do_action('radium-opts-after-field-'.$this->args['opt_name'], $field, $value);
+ return;
+ }
+
+ if(isset($field['type'])){
+
+ $field_class = 'RADIUM_Options_'.$field['type'];
+
+ if(class_exists($field_class)){
+ require_once($this->dir.'fields/'.$field['type'].'/field_'.$field['type'].'.php');
+ }//if
+
+ if(class_exists($field_class)){
+ $value = (isset($this->options[$field['id']]))?$this->options[$field['id']]:'';
+ do_action('radium-opts-before-field-'.$this->args['opt_name'], $field, $value);
+ $render = '';
+ $render = new $field_class($field, $value, $this);
+ $render->render();
+ do_action('radium-opts-after-field-'.$this->args['opt_name'], $field, $value);
+ }//if
+
+ }//if $field['type']
+
+ }//function
+
+
+}//class
+}//if
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/validation/color/validation_color.php b/wp-content/themes/acute/lib/admin/options/validation/color/validation_color.php
new file mode 100644
index 0000000..760b72c
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/validation/color/validation_color.php
@@ -0,0 +1,78 @@
+field = $field;
+ $this->field['msg'] = (isset($this->field['msg']))?$this->field['msg']:__('This field must be a valid color value.', 'bean');
+ $this->value = $value;
+ $this->current = $current;
+ $this->validate();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+
+ function validate(){
+
+ if(!is_array($this->value)){
+
+ if($this->value[0] != '#'){
+ $this->value = (isset($this->current))?$this->current:'';
+ $this->error = $this->field;
+ return;
+ }
+
+ if(strlen($this->value) != 7){
+ $this->value = (isset($this->current))?$this->current:'';
+ $this->error = $this->field;
+ }
+
+ }//if array
+
+
+ if(is_array($this->value)){
+
+ foreach($this->value as $k => $value){
+
+ if(isset($this->error)){continue;}
+
+ if($value[0] != '#'){
+ $this->value[$k] = (isset($this->current[$k]))?$this->current[$k]:'';
+ $this->error = $this->field;
+ continue;
+ }
+
+ if(strlen($value) != 7){
+ $this->value[$k] = (isset($this->current[$k]))?$this->current[$k]:'';
+ $this->error = $this->field;
+ }
+
+ }//foreach
+
+ }//if array
+
+
+
+
+ }//function
+
+}//class */
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/validation/comma_numeric/validation_comma_numeric.php b/wp-content/themes/acute/lib/admin/options/validation/comma_numeric/validation_comma_numeric.php
new file mode 100644
index 0000000..ab21e70
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/validation/comma_numeric/validation_comma_numeric.php
@@ -0,0 +1,43 @@
+field = $field;
+ $this->field['msg'] = (isset($this->field['msg']))?$this->field['msg']:__('You must provide a comma seperated list of numerical values for this option.', 'bean');
+ $this->value = $value;
+ $this->current = $current;
+ $this->validate();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function validate(){
+
+ $this->value = str_replace(' ', '', $this->value);
+
+ if(!is_numeric(str_replace(',', '',$this->value))){
+ $this->value = (isset($this->current))?$this->current:'';
+ $this->error = $this->field;
+ }
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/validation/date/validation_date.php b/wp-content/themes/acute/lib/admin/options/validation/date/validation_date.php
new file mode 100644
index 0000000..858080b
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/validation/date/validation_date.php
@@ -0,0 +1,56 @@
+field = $field;
+ $this->field['msg'] = (isset($this->field['msg']))?$this->field['msg']:__('This field must be a valid date.', 'bean');
+ $this->value = $value;
+ $this->current = $current;
+ $this->validate();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function validate(){
+
+ $string = str_replace('/', '', $this->value);
+
+ if(!is_numeric($string)){
+ $this->value = (isset($this->current))?$this->current:'';
+ $this->error = $this->field;
+ return;
+ }
+
+ if($this->value[2] != '/'){
+ $this->value = (isset($this->current))?$this->current:'';
+ $this->error = $this->field;
+ return;
+ }
+
+ if($this->value[5] != '/'){
+ $this->value = (isset($this->current))?$this->current:'';
+ $this->error = $this->field;
+ }
+
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/validation/email/validation_email.php b/wp-content/themes/acute/lib/admin/options/validation/email/validation_email.php
new file mode 100644
index 0000000..c5d9bd9
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/validation/email/validation_email.php
@@ -0,0 +1,41 @@
+field = $field;
+ $this->field['msg'] = (isset($this->field['msg']))?$this->field['msg']:__('You must provide a valid email for this option.', 'bean');
+ $this->value = $value;
+ $this->current = $current;
+ $this->validate();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function validate(){
+
+ if(!is_email($this->value)){
+ $this->value = (isset($this->current))?$this->current:'';
+ $this->error = $this->field;
+ }
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/validation/html/validation_html.php b/wp-content/themes/acute/lib/admin/options/validation/html/validation_html.php
new file mode 100644
index 0000000..f7ed7ac
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/validation/html/validation_html.php
@@ -0,0 +1,37 @@
+field = $field;
+ $this->value = $value;
+ $this->current = $current;
+ $this->validate();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and validates them
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function validate(){
+
+ $this->value = wp_kses_post($this->value);
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/validation/html_custom/validation_html_custom.php b/wp-content/themes/acute/lib/admin/options/validation/html_custom/validation_html_custom.php
new file mode 100644
index 0000000..33108c5
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/validation/html_custom/validation_html_custom.php
@@ -0,0 +1,37 @@
+field = $field;
+ $this->value = $value;
+ $this->current = $current;
+ $this->validate();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and validates them
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function validate(){
+
+ $this->value = wp_kses($this->value, $this->field['allowed_html']);
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/validation/js/validation_js.php b/wp-content/themes/acute/lib/admin/options/validation/js/validation_js.php
new file mode 100644
index 0000000..41d89e4
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/validation/js/validation_js.php
@@ -0,0 +1,37 @@
+field = $field;
+ $this->value = $value;
+ $this->current = $current;
+ $this->validate();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and validates them
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function validate(){
+
+ $this->value = esc_js($this->value);
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/validation/no_html/validation_no_html.php b/wp-content/themes/acute/lib/admin/options/validation/no_html/validation_no_html.php
new file mode 100644
index 0000000..29a068f
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/validation/no_html/validation_no_html.php
@@ -0,0 +1,44 @@
+field = $field;
+ $this->field['msg'] = (isset($this->field['msg']))?$this->field['msg']:__('You must not enter any HTML in this field, all HTML tags have been removed.', 'bean');
+ $this->value = $value;
+ $this->current = $current;
+ $this->validate();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and validates them
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function validate(){
+
+ $newvalue = strip_tags($this->value);
+
+ if($this->value != $newvalue){
+ $this->warning = $this->field;
+ }
+
+ $this->value = $newvalue;
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/validation/no_special_chars/validation_no_special_chars.php b/wp-content/themes/acute/lib/admin/options/validation/no_special_chars/validation_no_special_chars.php
new file mode 100644
index 0000000..a4099b1
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/validation/no_special_chars/validation_no_special_chars.php
@@ -0,0 +1,42 @@
+field = $field;
+ $this->field['msg'] = (isset($this->field['msg']))?$this->field['msg']:__('You must not enter any special characters in this field, all special characters have been removed.', 'bean');
+ $this->value = $value;
+ $this->current = $current;
+ $this->validate();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and validates them
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function validate(){
+
+ if(!preg_match('/[^a-zA-Z0-9_ -]/s', $this->value) == 0){
+ $this->warning = $this->field;
+ }
+
+ $this->value = preg_replace('/[^a-zA-Z0-9_ -]/s', '', $this->value);
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/validation/numeric/validation_numeric.php b/wp-content/themes/acute/lib/admin/options/validation/numeric/validation_numeric.php
new file mode 100644
index 0000000..072b84c
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/validation/numeric/validation_numeric.php
@@ -0,0 +1,41 @@
+field = $field;
+ $this->field['msg'] = (isset($this->field['msg']))?$this->field['msg']:__('You must provide a numerical value for this option.', 'bean');
+ $this->value = $value;
+ $this->current = $current;
+ $this->validate();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and outputs the HTML for the field in the settings
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function validate(){
+
+ if(!is_numeric($this->value)){
+ $this->value = (isset($this->current))?$this->current:'';
+ $this->error = $this->field;
+ }
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/validation/preg_replace/validation_preg_replace.php b/wp-content/themes/acute/lib/admin/options/validation/preg_replace/validation_preg_replace.php
new file mode 100644
index 0000000..c15a4b0
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/validation/preg_replace/validation_preg_replace.php
@@ -0,0 +1,37 @@
+field = $field;
+ $this->value = $value;
+ $this->current = $current;
+ $this->validate();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and validates them
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function validate(){
+
+ $this->value = preg_replace($this->field['preg']['pattern'], $this->field['preg']['replacement'], $this->value);
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/validation/str_replace/validation_str_replace.php b/wp-content/themes/acute/lib/admin/options/validation/str_replace/validation_str_replace.php
new file mode 100644
index 0000000..175fda4
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/validation/str_replace/validation_str_replace.php
@@ -0,0 +1,37 @@
+field = $field;
+ $this->value = $value;
+ $this->current = $current;
+ $this->validate();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and validates them
+ *
+ * @since RADIUM_Options 1.0.1
+ */
+ function validate(){
+
+ $this->value = str_replace($this->field['str']['search'], $this->field['str']['replacement'], $this->value);
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/options/validation/url/validation_url.php b/wp-content/themes/acute/lib/admin/options/validation/url/validation_url.php
new file mode 100644
index 0000000..daabd23
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/options/validation/url/validation_url.php
@@ -0,0 +1,43 @@
+field = $field;
+ $this->field['msg'] = (isset($this->field['msg']))?$this->field['msg']:__('You must provide a valid URL for this option.', 'bean');
+ $this->value = $value;
+ $this->current = $current;
+ $this->validate();
+
+ }//function
+
+
+
+ /**
+ * Field Render Function.
+ *
+ * Takes the vars and validates them
+ *
+ * @since RADIUM_Options 1.0
+ */
+ function validate(){
+
+ if (filter_var($this->value, FILTER_VALIDATE_URL) == false) {
+ $this->value = (isset($this->current))?$this->current:'';
+ $this->error = $this->field;
+ }else{
+ $this->value = esc_url_raw($this->value);
+ }
+
+ }//function
+
+}//class
+?>
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/sidebars/assets/css/sidebars_admin.css b/wp-content/themes/acute/lib/admin/sidebars/assets/css/sidebars_admin.css
new file mode 100644
index 0000000..52162de
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/sidebars/assets/css/sidebars_admin.css
@@ -0,0 +1,26 @@
+.conditions-tabs li { display: inline; margin: 5px 0; padding: 5px; }
+.radium-conditions .ui-tabs-hide { display: none !important; }
+.radium-conditions .conditions-tabs { background:#eaeaea;padding:3px 9px 0;margin:0;overflow:hidden;zoom:1;line-height:1em;-webkit-box-shadow:inset 0 -1px 0 0 #d5d5d5;-moz-box-shadow:inset 0 -1px 0 0 x #d5d5d5;box-shadow:inset 0 -1px 0 0 #d5d5d5; }
+.radium-conditions .conditions-tabs li { float:left;padding:0;margin:0 5px 0 0; }
+.radium-conditions .conditions-tabs li.alignright { float: right; }
+.radium-conditions .conditions-tabs li.hide { display: none; }
+.radium-conditions .conditions-tabs li.advanced-settings a { background-image: url(../images/icon-settings.png); background-repeat: no-repeat; background-position: 8px 50%; padding-left: 30px; }
+.radium-conditions .conditions-tabs li a { padding:0;margin:0;border:0;border:1px solid #d5d5d5;border-bottom:0;float:left;padding:9px 9px;background:#ececec;text-decoration:none;color:#555;-moz-border-radius-topleft:3px;-moz-border-radius-topright:3px;-webkit-border-top-left-radius:3px;-webkit-border-top-right-radius:3px;border-top-left-radius:3px;border-top-right-radius:3px;-webkit-box-shadow:inset 0 1px 0 1px rgba(255, 255, 255, 0.5);-moz-box-shadow:inset 0 1px 0 1px rgba(255, 255, 255, 0.5);box-shadow:inset 0 1px 0 1px rgba(255, 255, 255, 0.5); }
+.radium-conditions .conditions-tabs li.ui-state-active {}
+.radium-conditions .conditions-tabs li.ui-state-active a { background:#f8f8f8;color:#555;background-image:linear-gradient(bottom, #ffffff 0%, #f8f8f8 100%);background-image:-o-linear-gradient(bottom, #ffffff 0%, #f8f8f8 100%);background-image:-moz-linear-gradient(bottom, #ffffff 0%, #f8f8f8 100%);background-image:-webkit-linear-gradient(bottom, #ffffff 0%, #f8f8f8 100%);background-image:-ms-linear-gradient(bottom, #ffffff 0%, #f8f8f8 100%);background-image:-webkit-gradient(linear, left bottom, left top, color-stop(0, #ffffff), color-stop(1, #f8f8f8)); }
+#radium-conditions.postbox .inside { background: #FFFFFF; padding: 0; margin: 0; }
+#radium-conditions.postbox .inside .condition-tab { background: #FFFFFF; padding: 2px 18px; }
+#radium-conditions.postbox .inside .condition-tab h4 { margin-top: 10px; }
+
+#radium-conditions.postbox .conditions-column { display: block; margin: 0 20px 20px 0; }
+
+#radium-conditions.postbox .conditions-tabs-inner { display: block; padding: 10px 0; }
+.conditions-tabs-inner li { display: inline; padding: .2em; line-height: 2; margin: 0; }
+.conditions-tabs-inner li a { margin-right: 5px; text-decoration: none; }
+.conditions-tabs-inner li.ui-state-active a { color: #000000; font-weight: bold; }
+#radium-conditions.postbox .inside .condition-tab .condition-tab { padding: 2px 0px; }
+
+.view-switch { display: none; }
+
+#preview-action { display: none; }
+#visibility.misc-pub-section { display: none; }
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/sidebars/assets/css/sidebars_admin_posts.css b/wp-content/themes/acute/lib/admin/sidebars/assets/css/sidebars_admin_posts.css
new file mode 100644
index 0000000..0dca217
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/sidebars/assets/css/sidebars_admin_posts.css
@@ -0,0 +1,3 @@
+/* Custom Column On Posts, etc */
+
+.column-radiumsidebars_enable { width: 12%; }
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/sidebars/assets/images/icon-settings.png b/wp-content/themes/acute/lib/admin/sidebars/assets/images/icon-settings.png
new file mode 100644
index 0000000..8c3f1f0
Binary files /dev/null and b/wp-content/themes/acute/lib/admin/sidebars/assets/images/icon-settings.png differ
diff --git a/wp-content/themes/acute/lib/admin/sidebars/assets/js/sidebars_admin.js b/wp-content/themes/acute/lib/admin/sidebars/assets/js/sidebars_admin.js
new file mode 100644
index 0000000..efb3078
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/sidebars/assets/js/sidebars_admin.js
@@ -0,0 +1,26 @@
+jQuery( document ).ready( function () {
+ jQuery( '.radium-conditions.tabs' ).tabs();
+ jQuery( '.radium-conditions.tabs .inner-tabs' ).tabs();
+
+ jQuery( '#radium-conditions .advanced-settings a' ).click( function ( e ) {
+ jQuery( this ).parent( 'li' ).siblings( '.advanced' ).toggleClass( 'hide' );
+
+ var new_status = '1'; // Do display.
+ if ( jQuery( this ).parent( 'li' ).siblings( '.advanced' ).hasClass( 'hide' ) ) {
+ new_status = '0'; // Don't display.
+ }
+
+ // Perform the AJAX call.
+ jQuery.post(
+ ajaxurl,
+ {
+ action : 'radiumsidebars-toggle-advanced-items',
+ radiumsidebars_advanced_noonce : radiumsidebars_localized_data.radiumsidebars_advanced_noonce,
+ new_status: new_status
+ },
+ function( response ) {}
+ );
+
+ return false;
+ });
+});
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/admin/sidebars/classes/class.radiumconditions.php b/wp-content/themes/acute/lib/admin/sidebars/classes/class.radiumconditions.php
new file mode 100644
index 0000000..42911a5
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/sidebars/classes/class.radiumconditions.php
@@ -0,0 +1,709 @@
+meta_box_settings['title'] = __( 'Conditions', 'bean' );
+
+ if ( is_admin() && get_post_type() == $this->token || ! get_post_type() ) {
+ add_action( 'admin_menu', array( &$this, 'meta_box_setup' ), 20 );
+ add_action( 'save_post', array( &$this, 'meta_box_save' ) );
+ }
+
+ if ( is_admin() ) {
+ add_action( 'admin_print_scripts', array( &$this, 'enqueue_scripts' ), 12 );
+ }
+
+ add_action( 'get_header', array( &$this, 'get_conditions' ) );
+
+ add_action( 'wp_ajax_radiumsidebars-toggle-advanced-items', array( &$this, 'ajax_toggle_advanced_items' ) );
+ } // End __construct()
+
+ /**
+ * get_conditions function.
+ *
+ * @access public
+ * @return void
+ */
+ function get_conditions () {
+ $this->determine_conditions();
+
+ $this->conditions = apply_filters( 'radium_conditions', $this->conditions );
+
+ $this->conditions = array_reverse( $this->conditions );
+ } // End get_conditions()
+
+ /**
+ * determine_conditions function.
+ *
+ * @access public
+ * @return void
+ */
+ function determine_conditions () {
+ $this->is_hierarchy();
+ $this->is_taxonomy();
+ $this->is_post_type_archive();
+ $this->is_page_template();
+ } // End determine_conditions()
+
+ /**
+ * setup_default_conditions_reference function.
+ *
+ * @description Setup the default conditions and their information, for display when selecting conditions.
+ * @access public
+ * @return void
+ */
+ function setup_default_conditions_reference () {
+ $conditions = array();
+ $conditions_headings = array();
+
+ // Pages
+ $conditions['pages'] = array();
+
+ $pages = get_pages();
+
+ if ( count( $pages ) > 0 ) {
+
+ $conditions_headings['pages'] = __( 'Pages', 'bean' );
+
+ foreach ( $pages as $k => $v ) {
+ $token = 'post-' . $v->ID;
+ $conditions['pages'][$token] = array(
+ 'label' => $v->post_title,
+ 'description' => sprintf( __( 'The "%s" page', 'bean' ), $v->post_title )
+ );
+ }
+
+ }
+
+ $args = array(
+ 'show_ui' => true,
+ 'public' => true,
+ 'publicly_queryable' => true,
+ '_builtin' => false
+ );
+
+ $post_types = get_post_types( $args, 'object' );
+
+ // Set certain post types that aren't allowed to have custom sidebars.
+ $disallowed_types = array( 'slide' );
+
+ // Make the array filterable.
+ $disallowed_types = apply_filters( 'radiumsidebars_disallowed_post_types', $disallowed_types );
+
+ if ( count( $post_types ) ) {
+ foreach ( $post_types as $k => $v ) {
+ if ( in_array( $k, $disallowed_types ) ) {
+ unset( $post_types[$k] );
+ }
+ }
+ }
+
+ // Add per-post support for any post type that supports it.
+
+ $args = array(
+ 'show_ui' => true,
+ 'public' => true,
+ 'publicly_queryable' => true,
+ '_builtin' => true
+ );
+
+ $built_in_post_types = get_post_types( $args, 'object' );
+
+ foreach ( $built_in_post_types as $k => $v ) {
+ if ( $k == 'post' ) {
+ $post_types[$k] = $v;
+ break;
+ }
+ }
+
+ foreach ( $post_types as $k => $v ) {
+ if ( ! post_type_supports( $k, 'radiumsidebars' ) ) { continue; }
+
+ $conditions_headings[$k] = $v->labels->name;
+
+ $query_args = array( 'numberposts' => -1, 'post_type' => $k, 'meta_key' => '_enable_sidebar', 'meta_value' => 'yes', 'meta_compare' => '=' );
+
+ $posts = get_posts( $query_args );
+
+ if ( count( $posts ) > 0 ) {
+ foreach ( $posts as $i => $j ) {
+ $conditions[$k]['post' . '-' . $j->ID] = array(
+ 'label' => $j->post_title,
+ 'description' => sprintf( __( 'A custom sidebar for "%s"', 'bean' ), esc_attr( $j->post_title ) )
+ );
+ }
+ }
+ }
+
+ // Page Templates
+ $conditions['templates'] = array();
+
+ $page_templates = get_page_templates();
+
+ if ( count( $page_templates ) > 0 ) {
+
+ $conditions_headings['templates'] = __( 'Page Templates', 'bean' );
+
+ foreach ( $page_templates as $k => $v ) {
+ $token = str_replace( '.php', '', 'page-template-' . $v );
+ $conditions['templates'][$token] = array(
+ 'label' => $k,
+ 'description' => sprintf( __( 'The "%s" page template', 'bean' ), $k )
+ );
+ }
+ }
+
+ // Post Type Archives
+ $conditions['post_types'] = array();
+
+ if ( count( $post_types ) > 0 ) {
+
+ $conditions_headings['post_types'] = __( 'Post Types', 'bean' );
+
+ foreach ( $post_types as $k => $v ) {
+ $token = 'post-type-archive-' . $k;
+
+ if ( $v->has_archive ) {
+ $conditions['post_types'][$token] = array(
+ 'label' => sprintf( __( '"%s" Post Type Archive', 'bean' ), $v->labels->name ),
+ 'description' => sprintf( __( 'The "%s" post type archive', 'bean' ), $v->labels->name )
+ );
+ }
+ }
+
+ foreach ( $post_types as $k => $v ) {
+ $token = 'post-type-' . $k;
+ $conditions['post_types'][$token] = array(
+ 'label' => sprintf( __( 'Individual %s', 'bean' ), $v->labels->name ),
+ 'description' => sprintf( __( 'Entries in the "%s" post type', 'bean' ), $v->labels->name )
+ );
+ }
+
+ }
+
+ // Taxonomies and Taxonomy Terms
+ $conditions['taxonomies'] = array();
+
+ $args = array(
+ 'public' => true,
+ 'show_ui' => true
+ );
+
+ $taxonomies = get_taxonomies( $args, 'objects' );
+
+ if ( count( $taxonomies ) > 0 ) {
+
+ $conditions_headings['taxonomies'] = __( 'Taxonomy Archives', 'bean' );
+
+ foreach ( $taxonomies as $k => $v ) {
+ $taxonomy = $v;
+
+ if ( $taxonomy->public == true ) {
+ $conditions['taxonomies']['archive-' . $k] = array(
+ 'label' => $taxonomy->labels->name . ' (' . $k . ')',
+ 'description' => sprintf( __( 'The default "%s" archives', 'bean' ), strtolower( $taxonomy->labels->name ) )
+ );
+
+ // Setup each individual taxonomy's terms as well.
+ $conditions_headings['taxonomy-' . $k] = $taxonomy->labels->name;
+ $terms = get_terms( $k );
+ if ( count( $terms ) > 0 ) {
+ $conditions['taxonomy-' . $k] = array();
+ foreach ( $terms as $i => $j ) {
+ $conditions['taxonomy-' . $k]['term-' . $j->term_id] = array( 'label' => $j->name, 'description' => sprintf( __( 'The %s %s archive', 'bean' ), $j->name, strtolower( $taxonomy->labels->name ) ) );
+ if ( $k == 'category' ) {
+ $conditions['taxonomy-' . $k]['in-term-' . $j->term_id] = array( 'label' => sprintf( __( 'All posts in "%s"', 'bean' ), $j->name ), 'description' => sprintf( __( 'All posts in the %s %s archive', 'bean' ), $j->name, strtolower( $taxonomy->labels->name ) ) );
+ }
+ }
+ }
+
+ }
+ }
+ }
+
+ $conditions_headings['hierarchy'] = __( 'Template Hierarchy', 'bean' );
+
+ // Template Hierarchy
+ $conditions['hierarchy']['page'] = array(
+ 'label' => __( 'Pages', 'bean' ),
+ 'description' => __( 'Displayed on all pages that don\'t have a more specific widget area.', 'bean' )
+ );
+
+ $conditions['hierarchy']['search'] = array(
+ 'label' => __( 'Search Results', 'bean' ),
+ 'description' => __( 'Displayed on search results screens.', 'bean' )
+ );
+
+ $conditions['hierarchy']['home'] = array(
+ 'label' => __( 'Default "Your Latest Posts" Screen', 'bean' ),
+ 'description' => __( 'Displayed on the default "Your Latest Posts" screen.', 'bean' )
+ );
+
+ $conditions['hierarchy']['front_page'] = array(
+ 'label' => __( 'Front Page', 'bean' ),
+ 'description' => __( 'Displayed on any front page, regardless of the settings under the "Settings -> Reading" admin screen.', 'bean' )
+ );
+
+ $conditions['hierarchy']['single'] = array(
+ 'label' => __( 'Single Entries', 'bean' ),
+ 'description' => __( 'Displayed on single entries of any public post type other than "Pages".', 'bean' )
+ );
+
+ $conditions['hierarchy']['archive'] = array(
+ 'label' => __( 'All Archives', 'bean' ),
+ 'description' => __( 'Displayed on all archives (category, tag, taxonomy, post type, dated, author and search).', 'bean' )
+ );
+
+ $conditions['hierarchy']['author'] = array(
+ 'label' => __( 'Author Archives', 'bean' ),
+ 'description' => __( 'Displayed on all author archive screens (that don\'t have a more specific sidebar).', 'bean' )
+ );
+
+ $conditions['hierarchy']['date'] = array(
+ 'label' => __( 'Date Archives', 'bean' ),
+ 'description' => __( 'Displayed on all date archives.', 'bean' )
+ );
+
+ $conditions['hierarchy']['404'] = array(
+ 'label' => __( '404 Error Screens', 'bean' ),
+ 'description' => __( 'Displayed on all 404 error screens.', 'bean' )
+ );
+
+ $this->conditions_reference = (array)apply_filters( 'radium_conditions_reference', $conditions );
+ $this->conditions_headings = (array)apply_filters( 'radium_conditions_headings', $conditions_headings );
+ } // End setup_default_conditions_reference()
+
+ /**
+ * is_hierarchy function.
+ *
+ * @description Is the current view a part of the default template hierarchy?
+ * @access public
+ * @return void
+ */
+ function is_hierarchy () {
+ if ( is_front_page() && ! is_home() ) {
+ $this->conditions[] = 'static_front_page';
+ }
+
+ if ( ! is_front_page() && is_home() ) {
+ $this->conditions[] = 'inner_posts_page';
+ }
+
+ if ( is_front_page() ) {
+ $this->conditions[] = 'front_page';
+ }
+
+ if ( is_home() ) {
+ $this->conditions[] = 'home';
+ }
+
+ if ( is_singular() ) {
+ $this->conditions[] = 'singular';
+ $this->conditions[] = 'post-type-' . get_post_type();
+ $categories = get_the_category( get_the_ID() );
+ if ( ! is_wp_error( $categories ) && ( count( $categories ) > 0 ) ) {
+ foreach ( $categories as $k => $v ) {
+ $this->conditions[] = 'in-term-' . $v->term_id;
+ }
+ }
+
+ $this->conditions[] = 'post' . '-' . get_the_ID();
+ }
+
+ if ( is_search() ) {
+ $this->conditions[] = 'search';
+ }
+
+ if ( is_home() ) {
+ $this->conditions[] = 'home';
+ }
+
+ if ( is_front_page() ) {
+ $this->conditions[] = 'front_page';
+ }
+
+ if ( is_archive() ) {
+ $this->conditions[] = 'archive';
+ }
+
+ if ( is_author() ) {
+ $this->conditions[] = 'author';
+ }
+
+ if ( is_date() ) {
+ $this->conditions[] = 'date';
+ }
+
+ if ( is_404() ) {
+ $this->conditions[] = '404';
+ }
+ } // End is_hierarchy()
+
+ /**
+ * is_taxonomy function.
+ *
+ * @description Is the current view an archive within a specific taxonomy, that doesn't have a specific sidebar?
+ * @access public
+ * @return void
+ */
+ function is_taxonomy () {
+ if ( ( is_tax() || is_archive() ) && ! is_post_type_archive() ) {
+ $obj = get_queried_object();
+
+ if ( ! is_category() && ! is_tag() ) {
+ $this->conditions[] = 'taxonomies';
+ }
+ @$this->conditions[] = 'archive-' . $obj->taxonomy;
+ @$this->conditions[] = 'term-' . $obj->term_id;
+ }
+ } // End is_taxonomy()
+
+ /**
+ * is_post_type_archive function.
+ *
+ * @description Is the current view an archive of a post type?
+ * @access public
+ * @return void
+ */
+ function is_post_type_archive () {
+ if ( is_post_type_archive() ) {
+ $this->conditions[] = 'post-type-archive-' . get_post_type();
+ }
+ } // End is_post_type_archive()
+
+ /**
+ * is_page_template function.
+ *
+ * @description Does the current view have a specific page template attached (used on single views)?
+ * @access public
+ * @return void
+ */
+ function is_page_template () {
+ if ( is_singular() ) {
+ global $post;
+ $template = get_post_meta( $post->ID, '_wp_page_template', true );
+
+ if ( $template != '' && $template != 'default' ) {
+ $this->conditions[] = str_replace( '.php', '', 'page-template-' . $template );
+ }
+ }
+ } // End is_page_template()
+
+ /**
+ * meta_box_setup function.
+ *
+ * @access public
+ * @return void
+ */
+ function meta_box_setup () {
+ add_meta_box( 'radium-conditions', $this->meta_box_settings['title'], array( &$this, 'meta_box_content' ), $this->token, 'normal', 'low' );
+ } // End meta_box_setup()
+
+ /**
+ * meta_box_content function.
+ *
+ * @access public
+ * @return void
+ */
+ function meta_box_content () {
+ global $post_id;
+
+ if ( count( $this->conditions_reference ) <= 0 ) $this->setup_default_conditions_reference();
+
+ $selected_conditions = get_post_meta( $post_id, '_condition', false );
+
+ if ( $selected_conditions == '' ) {
+ $selected_conditions = array();
+ }
+
+ $html = '';
+
+ $html .= ' ';
+
+ if ( count( $this->conditions_reference ) > 0 ) {
+
+ // Separate out the taxonomy items for use as sub-tabs of "Taxonomy Terms".
+ $taxonomy_terms = array();
+
+ foreach ( $this->conditions_reference as $k => $v ) {
+ if ( substr( $k, 0, 9 ) == 'taxonomy-' ) {
+ $taxonomy_terms[$k] = $v;
+ unset( $this->conditions_reference[$k] );
+ }
+ }
+
+ $html .= '' . "\n";
+
+ $html .= '
' . "\n";
+
+ $count = 0;
+
+ // Determine whether or not to show advanced items, based on user's preference (default: false).
+ $show_advanced = $this->show_advanced_items();
+
+ foreach ( $this->conditions_reference as $k => $v ) {
+ $count++;
+ $class = '';
+ if ( $count == 1 ) {
+ $class = 'tabs';
+ } else {
+ $class = 'hide-if-no-js';
+ }
+ if ( in_array( $k, array( 'pages' ) ) ) {
+ $class .= ' basic';
+ } else {
+ $class .= ' advanced';
+ if ( ! $show_advanced ) { $class .= ' hide'; }
+ }
+
+ if ( isset( $this->conditions_headings[$k] ) ) {
+ $html .= '' . $this->conditions_headings[$k] . ' ' . "\n";
+ }
+
+ if ( $k == 'taxonomies' ) {
+ $html .= '' . __( 'Taxonomy Terms', 'bean' ) . ' ' . "\n";
+ }
+ }
+
+ $class = 'hide-if-no-js advanced';
+ if ( ! $show_advanced ) { $class .= ' hide'; }
+
+ $html .= '' . __( 'Advanced', 'bean' ) . ' ' . "\n";
+
+ $html .= ' ' . "\n";
+
+ foreach ( $this->conditions_reference as $k => $v ) {
+ $count = 0;
+
+ $tab = '';
+
+ $tab .= '
' . "\n";
+ $tab .= '
' . $this->conditions_headings[$k] . ' ' . "\n";
+ $tab .= '
' . "\n";
+ // Filter the contents of the current tab.
+ $tab = apply_filters( 'radium_conditions_tab_' . esc_attr( $k ), $tab );
+ $html .= $tab;
+ $html .= '
';
+ $html .= '
' . "\n";
+ }
+
+ // Taxonomy Terms Tab
+ $html .= '
' . "\n";
+ $html .= '
' . "\n";
+
+ foreach ( $taxonomy_terms as $k => $v ) {
+ if ( ! isset( $this->conditions_headings[$k] ) ) { unset( $taxonomy_terms[$k] ); }
+ }
+
+ $count = 0;
+ foreach ( $taxonomy_terms as $k => $v ) {
+ $count++;
+ $class = '';
+ if ( $count == 1 ) {
+ $class = 'tabs';
+ } else {
+ $class = 'hide-if-no-js';
+ }
+
+ $html .= '' . $this->conditions_headings[$k] . ' ';
+ if ( $count != count( $taxonomy_terms ) ) {
+ $html .= ' |';
+ }
+ $html .= ' ' . "\n";
+ }
+
+ $html .= ' ' . "\n";
+
+ foreach ( $taxonomy_terms as $k => $v ) {
+ $count = 0;
+
+ $html .= '
' . "\n";
+ $html .= '
' . $this->conditions_headings[$k] . ' ' . "\n";
+ $html .= '
';
+ }
+ }
+
+ $html .= ' ' . "\n";
+ $html .= '
';
+ $html .= '
' . "\n";
+ }
+ $html .= '
' . "\n";
+ }
+
+ // Allow themes/plugins to act here (key, args).
+ do_action( 'radium_conditions_meta_box', $k, $v );
+
+ $html .= '
' . "\n";
+
+ echo $html;
+ } // End meta_box_content()
+
+ /**
+ * meta_box_save function.
+ *
+ * @access public
+ * @param mixed $post_id
+ * @return void
+ */
+ function meta_box_save ( $post_id ) {
+ global $post, $messages;
+
+ // Verify
+ if ( ( get_post_type() != $this->token ) || ! wp_verify_nonce( $_POST['radium_' . $this->token . '_conditions_noonce'], plugin_basename(__FILE__) ) ) {
+ return $post_id;
+ }
+
+ if ( 'page' == $_POST['post_type'] ) {
+ if ( ! current_user_can( 'edit_page', $post_id ) ) {
+ return $post_id;
+ }
+ } else {
+ if ( ! current_user_can( 'edit_post', $post_id ) ) {
+ return $post_id;
+ }
+ }
+
+ if ( isset( $_POST['conditions'] ) && ( count( $_POST['conditions'] ) > 0 ) ) {
+
+ delete_post_meta( $post_id, '_condition' );
+
+ foreach ( $_POST['conditions'] as $k => $v ) {
+ add_post_meta( $post_id, '_condition', $v, false );
+ }
+ }
+ } // End meta_box_save()
+
+ /**
+ * show_advanced_itesm function.
+ *
+ * @access private
+ * @return boolean
+ */
+ private function show_advanced_items () {
+ $response = false;
+
+ $setting = get_user_setting( 'radiumsidebarsshowadvanced', '0' );
+
+ if ( $setting == '1' ) { $response = true; }
+
+ return $response;
+ } // End show_advanced_items()
+
+ /**
+ * ajax_toggle_advanced_items function.
+ *
+ * @access public
+ * @return void
+ */
+ public function ajax_toggle_advanced_items () {
+ $nonce = $_POST['radiumsidebars_advanced_noonce'];
+ $status = $_POST['new_status'];
+ //Add nonce security to the request
+ if ( ! wp_verify_nonce( $nonce, 'radiumsidebars_advanced_noonce' ) ) {
+ die();
+ }
+
+ $response = set_user_setting( 'radiumsidebarsshowadvanced', $status );
+
+ echo $response;
+ die(); // WordPress may print out a spurious zero without this can be particularly bad if using JSON
+ } // End ajax_toggle_advanced_items()
+
+ /**
+ * enqueue_scripts function.
+ *
+ * @access public
+ * @return void
+ */
+ public function enqueue_scripts () {
+ global $pagenow;
+ if ( get_post_type() != $this->token ) { return; }
+
+ if ( in_array( $pagenow, array( 'post.php', 'post-new.php' ) ) ) {
+ wp_register_script( $this->token . '-admin', BEAN_ADMIN_URL . '/sidebars/assets/js/sidebars_admin.js', array( 'jquery', 'jquery-ui-tabs' ), '1.0.0', true );
+
+ wp_enqueue_script( $this->token . '-admin' );
+
+ wp_dequeue_script( 'jquery-ui-datepicker' );
+
+ $translation_strings = array();
+
+ $ajax_vars = array( 'radiumsidebars_advanced_noonce' => wp_create_nonce( 'radiumsidebars_advanced_noonce' ) );
+
+ $data = array_merge( $translation_strings, $ajax_vars );
+
+ wp_localize_script( $this->token . '-admin', 'radiumsidebars_localized_data', $data );
+ }
+ } // End enqueue_scripts()
+} // End Class
+?>
diff --git a/wp-content/themes/acute/lib/admin/sidebars/classes/class.radiumsidebars.php b/wp-content/themes/acute/lib/admin/sidebars/classes/class.radiumsidebars.php
new file mode 100644
index 0000000..b8d86cd
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/sidebars/classes/class.radiumsidebars.php
@@ -0,0 +1,728 @@
+version = '1.1.3';
+
+ $this->token = 'sidebar';
+ $this->prefix = 'radium_sidebar_';
+
+ $this->conditions = new Radium_Conditions();
+ $this->conditions->token = $this->token;
+ } // End __construct()
+
+ /**
+ * init function.
+ *
+ * @access public
+ * @return void
+ */
+ public function init () {
+
+ add_action( 'init', array( &$this, 'register_post_type' ), 20 );
+ add_action( 'admin_menu', array( &$this, 'meta_box_setup' ), 20 );
+ add_action( 'save_post', array( &$this, 'meta_box_save' ) );
+ add_filter( 'enter_title_here', array( &$this, 'enter_title_here' ) );
+ add_filter( 'post_updated_messages', array( &$this, 'update_messages' ) );
+ add_action( 'widgets_init', array( &$this, 'register_custom_sidebars' ) );
+ add_action( 'get_header', array( &$this, 'init_sidebar_replacement' ) );
+
+ // By default, add post type support for sidebars to the "post" post type.
+ add_post_type_support( 'post', 'radiumsidebars' );
+
+ add_action( 'admin_head', array( &$this, 'register_post_type_columns' ) );
+
+ add_action( 'wp_ajax_radiumsidebars-post-enable', array( &$this, 'enable_custom_post_sidebars' ) );
+
+ if ( is_admin() ) {
+ global $pagenow;
+
+ add_action( 'admin_enqueue_scripts', array( &$this, 'enqueue_styles' ), 12 );
+
+ if ( $pagenow == 'edit.php' && isset( $_GET['post_type'] ) && esc_attr( $_GET['post_type'] ) == $this->token ) {
+ add_filter( 'manage_edit-' . $this->token . '_columns', array( &$this, 'register_custom_column_headings' ), 10, 1 );
+ add_action( 'manage_posts_custom_column', array( &$this, 'register_custom_columns' ), 10, 2 );
+ }
+
+ }
+
+ } // End init()
+
+ /**
+ * register_post_type_columns function.
+ *
+ * @access public
+ * @return void
+ */
+ public function register_post_type_columns () {
+ $post_type = get_post_type();
+
+ if ( $post_type != '' && post_type_supports( $post_type, 'bean' ) ) {
+ add_filter( 'manage_edit-' . $post_type . '_columns', array( &$this, 'add_post_column_headings' ), 10, 1 );
+ add_action( 'manage_posts_custom_column', array( &$this, 'add_post_column_data' ), 10, 2 );
+ add_action( 'manage_pages_custom_column', array( &$this, 'add_post_column_data' ), 10, 2 );
+ }
+ } // End register_post_type_columns()
+
+ /**
+ * register_post_type function.
+ *
+ * @access public
+ * @return void
+ */
+ public function register_post_type () {
+
+ $page = 'themes.php';
+ $singular = __( 'Widget Area', 'bean' );
+ $plural = __( 'Widget Areas', 'bean' );
+ $rewrite = array( 'slug' => 'sidebars' );
+ $supports = array( 'title', 'excerpt' );
+
+ if ( $rewrite == '' ) { $rewrite = $this->token; }
+
+ $labels = array(
+ 'name' => _x( 'Widget Areas', 'post type general name', 'bean' ),
+ 'singular_name' => _x( 'Widget Area', 'post type singular name', 'bean' ),
+ 'add_new' => _x( 'Add New', 'Sidebar Area', 'bean' ),
+ 'add_new_item' => sprintf( __( 'Add New %s', 'bean' ), $singular ),
+ 'edit_item' => sprintf( __( 'Edit %s', 'bean' ), $singular ),
+ 'new_item' => sprintf( __( 'New %s', 'bean' ), $singular ),
+ 'all_items' => sprintf( __( 'Widget Areas', 'bean' ), $plural ),
+ 'view_item' => sprintf( __( 'View %s', 'bean' ), $singular ),
+ 'search_items' => sprintf( __( 'Search %a', 'bean' ), $plural ),
+ 'not_found' => sprintf( __( 'No %s Found', 'bean' ), $plural ),
+ 'not_found_in_trash' => sprintf( __( 'No %s Found In Trash', 'bean' ), $plural ),
+ 'parent_item_colon' => '',
+ 'menu_name' => $plural
+ );
+
+ $args = array(
+ 'labels' => $labels,
+ 'public' => false,
+ 'publicly_queryable' => true,
+ 'show_ui' => true,
+ 'show_in_nav_menus' => false,
+ 'show_in_admin_bar' => false,
+ 'show_in_menu' => $page,
+ 'query_var' => true,
+ 'rewrite' => $rewrite,
+ 'capability_type' => 'post',
+ 'has_archive' => false,
+ 'hierarchical' => false,
+ 'menu_position' => null,
+ 'supports' => $supports
+ );
+
+ register_post_type( $this->token, $args );
+
+ } // End register_post_type()
+
+ /**
+ * register_custom_columns function.
+ *
+ * @access public
+ * @param string $column_name
+ * @param int $id
+ * @return void
+ */
+ public function register_custom_columns ( $column_name, $id ) {
+ global $wpdb, $post;
+
+ $meta = get_post_custom( $id );
+ $sidebars = $this->get_registered_sidebars();
+
+ $this->conditions->setup_default_conditions_reference();
+
+ switch ( $column_name ) {
+
+ case 'sidebar_to_replace':
+ $value = '';
+
+ if ( isset( $meta['_sidebar_to_replace'] ) && ( $meta['_sidebar_to_replace'][0] != '' ) ) {
+ $value = $meta['_sidebar_to_replace'][0];
+
+ if ( isset( $sidebars[$value] ) ) {
+ $value = $sidebars[$value]['name'];
+ } else {
+ $value .= '
' . __( '(Not in use by current theme)', 'bean' ) . ' ';
+ }
+ }
+
+ echo $value;
+ break;
+
+ case 'condition':
+ $value = '';
+
+ if ( isset( $meta['_condition'] ) && ( $meta['_condition'][0] != '' ) ) {
+ foreach ( $meta['_condition'] as $k => $v ) {
+ $value .= $this->multidimensional_search( $v, $this->conditions->conditions_reference ) . '
' . "\n";
+ }
+ }
+
+ echo $value;
+ break;
+
+ default:
+ break;
+
+ }
+ } // End register_custom_columns()
+
+ /**
+ * register_custom_column_headings function.
+ *
+ * @access public
+ * @param array $defaults
+ * @return void
+ */
+ public function register_custom_column_headings ( $defaults ) {
+ $this->conditions->setup_default_conditions_reference();
+
+ $new_columns = array( 'sidebar_to_replace' => __( 'Sidebar To Replace', 'bean' ), 'condition' => __( 'Condition(s)', 'bean' ) );
+
+ $last_item = '';
+
+ if ( isset( $defaults['date'] ) ) { unset( $defaults['date'] ); }
+
+ if ( count( $defaults ) > 2 ) {
+ $last_item = array_slice( $defaults, -1 );
+
+ array_pop( $defaults );
+ }
+ $defaults = array_merge( $defaults, $new_columns );
+
+ if ( $last_item != '' ) {
+ foreach ( $last_item as $k => $v ) {
+ $defaults[$k] = $v;
+ break;
+ }
+ }
+
+ return $defaults;
+ } // End register_custom_column_headings()
+
+ /**
+ * meta_box_setup function.
+ *
+ * @access public
+ * @return void
+ */
+ public function meta_box_setup () {
+ add_meta_box( 'sidebar-to-replace', __( 'Sidebar To Replace', 'bean' ), array( &$this, 'meta_box_content' ), $this->token, 'side', 'low' );
+
+ // Remove "Custom Settings" meta box.
+ remove_meta_box( 'radiumthemes-settings', 'sidebar', 'normal' );
+
+ // Customise the "Excerpt" meta box for the sidebars.
+ remove_meta_box( 'postexcerpt', $this->token, 'normal' );
+ add_meta_box( 'sidebar-description', __( 'Description', 'bean' ), array( &$this, 'description_meta_box' ), $this->token, 'normal', 'core' );
+ } // End meta_box_setup()
+
+ /**
+ * meta_box_content function.
+ *
+ * @access public
+ * @return void
+ */
+ public function meta_box_content () {
+ global $post_id;
+
+ $sidebars = $this->get_registered_sidebars();
+
+ $selected_sidebar = get_post_meta( $post_id, '_sidebar_to_replace', true );
+
+ $html = '';
+
+ $html .= '
';
+
+ if ( count( $sidebars ) > 0 ) {
+ $html .= '
' . "\n";
+ foreach ( $sidebars as $k => $v ) {
+ $html .= '' . $v['name'] . ' ' . "\n";
+ }
+ $html .= ' ' . "\n";
+ } else {
+ $html .= '
' . __( 'No sidebars are available with this theme.', 'bean' ) . '
';
+ }
+
+ echo $html;
+
+ } // End meta_box_content()
+
+ /**
+ * meta_box_save function.
+ *
+ * @access public
+ * @param int $post_id
+ * @return void
+ */
+ public function meta_box_save ( $post_id ) {
+ global $post, $messages;
+
+ // Verify
+ if ( ( get_post_type() != $this->token ) || ! wp_verify_nonce( $_POST['radium_' . $this->token . '_noonce'], plugin_basename(__FILE__) ) ) {
+ return $post_id;
+ }
+
+ if ( 'page' == $_POST['post_type'] ) {
+ if ( ! current_user_can( 'edit_page', $post_id ) ) {
+ return $post_id;
+ }
+ } else {
+ if ( ! current_user_can( 'edit_post', $post_id ) ) {
+ return $post_id;
+ }
+ }
+
+ $fields = array( 'sidebar_to_replace' );
+
+ foreach ( $fields as $f ) {
+
+ ${$f} = strip_tags(trim($_POST[$f]));
+
+ if ( get_post_meta( $post_id, '_' . $f ) == '' ) {
+ add_post_meta( $post_id, '_' . $f, ${$f}, true );
+ } elseif( ${$f} != get_post_meta( $post_id, '_' . $f, true ) ) {
+ update_post_meta( $post_id, '_' . $f, ${$f} );
+ } elseif ( ${$f} == '' ) {
+ delete_post_meta( $post_id, '_' . $f, get_post_meta( $post_id, '_' . $f, true ) );
+ }
+ }
+ } // End meta_box_save()
+
+ /**
+ * description_meta_box function.
+ *
+ * @param object $post
+ */
+ public function description_meta_box ( $post ) {
+ ?>
+
post_excerpt; // textarea_escaped ?>
+
', '' ); ?>
+ token ) {
+ $title = __( 'Enter widget area name here', 'bean' );
+ }
+ return $title;
+ } // End enter_title_here()
+
+ /**
+ * update_messages function.
+ *
+ * @access public
+ * @param array $messages
+ * @return void
+ */
+ public function update_messages ( $messages ) {
+ if ( get_post_type() != $this->token ) {
+ return $messages;
+ }
+
+ $messages[$this->token][1] = __( 'Widget Area updated.', 'bean' );
+
+ return $messages;
+ } // End update_messages()
+
+ /**
+ * get_registered_sidebars function.
+ *
+ * @access public
+ * @return void
+ */
+ public function get_registered_sidebars () {
+ global $wp_registered_sidebars;
+
+ $sidebars = array();
+ $to_ignore = array();
+
+ $custom_sidebars = get_posts( 'post_type=sidebar&numberposts=-1' );
+ if ( ! is_wp_error( $custom_sidebars ) && count( $custom_sidebars ) > 0 ) {
+ foreach ( $custom_sidebars as $k => $v ) {
+ $to_ignore[] = $v->post_name;
+ }
+ }
+
+ if ( is_array( $wp_registered_sidebars ) && ( count( $wp_registered_sidebars ) > 0 ) ) {
+ foreach ( $wp_registered_sidebars as $k => $v ) {
+ if ( ! stristr( $v['id'], $this->prefix ) && ! stristr( $v['id'], 'radium_sbm_' ) && ! in_array( $v['id'], $to_ignore ) ) {
+ $sidebars[$k] = $v;
+ }
+ }
+ }
+
+ return $sidebars;
+ } // End get_registered_sidebars()
+
+ /**
+ * register_custom_sidebars function.
+ *
+ * @access public
+ * @return void
+ */
+ public function register_custom_sidebars () {
+ $sidebars = get_posts( array( 'post_type' => 'sidebar', 'posts_per_page' => -1 ) );
+
+ if ( count( $sidebars ) > 0 ) {
+ foreach ( $sidebars as $k => $v ) {
+ $sidebar_id = $v->post_name;
+ // $sidebar_id = $this->prefix . $v->ID;
+ register_sidebar( array( 'name' => $v->post_title, 'id' => $sidebar_id, 'description' => $v->post_excerpt ) );
+ }
+ }
+ } // End register_custom_sidebars()
+
+ /**
+ * init_sidebar_replacement function.
+ *
+ * @access public
+ * @return void
+ */
+ public function init_sidebar_replacement () {
+ add_filter( 'sidebars_widgets', array( &$this, 'replace_sidebars' ) );
+ } // End init_sidebar_replacement()
+
+ /**
+ * replace_sidebars function.
+ *
+ * @access public
+ * @param array $sidebars_widgets
+ * @return void
+ */
+ public function replace_sidebars ( $sidebars_widgets ) {
+ if ( is_admin() ) {
+ return $sidebars_widgets;
+ }
+
+ // Determine the conditions to construct the query.
+ $conditions = $this->conditions->conditions;
+
+ if ( ! isset( $this->conditions->conditions ) || count( $this->conditions->conditions ) <= 0 ) {
+ return $sidebars_widgets;
+ }
+
+ global $radium_custom_sidebar_data;
+
+ if ( ! isset( $radium_custom_sidebar_data ) ) {
+
+ $conditions_str = join( ', ', $conditions );
+
+ $args = array(
+ 'post_type' => $this->token,
+ 'posts_per_page' => -1
+ );
+
+ $meta_query = array(
+ 'key' => '_sidebar_to_replace',
+ 'compare' => '!=',
+ 'value' => ''
+ );
+
+ $args['meta_query'][] = $meta_query;
+
+ $meta_query = array(
+ 'key' => '_condition',
+ 'compare' => 'IN',
+ 'value' => $conditions
+ );
+
+ $args['meta_query'][] = $meta_query;
+
+ $sidebars = get_posts( $args );
+
+ if ( count( $sidebars ) > 0 ) {
+ foreach ( $sidebars as $k => $v ) {
+ $to_replace = get_post_meta( $v->ID, '_sidebar_to_replace', true );
+ $sidebars[$k]->to_replace = $to_replace;
+
+ $conditions = get_post_meta( $v->ID, '_condition', false );
+
+ $sidebars[$k]->conditions = array();
+
+ // Remove any irrelevant conditions from the array.
+ if ( is_array( $conditions ) ) {
+ foreach ( $conditions as $i => $j ) {
+ if ( in_array( $j, $this->conditions->conditions ) ) {
+ $sidebars[$k]->conditions[] = $j;
+ }
+ }
+ }
+
+ }
+ }
+
+ $radium_custom_sidebar_data = $sidebars;
+ }
+
+ // Make sure only the most appropriate sidebars are kept.
+ // $radium_custom_sidebar_data = $this->remove_unwanted_sidebars( $radium_custom_sidebar_data );
+ $radium_custom_sidebar_data = $this->find_best_sidebars( $radium_custom_sidebar_data );
+
+ if ( count( $radium_custom_sidebar_data ) > 0 ) {
+ foreach ( $radium_custom_sidebar_data as $k => $v ) {
+ $sidebar_id = $v->post_name;
+ // $sidebar_id = $this->prefix . $v->ID;
+ if ( isset( $sidebars_widgets[$sidebar_id] ) && isset( $v->to_replace ) && $v->to_replace != '' ) {
+ $widgets = $sidebars_widgets[$sidebar_id];
+ unset( $sidebars_widgets[$sidebar_id] );
+ $sidebars_widgets[$v->to_replace] = $widgets;
+ }
+ }
+ }
+
+ return $sidebars_widgets;
+ } // End replace_sidebars()
+
+ /**
+ * find_best_sidebars function.
+ *
+ * @access public
+ * @param array $sidebars
+ * @return array $sorted_sidebars
+ */
+ public function find_best_sidebars ( $sidebars ) {
+ $sorted_sidebars = array();
+
+ if ( ! isset( $this->conditions->conditions ) || count( $this->conditions->conditions ) <= 0 ) {
+ return $sidebars;
+ }
+
+ // Keep track of each sidebar we'd like to replace widgets for.
+ foreach ( $sidebars as $k => $v ) {
+ if ( isset( $v->to_replace ) && ( $v->to_replace != '' ) && ! isset( $sorted_sidebars[$v->to_replace] ) ) {
+ $sorted_sidebars[$v->to_replace] = '';
+ }
+ }
+
+ foreach ( $sidebars as $k => $v ) {
+ if ( isset( $sorted_sidebars[$v->to_replace] ) && ( $sorted_sidebars[$v->to_replace] == '' ) ) {
+ $sorted_sidebars[$v->to_replace] = $v;
+ } else {
+ continue;
+ }
+ }
+
+ return $sorted_sidebars;
+ } // End find_best_sidebars()
+
+ /**
+ * enqueue_styles function.
+ *
+ * @access public
+ * @return void
+ */
+ public function enqueue_styles () {
+ global $pagenow;
+
+ if ( in_array( $pagenow, array( 'edit.php', 'post.php', 'post-new.php' ) ) ) {
+ if ( get_post_type() != $this->token ) { return; }
+ wp_enqueue_style( 'jquery-ui-tabs' );
+
+ wp_register_style( $this->token . '-admin', BEAN_ADMIN_URL . '/sidebars/assets/css/sidebars_admin.css', array(), '1.0.0' );
+
+ wp_enqueue_style( $this->token . '-admin' );
+
+ wp_dequeue_style( 'jquery-ui-datepicker' );
+ }
+
+ if ( in_array( $pagenow, array( 'edit.php' ) ) ) {
+ wp_register_style( $this->token . '-admin-posts', BEAN_ADMIN_URL . '/sidebars/assets/css/sidebars_admin_posts.css', array(), '1.0.0' );
+
+ wp_enqueue_style( $this->token . '-admin-posts' );
+ }
+ } // End enqueue_styles()
+
+ /**
+ * add_post_column_headings function.
+ *
+ * @access public
+ * @param array $defaults
+ * @return array $new_columns
+ */
+ public function add_post_column_headings ( $defaults ) {
+ $defaults['radiumsidebars_enable'] = __( 'Custom Sidebars', 'bean' );
+ return $defaults;
+ } // End add_post_column_headings()
+
+ /**
+ * add_post_column_data function.
+ *
+ * @access public
+ * @param string $column_name
+ * @param int $id
+ * @return void
+ */
+ public function add_post_column_data ( $column_name, $id ) {
+ global $wpdb, $post;
+
+ $meta = get_post_custom( $id );
+
+ switch ( $column_name ) {
+
+ case 'radiumsidebars_enable':
+ $image = 'success-off';
+ $value = '';
+ $class = 'custom-sidebars-disabled';
+
+ if ( isset( $meta['_enable_sidebar'] ) && ( $meta['_enable_sidebar'][0] != '' ) && ( $meta['_enable_sidebar'][0] == 'yes' ) ) {
+ $image = 'success';
+ $class = 'custom-sidebars-enabled';
+ }
+
+ $url = wp_nonce_url( admin_url( 'admin-ajax.php?action=radiumsidebars-post-enable&post_id=' . $post->ID ), 'radiumsidebars-post-enable' );
+
+ $value = '
';
+
+ echo $value;
+ break;
+
+ default:
+ break;
+
+ }
+ } // End add_post_column_data()
+
+ /**
+ * enable_custom_post_sidebars function.
+ *
+ * @access public
+ * @return void
+ */
+ public function enable_custom_post_sidebars () {
+ if( ! is_admin() ) die;
+
+ if( ! current_user_can( 'edit_posts' ) ) wp_die( __( 'You do not have sufficient permissions to access this page.', 'bean' ) );
+
+ if( ! check_admin_referer( 'radiumsidebars-post-enable' ) ) wp_die( __( 'You have taken too long. Please go back and retry.', 'bean' ) );
+
+ $post_id = isset( $_GET['post_id'] ) && (int)$_GET['post_id'] ? (int)$_GET['post_id'] : '';
+
+ if( ! $post_id ) die;
+
+ $post = get_post( $post_id );
+ if( ! $post ) die;
+
+ $meta = get_post_meta( $post->ID, '_enable_sidebar', true );
+
+ if ( $meta == 'yes' ) {
+ update_post_meta($post->ID, '_enable_sidebar', 'no' );
+ } else {
+ update_post_meta($post->ID, '_enable_sidebar', 'yes' );
+ }
+
+ $sendback = remove_query_arg( array( 'trashed', 'untrashed', 'deleted', 'ids' ), wp_get_referer() );
+ wp_safe_redirect( $sendback );
+ } // End enable_custom_post_sidebars()
+
+ /**
+ * multidimensional_search function.
+ *
+ * @access public
+ * @param string $needle
+ * @param array $haystack
+ * @return string $m
+ */
+ public function multidimensional_search ( $needle, $haystack ) {
+ if (empty($needle) || empty($haystack)) {
+ return false;
+ }
+
+ foreach ($haystack as $key => $value) {
+ $exists = 0;
+ foreach ( (array)$needle as $nkey => $nvalue) {
+ if ( ! empty( $value[$nvalue] ) && is_array( $value[$nvalue] ) ) {
+ return $value[$nvalue]['label'];
+ }
+ }
+ }
+
+ return false;
+ } // End multidimensional_search()
+
+ /**
+ * activation function.
+ *
+ * @access public
+ * @since 1.0.0
+ * @return void
+ */
+ public function activation () {
+ $this->register_plugin_version();
+ } // End activation()
+
+ /**
+ * register_plugin_version function.
+ *
+ * @access public
+ * @since 1.0.0
+ * @return void
+ */
+ public function register_plugin_version () {
+ if ( $this->version != '' ) {
+ update_option( 'bean' . '-version', $this->version );
+ }
+ } // End register_plugin_version()
+} // End Class
+?>
diff --git a/wp-content/themes/acute/lib/admin/sidebars/sidebars.php b/wp-content/themes/acute/lib/admin/sidebars/sidebars.php
new file mode 100644
index 0000000..6f21383
--- /dev/null
+++ b/wp-content/themes/acute/lib/admin/sidebars/sidebars.php
@@ -0,0 +1,55 @@
+init();
+
+
+function radium_add_widget_manager_admin_bar_link() {
+ global $wp_admin_bar;
+
+ if(!current_user_can('edit_theme_options')) return;
+
+ $urlpagesBase = admin_url( 'edit.php' );
+
+ // Add sub menu link "View All Posts"
+ $wp_admin_bar->add_node( array(
+ 'parent' => 'radiumthemes-options',
+ 'id' => 'radium_sbm',
+ 'title' => __( 'Widget Areas','bean'),
+ 'href' => _x($urlpagesBase.'?post_type=sidebar', 'bean'),
+ ));
+
+}
+add_action('admin_bar_menu', 'radium_add_widget_manager_admin_bar_link',9999);
+
+/* Message for Widgets page. */
+
+if ( ! function_exists( 'radium_sidebar_widgets_admin_page' ) ) {
+ function radium_sidebar_widgets_admin_page() {
+ // Kind of a sloppy w/all the yucky inline styles, but otherwise,
+ // we'd have to enqueue an entire stylesheet just for the widgets
+ // page of the admin panel.
+ echo '
';
+ _e( 'In the Widget Area Manager , you can create and manage widget areas for specific pages of your website to override the default locations you see below.', 'bean');
+ echo '
';
+ }
+}
+
+
+if ( current_user_can( 'edit_theme_options' ) ) {
+ add_action( 'widgets_admin_page', 'radium_sidebar_widgets_admin_page' );
+}
diff --git a/wp-content/themes/acute/lib/content/content-aside.php b/wp-content/themes/acute/lib/content/content-aside.php
new file mode 100644
index 0000000..3deaf3a
--- /dev/null
+++ b/wp-content/themes/acute/lib/content/content-aside.php
@@ -0,0 +1,25 @@
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/content/content-audio.php b/wp-content/themes/acute/lib/content/content-audio.php
new file mode 100644
index 0000000..2c53082
--- /dev/null
+++ b/wp-content/themes/acute/lib/content/content-audio.php
@@ -0,0 +1,44 @@
+
+
+
>
+
+
+
+
+
+
+
+
+
+ Continue Reading', 'bean' ) ); ?>
+
+ '' . __( 'Pages:', 'bean' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/content/content-gallery.php b/wp-content/themes/acute/lib/content/content-gallery.php
new file mode 100644
index 0000000..2303f73
--- /dev/null
+++ b/wp-content/themes/acute/lib/content/content-gallery.php
@@ -0,0 +1,51 @@
+
+
+
>
+
+
+
+
+
+
+
+
+
+ Continue Reading', 'bean' ) ); ?>
+
+ '' . __( 'Pages:', 'bean' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/content/content-header.php b/wp-content/themes/acute/lib/content/content-header.php
new file mode 100644
index 0000000..76cf00b
--- /dev/null
+++ b/wp-content/themes/acute/lib/content/content-header.php
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ post_author; ?>
+
+
+
+ ' . single_tag_title( '', false ) . '' );
+ */
+
+ /*
+ elseif (is_category() ) :
+ printf( __( '%s', 'bean' ), '' . single_cat_title( '', false ) . '' );
+ */
+
+ elseif ( is_day() ) :
+ printf( __( 'BLOG: %s', 'bean' ), '' . get_the_date() . '' );
+
+ elseif ( is_month() ) :
+ printf( __( 'BLOG: %s', 'bean' ), '' . get_the_date( _x( 'F Y', 'monthly archives date format', 'bean' ) ) . '' );
+
+ elseif ( is_year() ) :
+ printf( __( 'BLOG: %s', 'bean' ), '' . get_the_date( _x( 'Y', 'yearly archives date format', 'bean' ) ) . '' );
+
+ else :
+ printf( __( 'HOME / BLOG ', 'bean' ) );
+
+ endif;
+
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/content/content-image.php b/wp-content/themes/acute/lib/content/content-image.php
new file mode 100644
index 0000000..64255b9
--- /dev/null
+++ b/wp-content/themes/acute/lib/content/content-image.php
@@ -0,0 +1,59 @@
+
+
+
>
+
+
+
+
+
+
+
+
+
+ Continue Reading', 'bean' ) ); ?>
+
+ '' . __( 'Pages:', 'bean' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/content/content-link.php b/wp-content/themes/acute/lib/content/content-link.php
new file mode 100644
index 0000000..bd153bb
--- /dev/null
+++ b/wp-content/themes/acute/lib/content/content-link.php
@@ -0,0 +1,37 @@
+
+
+
>
+
+
+
+
+
+
+
+
+
+ Continue Reading', 'bean' ) ); ?>
+
+ '' . __( 'Pages:', 'bean' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/content/content-page.php b/wp-content/themes/acute/lib/content/content-page.php
new file mode 100644
index 0000000..d699ddf
--- /dev/null
+++ b/wp-content/themes/acute/lib/content/content-page.php
@@ -0,0 +1,11 @@
+
+
+
>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/content/content-quote.php b/wp-content/themes/acute/lib/content/content-quote.php
new file mode 100644
index 0000000..da9506a
--- /dev/null
+++ b/wp-content/themes/acute/lib/content/content-quote.php
@@ -0,0 +1,27 @@
+
+
+>
+
+
+
+
+
+
+
+
+
+ Continue Reading', 'bean' ) ); ?>
+
+ '' . __( 'Pages:', 'bean' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/content/content-video.php b/wp-content/themes/acute/lib/content/content-video.php
new file mode 100644
index 0000000..444c915
--- /dev/null
+++ b/wp-content/themes/acute/lib/content/content-video.php
@@ -0,0 +1,51 @@
+
+
+>
+
+
+
+
+
+
+
+ ID, '_radium_video_embed', true);
+ if( !empty($embed) ) {
+ echo "
";
+ echo stripslashes(htmlspecialchars_decode($embed));
+ echo "
";
+ } else {
+ radium_video($post->ID);
+ } ?>
+
+
+
+
+
+
+
+ Continue Reading', 'bean' ) ); ?>
+
+ '' . __( 'Pages:', 'bean' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/content/content.php b/wp-content/themes/acute/lib/content/content.php
new file mode 100644
index 0000000..6a721fd
--- /dev/null
+++ b/wp-content/themes/acute/lib/content/content.php
@@ -0,0 +1,61 @@
+
+
+>
+
+
+
+
+
+
+
+
+
+
+ Continue Reading', 'bean' ) ); ?>
+
+ '' . __( 'Pages:', 'bean' ) . ' ', 'after' => '
' ) ); ?>
+
+
+
+
+
+
+
+
+
diff --git a/wp-content/themes/acute/lib/content/index.php b/wp-content/themes/acute/lib/content/index.php
new file mode 100644
index 0000000..e568b13
--- /dev/null
+++ b/wp-content/themes/acute/lib/content/index.php
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/wp-content/themes/acute/lib/functions/comments.php b/wp-content/themes/acute/lib/functions/comments.php
new file mode 100644
index 0000000..f1a8fb7
--- /dev/null
+++ b/wp-content/themes/acute/lib/functions/comments.php
@@ -0,0 +1,113 @@
+
+
+ +
+ 1 ) : ?> + +1 ? __('%d Trackbacks', 'bean') : __('One Trackback for this Post.', 'bean'), $ping_count) ?>
+ ++ +
+ +