WordPress Landing Pages - Version 2.7.4

Version Description

  • Updating Inbound PRO upgrade links.
  • Fixing session_start() issue with native WP Editor.
Download this release

Release Info

Developer adbox
Plugin Icon 128x128 WordPress Landing Pages
Version 2.7.4
Comparing to
See all releases

Code changes from version 2.7.3 to 2.7.4

Files changed (40) hide show
  1. classes/class.settings.php +45 -29
  2. classes/class.store.php +1 -1
  3. landing-pages.php +3 -3
  4. readme.txt +6 -2
  5. shared/assets/plugins/advanced-custom-fields/acf.php +707 -707
  6. shared/assets/plugins/advanced-custom-fields/assets/css/acf-global.css +1525 -1525
  7. shared/assets/plugins/advanced-custom-fields/assets/css/acf-input.css +2680 -2680
  8. shared/assets/plugins/advanced-custom-fields/assets/js/acf-field-group.js +2507 -2507
  9. shared/assets/plugins/advanced-custom-fields/assets/js/acf-input.js +14296 -14296
  10. shared/assets/plugins/advanced-custom-fields/assets/js/acf-input.min.js +3 -3
  11. shared/assets/plugins/advanced-custom-fields/includes/admin/admin-field-group.php +837 -837
  12. shared/assets/plugins/advanced-custom-fields/includes/admin/admin-field-groups.php +825 -825
  13. shared/assets/plugins/advanced-custom-fields/includes/admin/tools/class-acf-admin-tool-export.php +595 -595
  14. shared/assets/plugins/advanced-custom-fields/includes/admin/views/html-admin-tools.php +26 -26
  15. shared/assets/plugins/advanced-custom-fields/includes/ajax/class-acf-ajax-check-screen.php +90 -90
  16. shared/assets/plugins/advanced-custom-fields/includes/api/api-field-group.php +1237 -1237
  17. shared/assets/plugins/advanced-custom-fields/includes/api/api-helpers.php +5385 -5385
  18. shared/assets/plugins/advanced-custom-fields/includes/api/api-template.php +1513 -1513
  19. shared/assets/plugins/advanced-custom-fields/includes/assets.php +480 -480
  20. shared/assets/plugins/advanced-custom-fields/includes/fields/class-acf-field-date_picker.php +275 -275
  21. shared/assets/plugins/advanced-custom-fields/includes/fields/class-acf-field-google-map.php +316 -316
  22. shared/assets/plugins/advanced-custom-fields/includes/fields/class-acf-field-group.php +705 -705
  23. shared/assets/plugins/advanced-custom-fields/includes/fields/class-acf-field-message.php +197 -197
  24. shared/assets/plugins/advanced-custom-fields/includes/fields/class-acf-field-select.php +642 -642
  25. shared/assets/plugins/advanced-custom-fields/includes/fields/class-acf-field-tab.php +163 -163
  26. shared/assets/plugins/advanced-custom-fields/includes/fields/class-acf-field-user.php +592 -592
  27. shared/assets/plugins/advanced-custom-fields/includes/form.php +280 -280
  28. shared/assets/plugins/advanced-custom-fields/includes/forms/form-gutenberg.php +118 -118
  29. shared/assets/plugins/advanced-custom-fields/includes/forms/form-post.php +361 -361
  30. shared/assets/plugins/advanced-custom-fields/includes/forms/form-taxonomy.php +415 -415
  31. shared/assets/plugins/advanced-custom-fields/lang/acf-cs_CZ.po +4029 -4029
  32. shared/assets/plugins/advanced-custom-fields/lang/acf-pl_PL.po +4111 -4111
  33. shared/assets/plugins/advanced-custom-fields/lang/acf-pt_PT.po +3259 -3259
  34. shared/assets/plugins/advanced-custom-fields/lang/acf-tr_TR.po +3665 -3665
  35. shared/classes/class.confirm-double-optin.php +9 -0
  36. shared/classes/class.events.php +5 -2
  37. shared/classes/class.lead-storage.php +8 -2
  38. shared/classes/class.list-double-optin.php +3 -2
  39. shared/classes/class.post-type.wp-lead.php +1 -6
  40. shared/classes/class.templating-engine.php +1 -1
classes/class.settings.php CHANGED
@@ -103,7 +103,7 @@ class Landing_Pages_Settings {
103
array(
104
'id' => 'lp_global_settings_main_header',
105
'type' => 'header',
106
- 'default' => __('Landing Pages Core Settings' , 'inbound-pro') ,
107
'options' => null
108
),
109
array(
@@ -262,7 +262,7 @@ class Landing_Pages_Settings {
262
}
263
}
264
265
-
266
$active_tab = 'lp-main';
267
if (isset($_REQUEST['open-tab'])) {
268
$active_tab = sanitize_title($_REQUEST['open-tab']);
@@ -286,12 +286,8 @@ class Landing_Pages_Settings {
286
287
echo "</h2><div class='lp-settings-tab-sidebar'>";
288
289
- echo "<div class='lp-sidebar-settings'><h2 style='font-size:16px;'>Like the Plugin? Leave us a review</h2><center><a class='review-button' href='http://wordpress.org/support/view/plugin-reviews/landing-pages?rate=5#postform' target='_blank'>Leave a Quick Review</a></center><small>Reviews help constantly improve the plugin & keep us motivated! <strong>Thank you for your support!</strong></small></div><div class='lp-sidebar-settings'><h2>Help keep the plugin up to date, awesome & free!</h2><form action='https://www.paypal.com/cgi-bin/webscr' method='post' target='_top'>
290
- <input type='hidden' name='cmd' value='_s-xclick'>
291
- <input type='hidden' name='hosted_button_id' value='GKQ2BR3RKB3YQ'>
292
- <input type='image' src='https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif' border='0' name='submit' alt='PayPal - The safer, easier way to pay online!'>
293
- <img alt='' border='0' src='https://www.paypalobjects.com/en_US/i/scr/pixel.gif' width='1' height='1'></form>
294
- <small>Spare some change? Buy us a coffee/beer.<strong> We appreciate your continued support.</strong></small></div><div class='lp-sidebar-settings'><h2 style='font-size:18px;'>Follow Updates on Facebook</h2><iframe src='//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Finboundnow&amp;width=234&amp;height=65&amp;colorscheme=light&amp;show_faces=false&amp;border_color&amp;stream=false&amp;header=false&amp;appId=364256913591848' scrolling='no' frameborder='0' style='border:none; overflow:hidden; width:234px; height:65px;' allowTransparency='true'></iframe></div></div>";
295
echo "<form action='edit.php?post_type=landing-page&page=lp_global_settings' method='POST'>
296
<input type='hidden' name='nature' value='lp-global-settings-save'>
297
<input type='hidden' name='open-tab' id='id-open-tab' value='{$active_tab}'>";
@@ -308,19 +304,39 @@ class Landing_Pages_Settings {
308
?>
309
<div id="lp-additional-resources" class="clear">
310
<hr>
311
- <div id="more-templates">
312
- <center>
313
- <a href="http://www.inboundnow.com/marketplace/?show=landing-pages" target="_blank"><img
314
- src="<?php echo LANDINGPAGES_URLPATH; ?>assets/images/templates-image.png"></a>
315
-
316
- </center>
317
- </div>
318
- <div id="more-addons">
319
- <center>
320
- <a href="http://www.inboundnow.com/marketplace/?show=extensions" target="_blank"><img
321
- src="<?php echo LANDINGPAGES_URLPATH; ?>assets/images/add-on-image.png"></a>
322
- </center>
323
- </div>
324
</div>
325
<script type="text/javascript">
326
jQuery(document).ready(function ($) {
@@ -390,7 +406,7 @@ class Landing_Pages_Settings {
390
<?php
391
} else {
392
?>
393
- &times;
394
<span
395
class="installation_item_message"><?php _e('landing pages requires version X or higher', 'inbound-pro'); ?></span>
396
<?php
@@ -483,15 +499,15 @@ class Landing_Pages_Settings {
483
484
PHP Version: <?php echo PHP_VERSION . "\n"; ?>
485
MySQL Version: <?php
486
- $con=mysqli_connect("localhost","my_user","my_password","my_db");
487
488
- if (mysqli_connect_errno()) {
489
- echo "Failed to connect to MySQL: " . mysqli_connect_error(). "\n";
490
- }
491
492
- echo mysqli_get_server_info($con). "\n";
493
494
- ?>
495
Web Server Info: <?php echo $_SERVER['SERVER_SOFTWARE'] . "\n"; ?>
496
497
PHP Safe Mode: <?php echo ini_get('safe_mode') ? "Yes" : "No\n"; ?>
@@ -851,4 +867,4 @@ class Landing_Pages_Settings {
851
}
852
}
853
854
- new Landing_Pages_Settings;
103
array(
104
'id' => 'lp_global_settings_main_header',
105
'type' => 'header',
106
+ 'default' => __('Core Settings' , 'inbound-pro') ,
107
'options' => null
108
),
109
array(
262
}
263
}
264
265
+
266
$active_tab = 'lp-main';
267
if (isset($_REQUEST['open-tab'])) {
268
$active_tab = sanitize_title($_REQUEST['open-tab']);
286
287
echo "</h2><div class='lp-settings-tab-sidebar'>";
288
289
+ echo "<div style=''></div>";
290
+ echo "</div>";
291
echo "<form action='edit.php?post_type=landing-page&page=lp_global_settings' method='POST'>
292
<input type='hidden' name='nature' value='lp-global-settings-save'>
293
<input type='hidden' name='open-tab' id='id-open-tab' value='{$active_tab}'>";
304
?>
305
<div id="lp-additional-resources" class="clear">
306
<hr>
307
+ <?php
308
+ $rand = rand(0,3);
309
+ switch ($rand) {
310
+ case 0:
311
+ echo ' <div class="" style="margin-left:auto;margin-right:auto;">
312
+ <h4><b>Sponsored Moment: Need to hire WordPress assistance? Agents at Codeable are ready to help.</b></h4>
313
+ <a href="https://codeable.io/?ref=WwUol">
314
+ <img src=\'https://referoo.co/creatives/21/asset.png\' />
315
+ </a>
316
+ </div>';
317
+ echo ' </div>';
318
+ break;
319
+ case 1:
320
+ echo ' <div class="" style="margin-left:auto;margin-right:auto;">
321
+ <h4><b>This plugin works great on WPEngine! Use our special offer below to receive 20% off the first annual payment.</b></h4>
322
+ <a target="_blank" href="https://wpengine.com/more/specialoffer/?SSAID=1220301&sscid=21k3_aq4mo&utm_source=SAS&utm_medium=affiliate&utm_campaign=1220301&utm_content=1255604"><img src="https://www.inboundnow.com/wp-content/uploads/2016/12/Inbound-Now-728x90.png" border="0" /></a>
323
+ </div>';
324
+ echo ' </div>';
325
+ break;
326
+ case 2:
327
+ echo '<div class="" style="margin-left:auto;margin-right:auto;">
328
+ <h4>Did you know we offer an enhanced verson of this plugin? - <a target="_blank" href="https://www.inboundnow.com/upgrade/?ref=356">Read more about our Inbound PRO plugin.</a></b></h4>
329
+ </div>';
330
+ echo ' </div>';
331
+ break;
332
+ case 3:
333
+ echo '<div class="" style="margin-left:auto;margin-right:auto;">
334
+ <h4><b>Thank you for using our free plugin! - <a target="_blank" href="https://wordpress.org/support/plugin/landing-pages/reviews/?filter=5">Rate us 5 stars to help us grow!</a></b></h4>
335
+ </div>';
336
+ echo ' </div>';
337
+ break;
338
+ }
339
+ ?>
340
</div>
341
<script type="text/javascript">
342
jQuery(document).ready(function ($) {
406
<?php
407
} else {
408
?>
409
+ &times;
410
<span
411
class="installation_item_message"><?php _e('landing pages requires version X or higher', 'inbound-pro'); ?></span>
412
<?php
499
500
PHP Version: <?php echo PHP_VERSION . "\n"; ?>
501
MySQL Version: <?php
502
+ $con=mysqli_connect("localhost","my_user","my_password","my_db");
503
504
+ if (mysqli_connect_errno()) {
505
+ echo "Failed to connect to MySQL: " . mysqli_connect_error(). "\n";
506
+ }
507
508
+ echo mysqli_get_server_info($con). "\n";
509
510
+ ?>
511
Web Server Info: <?php echo $_SERVER['SERVER_SOFTWARE'] . "\n"; ?>
512
513
PHP Safe Mode: <?php echo ini_get('safe_mode') ? "Yes" : "No\n"; ?>
867
}
868
}
869
870
+ new Landing_Pages_Settings;
classes/class.store.php CHANGED
@@ -23,7 +23,7 @@ class Inbound_Now_Store {
23
public static function store_redirect() { ?>
24
<script>
25
26
- window.location = "https://www.inboundnow.com/market";
27
28
</script>
29
<?php
23
public static function store_redirect() { ?>
24
<script>
25
26
+ window.location = "https://www.inboundnow.com/upgrade";
27
28
</script>
29
<?php
landing-pages.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: Landing Pages
4
Plugin URI: http://www.inboundnow.com/landing-pages/
5
Description: Landing page template framework with variant testing and lead capturing through cooperation with Inbound Now's Leads plugin. This is the stand alone version served through WordPress.org.
6
- Version: 2.7.3
7
Author: Inbound Now
8
Author URI: https://www.inboundnow.com/?innercity=true
9
Text Domain: inbound-pro
@@ -24,7 +24,7 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
24
public function __construct() {
25
26
/* Start a PHP Session if in wp-admin */
27
- if(session_id() == '' && !headers_sent() && is_admin() ) {
28
session_start();
29
}
30
@@ -42,7 +42,7 @@ if (!class_exists('Inbound_Landing_Pages_Plugin')) {
42
*/
43
private static function load_constants() {
44
45
- define('LANDINGPAGES_CURRENT_VERSION', '2.7.3' );
46
define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
47
define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
48
define('LANDINGPAGES_PLUGIN_SLUG', 'landing-pages' );
3
Plugin Name: Landing Pages
4
Plugin URI: http://www.inboundnow.com/landing-pages/
5
Description: Landing page template framework with variant testing and lead capturing through cooperation with Inbound Now's Leads plugin. This is the stand alone version served through WordPress.org.
6
+ Version: 2.7.4
7
Author: Inbound Now
8
Author URI: https://www.inboundnow.com/?innercity=true
9
Text Domain: inbound-pro
24
public function __construct() {
25
26
/* Start a PHP Session if in wp-admin */
27
+ if(session_id() == '' && !headers_sent() && is_admin() && !isset($_GET['file']) ) {
28
session_start();
29
}
30
42
*/
43
private static function load_constants() {
44
45
+ define('LANDINGPAGES_CURRENT_VERSION', '2.7.4' );
46
define('LANDINGPAGES_URLPATH', plugins_url( '/' , __FILE__ ) );
47
define('LANDINGPAGES_PATH', WP_PLUGIN_DIR.'/'.plugin_basename( dirname(__FILE__) ).'/' );
48
define('LANDINGPAGES_PLUGIN_SLUG', 'landing-pages' );
readme.txt CHANGED
@@ -6,8 +6,8 @@ License: GPLv2 or later
6
License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics, free landing page templates
8
Requires at least: 3.8
9
- Tested up to: 5.0.2
10
- Stable Tag: 2.7.3
11
12
13
Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
@@ -85,6 +85,10 @@ We also offer a guide for using <a href="https://github.com/inboundnow/inbound-p
85
86
== Changelog ==
87
88
= 2.7.3 =
89
* Updating readme.txt compatibility notes.
90
6
License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
Tags: landing pages, inbound marketing, conversion pages, split testing, a b test, a b testing, a/b test, a/b testing, coming soon page, email list, landing page, list building, maintenance page, squeeze page, inbound now, landing-pages, splash pages, cpa, click tracking, goal tracking, analytics, free landing page templates
8
Requires at least: 3.8
9
+ Tested up to: 5.0.3
10
+ Stable Tag: 2.7.4
11
12
13
Create landing pages for your WordPress site. Monitor and improve conversion rates, run A/B split tests, customize your own templates and more.
85
86
== Changelog ==
87
88
+ = 2.7.4 =
89
+ * Updating Inbound PRO upgrade links.
90
+ * Fixing session_start() issue with native WP Editor.
91
+
92
= 2.7.3 =
93
* Updating readme.txt compatibility notes.
94
shared/assets/plugins/advanced-custom-fields/acf.php CHANGED
@@ -1,707 +1,707 @@
1
- <?php
2
- /*
3
- Plugin Name: Advanced Custom Fields
4
- Plugin URI: https://www.advancedcustomfields.com/
5
- Description: Customize WordPress with powerful, professional and intuitive fields.
6
- Version: 5.7.9
7
- Author: Elliot Condon
8
- Author URI: http://www.elliotcondon.com/
9
- Copyright: Elliot Condon
10
- Text Domain: acf
11
- Domain Path: /lang
12
- */
13
-
14
- if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
15
-
16
- if( ! class_exists('ACF') ) :
17
-
18
- class ACF {
19
-
20
- /** @var string The plugin version number */
21
- var $version = '5.7.9';
22
-
23
- /** @var array The plugin settings array */
24
- var $settings = array();
25
-
26
- /** @var array The plugin data array */
27
- var $data = array();
28
-
29
- /** @var array Storage for class instances */
30
- var $instances = array();
31
-
32
-
33
- /*
34
- * __construct
35
- *
36
- * A dummy constructor to ensure ACF is only initialized once
37
- *
38
- * @type function
39
- * @date 23/06/12
40
- * @since 5.0.0
41
- *
42
- * @param N/A
43
- * @return N/A
44
- */
45
-
46
- function __construct() {
47
-
48
- /* Do nothing here */
49
-
50
- }
51
-
52
-
53
- /*
54
- * initialize
55
- *
56
- * The real constructor to initialize ACF
57
- *
58
- * @type function
59
- * @date 28/09/13
60
- * @since 5.0.0
61
- *
62
- * @param $post_id (int)
63
- * @return $post_id (int)
64
- */
65
-
66
- function initialize() {
67
-
68
- // vars
69
- $version = $this->version;
70
- $basename = plugin_basename( __FILE__ );
71
- $path = plugin_dir_path( __FILE__ );
72
- $url = plugin_dir_url( __FILE__ );
73
- $slug = dirname($basename);
74
-
75
-
76
- // settings
77
- $this->settings = array(
78
-
79
- // basic
80
- 'name' => __('Advanced Custom Fields', 'acf'),
81
- 'version' => $version,
82
-
83
- // urls
84
- 'file' => __FILE__,
85
- 'basename' => $basename,
86
- 'path' => $path,
87
- 'url' => $url,
88
- 'slug' => $slug,
89
-
90
- // options
91
- 'show_admin' => true,
92
- 'show_updates' => true,
93
- 'stripslashes' => false,
94
- 'local' => true,
95
- 'json' => true,
96
- 'save_json' => '',
97
- 'load_json' => array(),
98
- 'default_language' => '',
99
- 'current_language' => '',
100
- 'capability' => 'manage_options',
101
- 'uploader' => 'wp',
102
- 'autoload' => false,
103
- 'l10n' => true,
104
- 'l10n_textdomain' => '',
105
- 'google_api_key' => '',
106
- 'google_api_client' => '',
107
- 'enqueue_google_maps' => true,
108
- 'enqueue_select2' => true,
109
- 'enqueue_datepicker' => true,
110
- 'enqueue_datetimepicker' => true,
111
- 'select2_version' => 4,
112
- 'row_index_offset' => 1,
113
- 'remove_wp_meta_box' => true
114
- );
115
-
116
-
117
- // constants
118
- $this->define( 'ACF', true );
119
- $this->define( 'ACF_VERSION', $version );
120
- $this->define( 'ACF_PATH', $path );
121
- //$this->define( 'ACF_DEV', true );
122
-
123
-
124
- // api
125
- include_once( ACF_PATH . 'includes/api/api-helpers.php');
126
- acf_include('includes/api/api-input.php');
127
- acf_include('includes/api/api-value.php');
128
- acf_include('includes/api/api-field.php');
129
- acf_include('includes/api/api-field-group.php');
130
- acf_include('includes/api/api-template.php');
131
- acf_include('includes/api/api-term.php');
132
-
133
- // fields
134
- acf_include('includes/fields.php');
135
- acf_include('includes/fields/class-acf-field.php');
136
-
137
-
138
- // locations
139
- acf_include('includes/locations.php');
140
- acf_include('includes/locations/class-acf-location.php');
141
-
142
-
143
- // core
144
- acf_include('includes/assets.php');
145
- acf_include('includes/cache.php');
146
- acf_include('includes/compatibility.php');
147
- acf_include('includes/deprecated.php');
148
- acf_include('includes/form.php');
149
- acf_include('includes/json.php');
150
- acf_include('includes/local.php');
151
- acf_include('includes/loop.php');
152
- acf_include('includes/media.php');
153
- acf_include('includes/revisions.php');
154
- acf_include('includes/updates.php');
155
- acf_include('includes/upgrades.php');
156
- acf_include('includes/validation.php');
157
-
158
- // ajax
159
- acf_include('includes/ajax/class-acf-ajax.php');
160
- acf_include('includes/ajax/class-acf-ajax-check-screen.php');
161
- acf_include('includes/ajax/class-acf-ajax-user-setting.php');
162
- acf_include('includes/ajax/class-acf-ajax-upgrade.php');
163
- acf_include('includes/ajax/class-acf-ajax-query.php');
164
- acf_include('includes/ajax/class-acf-ajax-query-terms.php');
165
-
166
- // forms
167
- acf_include('includes/forms/form-attachment.php');
168
- acf_include('includes/forms/form-comment.php');
169
- acf_include('includes/forms/form-customizer.php');
170
- acf_include('includes/forms/form-front.php');
171
- acf_include('includes/forms/form-nav-menu.php');
172
- acf_include('includes/forms/form-post.php');
173
- acf_include('includes/forms/form-gutenberg.php');
174
- acf_include('includes/forms/form-taxonomy.php');
175
- acf_include('includes/forms/form-user.php');
176
- acf_include('includes/forms/form-widget.php');
177
-
178
-
179
- // admin
180
- if( is_admin() ) {
181
- acf_include('includes/admin/admin.php');
182
- acf_include('includes/admin/admin-field-group.php');
183
- acf_include('includes/admin/admin-field-groups.php');
184
- acf_include('includes/admin/admin-tools.php');
185
- acf_include('includes/admin/admin-upgrade.php');
186
- acf_include('includes/admin/settings-info.php');
187
- }
188
-
189
-
190
- // pro
191
- acf_include('pro/acf-pro.php');
192
-
193
-
194
- // actions
195
- add_action('init', array($this, 'init'), 5);
196
- add_action('init', array($this, 'register_post_types'), 5);
197
- add_action('init', array($this, 'register_post_status'), 5);
198
-
199
-
200
- // filters
201
- add_filter('posts_where', array($this, 'posts_where'), 10, 2 );
202
- //add_filter('posts_request', array($this, 'posts_request'), 10, 1 );
203
- }
204
-
205
-
206
- /*
207
- * init
208
- *
209
- * This function will run after all plugins and theme functions have been included
210
- *
211
- * @type action (init)
212
- * @date 28/09/13
213
- * @since 5.0.0
214
- *
215
- * @param N/A
216
- * @return N/A
217
- */
218
-
219
- function init() {
220
-
221
- // bail early if too early
222
- // ensures all plugins have a chance to add fields, etc
223
- if( !did_action('plugins_loaded') ) return;
224
-
225
-
226
- // bail early if already init
227
- if( acf_has_done('init') ) return;
228
-
229
-
230
- // vars
231
- $major = intval( acf_get_setting('version') );
232
-
233
-
234
- // update url
235
- // - allow another plugin to modify dir (maybe force SSL)
236
- acf_update_setting('url', plugin_dir_url( __FILE__ ));
237
-
238
-
239
- // textdomain
240
- $this->load_plugin_textdomain();
241
-
242
- // include 3rd party support
243
- acf_include('includes/third-party.php');
244
-
245
- // include wpml support
246
- if( defined('ICL_SITEPRESS_VERSION') ) {
247
- acf_include('includes/wpml.php');
248
- }
249
-
250
- // include gutenberg
251
- if( defined('GUTENBERG_VERSION') ) {
252
- acf_include('includes/forms/form-gutenberg.php');
253
- }
254
-
255
- // fields
256
- acf_include('includes/fields/class-acf-field-text.php');
257
- acf_include('includes/fields/class-acf-field-textarea.php');
258
- acf_include('includes/fields/class-acf-field-number.php');
259
- acf_include('includes/fields/class-acf-field-range.php');
260
- acf_include('includes/fields/class-acf-field-email.php');
261
- acf_include('includes/fields/class-acf-field-url.php');
262
- acf_include('includes/fields/class-acf-field-password.php');
263
-
264
- acf_include('includes/fields/class-acf-field-image.php');
265
- acf_include('includes/fields/class-acf-field-file.php');
266
- acf_include('includes/fields/class-acf-field-wysiwyg.php');
267
- acf_include('includes/fields/class-acf-field-oembed.php');
268
-
269
- acf_include('includes/fields/class-acf-field-select.php');
270
- acf_include('includes/fields/class-acf-field-checkbox.php');
271
- acf_include('includes/fields/class-acf-field-radio.php');
272
- acf_include('includes/fields/class-acf-field-button-group.php');
273
- acf_include('includes/fields/class-acf-field-true_false.php');
274
-
275
- acf_include('includes/fields/class-acf-field-link.php');
276
- acf_include('includes/fields/class-acf-field-post_object.php');
277
- acf_include('includes/fields/class-acf-field-page_link.php');
278
- acf_include('includes/fields/class-acf-field-relationship.php');
279
- acf_include('includes/fields/class-acf-field-taxonomy.php');
280
- acf_include('includes/fields/class-acf-field-user.php');
281
-
282
- acf_include('includes/fields/class-acf-field-google-map.php');
283
- acf_include('includes/fields/class-acf-field-date_picker.php');
284
- acf_include('includes/fields/class-acf-field-date_time_picker.php');
285
- acf_include('includes/fields/class-acf-field-time_picker.php');
286
- acf_include('includes/fields/class-acf-field-color_picker.php');
287
-
288
- acf_include('includes/fields/class-acf-field-message.php');
289
- acf_include('includes/fields/class-acf-field-accordion.php');
290
- acf_include('includes/fields/class-acf-field-tab.php');
291
- acf_include('includes/fields/class-acf-field-group.php');
292
- do_action('acf/include_field_types', $major);
293
-
294
-
295
- // locations
296
- acf_include('includes/locations/class-acf-location-post-type.php');
297
- acf_include('includes/locations/class-acf-location-post-template.php');
298
- acf_include('includes/locations/class-acf-location-post-status.php');
299
- acf_include('includes/locations/class-acf-location-post-format.php');
300
- acf_include('includes/locations/class-acf-location-post-category.php');
301
- acf_include('includes/locations/class-acf-location-post-taxonomy.php');
302
- acf_include('includes/locations/class-acf-location-post.php');
303
- acf_include('includes/locations/class-acf-location-page-template.php');
304
- acf_include('includes/locations/class-acf-location-page-type.php');
305
- acf_include('includes/locations/class-acf-location-page-parent.php');
306
- acf_include('includes/locations/class-acf-location-page.php');
307
- acf_include('includes/locations/class-acf-location-current-user.php');
308
- acf_include('includes/locations/class-acf-location-current-user-role.php');
309
- acf_include('includes/locations/class-acf-location-user-form.php');
310
- acf_include('includes/locations/class-acf-location-user-role.php');
311
- acf_include('includes/locations/class-acf-location-taxonomy.php');
312
- acf_include('includes/locations/class-acf-location-attachment.php');
313
- acf_include('includes/locations/class-acf-location-comment.php');
314
- acf_include('includes/locations/class-acf-location-widget.php');
315
- acf_include('includes/locations/class-acf-location-nav-menu.php');
316
- acf_include('includes/locations/class-acf-location-nav-menu-item.php');
317
- do_action('acf/include_location_rules', $major);
318
-
319
-
320
- // local fields
321
- do_action('acf/include_fields', $major);
322
-
323
-
324
- // action for 3rd party
325
- do_action('acf/init');
326
-
327
- }
328
-
329
-
330
- /*
331
- * load_plugin_textdomain
332
- *
333
- * This function will load the textdomain file
334
- *
335
- * @type function
336
- * @date 3/5/17
337
- * @since 5.5.13
338
- *
339
- * @param n/a
340
- * @return n/a
341
- */
342
-
343
- function load_plugin_textdomain() {
344
-
345
- // vars
346
- $domain = 'acf';
347
- $locale = apply_filters( 'plugin_locale', acf_get_locale(), $domain );
348
- $mofile = $domain . '-' . $locale . '.mo';
349
-
350
-
351
- // load from the languages directory first
352
- load_textdomain( $domain, WP_LANG_DIR . '/plugins/' . $mofile );
353
-
354
-
355
- // redirect missing translations
356
- $mofile = str_replace('fr_CA', 'fr_FR', $mofile);
357
-
358
-
359
- // load from plugin lang folder
360
- load_textdomain( $domain, acf_get_path( 'lang/' . $mofile ) );
361
-
362
- }
363
-
364
-
365
- /*
366
- * register_post_types
367
- *
368
- * This function will register post types and statuses
369
- *
370
- * @type function
371
- * @date 22/10/2015
372
- * @since 5.3.2
373
- *
374
- * @param n/a
375
- * @return n/a
376
- */
377
-
378
- function register_post_types() {
379
-
380
- // vars
381
- $cap = acf_get_setting('capability');
382
-
383
-
384
- // register post type 'acf-field-group'
385
- register_post_type('acf-field-group', array(
386
- 'labels' => array(
387
- 'name' => __( 'Field Groups', 'acf' ),
388
- 'singular_name' => __( 'Field Group', 'acf' ),
389
- 'add_new' => __( 'Add New' , 'acf' ),
390
- 'add_new_item' => __( 'Add New Field Group' , 'acf' ),
391
- 'edit_item' => __( 'Edit Field Group' , 'acf' ),
392
- 'new_item' => __( 'New Field Group' , 'acf' ),
393
- 'view_item' => __( 'View Field Group', 'acf' ),
394
- 'search_items' => __( 'Search Field Groups', 'acf' ),
395
- 'not_found' => __( 'No Field Groups found', 'acf' ),
396
- 'not_found_in_trash' => __( 'No Field Groups found in Trash', 'acf' ),
397
- ),
398
- 'public' => false,
399
- 'show_ui' => true,
400
- '_builtin' => false,
401
- 'capability_type' => 'post',
402
- 'capabilities' => array(
403
- 'edit_post' => $cap,
404
- 'delete_post' => $cap,
405
- 'edit_posts' => $cap,
406
- 'delete_posts' => $cap,
407
- ),
408
- 'hierarchical' => true,
409
- 'rewrite' => false,
410
- 'query_var' => false,
411
- 'supports' => array('title'),
412
- 'show_in_menu' => false,
413
- ));
414
-
415
-
416
- // register post type 'acf-field'
417
- register_post_type('acf-field', array(
418
- 'labels' => array(
419
- 'name' => __( 'Fields', 'acf' ),
420
- 'singular_name' => __( 'Field', 'acf' ),
421
- 'add_new' => __( 'Add New' , 'acf' ),
422
- 'add_new_item' => __( 'Add New Field' , 'acf' ),
423
- 'edit_item' => __( 'Edit Field' , 'acf' ),
424
- 'new_item' => __( 'New Field' , 'acf' ),
425
- 'view_item' => __( 'View Field', 'acf' ),
426
- 'search_items' => __( 'Search Fields', 'acf' ),
427
- 'not_found' => __( 'No Fields found', 'acf' ),
428
- 'not_found_in_trash' => __( 'No Fields found in Trash', 'acf' ),
429
- ),
430
- 'public' => false,
431
- 'show_ui' => false,
432
- '_builtin' => false,
433
- 'capability_type' => 'post',
434
- 'capabilities' => array(
435
- 'edit_post' => $cap,
436
- 'delete_post' => $cap,
437
- 'edit_posts' => $cap,
438
- 'delete_posts' => $cap,
439
- ),
440
- 'hierarchical' => true,
441
- 'rewrite' => false,
442
- 'query_var' => false,
443
- 'supports' => array('title'),
444
- 'show_in_menu' => false,
445
- ));
446
-
447
- }
448
-
449
-
450
- /*
451
- * register_post_status
452
- *
453
- * This function will register custom post statuses
454
- *
455
- * @type function
456
- * @date 22/10/2015
457
- * @since 5.3.2
458
- *
459
- * @param $post_id (int)
460
- * @return $post_id (int)
461
- */
462
-
463
- function register_post_status() {
464
-
465
- // acf-disabled
466
- register_post_status('acf-disabled', array(
467
- 'label' => __( 'Inactive', 'acf' ),
468
- 'public' => true,
469
- 'exclude_from_search' => false,
470
- 'show_in_admin_all_list' => true,
471
- 'show_in_admin_status_list' => true,
472
- 'label_count' => _n_noop( 'Inactive <span class="count">(%s)</span>', 'Inactive <span class="count">(%s)</span>', 'acf' ),
473
- ));
474
-
475
- }
476
-
477
-
478
- /*
479
- * posts_where
480
- *
481
- * This function will add in some new parameters to the WP_Query args allowing fields to be found via key / name
482
- *
483
- * @type filter
484
- * @date 5/12/2013
485
- * @since 5.0.0
486
- *
487
- * @param $where (string)
488
- * @param $wp_query (object)
489
- * @return $where (string)
490
- */
491
-
492
- function posts_where( $where, $wp_query ) {
493
-
494
- // global
495
- global $wpdb;
496
-
497
-
498
- // acf_field_key
499
- if( $field_key = $wp_query->get('acf_field_key') ) {
500
- $where .= $wpdb->prepare(" AND {$wpdb->posts}.post_name = %s", $field_key );
501
- }
502
-
503
- // acf_field_name
504
- if( $field_name = $wp_query->get('acf_field_name') ) {
505
- $where .= $wpdb->prepare(" AND {$wpdb->posts}.post_excerpt = %s", $field_name );
506
- }
507
-
508
- // acf_group_key
509
- if( $group_key = $wp_query->get('acf_group_key') ) {
510
- $where .= $wpdb->prepare(" AND {$wpdb->posts}.post_name = %s", $group_key );
511
- }
512
-
513
-
514
- // return
515
- return $where;
516
-
517
- }
518
-
519
-
520
- /*
521
- * define
522
- *
523
- * This function will safely define a constant
524
- *
525
- * @type function
526
- * @date 3/5/17
527
- * @since 5.5.13
528
- *
529
- * @param $name (string)
530
- * @param $value (mixed)
531
- * @return n/a
532
- */
533
-
534
- function define( $name, $value = true ) {
535
-
536
- if( !defined($name) ) {
537
- define( $name, $value );
538
- }
539
-
540
- }
541
-
542
- /**
543
- * has_setting
544
- *
545
- * Returns true if has setting.
546
- *
547
- * @date 2/2/18
548
- * @since 5.6.5
549
- *
550
- * @param string $name
551
- * @return boolean
552
- */
553
-
554
- function has_setting( $name ) {
555
- return isset($this->settings[ $name ]);
556
- }
557
-
558
- /**
559
- * get_setting
560
- *
561
- * Returns a setting.
562
- *
563
- * @date 28/09/13
564
- * @since 5.0.0
565
- *
566
- * @param string $name
567
- * @return mixed
568
- */
569
-
570
- function get_setting( $name ) {
571
- return isset($this->settings[ $name ]) ? $this->settings[ $name ] : null;
572
- }
573
-
574
- /**
575
- * update_setting
576
- *
577
- * Updates a setting.
578
- *
579
- * @date 28/09/13
580
- * @since 5.0.0
581
- *
582
- * @param string $name
583
- * @param mixed $value
584
- * @return n/a
585
- */
586
-
587
- function update_setting( $name, $value ) {
588
- $this->settings[ $name ] = $value;
589
- return true;
590
- }
591
-
592
- /**
593
- * get_data
594
- *
595
- * Returns data.
596
- *
597
- * @date 28/09/13
598
- * @since 5.0.0
599
- *
600
- * @param string $name
601
- * @return mixed
602
- */
603
-
604
- function get_data( $name ) {
605
- return isset($this->data[ $name ]) ? $this->data[ $name ] : null;
606
- }
607
-
608
-
609
- /**
610
- * set_data
611
- *
612
- * Sets data.
613
- *
614
- * @date 28/09/13
615
- * @since 5.0.0
616
- *
617
- * @param string $name
618
- * @param mixed $value
619
- * @return n/a
620
- */
621
-
622
- function set_data( $name, $value ) {
623
- $this->data[ $name ] = $value;
624
- }
625
-
626
-
627
- /**
628
- * get_instance
629
- *
630
- * Returns an instance.
631
- *
632
- * @date 13/2/18
633
- * @since 5.6.9
634
- *
635
- * @param string $class The instance class name.
636
- * @return object
637
- */
638
-
639
- function get_instance( $class ) {
640
- $name = strtolower($class);
641
- return isset($this->instances[ $name ]) ? $this->instances[ $name ] : null;
642
- }
643
-
644
- /**
645
- * new_instance
646
- *
647
- * Creates and stores an instance.
648
- *
649
- * @date 13/2/18
650
- * @since 5.6.9
651
- *
652
- * @param string $class The instance class name.
653
- * @return object
654
- */
655
-
656
- function new_instance( $class ) {
657
- $instance = new $class();
658
- $name = strtolower($class);
659
- $this->instances[ $name ] = $instance;
660
- return $instance;
661
- }
662
-
663
- }
664
-
665
-
666
- /*
667
- * acf
668
- *
669
- * The main function responsible for returning the one true acf Instance to functions everywhere.
670
- * Use this function like you would a global variable, except without needing to declare the global.
671
- *
672
- * Example: <?php $acf = acf(); ?>
673
- *
674
- * @type function
675
- * @date 4/09/13
676
- * @since 4.3.0
677
- *
678
- * @param N/A
679
- * @return (object)
680
- */
681
-
682
- function acf() {
683
-
684
- // globals
685
- global $acf;
686
-
687
-
688
- // initialize
689
- if( !isset($acf) ) {
690
- $acf = new ACF();
691
- $acf->initialize();
692
- }
693
-
694
-
695
- // return
696
- return $acf;
697
-
698
- }
699
-
700
-
701
- // initialize
702
- acf();
703
-
704
-
705
- endif; // class_exists check
706
-
707
- ?>
1
+ <?php
2
+ /*
3
+ Plugin Name: Advanced Custom Fields
4
+ Plugin URI: https://www.advancedcustomfields.com/
5
+ Description: Customize WordPress with powerful, professional and intuitive fields.
6
+ Version: 5.7.9
7
+ Author: Elliot Condon
8
+ Author URI: http://www.elliotcondon.com/
9
+ Copyright: Elliot Condon
10
+ Text Domain: acf
11
+ Domain Path: /lang
12
+ */
13
+
14
+ if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
15
+
16
+ if( ! class_exists('ACF') ) :
17
+
18
+ class ACF {
19
+
20
+ /** @var string The plugin version number */
21
+ var $version = '5.7.9';
22
+
23
+ /** @var array The plugin settings array */
24
+ var $settings = array();
25
+
26
+ /** @var array The plugin data array */
27
+ var $data = array();
28
+
29
+ /** @var array Storage for class instances */
30
+ var $instances = array();
31
+
32
+
33
+ /*
34
+ * __construct
35
+ *
36
+ * A dummy constructor to ensure ACF is only initialized once
37
+ *
38
+ * @type function
39
+ * @date 23/06/12
40
+ * @since 5.0.0
41
+ *
42
+ * @param N/A
43
+ * @return N/A
44
+ */
45
+
46
+ function __construct() {
47
+
48
+ /* Do nothing here */
49
+
50
+ }
51
+
52
+
53
+ /*
54
+ * initialize
55
+ *
56
+ * The real constructor to initialize ACF
57
+ *
58
+ * @type function
59
+ * @date 28/09/13
60
+ * @since 5.0.0
61
+ *
62
+ * @param $post_id (int)
63
+ * @return $post_id (int)
64
+ */
65
+
66
+ function initialize() {
67
+
68
+ // vars
69
+ $version = $this->version;
70
+ $basename = plugin_basename( __FILE__ );
71
+ $path = plugin_dir_path( __FILE__ );
72
+ $url = plugin_dir_url( __FILE__ );
73
+ $slug = dirname($basename);
74
+
75
+
76
+ // settings
77
+ $this->settings = array(
78
+
79
+ // basic
80
+ 'name' => __('Advanced Custom Fields', 'acf'),
81
+ 'version' => $version,
82
+
83
+ // urls
84
+ 'file' => __FILE__,
85
+ 'basename' => $basename,
86
+ 'path' => $path,
87
+ 'url' => $url,
88
+ 'slug' => $slug,
89
+
90
+ // options
91
+ 'show_admin' => true,
92
+ 'show_updates' => true,
93
+ 'stripslashes' => false,
94
+ 'local' => true,
95
+ 'json' => true,
96
+ 'save_json' => '',
97
+ 'load_json' => array(),
98
+ 'default_language' => '',
99
+ 'current_language' => '',
100
+ 'capability' => 'manage_options',
101
+ 'uploader' => 'wp',
102
+ 'autoload' => false,
103
+ 'l10n' => true,
104
+ 'l10n_textdomain' => '',
105
+ 'google_api_key' => '',
106
+ 'google_api_client' => '',
107
+ 'enqueue_google_maps' => true,
108
+ 'enqueue_select2' => true,
109
+ 'enqueue_datepicker' => true,
110
+ 'enqueue_datetimepicker' => true,
111
+ 'select2_version' => 4,
112
+ 'row_index_offset' => 1,
113
+ 'remove_wp_meta_box' => true
114
+ );
115
+
116
+
117
+ // constants
118
+ $this->define( 'ACF', true );
119
+ $this->define( 'ACF_VERSION', $version );
120
+ $this->define( 'ACF_PATH', $path );
121
+ //$this->define( 'ACF_DEV', true );
122
+
123
+
124
+ // api
125
+ include_once( ACF_PATH . 'includes/api/api-helpers.php');
126
+ acf_include('includes/api/api-input.php');
127
+ acf_include('includes/api/api-value.php');
128
+ acf_include('includes/api/api-field.php');
129
+ acf_include('includes/api/api-field-group.php');
130
+ acf_include('includes/api/api-template.php');
131
+ acf_include('includes/api/api-term.php');
132
+
133
+ // fields
134
+ acf_include('includes/fields.php');
135
+ acf_include('includes/fields/class-acf-field.php');
136
+
137
+
138
+ // locations
139
+ acf_include('includes/locations.php');
140
+ acf_include('includes/locations/class-acf-location.php');
141
+
142
+
143
+ // core
144
+ acf_include('includes/assets.php');
145
+ acf_include('includes/cache.php');
146
+ acf_include('includes/compatibility.php');
147
+ acf_include('includes/deprecated.php');
148
+ acf_include('includes/form.php');
149
+ acf_include('includes/json.php');
150
+ acf_include('includes/local.php');
151
+ acf_include('includes/loop.php');
152
+ acf_include('includes/media.php');
153
+ acf_include('includes/revisions.php');
154
+ acf_include('includes/updates.php');
155
+ acf_include('includes/upgrades.php');
156
+ acf_include('includes/validation.php');
157
+
158
+ // ajax
159
+ acf_include('includes/ajax/class-acf-ajax.php');
160
+ acf_include('includes/ajax/class-acf-ajax-check-screen.php');
161
+ acf_include('includes/ajax/class-acf-ajax-user-setting.php');
162
+ acf_include('includes/ajax/class-acf-ajax-upgrade.php');
163
+ acf_include('includes/ajax/class-acf-ajax-query.php');
164
+ acf_include('includes/ajax/class-acf-ajax-query-terms.php');
165
+
166
+ // forms
167
+ acf_include('includes/forms/form-attachment.php');
168
+ acf_include('includes/forms/form-comment.php');
169
+ acf_include('includes/forms/form-customizer.php');
170
+ acf_include('includes/forms/form-front.php');
171
+ acf_include('includes/forms/form-nav-menu.php');
172
+ acf_include('includes/forms/form-post.php');
173
+ acf_include('includes/forms/form-gutenberg.php');
174
+ acf_include('includes/forms/form-taxonomy.php');
175
+ acf_include('includes/forms/form-user.php');
176
+ acf_include('includes/forms/form-widget.php');
177
+
178
+
179
+ // admin
180
+ if( is_admin() ) {
181
+ acf_include('includes/admin/admin.php');
182
+ acf_include('includes/admin/admin-field-group.php');
183
+ acf_include('includes/admin/admin-field-groups.php');
184
+ acf_include('includes/admin/admin-tools.php');
185
+ acf_include('includes/admin/admin-upgrade.php');
186
+ acf_include('includes/admin/settings-info.php');
187
+ }
188
+
189
+
190
+ // pro
191
+ acf_include('pro/acf-pro.php');
192
+
193
+
194
+ // actions
195
+ add_action('init', array($this, 'init'), 5);
196
+ add_action('init', array($this, 'register_post_types'), 5);
197
+ add_action('init', array($this, 'register_post_status'), 5);
198
+
199
+
200
+ // filters
201
+ add_filter('posts_where', array($this, 'posts_where'), 10, 2 );
202
+ //add_filter('posts_request', array($this, 'posts_request'), 10, 1 );
203
+ }
204
+
205
+
206
+ /*
207
+ * init
208
+ *
209
+ * This function will run after all plugins and theme functions have been included
210
+ *
211
+ * @type action (init)
212
+ * @date 28/09/13
213
+ * @since 5.0.0
214
+ *
215
+ * @param N/A
216
+ * @return N/A
217
+ */
218
+
219
+ function init() {
220
+
221
+ // bail early if too early
222
+ // ensures all plugins have a chance to add fields, etc
223
+ if( !did_action('plugins_loaded') ) return;
224
+
225
+
226
+ // bail early if already init
227
+ if( acf_has_done('init') ) return;
228
+
229
+
230
+ // vars
231
+ $major = intval( acf_get_setting('version') );
232
+
233
+
234
+ // update url
235
+ // - allow another plugin to modify dir (maybe force SSL)
236
+ acf_update_setting('url', plugin_dir_url( __FILE__ ));
237
+
238
+
239
+ // textdomain
240
+ $this->load_plugin_textdomain();
241
+
242
+ // include 3rd party support
243
+ acf_include('includes/third-party.php');
244
+
245
+ // include wpml support
246
+ if( defined('ICL_SITEPRESS_VERSION') ) {
247
+ acf_include('includes/wpml.php');
248
+ }
249
+
250
+ // include gutenberg
251
+ if( defined('GUTENBERG_VERSION') ) {
252
+ acf_include('includes/forms/form-gutenberg.php');
253
+ }
254
+
255
+ // fields
256
+ acf_include('includes/fields/class-acf-field-text.php');
257
+ acf_include('includes/fields/class-acf-field-textarea.php');
258
+ acf_include('includes/fields/class-acf-field-number.php');
259
+ acf_include('includes/fields/class-acf-field-range.php');
260
+ acf_include('includes/fields/class-acf-field-email.php');
261
+ acf_include('includes/fields/class-acf-field-url.php');
262
+ acf_include('includes/fields/class-acf-field-password.php');
263
+
264
+ acf_include('includes/fields/class-acf-field-image.php');
265
+ acf_include('includes/fields/class-acf-field-file.php');
266
+ acf_include('includes/fields/class-acf-field-wysiwyg.php');
267
+ acf_include('includes/fields/class-acf-field-oembed.php');
268
+
269
+ acf_include('includes/fields/class-acf-field-select.php');
270
+ acf_include('includes/fields/class-acf-field-checkbox.php');
271
+ acf_include('includes/fields/class-acf-field-radio.php');
272
+ acf_include('includes/fields/class-acf-field-button-group.php');
273
+ acf_include('includes/fields/class-acf-field-true_false.php');
274
+
275
+ acf_include('includes/fields/class-acf-field-link.php');
276
+ acf_include('includes/fields/class-acf-field-post_object.php');
277
+ acf_include('includes/fields/class-acf-field-page_link.php');
278
+ acf_include('includes/fields/class-acf-field-relationship.php');
279
+ acf_include('includes/fields/class-acf-field-taxonomy.php');
280
+ acf_include('includes/fields/class-acf-field-user.php');
281
+
282
+ acf_include('includes/fields/class-acf-field-google-map.php');
283
+ acf_include('includes/fields/class-acf-field-date_picker.php');
284
+ acf_include('includes/fields/class-acf-field-date_time_picker.php');
285
+ acf_include('includes/fields/class-acf-field-time_picker.php');
286
+ acf_include('includes/fields/class-acf-field-color_picker.php');
287
+
288
+ acf_include('includes/fields/class-acf-field-message.php');
289
+ acf_include('includes/fields/class-acf-field-accordion.php');
290
+ acf_include('includes/fields/class-acf-field-tab.php');
291
+ acf_include('includes/fields/class-acf-field-group.php');
292
+ do_action('acf/include_field_types', $major);
293
+
294
+
295
+ // locations
296
+ acf_include('includes/locations/class-acf-location-post-type.php');
297
+ acf_include('includes/locations/class-acf-location-post-template.php');
298
+ acf_include('includes/locations/class-acf-location-post-status.php');
299
+ acf_include('includes/locations/class-acf-location-post-format.php');
300
+ acf_include('includes/locations/class-acf-location-post-category.php');
301
+ acf_include('includes/locations/class-acf-location-post-taxonomy.php');
302
+ acf_include('includes/locations/class-acf-location-post.php');
303
+ acf_include('includes/locations/class-acf-location-page-template.php');
304
+ acf_include('includes/locations/class-acf-location-page-type.php');
305
+ acf_include('includes/locations/class-acf-location-page-parent.php');
306
+ acf_include('includes/locations/class-acf-location-page.php');
307
+ acf_include('includes/locations/class-acf-location-current-user.php');
308
+ acf_include('includes/locations/class-acf-location-current-user-role.php');
309
+ acf_include('includes/locations/class-acf-location-user-form.php');
310
+ acf_include('includes/locations/class-acf-location-user-role.php');
311
+ acf_include('includes/locations/class-acf-location-taxonomy.php');
312
+ acf_include('includes/locations/class-acf-location-attachment.php');
313
+ acf_include('includes/locations/class-acf-location-comment.php');
314
+ acf_include('includes/locations/class-acf-location-widget.php');
315
+ acf_include('includes/locations/class-acf-location-nav-menu.php');
316
+ acf_include('includes/locations/class-acf-location-nav-menu-item.php');
317
+ do_action('acf/include_location_rules', $major);
318
+
319
+
320
+ // local fields
321
+ do_action('acf/include_fields', $major);
322
+
323
+
324
+ // action for 3rd party
325
+ do_action('acf/init');
326
+
327
+ }
328
+
329
+
330
+ /*
331
+ * load_plugin_textdomain
332
+ *
333
+ * This function will load the textdomain file
334
+ *
335
+ * @type function
336
+ * @date 3/5/17
337
+ * @since 5.5.13
338
+ *
339
+ * @param n/a
340
+ * @return n/a
341
+ */
342
+
343
+ function load_plugin_textdomain() {
344
+
345
+ // vars
346
+ $domain = 'acf';
347
+ $locale = apply_filters( 'plugin_locale', acf_get_locale(), $domain );
348
+ $mofile = $domain . '-' . $locale . '.mo';
349
+
350
+
351
+ // load from the languages directory first
352
+ load_textdomain( $domain, WP_LANG_DIR . '/plugins/' . $mofile );
353
+
354
+
355
+ // redirect missing translations
356
+ $mofile = str_replace('fr_CA', 'fr_FR', $mofile);
357
+
358
+
359
+ // load from plugin lang folder
360
+ load_textdomain( $domain, acf_get_path( 'lang/' . $mofile ) );
361
+
362
+ }
363
+
364
+
365
+ /*
366
+ * register_post_types
367
+ *
368
+ * This function will register post types and statuses
369
+ *
370
+ * @type function
371
+ * @date 22/10/2015
372
+ * @since 5.3.2
373
+ *
374
+ * @param n/a
375
+ * @return n/a
376
+ */
377
+
378
+ function register_post_types() {
379
+
380
+ // vars
381
+ $cap = acf_get_setting('capability');
382
+
383
+
384
+ // register post type 'acf-field-group'
385
+ register_post_type('acf-field-group', array(
386
+ 'labels' => array(
387
+ 'name' => __( 'Field Groups', 'acf' ),
388
+ 'singular_name' => __( 'Field Group', 'acf' ),
389
+ 'add_new' => __( 'Add New' , 'acf' ),
390
+ 'add_new_item' => __( 'Add New Field Group' , 'acf' ),
391
+ 'edit_item' => __( 'Edit Field Group' , 'acf' ),
392
+ 'new_item' => __( 'New Field Group' , 'acf' ),
393
+ 'view_item' => __( 'View Field Group', 'acf' ),
394
+ 'search_items' => __( 'Search Field Groups', 'acf' ),
395
+ 'not_found' => __( 'No Field Groups found', 'acf' ),
396
+ 'not_found_in_trash' => __( 'No Field Groups found in Trash', 'acf' ),
397
+ ),
398
+ 'public' => false,
399
+ 'show_ui' => true,
400
+ '_builtin' => false,
401
+ 'capability_type' => 'post',
402
+ 'capabilities' => array(
403
+ 'edit_post' => $cap,
404
+ 'delete_post' => $cap,
405
+ 'edit_posts' => $cap,
406
+ 'delete_posts' => $cap,
407
+ ),
408
+ 'hierarchical' => true,
409
+ 'rewrite' => false,
410
+ 'query_var' => false,
411
+ 'supports' => array('title'),
412
+ 'show_in_menu' => false,
413
+ ));
414
+
415
+
416
+ // register post type 'acf-field'
417
+ register_post_type('acf-field', array(
418
+ 'labels' => array(
419
+ 'name' => __( 'Fields', 'acf' ),
420
+ 'singular_name' => __( 'Field', 'acf' ),
421
+ 'add_new' => __( 'Add New' , 'acf' ),
422
+ 'add_new_item' => __( 'Add New Field' , 'acf' ),
423
+ 'edit_item' => __( 'Edit Field' , 'acf' ),
424
+ 'new_item' => __( 'New Field' , 'acf' ),
425
+ 'view_item' => __( 'View Field', 'acf' ),
426
+ 'search_items' => __( 'Search Fields', 'acf' ),
427
+ 'not_found' => __( 'No Fields found', 'acf' ),
428
+ 'not_found_in_trash' => __( 'No Fields found in Trash', 'acf' ),
429
+ ),
430
+ 'public' => false,
431
+ 'show_ui' => false,
432
+ '_builtin' => false,
433
+ 'capability_type' => 'post',
434
+ 'capabilities' => array(
435
+ 'edit_post' => $cap,
436
+ 'delete_post' => $cap,
437
+ 'edit_posts' => $cap,
438
+ 'delete_posts' => $cap,
439
+ ),
440
+ 'hierarchical' => true,
441
+ 'rewrite' => false,
442
+ 'query_var' => false,
443
+ 'supports' => array('title'),
444
+ 'show_in_menu' => false,
445
+ ));
446
+
447
+ }
448
+
449
+
450
+ /*
451
+ * register_post_status
452
+ *
453
+ * This function will register custom post statuses
454
+ *
455
+ * @type function
456
+ * @date 22/10/2015
457
+ * @since 5.3.2
458
+ *
459
+ * @param $post_id (int)
460
+ * @return $post_id (int)
461
+ */
462
+
463
+ function register_post_status() {
464
+
465
+ // acf-disabled
466
+ register_post_status('acf-disabled', array(
467
+ 'label' => __( 'Inactive', 'acf' ),
468
+ 'public' => true,
469
+ 'exclude_from_search' => false,
470
+ 'show_in_admin_all_list' => true,
471
+ 'show_in_admin_status_list' => true,
472
+ 'label_count' => _n_noop( 'Inactive <span class="count">(%s)</span>', 'Inactive <span class="count">(%s)</span>', 'acf' ),
473
+ ));
474
+
475
+ }
476
+
477
+
478
+ /*
479
+ * posts_where
480
+ *
481
+ * This function will add in some new parameters to the WP_Query args allowing fields to be found via key / name
482
+ *
483
+ * @type filter
484
+ * @date 5/12/2013
485
+ * @since 5.0.0
486
+ *
487
+ * @param $where (string)
488
+ * @param $wp_query (object)
489
+ * @return $where (string)
490
+ */
491
+
492
+ function posts_where( $where, $wp_query ) {
493
+
494
+ // global
495
+ global $wpdb;
496
+
497
+
498
+ // acf_field_key
499
+ if( $field_key = $wp_query->get('acf_field_key') ) {
500
+ $where .= $wpdb->prepare(" AND {$wpdb->posts}.post_name = %s", $field_key );
501
+ }
502
+
503
+ // acf_field_name
504
+ if( $field_name = $wp_query->get('acf_field_name') ) {
505
+ $where .= $wpdb->prepare(" AND {$wpdb->posts}.post_excerpt = %s", $field_name );
506
+ }
507
+
508
+ // acf_group_key
509
+ if( $group_key = $wp_query->get('acf_group_key') ) {
510
+ $where .= $wpdb->prepare(" AND {$wpdb->posts}.post_name = %s", $group_key );
511
+ }
512
+
513
+
514
+ // return
515
+ return $where;
516
+
517
+ }
518
+
519
+
520
+ /*
521
+ * define
522
+ *
523
+ * This function will safely define a constant
524
+ *
525
+ * @type function
526
+ * @date 3/5/17
527
+ * @since 5.5.13
528
+ *
529
+ * @param $name (string)
530
+ * @param $value (mixed)
531
+ * @return n/a
532
+ */
533
+
534
+ function define( $name, $value = true ) {
535
+
536
+ if( !defined($name) ) {
537
+ define( $name, $value );
538
+ }
539
+
540
+ }
541
+
542
+ /**
543
+ * has_setting
544
+ *
545
+ * Returns true if has setting.
546
+ *
547
+ * @date 2/2/18
548
+ * @since 5.6.5
549
+ *
550
+ * @param string $name
551
+ * @return boolean
552
+ */
553
+
554
+ function has_setting( $name ) {
555
+ return isset($this->settings[ $name ]);
556
+ }
557
+
558
+ /**
559
+ * get_setting
560
+ *
561
+ * Returns a setting.
562
+ *
563
+ * @date 28/09/13
564
+ * @since 5.0.0
565
+ *
566
+ * @param string $name
567
+ * @return mixed
568
+ */
569
+
570
+ function get_setting( $name ) {
571
+ return isset($this->settings[ $name ]) ? $this->settings[ $name ] : null;
572
+ }
573
+
574
+ /**
575
+ * update_setting
576
+ *
577
+ * Updates a setting.
578
+ *
579
+ * @date 28/09/13
580
+ * @since 5.0.0
581
+ *
582
+ * @param string $name
583
+ * @param mixed $value
584
+ * @return n/a
585
+ */
586
+
587
+ function update_setting( $name, $value ) {
588
+ $this->settings[ $name ] = $value;
589
+ return true;
590
+ }
591
+
592
+ /**
593
+ * get_data
594
+ *
595
+ * Returns data.
596
+ *
597
+ * @date 28/09/13
598
+ * @since 5.0.0
599
+ *
600
+ * @param string $name
601
+ * @return mixed
602
+ */
603
+
604
+ function get_data( $name ) {
605
+ return isset($this->data[ $name ]) ? $this->data[ $name ] : null;
606
+ }
607
+
608
+
609
+ /**
610
+ * set_data
611
+ *
612
+ * Sets data.
613
+ *
614
+ * @date 28/09/13
615
+ * @since 5.0.0
616
+ *
617
+ * @param string $name
618
+ * @param mixed $value
619
+ * @return n/a
620
+ */
621
+
622
+ function set_data( $name, $value ) {
623
+ $this->data[ $name ] = $value;
624
+ }
625
+
626
+
627
+ /**
628
+ * get_instance
629
+ *
630
+ * Returns an instance.
631
+ *
632
+ * @date 13/2/18
633
+ * @since 5.6.9
634
+ *
635
+ * @param string $class The instance class name.
636
+ * @return object
637
+ */
638
+
639
+ function get_instance( $class ) {
640
+ $name = strtolower($class);
641
+ return isset($this->instances[ $name ]) ? $this->instances[ $name ] : null;
642
+ }
643
+
644
+ /**
645
+ * new_instance
646
+ *
647
+ * Creates and stores an instance.
648
+ *
649
+ * @date 13/2/18
650
+ * @since 5.6.9
651
+ *
652
+ * @param string $class The instance class name.
653
+ * @return object
654
+ */
655
+
656
+ function new_instance( $class ) {
657
+ $instance = new $class();
658
+ $name = strtolower($class);
659
+ $this->instances[ $name ] = $instance;
660
+ return $instance;
661
+ }
662
+
663
+ }
664
+
665
+
666
+ /*
667
+ * acf
668
+ *
669
+ * The main function responsible for returning the one true acf Instance to functions everywhere.
670
+ * Use this function like you would a global variable, except without needing to declare the global.
671
+ *
672
+ * Example: <?php $acf = acf(); ?>
673
+ *
674
+ * @type function
675
+ * @date 4/09/13
676
+ * @since 4.3.0
677
+ *
678
+ * @param N/A
679
+ * @return (object)
680
+ */
681
+
682
+ function acf() {
683
+
684
+ // globals
685
+ global $acf;
686
+
687
+
688
+ // initialize
689
+ if( !isset($acf) ) {
690
+ $acf = new ACF();
691
+ $acf->initialize();
692
+ }
693
+
694
+
695
+ // return
696
+ return $acf;
697
+
698
+ }
699
+
700
+
701
+ // initialize
702
+ acf();
703
+
704
+
705
+ endif; // class_exists check
706
+
707
+ ?>
shared/assets/plugins/advanced-custom-fields/assets/css/acf-global.css CHANGED
@@ -1,1525 +1,1525 @@
1
- /*--------------------------------------------------------------------------------------------
2
- *
3
- * Vars
4
- *
5
- *--------------------------------------------------------------------------------------------*/
6
- /* colors */
7
- /* acf-field */
8
- /* responsive */
9
- /*--------------------------------------------------------------------------------------------
10
- *
11
- * Mixins
12
- *
13
- *--------------------------------------------------------------------------------------------*/
14
- /*--------------------------------------------------------------------------------------------
15
- *
16
- * General
17
- *
18
- *--------------------------------------------------------------------------------------------*/
19
- /* Horizontal List */
20
- .acf-hl {
21
- padding: 0;
22
- margin: 0;
23
- list-style: none;
24
- display: block;
25
- position: relative;
26
- }
27
- .acf-hl > li {
28
- float: left;
29
- display: block;
30
- margin: 0;
31
- padding: 0;
32
- }
33
- .acf-hl > li.acf-fr {
34
- float: right;
35
- }
36
- /* Horizontal List: Clearfix */
37
- .acf-hl:before,
38
- .acf-hl:after,
39
- .acf-bl:before,
40
- .acf-bl:after,
41
- .acf-cf:before,
42
- .acf-cf:after {
43
- content: "";
44
- display: block;
45
- line-height: 0;
46
- }
47
- .acf-hl:after,
48
- .acf-bl:after,
49
- .acf-cf:after {
50
- clear: both;
51
- }
52
- /* Block List */
53
- .acf-bl {
54
- padding: 0;
55
- margin: 0;
56
- list-style: none;
57
- display: block;
58
- position: relative;
59
- }
60
- .acf-bl > li {
61
- display: block;
62
- margin: 0;
63
- padding: 0;
64
- float: none;
65
- }
66
- /* Visibility */
67
- .acf-hidden {
68
- display: none !important;
69
- }
70
- .acf-empty {
71
- display: table-cell !important;
72
- }
73
- .acf-empty * {
74
- display: none !important;
75
- }
76
- /* Float */
77
- .acf-fl {
78
- float: left;
79
- }
80
- .acf-fr {
81
- float: right;
82
- }
83
- .acf-fn {
84
- float: none;
85
- }
86
- /* Align */
87
- .acf-al {
88
- text-align: left;
89
- }
90
- .acf-ar {
91
- text-align: right;
92
- }
93
- .acf-ac {
94
- text-align: center;
95
- }
96
- /* loading */
97
- .acf-loading,
98
- .acf-spinner {
99
- display: inline-block;
100
- height: 20px;
101
- width: 20px;
102
- vertical-align: text-top;
103
- background: transparent url(../images/spinner.gif) no-repeat 50% 50%;
104
- }
105
- /* spinner */
106
- .acf-spinner {
107
- display: none;
108
- }
109
- .acf-spinner.is-active {
110
- display: inline-block;
111
- }
112
- /* WP < 4.2 */
113
- .spinner.is-active {
114
- display: inline-block;
115
- }
116
- /* required */
117
- .acf-required {
118
- color: #f00;
119
- }
120
- /* show on hover */
121
- .acf-soh .acf-soh-target {
122
- -webkit-transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s;
123
- -moz-transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s;
124
- -o-transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s;
125
- transition: opacity 0.25s 0s ease-in-out, visibility 0s linear 0.25s;
126
- visibility: hidden;
127
- opacity: 0;
128
- }
129
- .acf-soh:hover .acf-soh-target {
130
- -webkit-transition-delay: 0s;
131
- -moz-transition-delay: 0s;
132
- -o-transition-delay: 0s;
133
- transition-delay: 0s;
134
- visibility: visible;
135
- opacity: 1;
136
- }
137
- /* show if value */
138
- .show-if-value {
139
- display: none;
140
- }
141
- .hide-if-value {
142
- display: block;
143
- }
144
- .has-value .show-if-value {
145
- display: block;
146
- }
147
- .has-value .hide-if-value {
148
- display: none;
149
- }
150
- /* select2 WP animation fix */
151
- .select2-search-choice-close {
152
- -webkit-transition: none;
153
- -moz-transition: none;
154
- -o-transition: none;
155
- transition: none;
156
- }
157
- /*---------------------------------------------------------------------------------------------
158
- *
159
- * tooltip
160
- *
161
- *---------------------------------------------------------------------------------------------*/
162
- /* tooltip */
163
- .acf-tooltip {
164
- background: #2F353E;
165
- border-radius: 5px;
166
- color: #fff;
167
- padding: 5px 10px;
168
- position: absolute;
169
- font-size: 12px;
170
- line-height: 1.4em;
171
- z-index: 900000;
172
- /* tip */
173
- /* positions */
174
- }
175
- .acf-tooltip:before {
176
- border: solid;
177
- border-color: transparent;
178
- border-width: 6px;
179
- content: "";
180
- position: absolute;
181
- }
182
- .acf-tooltip.top {
183
- margin-top: -8px;
184
- }
185
- .acf-tooltip.top:before {
186
- top: 100%;
187
- left: 50%;
188
- margin-left: -6px;
189
- border-top-color: #2F353E;
190
- border-bottom-width: 0;
191
- }
192
- .acf-tooltip.right {
193
- margin-left: 8px;
194
- }
195
- .acf-tooltip.right:before {
196
- top: 50%;
197
- margin-top: -6px;
198
- right: 100%;
199
- border-right-color: #2F353E;
200
- border-left-width: 0;
201
- }
202
- .acf-tooltip.bottom {
203
- margin-top: 8px;
204
- }
205
- .acf-tooltip.bottom:before {
206
- bottom: 100%;
207
- left: 50%;
208
- margin-left: -6px;
209
- border-bottom-color: #2F353E;
210
- border-top-width: 0;
211
- }
212
- .acf-tooltip.left {
213
- margin-left: -8px;
214
- }
215
- .acf-tooltip.left:before {
216
- top: 50%;
217
- margin-top: -6px;
218
- left: 100%;
219
- border-left-color: #2F353E;
220
- border-right-width: 0;
221
- }
222
- .acf-tooltip .acf-overlay {
223
- z-index: -1;
224
- }
225
- /* confirm */
226
- .acf-tooltip.-confirm {
227
- z-index: 900001;
228
- }
229
- .acf-tooltip.-confirm a {
230
- text-decoration: none;
231
- color: #9ea3a8;
232
- }
233
- .acf-tooltip.-confirm a:hover {
234
- text-decoration: underline;
235
- }
236
- .acf-tooltip.-confirm a[data-event="confirm"] {
237
- color: #F55E4F;
238
- }
239
- .acf-overlay {
240
- position: fixed;
241
- top: 0;
242
- bottom: 0;
243
- left: 0;
244
- right: 0;
245
- cursor: default;
246
- }
247
- .acf-tooltip-target {
248
- position: relative;
249
- z-index: 900002;
250
- }
251
- /*---------------------------------------------------------------------------------------------
252
- *
253
- * loading
254
- *
255
- *---------------------------------------------------------------------------------------------*/
256
- .acf-loading-overlay {
257
- position: absolute;
258
- top: 0;
259
- bottom: 0;
260
- left: 0;
261
- right: 0;
262
- cursor: default;
263
- z-index: 99;
264
- background: rgba(249, 249, 249, 0.5);
265
- }
266
- .acf-loading-overlay i {
267
- position: absolute;
268
- top: 50%;
269
- left: 50%;
270
- transform: translate(-50%, -50%);
271
- }
272
- /*---------------------------------------------------------------------------------------------
273
- *
274
- * callout
275
- *
276
- *---------------------------------------------------------------------------------------------*/
277
- .acf-callout {
278
- margin: 20px 0;
279
- padding: 20px;
280
- background-color: #FCF8F2;
281
- border-left: 3px solid #F0AD4E;
282
- }
283
- .acf-callout h4 {
284
- color: #F0AD4E;
285
- margin: 0 !important;
286
- }
287
- .acf-callout p {
288
- margin-bottom: 0;
289
- }
290
- .acf-callout.danger {
291
- border-color: #D9534F;
292
- background-color: #FDF7F7;
293
- }
294
- .acf-callout.danger h4 {
295
- color: #D9534F;
296
- }
297
- .acf-callout.success {
298
- background-color: #f4faf6;
299
- border-color: #bcf1c5;
300
- }
301
- .acf-callout.success h4 {
302
- color: #3aad60;
303
- }
304
- /*--------------------------------------------------------------------------------------------
305
- *
306
- * acf-icon
307
- *
308
- *--------------------------------------------------------------------------------------------*/
309
- @font-face {
310
- font-family: 'acf';
311
- src: url('../font/acf.eot?57601716');
312
- src: url('../font/acf.eot?57601716#iefix') format('embedded-opentype'), url('../font/acf.woff2?57601716') format('woff2'), url('../font/acf.woff?57601716') format('woff'), url('../font/acf.ttf?57601716') format('truetype'), url('../font/acf.svg?57601716#acf') format('svg');
313
- font-weight: normal;
314
- font-style: normal;
315
- }
316
- .acf-icon:before {
317
- font-family: "acf";
318
- font-style: normal;
319
- font-weight: normal;
320
- speak: none;
321
- display: inline-block;
322
- text-decoration: inherit;
323
- width: 1em;
324
- text-align: center;
325
- /* opacity: .8; */
326
- /* For safety - reset parent styles, that can break glyph codes*/
327
- font-variant: normal;
328
- text-transform: none;
329
- /* fix buttons height, for twitter bootstrap */
330
- line-height: 1em;
331
- /* Font smoothing. That was taken from TWBS */
332
- -webkit-font-smoothing: antialiased;
333
- -moz-osx-font-smoothing: grayscale;
334
- /* more consistent vertical align */
335
- position: relative;
336
- }
337
- .acf-icon.-plus:before {
338
- content: '\e800';
339
- }
340
- /* '' */
341
- .acf-icon.-minus:before {
342
- content: '\e801';
343
- }
344
- /* '' */
345
- .acf-icon.-cancel:before {
346
- content: '\e802';
347
- }
348
- /* '' */
349
- .acf-icon.-pencil:before {
350
- content: '\e803';
351
- top: -1px;
352
- }
353
- /* '' */
354
- .acf-icon.-location:before {
355
- content: '\e804';
356
- }
357
- /* '' */
358
- .acf-icon.-down:before {
359
- content: '\e805';
360
- top: 1px;
361
- }
362
- /* '' */
363
- .acf-icon.-left:before {
364
- content: '\e806';
365
- left: -1px;
366
- }
367
- /* '' */
368
- .acf-icon.-right:before {
369
- content: '\e807';
370
- left: 1px;
371
- }
372
- /* '' */
373
- .acf-icon.-up:before {
374
- content: '\e808';
375
- top: -1px;
376
- }
377
- /* '' */
378
- .acf-icon.-sync:before {
379
- content: '\e809';
380
- }
381
- /* '' */
382
- .acf-icon.-globe:before {
383
- content: '\e80a';
384
- }
385
- /* '' */
386
- .acf-icon.-picture:before {
387
- content: '\e80b';
388
- }
389
- /* '' */
390
- .acf-icon.-check:before {
391
- content: '\e80c';
392
- }
393
- /* '' */
394
- .acf-icon.-dot-3:before {
395
- content: '\e80d';
396
- }
397
- /* '' */
398
- .acf-icon.-arrow-combo:before {
399
- content: '\e80e';
400
- }
401
- /* '' */
402
- .acf-icon.-arrow-up:before {
403
- content: '\e810';
404
- top: -1px;
405
- }
406
- /* '' */
407
- .acf-icon.-arrow-down:before {
408
- content: '\e80f';
409
- top: 1px;
410
- }
411
- /* '' */
412
- .acf-icon.-search:before {
413
- content: '\e811';
414
- }
415
- /* '' */
416
- .acf-icon.-link-ext:before {
417
- content: '\f08e';
418
- }
419
- /* '' */
420
- /* collapse */
421
- .acf-icon.-collapse:before {
422
- content: '\e810';
423
- top: -1px;
424
- }
425
- /* arrow-up */
426
- .-collapsed .acf-icon.-collapse:before {
427
- content: '\e80f';
428
- top: 1px;
429
- }
430
- /* arrow-down */
431
- /* default */
432
- .acf-icon {
433
- display: inline-block;
434
- height: 26px;
435
- width: 26px;
436
- border: transparent solid 1px;
437
- border-radius: 100%;
438
- font-size: 16px;
439
- line-height: 26px;
440
- text-align: center;
441
- text-decoration: none;
442
- vertical-align: top;
443
- }
444
- /* elements */
445
- span.acf-icon {
446
- color: #999;
447
- border-color: #BBB;
448
- background-color: #fff;
449
- }
450
- /* icon */
451
- a.acf-icon {
452
- color: #999;
453
- border-color: #BBB;
454
- background-color: #fff;
455
- position: relative;
456
- overflow: hidden;
457
- transition: none;
458
- /* clear */
459
- /* light*/
460
- /* states */
461
- /* remove WP outline box-shadow */
462
- /* red */
463
- }
464
- a.acf-icon.-clear {
465
- color: #444;
466
- background: transparent;
467
- border: none;
468
- }
469
- a.acf-icon.light {
470
- border: none;
471
- padding: 1px;
472
- background: #F5F5F5;
473
- color: #72777c;
474
- }
475
- a.acf-icon:hover {
476
- border-color: transparent;
477
- background: #2a9bd9;
478
- color: #fff;
479
- }
480
- a.acf-icon:active {
481
- color: #fff;
482
- background-color: #238cc6;
483
- }
484
- a.acf-icon:active,
485
- a.acf-icon:focus {
486
- outline: none;
487
- box-shadow: none;
488
- }
489
- a.acf-icon.-minus:hover,
490
- a.acf-icon.-cancel:hover {
491
- background-color: #F55E4F;
492
- }
493
- a.acf-icon.-minus:active,
494
- a.acf-icon.-cancel:active {
495
- background-color: #f44837;
496
- }
497
- /* minor tweaks */
498
- .acf-icon.-pencil {
499
- font-size: 15px;
500
- }
501
- .acf-icon.-location {
502
- font-size: 18px;
503
- }
504
- /* sizes */
505
- .acf-icon.small,
506
- .acf-icon.-small {
507
- width: 18px;
508
- height: 18px;
509
- line-height: 18px;
510
- font-size: 14px;
511
- }
512
- /* dark */
513
- .acf-icon.dark {
514
- border-color: transparent;
515
- background: #23282D;
516
- color: #eee;
517
- }
518
- a.acf-icon.dark:hover {
519
- border-color: transparent;
520
- background: #191E23;
521
- color: #00b9eb;
522
- }
523
- a.acf-icon.-minus.dark:hover,
524
- a.acf-icon.-cancel.dark:hover {
525
- color: #D54E21;
526
- }
527
- /* grey */
528
- .acf-icon.grey {
529
- border-color: transparent;
530
- background: #b4b9be;
531
- color: #fff;
532
- }
533
- a.acf-icon.grey:hover {
534
- border-color: transparent;
535
- background: #00A0D2;
536
- color: #fff;
537
- }
538
- a.acf-icon.-minus.grey:hover,
539
- a.acf-icon.-cancel.grey:hover {
540
- background: #32373C;
541
- }
542
- /* red */
543
- .acf-icon.red {
544
- border-color: transparent;
545
- background-color: #F55E4F;
546
- color: #fff;
547
- }
548
- /* yellow */
549
- .acf-icon.yellow {
550
- border-color: transparent;
551
- background-color: #FDBC40;
552
- color: #fff;
553
- }
554
- /* logo */
555
- .acf-icon.logo {
556
- width: 150px;
557
- height: 150px;
558
- background: #5EE8BF;
559
- border: 0 none;
560
- position: absolute;
561
- right: 0;
562
- top: 0;
563
- }
564
- /*--------------------------------------------------------------------------------------------
565
- *
566
- * acf-box
567
- *
568
- *--------------------------------------------------------------------------------------------*/
569
- .acf-box {
570
- background: #FFFFFF;
571
- border: 1px solid #E5E5E5;
572
- position: relative;
573
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
574
- /* title */
575
- /* footer */
576
- }
577
- .acf-box .title {
578
- border-bottom: 1px solid #EEEEEE;
579
- margin: 0;
580
- padding: 15px;
581
- }
582
- .acf-box .title h3 {
583
- font-size: 14px;
584
- line-height: 1em;
585
- margin: 0;
586
- padding: 0;
587
- }
588
- .acf-box .inner {
589
- padding: 15px;
590
- }
591
- .acf-box h2 {
592
- color: #333333;
593
- font-size: 26px;
594
- line-height: 1.25em;
595
- margin: 0.25em 0 0.75em;
596
- padding: 0;
597
- }
598
- .acf-box h3 {
599
- margin: 1.5em 0 0;
600
- }
601
- .acf-box p {
602
- margin-top: 0.5em;
603
- }
604
- .acf-box a {
605
- text-decoration: none;
606
- }
607
- .acf-box i.dashicons-external {
608
- margin-top: -1px;
609
- }
610
- .acf-box .footer {
611
- border-top: 1px solid #eee;
612
- padding: 12px;
613
- font-size: 13px;
614
- line-height: 1.5;
615
- }
616
- .acf-box .footer p {
617
- margin: 0;
618
- }
619
- /*--------------------------------------------------------------------------------------------
620
- *
621
- * acf-notice
622
- *
623
- *--------------------------------------------------------------------------------------------*/
624
- .acf-notice {
625
- position: relative;
626
- display: block;
627
- color: #fff;
628
- margin: 5px 0 15px;
629
- padding: 3px 12px;
630
- background: #2a9bd9;
631
- border-left: #2183b9 solid 4px;
632
- }
633
- .acf-notice p {
634
- font-size: 13px;
635
- line-height: 1.5;
636
- margin: 0.5em 0;
637
- text-shadow: none;
638
- color: inherit;
639
- }
640
- .acf-notice a.acf-notice-dismiss {
641
- position: absolute;
642
- border-color: transparent;
643
- top: 9px;
644
- right: 12px;
645
- color: #fff;
646
- background: rgba(0, 0, 0, 0.1);
647
- }
648
- .acf-notice a.acf-notice-dismiss:hover {
649
- background: rgba(0, 0, 0, 0.2);
650
- }
651
- .acf-notice.-dismiss {
652
- padding-right: 40px;
653
- }
654
- .acf-notice.-error {
655
- background: #F55E4F;
656
- border-color: #f33b28;
657
- }
658
- .acf-notice.-success {
659
- background: #46b450;
660
- border-color: #3b9743;
661
- }
662
- .acf-notice.-warning {
663
- background: #fd8d3b;
664
- border-color: #fd7613;
665
- }
666
- /*--------------------------------------------------------------------------------------------
667
- *
668
- * acf-table
669
- *
670
- *--------------------------------------------------------------------------------------------*/
671
- .acf-table {
672
- border: #DFDFDF solid 1px;
673
- background: #fff;
674
- border-spacing: 0;
675
- border-radius: 0;
676
- table-layout: auto;
677
- padding: 0;
678
- margin: 0;
679
- width: 100%;
680
- clear: both;
681
- /* defaults */
682
- /* thead */
683
- /* tbody */
684
- /* -clear */
685
- }
686
- .acf-table > tbody > tr > th,
687
- .acf-table > thead > tr > th,
688
- .acf-table > tbody > tr > td,
689
- .acf-table > thead > tr > td {
690
- padding: 8px;
691
- vertical-align: top;
692
- background: #fff;
693
- text-align: left;
694
- border-style: solid;
695
- font-weight: normal;
696
- }
697
- .acf-table > tbody > tr > th,
698
- .acf-table > thead > tr > th {
699
- position: relative;
700
- color: #333333;
701
- }
702
- .acf-table > thead > tr > th {
703
- border-color: #E1E1E1;
704
- border-width: 0 0 1px 1px;
705
- }
706
- .acf-table > thead > tr > th:first-child {
707
- border-left-width: 0;
708
- }
709
- .acf-table > tbody > tr {
710
- z-index: 1;
711
- }
712
- .acf-table > tbody > tr > td {
713
- border-color: #EDEDED;
714
- border-width: 1px 0 0 1px;
715
- }
716
- .acf-table > tbody > tr > td:first-child {
717
- border-left-width: 0;
718
- }
719
- .acf-table > tbody > tr:first-child > td {
720
- border-top-width: 0;
721
- }
722
- .acf-table.-clear {
723
- border: 0 none;
724
- }
725
- .acf-table.-clear > tbody > tr > td,
726
- .acf-table.-clear > thead > tr > td,
727
- .acf-table.-clear > tbody > tr > th,
728
- .acf-table.-clear > thead > tr > th {
729
- border: 0 none;
730
- padding: 4px;
731
- }
732
- /* remove tr */
733
- .acf-remove-element {
734
- -webkit-transition: all 0.25s ease-out;
735
- -moz-transition: all 0.25s ease-out;
736
- -o-transition: all 0.25s ease-out;
737
- transition: all 0.25s ease-out;
738
- transform: translate(50px, 0);
739
- opacity: 0;
740
- }
741
- /* fade-up */
742
- .acf-fade-up {
743
- -webkit-transition: all 0.25s ease-out;
744
- -moz-transition: all 0.25s ease-out;
745
- -o-transition: all 0.25s ease-out;
746
- transition: all 0.25s ease-out;
747
- transform: translate(0, -10px);
748
- opacity: 0;
749
- }
750
- /*---------------------------------------------------------------------------------------------
751
- *
752
- * wp-admin
753
- *
754
- *---------------------------------------------------------------------------------------------*/
755
- /* Menu */
756
- #adminmenu a[href="edit.php?post_type=acf-field-group&page=acf-settings-info"] {
757
- display: none;
758
- }
759
- /*---------------------------------------------------------------------------------------------
760
- *
761
- * Field Group List
762
- *
763
- *---------------------------------------------------------------------------------------------*/
764
- #icon-edit.icon32-posts-acf-field-group {
765
- background-position: -11px -5px;
766
- }
767
- #acf-field-group-wrap .tablenav,
768
- #acf-field-group-wrap p.search-box {
769
- display: none;
770
- }
771
- #acf-field-group-wrap .wp-list-table .column-acf-fg-description,
772
- #acf-field-group-wrap .wp-list-table .column-acf-fg-description:before {
773
- display: none !important;
774
- /* important needed to override mobile */
775
- }
776
- #acf-field-group-wrap .wp-list-table .column-acf-fg-count {
777
- width: 10%;
778
- }
779
- #acf-field-group-wrap .wp-list-table .column-acf-fg-status {
780
- width: 10%;
781
- }
782
- #acf-field-group-wrap .tablenav.bottom {
783
- display: block;
784
- }
785
- #acf-field-group-wrap .acf-description {
786
- font-weight: normal;
787
- font-size: 13px;
788
- color: #999;
789
- margin-left: 7px;
790
- font-style: italic;
791
- }
792
- /* subsubsub */
793
- #acf-field-group-wrap .subsubsub {
794
- /* WPML */
795
- margin-bottom: 3px;
796
- /* search */
797
- }
798
- #acf-field-group-wrap .subsubsub ul {
799
- margin: 0;
800
- }
801
- #acf-field-group-wrap .subsubsub + .subsubsub {
802
- margin-top: 0;
803
- }
804
- #acf-field-group-wrap .subsubsub a:focus {
805
- box-shadow: none;
806
- }
807
- /* columns (replicate post edit layout) */
808
- .acf-columns-2 {
809
- margin-right: 300px;
810
- clear: both;
811
- /* rtl */
812
- }
813
- .acf-columns-2:after {
814
- clear: both;
815
- content: "";
816
- display: table;
817
- }
818
- html[dir="rtl"] .acf-columns-2 {
819
- margin-right: 0;
820
- margin-left: 300px;
821
- }
822
- .acf-columns-2 .acf-column-1 {
823
- float: left;
824
- width: 100%;
825
- /* rtl */
826
- }
827
- html[dir="rtl"] .acf-columns-2 .acf-column-1 {
828
- float: right;
829
- }
830
- .acf-columns-2 .acf-column-2 {
831
- float: right;
832
- margin-right: -300px;
833
- width: 280px;
834
- /* rtl */
835
- }
836
- html[dir="rtl"] .acf-columns-2 .acf-column-2 {
837
- float: left;
838
- margin-right: 0;
839
- margin-left: -300px;
840
- }
841
- /* search */
842
- #acf-field-group-wrap .search-box:after {
843
- display: block;
844
- content: "";
845
- height: 5px;
846
- }
847
- .acf-clear {
848
- clear: both;
849
- }
850
- /* mobile compatibilty */
851
- @media screen and (max-width: 782px) {
852
- #acf-field-group-wrap #the-list .acf-icon:after {
853
- content: attr(title);
854
- position: absolute;
855
- margin-left: 5px;
856
- font-size: 13px;
857
- line-height: 18px;
858
- font-style: normal;
859
- color: #444;
860
- }
861
- }
862
- /*---------------------------------------------------------------------------------------------
863
- *
864
- * Fake table
865
- *
866
- *---------------------------------------------------------------------------------------------*/
867
- .acf-thead,
868
- .acf-tbody,
869
- .acf-tfoot {
870
- width: 100%;
871
- padding: 0;
872
- margin: 0;
873
- }
874
- .acf-thead > li,
875
- .acf-tbody > li,
876
- .acf-tfoot > li {
877
- -webkit-box-sizing: border-box;
878
- -moz-box-sizing: border-box;
879
- box-sizing: border-box;
880
- padding: 8px 15px;
881
- font-size: 12px;
882
- line-height: 14px;
883
- }
884
- .acf-thead {
885
- border-bottom: #E1E1E1 solid 1px;
886
- color: #23282d;
887
- }
888
- .acf-thead > li {
889
- font-size: 14px;
890
- line-height: 1.4em;
891
- font-family: "Open Sans", sans-serif;
892
- font-weight: bold;
893
- }
894
- .acf-tfoot {
895
- background: #f5f5f5;
896
- border-top: #dddddd solid 1px;
897
- }
898
- .acf-tfoot > li {
899
- color: #7A9BBE;
900
- font-size: 12px;
901
- line-height: 27px;
902
- }
903
- /*--------------------------------------------------------------------------------------------
904
- *
905
- * Settings
906
- *
907
- *--------------------------------------------------------------------------------------------*/
908
- .acf-settings-wrap .acf-box {
909
- margin: 20px 0;
910
- }
911
- .acf-settings-wrap table {
912
- margin: 0;
913
- }
914
- .acf-settings-wrap table .button {
915
- vertical-align: middle;
916
- }
917
- /*--------------------------------------------------------------------------------------------
918
- *
919
- * Settings: Add-ons
920
- *
921
- *--------------------------------------------------------------------------------------------*/
922
- .add-ons-list {
923
- margin: 20px 0 0 -18px;
924
- max-width: 960px;
925
- }
926
- .add-ons-list .add-on {
927
- width: 220px;
928
- margin: 0 0 20px 18px;
929
- float: left;
930
- }
931
- .add-ons-list .add-on .inner {
932
- min-height: 90px;
933
- }
934
- .add-ons-list .add-on-acf-pro {
935
- width: 940px;
936
- }
937
- .add-ons-list .add-on .thumbnail img {
938
- display: block;
939
- }
940
- .add-ons-list .add-on h3 a {
941
- color: inherit;
942
- text-decoration: none;
943
- }
944
- .add-ons-list .add-on h3 {
945
- margin: 0.5em 0;
946
- }
947
- /*--------------------------------------------------------------------------------------------
948
- *
949
- * acf-popup
950
- *
951
- *--------------------------------------------------------------------------------------------*/
952
- #acf-popup {
953
- position: fixed;
954
- z-index: 900000;
955
- top: 0;
956
- left: 0;
957
- right: 0;
958
- bottom: 0;
959
- text-align: center;
960
- }
961
- #acf-popup .bg {
962
- position: absolute;
963
- top: 0;
964
- left: 0;
965
- right: 0;
966
- bottom: 0;
967
- z-index: 0;
968
- background: rgba(0, 0, 0, 0.25);
969
- }
970
- #acf-popup:before {
971
- content: '';
972
- display: inline-block;
973
- height: 100%;
974
- vertical-align: middle;
975
- }
976
- #acf-popup .acf-popup-box {
977
- display: inline-block;
978
- vertical-align: middle;
979
- z-index: 1;
980
- min-width: 300px;
981
- min-height: 160px;
982
- border-color: #aaaaaa;
983
- box-shadow: 0 5px 30px -5px rgba(0, 0, 0, 0.25);
984
- text-align: left;
985
- }
986
- html[dir="rtl"] #acf-popup .acf-popup-box {
987
- text-align: right;
988
- }
989
- #acf-popup .acf-popup-box .title {
990
- min-height: 15px;
991
- line-height: 15px;
992
- }
993
- #acf-popup .acf-popup-box .title .acf-icon {
994
- position: absolute;
995
- top: 10px;
996
- right: 10px;
997
- }
998
- html[dir="rtl"] #acf-popup .acf-popup-box .title .acf-icon {
999
- right: auto;
1000
- left: 10px;
1001
- }
1002
- #acf-popup .acf-popup-box .inner {
1003
- min-height: 50px;
1004
- padding: 0;
1005
- margin: 15px;
1006
- }
1007
- #acf-popup .acf-popup-box .loading {
1008
- position: absolute;
1009
- top: 45px;
1010
- left: 0;
1011
- right: 0;
1012
- bottom: 0;
1013
- z-index: 2;
1014
- background: rgba(0, 0, 0, 0.1);
1015
- display: none;
1016
- }
1017
- #acf-popup .acf-popup-box .loading i {
1018
- position: absolute;
1019
- top: 50%;
1020
- left: 50%;
1021
- transform: translate(-50%, -50%);
1022
- }
1023
- .acf-submit {
1024
- margin-bottom: 0;
1025
- line-height: 28px;
1026
- }
1027
- .acf-submit span {
1028
- float: right;
1029
- color: #999;
1030
- }
1031
- .acf-submit span.-error {
1032
- color: #dd4232;
1033
- }
1034
- .acf-submit .button {
1035
- margin-right: 5px;
1036
- }
1037
- /*--------------------------------------------------------------------------------------------
1038
- *
1039
- * upgrade notice
1040
- *
1041
- *--------------------------------------------------------------------------------------------*/
1042
- #acf-upgrade-notice {
1043
- position: relative;
1044
- background: #fff;
1045
- border-left: 4px solid #00a0d2;
1046
- padding: 20px;
1047
- }
1048
- #acf-upgrade-notice:after {
1049
- clear: both;
1050
- content: "";
1051
- display: table;
1052
- }
1053
- #acf-upgrade-notice .col-content {
1054
- float: left;
1055
- width: 55%;
1056
- padding-left: 90px;
1057
- }
1058
- #acf-upgrade-notice .col-actions {
1059
- float: right;
1060
- text-align: center;
1061
- padding: 10px;
1062
- }
1063
- #acf-upgrade-notice img {
1064
- float: left;
1065
- width: 70px;
1066
- height: 70px;
1067
- margin: 0 0 0 -90px;
1068
- }
1069
- #acf-upgrade-notice h2 {
1070
- font-size: 16px;
1071
- margin: 2px 0 6.5px;
1072
- }
1073
- #acf-upgrade-notice p {
1074
- padding: 0;
1075
- margin: 0;
1076
- }
1077
- #acf-upgrade-notice .button:before {
1078
- margin-top: 11px;
1079
- }
1080
- @media screen and (max-width: 640px) {
1081
- #acf-upgrade-notice .col-content,
1082
- #acf-upgrade-notice .col-actions {
1083
- float: none;
1084
- padding-left: 90px;
1085
- width: auto;
1086
- text-align: left;
1087
- }
1088
- }
1089
- /*--------------------------------------------------------------------------------------------
1090
- *
1091
- * Welcome
1092
- *
1093
- *--------------------------------------------------------------------------------------------*/
1094
- .acf-wrap h1 {
1095
- margin-top: 0;
1096
- padding-top: 20px;
1097
- }
1098
- .acf-wrap .about-text {
1099
- margin-top: 0.5em;
1100
- min-height: 50px;
1101
- }
1102
- .acf-wrap .about-headline-callout {
1103
- font-size: 2.4em;
1104
- font-weight: 300;
1105
- line-height: 1.3;
1106
- margin: 1.1em 0 0.2em;
1107
- text-align: center;
1108
- }
1109
- .acf-wrap .feature-section {
1110
- padding: 40px 0;
1111
- }
1112
- .acf-wrap .feature-section h2 {
1113
- margin-top: 20px;
1114
- }
1115
- .acf-wrap .changelog {
1116
- list-style: disc;
1117
- padding-left: 15px;
1118
- }
1119
- .acf-wrap .changelog li {
1120
- margin: 0 0 0.75em;
1121
- }
1122
- .acf-wrap .acf-three-col {
1123
- display: flex;
1124
- flex-wrap: wrap;
1125
- justify-content: space-between;
1126
- }
1127
- .acf-wrap .acf-three-col > div {
1128
- flex: 1;
1129
- align-self: flex-start;
1130
- min-width: 31%;
1131
- max-width: 31%;
1132
- }
1133
- @media screen and (max-width: 880px) {
1134
- .acf-wrap .acf-three-col > div {
1135
- min-width: 48%;
1136
- }
1137
- }
1138
- @media screen and (max-width: 640px) {
1139
- .acf-wrap .acf-three-col > div {
1140
- min-width: 100%;
1141
- }
1142
- }
1143
- .acf-wrap .acf-three-col h3 .badge {
1144
- display: inline-block;
1145
- vertical-align: top;
1146
- border-radius: 5px;
1147
- background: #fc9700;
1148
- color: #fff;
1149
- font-weight: normal;
1150
- font-size: 12px;
1151
- padding: 2px 5px;
1152
- }
1153
- .acf-wrap .acf-three-col img + h3 {
1154
- margin-top: 0.5em;
1155
- }
1156
- /*--------------------------------------------------------------------------------------------
1157
- *
1158
- * acf-hl cols
1159
- *
1160
- *--------------------------------------------------------------------------------------------*/
1161
- .acf-hl[data-cols] {
1162
- margin-left: -10px;
1163
- margin-right: -10px;
1164
- }
1165
- .acf-hl[data-cols] > li {
1166
- padding: 0 10px;
1167
- -webkit-box-sizing: border-box;
1168
- -moz-box-sizing: border-box;
1169
- box-sizing: border-box;
1170
- }
1171
- /* sizes */
1172
- .acf-hl[data-cols="2"] > li {
1173
- width: 50%;
1174
- }
1175
- .acf-hl[data-cols="3"] > li {
1176
- width: 33.333%;
1177
- }
1178
- .acf-hl[data-cols="4"] > li {
1179
- width: 25%;
1180
- }
1181
- /* mobile */
1182
- @media screen and (max-width: 640px) {
1183
- .acf-hl[data-cols] {
1184
- margin-left: 0;
1185
- margin-right: 0;
1186
- margin-top: -10px;
1187
- }
1188
- .acf-hl[data-cols] > li {
1189
- width: 100% !important;
1190
- padding: 10px 0 0;
1191
- }
1192
- }
1193
- /*--------------------------------------------------------------------------------------------
1194
- *
1195
- * misc
1196
- *
1197
- *--------------------------------------------------------------------------------------------*/
1198
- .acf-actions {
1199
- text-align: right;
1200
- z-index: 1;
1201
- /* hover */
1202
- /* rtl */
1203
- }
1204
- .acf-actions a {
1205
- margin-left: 4px;
1206
- }
1207
- .acf-actions.-hover {
1208
- position: absolute;
1209
- display: none;
1210
- top: 0;
1211
- right: 0;
1212
- padding: 5px;
1213
- }
1214
- html[dir="rtl"] .acf-actions a {
1215
- margin-left: 0;
1216
- margin-right: 4px;
1217
- }
1218
- html[dir="rtl"] .acf-actions.-hover {
1219
- right: auto;
1220
- left: 0;
1221
- }
1222
- /* ul compatibility */
1223
- ul.acf-actions li {
1224
- float: right;
1225
- margin-left: 4px;
1226
- }
1227
- /*--------------------------------------------------------------------------------------------
1228
- *
1229
- * Plugins
1230
- *
1231
- *--------------------------------------------------------------------------------------------*/
1232
- .acf-plugin-upgrade-notice {
1233
- font-weight: normal;
1234
- color: #fff;
1235
- background: #d54d21;
1236
- padding: 1em;
1237
- margin: 9px 0;
1238
- }
1239
- .acf-plugin-upgrade-notice:before {
1240
- content: "\f348";
1241
- display: inline-block;
1242
- font: 400 18px/1 dashicons;
1243
- speak: none;
1244
- margin: 0 8px 0 -2px;
1245
- -webkit-font-smoothing: antialiased;
1246
- -moz-osx-font-smoothing: grayscale;
1247
- vertical-align: top;
1248
- }
1249
- .acf-plugin-upgrade-notice h4 {
1250
- display: none;
1251
- }
1252
- .acf-plugin-upgrade-notice ul,
1253
- .acf-plugin-upgrade-notice li {
1254
- display: inline;
1255
- color: inherit;
1256
- list-style: none;
1257
- }
1258
- .acf-plugin-upgrade-notice li:after {
1259
- content: '. ';
1260
- display: inline;
1261
- }
1262
- /*--------------------------------------------------------------------------------------------
1263
- *
1264
- * RTL
1265
- *
1266
- *--------------------------------------------------------------------------------------------*/
1267
- html[dir="rtl"] .acf-fl {
1268
- float: right;
1269
- }
1270
- html[dir="rtl"] .acf-fr {
1271
- float: left;
1272
- }
1273
- html[dir="rtl"] .acf-hl > li {
1274
- float: right;
1275
- }
1276
- html[dir="rtl"] .acf-hl > li.acf-fr {
1277
- float: left;
1278
- }
1279
- html[dir="rtl"] .acf-icon.logo {
1280
- left: 0;
1281
- right: auto;
1282
- }
1283
- html[dir="rtl"] .acf-table thead th {
1284
- text-align: right;
1285
- border-right-width: 1px;
1286
- border-left-width: 0px;
1287
- }
1288
- html[dir="rtl"] .acf-table > tbody > tr > td {
1289
- text-align: right;
1290
- border-right-width: 1px;
1291
- border-left-width: 0px;
1292
- }
1293
- html[dir="rtl"] .acf-table > thead > tr > th:first-child,
1294
- html[dir="rtl"] .acf-table > tbody > tr > td:first-child {
1295
- border-right-width: 0;
1296
- }
1297
- html[dir="rtl"] .acf-table > tbody > tr > td.order + td {
1298
- border-right-color: #e1e1e1;
1299
- }
1300
- /*---------------------------------------------------------------------------------------------
1301
- *
1302
- * acf-postbox-columns
1303
- *
1304
- *---------------------------------------------------------------------------------------------*/
1305
- .acf-postbox-columns {
1306
- position: relative;
1307
- margin-top: -11px;
1308
- margin-bottom: -11px;
1309
- margin-left: -12px;
1310
- margin-right: 268px;
1311
- }
1312
- .acf-postbox-columns:after {
1313
- clear: both;
1314
- content: "";
1315
- display: table;
1316
- }
1317
- .acf-postbox-columns .acf-postbox-main,
1318
- .acf-postbox-columns .acf-postbox-side {
1319
- -webkit-box-sizing: border-box;
1320
- -moz-box-sizing: border-box;
1321
- box-sizing: border-box;
1322
- padding: 0 12px 12px;
1323
- }
1324
- .acf-postbox-columns .acf-postbox-main {
1325
- float: left;
1326
- width: 100%;
1327
- }
1328
- .acf-postbox-columns .acf-postbox-side {
1329
- float: right;
1330
- width: 280px;
1331
- margin-right: -280px;
1332
- }
1333
- .acf-postbox-columns .acf-postbox-side:before {
1334
- content: "";
1335
- display: block;
1336
- position: absolute;
1337
- width: 1px;
1338
- height: 100%;
1339
- top: 0;
1340
- right: 0;
1341
- background: #ebebeb;
1342
- }
1343
- /* mobile */
1344
- @media only screen and (max-width: 850px) {
1345
- .acf-postbox-columns {
1346
- margin: 0;
1347
- }
1348
- .acf-postbox-columns .acf-postbox-main,
1349
- .acf-postbox-columns .acf-postbox-side {
1350
- float: none;
1351
- width: auto;
1352
- margin: 0;
1353
- padding: 0;
1354
- }
1355
- .acf-postbox-columns .acf-postbox-side {
1356
- margin-top: 1em;
1357
- }
1358
- .acf-postbox-columns .acf-postbox-side:before {
1359
- display: none;
1360
- }
1361
- }
1362
- /*---------------------------------------------------------------------------------------------
1363
- *
1364
- * acf-panel
1365
- *
1366
- *---------------------------------------------------------------------------------------------*/
1367
- .acf-panel {
1368
- margin-top: -1px;
1369
- border-top: 1px solid #e2e4e7;
1370
- border-bottom: 1px solid #e2e4e7;
1371
- /* open */
1372
- /* inside postbox */
1373
- /* fields */
1374
- }
1375
- .acf-panel .acf-panel-title {
1376
- margin: 0;
1377
- padding: 12px;
1378
- font-weight: bold;
137