public static function get_settings()
 {
     $settings = array();
     foreach (Elastic_Slide::elastic_slider_get_fields() as $field) {
         $settings[$field['name']] = esc_attr(get_option($field['name']));
     }
     return $settings;
 }
 /**
  * Register the JavaScript for the public-facing side of the site.
  *
  * @since    1.0.0
  */
 public function enqueue_scripts()
 {
     /**
      * This function is provided for demonstration purposes only.
      *
      * An instance of this class should be passed to the run() function
      * defined in Elastic_Slide_Loader as all of the hooks are defined
      * in that particular class.
      *
      * The Elastic_Slide_Loader will then create the relationship
      * between the defined hooks and the functions defined in this
      * class.
      */
     if ($this->Active_Marker) {
         wp_enqueue_script($this->Elastic_Slide, plugin_dir_url(__FILE__) . 'js/elastic-slide-public.js', array('jquery'), $this->version, false);
         wp_localize_script($this->Elastic_Slide, 'php_vars', Elastic_Slide::get_settings());
     }
 }
/**
 * Begins execution of the plugin.
 *
 * Since everything within the plugin is registered via hooks,
 * then kicking off the plugin from this point in the file does
 * not affect the page life cycle.
 *
 * @since    1.0.0
 */
function run_Elastic_Slide()
{
    $plugin = new Elastic_Slide();
    $plugin->run();
}
 private static function elastic_slider_display_fields($group)
 {
     echo '<table class="form-table">' . PHP_EOL;
     foreach (Elastic_Slide::elastic_slider_get_fields() as $field) {
         if ($field['group'] === $group) {
             echo Elastic_Slide_Admin::elastic_slider_get_field_template($field);
         }
     }
     echo '</table>' . PHP_EOL;
 }