SEO SIMPLE PACK - Version 2.2.8

Version Description

  • Fixed og:type on front page.
  • Fixed to not save empty custom fields.
Download this release

Release Info

Developer looswebstudio
Plugin Icon 128x128 SEO SIMPLE PACK
Version 2.2.8
Comparing to
See all releases

Code changes from version 2.2.7 to 2.2.8

class/data.php CHANGED
@@ -108,10 +108,7 @@ class SSP_Data {
108
  } elseif ( SSP_VERSION !== $installed_version ) {
109
 
110
  // 更新時に実行する処理
111
- self::setup_at_updated();
112
-
113
- // バージョンが上がった時だけの処理
114
- // if (version_compare( SSP_VERSION, $installed_version, '>' ) ) {}
115
  }
116
 
117
  // サイト基本情報取得
@@ -226,7 +223,43 @@ class SSP_Data {
226
  /**
227
  * 更新時に実行する処理
228
  */
229
- public static function setup_at_updated() {
 
 
230
  update_option( self::DB_NAME['installed'], SSP_VERSION );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
  }
232
  }
108
  } elseif ( SSP_VERSION !== $installed_version ) {
109
 
110
  // 更新時に実行する処理
111
+ self::setup_at_updated( $installed_version );
 
 
 
112
  }
113
 
114
  // サイト基本情報取得
223
  /**
224
  * 更新時に実行する処理
225
  */
226
+ public static function setup_at_updated( $installed_version ) {
227
+
228
+ // 現在のバージョン番号を保存
229
  update_option( self::DB_NAME['installed'], SSP_VERSION );
230
+
231
+ // バージョンが上がった時だけの処理
232
+ // if (version_compare( SSP_VERSION, $installed_version, '>' ) ) {}
233
+
234
+ // 特定のバージョンより古いとこからアップデートされた時に処理する
235
+ if ( version_compare( $installed_version, '2.2.7', '<=' ) ) {
236
+ self::clean_meta();
237
+ }
238
+ }
239
+
240
+
241
+ /**
242
+ * 更新時に実行する処理
243
+ */
244
+ public static function clean_meta() {
245
+
246
+ // 空のカスタムフィールドを削除
247
+ global $wpdb;
248
+
249
+ // phpcs:disable WordPress.DB.DirectDatabaseQuery, WordPress.DB.SlowDBQuery
250
+ foreach ( SSP_MetaBox::POST_META_KEYS as $key => $meta_key ) {
251
+ $wpdb->delete( $wpdb->postmeta, [
252
+ 'meta_key' => $meta_key,
253
+ 'meta_value' => '',
254
+ ] );
255
+ }
256
+
257
+ foreach ( SSP_MetaBox::TERM_META_KEYS as $key => $meta_key ) {
258
+ $wpdb->delete( $wpdb->termmeta, [
259
+ 'meta_key' => $meta_key,
260
+ 'meta_value' => '',
261
+ ] );
262
+ }
263
+ // phpcs:enable WordPress.DB.DirectDatabaseQuery, WordPress.DB.SlowDBQuery
264
  }
265
  }
class/hooks.php CHANGED
@@ -66,8 +66,8 @@ class SSP_Hooks {
66
  wp_enqueue_style( 'ssp-common', SSP_URL . 'dist/css/common.css', [], $ver );
67
 
68
  wp_enqueue_media();
69
- wp_enqueue_script( 'ssp-media', SSP_URL . 'dist/js/mediauploader.js', ['jquery' ], $ver, true );
70
- wp_enqueue_script( 'ssp-common-script', SSP_URL . 'dist/js/common.js', ['jquery' ], $ver, true );
71
  }
72
 
73
  // ダッシュボードでも読み込むファイル
66
  wp_enqueue_style( 'ssp-common', SSP_URL . 'dist/css/common.css', [], $ver );
67
 
68
  wp_enqueue_media();
69
+ wp_enqueue_script( 'ssp-switch', SSP_URL . 'dist/js/switch.js', [], $ver, true );
70
+ wp_enqueue_script( 'ssp-media', SSP_URL . 'dist/js/mediauploader.js', [ 'jquery' ], $ver, true );
71
  }
72
 
73
  // ダッシュボードでも読み込むファイル
class/metabox.php CHANGED
@@ -196,24 +196,21 @@ class SSP_MetaBox {
196
  $nonce_name = $_POST[ SSP_Data::NONCE_NAME ]; // phpcs:ignore
197
  if ( ! wp_verify_nonce( $nonce_name, SSP_Data::NONCE_ACTION ) ) return;
198
 
199
- // Check the user's permissions. 現在のユーザーに編集権限があるかのチェック
200
- $post_type = isset( $_POST['post_type'] ) ? $_POST['post_type'] : ''; // phpcs:ignorex
201
- $check_can_key = 'page' === $post_type ? 'edit_page' : 'edit_post';
202
- if ( ! current_user_can( $check_can_key, $post_id ) ) {
203
- return;
204
- }
205
-
206
  foreach ( self::POST_META_KEYS as $key => $meta_key ) {
207
 
208
  // 保存したい情報が渡ってきているか確認
209
- if ( ! isset( $_POST[ $meta_key ] ) ) return;
210
 
211
  // 入力された値をサニタイズ
212
- $meta_val = sanitize_text_field( $_POST[ $meta_key ] ); // phpcs:ignorex
213
-
214
- // 値を保存
215
- update_post_meta( $post_id, $meta_key, $meta_val );
216
-
 
 
 
 
217
  }
218
 
219
  }
@@ -229,7 +226,7 @@ class SSP_MetaBox {
229
  $val_canonical = get_term_meta( $term->term_id, self::TERM_META_KEYS['canonical'], true );
230
  $val_image = get_term_meta( $term->term_id, self::TERM_META_KEYS['image'], true );
231
 
232
- // @codingStandardsIgnoreStart
233
  ?>
234
  <tr class="ssp_term_meta_title">
235
  <td colspan="2">
@@ -243,7 +240,7 @@ class SSP_MetaBox {
243
  </label>
244
  </th>
245
  <td>
246
- <?php self::select_box( self::TERM_META_KEYS['robots'], $val_robots, self::$robots_options ) ?>
247
  </td>
248
  </tr>
249
  <tr class="form-field">
@@ -253,7 +250,7 @@ class SSP_MetaBox {
253
  </label>
254
  </th>
255
  <td>
256
- <?php self::text_input( self::TERM_META_KEYS['title'], $val_title ) ?>
257
  </td>
258
  </tr>
259
  <tr class="form-field">
@@ -263,7 +260,7 @@ class SSP_MetaBox {
263
  </label>
264
  </th>
265
  <td>
266
- <?php self::textarea( self::TERM_META_KEYS['description'], $val_description ) ?>
267
  </td>
268
  </tr>
269
  <tr class="form-field">
@@ -273,7 +270,7 @@ class SSP_MetaBox {
273
  </label>
274
  </th>
275
  <td>
276
- <?php self::text_input( self::TERM_META_KEYS['canonical'], $val_canonical ) ?>
277
  </td>
278
  </tr>
279
  <tr class="form-field">
@@ -283,12 +280,11 @@ class SSP_MetaBox {
283
  </label>
284
  </th>
285
  <td>
286
- <?php self::media_btns( self::TERM_META_KEYS['image'], $val_image ) ?>
287
  </td>
288
  </tr>
289
-
290
  <?php
291
- // @codingStandardsIgnoreEnd
292
 
293
  // Set nonce field
294
  wp_nonce_field( SSP_Data::NONCE_ACTION, SSP_Data::NONCE_NAME );
@@ -313,14 +309,18 @@ class SSP_MetaBox {
313
  foreach ( self::TERM_META_KEYS as $key => $meta_key ) {
314
 
315
  // 保存したい情報が渡ってきているか確認
316
- if ( ! isset( $_POST[ $meta_key ] ) ) return;
317
 
318
  // 入力された値をサニタイズ
319
- $meta_val = sanitize_text_field( $_POST[ $meta_key ] ); // phpcs:ignorex
320
-
321
- // 値を保存
322
- update_term_meta( $term_id, $meta_key, $meta_val );
323
-
 
 
 
 
324
  }
325
  }
326
  }
196
  $nonce_name = $_POST[ SSP_Data::NONCE_NAME ]; // phpcs:ignore
197
  if ( ! wp_verify_nonce( $nonce_name, SSP_Data::NONCE_ACTION ) ) return;
198
 
 
 
 
 
 
 
 
199
  foreach ( self::POST_META_KEYS as $key => $meta_key ) {
200
 
201
  // 保存したい情報が渡ってきているか確認
202
+ if ( ! isset( $_POST[ $meta_key ] ) ) continue;
203
 
204
  // 入力された値をサニタイズ
205
+ $meta_val = sanitize_text_field( wp_unslash( $_POST[ $meta_key ] ) );
206
+
207
+ if ( empty( $meta_val ) ) {
208
+ // 初期値の場合は保存しない。また、空に戻された時には削除する。
209
+ delete_post_meta( $post_id, $meta_key );
210
+ } else {
211
+ // 値を保存
212
+ update_post_meta( $post_id, $meta_key, $meta_val );
213
+ }
214
  }
215
 
216
  }
226
  $val_canonical = get_term_meta( $term->term_id, self::TERM_META_KEYS['canonical'], true );
227
  $val_image = get_term_meta( $term->term_id, self::TERM_META_KEYS['image'], true );
228
 
229
+ // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped
230
  ?>
231
  <tr class="ssp_term_meta_title">
232
  <td colspan="2">
240
  </label>
241
  </th>
242
  <td>
243
+ <?php self::select_box( self::TERM_META_KEYS['robots'], $val_robots, self::$robots_options ); ?>
244
  </td>
245
  </tr>
246
  <tr class="form-field">
250
  </label>
251
  </th>
252
  <td>
253
+ <?php self::text_input( self::TERM_META_KEYS['title'], $val_title ); ?>
254
  </td>
255
  </tr>
256
  <tr class="form-field">
260
  </label>
261
  </th>
262
  <td>
263
+ <?php self::textarea( self::TERM_META_KEYS['description'], $val_description ); ?>
264
  </td>
265
  </tr>
266
  <tr class="form-field">
270
  </label>
271
  </th>
272
  <td>
273
+ <?php self::text_input( self::TERM_META_KEYS['canonical'], $val_canonical ); ?>
274
  </td>
275
  </tr>
276
  <tr class="form-field">
280
  </label>
281
  </th>
282
  <td>
283
+ <?php self::media_btns( self::TERM_META_KEYS['image'], $val_image ); ?>
284
  </td>
285
  </tr>
 
286
  <?php
287
+ // phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped
288
 
289
  // Set nonce field
290
  wp_nonce_field( SSP_Data::NONCE_ACTION, SSP_Data::NONCE_NAME );
309
  foreach ( self::TERM_META_KEYS as $key => $meta_key ) {
310
 
311
  // 保存したい情報が渡ってきているか確認
312
+ if ( ! isset( $_POST[ $meta_key ] ) ) continue;
313
 
314
  // 入力された値をサニタイズ
315
+ $meta_val = sanitize_text_field( wp_unslash( $_POST[ $meta_key ] ) );
316
+
317
+ if ( empty( $meta_val ) ) {
318
+ // 初期値の場合は保存しない。また、空に戻された時には削除する。
319
+ delete_term_meta( $term_id, $meta_key );
320
+ } else {
321
+ // 値を保存
322
+ update_term_meta( $term_id, $meta_key, $meta_val );
323
+ }
324
  }
325
  }
326
  }
class/output.php CHANGED
@@ -585,7 +585,11 @@ class SSP_Output {
585
  * @return string : The og:type.
586
  */
587
  private static function generate_og_type() {
588
- $og_type = is_singular() ? 'article' : 'website';
 
 
 
 
589
  return apply_filters( 'ssp_output_og_type', $og_type );
590
  }
591
 
585
  * @return string : The og:type.
586
  */
587
  private static function generate_og_type() {
588
+ if ( ! is_front_page() && is_singular() ) {
589
+ $og_type = 'article';
590
+ } else {
591
+ $og_type = 'website';
592
+ }
593
  return apply_filters( 'ssp_output_og_type', $og_type );
594
  }
595
 
class/trait/field.php CHANGED
@@ -169,12 +169,12 @@ trait Field {
169
  $checked = ( $is_checked ) ? 'checked' : '';
170
  ?>
171
  <span><?=esc_html__( 'Yes', 'loos-ssp' )?></span>
172
- <label class="ssp_switch_box" for="<?=esc_attr( $name )?>">
173
- <input type="checkbox" name="" id="<?=esc_attr( $name )?>" <?=$checked?>>
174
- <span class="ssp_switch_box__slider -round"></span>
175
- </label>
176
- <span><?=esc_html__( 'No', 'loos-ssp' )?></span>
177
- <input type="hidden" name="<?=esc_attr( $name )?>" value="<?=esc_attr( $is_checked )?>">
178
  <?php
179
  }
180
 
169
  $checked = ( $is_checked ) ? 'checked' : '';
170
  ?>
171
  <span><?=esc_html__( 'Yes', 'loos-ssp' )?></span>
172
+ <label class="ssp_switch" for="<?=esc_attr( $name )?>">
173
+ <input type="checkbox" name="" id="<?=esc_attr( $name )?>" <?=$checked?>>
174
+ <span class="ssp_switch__slider -round"></span>
175
+ </label>
176
+ <span><?=esc_html__( 'No', 'loos-ssp' )?></span>
177
+ <input type="hidden" name="<?=esc_attr( $name )?>" value="<?=esc_attr( $is_checked )?>">
178
  <?php
179
  }
180
 
composer.json CHANGED
@@ -12,12 +12,17 @@
12
  "require-dev": {
13
  "squizlabs/php_codesniffer": "^3.5",
14
  "wp-coding-standards/wpcs": "^2.3",
15
- "dealerdirect/phpcodesniffer-composer-installer": "^0.6",
16
  "phpcompatibility/phpcompatibility-wp": "*"
17
  },
18
  "scripts": {
19
  "set-wpcs": [
20
  "./vendor/bin/phpcs --config-set installed_paths `pwd -P`/vendor/phpcompatibility/php-compatibility,`pwd -P`/vendor/phpcompatibility/phpcompatibility-paragonie,`pwd -P`/vendor/phpcompatibility/phpcompatibility-wp,`pwd -P`/vendor/wp-coding-standards/wpcs"
21
  ]
 
 
 
 
 
22
  }
23
- }
12
  "require-dev": {
13
  "squizlabs/php_codesniffer": "^3.5",
14
  "wp-coding-standards/wpcs": "^2.3",
15
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7",
16
  "phpcompatibility/phpcompatibility-wp": "*"
17
  },
18
  "scripts": {
19
  "set-wpcs": [
20
  "./vendor/bin/phpcs --config-set installed_paths `pwd -P`/vendor/phpcompatibility/php-compatibility,`pwd -P`/vendor/phpcompatibility/phpcompatibility-paragonie,`pwd -P`/vendor/phpcompatibility/phpcompatibility-wp,`pwd -P`/vendor/wp-coding-standards/wpcs"
21
  ]
22
+ },
23
+ "config": {
24
+ "allow-plugins": {
25
+ "dealerdirect/phpcodesniffer-composer-installer": true
26
+ }
27
  }
28
+ }
composer.lock CHANGED
@@ -4,27 +4,27 @@
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
- "content-hash": "ada18c7d238584da6fe171ae14d46f80",
8
  "packages": [],
9
  "packages-dev": [
10
  {
11
  "name": "dealerdirect/phpcodesniffer-composer-installer",
12
- "version": "v0.6.2",
13
  "source": {
14
  "type": "git",
15
  "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git",
16
- "reference": "8001af8eb107fbfcedc31a8b51e20b07d85b457a"
17
  },
18
  "dist": {
19
  "type": "zip",
20
- "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/8001af8eb107fbfcedc31a8b51e20b07d85b457a",
21
- "reference": "8001af8eb107fbfcedc31a8b51e20b07d85b457a",
22
  "shasum": ""
23
  },
24
  "require": {
25
- "composer-plugin-api": "^1.0",
26
- "php": "^5.3|^7",
27
- "squizlabs/php_codesniffer": "^2|^3"
28
  },
29
  "require-dev": {
30
  "composer/composer": "*",
@@ -71,7 +71,11 @@
71
  "stylecheck",
72
  "tests"
73
  ],
74
- "time": "2020-01-29T20:22:20+00:00"
 
 
 
 
75
  },
76
  {
77
  "name": "phpcompatibility/php-compatibility",
@@ -129,32 +133,36 @@
129
  "phpcs",
130
  "standards"
131
  ],
 
 
 
 
132
  "time": "2019-12-27T09:44:58+00:00"
133
  },
134
  {
135
  "name": "phpcompatibility/phpcompatibility-paragonie",
136
- "version": "1.3.0",
137
  "source": {
138
  "type": "git",
139
  "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git",
140
- "reference": "b862bc32f7e860d0b164b199bd995e690b4b191c"
141
  },
142
  "dist": {
143
  "type": "zip",
144
- "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/b862bc32f7e860d0b164b199bd995e690b4b191c",
145
- "reference": "b862bc32f7e860d0b164b199bd995e690b4b191c",
146
  "shasum": ""
147
  },
148
  "require": {
149
  "phpcompatibility/php-compatibility": "^9.0"
150
  },
151
  "require-dev": {
152
- "dealerdirect/phpcodesniffer-composer-installer": "^0.5",
153
  "paragonie/random_compat": "dev-master",
154
  "paragonie/sodium_compat": "dev-master"
155
  },
156
  "suggest": {
157
- "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
158
  "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
159
  },
160
  "type": "phpcodesniffer-standard",
@@ -181,20 +189,24 @@
181
  "polyfill",
182
  "standards"
183
  ],
184
- "time": "2019-11-04T15:17:54+00:00"
 
 
 
 
185
  },
186
  {
187
  "name": "phpcompatibility/phpcompatibility-wp",
188
- "version": "2.1.0",
189
  "source": {
190
  "type": "git",
191
  "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git",
192
- "reference": "41bef18ba688af638b7310666db28e1ea9158b2f"
193
  },
194
  "dist": {
195
  "type": "zip",
196
- "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/41bef18ba688af638b7310666db28e1ea9158b2f",
197
- "reference": "41bef18ba688af638b7310666db28e1ea9158b2f",
198
  "shasum": ""
199
  },
200
  "require": {
@@ -202,10 +214,10 @@
202
  "phpcompatibility/phpcompatibility-paragonie": "^1.0"
203
  },
204
  "require-dev": {
205
- "dealerdirect/phpcodesniffer-composer-installer": "^0.5"
206
  },
207
  "suggest": {
208
- "dealerdirect/phpcodesniffer-composer-installer": "^0.5 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
209
  "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
210
  },
211
  "type": "phpcodesniffer-standard",
@@ -231,20 +243,24 @@
231
  "standards",
232
  "wordpress"
233
  ],
234
- "time": "2019-08-28T14:22:28+00:00"
 
 
 
 
235
  },
236
  {
237
  "name": "squizlabs/php_codesniffer",
238
- "version": "3.5.8",
239
  "source": {
240
  "type": "git",
241
  "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
242
- "reference": "9d583721a7157ee997f235f327de038e7ea6dac4"
243
  },
244
  "dist": {
245
  "type": "zip",
246
- "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/9d583721a7157ee997f235f327de038e7ea6dac4",
247
- "reference": "9d583721a7157ee997f235f327de038e7ea6dac4",
248
  "shasum": ""
249
  },
250
  "require": {
@@ -282,7 +298,12 @@
282
  "phpcs",
283
  "standards"
284
  ],
285
- "time": "2020-10-23T02:01:07+00:00"
 
 
 
 
 
286
  },
287
  {
288
  "name": "wp-coding-standards/wpcs",
@@ -328,6 +349,11 @@
328
  "standards",
329
  "wordpress"
330
  ],
 
 
 
 
 
331
  "time": "2020-05-13T23:57:56+00:00"
332
  }
333
  ],
@@ -338,5 +364,5 @@
338
  "prefer-lowest": false,
339
  "platform": [],
340
  "platform-dev": [],
341
- "plugin-api-version": "1.1.0"
342
  }
4
  "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
5
  "This file is @generated automatically"
6
  ],
7
+ "content-hash": "1e3d101740eccd0ea05255927140b206",
8
  "packages": [],
9
  "packages-dev": [
10
  {
11
  "name": "dealerdirect/phpcodesniffer-composer-installer",
12
+ "version": "v0.7.1",
13
  "source": {
14
  "type": "git",
15
  "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git",
16
+ "reference": "fe390591e0241955f22eb9ba327d137e501c771c"
17
  },
18
  "dist": {
19
  "type": "zip",
20
+ "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/fe390591e0241955f22eb9ba327d137e501c771c",
21
+ "reference": "fe390591e0241955f22eb9ba327d137e501c771c",
22
  "shasum": ""
23
  },
24
  "require": {
25
+ "composer-plugin-api": "^1.0 || ^2.0",
26
+ "php": ">=5.3",
27
+ "squizlabs/php_codesniffer": "^2.0 || ^3.0 || ^4.0"
28
  },
29
  "require-dev": {
30
  "composer/composer": "*",
71
  "stylecheck",
72
  "tests"
73
  ],
74
+ "support": {
75
+ "issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues",
76
+ "source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer"
77
+ },
78
+ "time": "2020-12-07T18:04:37+00:00"
79
  },
80
  {
81
  "name": "phpcompatibility/php-compatibility",
133
  "phpcs",
134
  "standards"
135
  ],
136
+ "support": {
137
+ "issues": "https://github.com/PHPCompatibility/PHPCompatibility/issues",
138
+ "source": "https://github.com/PHPCompatibility/PHPCompatibility"
139
+ },
140
  "time": "2019-12-27T09:44:58+00:00"
141
  },
142
  {
143
  "name": "phpcompatibility/phpcompatibility-paragonie",
144
+ "version": "1.3.1",
145
  "source": {
146
  "type": "git",
147
  "url": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie.git",
148
+ "reference": "ddabec839cc003651f2ce695c938686d1086cf43"
149
  },
150
  "dist": {
151
  "type": "zip",
152
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityParagonie/zipball/ddabec839cc003651f2ce695c938686d1086cf43",
153
+ "reference": "ddabec839cc003651f2ce695c938686d1086cf43",
154
  "shasum": ""
155
  },
156
  "require": {
157
  "phpcompatibility/php-compatibility": "^9.0"
158
  },
159
  "require-dev": {
160
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7",
161
  "paragonie/random_compat": "dev-master",
162
  "paragonie/sodium_compat": "dev-master"
163
  },
164
  "suggest": {
165
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
166
  "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
167
  },
168
  "type": "phpcodesniffer-standard",
189
  "polyfill",
190
  "standards"
191
  ],
192
+ "support": {
193
+ "issues": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie/issues",
194
+ "source": "https://github.com/PHPCompatibility/PHPCompatibilityParagonie"
195
+ },
196
+ "time": "2021-02-15T10:24:51+00:00"
197
  },
198
  {
199
  "name": "phpcompatibility/phpcompatibility-wp",
200
+ "version": "2.1.3",
201
  "source": {
202
  "type": "git",
203
  "url": "https://github.com/PHPCompatibility/PHPCompatibilityWP.git",
204
+ "reference": "d55de55f88697b9cdb94bccf04f14eb3b11cf308"
205
  },
206
  "dist": {
207
  "type": "zip",
208
+ "url": "https://api.github.com/repos/PHPCompatibility/PHPCompatibilityWP/zipball/d55de55f88697b9cdb94bccf04f14eb3b11cf308",
209
+ "reference": "d55de55f88697b9cdb94bccf04f14eb3b11cf308",
210
  "shasum": ""
211
  },
212
  "require": {
214
  "phpcompatibility/phpcompatibility-paragonie": "^1.0"
215
  },
216
  "require-dev": {
217
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7"
218
  },
219
  "suggest": {
220
+ "dealerdirect/phpcodesniffer-composer-installer": "^0.7 || This Composer plugin will sort out the PHP_CodeSniffer 'installed_paths' automatically.",
221
  "roave/security-advisories": "dev-master || Helps prevent installing dependencies with known security issues."
222
  },
223
  "type": "phpcodesniffer-standard",
243
  "standards",
244
  "wordpress"
245
  ],
246
+ "support": {
247
+ "issues": "https://github.com/PHPCompatibility/PHPCompatibilityWP/issues",
248
+ "source": "https://github.com/PHPCompatibility/PHPCompatibilityWP"
249
+ },
250
+ "time": "2021-12-30T16:37:40+00:00"
251
  },
252
  {
253
  "name": "squizlabs/php_codesniffer",
254
+ "version": "3.6.2",
255
  "source": {
256
  "type": "git",
257
  "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
258
+ "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a"
259
  },
260
  "dist": {
261
  "type": "zip",
262
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a",
263
+ "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a",
264
  "shasum": ""
265
  },
266
  "require": {
298
  "phpcs",
299
  "standards"
300
  ],
301
+ "support": {
302
+ "issues": "https://github.com/squizlabs/PHP_CodeSniffer/issues",
303
+ "source": "https://github.com/squizlabs/PHP_CodeSniffer",
304
+ "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki"
305
+ },
306
+ "time": "2021-12-12T21:44:58+00:00"
307
  },
308
  {
309
  "name": "wp-coding-standards/wpcs",
349
  "standards",
350
  "wordpress"
351
  ],
352
+ "support": {
353
+ "issues": "https://github.com/WordPress/WordPress-Coding-Standards/issues",
354
+ "source": "https://github.com/WordPress/WordPress-Coding-Standards",
355
+ "wiki": "https://github.com/WordPress/WordPress-Coding-Standards/wiki"
356
+ },
357
  "time": "2020-05-13T23:57:56+00:00"
358
  }
359
  ],
364
  "prefer-lowest": false,
365
  "platform": [],
366
  "platform-dev": [],
367
+ "plugin-api-version": "2.2.0"
368
  }
dist/css/ssp.css CHANGED
@@ -1 +1 @@
1
- .ssp-field+.ssp-field{margin-top:40px}.ssp-field[data-disable="1"]~.ssp-field{display:none}.ssp-field[data-active="0"]~.ssp-field{opacity:.5;pointer-events:none}.ssp-field input[type=text],.ssp-field textarea{width:100%;padding:4px 8px}.ssp-field .hide{display:none}.ssp-field code{margin:0;padding:2px 6px;font-size:inherit;font-style:normal;background:#eee}.ssp-field__body{padding-left:8px}.ssp-field__title{display:block;margin-bottom:16px;padding-left:8px;font-weight:700;font-size:14px;border-left:2px solid #87ab87}.ssp-field__desc{color:#666;font-size:13px;font-style:italic}.ssp-field__item.-radio_btn{display:flex;flex-wrap:wrap}.ssp-field__item.-radio_btn .ssp-field__radioInput{display:none}.ssp-field__item.-radio_btn .ssp-field__radioLabel{width:40px;height:40px;margin:4px;padding:0;line-height:34px;text-align:center;vertical-align:middle;background:#fcfcfc;border:1px solid #ccc;box-shadow:inset 0 0 2px #fff}.ssp-field__item.-radio_btn :checked+.ssp-field__radioLabel{border:2px solid #eba170}.ssp-helpTable{width:100%;max-width:560px;margin:0 0 24px}.ssp-helpTable thead{background:#e3e4e3}.ssp-helpTable td,.ssp-helpTable th{padding:6px 8px;text-align:left}.ssp-field__preview{display:flex;flex-wrap:wrap;align-items:center;width:100%;padding:4px;font-size:13px}.ssp-field__preview__label{margin-left:4px}.ssp-field__preview__content{display:inline-block;margin-left:8px;padding:12px;background:#ececec;border-radius:3px;box-shadow:inset 0 0 4px #ddd}.ssp-field__preview__content span{margin:0 2px;padding:4px 8px;color:#fff;background:#87ab87;border-radius:4px}.ssp-helpButton{display:inline-block;width:22px;height:22px;margin-left:12px;padding:0;color:#fff!important;font-weight:700;font-size:12px;line-height:22px;text-align:center;text-decoration:none;vertical-align:middle;background:#87ab87;border-radius:50%;box-shadow:inset 0 0 4px rgba(50,50,50,.15);transition:transform .25s}.ssp-helpButton:hover{transform:scale(1.1)}.ssp-page .ssp-page__tabs{padding-bottom:6px;overflow-y:auto}.ssp-page .nav-tab-wrapper{display:flex;border-bottom:1px solid #ddd}.ssp-page .nav-tab{background:rgba(0,0,0,.05);border:none;border-radius:2px 2px 0 0;cursor:pointer}.ssp-page .nav-tab.act_,.ssp-page .nav-tab:hover{color:#000;background:#fdfdfd}.ssp-page .tab-contents{display:none;margin-bottom:1em;padding:16px}.ssp-page .tab-contents.act_{display:block}.ssp_switch_box{position:relative;display:inline-block;width:64px;height:28px;margin:0 8px}.ssp_switch_box input{display:none}.ssp_switch_box__slider{position:absolute;top:0;right:0;bottom:0;left:0;background-color:#ccc;cursor:pointer;transition:.4s}.ssp_switch_box__slider:before{position:absolute;right:4px;bottom:4px;width:20px;height:20px;background-color:#fff;transition:.4s;content:""}input:checked+.ssp_switch_box__slider{background-color:#2196f3}input:checked+.ssp_switch_box__slider:before{right:40px}.ssp_switch_box__slider.-round{border-radius:34px}.ssp_switch_box__slider.-round:before{border-radius:50%}#wpcontent{padding:0 20px!important}.ssp-page{margin-top:1em;padding:8px;font-size:14px}.ssp-page,.ssp-page *{box-sizing:border-box}.ssp-page .form-table,.ssp-page .form-table p,.ssp-page .form-table td,.ssp-page .form-table th,.ssp-page input{font-size:inherit!important}.ssp-page .ssp-page__savedMessage{margin:24px 0}h1.ssp-page__title{font-weight:700;line-height:1.5}.ssp-page__section+.ssp-page__section{margin-top:48px}.ssp-page__section__title{position:relative;padding:8px 0 8px 16px;line-height:1.5;letter-spacing:.5px}.ssp-page__section__title:before{position:absolute;top:50%;left:0;z-index:-1;display:block;width:40px;height:40px;background-image:linear-gradient(-45deg,transparent 25%,#87ab87 0,#87ab87 50%,transparent 0,transparent 75%,#87ab87 0,#87ab87);background-size:6px 6px;border-radius:50%;transform:translateY(-50%);opacity:.4;content:""}.ssp-page__section__body{padding:24px;background:#fff;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.05),0 4px 8px -4px rgba(0,0,0,.1)}.ssp-page__note{padding-left:4px;font-style:italic}textarea[name=home_desc]{max-width:1000px;height:12em}[name=home_keyword]{max-width:1000px}.-webmaster input{max-width:800px}.-webmaster code b{margin:0 2px;padding:2px 4px;color:#fff;font-weight:400;font-size:.9em;background:#87ab87;border-radius:4px}.ssp-field__body{display:flex}@media screen and (min-width:783px){.ssp-field__body{flex-wrap:wrap;justify-content:space-between}.ssp-field__body .ssp-field__item{width:40%}.ssp-field__body .ssp-field__desc{width:57%}.ssp-field__body.-wide .ssp-field__desc,.ssp-field__body.-wide .ssp-field__item{width:100%}.ssp-field__body.-mt-shorten{margin-top:-24px}}@media screen and (max-width:782px){.ssp-field__preview{font-size:12px}.ssp-field__preview__label{display:none}.ssp-field__preview__content{padding:8px}.ssp-helpButton{margin-left:12px}.ssp-page .tab-contents{padding:0}#wpcontent{padding:0 16px!important}.ssp-page{margin-right:0!important;padding:0}.ssp-page__section__body{padding:16px}.ssp-field__body{flex-direction:column}.ssp-field__body .ssp-field__item{order:0}.ssp-field__body .ssp-field__desc{order:2}.ssp-field__body .ssp-field__preview{order:1}}
1
+ .ssp-field+.ssp-field{margin-top:40px}.ssp-field[data-disable="1"]~.ssp-field{display:none}.ssp-field[data-active="0"]~.ssp-field{opacity:.5;pointer-events:none}.ssp-field input[type=text],.ssp-field textarea{width:100%;padding:4px 8px}.ssp-field .hide{display:none}.ssp-field code{margin:0;padding:2px 6px;font-size:inherit;font-style:normal;background:#eee}.ssp-field__body{padding-left:8px}.ssp-field__title{display:block;margin-bottom:16px;padding-left:8px;font-weight:700;font-size:14px;border-left:2px solid #87ab87}.ssp-field__desc{color:#666;font-size:13px;font-style:italic}.ssp-field__item.-radio_btn{display:flex;flex-wrap:wrap}.ssp-field__item.-radio_btn .ssp-field__radioInput{display:none}.ssp-field__item.-radio_btn .ssp-field__radioLabel{width:40px;height:40px;margin:4px;padding:0;line-height:34px;text-align:center;vertical-align:middle;background:#fcfcfc;border:1px solid #ccc;box-shadow:inset 0 0 2px #fff}.ssp-field__item.-radio_btn :checked+.ssp-field__radioLabel{border:2px solid #eba170}.ssp-helpTable{width:100%;max-width:560px;margin:0 0 24px}.ssp-helpTable thead{background:#e3e4e3}.ssp-helpTable td,.ssp-helpTable th{padding:6px 8px;text-align:left}.ssp-field__preview{display:flex;flex-wrap:wrap;align-items:center;width:100%;padding:4px;font-size:13px}.ssp-field__preview__label{margin-left:4px}.ssp-field__preview__content{display:inline-block;margin-left:8px;padding:12px;background:#ececec;border-radius:3px;box-shadow:inset 0 0 4px #ddd}.ssp-field__preview__content span{margin:0 2px;padding:4px 8px;color:#fff;background:#87ab87;border-radius:4px}.ssp-helpButton{display:inline-block;width:22px;height:22px;margin-left:12px;padding:0;color:#fff!important;font-weight:700;font-size:12px;line-height:22px;text-align:center;text-decoration:none;vertical-align:middle;background:#87ab87;border-radius:50%;box-shadow:inset 0 0 4px rgba(50,50,50,.15);transition:transform .25s}.ssp-helpButton:hover{transform:scale(1.1)}.ssp-page .ssp-page__tabs{padding-bottom:6px;overflow-y:auto}.ssp-page .nav-tab-wrapper{display:flex;border-bottom:1px solid #ddd}.ssp-page .nav-tab{background:rgba(0,0,0,.05);border:none;border-radius:2px 2px 0 0;cursor:pointer}.ssp-page .nav-tab.act_,.ssp-page .nav-tab:hover{color:#000;background:#fdfdfd}.ssp-page .tab-contents{display:none;margin-bottom:1em;padding:16px}.ssp-page .tab-contents.act_{display:block}.ssp_switch{position:relative;display:inline-block;width:64px;height:28px;margin:0 8px}.ssp_switch input{display:none}.ssp_switch__slider{position:absolute;top:0;right:0;bottom:0;left:0;background-color:#ccc;cursor:pointer;transition:.4s}.ssp_switch__slider:before{position:absolute;right:4px;bottom:4px;width:20px;height:20px;background-color:#fff;transition:.4s;content:""}input:checked+.ssp_switch__slider{background-color:#2196f3}input:checked+.ssp_switch__slider:before{right:40px}.ssp_switch__slider.-round{border-radius:34px}.ssp_switch__slider.-round:before{border-radius:50%}#wpcontent{padding:0 20px!important}.ssp-page{margin-top:1em;padding:8px;font-size:14px}.ssp-page,.ssp-page *{box-sizing:border-box}.ssp-page .form-table,.ssp-page .form-table p,.ssp-page .form-table td,.ssp-page .form-table th,.ssp-page input{font-size:inherit!important}.ssp-page .ssp-page__savedMessage{margin:24px 0}h1.ssp-page__title{font-weight:700;line-height:1.5}.ssp-page__section+.ssp-page__section{margin-top:48px}.ssp-page__section__title{position:relative;padding:8px 0 8px 16px;line-height:1.5;letter-spacing:.5px}.ssp-page__section__title:before{position:absolute;top:50%;left:0;z-index:-1;display:block;width:40px;height:40px;background-image:linear-gradient(-45deg,transparent 25%,#87ab87 0,#87ab87 50%,transparent 0,transparent 75%,#87ab87 0,#87ab87);background-size:6px 6px;border-radius:50%;transform:translateY(-50%);opacity:.4;content:""}.ssp-page__section__body{padding:24px;background:#fff;border-radius:4px;box-shadow:0 2px 4px rgba(0,0,0,.05),0 4px 8px -4px rgba(0,0,0,.1)}.ssp-page__note{padding-left:4px;font-style:italic}textarea[name=home_desc]{max-width:1000px;height:12em}[name=home_keyword]{max-width:1000px}.-webmaster input{max-width:800px}.-webmaster code b{margin:0 2px;padding:2px 4px;color:#fff;font-weight:400;font-size:.9em;background:#87ab87;border-radius:4px}.ssp-field__body{display:flex}@media screen and (max-width:782px){.ssp-field__preview{font-size:12px}.ssp-field__preview__label{display:none}.ssp-field__preview__content{padding:8px}.ssp-helpButton{margin-left:12px}.ssp-page .tab-contents{padding:0}#wpcontent{padding:0 16px!important}.ssp-page{margin-right:0!important;padding:0}.ssp-page__section__body{padding:16px}.ssp-field__body{flex-direction:column}.ssp-field__body .ssp-field__item{order:0}.ssp-field__body .ssp-field__desc{order:2}.ssp-field__body .ssp-field__preview{order:1}}@media screen and (min-width:783px){.ssp-field__body{flex-wrap:wrap;justify-content:space-between}.ssp-field__body .ssp-field__item{width:40%}.ssp-field__body .ssp-field__desc{width:57%}.ssp-field__body.-wide .ssp-field__desc,.ssp-field__body.-wide .ssp-field__item{width:100%}.ssp-field__body.-mt-shorten{margin-top:-24px}}
dist/js/common.js DELETED
@@ -1 +0,0 @@
1
- !function(){var t={6077:function(t,n,r){var e=r(111);t.exports=function(t){if(!e(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},9670:function(t,n,r){var e=r(111);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},1318:function(t,n,r){var e=r(5656),o=r(7466),i=r(1400),u=function(t){return function(n,r,u){var c,f=e(n),a=o(f.length),s=i(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},4326:function(t){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},8880:function(t,n,r){var e=r(9781),o=r(3070),i=r(9114);t.exports=e?function(t,n,r){return o.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},9114:function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},9781:function(t,n,r){var e=r(7293);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,n,r){var e=r(7854),o=r(111),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},5005:function(t,n,r){var e=r(857),o=r(7854),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?i(e[t])||i(o[t]):e[t]&&e[t][n]||o[t]&&o[t][n]}},7854:function(t,n,r){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},6656:function(t){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},3501:function(t){t.exports={}},490:function(t,n,r){var e=r(5005);t.exports=e("document","documentElement")},4664:function(t,n,r){var e=r(9781),o=r(7293),i=r(317);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,n,r){var e=r(7293),o=r(4326),i="".split;t.exports=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},9587:function(t,n,r){var e=r(111),o=r(7674);t.exports=function(t,n,r){var i,u;return o&&"function"==typeof(i=n.constructor)&&i!==r&&e(u=i.prototype)&&u!==r.prototype&&o(t,u),t}},2788:function(t,n,r){var e=r(5465),o=Function.toString;"function"!=typeof e.inspectSource&&(e.inspectSource=function(t){return o.call(t)}),t.exports=e.inspectSource},9909:function(t,n,r){var e,o,i,u=r(8536),c=r(7854),f=r(111),a=r(8880),s=r(6656),p=r(5465),l=r(6200),v=r(3501),y=c.WeakMap;if(u){var h=p.state||(p.state=new y),d=h.get,g=h.has,b=h.set;e=function(t,n){return n.facade=t,b.call(h,t,n),n},o=function(t){return d.call(h,t)||{}},i=function(t){return g.call(h,t)}}else{var x=l("state");v[x]=!0,e=function(t,n){return n.facade=t,a(t,x,n),n},o=function(t){return s(t,x)?t[x]:{}},i=function(t){return s(t,x)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(n){var r;if(!f(n)||(r=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},4705:function(t,n,r){var e=r(7293),o=/#|\.prototype\./,i=function(t,n){var r=c[u(t)];return r==a||r!=f&&("function"==typeof n?e(n):!!n)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},f=i.NATIVE="N",a=i.POLYFILL="P";t.exports=i},111:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:function(t){t.exports=!1},8536:function(t,n,r){var e=r(7854),o=r(2788),i=e.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},30:function(t,n,r){var e,o=r(9670),i=r(6048),u=r(748),c=r(3501),f=r(490),a=r(317),s=r(6200)("IE_PROTO"),p=function(){},l=function(t){return"<script>"+t+"<\/script>"},v=function(){try{e=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,n;v=e?function(t){t.write(l("")),t.close();var n=t.parentWindow.Object;return t=null,n}(e):((n=a("iframe")).style.display="none",f.appendChild(n),n.src=String("javascript:"),(t=n.contentWindow.document).open(),t.write(l("document.F=Object")),t.close(),t.F);for(var r=u.length;r--;)delete v.prototype[u[r]];return v()};c[s]=!0,t.exports=Object.create||function(t,n){var r;return null!==t?(p.prototype=o(t),r=new p,p.prototype=null,r[s]=t):r=v(),void 0===n?r:i(r,n)}},6048:function(t,n,r){var e=r(9781),o=r(3070),i=r(9670),u=r(1956);t.exports=e?Object.defineProperties:function(t,n){i(t);for(var r,e=u(n),c=e.length,f=0;c>f;)o.f(t,r=e[f++],n[r]);return t}},3070:function(t,n,r){var e=r(9781),o=r(4664),i=r(9670),u=r(7593),c=Object.defineProperty;n.f=e?c:function(t,n,r){if(i(t),n=u(n,!0),i(r),o)try{return c(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},1236:function(t,n,r){var e=r(9781),o=r(5296),i=r(9114),u=r(5656),c=r(7593),f=r(6656),a=r(4664),s=Object.getOwnPropertyDescriptor;n.f=e?s:function(t,n){if(t=u(t),n=c(n,!0),a)try{return s(t,n)}catch(t){}if(f(t,n))return i(!o.f.call(t,n),t[n])}},8006:function(t,n,r){var e=r(6324),o=r(748).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},6324:function(t,n,r){var e=r(6656),o=r(5656),i=r(1318).indexOf,u=r(3501);t.exports=function(t,n){var r,c=o(t),f=0,a=[];for(r in c)!e(u,r)&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~i(a,r)||a.push(r));return a}},1956:function(t,n,r){var e=r(6324),o=r(748);t.exports=Object.keys||function(t){return e(t,o)}},5296:function(t,n){"use strict";var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,o=e&&!r.call({1:2},1);n.f=o?function(t){var n=e(this,t);return!!n&&n.enumerable}:r},7674:function(t,n,r){var e=r(9670),o=r(6077);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,n=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),n=r instanceof Array}catch(t){}return function(r,i){return e(r),o(i),n?t.call(r,i):r.__proto__=i,r}}():void 0)},857:function(t,n,r){var e=r(7854);t.exports=e},1320:function(t,n,r){var e=r(7854),o=r(8880),i=r(6656),u=r(3505),c=r(2788),f=r(9909),a=f.get,s=f.enforce,p=String(String).split("String");(t.exports=function(t,n,r,c){var f,a=!!c&&!!c.unsafe,l=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof n||i(r,"name")||o(r,"name",n),(f=s(r)).source||(f.source=p.join("string"==typeof n?n:""))),t!==e?(a?!v&&t[n]&&(l=!0):delete t[n],l?t[n]=r:o(t,n,r)):l?t[n]=r:u(n,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&a(this).source||c(this)}))},4488:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:function(t,n,r){var e=r(7854),o=r(8880);t.exports=function(t,n){try{o(e,t,n)}catch(r){e[t]=n}return n}},6200:function(t,n,r){var e=r(2309),o=r(9711),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,n,r){var e=r(7854),o=r(3505),i="__core-js_shared__",u=e[i]||o(i,{});t.exports=u},2309:function(t,n,r){var e=r(1913),o=r(5465);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.8.1",mode:e?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},3111:function(t,n,r){var e=r(4488),o="["+r(1361)+"]",i=RegExp("^"+o+o+"*"),u=RegExp(o+o+"*$"),c=function(t){return function(n){var r=String(e(n));return 1&t&&(r=r.replace(i,"")),2&t&&(r=r.replace(u,"")),r}};t.exports={start:c(1),end:c(2),trim:c(3)}},1400:function(t,n,r){var e=r(9958),o=Math.max,i=Math.min;t.exports=function(t,n){var r=e(t);return r<0?o(r+n,0):i(r,n)}},5656:function(t,n,r){var e=r(8361),o=r(4488);t.exports=function(t){return e(o(t))}},9958:function(t){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},7466:function(t,n,r){var e=r(9958),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},7593:function(t,n,r){var e=r(111);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},9711:function(t){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},1361:function(t){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},9653:function(t,n,r){"use strict";var e=r(9781),o=r(7854),i=r(4705),u=r(1320),c=r(6656),f=r(4326),a=r(9587),s=r(7593),p=r(7293),l=r(30),v=r(8006).f,y=r(1236).f,h=r(3070).f,d=r(3111).trim,g="Number",b=o.Number,x=b.prototype,m=f(l(x))==g,O=function(t){var n,r,e,o,i,u,c,f,a=s(t,!1);if("string"==typeof a&&a.length>2)if(43===(n=(a=d(a)).charCodeAt(0))||45===n){if(88===(r=a.charCodeAt(2))||120===r)return NaN}else if(48===n){switch(a.charCodeAt(1)){case 66:case 98:e=2,o=49;break;case 79:case 111:e=8,o=55;break;default:return+a}for(u=(i=a.slice(2)).length,c=0;c<u;c++)if((f=i.charCodeAt(c))<48||f>o)return NaN;return parseInt(i,e)}return+a};if(i(g,!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var w,j=function(t){var n=arguments.length<1?0:t,r=this;return r instanceof j&&(m?p((function(){x.valueOf.call(r)})):f(r)!=g)?a(new b(O(n)),r,j):O(n)},_=e?v(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),E=0;_.length>E;E++)c(b,w=_[E])&&!c(j,w)&&h(j,w,y(b,w));j.prototype=x,x.constructor=j,u(o,g,j)}}},n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,{a:n}),n},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},function(){"use strict";var t;r(9653),(t=window.jQuery)(".ssp_switch_box").click((function(n){var r=t(this).attr("for"),e=t(this).closest(".ssp-field");setTimeout((function(){var n=t("#"+r).prop("checked");t('input[name="'+r+'"]').val(Number(n)),void 0!==e.attr("data-disable")?e.attr("data-disable",Number(n)):void 0!==p.attr("data-active")&&e.attr("data-active",Number(n))}),10)}))}()}();
 
dist/js/mediauploader.js CHANGED
@@ -1 +1 @@
1
- !function(){var t={9670:function(t,n,r){var e=r(111);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},1318:function(t,n,r){var e=r(5656),o=r(7466),i=r(1400),u=function(t){return function(n,r,u){var c,f=e(n),a=o(f.length),s=i(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},4326:function(t){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},9920:function(t,n,r){var e=r(6656),o=r(3887),i=r(1236),u=r(3070);t.exports=function(t,n){for(var r=o(n),c=u.f,f=i.f,a=0;a<r.length;a++){var s=r[a];e(t,s)||c(t,s,f(n,s))}}},8880:function(t,n,r){var e=r(9781),o=r(3070),i=r(9114);t.exports=e?function(t,n,r){return o.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},9114:function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},9781:function(t,n,r){var e=r(7293);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,n,r){var e=r(7854),o=r(111),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,n,r){var e=r(7854),o=r(1236).f,i=r(8880),u=r(1320),c=r(3505),f=r(9920),a=r(4705);t.exports=function(t,n){var r,s,p,l,v,y=t.target,g=t.global,h=t.stat;if(r=g?e:h?e[y]||c(y,{}):(e[y]||{}).prototype)for(s in n){if(l=n[s],p=t.noTargetGet?(v=o(r,s))&&v.value:r[s],!a(g?s:y+(h?".":"#")+s,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;f(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),u(r,s,l,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},5005:function(t,n,r){var e=r(857),o=r(7854),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?i(e[t])||i(o[t]):e[t]&&e[t][n]||o[t]&&o[t][n]}},7854:function(t,n,r){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},6656:function(t){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},3501:function(t){t.exports={}},4664:function(t,n,r){var e=r(9781),o=r(7293),i=r(317);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,n,r){var e=r(7293),o=r(4326),i="".split;t.exports=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},2788:function(t,n,r){var e=r(5465),o=Function.toString;"function"!=typeof e.inspectSource&&(e.inspectSource=function(t){return o.call(t)}),t.exports=e.inspectSource},9909:function(t,n,r){var e,o,i,u=r(8536),c=r(7854),f=r(111),a=r(8880),s=r(6656),p=r(5465),l=r(6200),v=r(3501),y=c.WeakMap;if(u){var g=p.state||(p.state=new y),h=g.get,d=g.has,x=g.set;e=function(t,n){return n.facade=t,x.call(g,t,n),n},o=function(t){return h.call(g,t)||{}},i=function(t){return d.call(g,t)}}else{var b=l("state");v[b]=!0,e=function(t,n){return n.facade=t,a(t,b,n),n},o=function(t){return s(t,b)?t[b]:{}},i=function(t){return s(t,b)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(n){var r;if(!f(n)||(r=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},4705:function(t,n,r){var e=r(7293),o=/#|\.prototype\./,i=function(t,n){var r=c[u(t)];return r==a||r!=f&&("function"==typeof n?e(n):!!n)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},f=i.NATIVE="N",a=i.POLYFILL="P";t.exports=i},111:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},1913:function(t){t.exports=!1},8536:function(t,n,r){var e=r(7854),o=r(2788),i=e.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},3070:function(t,n,r){var e=r(9781),o=r(4664),i=r(9670),u=r(7593),c=Object.defineProperty;n.f=e?c:function(t,n,r){if(i(t),n=u(n,!0),i(r),o)try{return c(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},1236:function(t,n,r){var e=r(9781),o=r(5296),i=r(9114),u=r(5656),c=r(7593),f=r(6656),a=r(4664),s=Object.getOwnPropertyDescriptor;n.f=e?s:function(t,n){if(t=u(t),n=c(n,!0),a)try{return s(t,n)}catch(t){}if(f(t,n))return i(!o.f.call(t,n),t[n])}},8006:function(t,n,r){var e=r(6324),o=r(748).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},5181:function(t,n){n.f=Object.getOwnPropertySymbols},6324:function(t,n,r){var e=r(6656),o=r(5656),i=r(1318).indexOf,u=r(3501);t.exports=function(t,n){var r,c=o(t),f=0,a=[];for(r in c)!e(u,r)&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~i(a,r)||a.push(r));return a}},5296:function(t,n){"use strict";var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,o=e&&!r.call({1:2},1);n.f=o?function(t){var n=e(this,t);return!!n&&n.enumerable}:r},3887:function(t,n,r){var e=r(5005),o=r(8006),i=r(5181),u=r(9670);t.exports=e("Reflect","ownKeys")||function(t){var n=o.f(u(t)),r=i.f;return r?n.concat(r(t)):n}},857:function(t,n,r){var e=r(7854);t.exports=e},1320:function(t,n,r){var e=r(7854),o=r(8880),i=r(6656),u=r(3505),c=r(2788),f=r(9909),a=f.get,s=f.enforce,p=String(String).split("String");(t.exports=function(t,n,r,c){var f,a=!!c&&!!c.unsafe,l=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof n||i(r,"name")||o(r,"name",n),(f=s(r)).source||(f.source=p.join("string"==typeof n?n:""))),t!==e?(a?!v&&t[n]&&(l=!0):delete t[n],l?t[n]=r:o(t,n,r)):l?t[n]=r:u(n,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&a(this).source||c(this)}))},4488:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3505:function(t,n,r){var e=r(7854),o=r(8880);t.exports=function(t,n){try{o(e,t,n)}catch(r){e[t]=n}return n}},6200:function(t,n,r){var e=r(2309),o=r(9711),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},5465:function(t,n,r){var e=r(7854),o=r(3505),i="__core-js_shared__",u=e[i]||o(i,{});t.exports=u},2309:function(t,n,r){var e=r(1913),o=r(5465);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.8.1",mode:e?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},1400:function(t,n,r){var e=r(9958),o=Math.max,i=Math.min;t.exports=function(t,n){var r=e(t);return r<0?o(r+n,0):i(r,n)}},5656:function(t,n,r){var e=r(8361),o=r(4488);t.exports=function(t){return e(o(t))}},9958:function(t){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},7466:function(t,n,r){var e=r(9958),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},7593:function(t,n,r){var e=r(111);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},9711:function(t){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},3753:function(t,n,r){"use strict";r(2109)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})}},n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,{a:n}),n},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},function(){"use strict";var t,n;r(3753),console.log("Loaded media-uploader.js."),t=window.jQuery,n=null,t(document).on("click","[name=ssp-media-upload]",(function(r){r.preventDefault();var e=t(this).attr("data-id");console.log(e),function(r){var e=t("#preview_"+r),o=t("#src_"+r);(n=wp.media({library:{type:"image"},multiple:!1})).on("select",(function(){var t=n.state().get("selection").first().toJSON();o.val(t.url),o.change(),e.html('<img src="'+t.url+'" alt="" />')})),n.open()}(e)})),t(document).on("click","[name=ssp-media-clear]",(function(){var n,r,e;n=t(this).attr("data-id"),r=t("#preview_"+n),(e=t("#src_"+n)).val(""),e.change(),r.empty()}))}()}();
1
+ !function(){var t={670:function(t,n,r){var e=r(111);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},318:function(t,n,r){var e=r(656),o=r(466),i=r(400),u=function(t){return function(n,r,u){var c,f=e(n),a=o(f.length),s=i(u,a);if(t&&r!=r){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((t||s in f)&&f[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},326:function(t){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},920:function(t,n,r){var e=r(871),o=r(887),i=r(236),u=r(70);t.exports=function(t,n){for(var r=o(n),c=u.f,f=i.f,a=0;a<r.length;a++){var s=r[a];e(t,s)||c(t,s,f(n,s))}}},880:function(t,n,r){var e=r(781),o=r(70),i=r(114);t.exports=e?function(t,n,r){return o.f(t,n,i(1,r))}:function(t,n,r){return t[n]=r,t}},114:function(t){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},781:function(t,n,r){var e=r(293);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:function(t,n,r){var e=r(854),o=r(111),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},109:function(t,n,r){var e=r(854),o=r(236).f,i=r(880),u=r(320),c=r(505),f=r(920),a=r(705);t.exports=function(t,n){var r,s,p,l,v,y=t.target,g=t.global,h=t.stat;if(r=g?e:h?e[y]||c(y,{}):(e[y]||{}).prototype)for(s in n){if(l=n[s],p=t.noTargetGet?(v=o(r,s))&&v.value:r[s],!a(g?s:y+(h?".":"#")+s,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;f(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),u(r,s,l,t)}}},293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},5:function(t,n,r){var e=r(857),o=r(854),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,n){return arguments.length<2?i(e[t])||i(o[t]):e[t]&&e[t][n]||o[t]&&o[t][n]}},854:function(t,n,r){var e=function(t){return t&&t.Math==Math&&t};t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},871:function(t){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},501:function(t){t.exports={}},664:function(t,n,r){var e=r(781),o=r(293),i=r(317);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},361:function(t,n,r){var e=r(293),o=r(326),i="".split;t.exports=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},788:function(t,n,r){var e=r(465),o=Function.toString;"function"!=typeof e.inspectSource&&(e.inspectSource=function(t){return o.call(t)}),t.exports=e.inspectSource},909:function(t,n,r){var e,o,i,u=r(536),c=r(854),f=r(111),a=r(880),s=r(871),p=r(465),l=r(200),v=r(501),y=c.WeakMap;if(u){var g=p.state||(p.state=new y),h=g.get,d=g.has,x=g.set;e=function(t,n){return n.facade=t,x.call(g,t,n),n},o=function(t){return h.call(g,t)||{}},i=function(t){return d.call(g,t)}}else{var b=l("state");v[b]=!0,e=function(t,n){return n.facade=t,a(t,b,n),n},o=function(t){return s(t,b)?t[b]:{}},i=function(t){return s(t,b)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(n){var r;if(!f(n)||(r=o(n)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},705:function(t,n,r){var e=r(293),o=/#|\.prototype\./,i=function(t,n){var r=c[u(t)];return r==a||r!=f&&("function"==typeof n?e(n):!!n)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},f=i.NATIVE="N",a=i.POLYFILL="P";t.exports=i},111:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},913:function(t){t.exports=!1},536:function(t,n,r){var e=r(854),o=r(788),i=e.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},70:function(t,n,r){var e=r(781),o=r(664),i=r(670),u=r(593),c=Object.defineProperty;n.f=e?c:function(t,n,r){if(i(t),n=u(n,!0),i(r),o)try{return c(t,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[n]=r.value),t}},236:function(t,n,r){var e=r(781),o=r(296),i=r(114),u=r(656),c=r(593),f=r(871),a=r(664),s=Object.getOwnPropertyDescriptor;n.f=e?s:function(t,n){if(t=u(t),n=c(n,!0),a)try{return s(t,n)}catch(t){}if(f(t,n))return i(!o.f.call(t,n),t[n])}},6:function(t,n,r){var e=r(324),o=r(748).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},181:function(t,n){n.f=Object.getOwnPropertySymbols},324:function(t,n,r){var e=r(871),o=r(656),i=r(318).indexOf,u=r(501);t.exports=function(t,n){var r,c=o(t),f=0,a=[];for(r in c)!e(u,r)&&e(c,r)&&a.push(r);for(;n.length>f;)e(c,r=n[f++])&&(~i(a,r)||a.push(r));return a}},296:function(t,n){"use strict";var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,o=e&&!r.call({1:2},1);n.f=o?function(t){var n=e(this,t);return!!n&&n.enumerable}:r},887:function(t,n,r){var e=r(5),o=r(6),i=r(181),u=r(670);t.exports=e("Reflect","ownKeys")||function(t){var n=o.f(u(t)),r=i.f;return r?n.concat(r(t)):n}},857:function(t,n,r){var e=r(854);t.exports=e},320:function(t,n,r){var e=r(854),o=r(880),i=r(871),u=r(505),c=r(788),f=r(909),a=f.get,s=f.enforce,p=String(String).split("String");(t.exports=function(t,n,r,c){var f,a=!!c&&!!c.unsafe,l=!!c&&!!c.enumerable,v=!!c&&!!c.noTargetGet;"function"==typeof r&&("string"!=typeof n||i(r,"name")||o(r,"name",n),(f=s(r)).source||(f.source=p.join("string"==typeof n?n:""))),t!==e?(a?!v&&t[n]&&(l=!0):delete t[n],l?t[n]=r:o(t,n,r)):l?t[n]=r:u(n,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&a(this).source||c(this)}))},488:function(t){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},505:function(t,n,r){var e=r(854),o=r(880);t.exports=function(t,n){try{o(e,t,n)}catch(r){e[t]=n}return n}},200:function(t,n,r){var e=r(309),o=r(711),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},465:function(t,n,r){var e=r(854),o=r(505),i="__core-js_shared__",u=e[i]||o(i,{});t.exports=u},309:function(t,n,r){var e=r(913),o=r(465);(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.8.1",mode:e?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},400:function(t,n,r){var e=r(958),o=Math.max,i=Math.min;t.exports=function(t,n){var r=e(t);return r<0?o(r+n,0):i(r,n)}},656:function(t,n,r){var e=r(361),o=r(488);t.exports=function(t){return e(o(t))}},958:function(t){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},466:function(t,n,r){var e=r(958),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},593:function(t,n,r){var e=r(111);t.exports=function(t,n){if(!e(t))return t;var r,o;if(n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!e(o=r.call(t)))return o;if(!n&&"function"==typeof(r=t.toString)&&!e(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},711:function(t){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},753:function(t,n,r){"use strict";r(109)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})}},n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={exports:{}};return t[e](o,o.exports,r),o.exports}r.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(n,{a:n}),n},r.d=function(t,n){for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},function(){"use strict";r(753),console.log("Loaded media-uploader.js."),function(t){let n=null;t(document).on("click","[name=ssp-media-upload]",(function(r){r.preventDefault();const e=t(this).attr("data-id");console.log(e),function(r){const e=t("#preview_"+r),o=t("#src_"+r);n=wp.media({library:{type:"image"},multiple:!1}),n.on("select",(function(){const t=n.state().get("selection").first().toJSON();o.val(t.url),o.change(),e.html('<img src="'+t.url+'" alt="" />')})),n.open()}(e)})),t(document).on("click","[name=ssp-media-clear]",(function(){!function(n){const r=t("#preview_"+n),e=t("#src_"+n);e.val(""),e.change(),r.empty()}(t(this).attr("data-id"))}))}(window.jQuery)}()}();
dist/js/ssp.js CHANGED
@@ -1 +1 @@
1
- addEventListener("DOMContentLoaded",(function(){!function(){window.scrollTo(0,0);var t=document.querySelectorAll(".nav-tab"),e=document.querySelectorAll(".tab-contents");if(location.hash){var a=document.querySelector(location.hash),c=document.querySelector('[href="'+location.hash+'"]'),n=document.querySelector(".nav-tab.act_"),o=document.querySelector(".tab-contents.act_");a&&c&&n&&o&&(n.classList.remove("act_"),o.classList.remove("act_"),a.classList.add("act_"),c.classList.add("act_"))}for(var s=function(a){t[a].addEventListener("click",(function(c){c.preventDefault();var n=c.target.getAttribute("href");history.replaceState(null,null,n),t[a].classList.contains("act_")||(document.querySelector(".nav-tab.act_").classList.remove("act_"),t[a].classList.add("act_"),document.querySelector(".tab-contents.act_").classList.remove("act_"),e[a].classList.add("act_"))}))},r=0;r<t.length;r++)s(r)}()}));
1
+ addEventListener("DOMContentLoaded",(function(){!function(){window.scrollTo(0,0);const t=document.querySelectorAll(".nav-tab"),e=document.querySelectorAll(".tab-contents");if(location.hash){const t=document.querySelector(location.hash),e=document.querySelector('[href="'+location.hash+'"]'),c=document.querySelector(".nav-tab.act_"),a=document.querySelector(".tab-contents.act_");t&&e&&c&&a&&(c.classList.remove("act_"),a.classList.remove("act_"),t.classList.add("act_"),e.classList.add("act_"))}for(let c=0;c<t.length;c++)t[c].addEventListener("click",(function(a){a.preventDefault();const o=a.target.getAttribute("href");history.replaceState(null,null,o),t[c].classList.contains("act_")||(document.querySelector(".nav-tab.act_").classList.remove("act_"),t[c].classList.add("act_"),document.querySelector(".tab-contents.act_").classList.remove("act_"),e[c].classList.add("act_"))}))}()}));
dist/js/switch.js ADDED
@@ -0,0 +1 @@
 
1
+ document.addEventListener("DOMContentLoaded",(function(){document.querySelectorAll(".ssp_switch").forEach((t=>{const e=t.getAttribute("for"),n=document.getElementById(e),u=document.querySelector('[name="'+e+'"]');null!==n&&null!==u&&t.addEventListener("click",(function(e){setTimeout((()=>{const e=Number(n.checked);u.setAttribute("value",e),(e=>{const n=t.closest(".ssp-field");null!==n&&(null===n.getAttribute("data-disable")?null!==n.getAttribute("data-active")&&n.setAttribute("data-active",e):n.setAttribute("data-disable",e))})(e)}),10)}))}))}));
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://loos-web-studio.com/
4
  Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
5
  Requires at least: 4.9
6
  Tested up to: 5.8
7
- Stable tag: 2.2.7
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -121,6 +121,10 @@ The following hooks are available.
121
 
122
  == Changelog ==
123
 
 
 
 
 
124
  = 2.2.7 =
125
  - Changed the number of characters when automatically generating a description.
126
  - Added 'ssp_description_word_count' hook.
4
  Tags: SEO, meta, analytics, webmaster, simple, japan, meta tag
5
  Requires at least: 4.9
6
  Tested up to: 5.8
7
+ Stable tag: 2.2.8
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
121
 
122
  == Changelog ==
123
 
124
+ = 2.2.8 =
125
+ - Fixed og:type on front page.
126
+ - Fixed to not save empty custom fields.
127
+
128
  = 2.2.7 =
129
  - Changed the number of characters when automatically generating a description.
130
  - Added 'ssp_description_word_count' hook.
sass-builder.js ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* eslint no-console: 0 */
2
+ // console.log('start sass-builder.js ...');
3
+
4
+ const path = require('path');
5
+ const fs = require('fs');
6
+
7
+ // node-sass
8
+ const sass = require('node-sass');
9
+ const nodeSassGlobbing = require('node-sass-globbing');
10
+
11
+ // postcss
12
+ const postcss = require('postcss');
13
+ const autoprefixer = require('autoprefixer');
14
+ const cssnano = require('cssnano');
15
+ const mqpacker = require('css-mqpacker');
16
+
17
+ // consoleの色付け
18
+ const red = '\u001b[31m';
19
+ const green = '\u001b[32m';
20
+
21
+ const writeCSS = (filePath, css) => {
22
+ const dir = path.dirname(filePath);
23
+
24
+ // ディレクトリがなければ作成
25
+ if (!fs.existsSync(dir)) {
26
+ fs.mkdirSync(dir, { recursive: true });
27
+ }
28
+
29
+ // css書き出し
30
+ fs.writeFileSync(filePath, css);
31
+ };
32
+
33
+ // パス
34
+ const src = 'src/scss';
35
+ const dist = 'dist/css';
36
+ const files = [
37
+ 'ssp',
38
+ 'common',
39
+ 'post',
40
+ 'term',
41
+ ];
42
+
43
+ files.forEach((fileName) => {
44
+ // renderSyncだとimporter使えない
45
+ sass.render(
46
+ {
47
+ file: path.resolve(__dirname, src, `${fileName}.scss`),
48
+ outputStyle: 'compressed',
49
+ importer: nodeSassGlobbing,
50
+ },
51
+ function (err, sassResult) {
52
+ if (err) {
53
+ console.error(red + err);
54
+ } else {
55
+ const css = sassResult.css.toString();
56
+ const filePath = path.resolve(__dirname, dist, `${fileName}.css`);
57
+
58
+ // postcss実行
59
+ postcss([autoprefixer, mqpacker, cssnano])
60
+ .process(css, { from: undefined })
61
+ .then((postcssResult) => {
62
+ console.log(green + 'Wrote CSS to ' + filePath);
63
+ writeCSS(filePath, postcssResult.css);
64
+
65
+ // if (postcssResult.map) {fs.writeFile('dest/app.css.map', postcssResult.map.toString(), () => true);}
66
+ });
67
+ }
68
+ }
69
+ );
70
+ });
seo-simple-pack.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: SEO SIMPLE PACK
4
  * Plugin URI: https://wemo.tech/1670
5
  * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page.
6
- * Version: 2.2.7
7
  * Author: LOOS,Inc.
8
  * Author URI: https://loos-web-studio.com/
9
  * License: GPL2 or later
3
  * Plugin Name: SEO SIMPLE PACK
4
  * Plugin URI: https://wemo.tech/1670
5
  * Description: A very simple SEO plugin. You can easily set and customize meta tags and OGP tags for each page.
6
+ * Version: 2.2.8
7
  * Author: LOOS,Inc.
8
  * Author URI: https://loos-web-studio.com/
9
  * License: GPL2 or later
src/js/common.js DELETED
@@ -1,21 +0,0 @@
1
- (function ($) {
2
-
3
- /**
4
- * sweitch
5
- */
6
- const switchBox = $('.ssp_switch_box');
7
- switchBox.click(function (e){
8
- const labelFor = $(this).attr('for');
9
- const parentField = $(this).closest('.ssp-field');
10
- setTimeout( function() {
11
- const val = $('#' + labelFor).prop('checked');
12
- $('input[name="' + labelFor + '"]').val( Number(val) );
13
-
14
- if (parentField.attr('data-disable') !== undefined) {
15
- parentField.attr('data-disable', Number(val));
16
- } else if (p.attr('data-active') !== undefined) {
17
- parentField.attr('data-active', Number(val));
18
- }
19
- }, 10);
20
- });
21
- })(window.jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
src/js/ssp.js CHANGED
@@ -3,49 +3,49 @@
3
  */
4
  addEventListener('DOMContentLoaded', function () {
5
 
6
- // 設定タブの切替処理
7
- (function () {
8
- // ページ上部へ
9
- window.scrollTo(0, 0);
10
 
11
- const tabNavs = document.querySelectorAll('.nav-tab');
12
- const tabContents = document.querySelectorAll('.tab-contents');
13
 
14
- if (location.hash) {
15
- const hashTarget = document.querySelector(location.hash);
16
- const hashTab = document.querySelector(
17
- '[href="' + location.hash + '"]'
18
- );
19
- const actTabNav = document.querySelector('.nav-tab.act_');
20
- const actTabContent = document.querySelector('.tab-contents.act_');
21
- if (hashTarget && hashTab && actTabNav && actTabContent) {
22
- actTabNav.classList.remove('act_');
23
- actTabContent.classList.remove('act_');
24
- hashTarget.classList.add('act_');
25
- hashTab.classList.add('act_');
26
- }
27
- }
28
 
29
- for (let i = 0; i < tabNavs.length; i++) {
30
- tabNavs[i].addEventListener('click', function (e) {
31
- e.preventDefault();
32
- const targetHash = e.target.getAttribute('href');
33
 
34
- // History APIでURLを書き換える( location.hash でやると 移動してしまう)
35
- history.replaceState(null, null, targetHash);
36
 
37
- if (!tabNavs[i].classList.contains('act_')) {
38
- document
39
- .querySelector('.nav-tab.act_')
40
- .classList.remove('act_');
41
- tabNavs[i].classList.add('act_');
42
 
43
- document
44
- .querySelector('.tab-contents.act_')
45
- .classList.remove('act_');
46
- tabContents[i].classList.add('act_');
47
- }
48
- });
49
- }
50
- })();
51
  });
3
  */
4
  addEventListener('DOMContentLoaded', function () {
5
 
6
+ // 設定タブの切替処理
7
+ (function () {
8
+ // ページ上部へ
9
+ window.scrollTo(0, 0);
10
 
11
+ const tabNavs = document.querySelectorAll('.nav-tab');
12
+ const tabContents = document.querySelectorAll('.tab-contents');
13
 
14
+ if (location.hash) {
15
+ const hashTarget = document.querySelector(location.hash);
16
+ const hashTab = document.querySelector(
17
+ '[href="' + location.hash + '"]'
18
+ );
19
+ const actTabNav = document.querySelector('.nav-tab.act_');
20
+ const actTabContent = document.querySelector('.tab-contents.act_');
21
+ if (hashTarget && hashTab && actTabNav && actTabContent) {
22
+ actTabNav.classList.remove('act_');
23
+ actTabContent.classList.remove('act_');
24
+ hashTarget.classList.add('act_');
25
+ hashTab.classList.add('act_');
26
+ }
27
+ }
28
 
29
+ for (let i = 0; i < tabNavs.length; i++) {
30
+ tabNavs[i].addEventListener('click', function (e) {
31
+ e.preventDefault();
32
+ const targetHash = e.target.getAttribute('href');
33
 
34
+ // History APIでURLを書き換える( location.hash でやると 移動してしまう)
35
+ history.replaceState(null, null, targetHash);
36
 
37
+ if (!tabNavs[i].classList.contains('act_')) {
38
+ document
39
+ .querySelector('.nav-tab.act_')
40
+ .classList.remove('act_');
41
+ tabNavs[i].classList.add('act_');
42
 
43
+ document
44
+ .querySelector('.tab-contents.act_')
45
+ .classList.remove('act_');
46
+ tabContents[i].classList.add('act_');
47
+ }
48
+ });
49
+ }
50
+ })();
51
  });
src/js/switch.js ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ //switchCheckbox の動作
3
+ function setSwitchEvent () {
4
+ const switchBtns = document.querySelectorAll('.ssp_switch');
5
+ switchBtns.forEach(theBtn => {
6
+ const targetId = theBtn.getAttribute('for');
7
+ const tagetCheckbox = document.getElementById(targetId);
8
+ const targetInput = document.querySelector('[name="' + targetId + '"]');
9
+
10
+ if (null === tagetCheckbox) return;
11
+ if (null === targetInput) return;
12
+
13
+ const changeParentAttrData = (val) => {
14
+ const parentField = theBtn.closest('.ssp-field');
15
+ if (null === parentField) return;
16
+
17
+ // 「〇〇のアーカイブページを使用しない」系
18
+ if (parentField.getAttribute('data-disable') !== null) {
19
+ parentField.setAttribute('data-disable', val);
20
+ return;
21
+ }
22
+
23
+ // 「Facebook/Twitter用のメタタグを使用するかどうか」
24
+ if (parentField.getAttribute('data-active') !== null) {
25
+ parentField.setAttribute('data-active', val);
26
+ }
27
+ }
28
+
29
+ theBtn.addEventListener('click', function (e) {
30
+ setTimeout(() => {
31
+ const val = Number(tagetCheckbox.checked);
32
+ targetInput.setAttribute('value', val);
33
+
34
+ //親フィールドに対する処理
35
+ changeParentAttrData(val);
36
+ }, 10);
37
+ });
38
+ });
39
+ }
40
+
41
+ document.addEventListener('DOMContentLoaded', setSwitchEvent);
src/scss/inc/_switch.scss CHANGED
@@ -4,7 +4,7 @@
4
  * ------------------------------ */
5
 
6
  /* The switch - the box around the slider */
7
- .ssp_switch_box {
8
  position: relative;
9
  display: inline-block;
10
  width: 64px;
@@ -13,12 +13,12 @@
13
  }
14
 
15
  /* Hide default HTML checkbox */
16
- .ssp_switch_box input {
17
  display: none;
18
  }
19
 
20
  /* The slider */
21
- .ssp_switch_box__slider {
22
  position: absolute;
23
  top: 0;
24
  right: 0;
@@ -30,31 +30,31 @@
30
  transition: 0.4s;
31
  }
32
 
33
- .ssp_switch_box__slider::before {
34
  position: absolute;
35
  right: 4px;
36
  bottom: 4px;
37
  width: 20px;
38
  height: 20px;
39
- background-color: white;
40
  -webkit-transition: 0.4s;
41
  transition: 0.4s;
42
  content: "";
43
  }
44
 
45
- input:checked + .ssp_switch_box__slider {
46
  background-color: #2196f3;
47
  }
48
 
49
- input:checked + .ssp_switch_box__slider::before {
50
  right: 40px;
51
  }
52
 
53
  /* Rounded sliders */
54
- .ssp_switch_box__slider.-round {
55
  border-radius: 34px;
56
  }
57
 
58
- .ssp_switch_box__slider.-round::before {
59
  border-radius: 50%;
60
  }
4
  * ------------------------------ */
5
 
6
  /* The switch - the box around the slider */
7
+ .ssp_switch {
8
  position: relative;
9
  display: inline-block;
10
  width: 64px;
13
  }
14
 
15
  /* Hide default HTML checkbox */
16
+ .ssp_switch input {
17
  display: none;
18
  }
19
 
20
  /* The slider */
21
+ .ssp_switch__slider {
22
  position: absolute;
23
  top: 0;
24
  right: 0;
30
  transition: 0.4s;
31
  }
32
 
33
+ .ssp_switch__slider::before {
34
  position: absolute;
35
  right: 4px;
36
  bottom: 4px;
37
  width: 20px;
38
  height: 20px;
39
+ background-color: #fff;
40
  -webkit-transition: 0.4s;
41
  transition: 0.4s;
42
  content: "";
43
  }
44
 
45
+ input:checked + .ssp_switch__slider {
46
  background-color: #2196f3;
47
  }
48
 
49
+ input:checked + .ssp_switch__slider::before {
50
  right: 40px;
51
  }
52
 
53
  /* Rounded sliders */
54
+ .ssp_switch__slider.-round {
55
  border-radius: 34px;
56
  }
57
 
58
+ .ssp_switch__slider.-round::before {
59
  border-radius: 50%;
60
  }