<?php fw_option_help(array('type' => 'standard', 'title' => __('Show social icons', 'loc_canon'), 'content' => array(__('If checked your social icons will be displayed at the bottom right area of the footer.', 'loc_canon')))); fw_option_help(array('type' => 'ul', 'title' => __('Social links', 'loc_canon'), 'content' => array(__('Choose an icon in the select and attach this to a social link.', 'loc_canon'), __('Make sure you put the whole URL to your social site in the text input.', 'loc_canon'), __('You can add a new social link to the end of the list by clicking "Add social link', 'loc_canon'), __('You can remove the last social link in your list by clicking "Remove social link".', 'loc_canon'), __('You can see a full list of the Font Awesome icons <a href="http://fortawesome.github.io/Font-Awesome/cheatsheet/" target="_blank">here</a>.', 'loc_canon')))); ?> </div> <table class='form-table social_links'> <?php fw_option(array('type' => 'checkbox', 'title' => __('Show social icons', 'loc_canon'), 'slug' => 'show_social_icons', 'options_name' => 'canon_options_frame')); fw_option(array('type' => 'checkbox', 'title' => __('Open links in new window', 'loc_canon'), 'slug' => 'social_in_new', 'options_name' => 'canon_options_frame')); ?> <?php if (isset($canon_options_frame['social_links'])) { $font_awesome_array = mb_get_font_awesome_icon_names_in_array(); for ($i = 0; $i < count($canon_options_frame['social_links']); $i++) { ?> <tr valign='top' class='social_links_row'> <th scope='row'><?php _e("Social link", "loc_canon"); ?> <?php echo $i + 1; ?> </th> <td> <select class="social_links_icon fa_select" name="canon_options_frame[social_links][<?php echo $i; ?>
function form($instance) { //default for checkboxes if (empty($instance)) { $defaults_checkboxes = array(); } //defaults $defaults = array('widget_title' => __('Statistics', "loc_sport_widgets_plugin"), 'statistic' => array(0 => array('icon' => 'fa-flag', 'stat_text' => 'Fundraising', 'stat_num' => '10%')), 'text' => ""); //merge default if (!empty($defaults_checkboxes)) { $defaults = array_merge($defaults, $defaults_checkboxes); } $instance = wp_parse_args($instance, $defaults); extract($instance); //get font awesome array $font_awesome_array = mb_get_font_awesome_icon_names_in_array(); $statistic = array_values($statistic); ?> <p> <label for="<?php echo $this->get_field_id('widget_title'); ?> "><?php _e("Title", "loc_sport_widgets_plugin"); ?> : </label><br> <input type='text' id='<?php echo $this->get_field_id('widget_title'); ?> ' name='<?php echo $this->get_field_name('widget_title'); ?> ' value="<?php if (isset($widget_title)) { echo htmlspecialchars($widget_title); } ?> "> </p> <br> Statistics: <ul class="widget_sortable" data-split_index="3"> <?php for ($i = 0; $i < count($statistic); $i++) { ?> <li> <select class="li_option fa_select" name='<?php echo $this->get_field_name('statistic') . "[" . $i . "][icon]"; ?> '> <?php for ($n = 0; $n < count($font_awesome_array); $n++) { ?> <option value="<?php echo $font_awesome_array[$n]; ?> " <?php if (isset($statistic[$i]['icon'])) { if ($statistic[$i]['icon'] == $font_awesome_array[$n]) { echo "selected='selected'"; } } ?> ><?php echo $font_awesome_array[$n]; ?> </option> <?php } ?> </select> <i class="fa <?php if (isset($statistic[$i]['icon'])) { echo $statistic[$i]['icon']; } else { echo "fa-flag"; } ?> "></i> Text: <input class="li_option" type='text' name='<?php echo $this->get_field_name('statistic') . "[" . $i . "][stat_text]"; ?> ' value="<?php if (isset($statistic[$i]["stat_text"])) { echo htmlspecialchars($statistic[$i]["stat_text"]); } ?> "> Number: <input class="li_option nums" type='text' name='<?php echo $this->get_field_name('statistic') . "[" . $i . "][stat_num]"; ?> ' value="<?php if (isset($statistic[$i]["stat_num"])) { echo htmlspecialchars($statistic[$i]["stat_num"]); } ?> "> </li> <?php } ?> </ul> <div class="ul_control" data-min="1" data-max="1000"> <input type="button" class="button ul_add" value="<?php _e("Add", "loc_sport_widgets_plugin"); ?> " /> <input type="button" class="button ul_del" value="<?php _e("Delete", "loc_sport_widgets_plugin"); ?> " /> </div> <br> <p> <label for='<?php echo $this->get_field_id('text'); ?> '><?php _e("Statistics text", "loc_sport_widgets_plugin"); ?> </label><br> <textarea class='widefat' id='<?php echo $this->get_field_id('text'); ?> ' name='<?php echo $this->get_field_name('text'); ?> ' rows='6'><?php if (isset($text)) { echo esc_attr($text); } ?> </textarea> </P> <p> <label for="<?php echo $this->get_field_id('read_more_link'); ?> "><?php _e("Read More Link", "loc_sport_widgets_plugin"); ?> : (optional)</label><br> <input class='widefat' type='text' id='<?php echo $this->get_field_id('read_more_link'); ?> ' name='<?php echo $this->get_field_name('read_more_link'); ?> ' value="<?php if (isset($read_more_link)) { echo htmlspecialchars($read_more_link); } ?> "> </p> <?php }
function display_cmb_canon_cpt_people($post) { /************************************** GET VALUES ***************************************/ // OPTIONS $default_excerpt_len = 80; $cmb_title = get_post_meta($post->ID, 'cmb_title', true); $cmb_info = get_post_meta($post->ID, 'cmb_info', true); $cmb_excerpt = get_post_meta($post->ID, 'cmb_excerpt', true); $cmb_excerpt_is_quote = get_post_meta($post->ID, 'cmb_excerpt_is_quote', true); $cmb_index = get_post_meta($post->ID, 'cmb_index', true); $cmb_show_social_links = get_post_meta($post->ID, 'cmb_show_social_links', true); $cmb_social_links = get_post_meta($post->ID, 'cmb_social_links', true); $cmb_exist = get_post_meta($post->ID, 'cmb_exist', true); //make sure (empty) arrays are defined as arrays if (empty($cmb_social_links)) { $cmb_social_links = array(); } //defaults if (empty($cmb_exist)) { update_post_meta($post->ID, 'cmb_excerpt_is_quote', 'unchecked'); update_post_meta($post->ID, 'cmb_show_social_links', 'checked'); update_post_meta($post->ID, 'cmb_index', 1000); } /************************************** DISPLAY CONTENT ***************************************/ ?> <!-- DETAILS --> <div class="option_heading"> <span><?php _e("Details", "loc_sport_core_plugin"); ?> </span> </div> <?php fw_cmb_option(array('type' => 'text', 'title' => __('Title / position', 'loc_sport_core_plugin'), 'slug' => 'cmb_title', 'class' => 'widefat', 'post_id' => $post->ID)); fw_cmb_option(array('type' => 'textarea', 'title' => __('Info', 'loc_sport_core_plugin'), 'slug' => 'cmb_info', 'rows' => '5', 'hint' => __('Optional. HTML allowed.', 'loc_sport_core_plugin'), 'class' => 'widefat', 'post_id' => $post->ID)); ?> <div class="option_item"> <label for='cmb_excerpt'><?php _e("Excerpt / Quote", "loc_sport_core_plugin"); ?> </label><br> <textarea id='cmb_excerpt' name='cmb_excerpt' class='widefat' rows='5'><?php if (!empty($cmb_excerpt)) { echo $cmb_excerpt; } ?> </textarea> <button type="button" name="button_generate_excerpt" id='button_generate_excerpt' class="button-secondary auto_generate" value="<?php echo mb_make_excerpt($post->post_content, $default_excerpt_len, true); ?> ">Auto-generate</button> <span class="item_hint float_right"><?php _e("Optional. HTML allowed", "loc_sport_core_plugin"); ?> </span> </div> <?php fw_cmb_option(array('type' => 'checkbox', 'title' => __('Display excerpt as quote', 'loc_sport_core_plugin'), 'slug' => 'cmb_excerpt_is_quote', 'post_id' => $post->ID)); fw_cmb_option(array('type' => 'number', 'title' => __('Position index <span class="item_hint">(determines order of appearance)</span>', 'loc_sport_core_plugin'), 'slug' => 'cmb_index', 'min' => '1', 'max' => '100000', 'step' => '1', 'width_px' => '60', 'post_id' => $post->ID)); ?> <!-- SOCIAL LINKS --> <div class="option_heading"> <span>Social Links</span> </div> <div class="option_item"> <input type="hidden" name="cmb_show_social_links" value="unchecked" /> <input type='checkbox' name='cmb_show_social_links' value='checked' <?php checked($cmb_show_social_links == "checked"); ?> > <label for='cmb_show_social_links'><?php _e("Show social links:", "loc_sport_core_plugin"); ?> </label> <table class='form-table cmb_social_links'> <?php $font_awesome_array = mb_get_font_awesome_icon_names_in_array(); $social_links_num = !empty($cmb_social_links) ? count($cmb_social_links) : 1; for ($i = 0; $i < $social_links_num; $i++) { ?> <tr valign='top' class='cmb_social_links_row'> <th scope='row'>Social link <?php echo $i + 1; ?> </th> <td> <select class="cmb_social_links_icon fa_select" name='cmb_social_links[<?php echo $i; ?> ][icon]'> <?php for ($n = 0; $n < count($font_awesome_array); $n++) { ?> <option value="<?php echo $font_awesome_array[$n]; ?> " <?php if (isset($cmb_social_links[$i]['icon'])) { if ($cmb_social_links[$i]['icon'] == $font_awesome_array[$n]) { echo "selected='selected'"; } } ?> ><?php echo $font_awesome_array[$n]; ?> </option> <?php } ?> </select> <i class="fa <?php if (isset($cmb_social_links[$i]['icon'])) { echo $cmb_social_links[$i]['icon']; } else { echo "fa-flag"; } ?> "></i> <input type='text' class='cmb_social_links_link' name='cmb_social_links[<?php echo $i; ?> ][link]' value='<?php if (isset($cmb_social_links[$i]['link'])) { echo $cmb_social_links[$i]['link']; } ?> '> </td> </tr> <?php } ?> </table> <table class='form-table cmb_social_links_control'> <tr valign='top'> <th scope='row'></th> <td> <input type="button" class="button cmb_button_add_social_link" value="Add social link" /> <input type="button" class="button cmb_button_remove_social_link" value="Remove social link" /> </td> </tr> </table> </div> <!-- add nonce --> <input type="hidden" name="cmb_nonce" value="<?php echo wp_create_nonce(basename(__FILE__)); ?> " /> <input type="hidden" name="cmb_exist" value="true" /> <?php }
function block_featured_icons_input($passed_vars) { $index = isset($passed_vars[0]) ? $passed_vars[0] : "block_index"; $params = isset($passed_vars[1]) ? $passed_vars[1] : null; $exist = isset($passed_vars[1]) ? true : false; //DEFAULTS if (!$exist) { $params['title'] = "Features"; $params['column'] = array(0 => array('icon' => 'fa-pencil-square', 'title' => 'Beautiful Design', 'text' => 'Nullam quis risus eget urna mollis ornare vel eu leo. Etiam porta sem malesuada magna.'), 1 => array('icon' => 'fa-users', 'title' => 'SEO Optimized', 'text' => 'Risus eget urna mollis ornare vel eu leo. Nulla vitae elit libero, a pharetra augue.'), 2 => array('icon' => 'fa-foursquare', 'title' => 'Responsive', 'text' => 'Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibhmat.'), 3 => array('icon' => 'fa-comments', 'title' => 'Full Support', 'text' => 'Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibhmat.')); // APPEARANCE TAB $params['tab'] = 'block_tab_general'; $params['use_parallax'] = "checked"; $params['parallax_ratio'] = 0.2; $params['bg_boxed'] = 'unchecked'; $params['bg_color'] = ''; $params['font_color'] = ''; $params['icon_color'] = ''; $params['icon_size'] = 80; // ADVANCED TAB $params['custom_classes'] = ''; $params['custom_css'] = ''; $params['sticky'] = 'unchecked'; } // var_dump($params); ?> <li class="building_block block_featured_icons block_group_functionality"> <div class="block_header"> <?php _e("Featured Icons", "loc_sport_core_plugin"); ?> <span class="block-edit"></span> </div> <div class="block_options"> <input class='block_option' type="hidden" id='block_type' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][type]' value='featured_icons'> <input class='block_option' type="hidden" id='block_status' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][status]' value='<?php if (isset($params['status'])) { echo $params['status']; } else { echo "open"; } ?> '> <input class='block_option' type="hidden" id='block_tab' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][tab]' value='<?php if (isset($params['tab'])) { echo $params['tab']; } else { echo "block_tab_general"; } ?> '> <!-- BLOCK MENU --> <?php pb_block_menu(array('block_tab_controls' => array('block_tab_general' => __("General", "loc_sport_core_plugin"), 'block_tab_appearance' => __("Appearance", "loc_sport_core_plugin"), 'block_tab_advanced' => __("Advanced", "loc_sport_core_plugin")))); ?> <!-- BLOCK TAB: GENERAL --> <div class="block_tab block_tab_general"> <!-- TEXT INPUT --> <div class="option"> <label><?php _e("Title", "loc_sport_core_plugin"); ?> </label> <input class='block_option' type='text' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][title]' value="<?php if (isset($params['title'])) { echo htmlspecialchars($params['title']); } ?> "> </div> <!-- PB SORTABLE --> <ul class="pb_sortable featured_icons_sortable"> <?php for ($i = 0; $i < count($params['column']); $i++) { ?> <li> <table class="options_table option"> <!-- ICON --> <?php $font_awesome_array = mb_get_font_awesome_icon_names_in_array(); ?> <tr> <th><?php _e("Icon", "loc_sport_core_plugin"); ?> </th> <td> <select class="block_option fa_select" name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][column][<?php echo $i; ?> ][icon]'> <?php for ($n = 0; $n < count($font_awesome_array); $n++) { ?> <option value="<?php echo $font_awesome_array[$n]; ?> " <?php if (isset($params['column'][$i]['icon'])) { if ($params['column'][$i]['icon'] == $font_awesome_array[$n]) { echo "selected='selected'"; } } ?> ><?php echo $font_awesome_array[$n]; ?> </option> <?php } ?> </select> <i class="fa <?php if (isset($params['column'][$i]['icon'])) { echo $params['column'][$i]['icon']; } else { echo "fa-flag"; } ?> "></i> </td> </tr> <!-- TITLE --> <tr> <th><?php _e("Title", "loc_sport_core_plugin"); ?> </th> <td> <input class='block_option' type='text' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][column][<?php echo $i; ?> ][title]' value="<?php if (isset($params['column'][$i]['title'])) { echo htmlspecialchars($params['column'][$i]['title']); } ?> "> </td> </tr> <!-- TEXT --> <tr> <th><?php _e("Text", "loc_sport_core_plugin"); ?> </th> <td> <textarea class='block_option' rows = '3' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][column][<?php echo $i; ?> ][text]' ><?php if (isset($params['column'][$i]['text'])) { echo $params['column'][$i]['text']; } ?> </textarea> </td> </tr> <!-- DELETE --> <tr> <td colspan="2" class="delete_from_sortable"><a href=""><?php _e("delete", "loc_sport_core_plugin"); ?> </a></td> </tr> </table> </li> <?php } ?> </ul> <div class="pb_sortable_controls" data-min_num_elements="1" data-max_num_elements="5"> <input type="button" class="button button_add_to_sortable" value="<?php _e("Add new column", "loc_sport_core_plugin"); ?> " /> </div> </div> <!-- END BLOCK TAB: GENERAL --> <!-- BLOCK TAB: APPEARANCE --> <div class="block_tab block_tab_appearance"> <?php include 'includes/inc_block_appearance_tab.php'; ?> <div class="option"> <div class="colorSelectorBox pb_color_selector"><div style="background-color: <?php echo $params['icon_color']; ?> "></div></div> <input class='block_option color_input' type="text" name="canon_options_pagebuilder[blocks][<?php echo $index; ?> ][icon_color]" value="<?php if (isset($params['icon_color'])) { echo $params['icon_color']; } ?> " /> <label class="color_label"><?php _e("Icon Color", "loc_sport_core_plugin"); ?> </label> </div> <div class="option"> <input type='number' class='block_option' id='num_columns' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][icon_size]' min='1' max='200' step='1' style='width: 45px;' value='<?php if (isset($params['icon_size'])) { echo esc_attr($params['icon_size']); } ?> ' ><?php _e("Icon Size <i>(px)</i>", "loc_sport_core_plugin"); ?> </div> </div> <!-- BLOCK TAB: ADVANCED --> <div class="block_tab block_tab_advanced"> <?php include 'includes/inc_block_advanced_tab.php'; ?> </div> </div> </li> <?php }
function block_download_input($passed_vars) { $index = isset($passed_vars[0]) ? $passed_vars[0] : "block_index"; $params = isset($passed_vars[1]) ? $passed_vars[1] : null; //DEFAULTS if (!isset($params['type'])) { $params['title'] = "Download"; $params['text'] = 'Some files may play/stream/display when you try to download them depending on your browser settings. If this happens and you prefer to download instead please right click download button and select "Save destination as..."'; $params['tables'] = array(0 => array('table_status' => 'open', 'feature' => 'checked', 'icon' => 'fa-download', 'box_title' => 'File 1', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur id neque urna. Morbi fringilla risus non risus ornare elementum. In vitae sollicitudin arcu. Cras dui massa, ullamcorper vel porta eget, porttitor sit amet lorem.', 'btn_text' => 'Download', 'file_url' => ''), 1 => array('table_status' => 'open', 'feature' => 'unchecked', 'icon' => 'fa-download', 'box_title' => 'File 2', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur id neque urna. Morbi fringilla risus non risus ornare elementum. In vitae sollicitudin arcu. Cras dui massa, ullamcorper vel porta eget, porttitor sit amet lorem.', 'btn_text' => 'Download', 'file_url' => ''), 2 => array('table_status' => 'open', 'feature' => 'unchecked', 'icon' => 'fa-download', 'box_title' => 'File 3', 'description' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur id neque urna. Morbi fringilla risus non risus ornare elementum. In vitae sollicitudin arcu. Cras dui massa, ullamcorper vel porta eget, porttitor sit amet lorem.', 'btn_text' => 'Download', 'file_url' => '')); } // ADVANCED TAB if (!isset($params['tab'])) { $params['tab'] = 'block_tab_general'; } if (!isset($params['custom_classes'])) { $params['custom_classes'] = ''; } if (!isset($params['custom_css'])) { $params['custom_css'] = ''; } // MAKE SURE ARRAY IS TIGHT $params['tables'] = array_values($params['tables']); // var_dump($params['tables']); ?> <li class="building_block block_download block_group_functionality"> <div class="block_header"> <?php _e("Download List", "loc_sport_core_plugin"); ?> <span class="block-edit"></span> </div> <div class="block_options"> <input class='block_option' type="hidden" id='block_type' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][type]' value='download'> <input class='block_option' type="hidden" id='block_status' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][status]' value='<?php if (isset($params['status'])) { echo $params['status']; } else { echo "open"; } ?> '> <input class='block_option' type="hidden" id='block_tab' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][tab]' value='<?php if (isset($params['tab'])) { echo $params['tab']; } else { echo "block_tab_general"; } ?> '> <!-- BLOCK MENU --> <?php pb_block_menu(array('block_tab_controls' => array('block_tab_general' => __("General", "loc_sport_core_plugin"), 'block_tab_advanced' => __("Advanced", "loc_sport_core_plugin")))); ?> <!-- BLOCK TAB: GENERAL --> <div class="block_tab block_tab_general"> <!-- TEXT INPUT --> <div class="option"> <label><?php _e("Title", "loc_sport_core_plugin"); ?> </label> <input class='block_option' type='text' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][title]' value="<?php if (isset($params['title'])) { echo htmlspecialchars($params['title']); } ?> "> </div> <!-- TEXTAREA --> <div class="option"> <label><?php _e("Text", "loc_sport_core_plugin"); ?> </label> <textarea class='block_option' rows = '3' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][text]' ><?php if (isset($params['text'])) { echo $params['text']; } ?> </textarea> <span class="detail">Enter text / HTML</span> </div> <!-- SORTABLE --> <ul class="pb_sortable pricing_sortable"> <?php for ($i = 0; $i < count($params['tables']); $i++) { ?> <li> <div class="block_subheader table_toggle"> <?php _e("Download Box", "loc_sport_core_plugin"); ?> </div> <table class="options_table option"> <input class='block_option table_status' type="hidden" name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][tables][<?php echo $i; ?> ][table_status]' value='<?php if (isset($params['tables'][$i]['table_status'])) { echo $params['tables'][$i]['table_status']; } else { echo "open"; } ?> '> <tr> <th><?php _e("Featured download", "loc_sport_core_plugin"); ?> </th> <td> <input class='block_option' type="hidden" name="canon_options_pagebuilder[blocks][<?php echo $index; ?> ][tables][<?php echo $i; ?> ][feature]" value="unchecked" /> <input class='block_option' type="checkbox" name="canon_options_pagebuilder[blocks][<?php echo $index; ?> ][tables][<?php echo $i; ?> ][feature]" class="checkbox" value="checked" <?php if (isset($params['tables'][$i]['feature'])) { checked($params['tables'][$i]['feature'] == "checked"); } ?> /> </td> </tr> <!-- ICON --> <?php $font_awesome_array = mb_get_font_awesome_icon_names_in_array(); ?> <tr> <th><?php _e("Icon", "loc_sport_core_plugin"); ?> </th> <td> <select class="block_option fa_select" name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][tables][<?php echo $i; ?> ][icon]'> <?php for ($n = 0; $n < count($font_awesome_array); $n++) { ?> <option value="<?php echo $font_awesome_array[$n]; ?> " <?php if (isset($params['tables'][$i]['icon'])) { if ($params['tables'][$i]['icon'] == $font_awesome_array[$n]) { echo "selected='selected'"; } } ?> ><?php echo $font_awesome_array[$n]; ?> </option> <?php } ?> </select> <i class="fa <?php if (isset($params['tables'][$i]['icon'])) { echo $params['tables'][$i]['icon']; } else { echo "fa-flag"; } ?> "></i> </td> </tr> <!-- UPLOAD --> <tr> <th><?php _e("Or image", "loc_sport_core_plugin"); ?> </th> <td> <input class='block_option url' type='text' id='img_url' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][tables][<?php echo $i; ?> ][img_url]' value='<?php if (isset($params['tables'][$i]['img_url'])) { echo $params['tables'][$i]['img_url']; } ?> '> <input type="button" id="upload_media_button" class="upload button upload_media_button" value="<?php _e("Select image", "loc_sport_core_plugin"); ?> " /> </td> </tr> <tr> <th><?php _e("Title", "loc_sport_core_plugin"); ?> </th> <td> <input class='block_option' type='text' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][tables][<?php echo $i; ?> ][box_title]' value="<?php if (isset($params['tables'][$i]['box_title'])) { echo htmlspecialchars($params['tables'][$i]['box_title']); } ?> "> </td> </tr> <tr> <th><?php _e("Description", "loc_sport_core_plugin"); ?> </th> <td> <textarea class='block_option' rows = '4' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][tables][<?php echo $i; ?> ][description]' ><?php if (isset($params['tables'][$i]['description'])) { echo $params['tables'][$i]['description']; } ?> </textarea> </td> </tr> <tr> <th><?php _e("Button text", "loc_sport_core_plugin"); ?> </th> <td> <input class='block_option' type='text' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][tables][<?php echo $i; ?> ][btn_text]' value="<?php if (isset($params['tables'][$i]['btn_text'])) { echo htmlspecialchars($params['tables'][$i]['btn_text']); } ?> "> </td> </tr> <!-- UPLOAD --> <tr> <th><?php _e("File URL", "loc_sport_core_plugin"); ?> </th> <td> <input class='block_option url' type='text' id='file_url' name='canon_options_pagebuilder[blocks][<?php echo $index; ?> ][tables][<?php echo $i; ?> ][file_url]' value='<?php if (isset($params['tables'][$i]['file_url'])) { echo $params['tables'][$i]['file_url']; } ?> '> <input type="button" id="upload_media_button" class="upload button upload_media_button" value="<?php _e("Select file", "loc_sport_core_plugin"); ?> " /> </td> </tr> <tr> <td colspan="2" class="delete_from_sortable"><a href=""><?php _e("delete", "loc_sport_core_plugin"); ?> </a></td> </tr> </table> </li> <?php } ?> </ul> <div class="pb_sortable_controls" data-min_num_elements="1" data-max_num_elements="1000"> <input type="button" class="button button_add_to_sortable" value="<?php _e("Add new pricing table", "loc_sport_core_plugin"); ?> " /> </div> </div> <!-- BLOCK TAB: ADVANCED --> <div class="block_tab block_tab_advanced"> <?php include 'includes/inc_block_advanced_tab.php'; ?> </div> </div> </li> <?php }