function tallybuilder_SContent_MB__title($meta_data, $meta_id, $post_id, $prefix) { $settings = array('key' => $prefix . 'h1', 'title' => 'Main Title', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'n'); tallybuilder_metabox_form_text($settings); $settings = array('key' => $prefix . 'h2', 'title' => 'Sub Title', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'n'); tallybuilder_metabox_form_text($settings); $select_items = array(array('title' => 'Left', 'value' => 'left'), array('title' => 'Right', 'value' => 'Right'), array('title' => 'Center', 'value' => 'center')); $settings = array('key' => $prefix . 'alignment', 'title' => 'Alignment', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'y', 'select_items' => $select_items); tallybuilder_metabox_form_select($settings); $settings = array('key' => $prefix . 'class', 'title' => 'Div Class', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'y'); tallybuilder_metabox_form_text($settings); $settings = array('key' => $prefix . 'id', 'title' => 'Div ID', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'y'); tallybuilder_metabox_form_text($settings); $settings = array('base_id' => $prefix . 'h1_fontstyle', 'title' => 'Main Title Font Style', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_fontStyle($settings); $settings = array('base_id' => $prefix . 'h2_fontstyle', 'title' => 'Sub Title Font Style', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_fontStyle($settings); $settings = array('base_id' => $prefix . 'linkcolor', 'title' => 'Link Colors', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_linkColor($settings); $settings = array('base_id' => $prefix . 'h1_animation', 'title' => 'Main Title Animation', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_animation2($settings); $settings = array('base_id' => $prefix . 'h2_animation', 'title' => 'Sub Title Animation', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_animation2($settings); $settings = array('base_id' => $prefix . 'margin', 'title' => 'Margin', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_margin($settings); }
function tallybuilder_SContent_MB__grid($meta_data, $meta_id, $post_id, $prefix) { $settings = array('key' => $prefix . 'grid', 'title' => 'Select a Grid', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'n', 'post_type' => 'tt_grid'); tallybuilder_metabox_form_post_select($settings); $settings = array('key' => $prefix . 'class', 'title' => 'Div Class', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'y'); tallybuilder_metabox_form_text($settings); $settings = array('key' => $prefix . 'id', 'title' => 'Div ID', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'y'); tallybuilder_metabox_form_text($settings); $settings = array('base_id' => $prefix . 'animation', 'title' => 'Animation', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_animation2($settings); $settings = array('base_id' => $prefix . 'margin', 'title' => 'Margin', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_margin($settings); }
function tallybuilder_SContent_MB__text($meta_data, $meta_id, $post_id, $prefix) { $settings = array('key' => $prefix . 'content', 'title' => 'Content', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'n'); tallybuilder_metabox_form_editor($settings); $settings = array('key' => $prefix . 'class', 'title' => 'Div Class', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'y'); tallybuilder_metabox_form_text($settings); $settings = array('key' => $prefix . 'id', 'title' => 'Div ID', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'y'); tallybuilder_metabox_form_text($settings); $settings = array('base_id' => $prefix . 'fontstyle', 'title' => 'Font Style', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_fontStyle($settings); $settings = array('base_id' => $prefix . 'linkcolor', 'title' => 'Link Colors', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_linkColor($settings); $settings = array('base_id' => $prefix . 'animation', 'title' => 'Animation', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_animation2($settings); $settings = array('base_id' => $prefix . 'margin', 'title' => 'Margin', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_margin($settings); }
function tallybuilder_SContent_MB__button($meta_data, $meta_id, $post_id, $prefix) { $settings = array('key' => $prefix . 'button_1_text', 'title' => '1st Button Text', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'n'); tallybuilder_metabox_form_text($settings); $settings = array('key' => $prefix . 'button_1_link', 'title' => '1st Button Link', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'n'); tallybuilder_metabox_form_text($settings); $select_items = array(array('title' => 'Normal', 'value' => ''), array('title' => 'Small', 'value' => 'sm'), array('title' => 'Large', 'value' => 'lg'), array('title' => 'Extra Small', 'value' => 'xs')); $settings = array('key' => $prefix . 'button_1_size', 'title' => '1st Button Size', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'sanitize_text_field', 'p' => 'y', 'select_items' => $select_items); tallybuilder_metabox_form_select($settings); $select_items = array(array('title' => '_self', 'value' => '_self'), array('title' => '_blank', 'value' => '_blank')); $settings = array('key' => $prefix . 'button_1_target', 'title' => '1st Button Target', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'sanitize_text_field', 'p' => 'y', 'select_items' => $select_items); tallybuilder_metabox_form_select($settings); $select_items = array(array('title' => 'white', 'value' => 'white'), array('title' => 'black', 'value' => 'black'), array('title' => 'primary', 'value' => 'primary'), array('title' => 'success', 'value' => 'success'), array('title' => 'info', 'value' => 'info'), array('title' => 'warning', 'value' => 'warning'), array('title' => 'danger', 'value' => 'danger'), array('title' => 'link', 'value' => 'link')); $settings = array('key' => $prefix . 'button_1_type', 'title' => '1st Button Type', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'sanitize_text_field', 'p' => 'y', 'select_items' => $select_items); tallybuilder_metabox_form_select($settings); echo '<hr /><hr /><hr /><hr />'; $settings = array('key' => $prefix . 'button_2_text', 'title' => '2nd Button Text', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'n'); tallybuilder_metabox_form_text($settings); $settings = array('key' => $prefix . 'button_2_link', 'title' => '2nd Button Link', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'n'); tallybuilder_metabox_form_text($settings); $select_items = array(array('title' => 'Normal', 'value' => ''), array('title' => 'Small', 'value' => 'sm'), array('title' => 'Large', 'value' => 'lg'), array('title' => 'Extra Small', 'value' => 'xs')); $settings = array('key' => $prefix . 'button_2_size', 'title' => '2nd Button Size', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'sanitize_text_field', 'p' => 'y', 'select_items' => $select_items); tallybuilder_metabox_form_select($settings); $select_items = array(array('title' => '_self', 'value' => '_self'), array('title' => '_blank', 'value' => '_blank')); $settings = array('key' => $prefix . 'button_2_target', 'title' => '2nd Button Target', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'sanitize_text_field', 'p' => 'y', 'select_items' => $select_items); tallybuilder_metabox_form_select($settings); $select_items = array(array('title' => 'primary', 'value' => 'primary'), array('title' => 'success', 'value' => 'success'), array('title' => 'info', 'value' => 'info'), array('title' => 'warning', 'value' => 'warning'), array('title' => 'danger', 'value' => 'danger'), array('title' => 'link', 'value' => 'link')); $settings = array('key' => $prefix . 'button_2_type', 'title' => '2nd Button Type', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'sanitize_text_field', 'p' => 'y', 'select_items' => $select_items); tallybuilder_metabox_form_select($settings); $settings = array('key' => $prefix . 'class', 'title' => 'Div Class', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'y'); tallybuilder_metabox_form_text($settings); $settings = array('key' => $prefix . 'id', 'title' => 'Div ID', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'wp_kses', 'p' => 'y'); tallybuilder_metabox_form_text($settings); $settings = array('base_id' => $prefix . 'animation', 'title' => 'Animation', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_animation2($settings); $settings = array('base_id' => $prefix . 'margin', 'title' => 'Margin', 'value' => '', 'meta_id' => $meta_id, 'data' => $meta_data); tallybuilder_metabox_form_margin($settings); }
function column_settings_html($meta_data, $post_id, $row, $row_i, $column, $column_i) { $meta_id = $this->meta_id; if ($row['show_settings'] == true) { echo '<a href="" class="tbmb_edit_column_setting tbmb_showhide" rel=".tbmb_column' . $row_i . $column_i . '_settings">Customize Column</a>'; echo '<div class="tbmb_popup tbmb_column' . $row_i . $column_i . '_settings" style="display:none;">'; echo '<div class="tbmb_popup_in">'; echo '<a href="#" class="tbmb_showhide_close button-primary">Close</a>'; $prefix = 'col' . $row_i . $column_i . '_'; $settings = array('base_id' => $prefix . 'padding', 'title' => 'Padding', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => ''); tallybuilder_metabox_form_padding($settings); $settings = array('base_id' => $prefix . 'margin', 'title' => 'Margin', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => ''); tallybuilder_metabox_form_margin($settings); $settings = array('base_id' => $prefix . 'bg', 'title' => 'Background', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => ''); tallybuilder_metabox_form_background($settings); $settings = array('base_id' => $prefix . 'video_bg', 'title' => 'Video Background', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => ''); tallybuilder_metabox_form_videoBackground($settings); $settings = array('key' => $prefix . 'class', 'title' => 'CSS Class', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'sanitize_text_field', 'p' => 'y'); tallybuilder_metabox_form_text($settings); $settings = array('key' => $prefix . 'id', 'title' => 'CSS ID', 'meta_id' => $meta_id, 'data' => $meta_data, 'value' => '', 'sanitize' => 'sanitize_text_field', 'p' => 'y'); tallybuilder_metabox_form_text($settings); echo '<a href="#" class="tbmb_showhide_close foot button-primary">Close</a>'; echo '</div>'; echo '</div>'; } }