Changeset 2424050
- Timestamp:
- 11/24/2020 01:03:51 AM (5 years ago)
- Location:
- fitvids-for-wordpress/trunk
- Files:
-
- 2 edited
-
fitvids-for-wordpress.php (modified) (13 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fitvids-for-wordpress/trunk/fitvids-for-wordpress.php
r2398336 r2424050 4 4 Plugin URI: http://wordpress.org/extend/plugins/fitvids-for-wordpress/ 5 5 Description: This plugin makes videos responsive using the FitVids jQuery plugin on WordPress. 6 Version: 3.0. 76 Version: 3.0.8 7 7 Tags: videos, fitvids, responsive 8 8 Author: Kevin Dees … … 17 17 class FitVidsWP 18 18 { 19 20 19 public $path = null; 21 20 public $message = ''; … … 26 25 public $id = 'fitvids-wp'; 27 26 28 function __construct()27 public function __construct() 29 28 { 30 29 $this->path = plugin_dir_path(__FILE__); … … 36 35 } 37 36 38 function activation() { 37 public function activation() 38 { 39 39 $this->activating = true; 40 40 set_transient( $this->transient , true ); 41 41 } 42 42 43 function activation_notice() { 43 public function activation_notice() 44 { 44 45 if( get_transient( $this->transient ) && ! $this->activating ) { 45 46 ?> … … 58 59 } 59 60 60 function settings_page()61 public function settings_page() 61 62 { 62 63 $post = $this->request['post']; … … 77 78 } 78 79 79 function help_tab() { 80 public function help_tab() 81 { 80 82 $screen = get_current_screen(); 81 83 $screen->add_help_tab( array( … … 87 89 } 88 90 89 function help_content() {91 public function help_content() { 90 92 require( $this->path . '/help.php' ); 91 93 } 92 94 93 function scripts()95 public function scripts() 94 96 { 95 97 if ( get_option('fitvids_wp_jq') == 'true') { … … 105 107 } 106 108 107 function generate_inline_js()109 public function generate_inline_js() 108 110 { 109 111 $selector = get_option('fitvids_wp_selector'); … … 133 135 } 134 136 135 function prepare_field( $value, $sanitize = true ) { 136 137 public function prepare_field( $value, $sanitize = true ) 138 { 137 139 if($value) { 138 140 $value = trim( $value ); … … 147 149 } 148 150 149 function setup_request()151 public function setup_request() 150 152 { 151 153 $this->request['post'] = ! empty($_POST) ? array_map('wp_unslash', $_POST ) : array(); … … 154 156 } 155 157 156 function print_cdn_field_checked() { 158 public function print_cdn_field_checked() 159 { 157 160 if (get_option('fitvids_wp_jq') == 'true') { 158 161 echo 'checked="checked"'; … … 160 163 } 161 164 162 function save_option( $field ) { 165 public function save_option( $field ) 166 { 163 167 if( !empty($this->request['post'][$field]) ) { 164 168 update_option($field, $this->prepare_field($this->request['post'][$field]) ); … … 167 171 } 168 172 } 169 170 173 } 171 174 -
fitvids-for-wordpress/trunk/readme.txt
r2424044 r2424050 4 4 Requires at least: 3.9 5 5 Tested up to: 5.6 6 Stable Tag: 3.0. 76 Stable Tag: 3.0.8 7 7 8 8 This plugin makes videos responsive using the FitVids jQuery plugin on WordPress.
Note: See TracChangeset
for help on using the changeset viewer.