/** * Display Widget Settings. */ public function form($settings) { // Default settings $default_settings = array('widget_size' => 'default', 'widget_title' => __('Share', 'oa-social-sharing-icons')); // Read Settings $settings = wp_parse_args((array) $settings, $default_settings); ?> <p> <label for="<?php echo $this->get_field_id('widget_title'); ?> "><?php _e('Title', 'oa-social-sharing-icons'); ?> :</label> <input class="widefat" id="<?php echo $this->get_field_id('widget_title'); ?> " name="<?php echo $this->get_field_name('widget_title'); ?> " type="text" value="<?php echo $settings['widget_title']; ?> " /> </p> <p> <label for="<?php echo $this->get_field_id('widget_size'); ?> "><?php _e('Size', 'oa-social-sharing-icons'); ?> :</label> <select class="widefat" id="<?php echo $this->get_field_id('widget_size'); ?> " name="<?php echo $this->get_field_name('widget_size'); ?> "> <?php echo oa_social_sharing_icons_admin::print_select_position_options(false, 'widget_size', array('widget_size' => $settings['widget_size'])); ?> </select> </p> <?php }
<div class="oneall_form_row"> <?php _e('You can embed the sharing icons by adding the code <code>[oa_social_sharing_icons]</code> to a post or page. Below you can select the design that should be used for icons embedded using the shortcode.'); ?> </div> <div class="oneall_form_row oneall_form_row_divided"> <div class="oneall_form_col oneall_form_col_30"> <label for="position_left_floating"><?php _e('Shortcode Icons Design', 'oa-social-sharing-icons'); ?> </label> </div> <div class="oneall_form_col oneall_form_col_70"> <select class="oneall_form_field" name="oa_social_sharing_icons_settings[positions][shortcode]" id="position_shortcode"> <?php echo oa_social_sharing_icons_admin::print_select_position_options(false, 'shortcode', $oneall_positions); ?> </select> </div> </div> </div> </div> </div> <div class="oneall_form"> <div class="oneall_form_row oneall_form_row_buttons"> <input type="hidden" id="oneall_enabled_methods" name="oa_social_sharing_icons_settings[enabled_methods]"> <input type="hidden" name="page" value="setup" /> <input id="save_user_choice" type="submit" class="button-primary" value="<?php _e('Save Settings', 'oa-social-sharing-icons'); ?>