Version Description
- Added composer.json and composer.lock that were missing.
- Updated CMB2 to 2.3
- Translation files generated.
- Language path and text domain added to plugin header.
- Bumped compatible WP version.
Download this release
Release Info
Developer | JeffMatson |
Plugin | Heartbeat Control |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- composer.json +15 -0
- composer.lock +76 -0
- heartbeat-control.php +5 -4
- languages/heartbeat-control.pot +82 -0
- readme.txt +13 -3
- settings.php +1 -1
- vendor/composer/autoload_classmap.php +1 -1
- vendor/composer/autoload_namespaces.php +1 -1
- vendor/composer/autoload_psr4.php +1 -1
- vendor/composer/installed.json +6 -6
- vendor/webdevstudios/cmb2/CHANGELOG.md +56 -5
- vendor/webdevstudios/cmb2/example-functions.php +45 -6
- vendor/webdevstudios/cmb2/images/ico-delete.png +0 -0
- vendor/webdevstudios/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- vendor/webdevstudios/cmb2/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- vendor/webdevstudios/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- vendor/webdevstudios/cmb2/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- vendor/webdevstudios/cmb2/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- vendor/webdevstudios/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- vendor/webdevstudios/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- vendor/webdevstudios/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- vendor/webdevstudios/cmb2/images/ui-icons_222222_256x240.png +0 -0
- vendor/webdevstudios/cmb2/images/ui-icons_2e83ff_256x240.png +0 -0
- vendor/webdevstudios/cmb2/images/ui-icons_454545_256x240.png +0 -0
- vendor/webdevstudios/cmb2/images/ui-icons_888888_256x240.png +0 -0
- vendor/webdevstudios/cmb2/images/ui-icons_cd0a0a_256x240.png +0 -0
- vendor/webdevstudios/cmb2/includes/CMB2.php +57 -15
- vendor/webdevstudios/cmb2/includes/CMB2_Ajax.php +3 -3
- vendor/webdevstudios/cmb2/includes/CMB2_Base.php +20 -4
- vendor/webdevstudios/cmb2/includes/CMB2_Field.php +165 -69
- vendor/webdevstudios/cmb2/includes/CMB2_JS.php +46 -9
- vendor/webdevstudios/cmb2/includes/CMB2_Options_Hookup.php +60 -7
- vendor/webdevstudios/cmb2/includes/CMB2_Sanitize.php +6 -2
- vendor/webdevstudios/cmb2/includes/CMB2_Utils.php +42 -20
- vendor/webdevstudios/cmb2/includes/helper-functions.php +15 -0
- vendor/webdevstudios/cmb2/includes/shim/WP_REST_Controller.php +2 -1
- vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Checkbox.php +1 -1
- vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Colorpicker.php +28 -7
- vendor/webdevstudios/cmb2/includes/types/CMB2_Type_File_List.php +1 -1
- vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Multicheck.php +1 -1
- vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Oembed.php +1 -1
- vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php +1 -2
- vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Date.php +1 -1
- vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php +1 -1
- vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php +1 -1
- vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Time.php +1 -1
- vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Textarea_Code.php +1 -1
- vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Wysiwyg.php +1 -1
- vendor/webdevstudios/cmb2/init.php +10 -10
- vendor/webdevstudios/cmb2/js/cmb2-wysiwyg.js +14 -3
- vendor/webdevstudios/cmb2/js/cmb2.js +39 -11
- vendor/webdevstudios/cmb2/js/cmb2.min.js +1 -1
- vendor/webdevstudios/cmb2/js/wp-color-picker-alpha.js +496 -0
- vendor/webdevstudios/cmb2/js/wp-color-picker-alpha.min.js +11 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ach.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-af.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-an.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ar.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ary.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-as.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-az.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-be.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-bg.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-bg_BG.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-bn_BD.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-br.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-bs.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-bs_BA.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ca.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ca.po +3 -3
- vendor/webdevstudios/cmb2/languages/cmb2-co.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-cs_CZ.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-cy.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-da_DK.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-de_AT.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-de_CH.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-de_DE.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-dv.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-el.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-en@pirate.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-en_AU.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-en_CA.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-en_GB.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-eo.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-es_AR.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-es_CL.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-es_CO.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-es_ES.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-es_MX.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-es_PE.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-es_VE.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-et.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-eu.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-fa.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-fa_IR.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-fa_IR.po +109 -100
- vendor/webdevstudios/cmb2/languages/cmb2-fi.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-fo.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-fr_BE.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-fr_CA.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-fr_FR.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-fy.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ga.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-gd.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-gl_ES.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-gu_IN.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-he_IL.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-hi_IN.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-hr.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-hu_HU.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-hy.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-id_ID.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-is_IS.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-it_IT.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-it_IT.po +204 -162
- vendor/webdevstudios/cmb2/languages/cmb2-ja.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-jv.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ka.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ka_GE.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-kk.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-km.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-kn.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ko_KR.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ku.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ky.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-lo.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-lt_LT.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-lv.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-mg.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-mk_MK.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-mn.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-mr.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ms_MY.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-my_MM.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-nb_NO.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ne_NP.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-nl_BE.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-nl_NL.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-nn_NO.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-oc.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-os.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-pap.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-pl_PL.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ps.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-pt_BR.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-pt_PT.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ro_RO.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ru_RU.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-sa.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-sah.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-si_LK.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-sk_SK.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-sl_SI.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-so.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-sq.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-sr_RS.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-su.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-sv_SE.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-sw.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ta_IN.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ta_LK.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-te.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-tg.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-th.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-tk_TM.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-tl.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-tr_TR.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-tzm.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ug.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-uk.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ur.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-ur_PK.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-uz.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-vi.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-zh_CN.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-zh_HK.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2-zh_TW.mo +0 -0
- vendor/webdevstudios/cmb2/languages/cmb2.pot +160 -151
- vendor/webdevstudios/cmb2/readme.txt +58 -71
composer.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"name": "jeffmatson/heartbeat-control",
|
3 |
+
"description": "WordPress plugin to control the WordPress heartbeat.",
|
4 |
+
"type": "wordpress-plugin",
|
5 |
+
"require": {
|
6 |
+
"webdevstudios/cmb2": "^2.3"
|
7 |
+
},
|
8 |
+
"license": "GPLv3",
|
9 |
+
"authors": [
|
10 |
+
{
|
11 |
+
"name": "Jeff Matson",
|
12 |
+
"email": "jeff@jeffmatson.net"
|
13 |
+
}
|
14 |
+
]
|
15 |
+
}
|
composer.lock
ADDED
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_readme": [
|
3 |
+
"This file locks the dependencies of your project to a known state",
|
4 |
+
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
5 |
+
"This file is @generated automatically"
|
6 |
+
],
|
7 |
+
"hash": "1f51070ad34d1e4df0f8aa1d336a973d",
|
8 |
+
"content-hash": "ae70281166205196febfc905a448c904",
|
9 |
+
"packages": [
|
10 |
+
{
|
11 |
+
"name": "webdevstudios/cmb2",
|
12 |
+
"version": "v2.3.0",
|
13 |
+
"source": {
|
14 |
+
"type": "git",
|
15 |
+
"url": "https://github.com/CMB2/CMB2.git",
|
16 |
+
"reference": "a1778c2ffccf2fdd11c9d2006eaa72192bdce9e9"
|
17 |
+
},
|
18 |
+
"dist": {
|
19 |
+
"type": "zip",
|
20 |
+
"url": "https://api.github.com/repos/CMB2/CMB2/zipball/a1778c2ffccf2fdd11c9d2006eaa72192bdce9e9",
|
21 |
+
"reference": "a1778c2ffccf2fdd11c9d2006eaa72192bdce9e9",
|
22 |
+
"shasum": ""
|
23 |
+
},
|
24 |
+
"require": {
|
25 |
+
"php": ">5.2.4"
|
26 |
+
},
|
27 |
+
"require-dev": {
|
28 |
+
"phpunit/phpunit": "3.7.*"
|
29 |
+
},
|
30 |
+
"suggest": {
|
31 |
+
"composer/installers": "~1.0"
|
32 |
+
},
|
33 |
+
"type": "wordpress-plugin",
|
34 |
+
"notification-url": "https://packagist.org/downloads/",
|
35 |
+
"license": [
|
36 |
+
"GPL-2.0+"
|
37 |
+
],
|
38 |
+
"authors": [
|
39 |
+
{
|
40 |
+
"name": "WebDevStudios",
|
41 |
+
"email": "contact@webdevstudios.com",
|
42 |
+
"homepage": "https://github.com/WebDevStudios",
|
43 |
+
"role": "Developer"
|
44 |
+
},
|
45 |
+
{
|
46 |
+
"name": "Justin Sternberg",
|
47 |
+
"email": "justin@dsgnwrks.pro",
|
48 |
+
"homepage": "https://dsgnwrks.pro",
|
49 |
+
"role": "Developer"
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"name": "Zao",
|
53 |
+
"email": "office@zao.com",
|
54 |
+
"homepage": "http://zao.is",
|
55 |
+
"role": "Developer"
|
56 |
+
}
|
57 |
+
],
|
58 |
+
"description": "CMB2 is a metabox, custom fields, and forms library for WordPress that will blow your mind.",
|
59 |
+
"homepage": "https://github.com/CMB2/CMB2",
|
60 |
+
"keywords": [
|
61 |
+
"metabox",
|
62 |
+
"plugin",
|
63 |
+
"wordpress"
|
64 |
+
],
|
65 |
+
"time": "2017-12-20 14:18:52"
|
66 |
+
}
|
67 |
+
],
|
68 |
+
"packages-dev": [],
|
69 |
+
"aliases": [],
|
70 |
+
"minimum-stability": "stable",
|
71 |
+
"stability-flags": [],
|
72 |
+
"prefer-stable": false,
|
73 |
+
"prefer-lowest": false,
|
74 |
+
"platform": [],
|
75 |
+
"platform-dev": []
|
76 |
+
}
|
heartbeat-control.php
CHANGED
@@ -3,10 +3,12 @@
|
|
3 |
* Plugin Name: Heartbeat Control
|
4 |
* Plugin URI: https://jeffmatson.net/heartbeat-control
|
5 |
* Description: Completely controls the WordPress heartbeat.
|
6 |
-
* Version: 1.2.
|
7 |
* Author: Jeff Matson
|
8 |
* Author URI: http://jeffmatson.net
|
9 |
* License: GPL2
|
|
|
|
|
10 |
*/
|
11 |
|
12 |
namespace Heartbeat_Control;
|
@@ -21,7 +23,7 @@ class Heartbeat_Control {
|
|
21 |
*
|
22 |
* @var string
|
23 |
*/
|
24 |
-
public $version = '1.2.
|
25 |
|
26 |
/**
|
27 |
* Undocumented function
|
@@ -102,8 +104,7 @@ class Heartbeat_Control {
|
|
102 |
?>
|
103 |
<div id="heartbeat_control_update_notice" class="notice notice-success is-dismissible">
|
104 |
<p><?php _e( 'Heartbeat Control has updated to a new version!', 'heartbeat-control' ); ?></p>
|
105 |
-
<p><?php _e( '
|
106 |
-
<p><?php _e( 'Want more? <a href="https://www.patreon.com/JeffMatson">Support me on Patreon</a> to further my projects and get early access to the upcoming Heartbeat Control Pro!', 'heartbeat-control' ); ?></p>
|
107 |
</div>
|
108 |
<?php
|
109 |
}
|
3 |
* Plugin Name: Heartbeat Control
|
4 |
* Plugin URI: https://jeffmatson.net/heartbeat-control
|
5 |
* Description: Completely controls the WordPress heartbeat.
|
6 |
+
* Version: 1.2.3
|
7 |
* Author: Jeff Matson
|
8 |
* Author URI: http://jeffmatson.net
|
9 |
* License: GPL2
|
10 |
+
* Text Domain: heartbeat-control
|
11 |
+
* Domain Path: /languages
|
12 |
*/
|
13 |
|
14 |
namespace Heartbeat_Control;
|
23 |
*
|
24 |
* @var string
|
25 |
*/
|
26 |
+
public $version = '1.2.3';
|
27 |
|
28 |
/**
|
29 |
* Undocumented function
|
104 |
?>
|
105 |
<div id="heartbeat_control_update_notice" class="notice notice-success is-dismissible">
|
106 |
<p><?php _e( 'Heartbeat Control has updated to a new version!', 'heartbeat-control' ); ?></p>
|
107 |
+
<p><?php _e( 'Love it? Does it save you money and valuable server resources? Consider <a href="https://paypal.me/JeffMatson">sending me a donation</a>. The plugin is entirely developed in my spare time and every little bit helps to motivate me to add more features and bug fixes.', 'heartbeat-control' ); ?></p>
|
|
|
108 |
</div>
|
109 |
<?php
|
110 |
}
|
languages/heartbeat-control.pot
ADDED
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2018 heartbeat-control
|
2 |
+
# This file is distributed under the same license as the heartbeat-control package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: heartbeat-control\n"
|
6 |
+
"MIME-Version: 1.0\n"
|
7 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
+
"Content-Transfer-Encoding: 8bit\n"
|
9 |
+
"X-Poedit-Basepath: ..\n"
|
10 |
+
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
|
11 |
+
"X-Poedit-SearchPath-0: .\n"
|
12 |
+
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
13 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
14 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
+
|
16 |
+
#: ../heartbeat-control.php:104
|
17 |
+
msgid "Heartbeat Control has updated to a new version!"
|
18 |
+
msgstr ""
|
19 |
+
|
20 |
+
#: ../heartbeat-control.php:105
|
21 |
+
msgid "Multiple rules can now be specified. Go to the settings to add the new features!"
|
22 |
+
msgstr ""
|
23 |
+
|
24 |
+
#: ../heartbeat-control.php:106
|
25 |
+
msgid "Want more? <a href=\"https://www.patreon.com/JeffMatson\">Support me on Patreon</a> to further my projects and get early access to the upcoming Heartbeat Control Pro!"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: ../settings.php:41
|
29 |
+
msgid "Heartbeat Control Settings"
|
30 |
+
msgstr ""
|
31 |
+
|
32 |
+
#: ../settings.php:51
|
33 |
+
msgid "Set WordPress heartbeat rules. Duplicate locations are ordered based on priority (higher list position wins)."
|
34 |
+
msgstr ""
|
35 |
+
|
36 |
+
#: ../settings.php:53
|
37 |
+
msgid "Rule {#}"
|
38 |
+
msgstr ""
|
39 |
+
|
40 |
+
#: ../settings.php:54
|
41 |
+
msgid "Add Another Rule"
|
42 |
+
msgstr ""
|
43 |
+
|
44 |
+
#: ../settings.php:55
|
45 |
+
msgid "Remove Rule"
|
46 |
+
msgstr ""
|
47 |
+
|
48 |
+
#: ../settings.php:61
|
49 |
+
msgid "Heartbeat Behavior"
|
50 |
+
msgstr ""
|
51 |
+
|
52 |
+
#: ../settings.php:67
|
53 |
+
msgid "Allow Heartbeat"
|
54 |
+
msgstr ""
|
55 |
+
|
56 |
+
#: ../settings.php:68
|
57 |
+
msgid "Disable Heartbeat"
|
58 |
+
msgstr ""
|
59 |
+
|
60 |
+
#: ../settings.php:69
|
61 |
+
msgid "Modify Heartbeat"
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#: ../settings.php:74
|
65 |
+
msgid "Locations"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#: ../settings.php:78
|
69 |
+
msgid "WordPress Dashboard"
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#: ../settings.php:79
|
73 |
+
msgid "Frontend"
|
74 |
+
msgstr ""
|
75 |
+
|
76 |
+
#: ../settings.php:80
|
77 |
+
msgid "Post Editor"
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#: ../settings.php:85
|
81 |
+
msgid "Frequency"
|
82 |
+
msgstr ""
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== Heartbeat Control ===
|
2 |
Contributors: JeffMatson
|
3 |
-
Donate link: https://
|
4 |
Tags: heartbeat, admin-ajax, server resources, heartbeat control, heartbeat api, performance, debugging, javascript
|
5 |
Requires at least: 3.6
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -35,6 +35,16 @@ All options are located within Settings > Heartbeat Control.
|
|
35 |
If you commonly leave your WordPress admin up for long periods of time, especially while writing or editing a post, the repeated POST requests can cause high resource usage. To avoid this, the heartbeat can be modified or even disabled to lower your server resource usage.
|
36 |
|
37 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
= 1.2.1 =
|
39 |
* Fixed issue that would cause some users to not see the modification slider.
|
40 |
|
1 |
=== Heartbeat Control ===
|
2 |
Contributors: JeffMatson
|
3 |
+
Donate link: https://paypal.me/JeffMatson
|
4 |
Tags: heartbeat, admin-ajax, server resources, heartbeat control, heartbeat api, performance, debugging, javascript
|
5 |
Requires at least: 3.6
|
6 |
+
Tested up to: 4.9.4
|
7 |
+
Stable tag: 1.2.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
35 |
If you commonly leave your WordPress admin up for long periods of time, especially while writing or editing a post, the repeated POST requests can cause high resource usage. To avoid this, the heartbeat can be modified or even disabled to lower your server resource usage.
|
36 |
|
37 |
== Changelog ==
|
38 |
+
= 1.2.3 =
|
39 |
+
* Added composer.json and composer.lock that were missing.
|
40 |
+
* Updated CMB2 to 2.3
|
41 |
+
* Translation files generated.
|
42 |
+
* Language path and text domain added to plugin header.
|
43 |
+
* Bumped compatible WP version.
|
44 |
+
|
45 |
+
= 1.2.2 =
|
46 |
+
* Minor bugfixes.
|
47 |
+
|
48 |
= 1.2.1 =
|
49 |
* Fixed issue that would cause some users to not see the modification slider.
|
50 |
|
settings.php
CHANGED
@@ -38,7 +38,7 @@ class Settings {
|
|
38 |
|
39 |
$cmb = new_cmb2_box( array(
|
40 |
'id' => 'heartbeat_control_settings',
|
41 |
-
'title' => __( 'Heartbeat Control Settings', '
|
42 |
'object_types' => array( 'options-page', ), // Post type
|
43 |
'option_key' => 'heartbeat_control_settings',
|
44 |
'capability' => 'manage_options',
|
38 |
|
39 |
$cmb = new_cmb2_box( array(
|
40 |
'id' => 'heartbeat_control_settings',
|
41 |
+
'title' => __( 'Heartbeat Control Settings', 'heartbeat-control' ),
|
42 |
'object_types' => array( 'options-page', ), // Post type
|
43 |
'option_key' => 'heartbeat_control_settings',
|
44 |
'capability' => 'manage_options',
|
vendor/composer/autoload_classmap.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
// autoload_classmap.php @generated by Composer
|
4 |
|
5 |
$vendorDir = dirname(dirname(__FILE__));
|
6 |
-
$baseDir = dirname(
|
7 |
|
8 |
return array(
|
9 |
);
|
3 |
// autoload_classmap.php @generated by Composer
|
4 |
|
5 |
$vendorDir = dirname(dirname(__FILE__));
|
6 |
+
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
);
|
vendor/composer/autoload_namespaces.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
// autoload_namespaces.php @generated by Composer
|
4 |
|
5 |
$vendorDir = dirname(dirname(__FILE__));
|
6 |
-
$baseDir = dirname(
|
7 |
|
8 |
return array(
|
9 |
);
|
3 |
// autoload_namespaces.php @generated by Composer
|
4 |
|
5 |
$vendorDir = dirname(dirname(__FILE__));
|
6 |
+
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
);
|
vendor/composer/autoload_psr4.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
// autoload_psr4.php @generated by Composer
|
4 |
|
5 |
$vendorDir = dirname(dirname(__FILE__));
|
6 |
-
$baseDir = dirname(
|
7 |
|
8 |
return array(
|
9 |
);
|
3 |
// autoload_psr4.php @generated by Composer
|
4 |
|
5 |
$vendorDir = dirname(dirname(__FILE__));
|
6 |
+
$baseDir = dirname($vendorDir);
|
7 |
|
8 |
return array(
|
9 |
);
|
vendor/composer/installed.json
CHANGED
@@ -1,17 +1,17 @@
|
|
1 |
[
|
2 |
{
|
3 |
"name": "webdevstudios/cmb2",
|
4 |
-
"version": "v2.
|
5 |
-
"version_normalized": "2.
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/CMB2/CMB2.git",
|
9 |
-
"reference": "
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
-
"url": "https://api.github.com/repos/CMB2/CMB2/zipball/
|
14 |
-
"reference": "
|
15 |
"shasum": ""
|
16 |
},
|
17 |
"require": {
|
@@ -23,7 +23,7 @@
|
|
23 |
"suggest": {
|
24 |
"composer/installers": "~1.0"
|
25 |
},
|
26 |
-
"time": "2017-
|
27 |
"type": "wordpress-plugin",
|
28 |
"installation-source": "dist",
|
29 |
"notification-url": "https://packagist.org/downloads/",
|
1 |
[
|
2 |
{
|
3 |
"name": "webdevstudios/cmb2",
|
4 |
+
"version": "v2.3.0",
|
5 |
+
"version_normalized": "2.3.0.0",
|
6 |
"source": {
|
7 |
"type": "git",
|
8 |
"url": "https://github.com/CMB2/CMB2.git",
|
9 |
+
"reference": "a1778c2ffccf2fdd11c9d2006eaa72192bdce9e9"
|
10 |
},
|
11 |
"dist": {
|
12 |
"type": "zip",
|
13 |
+
"url": "https://api.github.com/repos/CMB2/CMB2/zipball/a1778c2ffccf2fdd11c9d2006eaa72192bdce9e9",
|
14 |
+
"reference": "a1778c2ffccf2fdd11c9d2006eaa72192bdce9e9",
|
15 |
"shasum": ""
|
16 |
},
|
17 |
"require": {
|
23 |
"suggest": {
|
24 |
"composer/installers": "~1.0"
|
25 |
},
|
26 |
+
"time": "2017-12-20 14:18:52",
|
27 |
"type": "wordpress-plugin",
|
28 |
"installation-source": "dist",
|
29 |
"notification-url": "https://packagist.org/downloads/",
|
vendor/webdevstudios/cmb2/CHANGELOG.md
CHANGED
@@ -3,11 +3,62 @@ All notable changes to this project will be documented in this file.
|
|
3 |
|
4 |
## Unreleased
|
5 |
|
6 |
-
## [2.
|
7 |
|
8 |
### Enhancements
|
9 |
|
10 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
### Bug Fixes
|
13 |
|
@@ -19,20 +70,20 @@ All notable changes to this project will be documented in this file.
|
|
19 |
* Change the updated-settings notice query variable so that WordPress does not auto-add settings notices on top of ours.
|
20 |
* For settings pages, only output settings errors if WordPress does not do it by default (for sub-pages of `options-general.php`), and if the errors are not disabled via the `'disable_settings_errors'` box property.
|
21 |
|
22 |
-
## [2.2.5.2 - 2017-08-08]
|
23 |
|
24 |
### Bug Fixes
|
25 |
|
26 |
* Fix issue in 2.2.5 with non-sortable repeatable groups not having new groups values be emptied on creation/clone. [Support thread](https://wordpress.org/support/topic/the-default-parameter-dont-work-in-group-fields/page/2/)
|
27 |
* Fix issue in 2.2.5 with options pages not saving when `'parent_slug'` box property was used. Fixes [#1008](https://github.com/CMB2/CMB2/issues/1008).
|
28 |
|
29 |
-
## [2.2.5.1 - 2017-08-07]
|
30 |
|
31 |
### Bug Fixes
|
32 |
|
33 |
* Fix issue in 2.2.5 which caused empty repeatable groups having the buttons set to have a disabled "Remove Group" button. [Support thread](https://wordpress.org/support/topic/the-default-parameter-dont-work-in-group-fields/)
|
34 |
|
35 |
-
## [2.2.5 - 2017-08-07]
|
36 |
|
37 |
### Enhancements
|
38 |
|
3 |
|
4 |
## Unreleased
|
5 |
|
6 |
+
## [2.3.0 - 2017-12-20](https://github.com/CMB2/CMB2/releases/tag/v2.3.0)
|
7 |
|
8 |
### Enhancements
|
9 |
|
10 |
+
* Updated Italian translation. Props [@Mte90](https://github.com/Mte90) ([#1067](https://github.com/CMB2/CMB2/issues/1067)).
|
11 |
+
* Starting with this release, we are fully switching to the more communicative and standard [Semantic Versioning](https://semver.org/). ([#1061](https://github.com/CMB2/CMB2/issues/1061)).
|
12 |
+
|
13 |
+
### Bug Fixes
|
14 |
+
|
15 |
+
* Update for compatibility with PHP 7.2 (e.g. fixes `Fatal error: Declaration of CMB2_Type_Colorpicker::render() must be compatible with CMB2_Type_Text::render($args = Array)...`). ([#1070](https://github.com/CMB2/CMB2/issues/1070), [#1074](https://github.com/CMB2/CMB2/issues/1074), [#1075](https://github.com/CMB2/CMB2/issues/1075)).
|
16 |
+
|
17 |
+
## [2.2.6.2 - 2017-11-24](https://github.com/CMB2/CMB2/releases/tag/v2.2.6.2)
|
18 |
+
|
19 |
+
### Bug Fixes
|
20 |
+
|
21 |
+
* Fix another issue (introduced in 2.2.6) with repeatable fields not being able to save additional fields. Props [@anhskohbo](https://github.com/anhskohbo) ([#1059](https://github.com/CMB2/CMB2/pull/1059), [#1058](https://github.com/CMB2/CMB2/issues/1058)).
|
22 |
+
* Only dequeue `jw-cmb2-rgba-picker-js` script (and enqueue our `wp-color-picker-alpha`) if it is actually found.
|
23 |
+
|
24 |
+
## [2.2.6.1 - 2017-11-24](https://github.com/CMB2/CMB2/releases/tag/v2.2.6.1)
|
25 |
+
|
26 |
+
### Enhancements
|
27 |
+
|
28 |
+
* Merge in the [CMB2 RGBa Colorpicker](https://github.com/JayWood/CMB2_RGBa_Picker) field type functionality to the CMB2 colopicker field type. Adds the ability to add an alpha (transparency) slider to the colorpicker by adding the `'alpha'` option [to the field options array](https://github.com/CMB2/CMB2/blob/6fce2e7ba8f41345a23bc2064e30433bdb11c16c/example-functions.php#L263-L265). Thank you to [JayWood](https://github.com/JayWood) for his work on his custom field type.
|
29 |
+
|
30 |
+
### Bug Fixes
|
31 |
+
|
32 |
+
* Fix issue (introduced in 2.2.6) with complex fields set as repeatable not being able to save additional fields. Fixes [#1054](https://github.com/CMB2/CMB2/issues/1054).
|
33 |
+
|
34 |
+
## [2.2.6 - 2017-11-14](https://github.com/CMB2/CMB2/releases/tag/v2.2.6)
|
35 |
+
|
36 |
+
### Enhancements
|
37 |
+
|
38 |
+
* Move the fetching of group label and description to _after_ calling `'before_group'` parameter.
|
39 |
+
* Allow using the `'render_row_cb'` param for group fields. Fixes [#1041](https://github.com/CMB2/CMB2/issues/1041).
|
40 |
+
* Allow resetting cached CMB2 field objects (new 3rd parameter to `CMB2::get_field()`).
|
41 |
+
* Allow resetting cached callback results (`CMB2_Base::unset_param_callback_cache()`).
|
42 |
+
* Persian translation provided by [@reza-irdev](https://github.com/reza-irdev) ([#1046](https://github.com/CMB2/CMB2/issues/1046)).
|
43 |
+
* Added a `'message_cb'` box property, which allows defining a custom callback for adding options-save messages on `options-page` boxes. An example has been added to [example-functions.php](https://github.com/CMB2/CMB2/commit/43d513c135e52c327bafa06309821c29323ae2dd#diff-378c74d0ffffc1759b8779a135476777).
|
44 |
+
* Updated many the oembed-related unit tests to more reliably test the relevant parts, and not so much the actual success of the WordPress functions.
|
45 |
+
* Updated travis config to Install PHP5.2/5.3 on trusty for unit tests. Stolen from [gutenberg/pull/2049](https://github.com/WordPress/gutenberg/pull/2049). Intended to compensate for Travis removing support for PHP 5.2/5.3.
|
46 |
+
|
47 |
+
### Bug Fixes
|
48 |
+
|
49 |
+
* Ensure `'file'` field type ID is removed from the database if the `'file'` field type's value is empty ([Support thread](https://wordpress.org/support/topic/bug-field-of-type-file-does-not-delete-postmeta-properly/)).
|
50 |
+
* Fix JS errors when `user_can_richedit()` is false ("Disable the visual editor when writing" user option is checked, or various unsupported browsers). See [#1031](https://github.com/CMB2/CMB2/pull/1031).
|
51 |
+
* Fix issue where some European date formats (e.g. `F j, Y`) would not properly translate into jQuery UI date formats. [Support thread](https://wordpress.org/support/topic/using-wordpresss-date-time-format-settings)
|
52 |
+
* Fix repeating fields within repeating groups having the values/indexes incorrectly associated. Props [@daggerhart](https://github.com/daggerhart) ([#1047](https://github.com/CMB2/CMB2/pull/1047)). Fixes [#1035](https://github.com/CMB2/CMB2/issues/1035), [#348](https://github.com/CMB2/CMB2/issues/348).
|
53 |
+
* Fixed multiple update messages on settings pages when CMB2 option pages were registered ([#1049](https://github.com/CMB2/CMB2/issues/1049)).
|
54 |
+
* Fix issue where using multiple oembed fields could cause incorrectly cached arguments to be used.
|
55 |
+
* Fix bug where `'select_all_button' => false` was not working for `'taxonomy_multicheck'` field type ([#1005](https://github.com/CMB2/CMB2/issues/1005)).
|
56 |
+
|
57 |
+
## [2.2.5.3 - 2017-08-22](https://github.com/CMB2/CMB2/releases/tag/v2.2.5.3)
|
58 |
+
|
59 |
+
### Enhancements
|
60 |
+
|
61 |
+
* Update to instead initate CMB2 hookup via `"cmb2_init_hookup_{$cmb_id}"` hook. Allows plugins to unhook/rehook/etc.
|
62 |
|
63 |
### Bug Fixes
|
64 |
|
70 |
* Change the updated-settings notice query variable so that WordPress does not auto-add settings notices on top of ours.
|
71 |
* For settings pages, only output settings errors if WordPress does not do it by default (for sub-pages of `options-general.php`), and if the errors are not disabled via the `'disable_settings_errors'` box property.
|
72 |
|
73 |
+
## [2.2.5.2 - 2017-08-08](https://github.com/CMB2/CMB2/releases/tag/v2.2.5.2)
|
74 |
|
75 |
### Bug Fixes
|
76 |
|
77 |
* Fix issue in 2.2.5 with non-sortable repeatable groups not having new groups values be emptied on creation/clone. [Support thread](https://wordpress.org/support/topic/the-default-parameter-dont-work-in-group-fields/page/2/)
|
78 |
* Fix issue in 2.2.5 with options pages not saving when `'parent_slug'` box property was used. Fixes [#1008](https://github.com/CMB2/CMB2/issues/1008).
|
79 |
|
80 |
+
## [2.2.5.1 - 2017-08-07](https://github.com/CMB2/CMB2/releases/tag/v2.2.5.1)
|
81 |
|
82 |
### Bug Fixes
|
83 |
|
84 |
* Fix issue in 2.2.5 which caused empty repeatable groups having the buttons set to have a disabled "Remove Group" button. [Support thread](https://wordpress.org/support/topic/the-default-parameter-dont-work-in-group-fields/)
|
85 |
|
86 |
+
## [2.2.5 - 2017-08-07](https://github.com/CMB2/CMB2/releases/tag/v2.2.5)
|
87 |
|
88 |
### Enhancements
|
89 |
|
vendor/webdevstudios/cmb2/example-functions.php
CHANGED
@@ -24,9 +24,9 @@ if ( file_exists( dirname( __FILE__ ) . '/cmb2/init.php' ) ) {
|
|
24 |
/**
|
25 |
* Conditionally displays a metabox when used as a callback in the 'show_on_cb' cmb2_box parameter
|
26 |
*
|
27 |
-
* @param CMB2
|
28 |
*
|
29 |
-
* @return bool
|
30 |
*/
|
31 |
function yourprefix_show_if_front_page( $cmb ) {
|
32 |
// Don't show this metabox if it's not the front page template.
|
@@ -39,9 +39,9 @@ function yourprefix_show_if_front_page( $cmb ) {
|
|
39 |
/**
|
40 |
* Conditionally displays a field when used as a callback in the 'show_on_cb' field parameter
|
41 |
*
|
42 |
-
* @param CMB2_Field
|
43 |
*
|
44 |
-
* @return bool
|
45 |
*/
|
46 |
function yourprefix_hide_if_no_cats( $field ) {
|
47 |
// Don't show this field if not in the cats category.
|
@@ -91,8 +91,8 @@ function yourprefix_display_text_small_column( $field_args, $field ) {
|
|
91 |
/**
|
92 |
* Conditionally displays a message if the $post_id is 2
|
93 |
*
|
94 |
-
* @param array
|
95 |
-
* @param CMB2_Field
|
96 |
*/
|
97 |
function yourprefix_before_row_if_2( $field_args, $field ) {
|
98 |
if ( 2 == $field->object_id ) {
|
@@ -260,6 +260,9 @@ function yourprefix_register_demo_metabox() {
|
|
260 |
'id' => $prefix . 'colorpicker',
|
261 |
'type' => 'colorpicker',
|
262 |
'default' => '#ffffff',
|
|
|
|
|
|
|
263 |
// 'attributes' => array(
|
264 |
// 'data-colorpicker' => json_encode( array(
|
265 |
// 'palettes' => array( '#3dd0cc', '#ff834c', '#4fa2c0', '#0bc991', ),
|
@@ -666,6 +669,7 @@ function yourprefix_register_theme_options_metabox() {
|
|
666 |
// 'display_cb' => false, // Override the options-page form output (CMB2_Hookup::options_page_output()).
|
667 |
// 'save_button' => esc_html__( 'Save Theme Options', 'cmb2' ), // The text for the options-page save button. Defaults to 'Save'.
|
668 |
// 'disable_settings_errors' => true, // On settings pages (not options-general.php sub-pages), allows disabling.
|
|
|
669 |
) );
|
670 |
|
671 |
/**
|
@@ -683,6 +687,41 @@ function yourprefix_register_theme_options_metabox() {
|
|
683 |
|
684 |
}
|
685 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
686 |
/**
|
687 |
* Only show this box in the CMB2 REST API if the user is logged in.
|
688 |
*
|
24 |
/**
|
25 |
* Conditionally displays a metabox when used as a callback in the 'show_on_cb' cmb2_box parameter
|
26 |
*
|
27 |
+
* @param CMB2 $cmb CMB2 object.
|
28 |
*
|
29 |
+
* @return bool True if metabox should show
|
30 |
*/
|
31 |
function yourprefix_show_if_front_page( $cmb ) {
|
32 |
// Don't show this metabox if it's not the front page template.
|
39 |
/**
|
40 |
* Conditionally displays a field when used as a callback in the 'show_on_cb' field parameter
|
41 |
*
|
42 |
+
* @param CMB2_Field $field Field object.
|
43 |
*
|
44 |
+
* @return bool True if metabox should show
|
45 |
*/
|
46 |
function yourprefix_hide_if_no_cats( $field ) {
|
47 |
// Don't show this field if not in the cats category.
|
91 |
/**
|
92 |
* Conditionally displays a message if the $post_id is 2
|
93 |
*
|
94 |
+
* @param array $field_args Array of field parameters.
|
95 |
+
* @param CMB2_Field $field Field object.
|
96 |
*/
|
97 |
function yourprefix_before_row_if_2( $field_args, $field ) {
|
98 |
if ( 2 == $field->object_id ) {
|
260 |
'id' => $prefix . 'colorpicker',
|
261 |
'type' => 'colorpicker',
|
262 |
'default' => '#ffffff',
|
263 |
+
// 'options' => array(
|
264 |
+
// 'alpha' => true, // Make this a rgba color picker.
|
265 |
+
// ),
|
266 |
// 'attributes' => array(
|
267 |
// 'data-colorpicker' => json_encode( array(
|
268 |
// 'palettes' => array( '#3dd0cc', '#ff834c', '#4fa2c0', '#0bc991', ),
|
669 |
// 'display_cb' => false, // Override the options-page form output (CMB2_Hookup::options_page_output()).
|
670 |
// 'save_button' => esc_html__( 'Save Theme Options', 'cmb2' ), // The text for the options-page save button. Defaults to 'Save'.
|
671 |
// 'disable_settings_errors' => true, // On settings pages (not options-general.php sub-pages), allows disabling.
|
672 |
+
// 'message_cb' => 'yourprefix_options_page_message_callback',
|
673 |
) );
|
674 |
|
675 |
/**
|
687 |
|
688 |
}
|
689 |
|
690 |
+
/**
|
691 |
+
* Callback to define the optionss-saved message.
|
692 |
+
*
|
693 |
+
* @param CMB2 $cmb The CMB2 object.
|
694 |
+
* @param array $args {
|
695 |
+
* An array of message arguments
|
696 |
+
*
|
697 |
+
* @type bool $is_options_page Whether current page is this options page.
|
698 |
+
* @type bool $should_notify Whether options were saved and we should be notified.
|
699 |
+
* @type bool $is_updated Whether options were updated with save (or stayed the same).
|
700 |
+
* @type string $setting For add_settings_error(), Slug title of the setting to which
|
701 |
+
* this error applies.
|
702 |
+
* @type string $code For add_settings_error(), Slug-name to identify the error.
|
703 |
+
* Used as part of 'id' attribute in HTML output.
|
704 |
+
* @type string $message For add_settings_error(), The formatted message text to display
|
705 |
+
* to the user (will be shown inside styled `<div>` and `<p>` tags).
|
706 |
+
* Will be 'Settings updated.' if $is_updated is true, else 'Nothing to update.'
|
707 |
+
* @type string $type For add_settings_error(), Message type, controls HTML class.
|
708 |
+
* Accepts 'error', 'updated', '', 'notice-warning', etc.
|
709 |
+
* Will be 'updated' if $is_updated is true, else 'notice-warning'.
|
710 |
+
* }
|
711 |
+
*/
|
712 |
+
function yourprefix_options_page_message_callback( $cmb, $args ) {
|
713 |
+
if ( ! empty( $args['should_notify'] ) ) {
|
714 |
+
|
715 |
+
if ( $args['is_updated'] ) {
|
716 |
+
|
717 |
+
// Modify the updated message.
|
718 |
+
$args['message'] = sprintf( esc_html__( '%s — Updated!', 'cmb2' ), $cmb->prop( 'title' ) );
|
719 |
+
}
|
720 |
+
|
721 |
+
add_settings_error( $args['setting'], $args['code'], $args['message'], $args['type'] );
|
722 |
+
}
|
723 |
+
}
|
724 |
+
|
725 |
/**
|
726 |
* Only show this box in the CMB2 REST API if the user is logged in.
|
727 |
*
|
vendor/webdevstudios/cmb2/images/ico-delete.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/images/ui-bg_flat_75_ffffff_40x100.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/images/ui-bg_glass_65_ffffff_1x400.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/images/ui-bg_glass_75_dadada_1x400.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/images/ui-icons_222222_256x240.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/images/ui-icons_2e83ff_256x240.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/images/ui-icons_454545_256x240.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/images/ui-icons_888888_256x240.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/images/ui-icons_cd0a0a_256x240.png
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/includes/CMB2.php
CHANGED
@@ -110,6 +110,7 @@ class CMB2 extends CMB2_Base {
|
|
110 |
*/
|
111 |
|
112 |
// 'menu_title' => null, // Falls back to 'title' (above). Do not define here so we can set a fallback.
|
|
|
113 |
'option_key' => '', // The actual option key and admin menu page slug.
|
114 |
'parent_slug' => '', // Used as first param in add_submenu_page().
|
115 |
'capability' => 'manage_options', // Cap required to view options-page.
|
@@ -428,31 +429,55 @@ class CMB2 extends CMB2_Base {
|
|
428 |
}
|
429 |
|
430 |
/**
|
431 |
-
* Render a
|
432 |
*
|
433 |
-
* @param array $args Array of field arguments for a group field parent.
|
434 |
* @return CMB2_Field|null Group field object.
|
435 |
*/
|
436 |
public function render_group( $args ) {
|
|
|
437 |
|
438 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
439 |
return;
|
440 |
}
|
441 |
|
442 |
-
$field_group =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
443 |
|
444 |
// If field is requesting to be conditionally shown.
|
445 |
if ( ! $field_group || ! $field_group->should_show() ) {
|
446 |
return;
|
447 |
}
|
448 |
|
449 |
-
$desc = $field_group->args( 'description' );
|
450 |
-
$label = $field_group->args( 'name' );
|
451 |
-
$group_val = (array) $field_group->value();
|
452 |
$field_group->index = 0;
|
453 |
|
454 |
$field_group->peform_param_callback( 'before_group' );
|
455 |
|
|
|
|
|
|
|
|
|
456 |
echo '<div class="cmb-row cmb-repeat-group-wrap ', esc_attr( $field_group->row_classes() ), '" data-fieldtype="group"><div class="cmb-td"><div data-groupid="', esc_attr( $field_group->id() ), '" id="', esc_attr( $field_group->id() ), '_repeat" ', $this->group_wrap_attributes( $field_group ), '>';
|
457 |
|
458 |
if ( $desc || $label ) {
|
@@ -1270,11 +1295,14 @@ class CMB2 extends CMB2_Base {
|
|
1270 |
* Get a field object
|
1271 |
*
|
1272 |
* @since 2.0.3
|
1273 |
-
* @param string|array|CMB2_Field $field
|
1274 |
-
* @param CMB2_Field|null $field_group
|
|
|
|
|
|
|
1275 |
* @return CMB2_Field|false CMB2_Field object (or false).
|
1276 |
*/
|
1277 |
-
public function get_field( $field, $field_group = null ) {
|
1278 |
if ( $field instanceof CMB2_Field ) {
|
1279 |
return $field;
|
1280 |
}
|
@@ -1291,7 +1319,8 @@ class CMB2 extends CMB2_Base {
|
|
1291 |
list( $field_id, $sub_field_id ) = $ids;
|
1292 |
|
1293 |
$index = implode( '', $ids ) . ( $field_group ? $field_group->index : '' );
|
1294 |
-
|
|
|
1295 |
return $this->fields[ $index ];
|
1296 |
}
|
1297 |
|
@@ -1411,6 +1440,18 @@ class CMB2 extends CMB2_Base {
|
|
1411 |
// Initiate oembed Ajax hooks.
|
1412 |
cmb2_ajax();
|
1413 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1414 |
}
|
1415 |
|
1416 |
if ( isset( $field['column'] ) && false !== $field['column'] ) {
|
@@ -1615,11 +1656,12 @@ class CMB2 extends CMB2_Base {
|
|
1615 |
* Handles metabox property callbacks, and passes this $cmb object as property.
|
1616 |
*
|
1617 |
* @since 2.2.3
|
1618 |
-
* @param callable $cb
|
1619 |
-
* @
|
|
|
1620 |
*/
|
1621 |
-
|
1622 |
-
return call_user_func( $cb, $this );
|
1623 |
}
|
1624 |
|
1625 |
/**
|
110 |
*/
|
111 |
|
112 |
// 'menu_title' => null, // Falls back to 'title' (above). Do not define here so we can set a fallback.
|
113 |
+
'message_cb' => '', // Optionally define the options-save message (via a callback).
|
114 |
'option_key' => '', // The actual option key and admin menu page slug.
|
115 |
'parent_slug' => '', // Used as first param in add_submenu_page().
|
116 |
'capability' => 'manage_options', // Cap required to view options-page.
|
429 |
}
|
430 |
|
431 |
/**
|
432 |
+
* Render a group of fields.
|
433 |
*
|
434 |
+
* @param array|CMB2_Field $args Array of field arguments for a group field parent or the group parent field.
|
435 |
* @return CMB2_Field|null Group field object.
|
436 |
*/
|
437 |
public function render_group( $args ) {
|
438 |
+
$field_group = false;
|
439 |
|
440 |
+
if ( $args instanceof CMB2_Field ) {
|
441 |
+
$field_group = 'group' === $args->type() ? $args : false;
|
442 |
+
} elseif ( isset( $args['id'], $args['fields'] ) && is_array( $args['fields'] ) ) {
|
443 |
+
$field_group = $this->get_field( $args );
|
444 |
+
}
|
445 |
+
|
446 |
+
if ( ! $field_group ) {
|
447 |
return;
|
448 |
}
|
449 |
|
450 |
+
$field_group->render_context = 'edit';
|
451 |
+
$field_group->peform_param_callback( 'render_row_cb' );
|
452 |
+
|
453 |
+
return $field_group;
|
454 |
+
}
|
455 |
+
|
456 |
+
/**
|
457 |
+
* The default callback to render a group of fields.
|
458 |
+
*
|
459 |
+
* @since 2.2.6
|
460 |
+
*
|
461 |
+
* @param array $field_args Array of field arguments for the group field parent.
|
462 |
+
* @param CMB2_Field $field_group The CMB2_Field group object.
|
463 |
+
*
|
464 |
+
* @return CMB2_Field|null Group field object.
|
465 |
+
*/
|
466 |
+
public function render_group_callback( $field_args, $field_group ) {
|
467 |
|
468 |
// If field is requesting to be conditionally shown.
|
469 |
if ( ! $field_group || ! $field_group->should_show() ) {
|
470 |
return;
|
471 |
}
|
472 |
|
|
|
|
|
|
|
473 |
$field_group->index = 0;
|
474 |
|
475 |
$field_group->peform_param_callback( 'before_group' );
|
476 |
|
477 |
+
$desc = $field_group->args( 'description' );
|
478 |
+
$label = $field_group->args( 'name' );
|
479 |
+
$group_val = (array) $field_group->value();
|
480 |
+
|
481 |
echo '<div class="cmb-row cmb-repeat-group-wrap ', esc_attr( $field_group->row_classes() ), '" data-fieldtype="group"><div class="cmb-td"><div data-groupid="', esc_attr( $field_group->id() ), '" id="', esc_attr( $field_group->id() ), '_repeat" ', $this->group_wrap_attributes( $field_group ), '>';
|
482 |
|
483 |
if ( $desc || $label ) {
|
1295 |
* Get a field object
|
1296 |
*
|
1297 |
* @since 2.0.3
|
1298 |
+
* @param string|array|CMB2_Field $field Metabox field id or field config array or CMB2_Field object.
|
1299 |
+
* @param CMB2_Field|null $field_group (optional) CMB2_Field object (group parent).
|
1300 |
+
* @param bool $reset_cached (optional) Reset the internal cache for this field object.
|
1301 |
+
* Use sparingly.
|
1302 |
+
*
|
1303 |
* @return CMB2_Field|false CMB2_Field object (or false).
|
1304 |
*/
|
1305 |
+
public function get_field( $field, $field_group = null, $reset_cached = false ) {
|
1306 |
if ( $field instanceof CMB2_Field ) {
|
1307 |
return $field;
|
1308 |
}
|
1319 |
list( $field_id, $sub_field_id ) = $ids;
|
1320 |
|
1321 |
$index = implode( '', $ids ) . ( $field_group ? $field_group->index : '' );
|
1322 |
+
|
1323 |
+
if ( array_key_exists( $index, $this->fields ) && ! $reset_cached ) {
|
1324 |
return $this->fields[ $index ];
|
1325 |
}
|
1326 |
|
1440 |
// Initiate oembed Ajax hooks.
|
1441 |
cmb2_ajax();
|
1442 |
break;
|
1443 |
+
|
1444 |
+
case 'group':
|
1445 |
+
if ( empty( $field['render_row_cb'] ) ) {
|
1446 |
+
$field['render_row_cb'] = array( $this, 'render_group_callback' );
|
1447 |
+
}
|
1448 |
+
break;
|
1449 |
+
case 'colorpicker':
|
1450 |
+
// https://github.com/JayWood/CMB2_RGBa_Picker
|
1451 |
+
// Dequeue the rgba_colorpicker custom field script if it is used,
|
1452 |
+
// since we now enqueue our own more current version.
|
1453 |
+
add_action( 'admin_enqueue_scripts', array( 'CMB2_Type_Colorpicker', 'dequeue_rgba_colorpicker_script' ), 99 );
|
1454 |
+
break;
|
1455 |
}
|
1456 |
|
1457 |
if ( isset( $field['column'] ) && false !== $field['column'] ) {
|
1656 |
* Handles metabox property callbacks, and passes this $cmb object as property.
|
1657 |
*
|
1658 |
* @since 2.2.3
|
1659 |
+
* @param callable $cb The callback method/function/closure
|
1660 |
+
* @param mixed $additional_params Any additoinal parameters which should be passed to the callback.
|
1661 |
+
* @return mixed Return of the callback function.
|
1662 |
*/
|
1663 |
+
public function do_callback( $cb, $additional_params = null ) {
|
1664 |
+
return call_user_func( $cb, $this, $additional_params );
|
1665 |
}
|
1666 |
|
1667 |
/**
|
vendor/webdevstudios/cmb2/includes/CMB2_Ajax.php
CHANGED
@@ -117,14 +117,14 @@ class CMB2_Ajax {
|
|
117 |
|
118 |
$args = wp_parse_args( $args, array(
|
119 |
'object_type' => 'post',
|
120 |
-
'oembed_args' =>
|
121 |
'field_id' => false,
|
122 |
'wp_error' => false,
|
123 |
) );
|
124 |
|
125 |
$this->embed_args =& $args;
|
126 |
|
127 |
-
|
128 |
* Set the post_ID so oEmbed won't fail
|
129 |
* wp-includes/class-wp-embed.php, WP_Embed::shortcode()
|
130 |
*/
|
@@ -267,7 +267,7 @@ class CMB2_Ajax {
|
|
267 |
} else {
|
268 |
|
269 |
$args = array( $this->object_type, $this->object_id, $meta_key );
|
270 |
-
$args[] = 'update' === $action ? $func_args : true;
|
271 |
|
272 |
// Cache the result to our metadata
|
273 |
$status = call_user_func_array( $action . '_metadata', $args );
|
117 |
|
118 |
$args = wp_parse_args( $args, array(
|
119 |
'object_type' => 'post',
|
120 |
+
'oembed_args' => array(),
|
121 |
'field_id' => false,
|
122 |
'wp_error' => false,
|
123 |
) );
|
124 |
|
125 |
$this->embed_args =& $args;
|
126 |
|
127 |
+
/*
|
128 |
* Set the post_ID so oEmbed won't fail
|
129 |
* wp-includes/class-wp-embed.php, WP_Embed::shortcode()
|
130 |
*/
|
267 |
} else {
|
268 |
|
269 |
$args = array( $this->object_type, $this->object_id, $meta_key );
|
270 |
+
$args[] = 'update' === $action ? $func_args[1] : true;
|
271 |
|
272 |
// Cache the result to our metadata
|
273 |
$status = call_user_func_array( $action . '_metadata', $args );
|
vendor/webdevstudios/cmb2/includes/CMB2_Base.php
CHANGED
@@ -288,15 +288,31 @@ abstract class CMB2_Base {
|
|
288 |
return $this->callback_results[ $param ];
|
289 |
}
|
290 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
291 |
/**
|
292 |
* Handles the parameter callbacks, and passes this object as parameter.
|
293 |
*
|
294 |
* @since 2.2.3
|
295 |
-
* @param callable $cb
|
296 |
-
* @
|
|
|
297 |
*/
|
298 |
-
protected function do_callback( $cb ) {
|
299 |
-
return call_user_func( $cb, $this->{$this->properties_name}, $this );
|
300 |
}
|
301 |
|
302 |
/**
|
288 |
return $this->callback_results[ $param ];
|
289 |
}
|
290 |
|
291 |
+
/**
|
292 |
+
* Unset the cached results of the param callback.
|
293 |
+
*
|
294 |
+
* @since 2.2.6
|
295 |
+
* @param string $param Field parameter
|
296 |
+
* @return CMB2_Base
|
297 |
+
*/
|
298 |
+
public function unset_param_callback_cache( $param ) {
|
299 |
+
if ( isset( $this->callback_results[ $param ] ) ) {
|
300 |
+
unset( $this->callback_results[ $param ] );
|
301 |
+
}
|
302 |
+
|
303 |
+
return $this;
|
304 |
+
}
|
305 |
+
|
306 |
/**
|
307 |
* Handles the parameter callbacks, and passes this object as parameter.
|
308 |
*
|
309 |
* @since 2.2.3
|
310 |
+
* @param callable $cb The callback method/function/closure
|
311 |
+
* @param mixed $additional_params Any additoinal parameters which should be passed to the callback.
|
312 |
+
* @return mixed Return of the callback function.
|
313 |
*/
|
314 |
+
protected function do_callback( $cb, $additional_params = null ) {
|
315 |
+
return call_user_func( $cb, $this->{$this->properties_name}, $this, $additional_params );
|
316 |
}
|
317 |
|
318 |
/**
|
vendor/webdevstudios/cmb2/includes/CMB2_Field.php
CHANGED
@@ -654,6 +654,42 @@ class CMB2_Field extends CMB2_Base {
|
|
654 |
return isset( $all_fields[ $type ] );
|
655 |
}
|
656 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
657 |
/**
|
658 |
* Escape the value before output. Defaults to 'esc_attr()'
|
659 |
*
|
@@ -1100,63 +1136,31 @@ class CMB2_Field extends CMB2_Base {
|
|
1100 |
* @return mixed Default field value
|
1101 |
*/
|
1102 |
public function get_default() {
|
1103 |
-
|
1104 |
-
|
|
|
|
|
1105 |
}
|
1106 |
|
1107 |
$param = is_callable( $this->args['default_cb'] ) ? 'default_cb' : 'default';
|
1108 |
-
$default = $this->get_param_callback_result( $param );
|
1109 |
-
|
1110 |
-
// Allow a filter override of the default value
|
1111 |
-
$this->args['default'] = apply_filters( 'cmb2_default_filter', $default, $this );
|
1112 |
|
1113 |
-
|
|
|
1114 |
}
|
1115 |
|
1116 |
/**
|
1117 |
* Fills in empty field parameters with defaults
|
1118 |
*
|
1119 |
* @since 1.1.0
|
1120 |
-
*
|
1121 |
-
* @param
|
|
|
1122 |
*/
|
1123 |
public function _set_field_defaults( $args ) {
|
1124 |
|
1125 |
// Set up blank or default values for empty ones
|
1126 |
-
$args = wp_parse_args( $args,
|
1127 |
-
'type' => '',
|
1128 |
-
'name' => '',
|
1129 |
-
'desc' => '',
|
1130 |
-
'before' => '',
|
1131 |
-
'after' => '',
|
1132 |
-
'options' => array(),
|
1133 |
-
'options_cb' => '',
|
1134 |
-
'text' => array(),
|
1135 |
-
'text_cb' => '',
|
1136 |
-
'attributes' => array(),
|
1137 |
-
'protocols' => null,
|
1138 |
-
'default' => null,
|
1139 |
-
'default_cb' => '',
|
1140 |
-
'classes' => null,
|
1141 |
-
'classes_cb' => '',
|
1142 |
-
'select_all_button' => true,
|
1143 |
-
'multiple' => false,
|
1144 |
-
'repeatable' => isset( $args['type'] ) && 'group' == $args['type'],
|
1145 |
-
'inline' => false,
|
1146 |
-
'on_front' => true,
|
1147 |
-
'show_names' => true,
|
1148 |
-
'save_field' => true, // Will not save if false
|
1149 |
-
'date_format' => 'm\/d\/Y',
|
1150 |
-
'time_format' => 'h:i A',
|
1151 |
-
'description' => isset( $args['desc'] ) ? $args['desc'] : '',
|
1152 |
-
'preview_size' => 'file' == $args['type'] ? array( 350, 350 ) : array( 50, 50 ),
|
1153 |
-
'render_row_cb' => array( $this, 'render_field_callback' ),
|
1154 |
-
'display_cb' => array( $this, 'display_value_callback' ),
|
1155 |
-
'label_cb' => 'title' != $args['type'] ? array( $this, 'label' ) : '',
|
1156 |
-
'column' => false,
|
1157 |
-
'js_dependencies' => array(),
|
1158 |
-
'show_in_rest' => null,
|
1159 |
-
) );
|
1160 |
|
1161 |
/*
|
1162 |
* Deprecated usage:
|
@@ -1169,37 +1173,15 @@ class CMB2_Field extends CMB2_Base {
|
|
1169 |
|
1170 |
$args['repeatable'] = $args['repeatable'] && ! $this->repeatable_exception( $args['type'] );
|
1171 |
$args['inline'] = $args['inline'] || false !== stripos( $args['type'], '_inline' );
|
1172 |
-
|
1173 |
-
$args['options'] = 'group' == $args['type'] ? wp_parse_args( $args['options'], array(
|
1174 |
-
'add_button' => esc_html__( 'Add Group', 'cmb2' ),
|
1175 |
-
'remove_button' => esc_html__( 'Remove Group', 'cmb2' ),
|
1176 |
-
) ) : $args['options'];
|
1177 |
-
|
1178 |
$args['_id'] = $args['id'];
|
1179 |
$args['_name'] = $args['id'];
|
1180 |
|
1181 |
-
if ( $this->
|
1182 |
-
|
1183 |
-
$args['id'] = $this->group->args( 'id' ) . '_' . $this->group->index . '_' . $args['id'];
|
1184 |
-
$args['_name'] = $this->group->args( 'id' ) . '[' . $this->group->index . '][' . $args['_name'] . ']';
|
1185 |
-
}
|
1186 |
-
|
1187 |
-
if ( 'wysiwyg' == $args['type'] ) {
|
1188 |
-
$args['id'] = strtolower( str_ireplace( '-', '_', $args['id'] ) );
|
1189 |
-
$args['options']['textarea_name'] = $args['_name'];
|
1190 |
}
|
1191 |
|
1192 |
-
|
1193 |
-
|
1194 |
-
if ( in_array( $args['type'], $option_types, true ) ) {
|
1195 |
-
|
1196 |
-
$args['show_option_none'] = isset( $args['show_option_none'] ) ? $args['show_option_none'] : null;
|
1197 |
-
$args['show_option_none'] = true === $args['show_option_none'] ? esc_html__( 'None', 'cmb2' ) : $args['show_option_none'];
|
1198 |
-
|
1199 |
-
if ( null === $args['show_option_none'] ) {
|
1200 |
-
$off_by_default = in_array( $args['type'], array( 'select', 'radio', 'radio_inline' ), true );
|
1201 |
-
$args['show_option_none'] = $off_by_default ? false : esc_html__( 'None', 'cmb2' );
|
1202 |
-
}
|
1203 |
}
|
1204 |
|
1205 |
$args['has_supporting_data'] = in_array(
|
@@ -1216,6 +1198,120 @@ class CMB2_Field extends CMB2_Base {
|
|
1216 |
return $args;
|
1217 |
}
|
1218 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1219 |
/**
|
1220 |
* Get default field arguments specific to this CMB2 object.
|
1221 |
*
|
654 |
return isset( $all_fields[ $type ] );
|
655 |
}
|
656 |
|
657 |
+
/**
|
658 |
+
* Determine if current type has its own defaults field-arguments method.
|
659 |
+
*
|
660 |
+
* @since 2.2.6
|
661 |
+
* @param string $type Field type to check
|
662 |
+
* @return bool True if has own method.
|
663 |
+
*/
|
664 |
+
public function has_args_method( $type ) {
|
665 |
+
|
666 |
+
// These types have their own arguments parser.
|
667 |
+
$type_methods = array(
|
668 |
+
'group' => 'set_field_defaults_group',
|
669 |
+
'wysiwyg' => 'set_field_defaults_wysiwyg',
|
670 |
+
);
|
671 |
+
|
672 |
+
if ( isset( $type_methods[ $type ] ) ) {
|
673 |
+
return $type_methods[ $type ];
|
674 |
+
}
|
675 |
+
|
676 |
+
$all_or_nothing_types = array_flip( apply_filters( 'cmb2_all_or_nothing_types', array(
|
677 |
+
'select',
|
678 |
+
'radio',
|
679 |
+
'radio_inline',
|
680 |
+
'taxonomy_select',
|
681 |
+
'taxonomy_radio',
|
682 |
+
'taxonomy_radio_inline',
|
683 |
+
'taxonomy_radio_hierarchical',
|
684 |
+
), $this ) );
|
685 |
+
|
686 |
+
if ( isset( $all_or_nothing_types[ $type ] ) ) {
|
687 |
+
return 'set_field_defaults_all_or_nothing_types';
|
688 |
+
}
|
689 |
+
|
690 |
+
return false;
|
691 |
+
}
|
692 |
+
|
693 |
/**
|
694 |
* Escape the value before output. Defaults to 'esc_attr()'
|
695 |
*
|
1136 |
* @return mixed Default field value
|
1137 |
*/
|
1138 |
public function get_default() {
|
1139 |
+
$default = $this->args['default'];
|
1140 |
+
|
1141 |
+
if ( null !== $default ) {
|
1142 |
+
return apply_filters( 'cmb2_default_filter', $default, $this );
|
1143 |
}
|
1144 |
|
1145 |
$param = is_callable( $this->args['default_cb'] ) ? 'default_cb' : 'default';
|
1146 |
+
$default = $this->args['default'] = $this->get_param_callback_result( $param );
|
|
|
|
|
|
|
1147 |
|
1148 |
+
// Allow a filter override of the default value.
|
1149 |
+
return apply_filters( 'cmb2_default_filter', $this->args['default'], $this );
|
1150 |
}
|
1151 |
|
1152 |
/**
|
1153 |
* Fills in empty field parameters with defaults
|
1154 |
*
|
1155 |
* @since 1.1.0
|
1156 |
+
*
|
1157 |
+
* @param array $args Field config array.
|
1158 |
+
* @return array Modified field config array.
|
1159 |
*/
|
1160 |
public function _set_field_defaults( $args ) {
|
1161 |
|
1162 |
// Set up blank or default values for empty ones
|
1163 |
+
$args = wp_parse_args( $args, $this->get_default_field_args( $args ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1164 |
|
1165 |
/*
|
1166 |
* Deprecated usage:
|
1173 |
|
1174 |
$args['repeatable'] = $args['repeatable'] && ! $this->repeatable_exception( $args['type'] );
|
1175 |
$args['inline'] = $args['inline'] || false !== stripos( $args['type'], '_inline' );
|
|
|
|
|
|
|
|
|
|
|
|
|
1176 |
$args['_id'] = $args['id'];
|
1177 |
$args['_name'] = $args['id'];
|
1178 |
|
1179 |
+
if ( $method = $this->has_args_method( $args['type'] ) ) {
|
1180 |
+
$args = $this->{$method}( $args );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1181 |
}
|
1182 |
|
1183 |
+
if ( $this->group ) {
|
1184 |
+
$args = $this->set_group_sub_field_defaults( $args );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1185 |
}
|
1186 |
|
1187 |
$args['has_supporting_data'] = in_array(
|
1198 |
return $args;
|
1199 |
}
|
1200 |
|
1201 |
+
/**
|
1202 |
+
* Sets default arguments for the group field types.
|
1203 |
+
*
|
1204 |
+
* @since 2.2.6
|
1205 |
+
*
|
1206 |
+
* @param array $args Field config array.
|
1207 |
+
* @return array Modified field config array.
|
1208 |
+
*/
|
1209 |
+
protected function set_field_defaults_group( $args ) {
|
1210 |
+
$args['options'] = wp_parse_args( $args['options'], array(
|
1211 |
+
'add_button' => esc_html__( 'Add Group', 'cmb2' ),
|
1212 |
+
'remove_button' => esc_html__( 'Remove Group', 'cmb2' ),
|
1213 |
+
) );
|
1214 |
+
|
1215 |
+
return $args;
|
1216 |
+
}
|
1217 |
+
|
1218 |
+
/**
|
1219 |
+
* Sets default arguments for the wysiwyg field types.
|
1220 |
+
*
|
1221 |
+
* @since 2.2.6
|
1222 |
+
*
|
1223 |
+
* @param array $args Field config array.
|
1224 |
+
* @return array Modified field config array.
|
1225 |
+
*/
|
1226 |
+
protected function set_field_defaults_wysiwyg( $args ) {
|
1227 |
+
$args['id'] = strtolower( str_ireplace( '-', '_', $args['id'] ) );
|
1228 |
+
$args['options']['textarea_name'] = $args['_name'];
|
1229 |
+
|
1230 |
+
return $args;
|
1231 |
+
}
|
1232 |
+
|
1233 |
+
/**
|
1234 |
+
* Sets default arguments for the all-or-nothing field types.
|
1235 |
+
*
|
1236 |
+
* @since 2.2.6
|
1237 |
+
*
|
1238 |
+
* @param array $args Field config array.
|
1239 |
+
* @return array Modified field config array.
|
1240 |
+
*/
|
1241 |
+
protected function set_field_defaults_all_or_nothing_types( $args ) {
|
1242 |
+
$args['show_option_none'] = isset( $args['show_option_none'] ) ? $args['show_option_none'] : null;
|
1243 |
+
$args['show_option_none'] = true === $args['show_option_none'] ? esc_html__( 'None', 'cmb2' ) : $args['show_option_none'];
|
1244 |
+
|
1245 |
+
if ( null === $args['show_option_none'] ) {
|
1246 |
+
$off_by_default = in_array( $args['type'], array( 'select', 'radio', 'radio_inline' ), true );
|
1247 |
+
$args['show_option_none'] = $off_by_default ? false : esc_html__( 'None', 'cmb2' );
|
1248 |
+
}
|
1249 |
+
|
1250 |
+
return $args;
|
1251 |
+
}
|
1252 |
+
|
1253 |
+
/**
|
1254 |
+
* Sets default arguments for group sub-fields.
|
1255 |
+
*
|
1256 |
+
* @since 2.2.6
|
1257 |
+
*
|
1258 |
+
* @param array $args Field config array.
|
1259 |
+
* @return array Modified field config array.
|
1260 |
+
*/
|
1261 |
+
protected function set_group_sub_field_defaults( $args ) {
|
1262 |
+
$args['id'] = $this->group->args( 'id' ) . '_' . $this->group->index . '_' . $args['id'];
|
1263 |
+
$args['_name'] = $this->group->args( 'id' ) . '[' . $this->group->index . '][' . $args['_name'] . ']';
|
1264 |
+
|
1265 |
+
return $args;
|
1266 |
+
}
|
1267 |
+
|
1268 |
+
/**
|
1269 |
+
* Gets the default arguments for all fields.
|
1270 |
+
*
|
1271 |
+
* @since 2.2.6
|
1272 |
+
*
|
1273 |
+
* @param array $args Field config array.
|
1274 |
+
* @return array Field defaults.
|
1275 |
+
*/
|
1276 |
+
protected function get_default_field_args( $args ) {
|
1277 |
+
$type = isset( $args['type'] ) ? $args['type'] : '';
|
1278 |
+
|
1279 |
+
return array(
|
1280 |
+
'type' => $type,
|
1281 |
+
'name' => '',
|
1282 |
+
'desc' => '',
|
1283 |
+
'before' => '',
|
1284 |
+
'after' => '',
|
1285 |
+
'options' => array(),
|
1286 |
+
'options_cb' => '',
|
1287 |
+
'text' => array(),
|
1288 |
+
'text_cb' => '',
|
1289 |
+
'attributes' => array(),
|
1290 |
+
'protocols' => null,
|
1291 |
+
'default' => null,
|
1292 |
+
'default_cb' => '',
|
1293 |
+
'classes' => null,
|
1294 |
+
'classes_cb' => '',
|
1295 |
+
'select_all_button' => true,
|
1296 |
+
'multiple' => false,
|
1297 |
+
'repeatable' => 'group' === $type,
|
1298 |
+
'inline' => false,
|
1299 |
+
'on_front' => true,
|
1300 |
+
'show_names' => true,
|
1301 |
+
'save_field' => true, // Will not save if false
|
1302 |
+
'date_format' => 'm\/d\/Y',
|
1303 |
+
'time_format' => 'h:i A',
|
1304 |
+
'description' => isset( $args['desc'] ) ? $args['desc'] : '',
|
1305 |
+
'preview_size' => 'file' === $type ? array( 350, 350 ) : array( 50, 50 ),
|
1306 |
+
'render_row_cb' => array( $this, 'render_field_callback' ),
|
1307 |
+
'display_cb' => array( $this, 'display_value_callback' ),
|
1308 |
+
'label_cb' => 'title' !== $type ? array( $this, 'label' ) : '',
|
1309 |
+
'column' => false,
|
1310 |
+
'js_dependencies' => array(),
|
1311 |
+
'show_in_rest' => null,
|
1312 |
+
);
|
1313 |
+
}
|
1314 |
+
|
1315 |
/**
|
1316 |
* Get default field arguments specific to this CMB2 object.
|
1317 |
*
|
vendor/webdevstudios/cmb2/includes/CMB2_JS.php
CHANGED
@@ -63,8 +63,14 @@ class CMB2_JS {
|
|
63 |
$min = $debug ? '' : '.min';
|
64 |
|
65 |
// if colorpicker
|
66 |
-
if (
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
}
|
69 |
|
70 |
// if file/file_list
|
@@ -75,7 +81,7 @@ class CMB2_JS {
|
|
75 |
|
76 |
// if timepicker
|
77 |
if ( isset( $dependencies['jquery-ui-datetimepicker'] ) ) {
|
78 |
-
|
79 |
}
|
80 |
|
81 |
// if cmb2-wysiwyg
|
@@ -95,6 +101,36 @@ class CMB2_JS {
|
|
95 |
do_action( 'cmb2_footer_enqueue' );
|
96 |
}
|
97 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
/**
|
99 |
* We need to register colorpicker on the front-end
|
100 |
*
|
@@ -124,12 +160,13 @@ class CMB2_JS {
|
|
124 |
|
125 |
$localized = true;
|
126 |
$l10n = array(
|
127 |
-
'ajax_nonce'
|
128 |
-
'ajaxurl'
|
129 |
-
'script_debug'
|
130 |
-
'up_arrow_class'
|
131 |
-
'down_arrow_class'
|
132 |
-
'
|
|
|
133 |
'color_picker' => false,
|
134 |
'date_picker' => array(
|
135 |
'changeMonth' => true,
|
63 |
$min = $debug ? '' : '.min';
|
64 |
|
65 |
// if colorpicker
|
66 |
+
if ( isset( $dependencies['wp-color-picker'] ) ) {
|
67 |
+
if ( ! is_admin() ) {
|
68 |
+
self::colorpicker_frontend();
|
69 |
+
}
|
70 |
+
|
71 |
+
if ( isset( $dependencies['wp-color-picker-alpha'] ) ) {
|
72 |
+
self::register_colorpicker_alpha();
|
73 |
+
}
|
74 |
}
|
75 |
|
76 |
// if file/file_list
|
81 |
|
82 |
// if timepicker
|
83 |
if ( isset( $dependencies['jquery-ui-datetimepicker'] ) ) {
|
84 |
+
self::register_datetimepicker();
|
85 |
}
|
86 |
|
87 |
// if cmb2-wysiwyg
|
101 |
do_action( 'cmb2_footer_enqueue' );
|
102 |
}
|
103 |
|
104 |
+
/**
|
105 |
+
* Register or enqueue the wp-color-picker-alpha script.
|
106 |
+
*
|
107 |
+
* @since 2.2.7
|
108 |
+
*
|
109 |
+
* @param boolean $enqueue
|
110 |
+
*
|
111 |
+
* @return void
|
112 |
+
*/
|
113 |
+
public static function register_colorpicker_alpha( $enqueue = false ) {
|
114 |
+
// Only use minified files if SCRIPT_DEBUG is off
|
115 |
+
$min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
116 |
+
$func = $enqueue ? 'wp_enqueue_script' : 'wp_register_script';
|
117 |
+
$func( 'wp-color-picker-alpha', CMB2_Utils::url( "js/wp-color-picker-alpha{$min}.js" ), array( 'wp-color-picker' ), '2.1.3' );
|
118 |
+
}
|
119 |
+
|
120 |
+
/**
|
121 |
+
* Register or enqueue the jquery-ui-datetimepicker script.
|
122 |
+
*
|
123 |
+
* @since 2.2.7
|
124 |
+
*
|
125 |
+
* @param boolean $enqueue
|
126 |
+
*
|
127 |
+
* @return void
|
128 |
+
*/
|
129 |
+
public static function register_datetimepicker( $enqueue = false ) {
|
130 |
+
$func = $enqueue ? 'wp_enqueue_script' : 'wp_register_script';
|
131 |
+
$func( 'jquery-ui-datetimepicker', CMB2_Utils::url( 'js/jquery-ui-timepicker-addon.min.js' ), array( 'jquery-ui-slider' ), '1.5.0' );
|
132 |
+
}
|
133 |
+
|
134 |
/**
|
135 |
* We need to register colorpicker on the front-end
|
136 |
*
|
160 |
|
161 |
$localized = true;
|
162 |
$l10n = array(
|
163 |
+
'ajax_nonce' => wp_create_nonce( 'ajax_nonce' ),
|
164 |
+
'ajaxurl' => admin_url( '/admin-ajax.php' ),
|
165 |
+
'script_debug' => $debug,
|
166 |
+
'up_arrow_class' => 'dashicons dashicons-arrow-up-alt2',
|
167 |
+
'down_arrow_class' => 'dashicons dashicons-arrow-down-alt2',
|
168 |
+
'user_can_richedit' => user_can_richedit(),
|
169 |
+
'defaults' => array(
|
170 |
'color_picker' => false,
|
171 |
'date_picker' => array(
|
172 |
'changeMonth' => true,
|
vendor/webdevstudios/cmb2/includes/CMB2_Options_Hookup.php
CHANGED
@@ -106,12 +106,65 @@ class CMB2_Options_Hookup extends CMB2_hookup {
|
|
106 |
add_action( "admin_print_styles-{$page_hook}", array( 'CMB2_hookup', 'enqueue_cmb_css' ) );
|
107 |
}
|
108 |
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
}
|
116 |
}
|
117 |
|
@@ -154,7 +207,7 @@ class CMB2_Options_Hookup extends CMB2_hookup {
|
|
154 |
global $parent_file;
|
155 |
|
156 |
// The settings sub-pages will already have settings_errors() called in wp-admin/options-head.php
|
157 |
-
if ( 'options-general.php' !== $parent_file
|
158 |
settings_errors( "{$this->option_key}-notices" );
|
159 |
}
|
160 |
}
|
106 |
add_action( "admin_print_styles-{$page_hook}", array( 'CMB2_hookup', 'enqueue_cmb_css' ) );
|
107 |
}
|
108 |
|
109 |
+
$this->maybe_register_message();
|
110 |
+
}
|
111 |
+
|
112 |
+
/**
|
113 |
+
* If there is a message callback, let it determine how to register the message,
|
114 |
+
* else add a settings message if on this settings page.
|
115 |
+
*
|
116 |
+
* @since 2.2.6
|
117 |
+
*
|
118 |
+
* @return void
|
119 |
+
*/
|
120 |
+
public function maybe_register_message() {
|
121 |
+
$is_options_page = isset( $_GET['page'] ) && $this->option_key === $_GET['page'];
|
122 |
+
$should_notify = ! $this->cmb->prop( 'disable_settings_errors' ) && isset( $_GET['settings-updated'] ) && $is_options_page;
|
123 |
+
$is_updated = $should_notify && 'true' === $_GET['settings-updated'];
|
124 |
+
$setting = "{$this->option_key}-notices";
|
125 |
+
$code = '';
|
126 |
+
$message = __( 'Nothing to update.', 'cmb2' );
|
127 |
+
$type = 'notice-warning';
|
128 |
+
|
129 |
+
if ( $is_updated ) {
|
130 |
+
$message = __( 'Settings updated.', 'cmb2' );
|
131 |
+
$type = 'updated';
|
132 |
+
}
|
133 |
+
|
134 |
+
// Check if parameter has registered a callback.
|
135 |
+
if ( $cb = $this->cmb->maybe_callback( 'message_cb' ) ) {
|
136 |
+
|
137 |
+
/**
|
138 |
+
* The 'message_cb' callback will receive the following parameters.
|
139 |
+
* Unless there are other reasons for notifications, the callback should only
|
140 |
+
* `add_settings_error()` if `$args['should_notify']` is truthy.
|
141 |
+
*
|
142 |
+
* @param CMB2 $cmb The CMB2 object.
|
143 |
+
* @param array $args {
|
144 |
+
* An array of message arguments
|
145 |
+
*
|
146 |
+
* @type bool $is_options_page Whether current page is this options page.
|
147 |
+
* @type bool $should_notify Whether options were saved and we should be notified.
|
148 |
+
* @type bool $is_updated Whether options were updated with save (or stayed the same).
|
149 |
+
* @type string $setting For add_settings_error(), Slug title of the setting to which
|
150 |
+
* this error applies.
|
151 |
+
* @type string $code For add_settings_error(), Slug-name to identify the error.
|
152 |
+
* Used as part of 'id' attribute in HTML output.
|
153 |
+
* @type string $message For add_settings_error(), The formatted message text to display
|
154 |
+
* to the user (will be shown inside styled `<div>` and `<p>` tags).
|
155 |
+
* Will be 'Settings updated.' if $is_updated is true, else 'Nothing to update.'
|
156 |
+
* @type string $type For add_settings_error(), Message type, controls HTML class.
|
157 |
+
* Accepts 'error', 'updated', '', 'notice-warning', etc.
|
158 |
+
* Will be 'updated' if $is_updated is true, else 'notice-warning'.
|
159 |
+
* }
|
160 |
+
*/
|
161 |
+
$args = compact( 'is_options_page', 'should_notify', 'is_updated', 'setting', 'code', 'message', 'type' );
|
162 |
+
|
163 |
+
$this->cmb->do_callback( $cb, $args );
|
164 |
+
|
165 |
+
} elseif ( $should_notify ) {
|
166 |
+
|
167 |
+
add_settings_error( $setting, $code, $message, $type );
|
168 |
}
|
169 |
}
|
170 |
|
207 |
global $parent_file;
|
208 |
|
209 |
// The settings sub-pages will already have settings_errors() called in wp-admin/options-head.php
|
210 |
+
if ( 'options-general.php' !== $parent_file ) {
|
211 |
settings_errors( "{$this->option_key}-notices" );
|
212 |
}
|
213 |
}
|
vendor/webdevstudios/cmb2/includes/CMB2_Sanitize.php
CHANGED
@@ -371,8 +371,8 @@ class CMB2_Sanitize {
|
|
371 |
if ( ! is_object( $datetime ) ) {
|
372 |
$this->value = $utc_stamp = '';
|
373 |
} else {
|
374 |
-
$
|
375 |
-
$utc_stamp = $
|
376 |
$this->value = serialize( $datetime );
|
377 |
}
|
378 |
|
@@ -486,6 +486,10 @@ class CMB2_Sanitize {
|
|
486 |
// If there is no ID saved yet, try to get it from the url
|
487 |
if ( $this->value && ! $id_val ) {
|
488 |
$id_val = CMB2_Utils::image_id_from_url( $this->value );
|
|
|
|
|
|
|
|
|
489 |
}
|
490 |
|
491 |
return $id_field->save_field( $id_val );
|
371 |
if ( ! is_object( $datetime ) ) {
|
372 |
$this->value = $utc_stamp = '';
|
373 |
} else {
|
374 |
+
$datetime->setTimezone( new DateTimeZone( $tzstring ) );
|
375 |
+
$utc_stamp = date_timestamp_get( $datetime ) - $offset;
|
376 |
$this->value = serialize( $datetime );
|
377 |
}
|
378 |
|
486 |
// If there is no ID saved yet, try to get it from the url
|
487 |
if ( $this->value && ! $id_val ) {
|
488 |
$id_val = CMB2_Utils::image_id_from_url( $this->value );
|
489 |
+
|
490 |
+
// If there is an ID but user emptied the input value, remove the ID.
|
491 |
+
} elseif ( ! $this->value && $id_val ) {
|
492 |
+
$id_val = null;
|
493 |
}
|
494 |
|
495 |
return $id_field->save_field( $id_val );
|
vendor/webdevstudios/cmb2/includes/CMB2_Utils.php
CHANGED
@@ -384,7 +384,7 @@ class CMB2_Utils {
|
|
384 |
}
|
385 |
|
386 |
// Check to see if it's anywhere in the root directory
|
387 |
-
$site_dir = self::
|
388 |
$site_url = trailingslashit( is_multisite() ? network_site_url() : site_url() );
|
389 |
|
390 |
$url = str_replace(
|
@@ -396,6 +396,17 @@ class CMB2_Utils {
|
|
396 |
return set_url_scheme( $url );
|
397 |
}
|
398 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
399 |
/**
|
400 |
* `wp_normalize_path` wrapper for back-compat. Normalize a filesystem path.
|
401 |
*
|
@@ -441,7 +452,7 @@ class CMB2_Utils {
|
|
441 |
* Takes a php date() format string and returns a string formatted to suit for the date/time pickers
|
442 |
* It will work with only with the following subset ot date() options:
|
443 |
*
|
444 |
-
* d, j, z, m, n, y, and Y.
|
445 |
*
|
446 |
* A slight effort is made to deal with escaped characters.
|
447 |
*
|
@@ -456,25 +467,27 @@ class CMB2_Utils {
|
|
456 |
|
457 |
// order is relevant here, since the replacement will be done sequentially.
|
458 |
$supported_options = array(
|
459 |
-
'd'
|
460 |
-
'j'
|
461 |
-
'z'
|
462 |
// 'D' => 'D', // Day name short, not sure how it'll work with translations
|
463 |
-
|
464 |
-
'
|
465 |
-
'
|
|
|
466 |
// 'M' => 'M', // Month, Short name
|
467 |
-
|
468 |
-
'
|
469 |
-
'
|
470 |
-
'
|
471 |
-
'
|
472 |
-
'
|
473 |
-
'
|
474 |
-
'
|
475 |
-
'
|
476 |
-
'
|
477 |
-
'
|
|
|
478 |
);
|
479 |
|
480 |
foreach ( $supported_options as $php => $js ) {
|
@@ -482,13 +495,22 @@ class CMB2_Utils {
|
|
482 |
$format = preg_replace( "~(?<!\\\\)$php~", $js, $format );
|
483 |
}
|
484 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
485 |
$format = preg_replace_callback( '~(?:\\\.)+~', array( __CLASS__, 'wrap_escaped_chars' ), $format );
|
486 |
|
487 |
return $format;
|
488 |
}
|
489 |
|
490 |
/**
|
491 |
-
* Helper function for CMB_Utils
|
492 |
*
|
493 |
* @since 2.2.0
|
494 |
* @param $value Value to wrap/escape
|
384 |
}
|
385 |
|
386 |
// Check to see if it's anywhere in the root directory
|
387 |
+
$site_dir = self::get_normalized_abspath();
|
388 |
$site_url = trailingslashit( is_multisite() ? network_site_url() : site_url() );
|
389 |
|
390 |
$url = str_replace(
|
396 |
return set_url_scheme( $url );
|
397 |
}
|
398 |
|
399 |
+
/**
|
400 |
+
* Get the normalized absolute path defined by WordPress.
|
401 |
+
*
|
402 |
+
* @since 2.2.6
|
403 |
+
*
|
404 |
+
* @return string Normalized absolute path.
|
405 |
+
*/
|
406 |
+
protected static function get_normalized_abspath() {
|
407 |
+
return self::normalize_path( self::$ABSPATH );
|
408 |
+
}
|
409 |
+
|
410 |
/**
|
411 |
* `wp_normalize_path` wrapper for back-compat. Normalize a filesystem path.
|
412 |
*
|
452 |
* Takes a php date() format string and returns a string formatted to suit for the date/time pickers
|
453 |
* It will work with only with the following subset ot date() options:
|
454 |
*
|
455 |
+
* d, l, j, z, m, F, n, y, and Y.
|
456 |
*
|
457 |
* A slight effort is made to deal with escaped characters.
|
458 |
*
|
467 |
|
468 |
// order is relevant here, since the replacement will be done sequentially.
|
469 |
$supported_options = array(
|
470 |
+
'd' => 'dd', // Day, leading 0
|
471 |
+
'j' => 'd', // Day, no 0
|
472 |
+
'z' => 'o', // Day of the year, no leading zeroes,
|
473 |
// 'D' => 'D', // Day name short, not sure how it'll work with translations
|
474 |
+
'l ' => 'DD ', // Day name full, idem before
|
475 |
+
'l, ' => 'DD, ', // Day name full, idem before
|
476 |
+
'm' => 'mm', // Month of the year, leading 0
|
477 |
+
'n' => 'm', // Month of the year, no leading 0
|
478 |
// 'M' => 'M', // Month, Short name
|
479 |
+
'F ' => 'MM ', // Month, full name,
|
480 |
+
'F, ' => 'MM, ', // Month, full name,
|
481 |
+
'y' => 'y', // Year, two digit
|
482 |
+
'Y' => 'yy', // Year, full
|
483 |
+
'H' => 'HH', // Hour with leading 0 (24 hour)
|
484 |
+
'G' => 'H', // Hour with no leading 0 (24 hour)
|
485 |
+
'h' => 'hh', // Hour with leading 0 (12 hour)
|
486 |
+
'g' => 'h', // Hour with no leading 0 (12 hour),
|
487 |
+
'i' => 'mm', // Minute with leading 0,
|
488 |
+
's' => 'ss', // Second with leading 0,
|
489 |
+
'a' => 'tt', // am/pm
|
490 |
+
'A' => 'TT',// AM/PM
|
491 |
);
|
492 |
|
493 |
foreach ( $supported_options as $php => $js ) {
|
495 |
$format = preg_replace( "~(?<!\\\\)$php~", $js, $format );
|
496 |
}
|
497 |
|
498 |
+
$supported_options = array(
|
499 |
+
'l' => 'DD', // Day name full, idem before
|
500 |
+
'F' => 'MM', // Month, full name,
|
501 |
+
);
|
502 |
+
|
503 |
+
if ( isset( $supported_options[ $format ] ) ) {
|
504 |
+
$format = $supported_options[ $format ];
|
505 |
+
}
|
506 |
+
|
507 |
$format = preg_replace_callback( '~(?:\\\.)+~', array( __CLASS__, 'wrap_escaped_chars' ), $format );
|
508 |
|
509 |
return $format;
|
510 |
}
|
511 |
|
512 |
/**
|
513 |
+
* Helper function for CMB_Utils::php_to_js_dateformat().
|
514 |
*
|
515 |
* @since 2.2.0
|
516 |
* @param $value Value to wrap/escape
|
vendor/webdevstudios/cmb2/includes/helper-functions.php
CHANGED
@@ -404,3 +404,18 @@ if ( ! function_exists( 'date_create_from_format' ) ) {
|
|
404 |
return new DateTime( $ymd );
|
405 |
}
|
406 |
}// End if().
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
404 |
return new DateTime( $ymd );
|
405 |
}
|
406 |
}// End if().
|
407 |
+
|
408 |
+
if ( ! function_exists( 'date_timestamp_get' ) ) {
|
409 |
+
|
410 |
+
/**
|
411 |
+
* Returns the Unix timestamp representing the date.
|
412 |
+
* Reimplementation of DateTime::getTimestamp for PHP < 5.3. :(
|
413 |
+
*
|
414 |
+
* @param DateTime
|
415 |
+
*
|
416 |
+
* @return int
|
417 |
+
*/
|
418 |
+
function date_timestamp_get( DateTime $date ) {
|
419 |
+
return $date->format( 'U' );
|
420 |
+
}
|
421 |
+
}// End if().
|
vendor/webdevstudios/cmb2/includes/shim/WP_REST_Controller.php
CHANGED
@@ -21,7 +21,8 @@ abstract class WP_REST_Controller {
|
|
21 |
* Register the routes for the objects of the controller.
|
22 |
*/
|
23 |
public function register_routes() {
|
24 |
-
|
|
|
25 |
}
|
26 |
|
27 |
/**
|
21 |
* Register the routes for the objects of the controller.
|
22 |
*/
|
23 |
public function register_routes() {
|
24 |
+
/* translators: %s: register_routes() */
|
25 |
+
_doing_it_wrong( 'WP_REST_Controller::register_routes', sprintf( __( "Method '%s' must be overridden." ), __METHOD__ ), '4.7' );
|
26 |
}
|
27 |
|
28 |
/**
|
vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Checkbox.php
CHANGED
@@ -32,7 +32,7 @@ class CMB2_Type_Checkbox extends CMB2_Type_Text {
|
|
32 |
$this->is_checked = $is_checked;
|
33 |
}
|
34 |
|
35 |
-
public function render() {
|
36 |
$defaults = array(
|
37 |
'type' => 'checkbox',
|
38 |
'class' => 'cmb2-option cmb2-list',
|
32 |
$this->is_checked = $is_checked;
|
33 |
}
|
34 |
|
35 |
+
public function render( $args = array() ) {
|
36 |
$defaults = array(
|
37 |
'type' => 'checkbox',
|
38 |
'class' => 'cmb2-option cmb2-list',
|
vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Colorpicker.php
CHANGED
@@ -32,27 +32,48 @@ class CMB2_Type_Colorpicker extends CMB2_Type_Text {
|
|
32 |
$this->value = $value ? $value : $this->value;
|
33 |
}
|
34 |
|
35 |
-
public function render() {
|
36 |
$meta_value = $this->value ? $this->value : $this->field->escaped_value();
|
37 |
|
38 |
$hex_color = '(([a-fA-F0-9]){3}){1,2}$';
|
39 |
if ( preg_match( '/^' . $hex_color . '/i', $meta_value ) ) {
|
40 |
// Value is just 123abc, so prepend #
|
41 |
$meta_value = '#' . $meta_value;
|
42 |
-
} elseif (
|
43 |
-
//
|
|
|
|
|
|
|
|
|
|
|
44 |
$meta_value = '#';
|
45 |
}
|
46 |
|
47 |
wp_enqueue_style( 'wp-color-picker' );
|
48 |
|
49 |
-
$args = wp_parse_args( $
|
50 |
-
'class'
|
51 |
-
'value' => $meta_value,
|
52 |
-
'js_dependencies' => 'wp-color-picker',
|
53 |
) );
|
54 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
return parent::render( $args );
|
56 |
}
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|
32 |
$this->value = $value ? $value : $this->value;
|
33 |
}
|
34 |
|
35 |
+
public function render( $args = array() ) {
|
36 |
$meta_value = $this->value ? $this->value : $this->field->escaped_value();
|
37 |
|
38 |
$hex_color = '(([a-fA-F0-9]){3}){1,2}$';
|
39 |
if ( preg_match( '/^' . $hex_color . '/i', $meta_value ) ) {
|
40 |
// Value is just 123abc, so prepend #
|
41 |
$meta_value = '#' . $meta_value;
|
42 |
+
} elseif (
|
43 |
+
// If value doesn't match #123abc...
|
44 |
+
! preg_match( '/^#' . $hex_color . '/i', $meta_value )
|
45 |
+
// And value doesn't match rgba()...
|
46 |
+
&& 0 !== strpos( trim( $meta_value ), 'rgba' )
|
47 |
+
) {
|
48 |
+
// Then sanitize to just #.
|
49 |
$meta_value = '#';
|
50 |
}
|
51 |
|
52 |
wp_enqueue_style( 'wp-color-picker' );
|
53 |
|
54 |
+
$args = wp_parse_args( $args, array(
|
55 |
+
'class' => 'cmb2-text-small',
|
|
|
|
|
56 |
) );
|
57 |
|
58 |
+
$args['class'] .= ' cmb2-colorpicker';
|
59 |
+
$args['value'] = $meta_value;
|
60 |
+
$args['js_dependencies'] = array( 'wp-color-picker' );
|
61 |
+
|
62 |
+
if ( $this->field->options( 'alpha' ) ) {
|
63 |
+
$args['js_dependencies'][] = 'wp-color-picker-alpha';
|
64 |
+
$args['data-alpha'] = 'true';
|
65 |
+
}
|
66 |
+
|
67 |
+
$args = wp_parse_args( $this->args, $args );
|
68 |
+
|
69 |
return parent::render( $args );
|
70 |
}
|
71 |
|
72 |
+
public static function dequeue_rgba_colorpicker_script() {
|
73 |
+
if ( wp_script_is( 'jw-cmb2-rgba-picker-js', 'enqueued' ) ) {
|
74 |
+
wp_dequeue_script( 'jw-cmb2-rgba-picker-js' );
|
75 |
+
CMB2_JS::register_colorpicker_alpha( true );
|
76 |
+
}
|
77 |
+
}
|
78 |
+
|
79 |
}
|
vendor/webdevstudios/cmb2/includes/types/CMB2_Type_File_List.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
*/
|
13 |
class CMB2_Type_File_List extends CMB2_Type_File_Base {
|
14 |
|
15 |
-
public function render() {
|
16 |
$field = $this->field;
|
17 |
$meta_value = $field->escaped_value();
|
18 |
$name = $this->_name();
|
12 |
*/
|
13 |
class CMB2_Type_File_List extends CMB2_Type_File_Base {
|
14 |
|
15 |
+
public function render( $args = array() ) {
|
16 |
$field = $this->field;
|
17 |
$meta_value = $field->escaped_value();
|
18 |
$name = $this->_name();
|
vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Multicheck.php
CHANGED
@@ -19,7 +19,7 @@ class CMB2_Type_Multicheck extends CMB2_Type_Radio {
|
|
19 |
*/
|
20 |
public $type = 'checkbox';
|
21 |
|
22 |
-
public function render() {
|
23 |
$classes = false === $this->field->args( 'select_all_button' )
|
24 |
? 'cmb2-checkbox-list no-select-all cmb2-list'
|
25 |
: 'cmb2-checkbox-list cmb2-list';
|
19 |
*/
|
20 |
public $type = 'checkbox';
|
21 |
|
22 |
+
public function render( $args = array() ) {
|
23 |
$classes = false === $this->field->args( 'select_all_button' )
|
24 |
? 'cmb2-checkbox-list no-select-all cmb2-list'
|
25 |
: 'cmb2-checkbox-list cmb2-list';
|
vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Oembed.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
*/
|
13 |
class CMB2_Type_Oembed extends CMB2_Type_Text {
|
14 |
|
15 |
-
public function render() {
|
16 |
$field = $this->field;
|
17 |
|
18 |
$meta_value = trim( $field->escaped_value() );
|
12 |
*/
|
13 |
class CMB2_Type_Oembed extends CMB2_Type_Text {
|
14 |
|
15 |
+
public function render( $args = array() ) {
|
16 |
$field = $this->field;
|
17 |
|
18 |
$meta_value = trim( $field->escaped_value() );
|
vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php
CHANGED
@@ -67,11 +67,10 @@ class CMB2_Type_Taxonomy_Multicheck extends CMB2_Type_Taxonomy_Base {
|
|
67 |
protected function get_wrapper_classes() {
|
68 |
$classes = 'cmb2-checkbox-list cmb2-list';
|
69 |
if ( false === $this->field->args( 'select_all_button' ) ) {
|
70 |
-
$classes .= 'no-select-all';
|
71 |
}
|
72 |
|
73 |
return $classes;
|
74 |
-
|
75 |
}
|
76 |
|
77 |
}
|
67 |
protected function get_wrapper_classes() {
|
68 |
$classes = 'cmb2-checkbox-list cmb2-list';
|
69 |
if ( false === $this->field->args( 'select_all_button' ) ) {
|
70 |
+
$classes .= ' no-select-all';
|
71 |
}
|
72 |
|
73 |
return $classes;
|
|
|
74 |
}
|
75 |
|
76 |
}
|
vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Date.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
*/
|
13 |
class CMB2_Type_Text_Date extends CMB2_Type_Picker_Base {
|
14 |
|
15 |
-
public function render() {
|
16 |
$args = $this->parse_args( 'text_date', array(
|
17 |
'class' => 'cmb2-text-small cmb2-datepicker',
|
18 |
'value' => $this->field->get_timestamp_format(),
|
12 |
*/
|
13 |
class CMB2_Type_Text_Date extends CMB2_Type_Picker_Base {
|
14 |
|
15 |
+
public function render( $args = array() ) {
|
16 |
$args = $this->parse_args( 'text_date', array(
|
17 |
'class' => 'cmb2-text-small cmb2-datepicker',
|
18 |
'value' => $this->field->get_timestamp_format(),
|
vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
*/
|
13 |
class CMB2_Type_Text_Datetime_Timestamp extends CMB2_Type_Picker_Base {
|
14 |
|
15 |
-
public function render() {
|
16 |
$field = $this->field;
|
17 |
|
18 |
$args = wp_parse_args( $this->args, array(
|
12 |
*/
|
13 |
class CMB2_Type_Text_Datetime_Timestamp extends CMB2_Type_Picker_Base {
|
14 |
|
15 |
+
public function render( $args = array() ) {
|
16 |
$field = $this->field;
|
17 |
|
18 |
$args = wp_parse_args( $this->args, array(
|
vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp_Timezone.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
*/
|
13 |
class CMB2_Type_Text_Datetime_Timestamp_Timezone extends CMB2_Type_Base {
|
14 |
|
15 |
-
public function render() {
|
16 |
$field = $this->field;
|
17 |
|
18 |
$args = wp_parse_args( $this->args, array(
|
12 |
*/
|
13 |
class CMB2_Type_Text_Datetime_Timestamp_Timezone extends CMB2_Type_Base {
|
14 |
|
15 |
+
public function render( $args = array() ) {
|
16 |
$field = $this->field;
|
17 |
|
18 |
$args = wp_parse_args( $this->args, array(
|
vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Text_Time.php
CHANGED
@@ -12,7 +12,7 @@
|
|
12 |
*/
|
13 |
class CMB2_Type_Text_Time extends CMB2_Type_Text_Date {
|
14 |
|
15 |
-
public function render() {
|
16 |
$this->args = $this->parse_picker_options( 'time', wp_parse_args( $this->args, array(
|
17 |
'class' => 'cmb2-timepicker text-time',
|
18 |
'value' => $this->field->get_timestamp_format( 'time_format' ),
|
12 |
*/
|
13 |
class CMB2_Type_Text_Time extends CMB2_Type_Text_Date {
|
14 |
|
15 |
+
public function render( $args = array() ) {
|
16 |
$this->args = $this->parse_picker_options( 'time', wp_parse_args( $this->args, array(
|
17 |
'class' => 'cmb2-timepicker text-time',
|
18 |
'value' => $this->field->get_timestamp_format( 'time_format' ),
|
vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Textarea_Code.php
CHANGED
@@ -19,7 +19,7 @@ class CMB2_Type_Textarea_Code extends CMB2_Type_Textarea {
|
|
19 |
* @param array $args Override arguments
|
20 |
* @return string Form textarea element
|
21 |
*/
|
22 |
-
public function render() {
|
23 |
return $this->rendered(
|
24 |
sprintf( '<pre>%s', parent::render( array(
|
25 |
'class' => 'cmb2-textarea-code',
|
19 |
* @param array $args Override arguments
|
20 |
* @return string Form textarea element
|
21 |
*/
|
22 |
+
public function render( $args = array() ) {
|
23 |
return $this->rendered(
|
24 |
sprintf( '<pre>%s', parent::render( array(
|
25 |
'class' => 'cmb2-textarea-code',
|
vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Wysiwyg.php
CHANGED
@@ -20,7 +20,7 @@ class CMB2_Type_Wysiwyg extends CMB2_Type_Textarea {
|
|
20 |
* @since 1.1.0
|
21 |
* @return string Form wysiwyg element
|
22 |
*/
|
23 |
-
public function render() {
|
24 |
$field = $this->field;
|
25 |
$a = $this->parse_args( 'wysiwyg', array(
|
26 |
'id' => $this->_id(),
|
20 |
* @since 1.1.0
|
21 |
* @return string Form wysiwyg element
|
22 |
*/
|
23 |
+
public function render( $args = array() ) {
|
24 |
$field = $this->field;
|
25 |
$a = $this->parse_args( 'wysiwyg', array(
|
26 |
'id' => $this->_id(),
|
vendor/webdevstudios/cmb2/init.php
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
* Bill Erickson (@billerickson / billerickson.net)
|
22 |
* Andrew Norcross (@norcross / andrewnorcross.com)
|
23 |
*
|
24 |
-
* Version: 2.
|
25 |
*
|
26 |
* Text Domain: cmb2
|
27 |
* Domain Path: languages
|
@@ -54,7 +54,7 @@
|
|
54 |
* ***********************************************************************
|
55 |
*/
|
56 |
|
57 |
-
if ( ! class_exists( '
|
58 |
|
59 |
/**
|
60 |
* Handles checking for and loading the newest version of CMB2
|
@@ -67,7 +67,7 @@ if ( ! class_exists( 'CMB2_Bootstrap_2253', false ) ) {
|
|
67 |
* @license GPL-2.0+
|
68 |
* @link https://cmb2.io
|
69 |
*/
|
70 |
-
class
|
71 |
|
72 |
/**
|
73 |
* Current version number
|
@@ -75,7 +75,7 @@ if ( ! class_exists( 'CMB2_Bootstrap_2253', false ) ) {
|
|
75 |
* @var string
|
76 |
* @since 1.0.0
|
77 |
*/
|
78 |
-
const VERSION = '2.
|
79 |
|
80 |
/**
|
81 |
* Current version hook priority.
|
@@ -84,20 +84,20 @@ if ( ! class_exists( 'CMB2_Bootstrap_2253', false ) ) {
|
|
84 |
* @var int
|
85 |
* @since 2.0.0
|
86 |
*/
|
87 |
-
const PRIORITY =
|
88 |
|
89 |
/**
|
90 |
-
* Single instance of the
|
91 |
*
|
92 |
-
* @var
|
93 |
*/
|
94 |
public static $single_instance = null;
|
95 |
|
96 |
/**
|
97 |
-
* Creates/returns the single instance
|
98 |
*
|
99 |
* @since 2.0.0
|
100 |
-
* @return
|
101 |
*/
|
102 |
public static function initiate() {
|
103 |
if ( null === self::$single_instance ) {
|
@@ -189,6 +189,6 @@ if ( ! class_exists( 'CMB2_Bootstrap_2253', false ) ) {
|
|
189 |
}
|
190 |
|
191 |
// Make it so...
|
192 |
-
|
193 |
|
194 |
}// End if().
|
21 |
* Bill Erickson (@billerickson / billerickson.net)
|
22 |
* Andrew Norcross (@norcross / andrewnorcross.com)
|
23 |
*
|
24 |
+
* Version: 2.3.0
|
25 |
*
|
26 |
* Text Domain: cmb2
|
27 |
* Domain Path: languages
|
54 |
* ***********************************************************************
|
55 |
*/
|
56 |
|
57 |
+
if ( ! class_exists( 'CMB2_Bootstrap_230', false ) ) {
|
58 |
|
59 |
/**
|
60 |
* Handles checking for and loading the newest version of CMB2
|
67 |
* @license GPL-2.0+
|
68 |
* @link https://cmb2.io
|
69 |
*/
|
70 |
+
class CMB2_Bootstrap_230 {
|
71 |
|
72 |
/**
|
73 |
* Current version number
|
75 |
* @var string
|
76 |
* @since 1.0.0
|
77 |
*/
|
78 |
+
const VERSION = '2.3.0';
|
79 |
|
80 |
/**
|
81 |
* Current version hook priority.
|
84 |
* @var int
|
85 |
* @since 2.0.0
|
86 |
*/
|
87 |
+
const PRIORITY = 9969;
|
88 |
|
89 |
/**
|
90 |
+
* Single instance of the CMB2_Bootstrap_230 object
|
91 |
*
|
92 |
+
* @var CMB2_Bootstrap_230
|
93 |
*/
|
94 |
public static $single_instance = null;
|
95 |
|
96 |
/**
|
97 |
+
* Creates/returns the single instance CMB2_Bootstrap_230 object
|
98 |
*
|
99 |
* @since 2.0.0
|
100 |
+
* @return CMB2_Bootstrap_230 Single instance object
|
101 |
*/
|
102 |
public static function initiate() {
|
103 |
if ( null === self::$single_instance ) {
|
189 |
}
|
190 |
|
191 |
// Make it so...
|
192 |
+
CMB2_Bootstrap_230::initiate();
|
193 |
|
194 |
}// End if().
|
vendor/webdevstudios/cmb2/js/cmb2-wysiwyg.js
CHANGED
@@ -275,18 +275,25 @@ window.CMB2.wysiwyg = window.CMB2.wysiwyg || {};
|
|
275 |
return false;
|
276 |
}
|
277 |
|
|
|
|
|
278 |
$.extend( data, getGroupData( data ) );
|
279 |
|
280 |
initOptions( data );
|
281 |
|
282 |
$toReplace.replaceWith( data.template( data ) );
|
283 |
|
284 |
-
|
285 |
-
|
|
|
|
|
|
|
286 |
window.quicktags( tinyMCEPreInit.qtInit[ data.id ] );
|
287 |
}
|
288 |
|
289 |
-
|
|
|
|
|
290 |
|
291 |
if ( false !== buttonsInit && 'undefined' !== typeof window.QTags ) {
|
292 |
window.QTags._buttonsInit();
|
@@ -304,6 +311,10 @@ window.CMB2.wysiwyg = window.CMB2.wysiwyg || {};
|
|
304 |
* @return {void}
|
305 |
*/
|
306 |
wysiwyg.destroy = function( id ) {
|
|
|
|
|
|
|
|
|
307 |
|
308 |
// The editor might not be initialized yet. But we need to destroy it once it is.
|
309 |
var editor = tinyMCE.get( id );
|
275 |
return false;
|
276 |
}
|
277 |
|
278 |
+
var mceActive = window.cmb2_l10.user_can_richedit && window.tinyMCE;
|
279 |
+
var qtActive = 'function' === typeof window.quicktags;
|
280 |
$.extend( data, getGroupData( data ) );
|
281 |
|
282 |
initOptions( data );
|
283 |
|
284 |
$toReplace.replaceWith( data.template( data ) );
|
285 |
|
286 |
+
if ( mceActive ) {
|
287 |
+
window.tinyMCE.init( tinyMCEPreInit.mceInit[ data.id ] );
|
288 |
+
}
|
289 |
+
|
290 |
+
if ( qtActive ) {
|
291 |
window.quicktags( tinyMCEPreInit.qtInit[ data.id ] );
|
292 |
}
|
293 |
|
294 |
+
if ( mceActive ) {
|
295 |
+
$( document.getElementById( data.id ) ).parents( '.wp-editor-wrap' ).removeClass( 'html-active' ).addClass( 'tmce-active' );
|
296 |
+
}
|
297 |
|
298 |
if ( false !== buttonsInit && 'undefined' !== typeof window.QTags ) {
|
299 |
window.QTags._buttonsInit();
|
311 |
* @return {void}
|
312 |
*/
|
313 |
wysiwyg.destroy = function( id ) {
|
314 |
+
if ( ! window.cmb2_l10.user_can_richedit || ! window.tinyMCE ) {
|
315 |
+
// Nothing to see here.
|
316 |
+
return;
|
317 |
+
}
|
318 |
|
319 |
// The editor might not be initialized yet. But we need to destroy it once it is.
|
320 |
var editor = tinyMCE.get( id );
|
vendor/webdevstudios/cmb2/js/cmb2.js
CHANGED
@@ -401,7 +401,7 @@ window.CMB2 = window.CMB2 || {};
|
|
401 |
var $elements = $row.find( cmb.repeatUpdate );
|
402 |
if ( group ) {
|
403 |
|
404 |
-
var $other
|
405 |
|
406 |
// Remove extra ajaxed rows
|
407 |
$row.find('.cmb-repeat-table .cmb-repeat-row:not(:first-child)').remove();
|
@@ -433,13 +433,13 @@ window.CMB2 = window.CMB2 || {};
|
|
433 |
}
|
434 |
|
435 |
$elements.each( function() {
|
436 |
-
cmb.elReplacements( $( this ), prevNum );
|
437 |
} );
|
438 |
|
439 |
return cmb;
|
440 |
};
|
441 |
|
442 |
-
cmb.elReplacements = function( $newInput, prevNum ) {
|
443 |
var oldFor = $newInput.attr( 'for' );
|
444 |
var oldVal = $newInput.val();
|
445 |
var type = $newInput.prop( 'type' );
|
@@ -451,14 +451,25 @@ window.CMB2 = window.CMB2 || {};
|
|
451 |
attrs = { 'for' : oldFor.replace( '_'+ prevNum, '_'+ cmb.idNumber ) };
|
452 |
} else {
|
453 |
var oldName = $newInput.attr( 'name' );
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
459 |
id: newID,
|
460 |
-
name: newName
|
461 |
-
'data-iterator': cmb.idNumber,
|
462 |
};
|
463 |
|
464 |
}
|
@@ -472,6 +483,10 @@ window.CMB2 = window.CMB2 || {};
|
|
472 |
$newInput.removeAttr( 'checked' );
|
473 |
}
|
474 |
|
|
|
|
|
|
|
|
|
475 |
$newInput
|
476 |
.removeClass( 'hasDatepicker' )
|
477 |
.attr( attrs ).val( checkable ? checkable : '' );
|
@@ -791,7 +806,11 @@ window.CMB2 = window.CMB2 || {};
|
|
791 |
|
792 |
options.onClose = function( dateText, inst ) {
|
793 |
// Remove the class when we're done with it (and hide to remove FOUC).
|
794 |
-
$id( 'ui-datepicker-div' ).removeClass( 'cmb2-element' ).hide();
|
|
|
|
|
|
|
|
|
795 |
|
796 |
// Let's be sure to call onClose if it was added
|
797 |
if ( 'function' === typeof existing.onClose ) {
|
@@ -1019,6 +1038,15 @@ window.CMB2 = window.CMB2 || {};
|
|
1019 |
$el.trigger( evtName, args );
|
1020 |
};
|
1021 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1022 |
$( cmb.init );
|
1023 |
|
1024 |
})(window, document, jQuery, window.CMB2);
|
401 |
var $elements = $row.find( cmb.repeatUpdate );
|
402 |
if ( group ) {
|
403 |
|
404 |
+
var $other = $row.find( '[id]' ).not( cmb.repeatUpdate );
|
405 |
|
406 |
// Remove extra ajaxed rows
|
407 |
$row.find('.cmb-repeat-table .cmb-repeat-row:not(:first-child)').remove();
|
433 |
}
|
434 |
|
435 |
$elements.each( function() {
|
436 |
+
cmb.elReplacements( $( this ), prevNum, group );
|
437 |
} );
|
438 |
|
439 |
return cmb;
|
440 |
};
|
441 |
|
442 |
+
cmb.elReplacements = function( $newInput, prevNum, group ) {
|
443 |
var oldFor = $newInput.attr( 'for' );
|
444 |
var oldVal = $newInput.val();
|
445 |
var type = $newInput.prop( 'type' );
|
451 |
attrs = { 'for' : oldFor.replace( '_'+ prevNum, '_'+ cmb.idNumber ) };
|
452 |
} else {
|
453 |
var oldName = $newInput.attr( 'name' );
|
454 |
+
var newName;
|
455 |
+
oldID = $newInput.attr( 'id' );
|
456 |
+
|
457 |
+
// Handle adding groups vs rows.
|
458 |
+
if ( group ) {
|
459 |
+
// Expect another bracket after group's index closing bracket.
|
460 |
+
newName = oldName ? oldName.replace( '['+ prevNum +'][', '['+ cmb.idNumber +'][' ) : '';
|
461 |
+
// Expect another underscore after group's index trailing underscore.
|
462 |
+
newID = oldID ? oldID.replace( '_' + prevNum + '_', '_' + cmb.idNumber + '_' ) : '';
|
463 |
+
}
|
464 |
+
else {
|
465 |
+
// Row indexes are at the very end of the string.
|
466 |
+
newName = oldName ? cmb.replaceLast( oldName, '[' + prevNum + ']', '[' + cmb.idNumber + ']' ) : '';
|
467 |
+
newID = oldID ? cmb.replaceLast( oldID, '_' + prevNum, '_' + cmb.idNumber ) : '';
|
468 |
+
}
|
469 |
+
|
470 |
+
attrs = {
|
471 |
id: newID,
|
472 |
+
name: newName
|
|
|
473 |
};
|
474 |
|
475 |
}
|
483 |
$newInput.removeAttr( 'checked' );
|
484 |
}
|
485 |
|
486 |
+
if ( ! group && $newInput[0].hasAttribute( 'data-iterator' ) ) {
|
487 |
+
attrs['data-iterator'] = cmb.idNumber;
|
488 |
+
}
|
489 |
+
|
490 |
$newInput
|
491 |
.removeClass( 'hasDatepicker' )
|
492 |
.attr( attrs ).val( checkable ? checkable : '' );
|
806 |
|
807 |
options.onClose = function( dateText, inst ) {
|
808 |
// Remove the class when we're done with it (and hide to remove FOUC).
|
809 |
+
var $picker = $id( 'ui-datepicker-div' ).removeClass( 'cmb2-element' ).hide();
|
810 |
+
if ( 'timepicker' === method && ! $( inst.input ).val() ) {
|
811 |
+
// Set the timepicker field value if it's empty.
|
812 |
+
inst.input.val( $picker.find( '.ui_tpicker_time' ).text() );
|
813 |
+
}
|
814 |
|
815 |
// Let's be sure to call onClose if it was added
|
816 |
if ( 'function' === typeof existing.onClose ) {
|
1038 |
$el.trigger( evtName, args );
|
1039 |
};
|
1040 |
|
1041 |
+
cmb.replaceLast = function( string, search, replace ) {
|
1042 |
+
// find the index of last time word was used
|
1043 |
+
var n = string.lastIndexOf( search );
|
1044 |
+
|
1045 |
+
// slice the string in 2, one from the start to the lastIndexOf
|
1046 |
+
// and then replace the word in the rest
|
1047 |
+
return string.slice( 0, n ) + string.slice( n ).replace( search, replace );
|
1048 |
+
};
|
1049 |
+
|
1050 |
$( cmb.init );
|
1051 |
|
1052 |
})(window, document, jQuery, window.CMB2);
|
vendor/webdevstudios/cmb2/js/cmb2.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
window.CMB2=window.CMB2||{},function(window,document,$,cmb,undefined){"use strict";var $document,l10n=window.cmb2_l10,setTimeout=window.setTimeout,$id=function(selector){return $(document.getElementById(selector))},defaults={idNumber:!1,repeatEls:'input:not([type="button"],[id^=filelist]),select,textarea,.cmb2-media-status',noEmpty:'input:not([type="button"]):not([type="radio"]):not([type="checkbox"]),textarea',repeatUpdate:'input:not([type="button"]),select,textarea,label',styleBreakPoint:450,mediaHandlers:{},defaults:{time_picker:l10n.defaults.time_picker,date_picker:l10n.defaults.date_picker,color_picker:l10n.defaults.color_picker||{}},media:{frames:{}}};cmb.metabox=function(){return cmb.$metabox?cmb.$metabox:(cmb.$metabox=$(".cmb2-wrap > .cmb2-metabox"),cmb.$metabox)},cmb.init=function(){$document=$(document),$.extend(cmb,defaults),cmb.trigger("cmb_pre_init");var $metabox=cmb.metabox(),$repeatGroup=$metabox.find(".cmb-repeatable-group");cmb.initPickers($metabox.find('input[type="text"].cmb2-timepicker'),$metabox.find('input[type="text"].cmb2-datepicker'),$metabox.find('input[type="text"].cmb2-colorpicker')),$('<p><span class="button-secondary cmb-multicheck-toggle">'+l10n.strings.check_toggle+"</span></p>").insertBefore(".cmb2-checkbox-list:not(.no-select-all)"),cmb.makeListSortable(),$metabox.on("change",".cmb2_upload_file",function(){cmb.media.field=$(this).attr("id"),$id(cmb.media.field+"_id").val("")}).on("click",".cmb-multicheck-toggle",cmb.toggleCheckBoxes).on("click",".cmb2-upload-button",cmb.handleMedia).on("click",".cmb-attach-list li, .cmb2-media-status .img-status img, .cmb2-media-status .file-status > span",cmb.handleFileClick).on("click",".cmb2-remove-file-button",cmb.handleRemoveMedia).on("click",".cmb-add-group-row",cmb.addGroupRow).on("click",".cmb-add-row-button",cmb.addAjaxRow).on("click",".cmb-remove-group-row",cmb.removeGroupRow).on("click",".cmb-remove-row-button",cmb.removeAjaxRow).on("keyup paste focusout",".cmb2-oembed",cmb.maybeOembed).on("cmb2_remove_row",".cmb-repeatable-group",cmb.resetTitlesAndIterator).on("click",".cmbhandle, .cmbhandle + .cmbhandle-title",cmb.toggleHandle),$repeatGroup.length&&$repeatGroup.on("cmb2_add_row",cmb.emptyValue).filter(".sortable").each(function(){$(this).find(".cmb-remove-group-row-button").before('<a class="button-secondary cmb-shift-rows move-up alignleft" href="#"><span class="'+l10n.up_arrow_class+'"></span></a> <a class="button-secondary cmb-shift-rows move-down alignleft" href="#"><span class="'+l10n.down_arrow_class+'"></span></a>')}).on("click",".cmb-shift-rows",cmb.shiftRows),setTimeout(cmb.resizeoEmbeds,500),$(window).on("resize",cmb.resizeoEmbeds),cmb.trigger("cmb_init")},cmb.resetTitlesAndIterator=function(evt){evt.group&&$(".cmb-repeatable-group.repeatable").each(function(){var $table=$(this),groupTitle=$table.find(".cmb-add-group-row").data("grouptitle");$table.find(".cmb-repeatable-grouping").each(function(rowindex){var $row=$(this),$rowTitle=$row.find("h3.cmb-group-title");$row.data("iterator",rowindex),$rowTitle.length&&$rowTitle.text(groupTitle.replace("{#}",rowindex+1))})})},cmb.toggleHandle=function(evt){evt.preventDefault(),cmb.trigger("postbox-toggled",$(this).parent(".postbox").toggleClass("closed"))},cmb.toggleCheckBoxes=function(evt){evt.preventDefault();var $this=$(this),$multicheck=$this.closest(".cmb-td").find("input[type=checkbox]:not([disabled])");$this.data("checked")?($multicheck.prop("checked",!1),$this.data("checked",!1)):($multicheck.prop("checked",!0),$this.data("checked",!0))},cmb.handleMedia=function(evt){evt.preventDefault();var $el=$(this);cmb.attach_id=$el.hasClass("cmb2-upload-list")?!1:$el.closest(".cmb-td").find(".cmb2-upload-file-id").val(),cmb.attach_id="0"!==cmb.attach_id?cmb.attach_id:!1,cmb._handleMedia($el.prev("input.cmb2-upload-file").attr("id"),$el.hasClass("cmb2-upload-list"))},cmb.handleFileClick=function(evt){evt.preventDefault();var $el=$(this),$td=$el.closest(".cmb-td"),isList=$td.find(".cmb2-upload-button").hasClass("cmb2-upload-list");cmb.attach_id=isList?$el.find('input[type="hidden"]').data("id"):$td.find(".cmb2-upload-file-id").val(),cmb.attach_id&&cmb._handleMedia($td.find("input.cmb2-upload-file").attr("id"),isList,cmb.attach_id)},cmb._handleMedia=function(id,isList){if(wp){var media,handlers;if(handlers=cmb.mediaHandlers,media=cmb.media,media.field=id,media.$field=$id(media.field),media.fieldData=media.$field.data(),media.previewSize=media.fieldData.previewsize,media.sizeName=media.fieldData.sizename,media.fieldName=media.$field.attr("name"),media.isList=isList,id in media.frames)return media.frames[id].open();media.frames[id]=wp.media({title:cmb.metabox().find('label[for="'+id+'"]').text(),library:media.fieldData.queryargs||{},button:{text:l10n.strings[isList?"upload_files":"upload_file"]},multiple:isList?"add":!1}),media.frames[id].states.first().set("filterable","all"),cmb.trigger("cmb_media_modal_init",media),handlers.list=function(selection,returnIt){var attachmentHtml,fileGroup=[];return handlers.list.templates||(handlers.list.templates={image:wp.template("cmb2-list-image"),file:wp.template("cmb2-list-file")}),selection.each(function(attachment){attachmentHtml=handlers.getAttachmentHtml(attachment,"list"),fileGroup.push(attachmentHtml)}),returnIt?fileGroup:void media.$field.siblings(".cmb2-media-status").append(fileGroup)},handlers.single=function(selection){handlers.single.templates||(handlers.single.templates={image:wp.template("cmb2-single-image"),file:wp.template("cmb2-single-file")});var attachment=selection.first();media.$field.val(attachment.get("url")),$id(media.field+"_id").val(attachment.get("id"));var attachmentHtml=handlers.getAttachmentHtml(attachment,"single");media.$field.siblings(".cmb2-media-status").slideDown().html(attachmentHtml)},handlers.getAttachmentHtml=function(attachment,templatesId){var isImage="image"===attachment.get("type"),data=handlers.prepareData(attachment,isImage);return handlers[templatesId].templates[isImage?"image":"file"](data)},handlers.prepareData=function(data,image){return image&&handlers.getImageData.call(data,50),data=data.toJSON(),data.mediaField=media.field,data.mediaFieldName=media.fieldName,data.stringRemoveImage=l10n.strings.remove_image,data.stringFile=l10n.strings.file,data.stringDownload=l10n.strings.download,data.stringRemoveFile=l10n.strings.remove_file,data},handlers.getImageData=function(fallbackSize){var previewW=media.previewSize[0]||fallbackSize,previewH=media.previewSize[1]||fallbackSize,url=this.get("url"),width=this.get("width"),height=this.get("height"),sizes=this.get("sizes");return sizes&&(sizes[media.sizeName]?(url=sizes[media.sizeName].url,width=sizes[media.sizeName].width,height=sizes[media.sizeName].height):sizes.large&&(url=sizes.large.url,width=sizes.large.width,height=sizes.large.height)),width>previewW&&(height=Math.floor(previewW*height/width),width=previewW),height>previewH&&(width=Math.floor(previewH*width/height),height=previewH),width||(width=previewW),height||(height="svg"===this.get("filename").split(".").pop()?"100%":previewH),this.set("sizeUrl",url),this.set("sizeWidth",width),this.set("sizeHeight",height),this},handlers.selectFile=function(){var selection=media.frames[id].state().get("selection"),type=isList?"list":"single";cmb.attach_id&&isList?$('[data-id="'+cmb.attach_id+'"]').parents("li").replaceWith(handlers.list(selection,!0)):handlers[type](selection),cmb.trigger("cmb_media_modal_select",selection,media)},handlers.openModal=function(){var attach,selection=media.frames[id].state().get("selection");cmb.attach_id?(attach=wp.media.attachment(cmb.attach_id),attach.fetch(),selection.set(attach?[attach]:[])):selection.reset(),cmb.trigger("cmb_media_modal_open",selection,media)},media.frames[id].on("select",handlers.selectFile).on("open",handlers.openModal),media.frames[id].open()}},cmb.handleRemoveMedia=function(evt){evt.preventDefault();var $this=$(this);return $this.is(".cmb-attach-list .cmb2-remove-file-button")?($this.parents(".cmb2-media-item").remove(),!1):(cmb.media.field=$this.attr("rel"),cmb.metabox().find(document.getElementById(cmb.media.field)).val(""),cmb.metabox().find(document.getElementById(cmb.media.field+"_id")).val(""),$this.parents(".cmb2-media-status").html(""),!1)},cmb.cleanRow=function($row,prevNum,group){var $elements=$row.find(cmb.repeatUpdate);if(group){var $other=$row.find("[id]").not(cmb.repeatUpdate);$row.find(".cmb-repeat-table .cmb-repeat-row:not(:first-child)").remove(),$other.length&&$other.each(function(){var $_this=$(this),oldID=$_this.attr("id"),newID=oldID.replace("_"+prevNum,"_"+cmb.idNumber),$buttons=$row.find('[data-selector="'+oldID+'"]');$_this.attr("id",newID),$buttons.length&&$buttons.attr("data-selector",newID).data("selector",newID)})}return $elements.filter(":checked").removeAttr("checked"),$elements.find(":checked").removeAttr("checked"),$elements.filter(":selected").removeAttr("selected"),$elements.find(":selected").removeAttr("selected",!1),$row.find("h3.cmb-group-title").length&&$row.find("h3.cmb-group-title").text($row.data("title").replace("{#}",cmb.idNumber+1)),$elements.each(function(){cmb.elReplacements($(this),prevNum)}),cmb},cmb.elReplacements=function($newInput,prevNum){var newID,oldID,oldFor=$newInput.attr("for"),oldVal=$newInput.val(),type=$newInput.prop("type"),checkable="radio"===type||"checkbox"===type?oldVal:!1,attrs={};if(oldFor)attrs={"for":oldFor.replace("_"+prevNum,"_"+cmb.idNumber)};else{var oldName=$newInput.attr("name"),newName=oldName?oldName.replace("["+prevNum+"]","["+cmb.idNumber+"]"):"";oldID=$newInput.attr("id"),newID=oldID?oldID.replace("_"+prevNum,"_"+cmb.idNumber):"",attrs={id:newID,name:newName,"data-iterator":cmb.idNumber}}return"TEXTAREA"===$newInput.prop("tagName")&&$newInput.html(""),checkable&&$newInput.removeAttr("checked"),$newInput.removeClass("hasDatepicker").attr(attrs).val(checkable?checkable:""),$newInput},cmb.newRowHousekeeping=function($row){var $colorPicker=$row.find(".wp-picker-container"),$list=$row.find(".cmb2-media-status");return $colorPicker.length&&$colorPicker.each(function(){var $td=$(this).parent();$td.html($td.find('input[type="text"].cmb2-colorpicker').attr("style",""))}),$list.length&&$list.empty(),cmb},cmb.afterRowInsert=function($row){cmb.initPickers($row.find('input[type="text"].cmb2-timepicker'),$row.find('input[type="text"].cmb2-datepicker'),$row.find('input[type="text"].cmb2-colorpicker'))},cmb.updateNameAttr=function(){var $this=$(this),name=$this.attr("name");if("undefined"!=typeof name){var prevNum=parseInt($this.parents(".cmb-repeatable-grouping").data("iterator"),10),newNum=prevNum-1,$newName=name.replace("["+prevNum+"]","["+newNum+"]");$this.attr("name",$newName)}},cmb.emptyValue=function(evt,row){$(cmb.noEmpty,row).val("")},cmb.addGroupRow=function(evt){evt.preventDefault();var $this=$(this);cmb.triggerElement($this,"cmb2_add_group_row_start",$this);var $table=$id($this.data("selector")),$oldRow=$table.find(".cmb-repeatable-grouping").last(),prevNum=parseInt($oldRow.data("iterator"),10);cmb.idNumber=parseInt(prevNum,10)+1;for(var $row=$oldRow.clone();$table.find('.cmb-repeatable-grouping[data-iterator="'+cmb.idNumber+'"]').length>0;)cmb.idNumber++;cmb.newRowHousekeeping($row.data("title",$this.data("grouptitle"))).cleanRow($row,prevNum,!0),$row.find(".cmb-add-row-button").prop("disabled",!1);var $newRow=$('<div class="postbox cmb-row cmb-repeatable-grouping" data-iterator="'+cmb.idNumber+'">'+$row.html()+"</div>");$oldRow.after($newRow),cmb.afterRowInsert($newRow),cmb.triggerElement($table,{type:"cmb2_add_row",group:!0},$newRow)},cmb.addAjaxRow=function(evt){evt.preventDefault();var $this=$(this),$table=$id($this.data("selector")),$emptyrow=$table.find(".empty-row"),prevNum=parseInt($emptyrow.find("[data-iterator]").data("iterator"),10);cmb.idNumber=parseInt(prevNum,10)+1;var $row=$emptyrow.clone();cmb.newRowHousekeeping($row).cleanRow($row,prevNum),$emptyrow.removeClass("empty-row hidden").addClass("cmb-repeat-row"),$emptyrow.after($row),cmb.afterRowInsert($row),cmb.triggerElement($table,{type:"cmb2_add_row",group:!1},$row)},cmb.removeGroupRow=function(evt){evt.preventDefault();var $this=$(this),$table=$id($this.data("selector")),$parent=$this.parents(".cmb-repeatable-grouping"),number=$table.find(".cmb-repeatable-grouping").length;return 2>number?cmb.resetRow($parent.parents(".cmb-repeatable-group").find(".cmb-add-group-row"),$this):(cmb.triggerElement($table,"cmb2_remove_group_row_start",$this),$parent.nextAll(".cmb-repeatable-grouping").find(cmb.repeatEls).each(cmb.updateNameAttr),$parent.remove(),void cmb.triggerElement($table,{type:"cmb2_remove_row",group:!0}))},cmb.removeAjaxRow=function(evt){evt.preventDefault();var $this=$(this);if(!$this.hasClass("button-disabled")){var $parent=$this.parents(".cmb-row"),$table=$this.parents(".cmb-repeat-table"),number=$table.find(".cmb-row").length;if(2>=number)return cmb.resetRow($parent.find(".cmb-add-row-button"),$this);$parent.hasClass("empty-row")&&$parent.prev().addClass("empty-row").removeClass("cmb-repeat-row"),$this.parents(".cmb-repeat-table .cmb-row").remove(),cmb.triggerElement($table,{type:"cmb2_remove_row",group:!1})}},cmb.resetRow=function($addNewBtn,$removeBtn){$addNewBtn.trigger("click"),$removeBtn.trigger("click")},cmb.shiftRows=function(evt){evt.preventDefault();var $this=$(this),$from=$this.parents(".cmb-repeatable-grouping"),$goto=$this.hasClass("move-up")?$from.prev(".cmb-repeatable-grouping"):$from.next(".cmb-repeatable-grouping");if(cmb.triggerElement($this,"cmb2_shift_rows_enter",$this,$from,$goto),$goto.length){cmb.triggerElement($this,"cmb2_shift_rows_start",$this,$from,$goto);var inputVals=[];$from.find(cmb.repeatEls).each(function(){var val,$element=$(this),elType=$element.attr("type");val=$element.hasClass("cmb2-media-status")?$element.html():"checkbox"===elType||"radio"===elType?$element.is(":checked"):"select"===$element.prop("tagName")?$element.is(":selected"):$element.val(),inputVals.push({val:val,$:$element})}),$goto.find(cmb.repeatEls).each(function(index){var val,$element=$(this),elType=$element.attr("type");if($element.hasClass("cmb2-media-status")){var toRowId=$element.closest(".cmb-repeatable-grouping").attr("data-iterator"),fromRowId=inputVals[index].$.closest(".cmb-repeatable-grouping").attr("data-iterator");val=$element.html(),$element.html(inputVals[index].val),inputVals[index].$.html(val),inputVals[index].$.find("input").each(function(){var name=$(this).attr("name");name=name.replace("["+toRowId+"]","["+fromRowId+"]"),$(this).attr("name",name)}),$element.find("input").each(function(){var name=$(this).attr("name");name=name.replace("["+fromRowId+"]","["+toRowId+"]"),$(this).attr("name",name)})}else"checkbox"===elType?(inputVals[index].$.prop("checked",$element.is(":checked")),$element.prop("checked",inputVals[index].val)):"radio"===elType?($element.is(":checked")&&inputVals[index].$.attr("data-checked","true"),inputVals[index].$.is(":checked")&&$element.attr("data-checked","true")):"select"===$element.prop("tagName")?(inputVals[index].$.prop("selected",$element.is(":selected")),$element.prop("selected",inputVals[index].val)):(inputVals[index].$.val($element.val()),$element.val(inputVals[index].val))}),$from.find("input[data-checked=true]").prop("checked",!0).removeAttr("data-checked"),$goto.find("input[data-checked=true]").prop("checked",!0).removeAttr("data-checked"),$from.find('input[type="text"].cmb2-colorpicker').trigger("change"),$goto.find('input[type="text"].cmb2-colorpicker').trigger("change"),cmb.triggerElement($this,"cmb2_shift_rows_complete",$this,$from,$goto)}},cmb.initPickers=function($timePickers,$datePickers,$colorPickers){cmb.initDateTimePickers($timePickers,"timepicker","time_picker"),cmb.initDateTimePickers($datePickers,"datepicker","date_picker"),cmb.initColorPickers($colorPickers)},cmb.initDateTimePickers=function($selector,method,defaultKey){$selector.length&&$selector[method]("destroy").each(function(){var $this=$(this),fieldOpts=$this.data(method)||{},options=$.extend({},cmb.defaults[defaultKey],fieldOpts);$this[method](cmb.datePickerSetupOpts(fieldOpts,options,method))})},cmb.datePickerSetupOpts=function(fieldOpts,options,method){var existing=$.extend({},options);return options.beforeShow=function(input,inst){"timepicker"===method&&cmb.addTimePickerClasses(inst.dpDiv),$id("ui-datepicker-div").addClass("cmb2-element"),"function"==typeof existing.beforeShow&&existing.beforeShow(input,inst)},"timepicker"===method&&(options.onChangeMonthYear=function(year,month,inst,picker){cmb.addTimePickerClasses(inst.dpDiv),"function"==typeof existing.onChangeMonthYear&&existing.onChangeMonthYear(year,month,inst,picker)}),options.onClose=function(dateText,inst){$id("ui-datepicker-div").removeClass("cmb2-element").hide(),"function"==typeof existing.onClose&&existing.onClose(dateText,inst)},options},cmb.addTimePickerClasses=function($picker){var func=cmb.addTimePickerClasses;func.count=func.count||0,setTimeout(function(){$picker.find(".ui-priority-secondary").length?($picker.find(".ui-priority-secondary").addClass("button-secondary"),$picker.find(".ui-priority-primary").addClass("button-primary"),func.count=0):func.count<5&&(func.count++,func($picker))},10)},cmb.initColorPickers=function($selector){$selector.length&&("object"==typeof jQuery.wp&&"function"==typeof jQuery.wp.wpColorPicker?$selector.each(function(){var $this=$(this),fieldOpts=$this.data("colorpicker")||{};$this.wpColorPicker($.extend({},cmb.defaults.color_picker,fieldOpts))}):$selector.each(function(i){$(this).after('<div id="picker-'+i+'" style="z-index: 1000; background: #EEE; border: 1px solid #CCC; position: absolute; display: block;"></div>'),$id("picker-"+i).hide().farbtastic($(this))}).focus(function(){$(this).next().show()}).blur(function(){$(this).next().hide()}))},cmb.makeListSortable=function(){var $filelist=cmb.metabox().find(".cmb2-media-status.cmb-attach-list");$filelist.length&&$filelist.sortable({cursor:"move"}).disableSelection()},cmb.maybeOembed=function(evt){var $this=$(this),m={focusout:function(){setTimeout(function(){cmb.spinner(".cmb2-metabox",!0)},2e3)},keyup:function(){var betw=function(min,max){return evt.which<=max&&evt.which>=min};(betw(48,90)||betw(96,111)||betw(8,9)||187===evt.which||190===evt.which)&&cmb.doAjax($this,evt)},paste:function(){setTimeout(function(){cmb.doAjax($this)},100)}};m[evt.type]()},cmb.resizeoEmbeds=function(){cmb.metabox().each(function(){var $this=$(this),$tableWrap=$this.parents(".inside"),isSide=$this.parents(".inner-sidebar").length||$this.parents("#side-sortables").length,isSmall=isSide,isSmallest=!1;if(!$tableWrap.length)return!0;var tableW=$tableWrap.width();cmb.styleBreakPoint>tableW&&(isSmall=!0,isSmallest=cmb.styleBreakPoint-62>tableW),tableW=isSmall?tableW:Math.round(.82*$tableWrap.width()*.97);var newWidth=tableW-30;if(!isSmall||isSide||isSmallest||(newWidth-=75),newWidth>639)return!0;var $embeds=$this.find(".cmb-type-oembed .embed-status"),$children=$embeds.children().not(".cmb2-remove-wrapper");return $children.length?void $children.each(function(){var $this=$(this),iwidth=$this.width(),iheight=$this.height(),_newWidth=newWidth;$this.parents(".cmb-repeat-row").length&&!isSmall&&(_newWidth=newWidth-91,_newWidth=785>tableW?_newWidth-15:_newWidth);var newHeight=Math.round(_newWidth*iheight/iwidth);$this.width(_newWidth).height(newHeight)}):!0})},cmb.log=function(){l10n.script_debug&&console&&"function"==typeof console.log&&console.log.apply(console,arguments)},cmb.spinner=function($context,hide){var m=hide?"removeClass":"addClass";$(".cmb-spinner",$context)[m]("is-active")},cmb.doAjax=function($obj){var oembed_url=$obj.val();if(!(oembed_url.length<6)){var field_id=$obj.attr("id"),$context=$obj.closest(".cmb-td"),$embed_container=$context.find(".embed-status"),$embed_wrap=$context.find(".embed_wrap"),$child_el=$embed_container.find(":first-child"),oembed_width=$embed_container.length&&$child_el.length?$child_el.width():$obj.width();cmb.log("oembed_url",oembed_url,field_id),cmb.spinner($context),$embed_wrap.html(""),setTimeout(function(){$(".cmb2-oembed:focus").val()===oembed_url&&$.ajax({type:"post",dataType:"json",url:l10n.ajaxurl,data:{action:"cmb2_oembed_handler",oembed_url:oembed_url,oembed_width:oembed_width>300?oembed_width:300,field_id:field_id,object_id:$obj.data("objectid"),object_type:$obj.data("objecttype"),cmb2_ajax_nonce:l10n.ajax_nonce},success:function(response){cmb.log(response),cmb.spinner($context,!0),$embed_wrap.html(response.data)}})},500)}},cmb.trigger=function(evtName){var args=Array.prototype.slice.call(arguments,1);args.push(cmb),$document.trigger(evtName,args)},cmb.triggerElement=function($el,evtName){var args=Array.prototype.slice.call(arguments,2);args.push(cmb),$el.trigger(evtName,args)},$(cmb.init)}(window,document,jQuery,window.CMB2),window.CMB2=window.CMB2||{},window.CMB2.wysiwyg=window.CMB2.wysiwyg||{},function(window,document,$,wysiwyg,undefined){"use strict";function delayedInit(){0===toBeDestroyed.length?toBeInitialized.forEach(function(toInit){toBeInitialized.splice(toBeInitialized.indexOf(toInit),1),wysiwyg.init.apply(wysiwyg,toInit)}):window.setTimeout(delayedInit,100)}function delayedDestroy(){toBeDestroyed.forEach(function(id){toBeDestroyed.splice(toBeDestroyed.indexOf(id),1),wysiwyg.destroy(id)})}function getGroupData(data){var groupid=data.groupid,fieldid=data.fieldid;return all[groupid]&&all[groupid][fieldid]||(all[groupid]=all[groupid]||{},all[groupid][fieldid]={template:wp.template("cmb2-wysiwyg-"+groupid+"-"+fieldid),defaults:{mce:$.extend({},tinyMCEPreInit.mceInit["cmb2_i_"+groupid+fieldid]),qt:$.extend({},tinyMCEPreInit.qtInit["cmb2_i_"+groupid+fieldid])}},delete tinyMCEPreInit.mceInit["cmb2_i_"+groupid+fieldid],delete tinyMCEPreInit.qtInit["cmb2_i_"+groupid+fieldid]),all[groupid][fieldid]}function initOptions(options){var prop,newSettings,newQTS,nameRegex=new RegExp("cmb2_n_"+options.groupid+options.fieldid,"g"),idRegex=new RegExp("cmb2_i_"+options.groupid+options.fieldid,"g");if("undefined"==typeof tinyMCEPreInit.mceInit[options.id]){newSettings=$.extend({},options.defaults.mce);for(prop in newSettings)"string"==typeof newSettings[prop]&&(newSettings[prop]=newSettings[prop].replace(idRegex,options.id).replace(nameRegex,options.name));tinyMCEPreInit.mceInit[options.id]=newSettings}if("undefined"==typeof tinyMCEPreInit.qtInit[options.id]){newQTS=$.extend({},options.defaults.qt);for(prop in newQTS)"string"==typeof newQTS[prop]&&(newQTS[prop]=newQTS[prop].replace(idRegex,options.id).replace(nameRegex,options.name));tinyMCEPreInit.qtInit[options.id]=newQTS}}var toBeDestroyed=[],toBeInitialized=[],all=wysiwyg.all={};wysiwyg.initAll=function(){var $this,data,initiated;$(".cmb2-wysiwyg-placeholder").each(function(){$this=$(this),data=$this.data(),data.groupid&&(data.id=$this.attr("id"),data.name=$this.attr("name"),data.value=$this.val(),wysiwyg.init($this,data,!1),initiated=!0)}),!0===initiated&&("undefined"!=typeof window.QTags&&window.QTags._buttonsInit(),$(document).on("cmb2_add_row",wysiwyg.addRow).on("cmb2_remove_group_row_start",wysiwyg.destroyRowEditors).on("cmb2_shift_rows_start",wysiwyg.shiftStart).on("cmb2_shift_rows_complete",wysiwyg.shiftComplete))},wysiwyg.addRow=function(evt,$row){wysiwyg.initRow($row)},wysiwyg.destroyRowEditors=function(evt,$btn){wysiwyg.destroy($btn.parents(".cmb-repeatable-grouping").find(".wp-editor-area").attr("id"))},wysiwyg.shiftStart=function(evt,$btn,$from,$to){$from.add($to).find(".wp-editor-wrap textarea").each(function(){wysiwyg.destroy($(this).attr("id"))})},wysiwyg.shiftComplete=function(evt,$btn,$from,$to){$from.add($to).each(function(){wysiwyg.initRow($(this))})},wysiwyg.initRow=function($row){var $toReplace,data;$row.find(".cmb2-wysiwyg-inner-wrap").each(function(){$toReplace=$(this),data=$toReplace.data(),data.iterator=$row.data("iterator"),data.fieldid=data.id,data.id=data.groupid+"_"+data.iterator+"_"+data.fieldid,data.name=data.groupid+"["+data.iterator+"]["+data.fieldid+"]",data.value=$toReplace.find(".wp-editor-area").length?$toReplace.find(".wp-editor-area").val():"",0===toBeDestroyed.length?wysiwyg.init($toReplace,data):(toBeInitialized.push([$toReplace,data]),window.setTimeout(delayedInit,100))})},wysiwyg.init=function($toReplace,data,buttonsInit){return data.groupid?($.extend(data,getGroupData(data)),initOptions(data),$toReplace.replaceWith(data.template(data)),window.tinyMCE.init(tinyMCEPreInit.mceInit[data.id]),"function"==typeof window.quicktags&&window.quicktags(tinyMCEPreInit.qtInit[data.id]),$(document.getElementById(data.id)).parents(".wp-editor-wrap").removeClass("html-active").addClass("tmce-active"),void(!1!==buttonsInit&&"undefined"!=typeof window.QTags&&window.QTags._buttonsInit())):!1},wysiwyg.destroy=function(id){var editor=tinyMCE.get(id);null!==editor&&"undefined"!=typeof editor?(editor.destroy(),"undefined"==typeof tinyMCEPreInit.mceInit[id]&&delete tinyMCEPreInit.mceInit[id],"undefined"==typeof tinyMCEPreInit.qtInit[id]&&delete tinyMCEPreInit.qtInit[id]):-1===toBeDestroyed.indexOf(id)&&(toBeDestroyed.push(id),window.setTimeout(delayedDestroy,100))},$(document).on("cmb_init",wysiwyg.initAll)}(window,document,jQuery,window.CMB2.wysiwyg);
|
1 |
+
window.CMB2=window.CMB2||{},function(window,document,$,cmb,undefined){"use strict";var $document,l10n=window.cmb2_l10,setTimeout=window.setTimeout,$id=function(selector){return $(document.getElementById(selector))},defaults={idNumber:!1,repeatEls:'input:not([type="button"],[id^=filelist]),select,textarea,.cmb2-media-status',noEmpty:'input:not([type="button"]):not([type="radio"]):not([type="checkbox"]),textarea',repeatUpdate:'input:not([type="button"]),select,textarea,label',styleBreakPoint:450,mediaHandlers:{},defaults:{time_picker:l10n.defaults.time_picker,date_picker:l10n.defaults.date_picker,color_picker:l10n.defaults.color_picker||{}},media:{frames:{}}};cmb.metabox=function(){return cmb.$metabox?cmb.$metabox:(cmb.$metabox=$(".cmb2-wrap > .cmb2-metabox"),cmb.$metabox)},cmb.init=function(){$document=$(document),$.extend(cmb,defaults),cmb.trigger("cmb_pre_init");var $metabox=cmb.metabox(),$repeatGroup=$metabox.find(".cmb-repeatable-group");cmb.initPickers($metabox.find('input[type="text"].cmb2-timepicker'),$metabox.find('input[type="text"].cmb2-datepicker'),$metabox.find('input[type="text"].cmb2-colorpicker')),$('<p><span class="button-secondary cmb-multicheck-toggle">'+l10n.strings.check_toggle+"</span></p>").insertBefore(".cmb2-checkbox-list:not(.no-select-all)"),cmb.makeListSortable(),$metabox.on("change",".cmb2_upload_file",function(){cmb.media.field=$(this).attr("id"),$id(cmb.media.field+"_id").val("")}).on("click",".cmb-multicheck-toggle",cmb.toggleCheckBoxes).on("click",".cmb2-upload-button",cmb.handleMedia).on("click",".cmb-attach-list li, .cmb2-media-status .img-status img, .cmb2-media-status .file-status > span",cmb.handleFileClick).on("click",".cmb2-remove-file-button",cmb.handleRemoveMedia).on("click",".cmb-add-group-row",cmb.addGroupRow).on("click",".cmb-add-row-button",cmb.addAjaxRow).on("click",".cmb-remove-group-row",cmb.removeGroupRow).on("click",".cmb-remove-row-button",cmb.removeAjaxRow).on("keyup paste focusout",".cmb2-oembed",cmb.maybeOembed).on("cmb2_remove_row",".cmb-repeatable-group",cmb.resetTitlesAndIterator).on("click",".cmbhandle, .cmbhandle + .cmbhandle-title",cmb.toggleHandle),$repeatGroup.length&&$repeatGroup.on("cmb2_add_row",cmb.emptyValue).filter(".sortable").each(function(){$(this).find(".cmb-remove-group-row-button").before('<a class="button-secondary cmb-shift-rows move-up alignleft" href="#"><span class="'+l10n.up_arrow_class+'"></span></a> <a class="button-secondary cmb-shift-rows move-down alignleft" href="#"><span class="'+l10n.down_arrow_class+'"></span></a>')}).on("click",".cmb-shift-rows",cmb.shiftRows),setTimeout(cmb.resizeoEmbeds,500),$(window).on("resize",cmb.resizeoEmbeds),cmb.trigger("cmb_init")},cmb.resetTitlesAndIterator=function(evt){evt.group&&$(".cmb-repeatable-group.repeatable").each(function(){var $table=$(this),groupTitle=$table.find(".cmb-add-group-row").data("grouptitle");$table.find(".cmb-repeatable-grouping").each(function(rowindex){var $row=$(this),$rowTitle=$row.find("h3.cmb-group-title");$row.data("iterator",rowindex),$rowTitle.length&&$rowTitle.text(groupTitle.replace("{#}",rowindex+1))})})},cmb.toggleHandle=function(evt){evt.preventDefault(),cmb.trigger("postbox-toggled",$(this).parent(".postbox").toggleClass("closed"))},cmb.toggleCheckBoxes=function(evt){evt.preventDefault();var $this=$(this),$multicheck=$this.closest(".cmb-td").find("input[type=checkbox]:not([disabled])");$this.data("checked")?($multicheck.prop("checked",!1),$this.data("checked",!1)):($multicheck.prop("checked",!0),$this.data("checked",!0))},cmb.handleMedia=function(evt){evt.preventDefault();var $el=$(this);cmb.attach_id=$el.hasClass("cmb2-upload-list")?!1:$el.closest(".cmb-td").find(".cmb2-upload-file-id").val(),cmb.attach_id="0"!==cmb.attach_id?cmb.attach_id:!1,cmb._handleMedia($el.prev("input.cmb2-upload-file").attr("id"),$el.hasClass("cmb2-upload-list"))},cmb.handleFileClick=function(evt){evt.preventDefault();var $el=$(this),$td=$el.closest(".cmb-td"),isList=$td.find(".cmb2-upload-button").hasClass("cmb2-upload-list");cmb.attach_id=isList?$el.find('input[type="hidden"]').data("id"):$td.find(".cmb2-upload-file-id").val(),cmb.attach_id&&cmb._handleMedia($td.find("input.cmb2-upload-file").attr("id"),isList,cmb.attach_id)},cmb._handleMedia=function(id,isList){if(wp){var media,handlers;if(handlers=cmb.mediaHandlers,media=cmb.media,media.field=id,media.$field=$id(media.field),media.fieldData=media.$field.data(),media.previewSize=media.fieldData.previewsize,media.sizeName=media.fieldData.sizename,media.fieldName=media.$field.attr("name"),media.isList=isList,id in media.frames)return media.frames[id].open();media.frames[id]=wp.media({title:cmb.metabox().find('label[for="'+id+'"]').text(),library:media.fieldData.queryargs||{},button:{text:l10n.strings[isList?"upload_files":"upload_file"]},multiple:isList?"add":!1}),media.frames[id].states.first().set("filterable","all"),cmb.trigger("cmb_media_modal_init",media),handlers.list=function(selection,returnIt){var attachmentHtml,fileGroup=[];return handlers.list.templates||(handlers.list.templates={image:wp.template("cmb2-list-image"),file:wp.template("cmb2-list-file")}),selection.each(function(attachment){attachmentHtml=handlers.getAttachmentHtml(attachment,"list"),fileGroup.push(attachmentHtml)}),returnIt?fileGroup:void media.$field.siblings(".cmb2-media-status").append(fileGroup)},handlers.single=function(selection){handlers.single.templates||(handlers.single.templates={image:wp.template("cmb2-single-image"),file:wp.template("cmb2-single-file")});var attachment=selection.first();media.$field.val(attachment.get("url")),$id(media.field+"_id").val(attachment.get("id"));var attachmentHtml=handlers.getAttachmentHtml(attachment,"single");media.$field.siblings(".cmb2-media-status").slideDown().html(attachmentHtml)},handlers.getAttachmentHtml=function(attachment,templatesId){var isImage="image"===attachment.get("type"),data=handlers.prepareData(attachment,isImage);return handlers[templatesId].templates[isImage?"image":"file"](data)},handlers.prepareData=function(data,image){return image&&handlers.getImageData.call(data,50),data=data.toJSON(),data.mediaField=media.field,data.mediaFieldName=media.fieldName,data.stringRemoveImage=l10n.strings.remove_image,data.stringFile=l10n.strings.file,data.stringDownload=l10n.strings.download,data.stringRemoveFile=l10n.strings.remove_file,data},handlers.getImageData=function(fallbackSize){var previewW=media.previewSize[0]||fallbackSize,previewH=media.previewSize[1]||fallbackSize,url=this.get("url"),width=this.get("width"),height=this.get("height"),sizes=this.get("sizes");return sizes&&(sizes[media.sizeName]?(url=sizes[media.sizeName].url,width=sizes[media.sizeName].width,height=sizes[media.sizeName].height):sizes.large&&(url=sizes.large.url,width=sizes.large.width,height=sizes.large.height)),width>previewW&&(height=Math.floor(previewW*height/width),width=previewW),height>previewH&&(width=Math.floor(previewH*width/height),height=previewH),width||(width=previewW),height||(height="svg"===this.get("filename").split(".").pop()?"100%":previewH),this.set("sizeUrl",url),this.set("sizeWidth",width),this.set("sizeHeight",height),this},handlers.selectFile=function(){var selection=media.frames[id].state().get("selection"),type=isList?"list":"single";cmb.attach_id&&isList?$('[data-id="'+cmb.attach_id+'"]').parents("li").replaceWith(handlers.list(selection,!0)):handlers[type](selection),cmb.trigger("cmb_media_modal_select",selection,media)},handlers.openModal=function(){var attach,selection=media.frames[id].state().get("selection");cmb.attach_id?(attach=wp.media.attachment(cmb.attach_id),attach.fetch(),selection.set(attach?[attach]:[])):selection.reset(),cmb.trigger("cmb_media_modal_open",selection,media)},media.frames[id].on("select",handlers.selectFile).on("open",handlers.openModal),media.frames[id].open()}},cmb.handleRemoveMedia=function(evt){evt.preventDefault();var $this=$(this);return $this.is(".cmb-attach-list .cmb2-remove-file-button")?($this.parents(".cmb2-media-item").remove(),!1):(cmb.media.field=$this.attr("rel"),cmb.metabox().find(document.getElementById(cmb.media.field)).val(""),cmb.metabox().find(document.getElementById(cmb.media.field+"_id")).val(""),$this.parents(".cmb2-media-status").html(""),!1)},cmb.cleanRow=function($row,prevNum,group){var $elements=$row.find(cmb.repeatUpdate);if(group){var $other=$row.find("[id]").not(cmb.repeatUpdate);$row.find(".cmb-repeat-table .cmb-repeat-row:not(:first-child)").remove(),$other.length&&$other.each(function(){var $_this=$(this),oldID=$_this.attr("id"),newID=oldID.replace("_"+prevNum,"_"+cmb.idNumber),$buttons=$row.find('[data-selector="'+oldID+'"]');$_this.attr("id",newID),$buttons.length&&$buttons.attr("data-selector",newID).data("selector",newID)})}return $elements.filter(":checked").removeAttr("checked"),$elements.find(":checked").removeAttr("checked"),$elements.filter(":selected").removeAttr("selected"),$elements.find(":selected").removeAttr("selected",!1),$row.find("h3.cmb-group-title").length&&$row.find("h3.cmb-group-title").text($row.data("title").replace("{#}",cmb.idNumber+1)),$elements.each(function(){cmb.elReplacements($(this),prevNum,group)}),cmb},cmb.elReplacements=function($newInput,prevNum,group){var newID,oldID,oldFor=$newInput.attr("for"),oldVal=$newInput.val(),type=$newInput.prop("type"),checkable="radio"===type||"checkbox"===type?oldVal:!1,attrs={};if(oldFor)attrs={"for":oldFor.replace("_"+prevNum,"_"+cmb.idNumber)};else{var newName,oldName=$newInput.attr("name");oldID=$newInput.attr("id"),group?(newName=oldName?oldName.replace("["+prevNum+"][","["+cmb.idNumber+"]["):"",newID=oldID?oldID.replace("_"+prevNum+"_","_"+cmb.idNumber+"_"):""):(newName=oldName?cmb.replaceLast(oldName,"["+prevNum+"]","["+cmb.idNumber+"]"):"",newID=oldID?cmb.replaceLast(oldID,"_"+prevNum,"_"+cmb.idNumber):""),attrs={id:newID,name:newName}}return"TEXTAREA"===$newInput.prop("tagName")&&$newInput.html(""),checkable&&$newInput.removeAttr("checked"),!group&&$newInput[0].hasAttribute("data-iterator")&&(attrs["data-iterator"]=cmb.idNumber),$newInput.removeClass("hasDatepicker").attr(attrs).val(checkable?checkable:""),$newInput},cmb.newRowHousekeeping=function($row){var $colorPicker=$row.find(".wp-picker-container"),$list=$row.find(".cmb2-media-status");return $colorPicker.length&&$colorPicker.each(function(){var $td=$(this).parent();$td.html($td.find('input[type="text"].cmb2-colorpicker').attr("style",""))}),$list.length&&$list.empty(),cmb},cmb.afterRowInsert=function($row){cmb.initPickers($row.find('input[type="text"].cmb2-timepicker'),$row.find('input[type="text"].cmb2-datepicker'),$row.find('input[type="text"].cmb2-colorpicker'))},cmb.updateNameAttr=function(){var $this=$(this),name=$this.attr("name");if("undefined"!=typeof name){var prevNum=parseInt($this.parents(".cmb-repeatable-grouping").data("iterator"),10),newNum=prevNum-1,$newName=name.replace("["+prevNum+"]","["+newNum+"]");$this.attr("name",$newName)}},cmb.emptyValue=function(evt,row){$(cmb.noEmpty,row).val("")},cmb.addGroupRow=function(evt){evt.preventDefault();var $this=$(this);cmb.triggerElement($this,"cmb2_add_group_row_start",$this);var $table=$id($this.data("selector")),$oldRow=$table.find(".cmb-repeatable-grouping").last(),prevNum=parseInt($oldRow.data("iterator"),10);cmb.idNumber=parseInt(prevNum,10)+1;for(var $row=$oldRow.clone();$table.find('.cmb-repeatable-grouping[data-iterator="'+cmb.idNumber+'"]').length>0;)cmb.idNumber++;cmb.newRowHousekeeping($row.data("title",$this.data("grouptitle"))).cleanRow($row,prevNum,!0),$row.find(".cmb-add-row-button").prop("disabled",!1);var $newRow=$('<div class="postbox cmb-row cmb-repeatable-grouping" data-iterator="'+cmb.idNumber+'">'+$row.html()+"</div>");$oldRow.after($newRow),cmb.afterRowInsert($newRow),cmb.triggerElement($table,{type:"cmb2_add_row",group:!0},$newRow)},cmb.addAjaxRow=function(evt){evt.preventDefault();var $this=$(this),$table=$id($this.data("selector")),$emptyrow=$table.find(".empty-row"),prevNum=parseInt($emptyrow.find("[data-iterator]").data("iterator"),10);cmb.idNumber=parseInt(prevNum,10)+1;var $row=$emptyrow.clone();cmb.newRowHousekeeping($row).cleanRow($row,prevNum),$emptyrow.removeClass("empty-row hidden").addClass("cmb-repeat-row"),$emptyrow.after($row),cmb.afterRowInsert($row),cmb.triggerElement($table,{type:"cmb2_add_row",group:!1},$row)},cmb.removeGroupRow=function(evt){evt.preventDefault();var $this=$(this),$table=$id($this.data("selector")),$parent=$this.parents(".cmb-repeatable-grouping"),number=$table.find(".cmb-repeatable-grouping").length;return 2>number?cmb.resetRow($parent.parents(".cmb-repeatable-group").find(".cmb-add-group-row"),$this):(cmb.triggerElement($table,"cmb2_remove_group_row_start",$this),$parent.nextAll(".cmb-repeatable-grouping").find(cmb.repeatEls).each(cmb.updateNameAttr),$parent.remove(),void cmb.triggerElement($table,{type:"cmb2_remove_row",group:!0}))},cmb.removeAjaxRow=function(evt){evt.preventDefault();var $this=$(this);if(!$this.hasClass("button-disabled")){var $parent=$this.parents(".cmb-row"),$table=$this.parents(".cmb-repeat-table"),number=$table.find(".cmb-row").length;if(2>=number)return cmb.resetRow($parent.find(".cmb-add-row-button"),$this);$parent.hasClass("empty-row")&&$parent.prev().addClass("empty-row").removeClass("cmb-repeat-row"),$this.parents(".cmb-repeat-table .cmb-row").remove(),cmb.triggerElement($table,{type:"cmb2_remove_row",group:!1})}},cmb.resetRow=function($addNewBtn,$removeBtn){$addNewBtn.trigger("click"),$removeBtn.trigger("click")},cmb.shiftRows=function(evt){evt.preventDefault();var $this=$(this),$from=$this.parents(".cmb-repeatable-grouping"),$goto=$this.hasClass("move-up")?$from.prev(".cmb-repeatable-grouping"):$from.next(".cmb-repeatable-grouping");if(cmb.triggerElement($this,"cmb2_shift_rows_enter",$this,$from,$goto),$goto.length){cmb.triggerElement($this,"cmb2_shift_rows_start",$this,$from,$goto);var inputVals=[];$from.find(cmb.repeatEls).each(function(){var val,$element=$(this),elType=$element.attr("type");val=$element.hasClass("cmb2-media-status")?$element.html():"checkbox"===elType||"radio"===elType?$element.is(":checked"):"select"===$element.prop("tagName")?$element.is(":selected"):$element.val(),inputVals.push({val:val,$:$element})}),$goto.find(cmb.repeatEls).each(function(index){var val,$element=$(this),elType=$element.attr("type");if($element.hasClass("cmb2-media-status")){var toRowId=$element.closest(".cmb-repeatable-grouping").attr("data-iterator"),fromRowId=inputVals[index].$.closest(".cmb-repeatable-grouping").attr("data-iterator");val=$element.html(),$element.html(inputVals[index].val),inputVals[index].$.html(val),inputVals[index].$.find("input").each(function(){var name=$(this).attr("name");name=name.replace("["+toRowId+"]","["+fromRowId+"]"),$(this).attr("name",name)}),$element.find("input").each(function(){var name=$(this).attr("name");name=name.replace("["+fromRowId+"]","["+toRowId+"]"),$(this).attr("name",name)})}else"checkbox"===elType?(inputVals[index].$.prop("checked",$element.is(":checked")),$element.prop("checked",inputVals[index].val)):"radio"===elType?($element.is(":checked")&&inputVals[index].$.attr("data-checked","true"),inputVals[index].$.is(":checked")&&$element.attr("data-checked","true")):"select"===$element.prop("tagName")?(inputVals[index].$.prop("selected",$element.is(":selected")),$element.prop("selected",inputVals[index].val)):(inputVals[index].$.val($element.val()),$element.val(inputVals[index].val))}),$from.find("input[data-checked=true]").prop("checked",!0).removeAttr("data-checked"),$goto.find("input[data-checked=true]").prop("checked",!0).removeAttr("data-checked"),$from.find('input[type="text"].cmb2-colorpicker').trigger("change"),$goto.find('input[type="text"].cmb2-colorpicker').trigger("change"),cmb.triggerElement($this,"cmb2_shift_rows_complete",$this,$from,$goto)}},cmb.initPickers=function($timePickers,$datePickers,$colorPickers){cmb.initDateTimePickers($timePickers,"timepicker","time_picker"),cmb.initDateTimePickers($datePickers,"datepicker","date_picker"),cmb.initColorPickers($colorPickers)},cmb.initDateTimePickers=function($selector,method,defaultKey){$selector.length&&$selector[method]("destroy").each(function(){var $this=$(this),fieldOpts=$this.data(method)||{},options=$.extend({},cmb.defaults[defaultKey],fieldOpts);$this[method](cmb.datePickerSetupOpts(fieldOpts,options,method))})},cmb.datePickerSetupOpts=function(fieldOpts,options,method){var existing=$.extend({},options);return options.beforeShow=function(input,inst){"timepicker"===method&&cmb.addTimePickerClasses(inst.dpDiv),$id("ui-datepicker-div").addClass("cmb2-element"),"function"==typeof existing.beforeShow&&existing.beforeShow(input,inst)},"timepicker"===method&&(options.onChangeMonthYear=function(year,month,inst,picker){cmb.addTimePickerClasses(inst.dpDiv),"function"==typeof existing.onChangeMonthYear&&existing.onChangeMonthYear(year,month,inst,picker)}),options.onClose=function(dateText,inst){var $picker=$id("ui-datepicker-div").removeClass("cmb2-element").hide();"timepicker"!==method||$(inst.input).val()||inst.input.val($picker.find(".ui_tpicker_time").text()),"function"==typeof existing.onClose&&existing.onClose(dateText,inst)},options},cmb.addTimePickerClasses=function($picker){var func=cmb.addTimePickerClasses;func.count=func.count||0,setTimeout(function(){$picker.find(".ui-priority-secondary").length?($picker.find(".ui-priority-secondary").addClass("button-secondary"),$picker.find(".ui-priority-primary").addClass("button-primary"),func.count=0):func.count<5&&(func.count++,func($picker))},10)},cmb.initColorPickers=function($selector){$selector.length&&("object"==typeof jQuery.wp&&"function"==typeof jQuery.wp.wpColorPicker?$selector.each(function(){var $this=$(this),fieldOpts=$this.data("colorpicker")||{};$this.wpColorPicker($.extend({},cmb.defaults.color_picker,fieldOpts))}):$selector.each(function(i){$(this).after('<div id="picker-'+i+'" style="z-index: 1000; background: #EEE; border: 1px solid #CCC; position: absolute; display: block;"></div>'),$id("picker-"+i).hide().farbtastic($(this))}).focus(function(){$(this).next().show()}).blur(function(){$(this).next().hide()}))},cmb.makeListSortable=function(){var $filelist=cmb.metabox().find(".cmb2-media-status.cmb-attach-list");$filelist.length&&$filelist.sortable({cursor:"move"}).disableSelection()},cmb.maybeOembed=function(evt){var $this=$(this),m={focusout:function(){setTimeout(function(){cmb.spinner(".cmb2-metabox",!0)},2e3)},keyup:function(){var betw=function(min,max){return evt.which<=max&&evt.which>=min};(betw(48,90)||betw(96,111)||betw(8,9)||187===evt.which||190===evt.which)&&cmb.doAjax($this,evt)},paste:function(){setTimeout(function(){cmb.doAjax($this)},100)}};m[evt.type]()},cmb.resizeoEmbeds=function(){cmb.metabox().each(function(){var $this=$(this),$tableWrap=$this.parents(".inside"),isSide=$this.parents(".inner-sidebar").length||$this.parents("#side-sortables").length,isSmall=isSide,isSmallest=!1;if(!$tableWrap.length)return!0;var tableW=$tableWrap.width();cmb.styleBreakPoint>tableW&&(isSmall=!0,isSmallest=cmb.styleBreakPoint-62>tableW),tableW=isSmall?tableW:Math.round(.82*$tableWrap.width()*.97);var newWidth=tableW-30;if(!isSmall||isSide||isSmallest||(newWidth-=75),newWidth>639)return!0;var $embeds=$this.find(".cmb-type-oembed .embed-status"),$children=$embeds.children().not(".cmb2-remove-wrapper");return $children.length?void $children.each(function(){var $this=$(this),iwidth=$this.width(),iheight=$this.height(),_newWidth=newWidth;$this.parents(".cmb-repeat-row").length&&!isSmall&&(_newWidth=newWidth-91,_newWidth=785>tableW?_newWidth-15:_newWidth);var newHeight=Math.round(_newWidth*iheight/iwidth);$this.width(_newWidth).height(newHeight)}):!0})},cmb.log=function(){l10n.script_debug&&console&&"function"==typeof console.log&&console.log.apply(console,arguments)},cmb.spinner=function($context,hide){var m=hide?"removeClass":"addClass";$(".cmb-spinner",$context)[m]("is-active")},cmb.doAjax=function($obj){var oembed_url=$obj.val();if(!(oembed_url.length<6)){var field_id=$obj.attr("id"),$context=$obj.closest(".cmb-td"),$embed_container=$context.find(".embed-status"),$embed_wrap=$context.find(".embed_wrap"),$child_el=$embed_container.find(":first-child"),oembed_width=$embed_container.length&&$child_el.length?$child_el.width():$obj.width();cmb.log("oembed_url",oembed_url,field_id),cmb.spinner($context),$embed_wrap.html(""),setTimeout(function(){$(".cmb2-oembed:focus").val()===oembed_url&&$.ajax({type:"post",dataType:"json",url:l10n.ajaxurl,data:{action:"cmb2_oembed_handler",oembed_url:oembed_url,oembed_width:oembed_width>300?oembed_width:300,field_id:field_id,object_id:$obj.data("objectid"),object_type:$obj.data("objecttype"),cmb2_ajax_nonce:l10n.ajax_nonce},success:function(response){cmb.log(response),cmb.spinner($context,!0),$embed_wrap.html(response.data)}})},500)}},cmb.trigger=function(evtName){var args=Array.prototype.slice.call(arguments,1);args.push(cmb),$document.trigger(evtName,args)},cmb.triggerElement=function($el,evtName){var args=Array.prototype.slice.call(arguments,2);args.push(cmb),$el.trigger(evtName,args)},cmb.replaceLast=function(string,search,replace){var n=string.lastIndexOf(search);return string.slice(0,n)+string.slice(n).replace(search,replace)},$(cmb.init)}(window,document,jQuery,window.CMB2),window.CMB2=window.CMB2||{},window.CMB2.wysiwyg=window.CMB2.wysiwyg||{},function(window,document,$,wysiwyg,undefined){"use strict";function delayedInit(){0===toBeDestroyed.length?toBeInitialized.forEach(function(toInit){toBeInitialized.splice(toBeInitialized.indexOf(toInit),1),wysiwyg.init.apply(wysiwyg,toInit)}):window.setTimeout(delayedInit,100)}function delayedDestroy(){toBeDestroyed.forEach(function(id){toBeDestroyed.splice(toBeDestroyed.indexOf(id),1),wysiwyg.destroy(id)})}function getGroupData(data){var groupid=data.groupid,fieldid=data.fieldid;return all[groupid]&&all[groupid][fieldid]||(all[groupid]=all[groupid]||{},all[groupid][fieldid]={template:wp.template("cmb2-wysiwyg-"+groupid+"-"+fieldid),defaults:{mce:$.extend({},tinyMCEPreInit.mceInit["cmb2_i_"+groupid+fieldid]),qt:$.extend({},tinyMCEPreInit.qtInit["cmb2_i_"+groupid+fieldid])}},delete tinyMCEPreInit.mceInit["cmb2_i_"+groupid+fieldid],delete tinyMCEPreInit.qtInit["cmb2_i_"+groupid+fieldid]),all[groupid][fieldid]}function initOptions(options){var prop,newSettings,newQTS,nameRegex=new RegExp("cmb2_n_"+options.groupid+options.fieldid,"g"),idRegex=new RegExp("cmb2_i_"+options.groupid+options.fieldid,"g");if("undefined"==typeof tinyMCEPreInit.mceInit[options.id]){newSettings=$.extend({},options.defaults.mce);for(prop in newSettings)"string"==typeof newSettings[prop]&&(newSettings[prop]=newSettings[prop].replace(idRegex,options.id).replace(nameRegex,options.name));tinyMCEPreInit.mceInit[options.id]=newSettings}if("undefined"==typeof tinyMCEPreInit.qtInit[options.id]){newQTS=$.extend({},options.defaults.qt);for(prop in newQTS)"string"==typeof newQTS[prop]&&(newQTS[prop]=newQTS[prop].replace(idRegex,options.id).replace(nameRegex,options.name));tinyMCEPreInit.qtInit[options.id]=newQTS}}var toBeDestroyed=[],toBeInitialized=[],all=wysiwyg.all={};wysiwyg.initAll=function(){var $this,data,initiated;$(".cmb2-wysiwyg-placeholder").each(function(){$this=$(this),data=$this.data(),data.groupid&&(data.id=$this.attr("id"),data.name=$this.attr("name"),data.value=$this.val(),wysiwyg.init($this,data,!1),initiated=!0)}),!0===initiated&&("undefined"!=typeof window.QTags&&window.QTags._buttonsInit(),$(document).on("cmb2_add_row",wysiwyg.addRow).on("cmb2_remove_group_row_start",wysiwyg.destroyRowEditors).on("cmb2_shift_rows_start",wysiwyg.shiftStart).on("cmb2_shift_rows_complete",wysiwyg.shiftComplete))},wysiwyg.addRow=function(evt,$row){wysiwyg.initRow($row)},wysiwyg.destroyRowEditors=function(evt,$btn){wysiwyg.destroy($btn.parents(".cmb-repeatable-grouping").find(".wp-editor-area").attr("id"))},wysiwyg.shiftStart=function(evt,$btn,$from,$to){$from.add($to).find(".wp-editor-wrap textarea").each(function(){wysiwyg.destroy($(this).attr("id"))})},wysiwyg.shiftComplete=function(evt,$btn,$from,$to){$from.add($to).each(function(){wysiwyg.initRow($(this))})},wysiwyg.initRow=function($row){var $toReplace,data;$row.find(".cmb2-wysiwyg-inner-wrap").each(function(){$toReplace=$(this),data=$toReplace.data(),data.iterator=$row.data("iterator"),data.fieldid=data.id,data.id=data.groupid+"_"+data.iterator+"_"+data.fieldid,data.name=data.groupid+"["+data.iterator+"]["+data.fieldid+"]",data.value=$toReplace.find(".wp-editor-area").length?$toReplace.find(".wp-editor-area").val():"",0===toBeDestroyed.length?wysiwyg.init($toReplace,data):(toBeInitialized.push([$toReplace,data]),window.setTimeout(delayedInit,100))})},wysiwyg.init=function($toReplace,data,buttonsInit){if(!data.groupid)return!1;var mceActive=window.cmb2_l10.user_can_richedit&&window.tinyMCE,qtActive="function"==typeof window.quicktags;$.extend(data,getGroupData(data)),initOptions(data),$toReplace.replaceWith(data.template(data)),mceActive&&window.tinyMCE.init(tinyMCEPreInit.mceInit[data.id]),qtActive&&window.quicktags(tinyMCEPreInit.qtInit[data.id]),mceActive&&$(document.getElementById(data.id)).parents(".wp-editor-wrap").removeClass("html-active").addClass("tmce-active"),!1!==buttonsInit&&"undefined"!=typeof window.QTags&&window.QTags._buttonsInit()},wysiwyg.destroy=function(id){if(window.cmb2_l10.user_can_richedit&&window.tinyMCE){var editor=tinyMCE.get(id);null!==editor&&"undefined"!=typeof editor?(editor.destroy(),"undefined"==typeof tinyMCEPreInit.mceInit[id]&&delete tinyMCEPreInit.mceInit[id],"undefined"==typeof tinyMCEPreInit.qtInit[id]&&delete tinyMCEPreInit.qtInit[id]):-1===toBeDestroyed.indexOf(id)&&(toBeDestroyed.push(id),window.setTimeout(delayedDestroy,100))}},$(document).on("cmb_init",wysiwyg.initAll)}(window,document,jQuery,window.CMB2.wysiwyg);
|
vendor/webdevstudios/cmb2/js/wp-color-picker-alpha.js
ADDED
@@ -0,0 +1,496 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**!
|
2 |
+
* wp-color-picker-alpha
|
3 |
+
*
|
4 |
+
* Overwrite Automattic Iris for enabled Alpha Channel in wpColorPicker
|
5 |
+
* Only run in input and is defined data alpha in true
|
6 |
+
*
|
7 |
+
* Version: 2.1.3
|
8 |
+
* https://github.com/kallookoo/wp-color-picker-alpha
|
9 |
+
* Licensed under the GPLv2 license.
|
10 |
+
*/
|
11 |
+
( function( $ ) {
|
12 |
+
// Prevent double-init.
|
13 |
+
if ( $.wp.wpColorPicker.prototype._hasAlpha ) {
|
14 |
+
return;
|
15 |
+
}
|
16 |
+
|
17 |
+
// Variable for some backgrounds ( grid )
|
18 |
+
var image = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==',
|
19 |
+
// html stuff for wpColorPicker copy of the original color-picker.js
|
20 |
+
_after = '<div class="wp-picker-holder" />',
|
21 |
+
_wrap = '<div class="wp-picker-container" />',
|
22 |
+
_button = '<input type="button" class="button button-small" />',
|
23 |
+
// Prevent CSS issues in < WordPress 4.9
|
24 |
+
_deprecated = ( wpColorPickerL10n.current !== undefined );
|
25 |
+
// Declare some global variables when is deprecated or not
|
26 |
+
if ( _deprecated ) {
|
27 |
+
var _before = '<a tabindex="0" class="wp-color-result" />';
|
28 |
+
} else {
|
29 |
+
var _before = '<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>',
|
30 |
+
_wrappingLabel = '<label></label>',
|
31 |
+
_wrappingLabelText = '<span class="screen-reader-text"></span>';
|
32 |
+
}
|
33 |
+
/**
|
34 |
+
* Overwrite Color
|
35 |
+
* for enable support rbga
|
36 |
+
*/
|
37 |
+
Color.fn.toString = function() {
|
38 |
+
if ( this._alpha < 1 )
|
39 |
+
return this.toCSS( 'rgba', this._alpha ).replace( /\s+/g, '' );
|
40 |
+
|
41 |
+
var hex = parseInt( this._color, 10 ).toString( 16 );
|
42 |
+
|
43 |
+
if ( this.error )
|
44 |
+
return '';
|
45 |
+
|
46 |
+
if ( hex.length < 6 )
|
47 |
+
hex = ( '00000' + hex ).substr( -6 );
|
48 |
+
|
49 |
+
return '#' + hex;
|
50 |
+
};
|
51 |
+
|
52 |
+
/**
|
53 |
+
* Overwrite wpColorPicker
|
54 |
+
*/
|
55 |
+
$.widget( 'wp.wpColorPicker', $.wp.wpColorPicker, {
|
56 |
+
_hasAlpha: true,
|
57 |
+
/**
|
58 |
+
* @summary Creates the color picker.
|
59 |
+
*
|
60 |
+
* Creates the color picker, sets default values, css classes and wraps it all in HTML.
|
61 |
+
*
|
62 |
+
* @since 3.5.0
|
63 |
+
*
|
64 |
+
* @access private
|
65 |
+
*
|
66 |
+
* @returns {void}
|
67 |
+
*/
|
68 |
+
_create: function() {
|
69 |
+
// Return early if Iris support is missing.
|
70 |
+
if ( ! $.support.iris ) {
|
71 |
+
return;
|
72 |
+
}
|
73 |
+
|
74 |
+
var self = this,
|
75 |
+
el = self.element;
|
76 |
+
|
77 |
+
// Override default options with options bound to the element.
|
78 |
+
$.extend( self.options, el.data() );
|
79 |
+
|
80 |
+
// Create a color picker which only allows adjustments to the hue.
|
81 |
+
if ( self.options.type === 'hue' ) {
|
82 |
+
return self._createHueOnly();
|
83 |
+
}
|
84 |
+
|
85 |
+
// Bind the close event.
|
86 |
+
self.close = $.proxy( self.close, self );
|
87 |
+
|
88 |
+
self.initialValue = el.val();
|
89 |
+
|
90 |
+
// Add a CSS class to the input field.
|
91 |
+
el.addClass( 'wp-color-picker' );
|
92 |
+
|
93 |
+
if ( _deprecated ) {
|
94 |
+
el.hide().wrap( _wrap );
|
95 |
+
self.wrap = el.parent();
|
96 |
+
self.toggler = $( _before )
|
97 |
+
.insertBefore( el )
|
98 |
+
.css( { backgroundColor : self.initialValue } )
|
99 |
+
.attr( 'title', wpColorPickerL10n.pick )
|
100 |
+
.attr( 'data-current', wpColorPickerL10n.current );
|
101 |
+
self.pickerContainer = $( _after ).insertAfter( el );
|
102 |
+
self.button = $( _button ).addClass('hidden');
|
103 |
+
} else {
|
104 |
+
/*
|
105 |
+
* Check if there's already a wrapping label, e.g. in the Customizer.
|
106 |
+
* If there's no label, add a default one to match the Customizer template.
|
107 |
+
*/
|
108 |
+
if ( ! el.parent( 'label' ).length ) {
|
109 |
+
// Wrap the input field in the default label.
|
110 |
+
el.wrap( _wrappingLabel );
|
111 |
+
// Insert the default label text.
|
112 |
+
self.wrappingLabelText = $( _wrappingLabelText )
|
113 |
+
.insertBefore( el )
|
114 |
+
.text( wpColorPickerL10n.defaultLabel );
|
115 |
+
}
|
116 |
+
|
117 |
+
/*
|
118 |
+
* At this point, either it's the standalone version or the Customizer
|
119 |
+
* one, we have a wrapping label to use as hook in the DOM, let's store it.
|
120 |
+
*/
|
121 |
+
self.wrappingLabel = el.parent();
|
122 |
+
|
123 |
+
// Wrap the label in the main wrapper.
|
124 |
+
self.wrappingLabel.wrap( _wrap );
|
125 |
+
// Store a reference to the main wrapper.
|
126 |
+
self.wrap = self.wrappingLabel.parent();
|
127 |
+
// Set up the toggle button and insert it before the wrapping label.
|
128 |
+
self.toggler = $( _before )
|
129 |
+
.insertBefore( self.wrappingLabel )
|
130 |
+
.css( { backgroundColor: self.initialValue } );
|
131 |
+
// Set the toggle button span element text.
|
132 |
+
self.toggler.find( '.wp-color-result-text' ).text( wpColorPickerL10n.pick );
|
133 |
+
// Set up the Iris container and insert it after the wrapping label.
|
134 |
+
self.pickerContainer = $( _after ).insertAfter( self.wrappingLabel );
|
135 |
+
// Store a reference to the Clear/Default button.
|
136 |
+
self.button = $( _button );
|
137 |
+
}
|
138 |
+
|
139 |
+
// Set up the Clear/Default button.
|
140 |
+
if ( self.options.defaultColor ) {
|
141 |
+
self.button.addClass( 'wp-picker-default' ).val( wpColorPickerL10n.defaultString );
|
142 |
+
if ( ! _deprecated ) {
|
143 |
+
self.button.attr( 'aria-label', wpColorPickerL10n.defaultAriaLabel );
|
144 |
+
}
|
145 |
+
} else {
|
146 |
+
self.button.addClass( 'wp-picker-clear' ).val( wpColorPickerL10n.clear );
|
147 |
+
if ( ! _deprecated ) {
|
148 |
+
self.button.attr( 'aria-label', wpColorPickerL10n.clearAriaLabel );
|
149 |
+
}
|
150 |
+
}
|
151 |
+
|
152 |
+
if ( _deprecated ) {
|
153 |
+
el.wrap( '<span class="wp-picker-input-wrap" />' ).after( self.button );
|
154 |
+
} else {
|
155 |
+
// Wrap the wrapping label in its wrapper and append the Clear/Default button.
|
156 |
+
self.wrappingLabel
|
157 |
+
.wrap( '<span class="wp-picker-input-wrap hidden" />' )
|
158 |
+
.after( self.button );
|
159 |
+
|
160 |
+
/*
|
161 |
+
* The input wrapper now contains the label+input+Clear/Default button.
|
162 |
+
* Store a reference to the input wrapper: we'll use this to toggle
|
163 |
+
* the controls visibility.
|
164 |
+
*/
|
165 |
+
self.inputWrapper = el.closest( '.wp-picker-input-wrap' );
|
166 |
+
}
|
167 |
+
|
168 |
+
el.iris( {
|
169 |
+
target: self.pickerContainer,
|
170 |
+
hide: self.options.hide,
|
171 |
+
width: self.options.width,
|
172 |
+
mode: self.options.mode,
|
173 |
+
palettes: self.options.palettes,
|
174 |
+
/**
|
175 |
+
* @summary Handles the onChange event if one has been defined in the options.
|
176 |
+
*
|
177 |
+
* Handles the onChange event if one has been defined in the options and additionally
|
178 |
+
* sets the background color for the toggler element.
|
179 |
+
*
|
180 |
+
* @since 3.5.0
|
181 |
+
*
|
182 |
+
* @param {Event} event The event that's being called.
|
183 |
+
* @param {HTMLElement} ui The HTMLElement containing the color picker.
|
184 |
+
*
|
185 |
+
* @returns {void}
|
186 |
+
*/
|
187 |
+
change: function( event, ui ) {
|
188 |
+
if ( self.options.alpha ) {
|
189 |
+
self.toggler.css( { 'background-image' : 'url(' + image + ')' } );
|
190 |
+
if ( _deprecated ) {
|
191 |
+
self.toggler.html( '<span class="color-alpha" />' );
|
192 |
+
} else {
|
193 |
+
self.toggler.css( {
|
194 |
+
'position' : 'relative'
|
195 |
+
} );
|
196 |
+
if ( self.toggler.find('span.color-alpha').length == 0 ) {
|
197 |
+
self.toggler.append('<span class="color-alpha" />');
|
198 |
+
}
|
199 |
+
}
|
200 |
+
|
201 |
+
self.toggler.find( 'span.color-alpha' ).css( {
|
202 |
+
'width' : '30px',
|
203 |
+
'height' : '24px',
|
204 |
+
'position' : 'absolute',
|
205 |
+
'top' : 0,
|
206 |
+
'left' : 0,
|
207 |
+
'border-top-left-radius' : '2px',
|
208 |
+
'border-bottom-left-radius' : '2px',
|
209 |
+
'background' : ui.color.toString()
|
210 |
+
} );
|
211 |
+
} else {
|
212 |
+
self.toggler.css( { backgroundColor : ui.color.toString() } );
|
213 |
+
}
|
214 |
+
|
215 |
+
if ( $.isFunction( self.options.change ) ) {
|
216 |
+
self.options.change.call( this, event, ui );
|
217 |
+
}
|
218 |
+
}
|
219 |
+
} );
|
220 |
+
|
221 |
+
el.val( self.initialValue );
|
222 |
+
self._addListeners();
|
223 |
+
|
224 |
+
// Force the color picker to always be closed on initial load.
|
225 |
+
if ( ! self.options.hide ) {
|
226 |
+
self.toggler.click();
|
227 |
+
}
|
228 |
+
},
|
229 |
+
/**
|
230 |
+
* @summary Binds event listeners to the color picker.
|
231 |
+
*
|
232 |
+
* @since 3.5.0
|
233 |
+
*
|
234 |
+
* @access private
|
235 |
+
*
|
236 |
+
* @returns {void}
|
237 |
+
*/
|
238 |
+
_addListeners: function() {
|
239 |
+
var self = this;
|
240 |
+
|
241 |
+
/**
|
242 |
+
* @summary Prevent any clicks inside this widget from leaking to the top and closing it.
|
243 |
+
*
|
244 |
+
* @since 3.5.0
|
245 |
+
*
|
246 |
+
* @param {Event} event The event that's being called.
|
247 |
+
*
|
248 |
+
* @returs {void}
|
249 |
+
*/
|
250 |
+
self.wrap.on( 'click.wpcolorpicker', function( event ) {
|
251 |
+
event.stopPropagation();
|
252 |
+
});
|
253 |
+
|
254 |
+
/**
|
255 |
+
* @summary Open or close the color picker depending on the class.
|
256 |
+
*
|
257 |
+
* @since 3.5
|
258 |
+
*/
|
259 |
+
self.toggler.click( function(){
|
260 |
+
if ( self.toggler.hasClass( 'wp-picker-open' ) ) {
|
261 |
+
self.close();
|
262 |
+
} else {
|
263 |
+
self.open();
|
264 |
+
}
|
265 |
+
});
|
266 |
+
|
267 |
+
/**
|
268 |
+
* @summary Checks if value is empty when changing the color in the color picker.
|
269 |
+
*
|
270 |
+
* Checks if value is empty when changing the color in the color picker.
|
271 |
+
* If so, the background color is cleared.
|
272 |
+
*
|
273 |
+
* @since 3.5.0
|
274 |
+
*
|
275 |
+
* @param {Event} event The event that's being called.
|
276 |
+
*
|
277 |
+
* @returns {void}
|
278 |
+
*/
|
279 |
+
self.element.on( 'change', function( event ) {
|
280 |
+
// Empty or Error = clear
|
281 |
+
if ( $( this ).val() === '' || self.element.hasClass( 'iris-error' ) ) {
|
282 |
+
if ( self.options.alpha ) {
|
283 |
+
if ( _deprecated ) {
|
284 |
+
self.toggler.removeAttr( 'style' );
|
285 |
+
}
|
286 |
+
self.toggler.find( 'span.color-alpha' ).css( 'backgroundColor', '' );
|
287 |
+
} else {
|
288 |
+
self.toggler.css( 'backgroundColor', '' );
|
289 |
+
}
|
290 |
+
|
291 |
+
// fire clear callback if we have one
|
292 |
+
if ( $.isFunction( self.options.clear ) )
|
293 |
+
self.options.clear.call( this, event );
|
294 |
+
}
|
295 |
+
} );
|
296 |
+
|
297 |
+
/**
|
298 |
+
* @summary Enables the user to clear or revert the color in the color picker.
|
299 |
+
*
|
300 |
+
* Enables the user to either clear the color in the color picker or revert back to the default color.
|
301 |
+
*
|
302 |
+
* @since 3.5.0
|
303 |
+
*
|
304 |
+
* @param {Event} event The event that's being called.
|
305 |
+
*
|
306 |
+
* @returns {void}
|
307 |
+
*/
|
308 |
+
self.button.on( 'click', function( event ) {
|
309 |
+
if ( $( this ).hasClass( 'wp-picker-clear' ) ) {
|
310 |
+
self.element.val( '' );
|
311 |
+
if ( self.options.alpha ) {
|
312 |
+
if ( _deprecated ) {
|
313 |
+
self.toggler.removeAttr( 'style' );
|
314 |
+
}
|
315 |
+
self.toggler.find( 'span.color-alpha' ).css( 'backgroundColor', '' );
|
316 |
+
} else {
|
317 |
+
self.toggler.css( 'backgroundColor', '' );
|
318 |
+
}
|
319 |
+
|
320 |
+
if ( $.isFunction( self.options.clear ) )
|
321 |
+
self.options.clear.call( this, event );
|
322 |
+
|
323 |
+
} else if ( $( this ).hasClass( 'wp-picker-default' ) ) {
|
324 |
+
self.element.val( self.options.defaultColor ).change();
|
325 |
+
}
|
326 |
+
});
|
327 |
+
},
|
328 |
+
});
|
329 |
+
|
330 |
+
/**
|
331 |
+
* Overwrite iris
|
332 |
+
*/
|
333 |
+
$.widget( 'a8c.iris', $.a8c.iris, {
|
334 |
+
_create: function() {
|
335 |
+
this._super();
|
336 |
+
|
337 |
+
// Global option for check is mode rbga is enabled
|
338 |
+
this.options.alpha = this.element.data( 'alpha' ) || false;
|
339 |
+
|
340 |
+
// Is not input disabled
|
341 |
+
if ( ! this.element.is( ':input' ) )
|
342 |
+
this.options.alpha = false;
|
343 |
+
|
344 |
+
if ( typeof this.options.alpha !== 'undefined' && this.options.alpha ) {
|
345 |
+
var self = this,
|
346 |
+
el = self.element,
|
347 |
+
_html = '<div class="iris-strip iris-slider iris-alpha-slider"><div class="iris-slider-offset iris-slider-offset-alpha"></div></div>',
|
348 |
+
aContainer = $( _html ).appendTo( self.picker.find( '.iris-picker-inner' ) ),
|
349 |
+
aSlider = aContainer.find( '.iris-slider-offset-alpha' ),
|
350 |
+
controls = {
|
351 |
+
aContainer : aContainer,
|
352 |
+
aSlider : aSlider
|
353 |
+
};
|
354 |
+
|
355 |
+
if ( typeof el.data( 'custom-width' ) !== 'undefined' ) {
|
356 |
+
self.options.customWidth = parseInt( el.data( 'custom-width' ) ) || 0;
|
357 |
+
} else {
|
358 |
+
self.options.customWidth = 100;
|
359 |
+
}
|
360 |
+
|
361 |
+
// Set default width for input reset
|
362 |
+
self.options.defaultWidth = el.width();
|
363 |
+
|
364 |
+
// Update width for input
|
365 |
+
if ( self._color._alpha < 1 || self._color.toString().indexOf('rgb') != -1 )
|
366 |
+
el.width( parseInt( self.options.defaultWidth + self.options.customWidth ) );
|
367 |
+
|
368 |
+
// Push new controls
|
369 |
+
$.each( controls, function( k, v ) {
|
370 |
+
self.controls[k] = v;
|
371 |
+
} );
|
372 |
+
|
373 |
+
// Change size strip and add margin for sliders
|
374 |
+
self.controls.square.css( { 'margin-right': '0' } );
|
375 |
+
var emptyWidth = ( self.picker.width() - self.controls.square.width() - 20 ),
|
376 |
+
stripsMargin = ( emptyWidth / 6 ),
|
377 |
+
stripsWidth = ( ( emptyWidth / 2 ) - stripsMargin );
|
378 |
+
|
379 |
+
$.each( [ 'aContainer', 'strip' ], function( k, v ) {
|
380 |
+
self.controls[v].width( stripsWidth ).css( { 'margin-left' : stripsMargin + 'px' } );
|
381 |
+
} );
|
382 |
+
|
383 |
+
// Add new slider
|
384 |
+
self._initControls();
|
385 |
+
|
386 |
+
// For updated widget
|
387 |
+
self._change();
|
388 |
+
}
|
389 |
+
},
|
390 |
+
_initControls: function() {
|
391 |
+
this._super();
|
392 |
+
|
393 |
+
if ( this.options.alpha ) {
|
394 |
+
var self = this,
|
395 |
+
controls = self.controls;
|
396 |
+
|
397 |
+
controls.aSlider.slider({
|
398 |
+
orientation : 'vertical',
|
399 |
+
min : 0,
|
400 |
+
max : 100,
|
401 |
+
step : 1,
|
402 |
+
value : parseInt( self._color._alpha * 100 ),
|
403 |
+
slide : function( event, ui ) {
|
404 |
+
// Update alpha value
|
405 |
+
self._color._alpha = parseFloat( ui.value / 100 );
|
406 |
+
self._change.apply( self, arguments );
|
407 |
+
}
|
408 |
+
});
|
409 |
+
}
|
410 |
+
},
|
411 |
+
_change: function() {
|
412 |
+
this._super();
|
413 |
+
|
414 |
+
var self = this,
|
415 |
+
el = self.element;
|
416 |
+
|
417 |
+
if ( this.options.alpha ) {
|
418 |
+
var controls = self.controls,
|
419 |
+
alpha = parseInt( self._color._alpha * 100 ),
|
420 |
+
color = self._color.toRgb(),
|
421 |
+
gradient = [
|
422 |
+
'rgb(' + color.r + ',' + color.g + ',' + color.b + ') 0%',
|
423 |
+
'rgba(' + color.r + ',' + color.g + ',' + color.b + ', 0) 100%'
|
424 |
+
],
|
425 |
+
defaultWidth = self.options.defaultWidth,
|
426 |
+
customWidth = self.options.customWidth,
|
427 |
+
target = self.picker.closest( '.wp-picker-container' ).find( '.wp-color-result' );
|
428 |
+
|
429 |
+
// Generate background slider alpha, only for CSS3 old browser fuck!! :)
|
430 |
+
controls.aContainer.css( { 'background' : 'linear-gradient(to bottom, ' + gradient.join( ', ' ) + '), url(' + image + ')' } );
|
431 |
+
|
432 |
+
if ( target.hasClass( 'wp-picker-open' ) ) {
|
433 |
+
// Update alpha value
|
434 |
+
controls.aSlider.slider( 'value', alpha );
|
435 |
+
|
436 |
+
/**
|
437 |
+
* Disabled change opacity in default slider Saturation ( only is alpha enabled )
|
438 |
+
* and change input width for view all value
|
439 |
+
*/
|
440 |
+
if ( self._color._alpha < 1 ) {
|
441 |
+
controls.strip.attr( 'style', controls.strip.attr( 'style' ).replace( /rgba\(([0-9]+,)(\s+)?([0-9]+,)(\s+)?([0-9]+)(,(\s+)?[0-9\.]+)\)/g, 'rgb($1$3$5)' ) );
|
442 |
+
el.width( parseInt( defaultWidth + customWidth ) );
|
443 |
+
} else {
|
444 |
+
el.width( defaultWidth );
|
445 |
+
}
|
446 |
+
}
|
447 |
+
}
|
448 |
+
|
449 |
+
var reset = el.data( 'reset-alpha' ) || false;
|
450 |
+
|
451 |
+
if ( reset ) {
|
452 |
+
self.picker.find( '.iris-palette-container' ).on( 'click.palette', '.iris-palette', function() {
|
453 |
+
self._color._alpha = 1;
|
454 |
+
self.active = 'external';
|
455 |
+
self._change();
|
456 |
+
} );
|
457 |
+
}
|
458 |
+
},
|
459 |
+
_addInputListeners: function( input ) {
|
460 |
+
var self = this,
|
461 |
+
debounceTimeout = 100,
|
462 |
+
callback = function( event ) {
|
463 |
+
var color = new Color( input.val() ),
|
464 |
+
val = input.val();
|
465 |
+
|
466 |
+
input.removeClass( 'iris-error' );
|
467 |
+
// we gave a bad color
|
468 |
+
if ( color.error ) {
|
469 |
+
// don't error on an empty input
|
470 |
+
if ( val !== '' )
|
471 |
+
input.addClass( 'iris-error' );
|
472 |
+
} else {
|
473 |
+
if ( color.toString() !== self._color.toString() ) {
|
474 |
+
// let's not do this on keyup for hex shortcodes
|
475 |
+
if ( ! ( event.type === 'keyup' && val.match( /^[0-9a-fA-F]{3}$/ ) ) )
|
476 |
+
self._setOption( 'color', color.toString() );
|
477 |
+
}
|
478 |
+
}
|
479 |
+
};
|
480 |
+
|
481 |
+
input.on( 'change', callback ).on( 'keyup', self._debounce( callback, debounceTimeout ) );
|
482 |
+
|
483 |
+
// If we initialized hidden, show on first focus. The rest is up to you.
|
484 |
+
if ( self.options.hide ) {
|
485 |
+
input.on( 'focus', function() {
|
486 |
+
self.show();
|
487 |
+
} );
|
488 |
+
}
|
489 |
+
}
|
490 |
+
} );
|
491 |
+
}( jQuery ) );
|
492 |
+
|
493 |
+
// Auto Call plugin is class is color-picker
|
494 |
+
jQuery( document ).ready( function( $ ) {
|
495 |
+
$( '.color-picker' ).wpColorPicker();
|
496 |
+
} );
|
vendor/webdevstudios/cmb2/js/wp-color-picker-alpha.min.js
ADDED
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**!
|
2 |
+
* wp-color-picker-alpha
|
3 |
+
*
|
4 |
+
* Overwrite Automattic Iris for enabled Alpha Channel in wpColorPicker
|
5 |
+
* Only run in input and is defined data alpha in true
|
6 |
+
*
|
7 |
+
* Version: 2.1.3
|
8 |
+
* https://github.com/kallookoo/wp-color-picker-alpha
|
9 |
+
* Licensed under the GPLv2 license.
|
10 |
+
*/
|
11 |
+
!function(a){if(!a.wp.wpColorPicker.prototype._hasAlpha){var b="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAAHnlligAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAHJJREFUeNpi+P///4EDBxiAGMgCCCAGFB5AADGCRBgYDh48CCRZIJS9vT2QBAggFBkmBiSAogxFBiCAoHogAKIKAlBUYTELAiAmEtABEECk20G6BOmuIl0CIMBQ/IEMkO0myiSSraaaBhZcbkUOs0HuBwDplz5uFJ3Z4gAAAABJRU5ErkJggg==",c='<div class="wp-picker-holder" />',d='<div class="wp-picker-container" />',e='<input type="button" class="button button-small" />',f=void 0!==wpColorPickerL10n.current;if(f)var g='<a tabindex="0" class="wp-color-result" />';else var g='<button type="button" class="button wp-color-result" aria-expanded="false"><span class="wp-color-result-text"></span></button>',h="<label></label>",i='<span class="screen-reader-text"></span>';Color.fn.toString=function(){if(this._alpha<1)return this.toCSS("rgba",this._alpha).replace(/\s+/g,"");var a=parseInt(this._color,10).toString(16);return this.error?"":(a.length<6&&(a=("00000"+a).substr(-6)),"#"+a)},a.widget("wp.wpColorPicker",a.wp.wpColorPicker,{_hasAlpha:!0,_create:function(){if(a.support.iris){var j=this,k=j.element;if(a.extend(j.options,k.data()),"hue"===j.options.type)return j._createHueOnly();j.close=a.proxy(j.close,j),j.initialValue=k.val(),k.addClass("wp-color-picker"),f?(k.hide().wrap(d),j.wrap=k.parent(),j.toggler=a(g).insertBefore(k).css({backgroundColor:j.initialValue}).attr("title",wpColorPickerL10n.pick).attr("data-current",wpColorPickerL10n.current),j.pickerContainer=a(c).insertAfter(k),j.button=a(e).addClass("hidden")):(k.parent("label").length||(k.wrap(h),j.wrappingLabelText=a(i).insertBefore(k).text(wpColorPickerL10n.defaultLabel)),j.wrappingLabel=k.parent(),j.wrappingLabel.wrap(d),j.wrap=j.wrappingLabel.parent(),j.toggler=a(g).insertBefore(j.wrappingLabel).css({backgroundColor:j.initialValue}),j.toggler.find(".wp-color-result-text").text(wpColorPickerL10n.pick),j.pickerContainer=a(c).insertAfter(j.wrappingLabel),j.button=a(e)),j.options.defaultColor?(j.button.addClass("wp-picker-default").val(wpColorPickerL10n.defaultString),f||j.button.attr("aria-label",wpColorPickerL10n.defaultAriaLabel)):(j.button.addClass("wp-picker-clear").val(wpColorPickerL10n.clear),f||j.button.attr("aria-label",wpColorPickerL10n.clearAriaLabel)),f?k.wrap('<span class="wp-picker-input-wrap" />').after(j.button):(j.wrappingLabel.wrap('<span class="wp-picker-input-wrap hidden" />').after(j.button),j.inputWrapper=k.closest(".wp-picker-input-wrap")),k.iris({target:j.pickerContainer,hide:j.options.hide,width:j.options.width,mode:j.options.mode,palettes:j.options.palettes,change:function(c,d){j.options.alpha?(j.toggler.css({"background-image":"url("+b+")"}),f?j.toggler.html('<span class="color-alpha" />'):(j.toggler.css({position:"relative"}),0==j.toggler.find("span.color-alpha").length&&j.toggler.append('<span class="color-alpha" />')),j.toggler.find("span.color-alpha").css({width:"30px",height:"24px",position:"absolute",top:0,left:0,"border-top-left-radius":"2px","border-bottom-left-radius":"2px",background:d.color.toString()})):j.toggler.css({backgroundColor:d.color.toString()}),a.isFunction(j.options.change)&&j.options.change.call(this,c,d)}}),k.val(j.initialValue),j._addListeners(),j.options.hide||j.toggler.click()}},_addListeners:function(){var b=this;b.wrap.on("click.wpcolorpicker",function(a){a.stopPropagation()}),b.toggler.click(function(){b.toggler.hasClass("wp-picker-open")?b.close():b.open()}),b.element.on("change",function(c){(""===a(this).val()||b.element.hasClass("iris-error"))&&(b.options.alpha?(f&&b.toggler.removeAttr("style"),b.toggler.find("span.color-alpha").css("backgroundColor","")):b.toggler.css("backgroundColor",""),a.isFunction(b.options.clear)&&b.options.clear.call(this,c))}),b.button.on("click",function(c){a(this).hasClass("wp-picker-clear")?(b.element.val(""),b.options.alpha?(f&&b.toggler.removeAttr("style"),b.toggler.find("span.color-alpha").css("backgroundColor","")):b.toggler.css("backgroundColor",""),a.isFunction(b.options.clear)&&b.options.clear.call(this,c)):a(this).hasClass("wp-picker-default")&&b.element.val(b.options.defaultColor).change()})}}),a.widget("a8c.iris",a.a8c.iris,{_create:function(){if(this._super(),this.options.alpha=this.element.data("alpha")||!1,this.element.is(":input")||(this.options.alpha=!1),"undefined"!=typeof this.options.alpha&&this.options.alpha){var b=this,c=b.element,d='<div class="iris-strip iris-slider iris-alpha-slider"><div class="iris-slider-offset iris-slider-offset-alpha"></div></div>',e=a(d).appendTo(b.picker.find(".iris-picker-inner")),f=e.find(".iris-slider-offset-alpha"),g={aContainer:e,aSlider:f};"undefined"!=typeof c.data("custom-width")?b.options.customWidth=parseInt(c.data("custom-width"))||0:b.options.customWidth=100,b.options.defaultWidth=c.width(),(b._color._alpha<1||-1!=b._color.toString().indexOf("rgb"))&&c.width(parseInt(b.options.defaultWidth+b.options.customWidth)),a.each(g,function(a,c){b.controls[a]=c}),b.controls.square.css({"margin-right":"0"});var h=b.picker.width()-b.controls.square.width()-20,i=h/6,j=h/2-i;a.each(["aContainer","strip"],function(a,c){b.controls[c].width(j).css({"margin-left":i+"px"})}),b._initControls(),b._change()}},_initControls:function(){if(this._super(),this.options.alpha){var a=this,b=a.controls;b.aSlider.slider({orientation:"vertical",min:0,max:100,step:1,value:parseInt(100*a._color._alpha),slide:function(b,c){a._color._alpha=parseFloat(c.value/100),a._change.apply(a,arguments)}})}},_change:function(){this._super();var a=this,c=a.element;if(this.options.alpha){var d=a.controls,e=parseInt(100*a._color._alpha),f=a._color.toRgb(),g=["rgb("+f.r+","+f.g+","+f.b+") 0%","rgba("+f.r+","+f.g+","+f.b+", 0) 100%"],h=a.options.defaultWidth,i=a.options.customWidth,j=a.picker.closest(".wp-picker-container").find(".wp-color-result");d.aContainer.css({background:"linear-gradient(to bottom, "+g.join(", ")+"), url("+b+")"}),j.hasClass("wp-picker-open")&&(d.aSlider.slider("value",e),a._color._alpha<1?(d.strip.attr("style",d.strip.attr("style").replace(/rgba\(([0-9]+,)(\s+)?([0-9]+,)(\s+)?([0-9]+)(,(\s+)?[0-9\.]+)\)/g,"rgb($1$3$5)")),c.width(parseInt(h+i))):c.width(h))}var k=c.data("reset-alpha")||!1;k&&a.picker.find(".iris-palette-container").on("click.palette",".iris-palette",function(){a._color._alpha=1,a.active="external",a._change()})},_addInputListeners:function(a){var b=this,c=100,d=function(c){var d=new Color(a.val()),e=a.val();a.removeClass("iris-error"),d.error?""!==e&&a.addClass("iris-error"):d.toString()!==b._color.toString()&&("keyup"===c.type&&e.match(/^[0-9a-fA-F]{3}$/)||b._setOption("color",d.toString()))};a.on("change",d).on("keyup",b._debounce(d,c)),b.options.hide&&a.on("focus",function(){b.show()})}})}}(jQuery),jQuery(document).ready(function(a){a(".color-picker").wpColorPicker()});
|
vendor/webdevstudios/cmb2/languages/cmb2-ach.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-af.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-an.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ar.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ary.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-as.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-az.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-be.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-bg.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-bg_BG.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-bn_BD.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-br.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-bs.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-bs_BA.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ca.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ca.po
CHANGED
@@ -347,7 +347,7 @@ msgstr ""
|
|
347 |
#: includes/types/CMB2_Type_File_Base.php:75 tests/test-cmb-types-base.php:143
|
348 |
#: tests/test-cmb-types.php:701
|
349 |
msgid "File:"
|
350 |
-
msgstr ""
|
351 |
|
352 |
#: includes/CMB2_JS.php:86 includes/CMB2_JS.php:119
|
353 |
msgid "Clear"
|
@@ -449,7 +449,7 @@ msgstr "Suprimeix"
|
|
449 |
#: includes/CMB2_JS.php:140 includes/types/CMB2_Type_File_Base.php:78
|
450 |
#: tests/test-cmb-types-base.php:143 tests/test-cmb-types.php:701
|
451 |
msgid "Download"
|
452 |
-
msgstr ""
|
453 |
|
454 |
#: includes/CMB2_JS.php:141
|
455 |
msgid "Select / Deselect All"
|
@@ -457,7 +457,7 @@ msgstr ""
|
|
457 |
|
458 |
#: includes/CMB2_Types.php:194
|
459 |
msgid "Add Row"
|
460 |
-
msgstr ""
|
461 |
|
462 |
#: includes/CMB2_hookup.php:145
|
463 |
msgid ""
|
347 |
#: includes/types/CMB2_Type_File_Base.php:75 tests/test-cmb-types-base.php:143
|
348 |
#: tests/test-cmb-types.php:701
|
349 |
msgid "File:"
|
350 |
+
msgstr "Arxiu:"
|
351 |
|
352 |
#: includes/CMB2_JS.php:86 includes/CMB2_JS.php:119
|
353 |
msgid "Clear"
|
449 |
#: includes/CMB2_JS.php:140 includes/types/CMB2_Type_File_Base.php:78
|
450 |
#: tests/test-cmb-types-base.php:143 tests/test-cmb-types.php:701
|
451 |
msgid "Download"
|
452 |
+
msgstr "Descarregar"
|
453 |
|
454 |
#: includes/CMB2_JS.php:141
|
455 |
msgid "Select / Deselect All"
|
457 |
|
458 |
#: includes/CMB2_Types.php:194
|
459 |
msgid "Add Row"
|
460 |
+
msgstr "Afegeix fila"
|
461 |
|
462 |
#: includes/CMB2_hookup.php:145
|
463 |
msgid ""
|
vendor/webdevstudios/cmb2/languages/cmb2-co.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-cs_CZ.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-cy.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-da_DK.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-de_AT.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-de_CH.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-de_DE.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-dv.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-el.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-en@pirate.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-en_AU.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-en_CA.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-en_GB.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-eo.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-es_AR.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-es_CL.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-es_CO.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-es_ES.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-es_MX.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-es_PE.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-es_VE.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-et.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-eu.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-fa.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-fa_IR.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-fa_IR.po
CHANGED
@@ -7,30 +7,31 @@ msgstr ""
|
|
7 |
"Project-Id-Version: CMB2\n"
|
8 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/cmb2\n"
|
9 |
"POT-Creation-Date: 2016-06-27 17:01:22+00:00\n"
|
10 |
-
"PO-Revision-Date:
|
11 |
"Last-Translator: Justin Sternberg <me@jtsternberg.com>\n"
|
12 |
-
"Language-Team: Persian (Iran) (http://www.transifex.com/wp-translations/
|
|
|
13 |
"MIME-Version: 1.0\n"
|
14 |
"Content-Type: text/plain; charset=UTF-8\n"
|
15 |
"Content-Transfer-Encoding: 8bit\n"
|
16 |
"Language: fa_IR\n"
|
17 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
18 |
-
"X-Generator:
|
19 |
-
"X-Poedit-Basepath:
|
20 |
-
"X-Poedit-
|
21 |
-
"
|
22 |
-
"
|
23 |
-
"X-Poedit-SearchPath-0: .\n"
|
24 |
"X-Poedit-SourceCharset: UTF-8\n"
|
25 |
"X-Textdomain-Support: yes\n"
|
|
|
26 |
|
27 |
#: example-functions.php:117 tests/test-cmb-field.php:255
|
28 |
msgid "Test Metabox"
|
29 |
-
msgstr ""
|
30 |
|
31 |
#: example-functions.php:130 example-functions.php:436
|
32 |
msgid "Test Text"
|
33 |
-
msgstr ""
|
34 |
|
35 |
#: example-functions.php:131 example-functions.php:144
|
36 |
#: example-functions.php:157 example-functions.php:165
|
@@ -52,19 +53,19 @@ msgstr ""
|
|
52 |
#: example-functions.php:613 example-functions.php:650
|
53 |
#: tests/test-cmb-field.php:267
|
54 |
msgid "field description (optional)"
|
55 |
-
msgstr ""
|
56 |
|
57 |
#: example-functions.php:143
|
58 |
msgid "Test Text Small"
|
59 |
-
msgstr ""
|
60 |
|
61 |
#: example-functions.php:156
|
62 |
msgid "Test Text Medium"
|
63 |
-
msgstr ""
|
64 |
|
65 |
#: example-functions.php:164
|
66 |
msgid "Custom Rendered Field"
|
67 |
-
msgstr ""
|
68 |
|
69 |
#: example-functions.php:172
|
70 |
msgid "Website URL"
|
@@ -72,11 +73,11 @@ msgstr "آدرس وب سایت"
|
|
72 |
|
73 |
#: example-functions.php:181
|
74 |
msgid "Test Text Email"
|
75 |
-
msgstr ""
|
76 |
|
77 |
#: example-functions.php:189
|
78 |
msgid "Test Time"
|
79 |
-
msgstr ""
|
80 |
|
81 |
#: example-functions.php:197 example-functions.php:198
|
82 |
msgid "Time zone"
|
@@ -84,110 +85,110 @@ msgstr "زمان محلی"
|
|
84 |
|
85 |
#: example-functions.php:204
|
86 |
msgid "Test Date Picker"
|
87 |
-
msgstr ""
|
88 |
|
89 |
#: example-functions.php:212
|
90 |
msgid "Test Date Picker (UNIX timestamp)"
|
91 |
-
msgstr ""
|
92 |
|
93 |
#: example-functions.php:220
|
94 |
msgid "Test Date/Time Picker Combo (UNIX timestamp)"
|
95 |
-
msgstr ""
|
96 |
|
97 |
#: example-functions.php:237
|
98 |
msgid "Test Money"
|
99 |
-
msgstr ""
|
100 |
|
101 |
#: example-functions.php:246
|
102 |
msgid "Test Color Picker"
|
103 |
-
msgstr ""
|
104 |
|
105 |
#: example-functions.php:259
|
106 |
msgid "Test Text Area"
|
107 |
-
msgstr ""
|
108 |
|
109 |
#: example-functions.php:266
|
110 |
msgid "Test Text Area Small"
|
111 |
-
msgstr ""
|
112 |
|
113 |
#: example-functions.php:273
|
114 |
msgid "Test Text Area for Code"
|
115 |
-
msgstr ""
|
116 |
|
117 |
#: example-functions.php:280
|
118 |
msgid "Test Title Weeeee"
|
119 |
-
msgstr ""
|
120 |
|
121 |
#: example-functions.php:281
|
122 |
msgid "This is a title description"
|
123 |
-
msgstr ""
|
124 |
|
125 |
#: example-functions.php:287
|
126 |
msgid "Test Select"
|
127 |
-
msgstr ""
|
128 |
|
129 |
#: example-functions.php:293 example-functions.php:306
|
130 |
#: example-functions.php:318
|
131 |
msgid "Option One"
|
132 |
-
msgstr ""
|
133 |
|
134 |
#: example-functions.php:294 example-functions.php:307
|
135 |
#: example-functions.php:319
|
136 |
msgid "Option Two"
|
137 |
-
msgstr ""
|
138 |
|
139 |
#: example-functions.php:295 example-functions.php:308
|
140 |
#: example-functions.php:320
|
141 |
msgid "Option Three"
|
142 |
-
msgstr ""
|
143 |
|
144 |
#: example-functions.php:300
|
145 |
msgid "Test Radio inline"
|
146 |
-
msgstr ""
|
147 |
|
148 |
#: example-functions.php:313
|
149 |
msgid "Test Radio"
|
150 |
-
msgstr ""
|
151 |
|
152 |
#: example-functions.php:325
|
153 |
msgid "Test Taxonomy Radio"
|
154 |
-
msgstr ""
|
155 |
|
156 |
#: example-functions.php:334
|
157 |
msgid "Test Taxonomy Select"
|
158 |
-
msgstr ""
|
159 |
|
160 |
#: example-functions.php:342
|
161 |
msgid "Test Taxonomy Multi Checkbox"
|
162 |
-
msgstr ""
|
163 |
|
164 |
#: example-functions.php:351
|
165 |
msgid "Test Checkbox"
|
166 |
-
msgstr ""
|
167 |
|
168 |
#: example-functions.php:358 tests/test-cmb-field.php:266
|
169 |
msgid "Test Multi Checkbox"
|
170 |
-
msgstr ""
|
171 |
|
172 |
#: example-functions.php:364 tests/test-cmb-field.php:272
|
173 |
msgid "Check One"
|
174 |
-
msgstr ""
|
175 |
|
176 |
#: example-functions.php:365 tests/test-cmb-field.php:273
|
177 |
msgid "Check Two"
|
178 |
-
msgstr ""
|
179 |
|
180 |
#: example-functions.php:366 tests/test-cmb-field.php:274
|
181 |
msgid "Check Three"
|
182 |
-
msgstr ""
|
183 |
|
184 |
#: example-functions.php:372
|
185 |
msgid "Test wysiwyg"
|
186 |
-
msgstr ""
|
187 |
|
188 |
#: example-functions.php:380
|
189 |
msgid "Test Image"
|
190 |
-
msgstr ""
|
191 |
|
192 |
#: example-functions.php:381
|
193 |
msgid "Upload an image or enter a URL."
|
@@ -195,49 +196,53 @@ msgstr "فایل آپلود کنید یا URL را وارد کنید."
|
|
195 |
|
196 |
#: example-functions.php:387
|
197 |
msgid "Multiple Files"
|
198 |
-
msgstr ""
|
199 |
|
200 |
#: example-functions.php:388
|
201 |
msgid "Upload or add multiple images/attachments."
|
202 |
-
msgstr ""
|
203 |
|
204 |
#: example-functions.php:395
|
205 |
msgid "oEmbed"
|
206 |
-
msgstr ""
|
207 |
|
208 |
#: example-functions.php:396
|
209 |
msgid ""
|
210 |
"Enter a youtube, twitter, or instagram URL. Supports services listed at <a "
|
211 |
-
"href=\"http://codex.wordpress.org/Embeds\">http://codex.wordpress.org/
|
|
|
212 |
msgstr ""
|
|
|
|
|
|
|
213 |
|
214 |
#: example-functions.php:427
|
215 |
msgid "About Page Metabox"
|
216 |
-
msgstr ""
|
217 |
|
218 |
#: example-functions.php:456
|
219 |
msgid "Repeating Field Group"
|
220 |
-
msgstr ""
|
221 |
|
222 |
#: example-functions.php:464
|
223 |
msgid "Generates reusable form entries"
|
224 |
-
msgstr ""
|
225 |
|
226 |
#: example-functions.php:466
|
227 |
msgid "Entry {#}"
|
228 |
-
msgstr ""
|
229 |
|
230 |
#: example-functions.php:467
|
231 |
msgid "Add Another Entry"
|
232 |
-
msgstr ""
|
233 |
|
234 |
#: example-functions.php:468
|
235 |
msgid "Remove Entry"
|
236 |
-
msgstr ""
|
237 |
|
238 |
#: example-functions.php:481
|
239 |
msgid "Entry Title"
|
240 |
-
msgstr ""
|
241 |
|
242 |
#: example-functions.php:488
|
243 |
msgid "Description"
|
@@ -245,11 +250,11 @@ msgstr "توضیح"
|
|
245 |
|
246 |
#: example-functions.php:489
|
247 |
msgid "Write a short description for this entry"
|
248 |
-
msgstr ""
|
249 |
|
250 |
#: example-functions.php:495
|
251 |
msgid "Entry Image"
|
252 |
-
msgstr ""
|
253 |
|
254 |
#: example-functions.php:501
|
255 |
msgid "Image Caption"
|
@@ -257,15 +262,15 @@ msgstr "توضیح تصویر"
|
|
257 |
|
258 |
#: example-functions.php:520
|
259 |
msgid "User Profile Metabox"
|
260 |
-
msgstr ""
|
261 |
|
262 |
#: example-functions.php:527 example-functions.php:597
|
263 |
msgid "Extra Info"
|
264 |
-
msgstr ""
|
265 |
|
266 |
#: example-functions.php:535
|
267 |
msgid "Avatar"
|
268 |
-
msgstr "
|
269 |
|
270 |
#: example-functions.php:542
|
271 |
msgid "Facebook URL"
|
@@ -273,43 +278,43 @@ msgstr "نشانی صفحه فیس بوک"
|
|
273 |
|
274 |
#: example-functions.php:549
|
275 |
msgid "Twitter URL"
|
276 |
-
msgstr ""
|
277 |
|
278 |
#: example-functions.php:556
|
279 |
msgid "Google+ URL"
|
280 |
-
msgstr ""
|
281 |
|
282 |
#: example-functions.php:563
|
283 |
msgid "Linkedin URL"
|
284 |
-
msgstr ""
|
285 |
|
286 |
#: example-functions.php:570
|
287 |
msgid "User Field"
|
288 |
-
msgstr ""
|
289 |
|
290 |
#: example-functions.php:590
|
291 |
msgid "Category Metabox"
|
292 |
-
msgstr ""
|
293 |
|
294 |
#: example-functions.php:605
|
295 |
msgid "Term Image"
|
296 |
-
msgstr ""
|
297 |
|
298 |
#: example-functions.php:612
|
299 |
msgid "Arbitrary Term Field"
|
300 |
-
msgstr ""
|
301 |
|
302 |
#: example-functions.php:634
|
303 |
msgid "Theme Options Metabox"
|
304 |
-
msgstr ""
|
305 |
|
306 |
#: example-functions.php:649
|
307 |
msgid "Site Background Color"
|
308 |
-
msgstr ""
|
309 |
|
310 |
#: includes/CMB2.php:129
|
311 |
msgid "Metabox configuration is required to have an ID parameter"
|
312 |
-
msgstr ""
|
313 |
|
314 |
#: includes/CMB2.php:418
|
315 |
msgid "Click to toggle"
|
@@ -317,23 +322,23 @@ msgstr "برای جانشینی کلیک کنید"
|
|
317 |
|
318 |
#: includes/CMB2_Ajax.php:71
|
319 |
msgid "Please Try Again"
|
320 |
-
msgstr ""
|
321 |
|
322 |
#: includes/CMB2_Ajax.php:173 tests/cmb-tests-base.php:59
|
323 |
msgid "Remove Embed"
|
324 |
-
msgstr ""
|
325 |
|
326 |
#: includes/CMB2_Ajax.php:177 tests/cmb-tests-base.php:64
|
327 |
msgid "No oEmbed Results Found for %s. View more info at"
|
328 |
-
msgstr ""
|
329 |
|
330 |
#: includes/CMB2_Field.php:1186
|
331 |
msgid "Add Group"
|
332 |
-
msgstr ""
|
333 |
|
334 |
#: includes/CMB2_Field.php:1187
|
335 |
msgid "Remove Group"
|
336 |
-
msgstr ""
|
337 |
|
338 |
#: includes/CMB2_Field.php:1209 includes/CMB2_Field.php:1213
|
339 |
#: tests/test-cmb-field.php:229
|
@@ -342,13 +347,13 @@ msgstr "هیچیک"
|
|
342 |
|
343 |
#: includes/CMB2_Field.php:1269
|
344 |
msgid "Sorry, this field does not have a cmb_id specified."
|
345 |
-
msgstr ""
|
346 |
|
347 |
#: includes/CMB2_Field_Display.php:408 includes/CMB2_JS.php:139
|
348 |
#: includes/types/CMB2_Type_File_Base.php:75 tests/test-cmb-types-base.php:143
|
349 |
#: tests/test-cmb-types.php:701
|
350 |
msgid "File:"
|
351 |
-
msgstr ""
|
352 |
|
353 |
#: includes/CMB2_JS.php:86 includes/CMB2_JS.php:119
|
354 |
msgid "Clear"
|
@@ -368,25 +373,27 @@ msgstr "رنگ فعلی"
|
|
368 |
|
369 |
#: includes/CMB2_JS.php:110
|
370 |
msgid "Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday"
|
371 |
-
msgstr ""
|
372 |
|
373 |
#: includes/CMB2_JS.php:111
|
374 |
msgid "Su, Mo, Tu, We, Th, Fr, Sa"
|
375 |
-
msgstr ""
|
376 |
|
377 |
#: includes/CMB2_JS.php:112
|
378 |
msgid "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
|
379 |
-
msgstr ""
|
380 |
|
381 |
#: includes/CMB2_JS.php:113
|
382 |
msgid ""
|
383 |
"January, February, March, April, May, June, July, August, September, "
|
384 |
"October, November, December"
|
385 |
msgstr ""
|
|
|
|
|
386 |
|
387 |
#: includes/CMB2_JS.php:114
|
388 |
msgid "Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec"
|
389 |
-
msgstr ""
|
390 |
|
391 |
#: includes/CMB2_JS.php:115
|
392 |
msgid "Next"
|
@@ -406,7 +413,7 @@ msgstr "انجام شد"
|
|
406 |
|
407 |
#: includes/CMB2_JS.php:122
|
408 |
msgid "Choose Time"
|
409 |
-
msgstr ""
|
410 |
|
411 |
#: includes/CMB2_JS.php:123
|
412 |
msgid "Time"
|
@@ -422,19 +429,19 @@ msgstr "دقیقه"
|
|
422 |
|
423 |
#: includes/CMB2_JS.php:126
|
424 |
msgid "Second"
|
425 |
-
msgstr ""
|
426 |
|
427 |
#: includes/CMB2_JS.php:127
|
428 |
msgid "Now"
|
429 |
-
msgstr ""
|
430 |
|
431 |
#: includes/CMB2_JS.php:135
|
432 |
msgid "Use this file"
|
433 |
-
msgstr ""
|
434 |
|
435 |
#: includes/CMB2_JS.php:136
|
436 |
msgid "Use these files"
|
437 |
-
msgstr ""
|
438 |
|
439 |
#: includes/CMB2_JS.php:137 includes/types/CMB2_Type_File_Base.php:61
|
440 |
msgid "Remove Image"
|
@@ -454,25 +461,27 @@ msgstr "دانلود"
|
|
454 |
|
455 |
#: includes/CMB2_JS.php:141
|
456 |
msgid "Select / Deselect All"
|
457 |
-
msgstr ""
|
458 |
|
459 |
#: includes/CMB2_Types.php:194
|
460 |
msgid "Add Row"
|
461 |
-
msgstr ""
|
462 |
|
463 |
#: includes/CMB2_hookup.php:145
|
464 |
msgid ""
|
465 |
"Term Metadata is a WordPress > 4.4 feature. Please upgrade your WordPress "
|
466 |
"install."
|
467 |
msgstr ""
|
|
|
|
|
468 |
|
469 |
#: includes/CMB2_hookup.php:149
|
470 |
msgid "Term metaboxes configuration requires a 'taxonomies' parameter"
|
471 |
-
msgstr ""
|
472 |
|
473 |
#: includes/helper-functions.php:93
|
474 |
msgid "No oEmbed Results Found for %s. View more info at %s"
|
475 |
-
msgstr ""
|
476 |
|
477 |
#: includes/helper-functions.php:279
|
478 |
msgid "Save"
|
@@ -481,48 +490,48 @@ msgstr "ذخیره"
|
|
481 |
#: includes/types/CMB2_Type_File.php:36 tests/test-cmb-types.php:683
|
482 |
#: tests/test-cmb-types.php:701
|
483 |
msgid "Add or Upload File"
|
484 |
-
msgstr ""
|
485 |
|
486 |
#: includes/types/CMB2_Type_File_List.php:36 tests/test-cmb-types.php:639
|
487 |
#: tests/test-cmb-types.php:663
|
488 |
msgid "Add or Upload Files"
|
489 |
-
msgstr ""
|
490 |
|
491 |
#: includes/types/CMB2_Type_Taxonomy_Multicheck.php:27
|
492 |
#: includes/types/CMB2_Type_Taxonomy_Radio.php:25
|
493 |
msgid "No terms"
|
494 |
-
msgstr ""
|
495 |
|
496 |
#. Plugin Name of the plugin/theme
|
497 |
msgid "CMB2"
|
498 |
-
msgstr ""
|
499 |
|
500 |
#. Plugin URI of the plugin/theme
|
501 |
msgid "https://github.com/CMB2/CMB2"
|
502 |
-
msgstr ""
|
503 |
|
504 |
#. Description of the plugin/theme
|
505 |
msgid ""
|
506 |
"CMB2 will create metaboxes and forms with custom fields that will blow your "
|
507 |
"mind."
|
508 |
-
msgstr ""
|
509 |
|
510 |
#. Author of the plugin/theme
|
511 |
msgid "WebDevStudios"
|
512 |
-
msgstr ""
|
513 |
|
514 |
#. Author URI of the plugin/theme
|
515 |
msgid "http://webdevstudios.com"
|
516 |
-
msgstr ""
|
517 |
|
518 |
#: includes/CMB2_JS.php:109
|
519 |
msgctxt "Valid formatDate string for jquery-ui datepicker"
|
520 |
msgid "mm/dd/yy"
|
521 |
-
msgstr ""
|
522 |
|
523 |
#: includes/CMB2_JS.php:129
|
524 |
msgctxt ""
|
525 |
-
"Valid formatting string, as per "
|
526 |
-
"
|
527 |
msgid "hh:mm TT"
|
528 |
-
msgstr ""
|
7 |
"Project-Id-Version: CMB2\n"
|
8 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/cmb2\n"
|
9 |
"POT-Creation-Date: 2016-06-27 17:01:22+00:00\n"
|
10 |
+
"PO-Revision-Date: 2017-11-05 17:11+0330\n"
|
11 |
"Last-Translator: Justin Sternberg <me@jtsternberg.com>\n"
|
12 |
+
"Language-Team: Persian (Iran) (http://www.transifex.com/wp-translations/"
|
13 |
+
"cmb2/language/fa_IR/)\n"
|
14 |
"MIME-Version: 1.0\n"
|
15 |
"Content-Type: text/plain; charset=UTF-8\n"
|
16 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
"Language: fa_IR\n"
|
18 |
"Plural-Forms: nplurals=1; plural=0;\n"
|
19 |
+
"X-Generator: Poedit 1.8.7.1\n"
|
20 |
+
"X-Poedit-Basepath: ..\n"
|
21 |
+
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
22 |
+
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
23 |
+
"esc_html_x:1,2c\n"
|
|
|
24 |
"X-Poedit-SourceCharset: UTF-8\n"
|
25 |
"X-Textdomain-Support: yes\n"
|
26 |
+
"X-Poedit-SearchPath-0: .\n"
|
27 |
|
28 |
#: example-functions.php:117 tests/test-cmb-field.php:255
|
29 |
msgid "Test Metabox"
|
30 |
+
msgstr " آزمایش متاباکس"
|
31 |
|
32 |
#: example-functions.php:130 example-functions.php:436
|
33 |
msgid "Test Text"
|
34 |
+
msgstr "متن آزمایشی"
|
35 |
|
36 |
#: example-functions.php:131 example-functions.php:144
|
37 |
#: example-functions.php:157 example-functions.php:165
|
53 |
#: example-functions.php:613 example-functions.php:650
|
54 |
#: tests/test-cmb-field.php:267
|
55 |
msgid "field description (optional)"
|
56 |
+
msgstr "توضیحات فیلد (اختیاری)"
|
57 |
|
58 |
#: example-functions.php:143
|
59 |
msgid "Test Text Small"
|
60 |
+
msgstr "کادر متن کوچک آزمایشی"
|
61 |
|
62 |
#: example-functions.php:156
|
63 |
msgid "Test Text Medium"
|
64 |
+
msgstr "کادر متن متوسط آزمایشی"
|
65 |
|
66 |
#: example-functions.php:164
|
67 |
msgid "Custom Rendered Field"
|
68 |
+
msgstr "فیلد شخصی سازی شده"
|
69 |
|
70 |
#: example-functions.php:172
|
71 |
msgid "Website URL"
|
73 |
|
74 |
#: example-functions.php:181
|
75 |
msgid "Test Text Email"
|
76 |
+
msgstr "کادر متنی ایمیل"
|
77 |
|
78 |
#: example-functions.php:189
|
79 |
msgid "Test Time"
|
80 |
+
msgstr "زمان آزمایشی"
|
81 |
|
82 |
#: example-functions.php:197 example-functions.php:198
|
83 |
msgid "Time zone"
|
85 |
|
86 |
#: example-functions.php:204
|
87 |
msgid "Test Date Picker"
|
88 |
+
msgstr "انتخاب کننده تاریخ آزمایشی"
|
89 |
|
90 |
#: example-functions.php:212
|
91 |
msgid "Test Date Picker (UNIX timestamp)"
|
92 |
+
msgstr "انتخاب کننده تاریخ آزمایشی (unix timestamp)"
|
93 |
|
94 |
#: example-functions.php:220
|
95 |
msgid "Test Date/Time Picker Combo (UNIX timestamp)"
|
96 |
+
msgstr "انتخاب کننده تاریخ آزمایشی (unix timestamp)"
|
97 |
|
98 |
#: example-functions.php:237
|
99 |
msgid "Test Money"
|
100 |
+
msgstr "پول آزمایشی"
|
101 |
|
102 |
#: example-functions.php:246
|
103 |
msgid "Test Color Picker"
|
104 |
+
msgstr "آزمایش انتخاب کننده رنگ"
|
105 |
|
106 |
#: example-functions.php:259
|
107 |
msgid "Test Text Area"
|
108 |
+
msgstr "آزمایش Text Area"
|
109 |
|
110 |
#: example-functions.php:266
|
111 |
msgid "Test Text Area Small"
|
112 |
+
msgstr "آزمایش Text Area کوچک"
|
113 |
|
114 |
#: example-functions.php:273
|
115 |
msgid "Test Text Area for Code"
|
116 |
+
msgstr "آزمایش Text Area برای کد"
|
117 |
|
118 |
#: example-functions.php:280
|
119 |
msgid "Test Title Weeeee"
|
120 |
+
msgstr "Test Title Weeeee"
|
121 |
|
122 |
#: example-functions.php:281
|
123 |
msgid "This is a title description"
|
124 |
+
msgstr "این یک توضیح برای عنوان است"
|
125 |
|
126 |
#: example-functions.php:287
|
127 |
msgid "Test Select"
|
128 |
+
msgstr "آزمایش Select"
|
129 |
|
130 |
#: example-functions.php:293 example-functions.php:306
|
131 |
#: example-functions.php:318
|
132 |
msgid "Option One"
|
133 |
+
msgstr "گزینه اول"
|
134 |
|
135 |
#: example-functions.php:294 example-functions.php:307
|
136 |
#: example-functions.php:319
|
137 |
msgid "Option Two"
|
138 |
+
msgstr "گزینه دوم"
|
139 |
|
140 |
#: example-functions.php:295 example-functions.php:308
|
141 |
#: example-functions.php:320
|
142 |
msgid "Option Three"
|
143 |
+
msgstr "گزینه سوم"
|
144 |
|
145 |
#: example-functions.php:300
|
146 |
msgid "Test Radio inline"
|
147 |
+
msgstr "آزمایش Radio درون خطی"
|
148 |
|
149 |
#: example-functions.php:313
|
150 |
msgid "Test Radio"
|
151 |
+
msgstr "آزمایش Radio "
|
152 |
|
153 |
#: example-functions.php:325
|
154 |
msgid "Test Taxonomy Radio"
|
155 |
+
msgstr "آزمایش Taxonomy radio"
|
156 |
|
157 |
#: example-functions.php:334
|
158 |
msgid "Test Taxonomy Select"
|
159 |
+
msgstr "آزمایش Taxonomy Select"
|
160 |
|
161 |
#: example-functions.php:342
|
162 |
msgid "Test Taxonomy Multi Checkbox"
|
163 |
+
msgstr "آزمایش Taxonomy Multi Checkbox"
|
164 |
|
165 |
#: example-functions.php:351
|
166 |
msgid "Test Checkbox"
|
167 |
+
msgstr "آزمایش Checkbox"
|
168 |
|
169 |
#: example-functions.php:358 tests/test-cmb-field.php:266
|
170 |
msgid "Test Multi Checkbox"
|
171 |
+
msgstr "آزمایش Multi Checkbox"
|
172 |
|
173 |
#: example-functions.php:364 tests/test-cmb-field.php:272
|
174 |
msgid "Check One"
|
175 |
+
msgstr "گزینه اول"
|
176 |
|
177 |
#: example-functions.php:365 tests/test-cmb-field.php:273
|
178 |
msgid "Check Two"
|
179 |
+
msgstr "گزینه دوم"
|
180 |
|
181 |
#: example-functions.php:366 tests/test-cmb-field.php:274
|
182 |
msgid "Check Three"
|
183 |
+
msgstr "گزینه سوم"
|
184 |
|
185 |
#: example-functions.php:372
|
186 |
msgid "Test wysiwyg"
|
187 |
+
msgstr "آزمایش wysiwyg"
|
188 |
|
189 |
#: example-functions.php:380
|
190 |
msgid "Test Image"
|
191 |
+
msgstr "آزمایش Image"
|
192 |
|
193 |
#: example-functions.php:381
|
194 |
msgid "Upload an image or enter a URL."
|
196 |
|
197 |
#: example-functions.php:387
|
198 |
msgid "Multiple Files"
|
199 |
+
msgstr "چند فایل"
|
200 |
|
201 |
#: example-functions.php:388
|
202 |
msgid "Upload or add multiple images/attachments."
|
203 |
+
msgstr "آپلود فایل ها"
|
204 |
|
205 |
#: example-functions.php:395
|
206 |
msgid "oEmbed"
|
207 |
+
msgstr "oEmbed"
|
208 |
|
209 |
#: example-functions.php:396
|
210 |
msgid ""
|
211 |
"Enter a youtube, twitter, or instagram URL. Supports services listed at <a "
|
212 |
+
"href=\"http://codex.wordpress.org/Embeds\">http://codex.wordpress.org/"
|
213 |
+
"Embeds</a>."
|
214 |
msgstr ""
|
215 |
+
"آدرس URL یوتیوب، تویتر یا ایستاگرام را وارد کنید. سرویس های پشتیبانی شده در "
|
216 |
+
"<a href=\"http://codex.wordpress.org/Embeds\">http://codex.wordpress.org/"
|
217 |
+
"Embeds</a> موجود هستند."
|
218 |
|
219 |
#: example-functions.php:427
|
220 |
msgid "About Page Metabox"
|
221 |
+
msgstr "درباره متاباکس صفحه"
|
222 |
|
223 |
#: example-functions.php:456
|
224 |
msgid "Repeating Field Group"
|
225 |
+
msgstr "Field Group تکرار شونده"
|
226 |
|
227 |
#: example-functions.php:464
|
228 |
msgid "Generates reusable form entries"
|
229 |
+
msgstr "آیتم های فرم با قابلیت استفاده مجدد میسازد"
|
230 |
|
231 |
#: example-functions.php:466
|
232 |
msgid "Entry {#}"
|
233 |
+
msgstr "آیتم {#}"
|
234 |
|
235 |
#: example-functions.php:467
|
236 |
msgid "Add Another Entry"
|
237 |
+
msgstr "افزودن آیتم دیگر"
|
238 |
|
239 |
#: example-functions.php:468
|
240 |
msgid "Remove Entry"
|
241 |
+
msgstr "حذف آیتم"
|
242 |
|
243 |
#: example-functions.php:481
|
244 |
msgid "Entry Title"
|
245 |
+
msgstr "عنوان"
|
246 |
|
247 |
#: example-functions.php:488
|
248 |
msgid "Description"
|
250 |
|
251 |
#: example-functions.php:489
|
252 |
msgid "Write a short description for this entry"
|
253 |
+
msgstr "توضیح کوتاهی برای این آیتم بنویسید"
|
254 |
|
255 |
#: example-functions.php:495
|
256 |
msgid "Entry Image"
|
257 |
+
msgstr "تصویر آیتم"
|
258 |
|
259 |
#: example-functions.php:501
|
260 |
msgid "Image Caption"
|
262 |
|
263 |
#: example-functions.php:520
|
264 |
msgid "User Profile Metabox"
|
265 |
+
msgstr "متاباکس پروفایل"
|
266 |
|
267 |
#: example-functions.php:527 example-functions.php:597
|
268 |
msgid "Extra Info"
|
269 |
+
msgstr "اطلاعات بیشتر"
|
270 |
|
271 |
#: example-functions.php:535
|
272 |
msgid "Avatar"
|
273 |
+
msgstr "آواتار"
|
274 |
|
275 |
#: example-functions.php:542
|
276 |
msgid "Facebook URL"
|
278 |
|
279 |
#: example-functions.php:549
|
280 |
msgid "Twitter URL"
|
281 |
+
msgstr "آدرس Twitter"
|
282 |
|
283 |
#: example-functions.php:556
|
284 |
msgid "Google+ URL"
|
285 |
+
msgstr "آدرس Google+"
|
286 |
|
287 |
#: example-functions.php:563
|
288 |
msgid "Linkedin URL"
|
289 |
+
msgstr "آدرس Linkedin"
|
290 |
|
291 |
#: example-functions.php:570
|
292 |
msgid "User Field"
|
293 |
+
msgstr "فیلد کاربر"
|
294 |
|
295 |
#: example-functions.php:590
|
296 |
msgid "Category Metabox"
|
297 |
+
msgstr "متاباکس دسته بندی"
|
298 |
|
299 |
#: example-functions.php:605
|
300 |
msgid "Term Image"
|
301 |
+
msgstr "Term Image"
|
302 |
|
303 |
#: example-functions.php:612
|
304 |
msgid "Arbitrary Term Field"
|
305 |
+
msgstr "زمینه ترتیب دلخواه"
|
306 |
|
307 |
#: example-functions.php:634
|
308 |
msgid "Theme Options Metabox"
|
309 |
+
msgstr "گزینه های پوسته متاباکس"
|
310 |
|
311 |
#: example-functions.php:649
|
312 |
msgid "Site Background Color"
|
313 |
+
msgstr "پس زمینه سایت"
|
314 |
|
315 |
#: includes/CMB2.php:129
|
316 |
msgid "Metabox configuration is required to have an ID parameter"
|
317 |
+
msgstr "تنظیمات متاباکس نیاز به پارامتر ID دارد"
|
318 |
|
319 |
#: includes/CMB2.php:418
|
320 |
msgid "Click to toggle"
|
322 |
|
323 |
#: includes/CMB2_Ajax.php:71
|
324 |
msgid "Please Try Again"
|
325 |
+
msgstr "لطفا دوباره تلاش کنید"
|
326 |
|
327 |
#: includes/CMB2_Ajax.php:173 tests/cmb-tests-base.php:59
|
328 |
msgid "Remove Embed"
|
329 |
+
msgstr "حذف Embed"
|
330 |
|
331 |
#: includes/CMB2_Ajax.php:177 tests/cmb-tests-base.php:64
|
332 |
msgid "No oEmbed Results Found for %s. View more info at"
|
333 |
+
msgstr "هیچ نتیجه ای برای %s پیدا نشد. نمایش جزئیات بیشتر در "
|
334 |
|
335 |
#: includes/CMB2_Field.php:1186
|
336 |
msgid "Add Group"
|
337 |
+
msgstr "افزودن گروه"
|
338 |
|
339 |
#: includes/CMB2_Field.php:1187
|
340 |
msgid "Remove Group"
|
341 |
+
msgstr "حذف گروه"
|
342 |
|
343 |
#: includes/CMB2_Field.php:1209 includes/CMB2_Field.php:1213
|
344 |
#: tests/test-cmb-field.php:229
|
347 |
|
348 |
#: includes/CMB2_Field.php:1269
|
349 |
msgid "Sorry, this field does not have a cmb_id specified."
|
350 |
+
msgstr "برای این فیلد cmb_id مشخص نشده است"
|
351 |
|
352 |
#: includes/CMB2_Field_Display.php:408 includes/CMB2_JS.php:139
|
353 |
#: includes/types/CMB2_Type_File_Base.php:75 tests/test-cmb-types-base.php:143
|
354 |
#: tests/test-cmb-types.php:701
|
355 |
msgid "File:"
|
356 |
+
msgstr "فایل:"
|
357 |
|
358 |
#: includes/CMB2_JS.php:86 includes/CMB2_JS.php:119
|
359 |
msgid "Clear"
|
373 |
|
374 |
#: includes/CMB2_JS.php:110
|
375 |
msgid "Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday"
|
376 |
+
msgstr "Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday"
|
377 |
|
378 |
#: includes/CMB2_JS.php:111
|
379 |
msgid "Su, Mo, Tu, We, Th, Fr, Sa"
|
380 |
+
msgstr "Su, Mo, Tu, We, Th, Fr, Sa"
|
381 |
|
382 |
#: includes/CMB2_JS.php:112
|
383 |
msgid "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
|
384 |
+
msgstr "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
|
385 |
|
386 |
#: includes/CMB2_JS.php:113
|
387 |
msgid ""
|
388 |
"January, February, March, April, May, June, July, August, September, "
|
389 |
"October, November, December"
|
390 |
msgstr ""
|
391 |
+
"January, February, March, April, May, June, July, August, September, "
|
392 |
+
"October, November, December"
|
393 |
|
394 |
#: includes/CMB2_JS.php:114
|
395 |
msgid "Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec"
|
396 |
+
msgstr "Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec"
|
397 |
|
398 |
#: includes/CMB2_JS.php:115
|
399 |
msgid "Next"
|
413 |
|
414 |
#: includes/CMB2_JS.php:122
|
415 |
msgid "Choose Time"
|
416 |
+
msgstr "انتخاب زمان"
|
417 |
|
418 |
#: includes/CMB2_JS.php:123
|
419 |
msgid "Time"
|
429 |
|
430 |
#: includes/CMB2_JS.php:126
|
431 |
msgid "Second"
|
432 |
+
msgstr "ثانیه"
|
433 |
|
434 |
#: includes/CMB2_JS.php:127
|
435 |
msgid "Now"
|
436 |
+
msgstr "حالا"
|
437 |
|
438 |
#: includes/CMB2_JS.php:135
|
439 |
msgid "Use this file"
|
440 |
+
msgstr "استفاده از این فایل"
|
441 |
|
442 |
#: includes/CMB2_JS.php:136
|
443 |
msgid "Use these files"
|
444 |
+
msgstr "استفاده از این فایل ها"
|
445 |
|
446 |
#: includes/CMB2_JS.php:137 includes/types/CMB2_Type_File_Base.php:61
|
447 |
msgid "Remove Image"
|
461 |
|
462 |
#: includes/CMB2_JS.php:141
|
463 |
msgid "Select / Deselect All"
|
464 |
+
msgstr "انتخاب/ لغو انتخاب همه"
|
465 |
|
466 |
#: includes/CMB2_Types.php:194
|
467 |
msgid "Add Row"
|
468 |
+
msgstr "افزودن ردیف"
|
469 |
|
470 |
#: includes/CMB2_hookup.php:145
|
471 |
msgid ""
|
472 |
"Term Metadata is a WordPress > 4.4 feature. Please upgrade your WordPress "
|
473 |
"install."
|
474 |
msgstr ""
|
475 |
+
"Term Metadata is a WordPress > 4.4 feature. Please upgrade your WordPress "
|
476 |
+
"install."
|
477 |
|
478 |
#: includes/CMB2_hookup.php:149
|
479 |
msgid "Term metaboxes configuration requires a 'taxonomies' parameter"
|
480 |
+
msgstr "تنظیمات متاباکس نیاز به پارامتر taxonomies دارد"
|
481 |
|
482 |
#: includes/helper-functions.php:93
|
483 |
msgid "No oEmbed Results Found for %s. View more info at %s"
|
484 |
+
msgstr "هیچ نتیجه ای برای %s پیدا نشد. نمایش جزئیات بیشتر در %s"
|
485 |
|
486 |
#: includes/helper-functions.php:279
|
487 |
msgid "Save"
|
490 |
#: includes/types/CMB2_Type_File.php:36 tests/test-cmb-types.php:683
|
491 |
#: tests/test-cmb-types.php:701
|
492 |
msgid "Add or Upload File"
|
493 |
+
msgstr "آپلود فایل"
|
494 |
|
495 |
#: includes/types/CMB2_Type_File_List.php:36 tests/test-cmb-types.php:639
|
496 |
#: tests/test-cmb-types.php:663
|
497 |
msgid "Add or Upload Files"
|
498 |
+
msgstr "انتخاب یا آپلود فایل"
|
499 |
|
500 |
#: includes/types/CMB2_Type_Taxonomy_Multicheck.php:27
|
501 |
#: includes/types/CMB2_Type_Taxonomy_Radio.php:25
|
502 |
msgid "No terms"
|
503 |
+
msgstr "بدون کلمه"
|
504 |
|
505 |
#. Plugin Name of the plugin/theme
|
506 |
msgid "CMB2"
|
507 |
+
msgstr "CMB2"
|
508 |
|
509 |
#. Plugin URI of the plugin/theme
|
510 |
msgid "https://github.com/CMB2/CMB2"
|
511 |
+
msgstr "https://github.com/CMB2/CMB2"
|
512 |
|
513 |
#. Description of the plugin/theme
|
514 |
msgid ""
|
515 |
"CMB2 will create metaboxes and forms with custom fields that will blow your "
|
516 |
"mind."
|
517 |
+
msgstr "CMB2 برای شما متاباکس و فرم با فیلدهای سفارشی میسازد"
|
518 |
|
519 |
#. Author of the plugin/theme
|
520 |
msgid "WebDevStudios"
|
521 |
+
msgstr "WebDevStudios"
|
522 |
|
523 |
#. Author URI of the plugin/theme
|
524 |
msgid "http://webdevstudios.com"
|
525 |
+
msgstr "http://webdevstudios.com"
|
526 |
|
527 |
#: includes/CMB2_JS.php:109
|
528 |
msgctxt "Valid formatDate string for jquery-ui datepicker"
|
529 |
msgid "mm/dd/yy"
|
530 |
+
msgstr "mm/dd/yy"
|
531 |
|
532 |
#: includes/CMB2_JS.php:129
|
533 |
msgctxt ""
|
534 |
+
"Valid formatting string, as per http://trentrichardson.com/examples/"
|
535 |
+
"timepicker/"
|
536 |
msgid "hh:mm TT"
|
537 |
+
msgstr "hh:mm TT"
|
vendor/webdevstudios/cmb2/languages/cmb2-fi.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-fo.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-fr_BE.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-fr_CA.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-fr_FR.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-fy.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ga.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-gd.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-gl_ES.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-gu_IN.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-he_IL.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-hi_IN.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-hr.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-hu_HU.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-hy.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-id_ID.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-is_IS.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-it_IT.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-it_IT.po
CHANGED
@@ -1,59 +1,60 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the CMB2 package.
|
3 |
# Translators:
|
4 |
# Alessandro Curci <hantarex@gmail.com>, 2015
|
5 |
# Andrea Brandi, 2015
|
6 |
-
# Daniele Scasciafratte Mte90 <mte90net@gmail.com>, 2015
|
7 |
-
# Emanuele <
|
8 |
msgid ""
|
9 |
msgstr ""
|
10 |
"Project-Id-Version: CMB2\n"
|
11 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/cmb2\n"
|
12 |
-
"POT-Creation-Date: 2016-
|
13 |
-
"PO-Revision-Date:
|
14 |
-
"Last-Translator: Justin Sternberg <
|
15 |
-
"Language-Team: Italian (Italy) (http://www.transifex.com/wp-translations/
|
|
|
16 |
"MIME-Version: 1.0\n"
|
17 |
"Content-Type: text/plain; charset=UTF-8\n"
|
18 |
"Content-Transfer-Encoding: 8bit\n"
|
19 |
"Language: it_IT\n"
|
20 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
21 |
-
"X-Generator:
|
22 |
-
"X-Poedit-Basepath:
|
23 |
-
"X-Poedit-
|
24 |
-
"
|
25 |
-
"
|
26 |
-
"X-Poedit-SearchPath-0: .\n"
|
27 |
"X-Poedit-SourceCharset: UTF-8\n"
|
28 |
"X-Textdomain-Support: yes\n"
|
|
|
29 |
|
30 |
#: example-functions.php:117 tests/test-cmb-field.php:255
|
31 |
msgid "Test Metabox"
|
32 |
msgstr "Test Metabox"
|
33 |
|
34 |
-
#: example-functions.php:130 example-functions.php:
|
35 |
msgid "Test Text"
|
36 |
msgstr "Test Testo"
|
37 |
|
38 |
#: example-functions.php:131 example-functions.php:144
|
39 |
-
#: example-functions.php:157 example-functions.php:
|
40 |
-
#: example-functions.php:
|
41 |
-
#: example-functions.php:
|
42 |
-
#: example-functions.php:
|
43 |
-
#: example-functions.php:
|
44 |
-
#: example-functions.php:
|
45 |
-
#: example-functions.php:
|
46 |
-
#: example-functions.php:
|
47 |
-
#: example-functions.php:326 example-functions.php:
|
48 |
-
#: example-functions.php:
|
49 |
-
#: example-functions.php:
|
50 |
-
#: example-functions.php:
|
51 |
-
#: example-functions.php:
|
52 |
-
#: example-functions.php:
|
53 |
-
#: example-functions.php:
|
54 |
-
#: example-functions.php:
|
55 |
-
#: example-functions.php:
|
56 |
-
#: tests/test-cmb-field.php:267
|
57 |
msgid "field description (optional)"
|
58 |
msgstr "descrizione campo (opzionale)"
|
59 |
|
@@ -65,256 +66,266 @@ msgstr "Test Testo Piccolo"
|
|
65 |
msgid "Test Text Medium"
|
66 |
msgstr "Test Testo Medio"
|
67 |
|
68 |
-
#: example-functions.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
msgid "Custom Rendered Field"
|
70 |
-
msgstr ""
|
71 |
|
72 |
-
#: example-functions.php:
|
73 |
msgid "Website URL"
|
74 |
msgstr "URL Sito"
|
75 |
|
76 |
-
#: example-functions.php:
|
77 |
msgid "Test Text Email"
|
78 |
msgstr "Test Testo Email"
|
79 |
|
80 |
-
#: example-functions.php:
|
81 |
msgid "Test Time"
|
82 |
msgstr "Test Orario"
|
83 |
|
84 |
-
#: example-functions.php:
|
85 |
msgid "Time zone"
|
86 |
msgstr "Time zone"
|
87 |
|
88 |
-
#: example-functions.php:
|
89 |
msgid "Test Date Picker"
|
90 |
msgstr "Test Date Picker"
|
91 |
|
92 |
-
#: example-functions.php:
|
93 |
msgid "Test Date Picker (UNIX timestamp)"
|
94 |
msgstr "Test Data Picker (UNIX timestamp)"
|
95 |
|
96 |
-
#: example-functions.php:
|
97 |
msgid "Test Date/Time Picker Combo (UNIX timestamp)"
|
98 |
msgstr "Test Data/Orario Picker Combo (UNIX timestamp)"
|
99 |
|
100 |
-
#: example-functions.php:
|
101 |
msgid "Test Money"
|
102 |
msgstr "Test Money"
|
103 |
|
104 |
-
#: example-functions.php:
|
105 |
msgid "Test Color Picker"
|
106 |
msgstr "Test Color Picker"
|
107 |
|
108 |
-
#: example-functions.php:
|
109 |
msgid "Test Text Area"
|
110 |
msgstr "Test Text Area"
|
111 |
|
112 |
-
#: example-functions.php:
|
113 |
msgid "Test Text Area Small"
|
114 |
msgstr "Test Text Area Piccola"
|
115 |
|
116 |
-
#: example-functions.php:
|
117 |
msgid "Test Text Area for Code"
|
118 |
msgstr "Test Text Area per Codice"
|
119 |
|
120 |
-
#: example-functions.php:
|
121 |
msgid "Test Title Weeeee"
|
122 |
msgstr "Test Titolo Weeeee"
|
123 |
|
124 |
-
#: example-functions.php:
|
125 |
msgid "This is a title description"
|
126 |
msgstr "Questa è una descrizione del titolo"
|
127 |
|
128 |
-
#: example-functions.php:
|
129 |
msgid "Test Select"
|
130 |
msgstr "Test Select"
|
131 |
|
132 |
-
#: example-functions.php:
|
133 |
-
#: example-functions.php:
|
134 |
msgid "Option One"
|
135 |
msgstr "Opzione uno"
|
136 |
|
137 |
-
#: example-functions.php:
|
138 |
-
#: example-functions.php:
|
139 |
msgid "Option Two"
|
140 |
msgstr "Opzione Due"
|
141 |
|
142 |
-
#: example-functions.php:
|
143 |
-
#: example-functions.php:
|
144 |
msgid "Option Three"
|
145 |
msgstr "Opzione Tre"
|
146 |
|
147 |
-
#: example-functions.php:
|
148 |
msgid "Test Radio inline"
|
149 |
msgstr "Test Radio inline"
|
150 |
|
151 |
-
#: example-functions.php:
|
152 |
msgid "Test Radio"
|
153 |
msgstr "Test Radio"
|
154 |
|
155 |
-
#: example-functions.php:
|
156 |
msgid "Test Taxonomy Radio"
|
157 |
msgstr "Test Tassonomia Radio"
|
158 |
|
159 |
-
#: example-functions.php:
|
160 |
msgid "Test Taxonomy Select"
|
161 |
msgstr "Test Seleziona Tassonomia"
|
162 |
|
163 |
-
#: example-functions.php:
|
164 |
msgid "Test Taxonomy Multi Checkbox"
|
165 |
msgstr "Test Tassonomia Multi Checkbox"
|
166 |
|
167 |
-
#: example-functions.php:
|
168 |
msgid "Test Checkbox"
|
169 |
msgstr "Test Checkbox"
|
170 |
|
171 |
-
#: example-functions.php:
|
172 |
msgid "Test Multi Checkbox"
|
173 |
msgstr "Test Multi Checkbox"
|
174 |
|
175 |
-
#: example-functions.php:
|
176 |
msgid "Check One"
|
177 |
msgstr "Check Uno"
|
178 |
|
179 |
-
#: example-functions.php:
|
180 |
msgid "Check Two"
|
181 |
msgstr "Check Due"
|
182 |
|
183 |
-
#: example-functions.php:
|
184 |
msgid "Check Three"
|
185 |
msgstr "Check Tre"
|
186 |
|
187 |
-
#: example-functions.php:
|
188 |
msgid "Test wysiwyg"
|
189 |
msgstr "Test wysiwyg"
|
190 |
|
191 |
-
#: example-functions.php:
|
192 |
msgid "Test Image"
|
193 |
msgstr "Test Immagine"
|
194 |
|
195 |
-
#: example-functions.php:
|
196 |
msgid "Upload an image or enter a URL."
|
197 |
msgstr "Carica una immagine o inserisci una URL"
|
198 |
|
199 |
-
#: example-functions.php:
|
200 |
msgid "Multiple Files"
|
201 |
msgstr "File Multipli"
|
202 |
|
203 |
-
#: example-functions.php:
|
204 |
msgid "Upload or add multiple images/attachments."
|
205 |
msgstr "Carica o aggiungi immagini/allegati multipli"
|
206 |
|
207 |
-
#: example-functions.php:
|
208 |
msgid "oEmbed"
|
209 |
msgstr "oEmbed"
|
210 |
|
211 |
-
|
|
|
212 |
msgid ""
|
213 |
-
"Enter a youtube, twitter, or instagram URL. Supports services listed at
|
214 |
-
"
|
215 |
-
|
|
|
216 |
|
217 |
-
#: example-functions.php:
|
218 |
msgid "About Page Metabox"
|
219 |
msgstr "About Page Metabox"
|
220 |
|
221 |
-
#: example-functions.php:
|
222 |
msgid "Repeating Field Group"
|
223 |
msgstr "Gruppo Campi Ripetuto"
|
224 |
|
225 |
-
#: example-functions.php:
|
226 |
msgid "Generates reusable form entries"
|
227 |
msgstr "Genera elementi del form riusabili"
|
228 |
|
229 |
-
#: example-functions.php:
|
230 |
msgid "Entry {#}"
|
231 |
msgstr "Instanza {#}"
|
232 |
|
233 |
-
#: example-functions.php:
|
234 |
msgid "Add Another Entry"
|
235 |
msgstr "Aggiungi una nuova instanza"
|
236 |
|
237 |
-
#: example-functions.php:
|
238 |
msgid "Remove Entry"
|
239 |
msgstr "Rimuovi instanza"
|
240 |
|
241 |
-
#: example-functions.php:
|
242 |
msgid "Entry Title"
|
243 |
msgstr "Inserisci Titolo"
|
244 |
|
245 |
-
#: example-functions.php:
|
246 |
msgid "Description"
|
247 |
msgstr "Descrizione"
|
248 |
|
249 |
-
#: example-functions.php:
|
250 |
msgid "Write a short description for this entry"
|
251 |
msgstr "Scrivi una breve descrizione per questo elemento"
|
252 |
|
253 |
-
#: example-functions.php:
|
254 |
msgid "Entry Image"
|
255 |
msgstr "Inserisci Immagine"
|
256 |
|
257 |
-
#: example-functions.php:
|
258 |
msgid "Image Caption"
|
259 |
msgstr "Didascalia immagine"
|
260 |
|
261 |
-
#: example-functions.php:
|
262 |
msgid "User Profile Metabox"
|
263 |
msgstr "Profilo Utente Metabox"
|
264 |
|
265 |
-
#: example-functions.php:
|
266 |
msgid "Extra Info"
|
267 |
msgstr "Informazioni extra"
|
268 |
|
269 |
-
#: example-functions.php:
|
270 |
msgid "Avatar"
|
271 |
msgstr "Avatar"
|
272 |
|
273 |
-
#: example-functions.php:
|
274 |
msgid "Facebook URL"
|
275 |
msgstr "URL Facebook"
|
276 |
|
277 |
-
#: example-functions.php:
|
278 |
msgid "Twitter URL"
|
279 |
msgstr "URL Twitter"
|
280 |
|
281 |
-
#: example-functions.php:
|
282 |
msgid "Google+ URL"
|
283 |
msgstr "URL Google+"
|
284 |
|
285 |
-
#: example-functions.php:
|
286 |
msgid "Linkedin URL"
|
287 |
msgstr "URL LinkedIn"
|
288 |
|
289 |
-
#: example-functions.php:
|
290 |
msgid "User Field"
|
291 |
msgstr "Campo utente"
|
292 |
|
293 |
-
#: example-functions.php:
|
294 |
msgid "Category Metabox"
|
295 |
-
msgstr ""
|
296 |
|
297 |
-
#: example-functions.php:
|
298 |
msgid "Term Image"
|
299 |
-
msgstr ""
|
300 |
|
301 |
-
#: example-functions.php:
|
302 |
msgid "Arbitrary Term Field"
|
303 |
-
msgstr ""
|
304 |
|
305 |
-
#: example-functions.php:
|
306 |
msgid "Theme Options Metabox"
|
307 |
msgstr "Opzioni Tema Metabox"
|
308 |
|
309 |
-
#: example-functions.php:
|
310 |
msgid "Site Background Color"
|
311 |
msgstr "Colore di sfondo del sito"
|
312 |
|
313 |
-
#: includes/CMB2.php:
|
314 |
-
msgid "Metabox configuration is required to have an ID parameter"
|
315 |
-
msgstr "La configurazione del
|
316 |
|
317 |
-
#: includes/CMB2.php:
|
318 |
msgid "Click to toggle"
|
319 |
msgstr "Clicca per commutare"
|
320 |
|
@@ -326,158 +337,187 @@ msgstr "Prova Ancora"
|
|
326 |
msgid "Remove Embed"
|
327 |
msgstr "Rimuovi Embed"
|
328 |
|
329 |
-
|
330 |
-
|
331 |
-
|
|
|
|
|
|
|
332 |
|
333 |
-
#: includes/CMB2_Field.php:
|
334 |
msgid "Add Group"
|
335 |
msgstr "Aggiungi gruppo"
|
336 |
|
337 |
-
#: includes/CMB2_Field.php:
|
338 |
msgid "Remove Group"
|
339 |
msgstr "Rimuovi gruppo"
|
340 |
|
341 |
-
#: includes/CMB2_Field.php:
|
342 |
#: tests/test-cmb-field.php:229
|
343 |
msgid "None"
|
344 |
msgstr "Nessuno"
|
345 |
|
346 |
-
#: includes/CMB2_Field.php:
|
347 |
msgid "Sorry, this field does not have a cmb_id specified."
|
348 |
-
msgstr ""
|
349 |
|
350 |
-
#: includes/CMB2_Field_Display.php:408 includes/CMB2_JS.php:
|
351 |
#: includes/types/CMB2_Type_File_Base.php:75 tests/test-cmb-types-base.php:143
|
352 |
#: tests/test-cmb-types.php:701
|
353 |
msgid "File:"
|
354 |
msgstr "File:"
|
355 |
|
356 |
-
#: includes/CMB2_JS.php:
|
357 |
msgid "Clear"
|
358 |
msgstr "Pulisci"
|
359 |
|
360 |
-
#: includes/CMB2_JS.php:
|
361 |
msgid "Default"
|
362 |
msgstr "Predefinito"
|
363 |
|
364 |
-
#: includes/CMB2_JS.php:
|
365 |
msgid "Select Color"
|
366 |
msgstr "Seleziona colore"
|
367 |
|
368 |
-
#: includes/CMB2_JS.php:
|
369 |
msgid "Current Color"
|
370 |
msgstr "Colore attuale"
|
371 |
|
372 |
-
#: includes/CMB2_JS.php:
|
373 |
msgid "Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday"
|
374 |
msgstr "Domenica, Lunedi, Martedì, Mercoledì, Giovedi, Venerdì, Sabato"
|
375 |
|
376 |
-
#: includes/CMB2_JS.php:
|
377 |
msgid "Su, Mo, Tu, We, Th, Fr, Sa"
|
378 |
msgstr "Do, Lu, Ma, Me, Gi, Ve, Sa"
|
379 |
|
380 |
-
#: includes/CMB2_JS.php:
|
381 |
msgid "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
|
382 |
msgstr "Dom, Lun, Mar, Mer, Gio, Ven, Sab"
|
383 |
|
384 |
-
#: includes/CMB2_JS.php:
|
385 |
msgid ""
|
386 |
"January, February, March, April, May, June, July, August, September, "
|
387 |
"October, November, December"
|
388 |
-
msgstr "
|
|
|
|
|
389 |
|
390 |
-
#: includes/CMB2_JS.php:
|
391 |
msgid "Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec"
|
392 |
msgstr "Gen, Feb, Mar, Apr, Mag, Giu, Lug, Ago, Set, Ott, Nov, Dic"
|
393 |
|
394 |
-
#: includes/CMB2_JS.php:
|
395 |
msgid "Next"
|
396 |
msgstr "Successivo"
|
397 |
|
398 |
-
#: includes/CMB2_JS.php:
|
399 |
msgid "Prev"
|
400 |
msgstr "Precedente"
|
401 |
|
402 |
-
#: includes/CMB2_JS.php:
|
403 |
msgid "Today"
|
404 |
msgstr "Oggi"
|
405 |
|
406 |
-
#: includes/CMB2_JS.php:
|
407 |
msgid "Done"
|
408 |
msgstr "Finito"
|
409 |
|
410 |
-
#: includes/CMB2_JS.php:
|
411 |
msgid "Choose Time"
|
412 |
msgstr "Scegli la data"
|
413 |
|
414 |
-
#: includes/CMB2_JS.php:
|
415 |
msgid "Time"
|
416 |
msgstr "Data"
|
417 |
|
418 |
-
#: includes/CMB2_JS.php:
|
419 |
msgid "Hour"
|
420 |
msgstr "Ora"
|
421 |
|
422 |
-
#: includes/CMB2_JS.php:
|
423 |
msgid "Minute"
|
424 |
msgstr "Minuto"
|
425 |
|
426 |
-
#: includes/CMB2_JS.php:
|
427 |
msgid "Second"
|
428 |
msgstr "Secondi"
|
429 |
|
430 |
-
#: includes/CMB2_JS.php:
|
431 |
msgid "Now"
|
432 |
msgstr "Ora"
|
433 |
|
434 |
-
#: includes/CMB2_JS.php:
|
435 |
msgid "Use this file"
|
436 |
msgstr "Usa questo file"
|
437 |
|
438 |
-
#: includes/CMB2_JS.php:
|
439 |
msgid "Use these files"
|
440 |
msgstr "Usa questi file"
|
441 |
|
442 |
-
#: includes/CMB2_JS.php:
|
443 |
msgid "Remove Image"
|
444 |
msgstr "Rimuovi immagine"
|
445 |
|
446 |
-
#: includes/CMB2_JS.php:
|
447 |
#: includes/types/CMB2_Type_File_Base.php:80 tests/test-cmb-types-base.php:143
|
448 |
#: tests/test-cmb-types.php:47 tests/test-cmb-types.php:55
|
449 |
#: tests/test-cmb-types.php:701
|
450 |
msgid "Remove"
|
451 |
msgstr "Rimuovi"
|
452 |
|
453 |
-
#: includes/CMB2_JS.php:
|
454 |
#: tests/test-cmb-types-base.php:143 tests/test-cmb-types.php:701
|
455 |
msgid "Download"
|
456 |
msgstr "Download"
|
457 |
|
458 |
-
#: includes/CMB2_JS.php:
|
459 |
msgid "Select / Deselect All"
|
460 |
msgstr "Seleziona / Deseleziona tutto"
|
461 |
|
462 |
-
#: includes/CMB2_Types.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
msgid "Add Row"
|
464 |
msgstr "Aggiungi Riga"
|
465 |
|
466 |
-
#: includes/CMB2_hookup.php:
|
467 |
msgid ""
|
468 |
-
"Term Metadata is a WordPress
|
469 |
"install."
|
470 |
msgstr ""
|
|
|
|
|
471 |
|
472 |
-
#: includes/CMB2_hookup.php:
|
473 |
-
msgid "Term metaboxes configuration requires a
|
474 |
msgstr ""
|
|
|
|
|
475 |
|
476 |
-
#: includes/helper-functions.php:
|
477 |
-
msgid "No oEmbed Results Found for %s. View more info at %s"
|
478 |
-
msgstr ""
|
479 |
-
|
480 |
-
#: includes/helper-functions.php:279
|
481 |
msgid "Save"
|
482 |
msgstr "Salva"
|
483 |
|
@@ -497,6 +537,10 @@ msgid "No terms"
|
|
497 |
msgstr "Nessun termine"
|
498 |
|
499 |
#. Plugin Name of the plugin/theme
|
|
|
|
|
|
|
|
|
500 |
msgid "CMB2"
|
501 |
msgstr "CMB2"
|
502 |
|
@@ -508,24 +552,22 @@ msgstr "https://github.com/CMB2/CMB2"
|
|
508 |
msgid ""
|
509 |
"CMB2 will create metaboxes and forms with custom fields that will blow your "
|
510 |
"mind."
|
511 |
-
msgstr "
|
512 |
-
|
513 |
-
|
514 |
-
msgid "WebDevStudios"
|
515 |
-
msgstr "WebDevStudios"
|
516 |
|
517 |
#. Author URI of the plugin/theme
|
518 |
-
msgid "
|
519 |
-
msgstr "
|
520 |
|
521 |
-
#: includes/CMB2_JS.php:
|
522 |
msgctxt "Valid formatDate string for jquery-ui datepicker"
|
523 |
msgid "mm/dd/yy"
|
524 |
msgstr "mm/dd/yy"
|
525 |
|
526 |
-
#: includes/CMB2_JS.php:
|
527 |
msgctxt ""
|
528 |
-
"Valid formatting string, as per "
|
529 |
-
"
|
530 |
msgid "hh:mm TT"
|
531 |
msgstr "hh:mm TT"
|
1 |
+
# Copyright (C) 2017 CMB2 team
|
2 |
# This file is distributed under the same license as the CMB2 package.
|
3 |
# Translators:
|
4 |
# Alessandro Curci <hantarex@gmail.com>, 2015
|
5 |
# Andrea Brandi, 2015
|
6 |
+
# Daniele Scasciafratte Mte90 <mte90net@gmail.com>, 2015,2017
|
7 |
+
# Emanuele <e@emanuelebartolomucci.com>, 2015
|
8 |
msgid ""
|
9 |
msgstr ""
|
10 |
"Project-Id-Version: CMB2\n"
|
11 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/cmb2\n"
|
12 |
+
"POT-Creation-Date: 2016-08-17 14:25:09+00:00\n"
|
13 |
+
"PO-Revision-Date: 2017-11-30 14:22-0500\n"
|
14 |
+
"Last-Translator: Justin Sternberg <justin@dsgnwrks.pro>\n"
|
15 |
+
"Language-Team: Italian (Italy) (http://www.transifex.com/wp-translations/"
|
16 |
+
"cmb2/language/it_IT/)\n"
|
17 |
"MIME-Version: 1.0\n"
|
18 |
"Content-Type: text/plain; charset=UTF-8\n"
|
19 |
"Content-Transfer-Encoding: 8bit\n"
|
20 |
"Language: it_IT\n"
|
21 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
22 |
+
"X-Generator: Poedit 1.8.7\n"
|
23 |
+
"X-Poedit-Basepath: ..\n"
|
24 |
+
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
25 |
+
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
26 |
+
"esc_html_x:1,2c\n"
|
|
|
27 |
"X-Poedit-SourceCharset: UTF-8\n"
|
28 |
"X-Textdomain-Support: yes\n"
|
29 |
+
"X-Poedit-SearchPath-0: .\n"
|
30 |
|
31 |
#: example-functions.php:117 tests/test-cmb-field.php:255
|
32 |
msgid "Test Metabox"
|
33 |
msgstr "Test Metabox"
|
34 |
|
35 |
+
#: example-functions.php:130 example-functions.php:452
|
36 |
msgid "Test Text"
|
37 |
msgstr "Test Testo"
|
38 |
|
39 |
#: example-functions.php:131 example-functions.php:144
|
40 |
+
#: example-functions.php:157 example-functions.php:164
|
41 |
+
#: example-functions.php:177 example-functions.php:185
|
42 |
+
#: example-functions.php:194 example-functions.php:202
|
43 |
+
#: example-functions.php:217 example-functions.php:225
|
44 |
+
#: example-functions.php:233 example-functions.php:250
|
45 |
+
#: example-functions.php:259 example-functions.php:272
|
46 |
+
#: example-functions.php:279 example-functions.php:286
|
47 |
+
#: example-functions.php:300 example-functions.php:313
|
48 |
+
#: example-functions.php:326 example-functions.php:338
|
49 |
+
#: example-functions.php:347 example-functions.php:355
|
50 |
+
#: example-functions.php:364 example-functions.php:371
|
51 |
+
#: example-functions.php:385 example-functions.php:453
|
52 |
+
#: example-functions.php:544 example-functions.php:552
|
53 |
+
#: example-functions.php:559 example-functions.php:566
|
54 |
+
#: example-functions.php:573 example-functions.php:580
|
55 |
+
#: example-functions.php:587 example-functions.php:614
|
56 |
+
#: example-functions.php:622 example-functions.php:629
|
57 |
+
#: example-functions.php:666 tests/test-cmb-field.php:267
|
58 |
msgid "field description (optional)"
|
59 |
msgstr "descrizione campo (opzionale)"
|
60 |
|
66 |
msgid "Test Text Medium"
|
67 |
msgstr "Test Testo Medio"
|
68 |
|
69 |
+
#: example-functions.php:163
|
70 |
+
msgid "Read-only Disabled Field"
|
71 |
+
msgstr "Disabilita campo in sola lettura"
|
72 |
+
|
73 |
+
#: example-functions.php:167
|
74 |
+
msgid "Hey there, I'm a read-only field"
|
75 |
+
msgstr "Ciao, Io sono un campo di sola lettura"
|
76 |
+
|
77 |
+
#: example-functions.php:176
|
78 |
msgid "Custom Rendered Field"
|
79 |
+
msgstr "Campo personalizzato renderizzato"
|
80 |
|
81 |
+
#: example-functions.php:184
|
82 |
msgid "Website URL"
|
83 |
msgstr "URL Sito"
|
84 |
|
85 |
+
#: example-functions.php:193
|
86 |
msgid "Test Text Email"
|
87 |
msgstr "Test Testo Email"
|
88 |
|
89 |
+
#: example-functions.php:201
|
90 |
msgid "Test Time"
|
91 |
msgstr "Test Orario"
|
92 |
|
93 |
+
#: example-functions.php:209 example-functions.php:210
|
94 |
msgid "Time zone"
|
95 |
msgstr "Time zone"
|
96 |
|
97 |
+
#: example-functions.php:216
|
98 |
msgid "Test Date Picker"
|
99 |
msgstr "Test Date Picker"
|
100 |
|
101 |
+
#: example-functions.php:224
|
102 |
msgid "Test Date Picker (UNIX timestamp)"
|
103 |
msgstr "Test Data Picker (UNIX timestamp)"
|
104 |
|
105 |
+
#: example-functions.php:232
|
106 |
msgid "Test Date/Time Picker Combo (UNIX timestamp)"
|
107 |
msgstr "Test Data/Orario Picker Combo (UNIX timestamp)"
|
108 |
|
109 |
+
#: example-functions.php:249
|
110 |
msgid "Test Money"
|
111 |
msgstr "Test Money"
|
112 |
|
113 |
+
#: example-functions.php:258
|
114 |
msgid "Test Color Picker"
|
115 |
msgstr "Test Color Picker"
|
116 |
|
117 |
+
#: example-functions.php:271
|
118 |
msgid "Test Text Area"
|
119 |
msgstr "Test Text Area"
|
120 |
|
121 |
+
#: example-functions.php:278
|
122 |
msgid "Test Text Area Small"
|
123 |
msgstr "Test Text Area Piccola"
|
124 |
|
125 |
+
#: example-functions.php:285
|
126 |
msgid "Test Text Area for Code"
|
127 |
msgstr "Test Text Area per Codice"
|
128 |
|
129 |
+
#: example-functions.php:292
|
130 |
msgid "Test Title Weeeee"
|
131 |
msgstr "Test Titolo Weeeee"
|
132 |
|
133 |
+
#: example-functions.php:293
|
134 |
msgid "This is a title description"
|
135 |
msgstr "Questa è una descrizione del titolo"
|
136 |
|
137 |
+
#: example-functions.php:299
|
138 |
msgid "Test Select"
|
139 |
msgstr "Test Select"
|
140 |
|
141 |
+
#: example-functions.php:305 example-functions.php:318
|
142 |
+
#: example-functions.php:330
|
143 |
msgid "Option One"
|
144 |
msgstr "Opzione uno"
|
145 |
|
146 |
+
#: example-functions.php:306 example-functions.php:319
|
147 |
+
#: example-functions.php:331
|
148 |
msgid "Option Two"
|
149 |
msgstr "Opzione Due"
|
150 |
|
151 |
+
#: example-functions.php:307 example-functions.php:320
|
152 |
+
#: example-functions.php:332
|
153 |
msgid "Option Three"
|
154 |
msgstr "Opzione Tre"
|
155 |
|
156 |
+
#: example-functions.php:312
|
157 |
msgid "Test Radio inline"
|
158 |
msgstr "Test Radio inline"
|
159 |
|
160 |
+
#: example-functions.php:325
|
161 |
msgid "Test Radio"
|
162 |
msgstr "Test Radio"
|
163 |
|
164 |
+
#: example-functions.php:337
|
165 |
msgid "Test Taxonomy Radio"
|
166 |
msgstr "Test Tassonomia Radio"
|
167 |
|
168 |
+
#: example-functions.php:346
|
169 |
msgid "Test Taxonomy Select"
|
170 |
msgstr "Test Seleziona Tassonomia"
|
171 |
|
172 |
+
#: example-functions.php:354
|
173 |
msgid "Test Taxonomy Multi Checkbox"
|
174 |
msgstr "Test Tassonomia Multi Checkbox"
|
175 |
|
176 |
+
#: example-functions.php:363
|
177 |
msgid "Test Checkbox"
|
178 |
msgstr "Test Checkbox"
|
179 |
|
180 |
+
#: example-functions.php:370 tests/test-cmb-field.php:266
|
181 |
msgid "Test Multi Checkbox"
|
182 |
msgstr "Test Multi Checkbox"
|
183 |
|
184 |
+
#: example-functions.php:376 tests/test-cmb-field.php:272
|
185 |
msgid "Check One"
|
186 |
msgstr "Check Uno"
|
187 |
|
188 |
+
#: example-functions.php:377 tests/test-cmb-field.php:273
|
189 |
msgid "Check Two"
|
190 |
msgstr "Check Due"
|
191 |
|
192 |
+
#: example-functions.php:378 tests/test-cmb-field.php:274
|
193 |
msgid "Check Three"
|
194 |
msgstr "Check Tre"
|
195 |
|
196 |
+
#: example-functions.php:384
|
197 |
msgid "Test wysiwyg"
|
198 |
msgstr "Test wysiwyg"
|
199 |
|
200 |
+
#: example-functions.php:392
|
201 |
msgid "Test Image"
|
202 |
msgstr "Test Immagine"
|
203 |
|
204 |
+
#: example-functions.php:393
|
205 |
msgid "Upload an image or enter a URL."
|
206 |
msgstr "Carica una immagine o inserisci una URL"
|
207 |
|
208 |
+
#: example-functions.php:399
|
209 |
msgid "Multiple Files"
|
210 |
msgstr "File Multipli"
|
211 |
|
212 |
+
#: example-functions.php:400
|
213 |
msgid "Upload or add multiple images/attachments."
|
214 |
msgstr "Carica o aggiungi immagini/allegati multipli"
|
215 |
|
216 |
+
#: example-functions.php:407
|
217 |
msgid "oEmbed"
|
218 |
msgstr "oEmbed"
|
219 |
|
220 |
+
#. translators: %s: link to codex.wordpress.org/Embeds
|
221 |
+
#: example-functions.php:410
|
222 |
msgid ""
|
223 |
+
"Enter a youtube, twitter, or instagram URL. Supports services listed at %s."
|
224 |
+
msgstr ""
|
225 |
+
"Inserisci una URL di youtube, twitter o instagram. Servizi supportato sono "
|
226 |
+
"elencati su %s."
|
227 |
|
228 |
+
#: example-functions.php:443
|
229 |
msgid "About Page Metabox"
|
230 |
msgstr "About Page Metabox"
|
231 |
|
232 |
+
#: example-functions.php:472
|
233 |
msgid "Repeating Field Group"
|
234 |
msgstr "Gruppo Campi Ripetuto"
|
235 |
|
236 |
+
#: example-functions.php:480
|
237 |
msgid "Generates reusable form entries"
|
238 |
msgstr "Genera elementi del form riusabili"
|
239 |
|
240 |
+
#: example-functions.php:482
|
241 |
msgid "Entry {#}"
|
242 |
msgstr "Instanza {#}"
|
243 |
|
244 |
+
#: example-functions.php:483
|
245 |
msgid "Add Another Entry"
|
246 |
msgstr "Aggiungi una nuova instanza"
|
247 |
|
248 |
+
#: example-functions.php:484
|
249 |
msgid "Remove Entry"
|
250 |
msgstr "Rimuovi instanza"
|
251 |
|
252 |
+
#: example-functions.php:497
|
253 |
msgid "Entry Title"
|
254 |
msgstr "Inserisci Titolo"
|
255 |
|
256 |
+
#: example-functions.php:504
|
257 |
msgid "Description"
|
258 |
msgstr "Descrizione"
|
259 |
|
260 |
+
#: example-functions.php:505
|
261 |
msgid "Write a short description for this entry"
|
262 |
msgstr "Scrivi una breve descrizione per questo elemento"
|
263 |
|
264 |
+
#: example-functions.php:511
|
265 |
msgid "Entry Image"
|
266 |
msgstr "Inserisci Immagine"
|
267 |
|
268 |
+
#: example-functions.php:517
|
269 |
msgid "Image Caption"
|
270 |
msgstr "Didascalia immagine"
|
271 |
|
272 |
+
#: example-functions.php:536
|
273 |
msgid "User Profile Metabox"
|
274 |
msgstr "Profilo Utente Metabox"
|
275 |
|
276 |
+
#: example-functions.php:543 example-functions.php:613
|
277 |
msgid "Extra Info"
|
278 |
msgstr "Informazioni extra"
|
279 |
|
280 |
+
#: example-functions.php:551
|
281 |
msgid "Avatar"
|
282 |
msgstr "Avatar"
|
283 |
|
284 |
+
#: example-functions.php:558
|
285 |
msgid "Facebook URL"
|
286 |
msgstr "URL Facebook"
|
287 |
|
288 |
+
#: example-functions.php:565
|
289 |
msgid "Twitter URL"
|
290 |
msgstr "URL Twitter"
|
291 |
|
292 |
+
#: example-functions.php:572
|
293 |
msgid "Google+ URL"
|
294 |
msgstr "URL Google+"
|
295 |
|
296 |
+
#: example-functions.php:579
|
297 |
msgid "Linkedin URL"
|
298 |
msgstr "URL LinkedIn"
|
299 |
|
300 |
+
#: example-functions.php:586
|
301 |
msgid "User Field"
|
302 |
msgstr "Campo utente"
|
303 |
|
304 |
+
#: example-functions.php:606
|
305 |
msgid "Category Metabox"
|
306 |
+
msgstr "Metabox categoria"
|
307 |
|
308 |
+
#: example-functions.php:621
|
309 |
msgid "Term Image"
|
310 |
+
msgstr "Immagine della tassonomia"
|
311 |
|
312 |
+
#: example-functions.php:628
|
313 |
msgid "Arbitrary Term Field"
|
314 |
+
msgstr "Campo Arbitrary Term"
|
315 |
|
316 |
+
#: example-functions.php:650
|
317 |
msgid "Theme Options Metabox"
|
318 |
msgstr "Opzioni Tema Metabox"
|
319 |
|
320 |
+
#: example-functions.php:665
|
321 |
msgid "Site Background Color"
|
322 |
msgstr "Colore di sfondo del sito"
|
323 |
|
324 |
+
#: includes/CMB2.php:117
|
325 |
+
msgid "Metabox configuration is required to have an ID parameter."
|
326 |
+
msgstr "La configurazione del metabox richiede un parametro ID."
|
327 |
|
328 |
+
#: includes/CMB2.php:432
|
329 |
msgid "Click to toggle"
|
330 |
msgstr "Clicca per commutare"
|
331 |
|
337 |
msgid "Remove Embed"
|
338 |
msgstr "Rimuovi Embed"
|
339 |
|
340 |
+
#. translators: 1: results for. 2: link to codex.wordpress.org/Embeds
|
341 |
+
#: includes/CMB2_Ajax.php:181 includes/helper-functions.php:95
|
342 |
+
#: tests/cmb-tests-base.php:68
|
343 |
+
msgid "No oEmbed Results Found for %1$s. View more info at %2$s."
|
344 |
+
msgstr ""
|
345 |
+
"Nessun risultato OEmbed trovato per %1$s. Per altre informazioni vedi su%2$s."
|
346 |
|
347 |
+
#: includes/CMB2_Field.php:1144
|
348 |
msgid "Add Group"
|
349 |
msgstr "Aggiungi gruppo"
|
350 |
|
351 |
+
#: includes/CMB2_Field.php:1145
|
352 |
msgid "Remove Group"
|
353 |
msgstr "Rimuovi gruppo"
|
354 |
|
355 |
+
#: includes/CMB2_Field.php:1167 includes/CMB2_Field.php:1171
|
356 |
#: tests/test-cmb-field.php:229
|
357 |
msgid "None"
|
358 |
msgstr "Nessuno"
|
359 |
|
360 |
+
#: includes/CMB2_Field.php:1232
|
361 |
msgid "Sorry, this field does not have a cmb_id specified."
|
362 |
+
msgstr "Spiacenti, questo campo non ha il valore cmb_id specificato."
|
363 |
|
364 |
+
#: includes/CMB2_Field_Display.php:408 includes/CMB2_JS.php:155
|
365 |
#: includes/types/CMB2_Type_File_Base.php:75 tests/test-cmb-types-base.php:143
|
366 |
#: tests/test-cmb-types.php:701
|
367 |
msgid "File:"
|
368 |
msgstr "File:"
|
369 |
|
370 |
+
#: includes/CMB2_JS.php:96 includes/CMB2_JS.php:135
|
371 |
msgid "Clear"
|
372 |
msgstr "Pulisci"
|
373 |
|
374 |
+
#: includes/CMB2_JS.php:97
|
375 |
msgid "Default"
|
376 |
msgstr "Predefinito"
|
377 |
|
378 |
+
#: includes/CMB2_JS.php:98
|
379 |
msgid "Select Color"
|
380 |
msgstr "Seleziona colore"
|
381 |
|
382 |
+
#: includes/CMB2_JS.php:99
|
383 |
msgid "Current Color"
|
384 |
msgstr "Colore attuale"
|
385 |
|
386 |
+
#: includes/CMB2_JS.php:126
|
387 |
msgid "Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday"
|
388 |
msgstr "Domenica, Lunedi, Martedì, Mercoledì, Giovedi, Venerdì, Sabato"
|
389 |
|
390 |
+
#: includes/CMB2_JS.php:127
|
391 |
msgid "Su, Mo, Tu, We, Th, Fr, Sa"
|
392 |
msgstr "Do, Lu, Ma, Me, Gi, Ve, Sa"
|
393 |
|
394 |
+
#: includes/CMB2_JS.php:128
|
395 |
msgid "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
|
396 |
msgstr "Dom, Lun, Mar, Mer, Gio, Ven, Sab"
|
397 |
|
398 |
+
#: includes/CMB2_JS.php:129
|
399 |
msgid ""
|
400 |
"January, February, March, April, May, June, July, August, September, "
|
401 |
"October, November, December"
|
402 |
+
msgstr ""
|
403 |
+
"Gennaio, Febbraio, Marzo, Aprile, Maggio, Giugno, Luglio, Agosto, Settembre, "
|
404 |
+
"Ottobre, Novembre, Dicembre"
|
405 |
|
406 |
+
#: includes/CMB2_JS.php:130
|
407 |
msgid "Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec"
|
408 |
msgstr "Gen, Feb, Mar, Apr, Mag, Giu, Lug, Ago, Set, Ott, Nov, Dic"
|
409 |
|
410 |
+
#: includes/CMB2_JS.php:131
|
411 |
msgid "Next"
|
412 |
msgstr "Successivo"
|
413 |
|
414 |
+
#: includes/CMB2_JS.php:132
|
415 |
msgid "Prev"
|
416 |
msgstr "Precedente"
|
417 |
|
418 |
+
#: includes/CMB2_JS.php:133
|
419 |
msgid "Today"
|
420 |
msgstr "Oggi"
|
421 |
|
422 |
+
#: includes/CMB2_JS.php:134 includes/CMB2_JS.php:144
|
423 |
msgid "Done"
|
424 |
msgstr "Finito"
|
425 |
|
426 |
+
#: includes/CMB2_JS.php:138
|
427 |
msgid "Choose Time"
|
428 |
msgstr "Scegli la data"
|
429 |
|
430 |
+
#: includes/CMB2_JS.php:139
|
431 |
msgid "Time"
|
432 |
msgstr "Data"
|
433 |
|
434 |
+
#: includes/CMB2_JS.php:140
|
435 |
msgid "Hour"
|
436 |
msgstr "Ora"
|
437 |
|
438 |
+
#: includes/CMB2_JS.php:141
|
439 |
msgid "Minute"
|
440 |
msgstr "Minuto"
|
441 |
|
442 |
+
#: includes/CMB2_JS.php:142
|
443 |
msgid "Second"
|
444 |
msgstr "Secondi"
|
445 |
|
446 |
+
#: includes/CMB2_JS.php:143
|
447 |
msgid "Now"
|
448 |
msgstr "Ora"
|
449 |
|
450 |
+
#: includes/CMB2_JS.php:151
|
451 |
msgid "Use this file"
|
452 |
msgstr "Usa questo file"
|
453 |
|
454 |
+
#: includes/CMB2_JS.php:152
|
455 |
msgid "Use these files"
|
456 |
msgstr "Usa questi file"
|
457 |
|
458 |
+
#: includes/CMB2_JS.php:153 includes/types/CMB2_Type_File_Base.php:61
|
459 |
msgid "Remove Image"
|
460 |
msgstr "Rimuovi immagine"
|
461 |
|
462 |
+
#: includes/CMB2_JS.php:154 includes/CMB2_Types.php:303
|
463 |
#: includes/types/CMB2_Type_File_Base.php:80 tests/test-cmb-types-base.php:143
|
464 |
#: tests/test-cmb-types.php:47 tests/test-cmb-types.php:55
|
465 |
#: tests/test-cmb-types.php:701
|
466 |
msgid "Remove"
|
467 |
msgstr "Rimuovi"
|
468 |
|
469 |
+
#: includes/CMB2_JS.php:156 includes/types/CMB2_Type_File_Base.php:78
|
470 |
#: tests/test-cmb-types-base.php:143 tests/test-cmb-types.php:701
|
471 |
msgid "Download"
|
472 |
msgstr "Download"
|
473 |
|
474 |
+
#: includes/CMB2_JS.php:157
|
475 |
msgid "Select / Deselect All"
|
476 |
msgstr "Seleziona / Deseleziona tutto"
|
477 |
|
478 |
+
#: includes/CMB2_Types.php:171
|
479 |
+
msgid ""
|
480 |
+
"Custom field types require a Type object instantiation to use this method. "
|
481 |
+
"This method was called by the '%s' field type."
|
482 |
+
msgstr ""
|
483 |
+
"I campi personalizzati richiedono una instanziazione dell'oggetto Type per "
|
484 |
+
"usare questo metodo. Questo metodo è stato chiamato dal tipo di campo '%s'."
|
485 |
+
|
486 |
+
#: includes/CMB2_Types.php:174
|
487 |
+
msgid "That field type may not work as expected."
|
488 |
+
msgstr "Questo campo potrebbe non funzionare come previsto."
|
489 |
+
|
490 |
+
#: includes/CMB2_Types.php:175
|
491 |
+
msgid "That field type will not work as expected."
|
492 |
+
msgstr "Questo campo potrebbe non funzionare in modo corretto."
|
493 |
+
|
494 |
+
#: includes/CMB2_Types.php:177
|
495 |
+
msgid ""
|
496 |
+
"For more information about this change see: https://github.com/mustardBees/"
|
497 |
+
"cmb-field-select2/pull/34w"
|
498 |
+
msgstr ""
|
499 |
+
"Per altre informazioni riguardo questo cambiamento: https://github.com/"
|
500 |
+
"mustardBees/cmb-field-select2/pull/34w"
|
501 |
+
|
502 |
+
#: includes/CMB2_Types.php:240
|
503 |
msgid "Add Row"
|
504 |
msgstr "Aggiungi Riga"
|
505 |
|
506 |
+
#: includes/CMB2_hookup.php:128
|
507 |
msgid ""
|
508 |
+
"Term Metadata is a WordPress 4.4+ feature. Please upgrade your WordPress "
|
509 |
"install."
|
510 |
msgstr ""
|
511 |
+
"Il supporto ai Term Metadata sono una funzionalità per WordPress 4.4. "
|
512 |
+
"Aggiorna la tua installazione di WordPress."
|
513 |
|
514 |
+
#: includes/CMB2_hookup.php:132
|
515 |
+
msgid "Term metaboxes configuration requires a \"taxonomies\" parameter."
|
516 |
msgstr ""
|
517 |
+
"I metabox delle configurazioni per le tassonomie richiede il parametro "
|
518 |
+
"\"taxonomies\"."
|
519 |
|
520 |
+
#: includes/helper-functions.php:284
|
|
|
|
|
|
|
|
|
521 |
msgid "Save"
|
522 |
msgstr "Salva"
|
523 |
|
537 |
msgstr "Nessun termine"
|
538 |
|
539 |
#. Plugin Name of the plugin/theme
|
540 |
+
msgid "CMB2 team"
|
541 |
+
msgstr "CMB2 team"
|
542 |
+
|
543 |
+
#. Author of the plugin/theme
|
544 |
msgid "CMB2"
|
545 |
msgstr "CMB2"
|
546 |
|
552 |
msgid ""
|
553 |
"CMB2 will create metaboxes and forms with custom fields that will blow your "
|
554 |
"mind."
|
555 |
+
msgstr ""
|
556 |
+
"CMB2 crea metabox e form con campi personalizzati che ti faranno esplodere "
|
557 |
+
"la testa."
|
|
|
|
|
558 |
|
559 |
#. Author URI of the plugin/theme
|
560 |
+
msgid "https://cmb2.io"
|
561 |
+
msgstr "https://cmb2.io"
|
562 |
|
563 |
+
#: includes/CMB2_JS.php:125
|
564 |
msgctxt "Valid formatDate string for jquery-ui datepicker"
|
565 |
msgid "mm/dd/yy"
|
566 |
msgstr "mm/dd/yy"
|
567 |
|
568 |
+
#: includes/CMB2_JS.php:145
|
569 |
msgctxt ""
|
570 |
+
"Valid formatting string, as per http://trentrichardson.com/examples/"
|
571 |
+
"timepicker/"
|
572 |
msgid "hh:mm TT"
|
573 |
msgstr "hh:mm TT"
|
vendor/webdevstudios/cmb2/languages/cmb2-ja.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-jv.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ka.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ka_GE.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-kk.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-km.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-kn.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ko_KR.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ku.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ky.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-lo.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-lt_LT.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-lv.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-mg.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-mk_MK.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-mn.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-mr.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ms_MY.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-my_MM.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-nb_NO.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ne_NP.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-nl_BE.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-nl_NL.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-nn_NO.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-oc.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-os.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-pap.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-pl_PL.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ps.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-pt_BR.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-pt_PT.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ro_RO.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ru_RU.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-sa.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-sah.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-si_LK.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-sk_SK.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-sl_SI.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-so.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-sq.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-sr_RS.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-su.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-sv_SE.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-sw.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ta_IN.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ta_LK.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-te.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-tg.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-th.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-tk_TM.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-tl.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-tr_TR.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-tzm.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ug.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-uk.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ur.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-ur_PK.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-uz.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-vi.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-zh_CN.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-zh_HK.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2-zh_TW.mo
CHANGED
Binary file
|
vendor/webdevstudios/cmb2/languages/cmb2.pot
CHANGED
@@ -2,13 +2,13 @@
|
|
2 |
# This file is distributed under the same license as the CMB2 package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: CMB2 2.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/cmb2\n"
|
7 |
-
"POT-Creation-Date: 2017-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date: 2017-
|
12 |
"Last-Translator: CMB2 Team hello@cmb2.io\n"
|
13 |
"Language-Team: CMB2 Team hello@cmb2.io\n"
|
14 |
"X-Generator: grunt-wp-i18n 0.4.9\n"
|
@@ -28,7 +28,7 @@ msgstr ""
|
|
28 |
msgid "Test Metabox"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: example-functions.php:130 example-functions.php:
|
32 |
msgid "Test Text"
|
33 |
msgstr ""
|
34 |
|
@@ -38,19 +38,19 @@ msgstr ""
|
|
38 |
#: example-functions.php:194 example-functions.php:202
|
39 |
#: example-functions.php:217 example-functions.php:225
|
40 |
#: example-functions.php:233 example-functions.php:250
|
41 |
-
#: example-functions.php:259 example-functions.php:
|
42 |
-
#: example-functions.php:
|
43 |
-
#: example-functions.php:
|
44 |
-
#: example-functions.php:
|
45 |
-
#: example-functions.php:
|
46 |
-
#: example-functions.php:
|
47 |
-
#: example-functions.php:
|
48 |
-
#: example-functions.php:
|
49 |
-
#: example-functions.php:
|
50 |
-
#: example-functions.php:
|
51 |
-
#: example-functions.php:
|
52 |
-
#: example-functions.php:
|
53 |
-
#: example-functions.php:
|
54 |
msgid "field description (optional)"
|
55 |
msgstr ""
|
56 |
|
@@ -110,235 +110,239 @@ msgstr ""
|
|
110 |
msgid "Test Color Picker"
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: example-functions.php:
|
114 |
msgid "Test Text Area"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: example-functions.php:
|
118 |
msgid "Test Text Area Small"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: example-functions.php:
|
122 |
msgid "Test Text Area for Code"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: example-functions.php:
|
126 |
msgid "Test Title Weeeee"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: example-functions.php:
|
130 |
msgid "This is a title description"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: example-functions.php:
|
134 |
msgid "Test Select"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: example-functions.php:
|
138 |
-
#: example-functions.php:
|
139 |
msgid "Option One"
|
140 |
msgstr ""
|
141 |
|
142 |
-
#: example-functions.php:
|
143 |
-
#: example-functions.php:
|
144 |
msgid "Option Two"
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: example-functions.php:
|
148 |
-
#: example-functions.php:
|
149 |
msgid "Option Three"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: example-functions.php:
|
153 |
msgid "Test Radio inline"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: example-functions.php:
|
157 |
msgid "Test Radio"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: example-functions.php:
|
161 |
msgid "Test Taxonomy Radio"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: example-functions.php:
|
165 |
msgid "Test Taxonomy Select"
|
166 |
msgstr ""
|
167 |
|
168 |
-
#: example-functions.php:
|
169 |
msgid "Test Taxonomy Multi Checkbox"
|
170 |
msgstr ""
|
171 |
|
172 |
-
#: example-functions.php:
|
173 |
msgid "Test Checkbox"
|
174 |
msgstr ""
|
175 |
|
176 |
-
#: example-functions.php:
|
177 |
msgid "Test Multi Checkbox"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: example-functions.php:
|
181 |
msgid "Check One"
|
182 |
msgstr ""
|
183 |
|
184 |
-
#: example-functions.php:
|
185 |
msgid "Check Two"
|
186 |
msgstr ""
|
187 |
|
188 |
-
#: example-functions.php:
|
189 |
msgid "Check Three"
|
190 |
msgstr ""
|
191 |
|
192 |
-
#: example-functions.php:
|
193 |
msgid "Test wysiwyg"
|
194 |
msgstr ""
|
195 |
|
196 |
-
#: example-functions.php:
|
197 |
msgid "Test Image"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: example-functions.php:
|
201 |
msgid "Upload an image or enter a URL."
|
202 |
msgstr ""
|
203 |
|
204 |
-
#: example-functions.php:
|
205 |
msgid "Multiple Files"
|
206 |
msgstr ""
|
207 |
|
208 |
-
#: example-functions.php:
|
209 |
msgid "Upload or add multiple images/attachments."
|
210 |
msgstr ""
|
211 |
|
212 |
-
#: example-functions.php:
|
213 |
msgid "oEmbed"
|
214 |
msgstr ""
|
215 |
|
216 |
-
#: example-functions.php:
|
217 |
#. translators: %s: link to codex.wordpress.org/Embeds
|
218 |
msgid "Enter a youtube, twitter, or instagram URL. Supports services listed at %s."
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: example-functions.php:
|
222 |
msgid "About Page Metabox"
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: example-functions.php:
|
226 |
msgid "Repeating Field Group"
|
227 |
msgstr ""
|
228 |
|
229 |
-
#: example-functions.php:
|
230 |
msgid "Generates reusable form entries"
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: example-functions.php:
|
234 |
msgid "Entry {#}"
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: example-functions.php:
|
238 |
msgid "Add Another Entry"
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: example-functions.php:
|
242 |
msgid "Remove Entry"
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: example-functions.php:
|
246 |
msgid "Entry Title"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: example-functions.php:
|
250 |
msgid "Description"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: example-functions.php:
|
254 |
msgid "Write a short description for this entry"
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: example-functions.php:
|
258 |
msgid "Entry Image"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: example-functions.php:
|
262 |
msgid "Image Caption"
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: example-functions.php:
|
266 |
msgid "User Profile Metabox"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: example-functions.php:
|
270 |
msgid "Extra Info"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: example-functions.php:
|
274 |
msgid "Avatar"
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: example-functions.php:
|
278 |
msgid "Facebook URL"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: example-functions.php:
|
282 |
msgid "Twitter URL"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: example-functions.php:
|
286 |
msgid "Google+ URL"
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: example-functions.php:
|
290 |
msgid "Linkedin URL"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: example-functions.php:
|
294 |
msgid "User Field"
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: example-functions.php:
|
298 |
msgid "Category Metabox"
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: example-functions.php:
|
302 |
msgid "Term Image"
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: example-functions.php:
|
306 |
msgid "Arbitrary Term Field"
|
307 |
msgstr ""
|
308 |
|
309 |
-
#: example-functions.php:
|
310 |
msgid "Theme Options"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: example-functions.php:
|
314 |
msgid "Site Background Color"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: example-functions.php:
|
|
|
|
|
|
|
|
|
318 |
msgid "REST Test Box"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: example-functions.php:
|
322 |
msgid "REST Test Text"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: example-functions.php:
|
326 |
msgid "Will show in the REST API for this box and for pages."
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: example-functions.php:
|
330 |
msgid "REST Editable Test Text"
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: example-functions.php:
|
334 |
msgid "Will show in REST API \"editable\" contexts only (`POST` requests)."
|
335 |
msgstr ""
|
336 |
|
337 |
-
#: includes/CMB2.php:
|
338 |
msgid "Metabox configuration is required to have an ID parameter."
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: includes/CMB2.php:
|
342 |
msgid "Click to toggle"
|
343 |
msgstr ""
|
344 |
|
@@ -346,184 +350,188 @@ msgstr ""
|
|
346 |
msgid "Please Try Again"
|
347 |
msgstr ""
|
348 |
|
349 |
-
#: includes/CMB2_Ajax.php:181 tests/cmb-tests-base.php:
|
350 |
msgid "Remove Embed"
|
351 |
msgstr ""
|
352 |
|
353 |
#: includes/CMB2_Ajax.php:189 includes/helper-functions.php:105
|
354 |
-
#: tests/cmb-tests-base.php:68 tests/test-cmb-types-display.php:
|
355 |
#. translators: 1: results for. 2: link to codex.wordpress.org/Embeds
|
356 |
msgid "No oEmbed Results Found for %1$s. View more info at %2$s."
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: includes/CMB2_Base.php:
|
360 |
msgid ""
|
361 |
"The \"%1$s\" field parameter has been deprecated in favor of the \"%1$s\" "
|
362 |
"parameter."
|
363 |
msgstr ""
|
364 |
|
365 |
-
#: includes/CMB2_Base.php:
|
366 |
msgid ""
|
367 |
"Using the \"%1$s\" field parameter as a callback has been deprecated in "
|
368 |
"favor of the \"%1$s\" parameter."
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: includes/CMB2_Base.php:
|
372 |
msgid ""
|
373 |
"%1$s was called with a parameter that is <strong>deprecated</strong> since "
|
374 |
"version %2$s! %3$s"
|
375 |
msgstr ""
|
376 |
|
377 |
-
#: includes/CMB2_Base.php:
|
378 |
msgid ""
|
379 |
"%1$s was called with a parameter that is <strong>deprecated</strong> since "
|
380 |
"version %2$s with no alternative available."
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: includes/CMB2_Base.php:
|
384 |
-
#: includes/types/CMB2_Type_Base.php:149
|
385 |
msgid "Invalid %1$s property: %2$s"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: includes/CMB2_Base.php:
|
389 |
msgid "Invalid %1$s method: %2$s"
|
390 |
msgstr ""
|
391 |
|
392 |
-
#: includes/CMB2_Field.php:
|
393 |
msgid "Add Group"
|
394 |
msgstr ""
|
395 |
|
396 |
-
#: includes/CMB2_Field.php:
|
397 |
msgid "Remove Group"
|
398 |
msgstr ""
|
399 |
|
400 |
-
#: includes/CMB2_Field.php:
|
401 |
#: tests/test-cmb-field.php:237
|
402 |
msgid "None"
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: includes/CMB2_Field.php:
|
406 |
msgid "Sorry, this field does not have a cmb_id specified."
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: includes/CMB2_Field_Display.php:432 includes/CMB2_JS.php:
|
410 |
#: includes/types/CMB2_Type_File_Base.php:78 tests/test-cmb-types-base.php:149
|
411 |
-
#: tests/test-cmb-types.php:
|
412 |
msgid "File:"
|
413 |
msgstr ""
|
414 |
|
415 |
-
#: includes/
|
|
|
|
|
|
|
|
|
416 |
msgid "Clear"
|
417 |
msgstr ""
|
418 |
|
419 |
-
#: includes/CMB2_JS.php:
|
420 |
msgid "Default"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: includes/CMB2_JS.php:
|
424 |
msgid "Select Color"
|
425 |
msgstr ""
|
426 |
|
427 |
-
#: includes/CMB2_JS.php:
|
428 |
msgid "Current Color"
|
429 |
msgstr ""
|
430 |
|
431 |
-
#: includes/CMB2_JS.php:
|
432 |
msgid "Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday"
|
433 |
msgstr ""
|
434 |
|
435 |
-
#: includes/CMB2_JS.php:
|
436 |
msgid "Su, Mo, Tu, We, Th, Fr, Sa"
|
437 |
msgstr ""
|
438 |
|
439 |
-
#: includes/CMB2_JS.php:
|
440 |
msgid "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
|
441 |
msgstr ""
|
442 |
|
443 |
-
#: includes/CMB2_JS.php:
|
444 |
msgid ""
|
445 |
"January, February, March, April, May, June, July, August, September, "
|
446 |
"October, November, December"
|
447 |
msgstr ""
|
448 |
|
449 |
-
#: includes/CMB2_JS.php:
|
450 |
msgid "Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec"
|
451 |
msgstr ""
|
452 |
|
453 |
-
#: includes/CMB2_JS.php:
|
454 |
msgid "Next"
|
455 |
msgstr ""
|
456 |
|
457 |
-
#: includes/CMB2_JS.php:
|
458 |
msgid "Prev"
|
459 |
msgstr ""
|
460 |
|
461 |
-
#: includes/CMB2_JS.php:
|
462 |
msgid "Today"
|
463 |
msgstr ""
|
464 |
|
465 |
-
#: includes/CMB2_JS.php:
|
466 |
msgid "Done"
|
467 |
msgstr ""
|
468 |
|
469 |
-
#: includes/CMB2_JS.php:
|
470 |
msgid "Choose Time"
|
471 |
msgstr ""
|
472 |
|
473 |
-
#: includes/CMB2_JS.php:
|
474 |
msgid "Time"
|
475 |
msgstr ""
|
476 |
|
477 |
-
#: includes/CMB2_JS.php:
|
478 |
msgid "Hour"
|
479 |
msgstr ""
|
480 |
|
481 |
-
#: includes/CMB2_JS.php:
|
482 |
msgid "Minute"
|
483 |
msgstr ""
|
484 |
|
485 |
-
#: includes/CMB2_JS.php:
|
486 |
msgid "Second"
|
487 |
msgstr ""
|
488 |
|
489 |
-
#: includes/CMB2_JS.php:
|
490 |
msgid "Now"
|
491 |
msgstr ""
|
492 |
|
493 |
-
#: includes/CMB2_JS.php:
|
494 |
msgid "Use this file"
|
495 |
msgstr ""
|
496 |
|
497 |
-
#: includes/CMB2_JS.php:
|
498 |
msgid "Use these files"
|
499 |
msgstr ""
|
500 |
|
501 |
-
#: includes/CMB2_JS.php:
|
502 |
msgid "Remove Image"
|
503 |
msgstr ""
|
504 |
|
505 |
-
#: includes/CMB2_JS.php:
|
506 |
#: includes/types/CMB2_Type_File_Base.php:83 tests/test-cmb-types-base.php:149
|
507 |
#: tests/test-cmb-types.php:47 tests/test-cmb-types.php:55
|
508 |
-
#: tests/test-cmb-types.php:
|
509 |
msgid "Remove"
|
510 |
msgstr ""
|
511 |
|
512 |
-
#: includes/CMB2_JS.php:
|
513 |
-
#: tests/test-cmb-types-base.php:149 tests/test-cmb-types.php:
|
514 |
msgid "Download"
|
515 |
msgstr ""
|
516 |
|
517 |
-
#: includes/CMB2_JS.php:
|
518 |
msgid "Select / Deselect All"
|
519 |
msgstr ""
|
520 |
|
521 |
-
#: includes/CMB2_Options_Hookup.php:
|
522 |
-
msgid "
|
523 |
msgstr ""
|
524 |
|
525 |
-
#: includes/CMB2_Options_Hookup.php:
|
526 |
-
msgid "
|
527 |
msgstr ""
|
528 |
|
529 |
#: includes/CMB2_Types.php:231
|
@@ -539,17 +547,17 @@ msgstr ""
|
|
539 |
msgid "Remove Row"
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: includes/CMB2_hookup.php:
|
543 |
msgid ""
|
544 |
"Term Metadata is a WordPress 4.4+ feature. Please upgrade your WordPress "
|
545 |
"install."
|
546 |
msgstr ""
|
547 |
|
548 |
-
#: includes/CMB2_hookup.php:
|
549 |
msgid "Term metaboxes configuration requires a \"taxonomies\" parameter."
|
550 |
msgstr ""
|
551 |
|
552 |
-
#: includes/CMB2_hookup.php:
|
553 |
msgid "Toggle panel: %s"
|
554 |
msgstr ""
|
555 |
|
@@ -638,50 +646,51 @@ msgstr ""
|
|
638 |
msgid "Value Error for %s"
|
639 |
msgstr ""
|
640 |
|
641 |
-
#: includes/shim/WP_REST_Controller.php:
|
642 |
-
|
|
|
643 |
msgstr ""
|
644 |
|
645 |
-
#: includes/shim/WP_REST_Controller.php:
|
646 |
-
#: includes/shim/WP_REST_Controller.php:
|
647 |
-
#: includes/shim/WP_REST_Controller.php:
|
648 |
-
#: includes/shim/WP_REST_Controller.php:
|
649 |
-
#: includes/shim/WP_REST_Controller.php:
|
650 |
-
#: includes/shim/WP_REST_Controller.php:
|
651 |
-
#: includes/shim/WP_REST_Controller.php:
|
652 |
-
#: includes/shim/WP_REST_Controller.php:
|
653 |
-
#: includes/shim/WP_REST_Controller.php:
|
654 |
-
#: includes/shim/WP_REST_Controller.php:
|
655 |
-
#: includes/shim/WP_REST_Controller.php:
|
656 |
-
#: includes/shim/WP_REST_Controller.php:
|
657 |
-
msgid "Method '%s' not implemented. Must be
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: includes/shim/WP_REST_Controller.php:
|
661 |
msgid "Current page of the collection."
|
662 |
msgstr ""
|
663 |
|
664 |
-
#: includes/shim/WP_REST_Controller.php:
|
665 |
msgid "Maximum number of items to be returned in result set."
|
666 |
msgstr ""
|
667 |
|
668 |
-
#: includes/shim/WP_REST_Controller.php:
|
669 |
msgid "Limit results to those matching a string."
|
670 |
msgstr ""
|
671 |
|
672 |
-
#: includes/shim/WP_REST_Controller.php:
|
673 |
msgid ""
|
674 |
"Scope under which the request is made; determines fields present in "
|
675 |
"response."
|
676 |
msgstr ""
|
677 |
|
678 |
-
#: includes/types/CMB2_Type_File.php:76 tests/test-cmb-types.php:
|
679 |
-
#: tests/test-cmb-types.php:
|
680 |
msgid "Add or Upload File"
|
681 |
msgstr ""
|
682 |
|
683 |
-
#: includes/types/CMB2_Type_File_List.php:41 tests/test-cmb-types.php:
|
684 |
-
#: tests/test-cmb-types.php:
|
685 |
msgid "Add or Upload Files"
|
686 |
msgstr ""
|
687 |
|
@@ -711,12 +720,12 @@ msgstr ""
|
|
711 |
msgid "https://cmb2.io"
|
712 |
msgstr ""
|
713 |
|
714 |
-
#: includes/CMB2_JS.php:
|
715 |
msgctxt "Valid formatDate string for jquery-ui datepicker"
|
716 |
msgid "mm/dd/yy"
|
717 |
msgstr ""
|
718 |
|
719 |
-
#: includes/CMB2_JS.php:
|
720 |
msgctxt ""
|
721 |
"Valid formatting string, as per "
|
722 |
"http://trentrichardson.com/examples/timepicker/"
|
2 |
# This file is distributed under the same license as the CMB2 package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: CMB2 2.3.0\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/cmb2\n"
|
7 |
+
"POT-Creation-Date: 2017-11-27 20:48:19+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2017-11-27 20:48+300\n"
|
12 |
"Last-Translator: CMB2 Team hello@cmb2.io\n"
|
13 |
"Language-Team: CMB2 Team hello@cmb2.io\n"
|
14 |
"X-Generator: grunt-wp-i18n 0.4.9\n"
|
28 |
msgid "Test Metabox"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: example-functions.php:130 example-functions.php:459
|
32 |
msgid "Test Text"
|
33 |
msgstr ""
|
34 |
|
38 |
#: example-functions.php:194 example-functions.php:202
|
39 |
#: example-functions.php:217 example-functions.php:225
|
40 |
#: example-functions.php:233 example-functions.php:250
|
41 |
+
#: example-functions.php:259 example-functions.php:275
|
42 |
+
#: example-functions.php:282 example-functions.php:289
|
43 |
+
#: example-functions.php:303 example-functions.php:316
|
44 |
+
#: example-functions.php:329 example-functions.php:341
|
45 |
+
#: example-functions.php:350 example-functions.php:358
|
46 |
+
#: example-functions.php:367 example-functions.php:374
|
47 |
+
#: example-functions.php:388 example-functions.php:460
|
48 |
+
#: example-functions.php:551 example-functions.php:559
|
49 |
+
#: example-functions.php:566 example-functions.php:573
|
50 |
+
#: example-functions.php:580 example-functions.php:587
|
51 |
+
#: example-functions.php:594 example-functions.php:621
|
52 |
+
#: example-functions.php:629 example-functions.php:636
|
53 |
+
#: example-functions.php:682 tests/test-cmb-field.php:275
|
54 |
msgid "field description (optional)"
|
55 |
msgstr ""
|
56 |
|
110 |
msgid "Test Color Picker"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: example-functions.php:274
|
114 |
msgid "Test Text Area"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: example-functions.php:281
|
118 |
msgid "Test Text Area Small"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: example-functions.php:288
|
122 |
msgid "Test Text Area for Code"
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: example-functions.php:295
|
126 |
msgid "Test Title Weeeee"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: example-functions.php:296
|
130 |
msgid "This is a title description"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: example-functions.php:302
|
134 |
msgid "Test Select"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: example-functions.php:308 example-functions.php:321
|
138 |
+
#: example-functions.php:333
|
139 |
msgid "Option One"
|
140 |
msgstr ""
|
141 |
|
142 |
+
#: example-functions.php:309 example-functions.php:322
|
143 |
+
#: example-functions.php:334
|
144 |
msgid "Option Two"
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: example-functions.php:310 example-functions.php:323
|
148 |
+
#: example-functions.php:335
|
149 |
msgid "Option Three"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: example-functions.php:315
|
153 |
msgid "Test Radio inline"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: example-functions.php:328
|
157 |
msgid "Test Radio"
|
158 |
msgstr ""
|
159 |
|
160 |
+
#: example-functions.php:340
|
161 |
msgid "Test Taxonomy Radio"
|
162 |
msgstr ""
|
163 |
|
164 |
+
#: example-functions.php:349
|
165 |
msgid "Test Taxonomy Select"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: example-functions.php:357
|
169 |
msgid "Test Taxonomy Multi Checkbox"
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: example-functions.php:366
|
173 |
msgid "Test Checkbox"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: example-functions.php:373 tests/test-cmb-field.php:274
|
177 |
msgid "Test Multi Checkbox"
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: example-functions.php:379 tests/test-cmb-field.php:280
|
181 |
msgid "Check One"
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: example-functions.php:380 tests/test-cmb-field.php:281
|
185 |
msgid "Check Two"
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: example-functions.php:381 tests/test-cmb-field.php:282
|
189 |
msgid "Check Three"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: example-functions.php:387
|
193 |
msgid "Test wysiwyg"
|
194 |
msgstr ""
|
195 |
|
196 |
+
#: example-functions.php:397
|
197 |
msgid "Test Image"
|
198 |
msgstr ""
|
199 |
|
200 |
+
#: example-functions.php:398
|
201 |
msgid "Upload an image or enter a URL."
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: example-functions.php:404
|
205 |
msgid "Multiple Files"
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: example-functions.php:405
|
209 |
msgid "Upload or add multiple images/attachments."
|
210 |
msgstr ""
|
211 |
|
212 |
+
#: example-functions.php:412
|
213 |
msgid "oEmbed"
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: example-functions.php:415
|
217 |
#. translators: %s: link to codex.wordpress.org/Embeds
|
218 |
msgid "Enter a youtube, twitter, or instagram URL. Supports services listed at %s."
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: example-functions.php:448
|
222 |
msgid "About Page Metabox"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: example-functions.php:479
|
226 |
msgid "Repeating Field Group"
|
227 |
msgstr ""
|
228 |
|
229 |
+
#: example-functions.php:487
|
230 |
msgid "Generates reusable form entries"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: example-functions.php:489
|
234 |
msgid "Entry {#}"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: example-functions.php:490
|
238 |
msgid "Add Another Entry"
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: example-functions.php:491
|
242 |
msgid "Remove Entry"
|
243 |
msgstr ""
|
244 |
|
245 |
+
#: example-functions.php:504
|
246 |
msgid "Entry Title"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: example-functions.php:511
|
250 |
msgid "Description"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: example-functions.php:512
|
254 |
msgid "Write a short description for this entry"
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: example-functions.php:518
|
258 |
msgid "Entry Image"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: example-functions.php:524
|
262 |
msgid "Image Caption"
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: example-functions.php:543
|
266 |
msgid "User Profile Metabox"
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: example-functions.php:550 example-functions.php:620
|
270 |
msgid "Extra Info"
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: example-functions.php:558
|
274 |
msgid "Avatar"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: example-functions.php:565
|
278 |
msgid "Facebook URL"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: example-functions.php:572
|
282 |
msgid "Twitter URL"
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: example-functions.php:579
|
286 |
msgid "Google+ URL"
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: example-functions.php:586
|
290 |
msgid "Linkedin URL"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: example-functions.php:593
|
294 |
msgid "User Field"
|
295 |
msgstr ""
|
296 |
|
297 |
+
#: example-functions.php:613
|
298 |
msgid "Category Metabox"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: example-functions.php:628
|
302 |
msgid "Term Image"
|
303 |
msgstr ""
|
304 |
|
305 |
+
#: example-functions.php:635
|
306 |
msgid "Arbitrary Term Field"
|
307 |
msgstr ""
|
308 |
|
309 |
+
#: example-functions.php:654
|
310 |
msgid "Theme Options"
|
311 |
msgstr ""
|
312 |
|
313 |
+
#: example-functions.php:681
|
314 |
msgid "Site Background Color"
|
315 |
msgstr ""
|
316 |
|
317 |
+
#: example-functions.php:718
|
318 |
+
msgid "%s — Updated!"
|
319 |
+
msgstr ""
|
320 |
+
|
321 |
+
#: example-functions.php:752
|
322 |
msgid "REST Test Box"
|
323 |
msgstr ""
|
324 |
|
325 |
+
#: example-functions.php:761
|
326 |
msgid "REST Test Text"
|
327 |
msgstr ""
|
328 |
|
329 |
+
#: example-functions.php:762
|
330 |
msgid "Will show in the REST API for this box and for pages."
|
331 |
msgstr ""
|
332 |
|
333 |
+
#: example-functions.php:768
|
334 |
msgid "REST Editable Test Text"
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: example-functions.php:769
|
338 |
msgid "Will show in REST API \"editable\" contexts only (`POST` requests)."
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: includes/CMB2.php:176
|
342 |
msgid "Metabox configuration is required to have an ID parameter."
|
343 |
msgstr ""
|
344 |
|
345 |
+
#: includes/CMB2.php:578
|
346 |
msgid "Click to toggle"
|
347 |
msgstr ""
|
348 |
|
350 |
msgid "Please Try Again"
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: includes/CMB2_Ajax.php:181 tests/cmb-tests-base.php:50
|
354 |
msgid "Remove Embed"
|
355 |
msgstr ""
|
356 |
|
357 |
#: includes/CMB2_Ajax.php:189 includes/helper-functions.php:105
|
358 |
+
#: tests/cmb-tests-base.php:68 tests/test-cmb-types-display.php:208
|
359 |
#. translators: 1: results for. 2: link to codex.wordpress.org/Embeds
|
360 |
msgid "No oEmbed Results Found for %1$s. View more info at %2$s."
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: includes/CMB2_Base.php:422
|
364 |
msgid ""
|
365 |
"The \"%1$s\" field parameter has been deprecated in favor of the \"%1$s\" "
|
366 |
"parameter."
|
367 |
msgstr ""
|
368 |
|
369 |
+
#: includes/CMB2_Base.php:426
|
370 |
msgid ""
|
371 |
"Using the \"%1$s\" field parameter as a callback has been deprecated in "
|
372 |
"favor of the \"%1$s\" parameter."
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: includes/CMB2_Base.php:456
|
376 |
msgid ""
|
377 |
"%1$s was called with a parameter that is <strong>deprecated</strong> since "
|
378 |
"version %2$s! %3$s"
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: includes/CMB2_Base.php:458
|
382 |
msgid ""
|
383 |
"%1$s was called with a parameter that is <strong>deprecated</strong> since "
|
384 |
"version %2$s with no alternative available."
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: includes/CMB2_Base.php:491 includes/CMB2_Hookup_Base.php:100
|
388 |
+
#: includes/CMB2_Options_Hookup.php:286 includes/types/CMB2_Type_Base.php:149
|
389 |
msgid "Invalid %1$s property: %2$s"
|
390 |
msgstr ""
|
391 |
|
392 |
+
#: includes/CMB2_Base.php:506 includes/types/CMB2_Type_Base.php:133
|
393 |
msgid "Invalid %1$s method: %2$s"
|
394 |
msgstr ""
|
395 |
|
396 |
+
#: includes/CMB2_Field.php:1211
|
397 |
msgid "Add Group"
|
398 |
msgstr ""
|
399 |
|
400 |
+
#: includes/CMB2_Field.php:1212
|
401 |
msgid "Remove Group"
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: includes/CMB2_Field.php:1243 includes/CMB2_Field.php:1247
|
405 |
#: tests/test-cmb-field.php:237
|
406 |
msgid "None"
|
407 |
msgstr ""
|
408 |
|
409 |
+
#: includes/CMB2_Field.php:1358
|
410 |
msgid "Sorry, this field does not have a cmb_id specified."
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: includes/CMB2_Field_Display.php:432 includes/CMB2_JS.php:204
|
414 |
#: includes/types/CMB2_Type_File_Base.php:78 tests/test-cmb-types-base.php:149
|
415 |
+
#: tests/test-cmb-types.php:884
|
416 |
msgid "File:"
|
417 |
msgstr ""
|
418 |
|
419 |
+
#: includes/CMB2_Hookup_Base.php:42
|
420 |
+
msgid "%1$s should be implemented by the extended class."
|
421 |
+
msgstr ""
|
422 |
+
|
423 |
+
#: includes/CMB2_JS.php:143 includes/CMB2_JS.php:184
|
424 |
msgid "Clear"
|
425 |
msgstr ""
|
426 |
|
427 |
+
#: includes/CMB2_JS.php:144
|
428 |
msgid "Default"
|
429 |
msgstr ""
|
430 |
|
431 |
+
#: includes/CMB2_JS.php:145
|
432 |
msgid "Select Color"
|
433 |
msgstr ""
|
434 |
|
435 |
+
#: includes/CMB2_JS.php:146
|
436 |
msgid "Current Color"
|
437 |
msgstr ""
|
438 |
|
439 |
+
#: includes/CMB2_JS.php:175
|
440 |
msgid "Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday"
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: includes/CMB2_JS.php:176
|
444 |
msgid "Su, Mo, Tu, We, Th, Fr, Sa"
|
445 |
msgstr ""
|
446 |
|
447 |
+
#: includes/CMB2_JS.php:177
|
448 |
msgid "Sun, Mon, Tue, Wed, Thu, Fri, Sat"
|
449 |
msgstr ""
|
450 |
|
451 |
+
#: includes/CMB2_JS.php:178
|
452 |
msgid ""
|
453 |
"January, February, March, April, May, June, July, August, September, "
|
454 |
"October, November, December"
|
455 |
msgstr ""
|
456 |
|
457 |
+
#: includes/CMB2_JS.php:179
|
458 |
msgid "Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec"
|
459 |
msgstr ""
|
460 |
|
461 |
+
#: includes/CMB2_JS.php:180
|
462 |
msgid "Next"
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: includes/CMB2_JS.php:181
|
466 |
msgid "Prev"
|
467 |
msgstr ""
|
468 |
|
469 |
+
#: includes/CMB2_JS.php:182
|
470 |
msgid "Today"
|
471 |
msgstr ""
|
472 |
|
473 |
+
#: includes/CMB2_JS.php:183 includes/CMB2_JS.php:193
|
474 |
msgid "Done"
|
475 |
msgstr ""
|
476 |
|
477 |
+
#: includes/CMB2_JS.php:187
|
478 |
msgid "Choose Time"
|
479 |
msgstr ""
|
480 |
|
481 |
+
#: includes/CMB2_JS.php:188
|
482 |
msgid "Time"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: includes/CMB2_JS.php:189
|
486 |
msgid "Hour"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: includes/CMB2_JS.php:190
|
490 |
msgid "Minute"
|
491 |
msgstr ""
|
492 |
|
493 |
+
#: includes/CMB2_JS.php:191
|
494 |
msgid "Second"
|
495 |
msgstr ""
|
496 |
|
497 |
+
#: includes/CMB2_JS.php:192
|
498 |
msgid "Now"
|
499 |
msgstr ""
|
500 |
|
501 |
+
#: includes/CMB2_JS.php:200
|
502 |
msgid "Use this file"
|
503 |
msgstr ""
|
504 |
|
505 |
+
#: includes/CMB2_JS.php:201
|
506 |
msgid "Use these files"
|
507 |
msgstr ""
|
508 |
|
509 |
+
#: includes/CMB2_JS.php:202 includes/types/CMB2_Type_File_Base.php:63
|
510 |
msgid "Remove Image"
|
511 |
msgstr ""
|
512 |
|
513 |
+
#: includes/CMB2_JS.php:203 includes/CMB2_Types.php:412
|
514 |
#: includes/types/CMB2_Type_File_Base.php:83 tests/test-cmb-types-base.php:149
|
515 |
#: tests/test-cmb-types.php:47 tests/test-cmb-types.php:55
|
516 |
+
#: tests/test-cmb-types.php:884
|
517 |
msgid "Remove"
|
518 |
msgstr ""
|
519 |
|
520 |
+
#: includes/CMB2_JS.php:205 includes/types/CMB2_Type_File_Base.php:81
|
521 |
+
#: tests/test-cmb-types-base.php:149 tests/test-cmb-types.php:884
|
522 |
msgid "Download"
|
523 |
msgstr ""
|
524 |
|
525 |
+
#: includes/CMB2_JS.php:206
|
526 |
msgid "Select / Deselect All"
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: includes/CMB2_Options_Hookup.php:126
|
530 |
+
msgid "Nothing to update."
|
531 |
msgstr ""
|
532 |
|
533 |
+
#: includes/CMB2_Options_Hookup.php:130
|
534 |
+
msgid "Settings updated."
|
535 |
msgstr ""
|
536 |
|
537 |
#: includes/CMB2_Types.php:231
|
547 |
msgid "Remove Row"
|
548 |
msgstr ""
|
549 |
|
550 |
+
#: includes/CMB2_hookup.php:181
|
551 |
msgid ""
|
552 |
"Term Metadata is a WordPress 4.4+ feature. Please upgrade your WordPress "
|
553 |
"install."
|
554 |
msgstr ""
|
555 |
|
556 |
+
#: includes/CMB2_hookup.php:185
|
557 |
msgid "Term metaboxes configuration requires a \"taxonomies\" parameter."
|
558 |
msgstr ""
|
559 |
|
560 |
+
#: includes/CMB2_hookup.php:458
|
561 |
msgid "Toggle panel: %s"
|
562 |
msgstr ""
|
563 |
|
646 |
msgid "Value Error for %s"
|
647 |
msgstr ""
|
648 |
|
649 |
+
#: includes/shim/WP_REST_Controller.php:25
|
650 |
+
#. translators: %s: register_routes()
|
651 |
+
msgid "Method '%s' must be overridden."
|
652 |
msgstr ""
|
653 |
|
654 |
+
#: includes/shim/WP_REST_Controller.php:35
|
655 |
+
#: includes/shim/WP_REST_Controller.php:47
|
656 |
+
#: includes/shim/WP_REST_Controller.php:59
|
657 |
+
#: includes/shim/WP_REST_Controller.php:71
|
658 |
+
#: includes/shim/WP_REST_Controller.php:83
|
659 |
+
#: includes/shim/WP_REST_Controller.php:95
|
660 |
+
#: includes/shim/WP_REST_Controller.php:107
|
661 |
+
#: includes/shim/WP_REST_Controller.php:119
|
662 |
+
#: includes/shim/WP_REST_Controller.php:131
|
663 |
+
#: includes/shim/WP_REST_Controller.php:143
|
664 |
+
#: includes/shim/WP_REST_Controller.php:155
|
665 |
+
#: includes/shim/WP_REST_Controller.php:168
|
666 |
+
msgid "Method '%s' not implemented. Must be overridden in subclass."
|
667 |
msgstr ""
|
668 |
|
669 |
+
#: includes/shim/WP_REST_Controller.php:273
|
670 |
msgid "Current page of the collection."
|
671 |
msgstr ""
|
672 |
|
673 |
+
#: includes/shim/WP_REST_Controller.php:281
|
674 |
msgid "Maximum number of items to be returned in result set."
|
675 |
msgstr ""
|
676 |
|
677 |
+
#: includes/shim/WP_REST_Controller.php:290
|
678 |
msgid "Limit results to those matching a string."
|
679 |
msgstr ""
|
680 |
|
681 |
+
#: includes/shim/WP_REST_Controller.php:308
|
682 |
msgid ""
|
683 |
"Scope under which the request is made; determines fields present in "
|
684 |
"response."
|
685 |
msgstr ""
|
686 |
|
687 |
+
#: includes/types/CMB2_Type_File.php:76 tests/test-cmb-types.php:860
|
688 |
+
#: tests/test-cmb-types.php:884
|
689 |
msgid "Add or Upload File"
|
690 |
msgstr ""
|
691 |
|
692 |
+
#: includes/types/CMB2_Type_File_List.php:41 tests/test-cmb-types.php:809
|
693 |
+
#: tests/test-cmb-types.php:840
|
694 |
msgid "Add or Upload Files"
|
695 |
msgstr ""
|
696 |
|
720 |
msgid "https://cmb2.io"
|
721 |
msgstr ""
|
722 |
|
723 |
+
#: includes/CMB2_JS.php:174
|
724 |
msgctxt "Valid formatDate string for jquery-ui datepicker"
|
725 |
msgid "mm/dd/yy"
|
726 |
msgstr ""
|
727 |
|
728 |
+
#: includes/CMB2_JS.php:194
|
729 |
msgctxt ""
|
730 |
"Valid formatting string, as per "
|
731 |
"http://trentrichardson.com/examples/timepicker/"
|
vendor/webdevstudios/cmb2/readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: jtsternberg, webdevstudios, zao, tw2113
|
|
3 |
Donate link: https://cmb2.io
|
4 |
Tags: metaboxes, forms, fields, options, settings
|
5 |
Requires at least: 3.8.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -49,7 +49,6 @@ A complete list of all our awesome contributors found here: [github.com/CMB2/CMB
|
|
49 |
* [CMB2 Field Type: Post Search Ajax](https://github.com/alexis-magina/cmb2-field-post-search-ajax) by [alexis-magina](https://github.com/alexis-magina): `post_search_ajax` Attach posts to each other. Same approach as [CMB2 Attached Posts Field](https://github.com/coreymcollins/cmb-attached-posts) but with Ajax request, multiple/single option, and different UI.
|
50 |
* [CMB2 Field Type: CMB2 Post Search field](https://github.com/CMB2/CMB2-Post-Search-field): `post_search_text` adds a post-search dialog for searching/attaching other post IDs.
|
51 |
* [CMB2 Field Type: CMB2 User Search field](https://github.com/Mte90/CMB2-User-Search-field) from [Mte90](https://github.com/Mte90): `user_search_text` adds a user-search dialog for searching/attaching other User IDs.
|
52 |
-
* [CMB2 Field Type: CMB2 RGBa Colorpicker](https://github.com/JayWood/CMB2_RGBa_Picker) from [JayWood](https://github.com/JayWood): `rgba_colorpicker ` adds a color picker that supports RGBa, (RGB with transparency (alpha) value).
|
53 |
* [CMB2 Field Type: Google Maps](https://github.com/mustardBees/cmb_field_map) from [mustardBees](https://github.com/mustardBees): Custom field type for Google Maps.
|
54 |
> The `pw_map` field stores the latitude/longitude values which you can then use to display a map in your theme.
|
55 |
|
@@ -90,6 +89,7 @@ A complete list of all our awesome contributors found here: [github.com/CMB2/CMB
|
|
90 |
* [Project Homepage](http://cmb2.io)
|
91 |
* [Github project page](https://github.com/CMB2/CMB2)
|
92 |
* [Documentation (GitHub wiki)](https://github.com/CMB2/CMB2/wiki)
|
|
|
93 |
|
94 |
**[View CHANGELOG](https://github.com/CMB2/CMB2/blob/master/CHANGELOG.md)**
|
95 |
|
@@ -121,11 +121,61 @@ FAQ's usually end up in the [github wiki](https://github.com/CMB2/CMB2/wiki).
|
|
121 |
|
122 |
== Changelog ==
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
### 2.2.5.3
|
125 |
|
126 |
#### Enhancements
|
127 |
|
128 |
-
* Update to instead initate CMB2 hookup via "cmb2_init_hookup_{$cmb_id}" hook. Allows plugins to unhook/rehook/etc.
|
129 |
|
130 |
#### Bug Fixes
|
131 |
|
@@ -756,76 +806,13 @@ It is now passed a null value vs saved value. If null is returned, default sanit
|
|
756 |
|
757 |
== Upgrade Notice ==
|
758 |
|
759 |
-
### 2.
|
760 |
-
|
761 |
-
#### Enhancements
|
762 |
-
|
763 |
-
* Update to instead initate CMB2 hookup via "cmb2_init_hookup_{$cmb_id}" hook. Allows plugins to unhook/rehook/etc.
|
764 |
-
|
765 |
-
#### Bug Fixes
|
766 |
-
|
767 |
-
* Spelling/Grammar fixes. Props [@garrett-eclipse](https://github.com/garrett-eclipse) ([#1012](https://github.com/CMB2/CMB2/pull/1012)).
|
768 |
-
* Fix "PHP Strict Standards: Static function should not be abstract" notice.
|
769 |
-
* Add `CMB2_Utils::normalize_if_numeric()` to address problems when using floats as select/radio values. Fixes [#869](https://github.com/CMB2/CMB2/issues/869). See [#1013](https://github.com/CMB2/CMB2/pull/1013).
|
770 |
-
* Fix issues with apostrophes in money values. (e.g. in Swiss German the thousand separator is an apostrophe). Props [@ocean90](https://github.com/ocean90) ([#1014](https://github.com/CMB2/CMB2/issues/1014), [#1015](https://github.com/CMB2/CMB2/pull/1015)).
|
771 |
-
* Provide public access to the `CMB2_Options_Hookup::$option_key` property.
|
772 |
-
* Change the updated-settings notice query variable so that WordPress does not auto-add settings notices on top of ours.
|
773 |
-
* For settings pages, only output settings errors if WordPress does not do it by default (for sub-pages of `options-general.php`), and if the errors are not disabled via the `'disable_settings_errors'` box property.
|
774 |
-
|
775 |
-
### 2.2.5.2
|
776 |
-
|
777 |
-
#### Bug Fixes
|
778 |
-
|
779 |
-
* Fix issue in 2.2.5 with non-sortable repeatable groups not having new groups values be emptied on creation/clone.
|
780 |
-
* Fix issue in 2.2.5 with options pages not saving when parent_slug was used. Fixes [#1008](https://github.com/CMB2/CMB2/issues/1008).
|
781 |
-
|
782 |
-
### 2.2.5.1
|
783 |
-
|
784 |
-
#### Bug Fixes
|
785 |
-
|
786 |
-
* Fix issue in 2.2.5 which caused empty repeatable groups having the buttons set to have a disabled "Remove Group" button.
|
787 |
-
|
788 |
-
### 2.2.5 - 2017-08-07
|
789 |
|
790 |
#### Enhancements
|
791 |
|
792 |
-
*
|
793 |
-
*
|
794 |
-
* Improved cohesive styles for repeatable fields. Props [@anhskohbo](https://github.com/anhskohbo) ([#819](https://github.com/CMB2/CMB2/pull/819)).
|
795 |
-
* New field types, `'taxonomy_radio_hierarchical'`, and `'taxonomy_multicheck_hierarchical'`, for displaying taxonomy options in a hierarchical layout. Props to [eriktelepovsky](https://github.com/eriktelepovsky) for the [working code](https://github.com/CMB2/CMB2/issues/640#issuecomment-246938690). ([#640](https://github.com/CMB2/CMB2/issues/640))
|
796 |
-
* Removing last repeat item row (and repeat group row) is now somewhat allowed in that the "remove" button simply resets the last item to empty. Fixes [#312](https://github.com/CMB2/CMB2/issues/312).
|
797 |
-
* Enable the additional media library modal filters. Fixes [#873](https://github.com/CMB2/CMB2/issues/873).
|
798 |
-
* Sanitize the attributes added via the `cmb2_group_wrap_attributes` filter.
|
799 |
-
* New field parameter, `'query_args'`, which can be used by the `'taxonomy_*'` fields. Provides ability to override the arguments passed to `get_terms()`.
|
800 |
-
* The `cmb2_can_save` filter now passes the CMB2 object as the 2nd parameter. Props [@Arno33](https://github.com/Arno33) ([#994](https://github.com/CMB2/CMB2/pull/994)).
|
801 |
-
* Update the file field type to work properly within a custom field context by allowing the passing of override arguments to `CMB2_Types::file()` method.
|
802 |
-
* Many WordPress Code Standards improvements/updates. Props [@bradp](https://github.com/bradp)
|
803 |
-
* Include absolute paths when including the core php files. Props [@anhskohbo](https://github.com/anhskohbo) ([#998](https://github.com/CMB2/CMB2/pull/998)).
|
804 |
-
* Change language throught to reflect CMB2's move to its own organization.
|
805 |
-
* Break `CMB2_Field:options()` method apart to allow re-setting options from field params. Related: [reaktivstudios/cmb2-flexible-content/pull/8](https://github.com/reaktivstudios/cmb2-flexible-content/pull/8).
|
806 |
-
* New `CMB2:box_types()` method for getting the array of registered `'object_types'` for a box. Ensures the return is an array.
|
807 |
-
* Improved inline hooks documentation.
|
808 |
-
* Updated several CMB2 methods to return the CMB2 object (for method chaining). Methods include:
|
809 |
-
* `CMB2::show_form()`
|
810 |
-
* `CMB2::render_form_open()`
|
811 |
-
* `CMB2::render_form_close()`
|
812 |
-
* `CMB2::render_group_row()`
|
813 |
-
* `CMB2::render_hidden_fields()`
|
814 |
-
* `CMB2::save_fields()`
|
815 |
-
* `CMB2::process_fields()`
|
816 |
-
* `CMB2::process_field()`
|
817 |
-
* `CMB2::pre_process()`
|
818 |
-
* `CMB2::after_save()`
|
819 |
-
* `CMB2::add_fields()`
|
820 |
|
821 |
#### Bug Fixes
|
822 |
|
823 |
-
* Update for `
|
824 |
-
* Fix and standardize inconsistent button classes. Update all buttons to use the `.button-secondary` class instead of the `.button` class. This alleviates some front-end issues for themes which target the `.button` class. _This is a backwards-compatibility break._ If your theme or plugin targets the `.button` class within CMB2, you will need to update to use `.button-secondary`.
|
825 |
-
* Correct the before/after form hooks order. For more details see ([#954](https://github.com/CMB2/CMB2/pull/954)).
|
826 |
-
* Fix regression with custom fields not properly repeating. Props [@desrosj](https://github.com/desrosj) ([#969](https://github.com/CMB2/CMB2/pull/969)). Fixes [#901](https://github.com/CMB2/CMB2/issues/901).
|
827 |
-
* Fix "Illegal string offset" notices when `CMB2_Option` methods are called when the option value is empty, as well as additional unit tests for the `CMB2_Option` class. Props [@anhskohbo](https://github.com/anhskohbo) ([#993](https://github.com/CMB2/CMB2/pull/993)).
|
828 |
-
* Fix bug where select fields or checkbox fields occasionally would retain previous group's value when adding new groups. Fixes [#853](https://github.com/CMB2/CMB2/issues/853).
|
829 |
-
* Fix JS to prevent meta keys with `|` or `/` from breaking file fields. Props [@lipemat](https://github.com/lipemat) ([#1003](https://github.com/CMB2/CMB2/pull/1003)).
|
830 |
-
* Fix jQuery Migrate's `jQuery.fn.attr('value', val) no longer sets properties` warning.
|
831 |
-
* Fix issue with CMB2 being too aggressive with stripping slashes from values. Fixes [#981](https://github.com/CMB2/CMB2/issues/981).
|
3 |
Donate link: https://cmb2.io
|
4 |
Tags: metaboxes, forms, fields, options, settings
|
5 |
Requires at least: 3.8.0
|
6 |
+
Tested up to: 4.9.1
|
7 |
+
Stable tag: 2.3.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
49 |
* [CMB2 Field Type: Post Search Ajax](https://github.com/alexis-magina/cmb2-field-post-search-ajax) by [alexis-magina](https://github.com/alexis-magina): `post_search_ajax` Attach posts to each other. Same approach as [CMB2 Attached Posts Field](https://github.com/coreymcollins/cmb-attached-posts) but with Ajax request, multiple/single option, and different UI.
|
50 |
* [CMB2 Field Type: CMB2 Post Search field](https://github.com/CMB2/CMB2-Post-Search-field): `post_search_text` adds a post-search dialog for searching/attaching other post IDs.
|
51 |
* [CMB2 Field Type: CMB2 User Search field](https://github.com/Mte90/CMB2-User-Search-field) from [Mte90](https://github.com/Mte90): `user_search_text` adds a user-search dialog for searching/attaching other User IDs.
|
|
|
52 |
* [CMB2 Field Type: Google Maps](https://github.com/mustardBees/cmb_field_map) from [mustardBees](https://github.com/mustardBees): Custom field type for Google Maps.
|
53 |
> The `pw_map` field stores the latitude/longitude values which you can then use to display a map in your theme.
|
54 |
|
89 |
* [Project Homepage](http://cmb2.io)
|
90 |
* [Github project page](https://github.com/CMB2/CMB2)
|
91 |
* [Documentation (GitHub wiki)](https://github.com/CMB2/CMB2/wiki)
|
92 |
+
* [Snippet Library](https://github.com/CMB2/CMB2-Snippet-Library/)
|
93 |
|
94 |
**[View CHANGELOG](https://github.com/CMB2/CMB2/blob/master/CHANGELOG.md)**
|
95 |
|
121 |
|
122 |
== Changelog ==
|
123 |
|
124 |
+
### 2.3.0
|
125 |
+
|
126 |
+
#### Enhancements
|
127 |
+
|
128 |
+
* Updated Italian translation. Props [@Mte90](https://github.com/Mte90) ([#1067](https://github.com/CMB2/CMB2/issues/1067)).
|
129 |
+
* Starting with this release, we are fully switching to the more communicative and standard [Semantic Versioning](https://semver.org/). ([#1061](https://github.com/CMB2/CMB2/issues/1061)).
|
130 |
+
|
131 |
+
#### Bug Fixes
|
132 |
+
|
133 |
+
* Update for compatibility with PHP 7.2 (e.g. fixes `Fatal error: Declaration of CMB2_Type_Colorpicker::render() must be compatible with CMB2_Type_Text::render($args = Array)...`). ([#1070](https://github.com/CMB2/CMB2/issues/1070), [#1074](https://github.com/CMB2/CMB2/issues/1074), [#1075](https://github.com/CMB2/CMB2/issues/1075)).
|
134 |
+
|
135 |
+
### 2.2.6.2
|
136 |
+
|
137 |
+
#### Bug Fixes
|
138 |
+
|
139 |
+
* Fix another issue (introduced in 2.2.6) with repeatable fields not being able to save additional fields. Props [@anhskohbo](https://github.com/anhskohbo) ([#1059](https://github.com/CMB2/CMB2/pull/1059), [#1058](https://github.com/CMB2/CMB2/issues/1058)).
|
140 |
+
* Only dequeue `jw-cmb2-rgba-picker-js` script (and enqueue our `wp-color-picker-alpha`) if it is actually found.
|
141 |
+
|
142 |
+
### 2.2.6.1
|
143 |
+
|
144 |
+
#### Enhancements
|
145 |
+
* Merge in the [CMB2 RGBa Colorpicker](https://github.com/JayWood/CMB2_RGBa_Picker) field type functionality to the CMB2 colopicker field type. Adds the ability to add an alpha (transparency) slider to the colorpicker by adding the `'alpha'` option [to the field options array](https://github.com/CMB2/CMB2/blob/6fce2e7ba8f41345a23bc2064e30433bdb11c16c/example-functions.php#L263-L265). Thank you to [JayWood](https://github.com/JayWood) for his work on his custom field type.
|
146 |
+
|
147 |
+
#### Bug Fixes
|
148 |
+
|
149 |
+
* Fix issue (introduced in 2.2.6) with complex fields set as repeatable not being able to save additional fields. Fixes [#1054](https://github.com/CMB2/CMB2/issues/1054).
|
150 |
+
|
151 |
+
### 2.2.6
|
152 |
+
|
153 |
+
#### Enhancements
|
154 |
+
|
155 |
+
* Move the fetching of group label and description to _after_ calling `'before_group'` parameter.
|
156 |
+
* Allow using the `'render_row_cb'` param for group fields. Fixes [#1041](https://github.com/CMB2/CMB2/issues/1041).
|
157 |
+
* Allow resetting cached CMB2 field objects (new 3rd parameter to `CMB2::get_field()`).
|
158 |
+
* Allow resetting cached callback results (`CMB2_Base::unset_param_callback_cache()`).
|
159 |
+
* Persian translation provided by [@reza-irdev](https://github.com/reza-irdev) ([#1046](https://github.com/CMB2/CMB2/issues/1046)).
|
160 |
+
* Added a `'message_cb'` box property, which allows defining a custom callback for adding options-save messages on `options-page` boxes.
|
161 |
+
* Updated many the oembed-related unit tests to more reliably test the relevant parts, and not so much the actual success of the WordPress functions.
|
162 |
+
* Updated travis config to Install PHP5.2/5.3 on trusty for unit tests. Stolen from [gutenberg/pull/2049](https://github.com/WordPress/gutenberg/pull/2049). Intended to compensate for Travis removing support for PHP 5.2/5.3.
|
163 |
+
|
164 |
+
#### Bug Fixes
|
165 |
+
|
166 |
+
* Ensure `'file'` field type ID is removed from the database if the `'file'` field type's value is empty ([Support thread](https://wordpress.org/support/topic/bug-field-of-type-file-does-not-delete-postmeta-properly/)).
|
167 |
+
* Fix JS errors when `user_can_richedit()` is false ("Disable the visual editor when writing" user option is checked, or various unsupported browsers). See [#1031](https://github.com/CMB2/CMB2/pull/1031).
|
168 |
+
* Fix issue where some European date formats (e.g. `F j, Y`) would not properly translate into jQuery UI date formats. [Support thread](https://wordpress.org/support/topic/using-wordpresss-date-time-format-settings)
|
169 |
+
* Fix repeating fields within repeating groups having the values/indexes incorrectly associated. Props [@daggerhart](https://github.com/daggerhart) ([#1047](https://github.com/CMB2/CMB2/pull/1047)). Fixes [#1035](https://github.com/CMB2/CMB2/issues/1035), [#348](https://github.com/CMB2/CMB2/issues/348).
|
170 |
+
* Fixed multiple update messages on settings pages when CMB2 option pages were registered ([#1049](https://github.com/CMB2/CMB2/issues/1049)).
|
171 |
+
* Fix issue where using multiple oembed fields could cause incorrectly cached arguments to be used.
|
172 |
+
* Fix bug where `'select_all_button' => false` was not working for `'taxonomy_multicheck'` field type ([#1005](https://github.com/CMB2/CMB2/issues/1005)).
|
173 |
+
|
174 |
### 2.2.5.3
|
175 |
|
176 |
#### Enhancements
|
177 |
|
178 |
+
* Update to instead initate CMB2 hookup via `"cmb2_init_hookup_{$cmb_id}"` hook. Allows plugins to unhook/rehook/etc.
|
179 |
|
180 |
#### Bug Fixes
|
181 |
|
806 |
|
807 |
== Upgrade Notice ==
|
808 |
|
809 |
+
### 2.3.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
810 |
|
811 |
#### Enhancements
|
812 |
|
813 |
+
* Updated Italian translation. Props [@Mte90](https://github.com/Mte90) ([#1067](https://github.com/CMB2/CMB2/issues/1067)).
|
814 |
+
* Starting with this release, we are fully switching to the more communicative and standard [Semantic Versioning](https://semver.org/). ([#1061](https://github.com/CMB2/CMB2/issues/1061)).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
815 |
|
816 |
#### Bug Fixes
|
817 |
|
818 |
+
* Update for compatibility with PHP 7.2 (e.g. fixes `Fatal error: Declaration of CMB2_Type_Colorpicker::render() must be compatible with CMB2_Type_Text::render($args = Array)...`). ([#1070](https://github.com/CMB2/CMB2/issues/1070), [#1074](https://github.com/CMB2/CMB2/issues/1074), [#1075](https://github.com/CMB2/CMB2/issues/1075)).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|