Toolset Types – Custom Post Types, Custom Fields and Taxonomies - Version 1.8

Version Description

  • Release date: 2015-08-17
  • Added the ability to choose Custom Field as a column for Posts and Pages.
  • Added the ability to select the Feature image in the child Post table.
  • Added the ability to turn off the standard WordPress Custom Fields metabox.
  • Added default value to a Custom Field.
  • Added an "Edit" button for the parent post on the child Post editing page.
  • Added an error message for Custom Fields in children entries.
  • Added a new filter wpcf_config_options_(type).
  • Added "ico" file type as a proper image file.
  • Added "parent" keyword into the list of reserved words for Custom Post Type or Custom Taxonomy name.
  • Added "select2" options script in parent Post field.
  • Changed "View template" string to "Content Template" in order to avoid inconsistencies.
  • Added a check for Custom Fields in order to display only active ones in lists.
  • Fixed a problem about the visibility of Types button in Post edit screen editor, when there are User Fields groups but no Custom Fields groups available.
  • Fixed a problem about the Module Manager box.
  • Fixed a problem with the usage of "dashboard_glance_items" filter.
  • Fixed a problem about alternative text and title of repetitive image fields.
  • Fixed a problem about lost translation when a parent Post was saved (https://wpml.org/forums/topic/custom-post-type-relationships/).
  • Fixed a conflict of validation field with CRED plugin.
  • Removed "Styling Editor" section in Custom Fields groups and User Fields groups edit screen. In order to enable it again, you can define TYPES_USE_STYLING_EDITOR constant in wp-config.php file.
  • Improved Module Manager box in Custom Post Type and Custom Taxonomy edit screen.
  • Moved marketing message into the "Need Help?" tab.
  • Reviewed "Add New" buttons in all edit screens for consistency.
  • Removed the "auto-import" option.
  • Turned off migration from "Advanced Custom Fields Pro", as this plugin has different data structure than "Advanced Custom Fields".
  • Updated list of Font Awesome icons.
  • Updated Skype field according to the new Skype Buttons API.
Download this release

Release Info

Developer iworks
Plugin Icon 128x128 Toolset Types – Custom Post Types, Custom Fields and Taxonomies
Version 1.8
Comparing to
See all releases

Code changes from version 1.7.11 to 1.8

Files changed (109) hide show
  1. admin.php +333 -255
  2. embedded/admin.php +53 -57
  3. embedded/bootstrap.php +25 -2
  4. embedded/classes/conditional.php +1 -14
  5. embedded/classes/editor.php +1 -2
  6. embedded/classes/field.php +13 -13
  7. embedded/classes/forms.php +1062 -968
  8. embedded/classes/helper.ajax.php +2 -2
  9. embedded/classes/loader.php +1 -2
  10. embedded/classes/relationship.php +31 -15
  11. embedded/classes/relationship/form-child.php +51 -9
  12. embedded/classes/repeater.php +2 -2
  13. embedded/classes/usermeta_field.php +1 -1
  14. embedded/classes/usermeta_repeater.php +2 -2
  15. embedded/classes/validate.php +5 -0
  16. embedded/classes/validation-cakephp.php +4 -8
  17. embedded/classes/wpviews.php +1 -1
  18. embedded/common/.gitignore +60 -0
  19. embedded/common/changelog.txt +3 -0
  20. embedded/common/classes/class-toolset-admin-bar-menu.php +47 -0
  21. embedded/common/toolset-forms/classes/class.conditional.php +2 -0
  22. embedded/common/toolset-forms/classes/class.cred.php +2 -0
  23. embedded/common/toolset-forms/classes/class.credfile.php +1 -1
  24. embedded/common/toolset-forms/classes/class.date.php +1 -1
  25. embedded/common/toolset-forms/classes/class.date.scripts.php +53 -41
  26. embedded/common/toolset-forms/classes/class.field_factory.php +6 -0
  27. embedded/common/toolset-forms/classes/class.form_factory.php +26 -1
  28. embedded/common/toolset-forms/classes/class.image.php +1 -0
  29. embedded/common/toolset-forms/classes/class.skype.php +196 -163
  30. embedded/common/toolset-forms/classes/class.types.php +3 -0
  31. embedded/common/toolset-forms/classes/class.validation.php +14 -1
  32. embedded/common/toolset-forms/classes/submit.php +65 -22
  33. embedded/common/toolset-forms/css/wpt-toolset-backend.css +57 -3
  34. embedded/common/toolset-forms/js/conditional.js +9 -0
  35. embedded/common/toolset-forms/js/date.js +1 -2
  36. embedded/common/toolset-forms/js/file-wp35.js +41 -5
  37. embedded/common/toolset-forms/js/jquery_upload/file_upload.js +52 -28
  38. embedded/common/toolset-forms/js/skype.js +134 -8
  39. embedded/common/toolset-forms/js/validation.js +12 -0
  40. embedded/common/toolset-forms/readme.txt +5 -0
  41. embedded/common/utility/css/notifications.css +6 -1
  42. embedded/common/utility/js/events-manager/event-manager.js +248 -0
  43. embedded/common/utility/js/events-manager/event-manager.min.js +5 -0
  44. embedded/common/utility/js/utils.js +166 -13
  45. embedded/common/utility/utils.php +222 -2
  46. embedded/common/visual-editor/editor-addon-generic.class.php +2 -1
  47. embedded/common/visual-editor/res/js/icl_editor_addon_plugin.js +11 -6
  48. embedded/common/visual-editor/views-editor-addon.class.php +3 -1
  49. embedded/frontend.php +93 -71
  50. embedded/functions.php +122 -25
  51. embedded/includes/ajax.php +6 -109
  52. embedded/includes/ajax/admin-footer.php +1 -1
  53. embedded/includes/ajax/admin-header.php +6 -6
  54. embedded/includes/classes/class.types.data.installer.php +8 -8
  55. embedded/includes/cred.php +1 -1
  56. embedded/includes/custom-types.php +34 -22
  57. embedded/includes/examples/google_map.php +3 -6
  58. embedded/includes/fields-post.php +50 -78
  59. embedded/includes/fields.php +50 -26
  60. embedded/includes/fields/colorpicker.php +2 -3
  61. embedded/includes/fields/date.php +1 -1
  62. embedded/includes/fields/date/js.php +2 -3
  63. embedded/includes/fields/image.php +59 -42
  64. embedded/includes/fields/url.php +2 -3
  65. embedded/includes/fields/wysiwyg.php +17 -17
  66. embedded/includes/footer-credit.php +6 -11
  67. embedded/includes/import-export.php +8 -8
  68. embedded/includes/module-manager.php +109 -45
  69. embedded/includes/post-relationship.php +156 -108
  70. embedded/includes/promo-tabs.php +18 -46
  71. embedded/includes/relationship/child-table.php +2 -5
  72. embedded/includes/usermeta-post.php +9 -7
  73. embedded/includes/usermeta.php +1 -1
  74. embedded/includes/wpml.php +7 -7
  75. embedded/locale/types-pl_PL.mo +0 -0
  76. embedded/locale/types-pl_PL.po +6598 -0
  77. embedded/locale/wp_types.pot +1886 -1440
  78. embedded/onthego-resources/onthegosystems-icons/.fontcustom-manifest.json +14 -6
  79. embedded/onthego-resources/onthegosystems-icons/css/_onthegosystems-icons.scss +10 -6
  80. embedded/onthego-resources/onthegosystems-icons/css/onthegosystems-icons.css +10 -6
  81. embedded/onthego-resources/onthegosystems-icons/fonts/onthegosystems-icons-preview.html +37 -7
  82. embedded/onthego-resources/onthegosystems-icons/fonts/{onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.eot → onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.eot} +0 -0
  83. embedded/onthego-resources/onthegosystems-icons/fonts/{onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.svg → onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.svg} +94 -76
  84. embedded/onthego-resources/onthegosystems-icons/fonts/{onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.ttf → onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.ttf} +0 -0
  85. embedded/onthego-resources/onthegosystems-icons/fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.woff +0 -0
  86. embedded/onthego-resources/onthegosystems-icons/fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.woff +0 -0
  87. embedded/onthego-resources/onthegosystems-icons/vectors/conditional-alert.svg +14 -0
  88. embedded/onthego-resources/onthegosystems-icons/vectors/conditional-if.svg +31 -0
  89. embedded/plugin.php +1 -1
  90. embedded/readme.txt +1 -1
  91. embedded/resources/css/basic.css +74 -3
  92. embedded/resources/css/post-relationship.css +17 -0
  93. embedded/resources/js/basic.js +28 -9
  94. embedded/resources/js/conditional.js +0 -144
  95. embedded/resources/js/custom-fields-form-filter.js +4 -4
  96. embedded/resources/js/post-relationship.js +171 -39
  97. embedded/usermeta-init.php +64 -42
  98. embedded/views/editor-modal-window.php +4 -6
  99. embedded/views/image.php +1 -1
  100. embedded/views/templates/child-tax-category.tpl.php +2 -2
  101. embedded/views/templates/child-tax-tag.tpl.php +3 -8
  102. embedded/views/templates/editor-modal-email.tpl.php +2 -2
  103. embedded/views/templates/editor-modal-file.tpl.php +2 -2
  104. embedded/views/templates/editor-modal-image.tpl.php +3 -4
  105. help.php +358 -174
  106. includes/ajax.php +373 -300
  107. includes/classes/class.wpcf.custom.fields.list.table.php +134 -71
  108. includes/classes/class.wpcf.custom.post.types.list.table.php +616 -517
  109. includes/classes/class.wpcf.custom.taxonomies.list.table.php +131 -93
admin.php CHANGED
@@ -5,7 +5,9 @@
5
  *
6
  *
7
  */
8
- require_once WPCF_ABSPATH . '/marketing.php';
 
 
9
  /*
10
  * This needs to be called after main 'init' hook.
11
  * Main init hook calls required Types code for frontend.
@@ -22,7 +24,7 @@ wpcf_admin_load_teasers( array('types-access.php') );
22
  if ( defined( 'DOING_AJAX' ) ) {
23
  require_once WPCF_INC_ABSPATH . '/ajax.php';
24
  }
25
- include_once WPCF_ABSPATH.'/classes/class.wpcf-marketing-messages.php';
26
  new WPCF_Types_Marketing_Messages();
27
 
28
  /**
@@ -32,6 +34,13 @@ if ( !defined('TOOLSET_EDIT_LAST' )){
32
  define( 'TOOLSET_EDIT_LAST', '_toolset_edit_last');
33
  }
34
 
 
 
 
 
 
 
 
35
  /**
36
  * admin_init hook.
37
  */
@@ -48,7 +57,7 @@ function wpcf_admin_init_hook()
48
  */
49
  function wpcf_admin_menu_hook()
50
  {
51
- $wpcf_capability = apply_filters( 'wpcf_capability', 'manage_options' );
52
 
53
  add_menu_page(
54
  __( 'Types', 'wpcf' ),
@@ -63,59 +72,40 @@ function wpcf_admin_menu_hook()
63
 
64
  // Custom Post Types
65
  $subpages['wpcf-cpt'] = array(
66
- 'menu_title' => __( 'Custom Post Types', 'wpcf' ),
67
  'function' => 'wpcf_admin_menu_summary_cpt',
 
 
68
  );
69
 
70
  // Custom Taxonomies
71
  $subpages['wpcf-ctt'] = array(
72
  'menu_title' => __( 'Custom Taxonomies', 'wpcf' ),
73
  'function' => 'wpcf_admin_menu_summary_ctt',
 
 
74
  );
75
 
76
  // Custom fields
77
  $subpages['wpcf-cf'] = array(
78
  'menu_title' => __( 'Custom Fields', 'wpcf' ),
79
  'function' => 'wpcf_admin_menu_summary',
80
- );
81
-
82
- // Custom Fields Control
83
- $subpages['wpcf-custom-fields-control'] = array(
84
- 'menu_title' => __( 'Custom Fields Control', 'wpcf' ),
85
- 'function' => 'wpcf_admin_menu_custom_fields_control',
86
  );
87
 
88
  // User Meta
89
  $subpages['wpcf-um'] = array(
90
  'menu_title' => __( 'User Fields', 'wpcf' ),
91
  'function' => 'wpcf_usermeta_summary',
92
- );
93
-
94
- // User Fields Control
95
- $subpages['wpcf-user-fields-control'] = array(
96
- 'menu_title' => __( 'User Fields Control', 'wpcf' ),
97
- 'function' => 'wpcf_admin_menu_user_fields_control',
98
- );
99
-
100
- if ( !empty($kind ) ) {
101
- }
102
-
103
- // Import/Export
104
- $subpages['wpcf-import-export'] = array(
105
- 'menu_title' => __( 'Import/Export', 'wpcf' ),
106
- 'function' => 'wpcf_admin_menu_import_export',
107
  );
108
 
109
  // Settings
110
  $subpages['wpcf-custom-settings'] = array(
111
  'menu_title' => __( 'Settings', 'wpcf' ),
112
  'function' => 'wpcf_admin_menu_settings',
113
- 'submenu' => array(
114
- 'wpcf-debug-information' => array(
115
- 'menu_title' => __( 'Debug Information', 'wpcf' ),
116
- 'function' => 'wpcf_admin_menu_debug_information',
117
- ),
118
- ),
119
  );
120
 
121
  foreach( $subpages as $menu_slug => $menu ) {
@@ -123,51 +113,186 @@ function wpcf_admin_menu_hook()
123
  }
124
 
125
  if ( isset( $_GET['page'] ) ) {
126
- switch ( $_GET['page'] ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  case 'wpcf-edit':
128
- $title = isset( $_GET['group_id'] ) ? __( 'Edit Group', 'wpcf' ) : __( 'Add New Group',
129
- 'wpcf' );
130
- $hook = add_submenu_page( 'wpcf', $title, $title,
131
- 'manage_options', 'wpcf-edit',
132
- 'wpcf_admin_menu_edit_fields' );
 
 
 
 
133
  add_action( 'load-' . $hook, 'wpcf_admin_menu_edit_fields_hook' );
134
  wpcf_admin_plugin_help( $hook, 'wpcf-edit' );
135
  break;
136
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
137
  case 'wpcf-edit-type':
138
- $title = isset( $_GET['wpcf-post-type'] ) ? __( 'Edit Custom Post Type',
139
- 'wpcf' ) : __( 'Add New Custom Post Type',
140
- 'wpcf' );
141
- $hook = add_submenu_page( 'wpcf', $title, $title,
142
- 'manage_options', 'wpcf-edit-type',
143
- 'wpcf_admin_menu_edit_type' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  add_action( 'load-' . $hook, 'wpcf_admin_menu_edit_type_hook' );
145
  wpcf_admin_plugin_help( $hook, 'wpcf-edit-type' );
146
  break;
147
 
148
  case 'wpcf-edit-tax':
149
- $title = isset( $_GET['wpcf-tax'] ) ? __( 'Edit Taxonomy',
150
- 'wpcf' ) : __( 'Add New Taxonomy', 'wpcf' );
151
- $hook = add_submenu_page( 'wpcf', $title, $title,
152
- 'manage_options', 'wpcf-edit-tax',
153
- 'wpcf_admin_menu_edit_tax' );
 
 
 
 
154
  add_action( 'load-' . $hook, 'wpcf_admin_menu_edit_tax_hook' );
155
  wpcf_admin_plugin_help( $hook, 'wpcf-edit-tax' );
156
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
157
  case 'wpcf-edit-usermeta':
158
- $title = isset( $_GET['group_id'] ) ? __( 'Edit User Fields Group', 'wpcf' ) : __( 'Add New User Fields Group',
159
- 'wpcf' );
160
- $hook = add_submenu_page( 'wpcf', $title, $title,
161
- 'manage_options', 'wpcf-edit-usermeta',
162
- 'wpcf_admin_menu_edit_user_fields' );
163
- add_action( 'load-' . $hook, 'wpcf_admin_menu_edit_user_fields_hook' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
164
  wpcf_admin_plugin_help( $hook, 'wpcf-edit-usermeta' );
165
  break;
166
  }
167
  }
168
 
169
  // Check if migration from other plugin is needed
170
- if ( class_exists( 'Acf' ) || defined( 'CPT_VERSION' ) ) {
 
 
 
171
  $hook = add_submenu_page( 'wpcf', __( 'Migration', 'wpcf' ),
172
  __( 'Migration', 'wpcf' ), 'manage_options', 'wpcf-migration',
173
  'wpcf_admin_menu_migration' );
@@ -214,11 +339,7 @@ function wpcf_admin_menu_summary_hook()
214
  */
215
  function wpcf_admin_menu_summary()
216
  {
217
- wpcf_add_admin_header(
218
- __( 'Custom Fields', 'wpcf' ),
219
- array('page'=>'wpcf-edit'),
220
- __('Add New Group', 'wpcf')
221
- );
222
  require_once WPCF_INC_ABSPATH . '/fields.php';
223
  require_once WPCF_INC_ABSPATH . '/fields-list.php';
224
  $to_display = wpcf_admin_fields_get_fields();
@@ -301,18 +422,19 @@ function wpcf_admin_menu_edit_fields_hook()
301
  */
302
  function wpcf_admin_menu_edit_fields()
303
  {
 
304
  if ( isset( $_GET['group_id'] ) ) {
305
- $title = __( 'Edit Group', 'wpcf' );
306
- } else {
307
- $title = __( 'Add New Group', 'wpcf' );
 
 
308
  }
309
  wpcf_add_admin_header( $title );
310
  wpcf_wpml_warning();
311
  $form = wpcf_form( 'wpcf_form_fields' );
312
  echo '<form method="post" action="" class="wpcf-fields-form wpcf-form-validate js-types-show-modal">';
313
- echo '<div id="poststuff">';
314
  echo $form->renderForm();
315
- echo '</div>';
316
  echo '</form>';
317
  wpcf_add_admin_footer();
318
  }
@@ -344,7 +466,7 @@ function wpcf_admin_menu_summary_cpt_ctt_hook()
344
  function wpcf_admin_menu_summary_cpt_hook()
345
  {
346
  wpcf_admin_menu_summary_cpt_ctt_hook();
347
- wpcf_admin_page_add_options('cpt', __( 'Custom Post Types', 'wpcf' ));
348
  }
349
 
350
  /**
@@ -353,7 +475,7 @@ function wpcf_admin_menu_summary_cpt_hook()
353
  function wpcf_admin_menu_summary_cpt()
354
  {
355
  wpcf_add_admin_header(
356
- __( 'Custom Post Types', 'wpcf' ),
357
  array('page'=>'wpcf-edit-type'),
358
  __('Add New Custom Post Type', 'wpcf')
359
  );
@@ -417,23 +539,29 @@ function wpcf_admin_menu_edit_type_hook()
417
  */
418
  function wpcf_admin_menu_edit_type()
419
  {
420
- if ( isset( $_GET['wpcf-post-type'] ) ) {
421
- $title = __( 'Edit Custom Post Type', 'wpcf' );
422
- /**
423
- * add new CPT link
424
- */
425
- $title .= sprintf(
426
- '<a href="%s" class="add-new-h2">%s</a>',
427
- add_query_arg( 'page', 'wpcf-edit-type', admin_url('admin.php')),
428
- __('Add New')
429
- );
430
- } else {
431
- $title = __( 'Add New Custom Post Type', 'wpcf' );
 
 
 
 
 
 
432
  }
433
  wpcf_add_admin_header( $title );
434
  wpcf_wpml_warning();
435
  $form = wpcf_form( 'wpcf_form_types' );
436
- echo '<br /><form method="post" action="" class="wpcf-types-form wpcf-form-validate js-types-do-not-show-modal">';
437
  echo $form->renderForm();
438
  echo '</form>';
439
  wpcf_add_admin_footer();
@@ -465,20 +593,14 @@ function wpcf_admin_menu_edit_tax_hook()
465
  */
466
  function wpcf_admin_menu_edit_tax()
467
  {
468
- if ( isset( $_GET['wpcf-tax'] ) ) {
469
- $title = __( 'Edit Taxonomy', 'wpcf' );
470
- /**
471
- * add new CPT link
472
- */
473
- $title .= sprintf(
474
- '<a href="%s" class="add-new-h2">%s</a>',
475
- add_query_arg( 'page', 'wpcf-edit-tax', admin_url('admin.php')),
476
- __('Add New')
477
- );
478
- } else {
479
- $title = __( 'Add New Taxonomy', 'wpcf' );
480
  }
481
- wpcf_add_admin_header( $title );
482
  wpcf_wpml_warning();
483
  $form = wpcf_form( 'wpcf_form_tax' );
484
  echo '<form method="post" action="" class="wpcf-tax-form wpcf-form-validate js-types-show-modal">';
@@ -508,7 +630,7 @@ function wpcf_admin_menu_import_export_hook()
508
  function wpcf_admin_menu_import_export()
509
  {
510
  wpcf_add_admin_header( __( 'Import/Export', 'wpcf' ) );
511
- echo '<br /><form method="post" action="" class="wpcf-import-export-form '
512
  . 'wpcf-form-validate" enctype="multipart/form-data">';
513
  echo wpcf_form_simple( wpcf_admin_import_export_form() );
514
  echo '</form>';
@@ -578,7 +700,7 @@ function wpcf_admin_menu_migration_hook()
578
  function wpcf_admin_menu_migration()
579
  {
580
  wpcf_add_admin_header( __( 'Migration', 'wpcf' ) );
581
- echo '<br /><form method="post" action="" id="wpcf-migration-form" class="wpcf-migration-form '
582
  . 'wpcf-form-validate" enctype="multipart/form-data">';
583
  $form = wpcf_form( 'wpcf_form_migration' );
584
  echo $form->renderForm();
@@ -593,12 +715,8 @@ function wpcf_admin_menu_settings_hook()
593
  {
594
  do_action( 'wpcf_admin_page_init' );
595
  require_once WPCF_INC_ABSPATH . '/settings.php';
596
- $form = wpcf_admin_image_settings_form();
597
- wpcf_form( 'wpcf_form_image_settings', $form );
598
  $form = wpcf_admin_general_settings_form();
599
  wpcf_form( 'wpcf_form_general_settings', $form );
600
- $form = wpcf_admin_toolset_messages_form();
601
- wpcf_form( 'wpcf_form_toolset_messages', $form );
602
  }
603
 
604
  /**
@@ -606,122 +724,85 @@ function wpcf_admin_menu_settings_hook()
606
  */
607
  function wpcf_admin_menu_settings()
608
  {
609
- $show_toolset_messages = !WPCF_Types_Marketing_Messages::check_register();
610
  ob_start();
611
  wpcf_add_admin_header( __( 'Settings', 'wpcf' ) );
612
 
613
  ?>
614
- <p style="font-weight: bold;"><?php
615
- _e( 'This screen contains the Types settings for your site.', 'wpcf' );
616
-
617
- ?></p>
618
- <ul class="horlist">
619
- <li><a href="#types-image-settings"><?php _e( 'Image Settings', 'wpcf' ); ?></a></li>
620
- <li><a href="#types-general-settings"><?php _e( 'General Settings', 'wpcf' ); ?></a></li>
621
- <?php if ( $show_toolset_messages ) { ?><li><a href="#toolset-messages"><?php _e( 'Toolset Messages', 'wpcf' ); ?></a></li><?php } ?>
622
- <li><a href="#debug"><?php _e( 'Debug Information', 'wpcf' ); ?></a></li>
623
- </ul>
624
- <br style='clear:both'/><br /><br />
625
- <a id="types-image-settings"></a>
626
- <table class="widefat" id="types_image_settings_table">
627
- <thead>
628
- <tr>
629
- <th><?php
630
- _e( 'Image Settings', 'wpcf' );
631
-
632
- ?></th>
633
- </tr>
634
- </thead>
635
- <tbody>
636
- <tr>
637
- <td>
638
  <?php
639
- echo '<br /><form method="post" action="" id="wpcf-image-settings-form" class="wpcf-settings-form '
640
- . 'wpcf-form-validate">';
641
- $form = wpcf_form( 'wpcf_form_image_settings' );
642
- echo $form->renderForm();
643
- echo '</form>';
644
 
645
- ?>
646
- </td>
647
- </tr>
648
- </tbody>
649
- </table>
650
- <br /><br />
651
- <a id="types-general-settings"></a>
652
- <table class="widefat" id="types_general_settings_table">
653
- <thead>
654
- <tr>
655
- <th><?php
656
- _e( 'General Settings', 'wpcf' );
657
-
658
- ?></th>
659
- </tr>
660
- </thead>
661
- <tbody>
662
- <tr>
663
- <td>
664
- <?php
665
- echo '<br /><form method="post" action="" id="wpcf-general-settings-form" class="wpcf-settings-form '
666
- . 'wpcf-form-validate">';
667
  $form = wpcf_form( 'wpcf_form_general_settings' );
668
  echo $form->renderForm();
669
- echo '</form>';
670
  ?>
671
- </td>
672
- </tr>
673
- </tbody>
674
- </table>
675
- <br /><br />
676
- <?php
677
- /**
678
- * Toolset Messages
679
- */
680
- if ( $show_toolset_messages ) {
681
- ?>
682
- <a id="toolset-messages"></a>
683
- <table class="widefat" id="toolset_messages">
684
  <thead>
685
  <tr>
686
- <th><?php _e( 'Toolset Messages', 'wpcf' ); ?></th>
687
  </tr>
688
  </thead>
689
  <tbody>
690
  <tr>
691
  <td>
692
- <?php
693
- echo '<br /><form method="post" action="" id="wpcf-toolset-messages-form" class="wpcf-settings-form '
694
- . 'wpcf-form-validate">';
695
- $form = wpcf_form( 'wpcf_form_toolset_messages' );
696
- echo $form->renderForm();
697
- echo '</form>';
698
- ?>
699
- </td>
700
- </tr>
701
- </tbody>
702
- </table>
703
- <br /><br />
704
- <?php } ?>
705
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
706
  /**
707
- * Debug Information
 
708
  */
709
- ?>
710
- <a id="debug"></a>
711
- <table class="widefat" id="debug_table">
712
- <thead>
713
- <tr>
714
- <th><?php _e( 'Debug Information', 'wpcf' ); ?></th>
715
- </tr>
716
- </thead>
717
- <tbody>
718
- <tr>
719
- <td>
720
- <?php
721
- printf(
722
- __( 'For retrieving debug information if asked by a support person, use the <a href="%s">debug information</a> page.', 'wpcf' ),
723
- admin_url('admin.php?page=wpcf-debug-information')
724
- );
 
 
 
725
  ?>
726
  </td>
727
  </tr>
@@ -747,15 +828,35 @@ function wpcf_add_admin_header($title, $add_new = false, $add_new_title = false)
747
  if ( !$add_new_title ) {
748
  $add_new_title = __('Add New', 'wpcf');
749
  }
750
- if ( $add_new ) {
751
- printf(
752
- ' <a href="%s" class="add-new-h2">%s</a>',
753
- add_query_arg( $add_new, admin_url('admin.php')),
754
- $add_new_title
755
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
756
  }
757
  echo '</h2>';
758
- $current_page = sanitize_text_field( $_GET['page'] );
759
  do_action( 'wpcf_admin_header' );
760
  do_action( 'wpcf_admin_header_' . $current_page );
761
  }
@@ -916,8 +1017,11 @@ function wpcf_admin_plugin_help($hook, $page)
916
  break;
917
 
918
  case 'wpcf-cpt':
 
 
 
919
  case 'wpcf-ctt':
920
- $call = 'custom_types_and_taxonomies';
921
  break;
922
 
923
  case 'wpcf-import-export':
@@ -935,28 +1039,27 @@ function wpcf_admin_plugin_help($hook, $page)
935
  case 'wpcf-edit-tax':
936
  $call = 'edit_tax';
937
  break;
 
938
  case 'wpcf':
939
  $call = 'wpcf';
940
  break;
 
 
 
 
 
 
 
 
941
  }
942
  }
943
  if ( $call ) {
944
  require_once WPCF_ABSPATH . '/help.php';
945
- $contextual_help = wpcf_admin_help( $call, $contextual_help );
946
  // WP 3.3 changes
947
  if ( version_compare( $wp_version, '3.2.1', '>' ) ) {
948
- set_current_screen( $hook );
949
- $screen = get_current_screen();
950
- if ( !is_null( $screen ) ) {
951
- $args = array(
952
- 'title' => __( 'Types', 'wpcf' ),
953
- 'id' => 'wpcf',
954
- 'content' => $contextual_help,
955
- 'callback' => false,
956
- );
957
- $screen->add_help_tab( $args );
958
- }
959
  } else {
 
960
  add_contextual_help( $hook, $contextual_help );
961
  }
962
  }
@@ -989,7 +1092,6 @@ function wpcf_admin_promotional_text()
989
  $promo_tabs['time'] = time();
990
  update_option( '_wpcf_promo_tabs', $promo_tabs );
991
  }
992
- include WPCF_ABSPATH . '/marketing/helpful-links.php';
993
  }
994
 
995
  /**
@@ -1009,22 +1111,6 @@ function wpcf_admin_load_collapsible()
1009
  }
1010
  }
1011
 
1012
- /**
1013
- * Toggle button.
1014
- *
1015
- * @param type $div_id
1016
- * @return type
1017
- */
1018
- function wpcf_admin_toggle_button($div_id)
1019
- {
1020
- return '<a href="'
1021
- . admin_url( 'admin-ajax.php?action=wpcf_ajax&wpcf_action=toggle&div='
1022
- . $div_id . '-toggle&_wpnonce='
1023
- . wp_create_nonce( 'toggle' ) )
1024
- . '" id="' . $div_id
1025
- . '" class="wpcf-collapsible-button"></a>';
1026
- }
1027
-
1028
  /**
1029
  * Various delete/deactivate content actions.
1030
  *
@@ -1106,26 +1192,6 @@ function wpcf_get_temporary_directory()
1106
  return $dir;
1107
  }
1108
 
1109
- function wpcf_welcome_panel()
1110
- {
1111
- if ( isset( $_GET['welcome'] ) ) {
1112
- update_user_meta( get_current_user_id(), 'hide_wpcf_welcome_panel', 1 );
1113
- }
1114
- $classes = 'welcome-panel';
1115
- $option = get_user_meta( get_current_user_id(), 'hide_wpcf_welcome_panel', true );
1116
- if ( !empty($option) ) {
1117
- $classes .= ' hidden';
1118
- }
1119
- ?>
1120
- <div id="welcome-panel" class="<?php echo esc_attr( $classes ); ?>">
1121
- <a class="welcome-panel-close" href="<?php echo esc_url( add_query_arg( 'welcome', 'hide' ) ); ?>"><?php _e( 'Dismiss' ); ?></a>
1122
- <div class="welcome-panel-content">
1123
- <h3><?php _e( 'Security improvement', 'wpcf' ); ?></h3>
1124
- <p><?php _e( 'This version of Types has improved security when importing Types settings. Types settings that were saved with the older version of Types may not import all the data. You should export new Types settings if needed.', 'wpcf' ); ?></p>
1125
- </div>
1126
- </div>
1127
- <?php
1128
- }
1129
  /**
1130
  *
1131
  */
@@ -1168,7 +1234,6 @@ function wpcf_get_extra_debug_info($extra_debug)
1168
  return $extra_debug;
1169
  }
1170
 
1171
- add_action( 'wpcf_admin_header', 'wpcf_welcome_panel', PHP_INT_SIZE );
1172
  add_filter( 'icl_get_extra_debug_info', 'wpcf_get_extra_debug_info' );
1173
 
1174
  function wpcf_admin_add_submenu_page($menu, $menu_slug = null, $menu_parent = 'wpcf')
@@ -1176,8 +1241,20 @@ function wpcf_admin_add_submenu_page($menu, $menu_slug = null, $menu_parent = 'w
1176
  if ( !is_admin() ) {
1177
  return;
1178
  }
1179
- $wpcf_capability = apply_filters( 'wpcf_capability', 'manage_options' );
1180
  $menu_slug = array_key_exists('menu_slug', $menu)? $menu['menu_slug']:$menu_slug;
 
 
 
 
 
 
 
 
 
 
 
 
 
1181
  /**
1182
  * add submenu
1183
  */
@@ -1238,3 +1315,4 @@ function wpcf_table_set_option($status, $option, $value)
1238
  {
1239
  return $value;
1240
  }
 
5
  *
6
  *
7
  */
8
+ require_once WPCF_ABSPATH.'/marketing.php';
9
+ require_once WPCF_ABSPATH.'/includes/classes/class.wpcf.roles.php';
10
+ WPCF_Roles::getInstance();
11
  /*
12
  * This needs to be called after main 'init' hook.
13
  * Main init hook calls required Types code for frontend.
24
  if ( defined( 'DOING_AJAX' ) ) {
25
  require_once WPCF_INC_ABSPATH . '/ajax.php';
26
  }
27
+ include_once WPCF_ABSPATH.'/includes/classes/class.wpcf.marketing.messages.php';
28
  new WPCF_Types_Marketing_Messages();
29
 
30
  /**
34
  define( 'TOOLSET_EDIT_LAST', '_toolset_edit_last');
35
  }
36
 
37
+ /**
38
+ * last author
39
+ */
40
+ if ( !defined('WPCF_AUTHOR' )){
41
+ define( 'WPCF_AUTHOR', '_wpcf_author_id');
42
+ }
43
+
44
  /**
45
  * admin_init hook.
46
  */
57
  */
58
  function wpcf_admin_menu_hook()
59
  {
60
+ $wpcf_capability = apply_filters( 'wpcf_capability', WPCF_CUSTOM_POST_TYPE_VIEW);
61
 
62
  add_menu_page(
63
  __( 'Types', 'wpcf' ),
72
 
73
  // Custom Post Types
74
  $subpages['wpcf-cpt'] = array(
75
+ 'menu_title' => __( 'Post Types', 'wpcf' ),
76
  'function' => 'wpcf_admin_menu_summary_cpt',
77
+ 'capability_filter' => 'wpcf_cpt_view',
78
+ 'capability' => WPCF_CUSTOM_POST_TYPE_VIEW,
79
  );
80
 
81
  // Custom Taxonomies
82
  $subpages['wpcf-ctt'] = array(
83
  'menu_title' => __( 'Custom Taxonomies', 'wpcf' ),
84
  'function' => 'wpcf_admin_menu_summary_ctt',
85
+ 'capability_filter' => 'wpcf_ctt_view',
86
+ 'capability' => WPCF_CUSTOM_TAXONOMY_VIEW,
87
  );
88
 
89
  // Custom fields
90
  $subpages['wpcf-cf'] = array(
91
  'menu_title' => __( 'Custom Fields', 'wpcf' ),
92
  'function' => 'wpcf_admin_menu_summary',
93
+ 'capability_filter' => 'wpcf_cf_view',
94
+ 'capability' => WPCF_CUSTOM_FIELD_VIEW,
 
 
 
 
95
  );
96
 
97
  // User Meta
98
  $subpages['wpcf-um'] = array(
99
  'menu_title' => __( 'User Fields', 'wpcf' ),
100
  'function' => 'wpcf_usermeta_summary',
101
+ 'capability_filter' => 'wpcf_uf_view',
102
+ 'capability' => WPCF_USER_META_FIELD_VIEW,
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  );
104
 
105
  // Settings
106
  $subpages['wpcf-custom-settings'] = array(
107
  'menu_title' => __( 'Settings', 'wpcf' ),
108
  'function' => 'wpcf_admin_menu_settings',
 
 
 
 
 
 
109
  );
110
 
111
  foreach( $subpages as $menu_slug => $menu ) {
113
  }
114
 
115
  if ( isset( $_GET['page'] ) ) {
116
+ $current_page = $_GET['page'];
117
+ switch ( $current_page ) {
118
+ /**
119
+ * User Fields Control
120
+ */
121
+ case 'wpcf-user-fields-control':
122
+ wpcf_admin_add_submenu_page(
123
+ array(
124
+ 'menu_title' => __( 'User Fields Control', 'wpcf' ),
125
+ 'function' => 'wpcf_admin_menu_user_fields_control',
126
+ 'capability_filter' => 'wpcf_ufc_view',
127
+ ),
128
+ 'wpcf-user-fields-control'
129
+ );
130
+ break;
131
+
132
+ /**
133
+ * Custom Fields Control
134
+ */
135
+ case 'wpcf-custom-fields-control':
136
+ wpcf_admin_add_submenu_page(
137
+ array(
138
+ 'menu_title' => __( 'Custom Fields Control', 'wpcf' ),
139
+ 'function' => 'wpcf_admin_menu_custom_fields_control',
140
+ 'capability_filter' => 'wpcf_cfc_view',
141
+ ),
142
+ 'wpcf-custom-fields-control'
143
+ );
144
+ break;
145
+ /**
146
+ * Import/Export
147
+ */
148
+ case 'wpcf-import-export':
149
+ wpcf_admin_add_submenu_page(
150
+ array(
151
+ 'menu_title' => __( 'Import/Export', 'wpcf' ),
152
+ 'function' => 'wpcf_admin_menu_import_export',
153
+ ),
154
+ 'wpcf-import-export'
155
+ );
156
+ break;
157
+
158
+ /**
159
+ * debug
160
+ */
161
+ case 'wpcf-debug-information':
162
+ wpcf_admin_add_submenu_page(
163
+ array(
164
+ 'menu_title' => __( 'Debug Information', 'wpcf' ),
165
+ 'function' => 'wpcf_admin_menu_debug_information',
166
+ ),
167
+ 'wpcf-debug-information'
168
+ );
169
+ break;
170
+ /**
171
+ * custom field grup
172
+ */
173
  case 'wpcf-edit':
174
+ $title = isset( $_GET['group_id'] ) ? __( 'Edit Group', 'wpcf' ) : __( 'Add New Custom Fields Group', 'wpcf' );
175
+ $hook = wpcf_admin_add_submenu_page(
176
+ array(
177
+ 'menu_title' => $title,
178
+ 'function' => 'wpcf_admin_menu_edit_fields',
179
+ 'capability' => WPCF_CUSTOM_FIELD_VIEW
180
+ ),
181
+ $current_page
182
+ );
183
  add_action( 'load-' . $hook, 'wpcf_admin_menu_edit_fields_hook' );
184
  wpcf_admin_plugin_help( $hook, 'wpcf-edit' );
185
  break;
186
 
187
+ case 'wpcf-view-custom-field':
188
+ $hook = wpcf_admin_add_submenu_page(
189
+ array(
190
+ 'menu_title' => __('View Custom Fields Group', 'wpcf'),
191
+ 'function' => 'wpcf_admin_menu_edit_fields',
192
+ 'capability' => WPCF_CUSTOM_FIELD_VIEW
193
+ ),
194
+ $current_page
195
+ );
196
+ wpcf_admin_plugin_help( $hook, 'wpcf-edit' );
197
+ break;
198
+ /**
199
+ * custom post
200
+ */
201
  case 'wpcf-edit-type':
202
+ $title = __( 'Add New Custom Post Type', 'wpcf' );
203
+ if ( isset( $_GET['wpcf-post-type'] ) ) {
204
+ $title = __( 'Edit Custom Post Type', 'wpcf' );
205
+ if ( wpcf_is_builtin_post_types($_GET['wpcf-post-type']) ) {
206
+ $title = __( 'Edit Post Type', 'wpcf' );
207
+ }
208
+ }
209
+ $hook = wpcf_admin_add_submenu_page(
210
+ array(
211
+ 'menu_title' => $title,
212
+ 'function' => 'wpcf_admin_menu_edit_type',
213
+ 'capability' => WPCF_CUSTOM_FIELD_EDIT
214
+ ),
215
+ $current_page
216
+ );
217
+ add_action( 'load-' . $hook, 'wpcf_admin_menu_edit_type_hook' );
218
+ wpcf_admin_plugin_help( $hook, 'wpcf-edit-type' );
219
+ break;
220
+
221
+ case 'wpcf-view-type':
222
+ $hook = wpcf_admin_add_submenu_page(
223
+ array(
224
+ 'menu_title' => __('View Custom Post Type', 'wpcf'),
225
+ 'function' => 'wpcf_admin_menu_edit_type',
226
+ 'capability' => WPCF_CUSTOM_FIELD_VIEW
227
+ ),
228
+ $current_page
229
+ );
230
  add_action( 'load-' . $hook, 'wpcf_admin_menu_edit_type_hook' );
231
  wpcf_admin_plugin_help( $hook, 'wpcf-edit-type' );
232
  break;
233
 
234
  case 'wpcf-edit-tax':
235
+ $title = isset( $_GET['wpcf-tax'] ) ? __( 'Edit Custom Taxonomy', 'wpcf' ) : __( 'Add New Custom Taxonomy', 'wpcf' );
236
+ $hook = wpcf_admin_add_submenu_page(
237
+ array(
238
+ 'menu_title' => $title,
239
+ 'function' => 'wpcf_admin_menu_edit_tax',
240
+ 'capability' => WPCF_CUSTOM_TAXONOMY_EDIT
241
+ ),
242
+ $current_page
243
+ );
244
  add_action( 'load-' . $hook, 'wpcf_admin_menu_edit_tax_hook' );
245
  wpcf_admin_plugin_help( $hook, 'wpcf-edit-tax' );
246
  break;
247
+
248
+ case 'wpcf-view-tax':
249
+ $hook = wpcf_admin_add_submenu_page(
250
+ array(
251
+ 'menu_title' => __('View Custom Taxonomy', 'wpcf'),
252
+ 'function' => 'wpcf_admin_menu_edit_tax',
253
+ 'capability' => WPCF_CUSTOM_TAXONOMY_VIEW
254
+ ),
255
+ $current_page
256
+ );
257
+ add_action( 'load-' . $hook, 'wpcf_admin_menu_edit_tax_hook' );
258
+ wpcf_admin_plugin_help( $hook, 'wpcf-edit-tax' );
259
+ break;
260
+
261
+ /**
262
+ * user meta fields
263
+ */
264
  case 'wpcf-edit-usermeta':
265
+ $title = isset( $_GET['group_id'] ) ? __( 'Edit User Fields Group', 'wpcf' ) : __( 'Add New User Fields Group', 'wpcf' );
266
+ $hook = wpcf_admin_add_submenu_page(
267
+ array(
268
+ 'menu_title' => $title,
269
+ 'function' => 'wpcf_admin_menu_edit_user_fields',
270
+ 'capability' => WPCF_USER_META_FIELD_EDIT,
271
+ ),
272
+ $current_page
273
+ );
274
+ wpcf_admin_plugin_help( $hook, 'wpcf-edit-usermeta' );
275
+ break;
276
+
277
+ case 'wpcf-view-usermeta':
278
+ $hook = wpcf_admin_add_submenu_page(
279
+ array(
280
+ 'menu_title' => __('View User Fields Group', 'wpcf'),
281
+ 'function' => 'wpcf_admin_menu_edit_user_fields',
282
+ 'capability' => WPCF_USER_META_FIELD_VIEW,
283
+ ),
284
+ $current_page
285
+ );
286
  wpcf_admin_plugin_help( $hook, 'wpcf-edit-usermeta' );
287
  break;
288
  }
289
  }
290
 
291
  // Check if migration from other plugin is needed
292
+ if (
293
+ (class_exists( 'Acf') && !class_exists('acf_pro'))
294
+ || defined( 'CPT_VERSION' )
295
+ ) {
296
  $hook = add_submenu_page( 'wpcf', __( 'Migration', 'wpcf' ),
297
  __( 'Migration', 'wpcf' ), 'manage_options', 'wpcf-migration',
298
  'wpcf_admin_menu_migration' );
339
  */
340
  function wpcf_admin_menu_summary()
341
  {
342
+ wpcf_add_admin_header( __( 'Custom Fields Groups', 'wpcf' ), array('page'=>'wpcf-edit'));
 
 
 
 
343
  require_once WPCF_INC_ABSPATH . '/fields.php';
344
  require_once WPCF_INC_ABSPATH . '/fields-list.php';
345
  $to_display = wpcf_admin_fields_get_fields();
422
  */
423
  function wpcf_admin_menu_edit_fields()
424
  {
425
+ $title = __('View Custom Fields Group', 'wpcf');
426
  if ( isset( $_GET['group_id'] ) ) {
427
+ if ( WPCF_Roles::user_can_edit('custom-field', $_GET['group_id']) ) {
428
+ $title = __( 'Edit Custom Fields Group', 'wpcf' );
429
+ }
430
+ } else if ( WPCF_Roles::user_can_create('custom-field')) {
431
+ $title = __( 'Add New Custom Fields Group', 'wpcf' );
432
  }
433
  wpcf_add_admin_header( $title );
434
  wpcf_wpml_warning();
435
  $form = wpcf_form( 'wpcf_form_fields' );
436
  echo '<form method="post" action="" class="wpcf-fields-form wpcf-form-validate js-types-show-modal">';
 
437
  echo $form->renderForm();
 
438
  echo '</form>';
439
  wpcf_add_admin_footer();
440
  }
466
  function wpcf_admin_menu_summary_cpt_hook()
467
  {
468
  wpcf_admin_menu_summary_cpt_ctt_hook();
469
+ wpcf_admin_page_add_options('cpt', __( 'Post Types', 'wpcf' ));
470
  }
471
 
472
  /**
475
  function wpcf_admin_menu_summary_cpt()
476
  {
477
  wpcf_add_admin_header(
478
+ __( 'Post Types', 'wpcf' ),
479
  array('page'=>'wpcf-edit-type'),
480
  __('Add New Custom Post Type', 'wpcf')
481
  );
539
  */
540
  function wpcf_admin_menu_edit_type()
541
  {
542
+ $title = __('View Custom Post Type', 'wpcf');
543
+ if ( WPCF_Roles::user_can_edit('custom-post-type', array()) ) {
544
+ if ( isset( $_GET['wpcf-post-type'] ) ) {
545
+ $title = __( 'Edit Custom Post Type', 'wpcf' );
546
+ if ( wpcf_is_builtin_post_types($_GET['wpcf-post-type']) ) {
547
+ $title = __( 'Edit Post Type', 'wpcf' );
548
+ }
549
+ /**
550
+ * add new CPT link
551
+ */
552
+ $title .= sprintf(
553
+ '<a href="%s" class="add-new-h2">%s</a>',
554
+ esc_url(add_query_arg( 'page', 'wpcf-edit-type', admin_url('admin.php'))),
555
+ __('Add New', 'wpcf')
556
+ );
557
+ } else {
558
+ $title = __( 'Add New Custom Post Type', 'wpcf' );
559
+ }
560
  }
561
  wpcf_add_admin_header( $title );
562
  wpcf_wpml_warning();
563
  $form = wpcf_form( 'wpcf_form_types' );
564
+ echo '<form method="post" action="" class="wpcf-types-form wpcf-form-validate js-types-do-not-show-modal">';
565
  echo $form->renderForm();
566
  echo '</form>';
567
  wpcf_add_admin_footer();
593
  */
594
  function wpcf_admin_menu_edit_tax()
595
  {
596
+ $title = __( 'View Custom Taxonomy', 'wpcf' );
597
+ if ( WPCF_Roles::user_can_create('custom-taxonomy') ) {
598
+ $title = __( 'Add New Custom Taxonomy', 'wpcf' );
599
+ if ( isset( $_GET['wpcf-tax'] ) ) {
600
+ $title = __( 'Edit Custom Taxonomy', 'wpcf' );
601
+ }
 
 
 
 
 
 
602
  }
603
+ wpcf_add_admin_header( $title, array('page' => 'wpcf-edit-tax' ));
604
  wpcf_wpml_warning();
605
  $form = wpcf_form( 'wpcf_form_tax' );
606
  echo '<form method="post" action="" class="wpcf-tax-form wpcf-form-validate js-types-show-modal">';
630
  function wpcf_admin_menu_import_export()
631
  {
632
  wpcf_add_admin_header( __( 'Import/Export', 'wpcf' ) );
633
+ echo '<form method="post" action="" class="wpcf-import-export-form '
634
  . 'wpcf-form-validate" enctype="multipart/form-data">';
635
  echo wpcf_form_simple( wpcf_admin_import_export_form() );
636
  echo '</form>';
700
  function wpcf_admin_menu_migration()
701
  {
702
  wpcf_add_admin_header( __( 'Migration', 'wpcf' ) );
703
+ echo '<form method="post" action="" id="wpcf-migration-form" class="wpcf-migration-form '
704
  . 'wpcf-form-validate" enctype="multipart/form-data">';
705
  $form = wpcf_form( 'wpcf_form_migration' );
706
  echo $form->renderForm();
715
  {
716
  do_action( 'wpcf_admin_page_init' );
717
  require_once WPCF_INC_ABSPATH . '/settings.php';
 
 
718
  $form = wpcf_admin_general_settings_form();
719
  wpcf_form( 'wpcf_form_general_settings', $form );
 
 
720
  }
721
 
722
  /**
724
  */
725
  function wpcf_admin_menu_settings()
726
  {
 
727
  ob_start();
728
  wpcf_add_admin_header( __( 'Settings', 'wpcf' ) );
729
 
730
  ?>
731
+ <form method="post" action="" id="wpcf-general-settings-form" class="wpcf-settings-form wpcf-form-validate">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
732
  <?php
 
 
 
 
 
733
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
734
  $form = wpcf_form( 'wpcf_form_general_settings' );
735
  echo $form->renderForm();
736
+
737
  ?>
738
+ </form>
739
+ <table class="widefat" id="types-tools">
 
 
 
 
 
 
 
 
 
 
 
740
  <thead>
741
  <tr>
742
+ <th><?php _e( 'Types tools', 'wpcf' ); ?></th>
743
  </tr>
744
  </thead>
745
  <tbody>
746
  <tr>
747
  <td>
 
 
 
 
 
 
 
 
 
 
 
 
 
748
  <?php
749
+
750
+ $pages = array(
751
+ 'wpcf-custom-fields-control' => array(
752
+ 'page' => 'wpcf-custom-fields-control',
753
+ 'name' => __('Custom Fields Control', 'wpcf'),
754
+ 'description' => __('Allow to control custom fields.', 'wpcf'),
755
+ ),
756
+ 'wpcf-user-fields-control' => array(
757
+ 'page' => 'wpcf-user-fields-control',
758
+ 'name' => __('User Fields Control', 'wpcf'),
759
+ 'description' => __('Allow to control user meta fields.', 'wpcf'),
760
+ ),
761
+ 'wpcf-import-export' => array(
762
+ 'page' => 'wpcf-import-export',
763
+ 'name' => __('Import/Export', 'wpcf'),
764
+ 'description' => __('For import or export data from Types.', 'wpcf'),
765
+ ),
766
+ 'wpcf-access' => array(
767
+ 'page' => 'wpcf-access',
768
+ 'name' => __('Access', 'wpcf'),
769
+ 'description' => __('Access lets you control what content types different users can read, edit and publish on your site and create custom roles.', 'wpcf'),
770
+ ),
771
+ 'installer' => array(
772
+ 'page' => 'installer',
773
+ 'name' => __('Installer', 'wpcf'),
774
+ 'description' => __('This page lets you install plugins and update existing plugins.', 'wpcf'),
775
+ ),
776
+ 'wpcf-debug-information' => array(
777
+ 'page' => 'wpcf-debug-information',
778
+ 'name' => __('Debug Information', 'wpcf'),
779
+ 'description' => __( 'For retrieving debug information if asked by a support person.', 'wpcf'),
780
+ ),
781
+ );
782
+
783
  /**
784
+ * remove Access page if is a full version of Access
785
+ * installer and running
786
  */
787
+ if ( defined( 'WPCF_ACCESS_VERSION' ) ) {
788
+ unset($pages['wpcf-access']);
789
+ }
790
+
791
+ echo '<ul>';
792
+ foreach( $pages as $data ) {
793
+ echo '<li>';
794
+ printf(
795
+ '<strong><a href="%s">%s</a></strong>',
796
+ esc_url( admin_url(sprintf('admin.php?page=%s', $data['page']))),
797
+ $data['name']
798
+ );
799
+ if ( isset($data['description']) && !empty($data['description'])) {
800
+ echo ' - ';
801
+ echo $data['description'];
802
+ }
803
+ echo '<li>';
804
+ }
805
+ echo '</ul>';
806
  ?>
807
  </td>
808
  </tr>
828
  if ( !$add_new_title ) {
829
  $add_new_title = __('Add New', 'wpcf');
830
  }
831
+ if ( is_array($add_new) && isset($add_new['page']) ) {
832
+ $add_button = false;
833
+ /**
834
+ * check user can?
835
+ */
836
+ switch($add_new['page']) {
837
+ case 'wpcf-edit-type':
838
+ $add_button = WPCF_Roles::user_can_create('custom-post-type');
839
+ break;
840
+ case 'wpcf-edit-tax':
841
+ $add_button = WPCF_Roles::user_can_create('custom-taxonomy');
842
+ break;
843
+ case 'wpcf-edit':
844
+ $add_button = WPCF_Roles::user_can_create('custom-field');
845
+ break;
846
+ case 'wpcf-edit-usermeta':
847
+ $add_button = WPCF_Roles::user_can_create('user-meta-field');
848
+ break;
849
+ }
850
+ if ( $add_button ) {
851
+ printf(
852
+ ' <a href="%s" class="add-new-h2">%s</a>',
853
+ esc_url(add_query_arg( $add_new, admin_url('admin.php'))),
854
+ $add_new_title
855
+ );
856
+ }
857
  }
858
  echo '</h2>';
859
+ $current_page = sanitize_text_field( $_GET['page'] );
860
  do_action( 'wpcf_admin_header' );
861
  do_action( 'wpcf_admin_header_' . $current_page );
862
  }
1017
  break;
1018
 
1019
  case 'wpcf-cpt':
1020
+ $call = 'post_types_list';
1021
+ break;
1022
+
1023
  case 'wpcf-ctt':
1024
+ $call = 'custom_taxonomies_list';
1025
  break;
1026
 
1027
  case 'wpcf-import-export':
1039
  case 'wpcf-edit-tax':
1040
  $call = 'edit_tax';
1041
  break;
1042
+
1043
  case 'wpcf':
1044
  $call = 'wpcf';
1045
  break;
1046
+
1047
+ case 'wpcf-um':
1048
+ $call = 'user_fields_list';
1049
+ break;
1050
+
1051
+ case 'wpcf-edit-usermeta':
1052
+ $call = 'user_fields_edit';
1053
+ break;
1054
  }
1055
  }
1056
  if ( $call ) {
1057
  require_once WPCF_ABSPATH . '/help.php';
 
1058
  // WP 3.3 changes
1059
  if ( version_compare( $wp_version, '3.2.1', '>' ) ) {
1060
+ wpcf_admin_help_add_tabs($call, $hook, $contextual_help);
 
 
 
 
 
 
 
 
 
 
1061
  } else {
1062
+ $contextual_help = wpcf_admin_help( $call, $contextual_help );
1063
  add_contextual_help( $hook, $contextual_help );
1064
  }
1065
  }
1092
  $promo_tabs['time'] = time();
1093
  update_option( '_wpcf_promo_tabs', $promo_tabs );
1094
  }
 
1095
  }
1096
 
1097
  /**
1111
  }
1112
  }
1113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1114
  /**
1115
  * Various delete/deactivate content actions.
1116
  *
1192
  return $dir;
1193
  }
1194
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1195
  /**
1196
  *
1197
  */
1234
  return $extra_debug;
1235
  }
1236
 
 
1237
  add_filter( 'icl_get_extra_debug_info', 'wpcf_get_extra_debug_info' );
1238
 
1239
  function wpcf_admin_add_submenu_page($menu, $menu_slug = null, $menu_parent = 'wpcf')
1241
  if ( !is_admin() ) {
1242
  return;
1243
  }
 
1244
  $menu_slug = array_key_exists('menu_slug', $menu)? $menu['menu_slug']:$menu_slug;
1245
+
1246
+ $capability = array_key_exists('capability', $menu)? $menu['capability']:'manage_options';;
1247
+ $wpcf_capability = apply_filters( 'wpcf_capability', $capability, $menu, $menu_slug );
1248
+ $wpcf_capability = apply_filters( 'wpcf_capability'.$menu_slug, $capability, $menu, $menu_slug );
1249
+
1250
+ /**
1251
+ * allow change capability by filter
1252
+ * full list https://goo.gl/OJYTvl
1253
+ */
1254
+ if ( isset($menu['capability_filter'] ) ) {
1255
+ $wpcf_capability = apply_filters( $menu['capability_filter'], $wpcf_capability, $menu, $menu_slug );
1256
+ }
1257
+
1258
  /**
1259
  * add submenu
1260
  */
1315
  {
1316
  return $value;
1317
  }
1318
+
embedded/admin.php CHANGED
@@ -52,14 +52,14 @@ function wpcf_embedded_admin_init_hook() {
52
  add_filter( 'media_upload_tabs', 'wpcf_fields_file_media_upload_tabs_filter' );
53
  }
54
 
55
- register_post_type( 'wp-types-group',
56
  array(
57
  'public' => false,
58
  'label' => 'Types Groups',
59
  'can_export' => false,
60
  )
61
  );
62
- register_post_type( 'wp-types-user-group',
63
  array(
64
  'public' => false,
65
  'label' => 'Types User Groups',
@@ -281,15 +281,15 @@ function wpcf_custom_fields_to_be_copied( $copied_fields, $original_post_id ) {
281
  */
282
  function wpcf_admin_validation_messages( $method = false, $sprintf = '' ) {
283
  $messages = array(
284
- 'required' => __( 'This field is required', 'wpcf' ),
285
- 'email' => __( 'Please enter a valid email address', 'wpcf' ),
286
- 'url' => __( 'Please enter a valid URL address', 'wpcf' ),
287
- 'date' => __( 'Please enter a valid date', 'wpcf' ),
288
- 'digits' => __( 'Please enter numeric data', 'wpcf' ),
289
- 'number' => __( 'Please enter numeric data', 'wpcf' ),
290
- 'alphanumeric' => __( 'Letters, numbers, spaces or underscores only please', 'wpcf' ),
291
- 'nospecialchars' => __( 'Letters, numbers, spaces, underscores and dashes only please', 'wpcf' ),
292
- 'rewriteslug' => __( 'Letters, numbers, slashes, underscores and dashes only please', 'wpcf' ),
293
  'negativeTimestamp' => __( 'Please enter a date after 1 January 1970.', 'wpcf' ),
294
  'maxlength' => sprintf( __( 'Maximum of %s characters exceeded.', 'wpcf' ), strval( $sprintf ) ),
295
  'minlength' => sprintf( __( 'Minimum of %s characters has not been reached.', 'wpcf' ), strval( $sprintf ) ),
@@ -305,30 +305,66 @@ function wpcf_admin_validation_messages( $method = false, $sprintf = '' ) {
305
  return $messages;
306
  }
307
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
308
  /**
309
  * Adds admin notice.
310
- *
311
  * @param type $message
312
  * @param type $class
313
  */
314
- function wpcf_admin_message( $message, $class = 'updated' ) {
315
- add_action( 'admin_notices',
 
 
316
  create_function( '$a=1, $class=\'' . $class . '\', $message=\''
317
  . htmlentities( $message, ENT_QUOTES ) . '\'',
318
- '$screen = get_current_screen(); if (!$screen->is_network) echo "<div class=\"message $class\"><p>" . stripslashes(html_entity_decode($message, ENT_QUOTES)) . "</p></div>";' ) );
 
 
 
 
 
 
 
319
  }
320
 
321
  /**
322
  * Shows stored messages.
323
  */
324
- function wpcf_show_admin_messages() {
 
325
  $messages = get_option( 'wpcf-messages', array() );
326
  $messages_for_user = isset( $messages[get_current_user_id()] ) ? $messages[get_current_user_id()] : array();
327
  $dismissed = get_option( 'wpcf_dismissed_messages', array() );
328
  if ( !empty( $messages_for_user ) && is_array( $messages_for_user ) ) {
329
  foreach ( $messages_for_user as $message_id => $message ) {
330
  if ( !in_array( $message['keep_id'], $dismissed ) ) {
331
- wpcf_admin_message( $message['message'], $message['class'] );
332
  }
333
  if ( empty( $message['keep_id'] )
334
  || in_array( $message['keep_id'], $dismissed ) ) {
@@ -545,46 +581,6 @@ function wpcf_admin_ajax_head( $title = '' ) {
545
  <?php
546
  }
547
 
548
- /**
549
- * Gets var from $_SERVER['HTTP_REFERER'].
550
- *
551
- * @param type $var
552
- */
553
- function wpcf_admin_get_var_from_referer( $var ) {
554
- $value = false;
555
- if ( isset( $_SERVER['HTTP_REFERER'] ) ) {
556
- $parts = explode( '?', $_SERVER['HTTP_REFERER'] );
557
- if ( !empty( $parts[1] ) ) {
558
- parse_str( $parts[1], $vars );
559
- if ( isset( $vars[$var] ) ) {
560
- $value = $vars[$var];
561
- }
562
- }
563
- }
564
- return $value;
565
- }
566
-
567
- /**
568
- * Adds JS settings.
569
- *
570
- * @staticvar array $settings
571
- * @param type $id
572
- * @param type $setting
573
- * @return string
574
- */
575
- function wpcf_admin_add_js_settings( $id, $setting = '' ) {
576
- static $settings = array();
577
- $settings['wpcf_nonce_ajax_callback'] = '\'' . wp_create_nonce( 'execute' ) . '\'';
578
- $settings['wpcf_cookiedomain'] = '\'' . COOKIE_DOMAIN . '\'';
579
- $settings['wpcf_cookiepath'] = '\'' . COOKIEPATH . '\'';
580
- if ( $id == 'get' ) {
581
- $temp = $settings;
582
- $settings = array();
583
- return $temp;
584
- }
585
- $settings[$id] = $setting;
586
- }
587
-
588
  /**
589
  * Renders JS settings.
590
  *
52
  add_filter( 'media_upload_tabs', 'wpcf_fields_file_media_upload_tabs_filter' );
53
  }
54
 
55
+ register_post_type( TYPES_CUSTOM_FIELD_GROUP_CPT_NAME,
56
  array(
57
  'public' => false,
58
  'label' => 'Types Groups',
59
  'can_export' => false,
60
  )
61
  );
62
+ register_post_type( TYPES_USER_META_FIELD_GROUP_CPT_NAME,
63
  array(
64
  'public' => false,
65
  'label' => 'Types User Groups',
281
  */
282
  function wpcf_admin_validation_messages( $method = false, $sprintf = '' ) {
283
  $messages = array(
284
+ 'required' => __( 'This field is required.', 'wpcf' ),
285
+ 'email' => __( 'Please enter a valid email address.', 'wpcf' ),
286
+ 'url' => __( 'Please enter a valid URL address.', 'wpcf' ),
287
+ 'date' => __( 'Please enter a valid date.', 'wpcf' ),
288
+ 'digits' => __( 'Please enter numeric data.', 'wpcf' ),
289
+ 'number' => __( 'Please enter numeric data.', 'wpcf' ),
290
+ 'alphanumeric' => __( 'Letters, numbers, spaces or underscores only please.', 'wpcf' ),
291
+ 'nospecialchars' => __( 'Letters, numbers, spaces, underscores and dashes only please.', 'wpcf' ),
292
+ 'rewriteslug' => __( 'Letters, numbers, slashes, underscores and dashes only please.', 'wpcf' ),
293
  'negativeTimestamp' => __( 'Please enter a date after 1 January 1970.', 'wpcf' ),
294
  'maxlength' => sprintf( __( 'Maximum of %s characters exceeded.', 'wpcf' ), strval( $sprintf ) ),
295
  'minlength' => sprintf( __( 'Minimum of %s characters has not been reached.', 'wpcf' ), strval( $sprintf ) ),
305
  return $messages;
306
  }
307
 
308
+
309
+ /**
310
+ * Sanitize admin notice.
311
+ *
312
+ * @param string $message
313
+ * @return string
314
+ */
315
+ function wpcf_admin_message_sanitize( $message )
316
+ {
317
+ $allowed_tags = array(
318
+ 'a' => array(
319
+ 'href' => array(),
320
+ 'title' => array()
321
+ ),
322
+ 'br' => array(),
323
+ 'b' => array(),
324
+ 'div' => array(),
325
+ 'em' => array(),
326
+ 'i' => array(),
327
+ 'p' => array(),
328
+ 'strong' => array(),
329
+ );
330
+ $message = wp_kses($message, $allowed_tags);
331
+ return stripslashes(html_entity_decode($message, ENT_QUOTES));
332
+ }
333
+
334
  /**
335
  * Adds admin notice.
336
+ *
337
  * @param type $message
338
  * @param type $class
339
  */
340
+ function wpcf_admin_message( $message, $class = 'updated', $mode = 'action' )
341
+ {
342
+ if ( 'action' == $mode ) {
343
+ add_action( 'admin_notices',
344
  create_function( '$a=1, $class=\'' . $class . '\', $message=\''
345
  . htmlentities( $message, ENT_QUOTES ) . '\'',
346
+ '$screen = get_current_screen(); if (!$screen->is_network) echo "<div class=\"message $class\"><p>" . wpcf_admin_message_sanitize ($message) . "</p></div>";' ) );
347
+ } elseif ( 'echo' == $mode ) {
348
+ printf(
349
+ '<div class="message %s"><p>%s</p></div>',
350
+ $class,
351
+ wpcf_admin_message_sanitize($message)
352
+ );
353
+ }
354
  }
355
 
356
  /**
357
  * Shows stored messages.
358
  */
359
+ function wpcf_show_admin_messages($mode = 'action')
360
+ {
361
  $messages = get_option( 'wpcf-messages', array() );
362
  $messages_for_user = isset( $messages[get_current_user_id()] ) ? $messages[get_current_user_id()] : array();
363
  $dismissed = get_option( 'wpcf_dismissed_messages', array() );
364
  if ( !empty( $messages_for_user ) && is_array( $messages_for_user ) ) {
365
  foreach ( $messages_for_user as $message_id => $message ) {
366
  if ( !in_array( $message['keep_id'], $dismissed ) ) {
367
+ wpcf_admin_message( $message['message'], $message['class'], $mode );
368
  }
369
  if ( empty( $message['keep_id'] )
370
  || in_array( $message['keep_id'], $dismissed ) ) {
581
  <?php
582
  }
583
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
584
  /**
585
  * Renders JS settings.
586
  *
embedded/bootstrap.php CHANGED
@@ -33,6 +33,29 @@ if ( !defined( 'TYPES_INIT_PRIORITY' ) ) {
33
  define( 'TYPES_INIT_PRIORITY', -1 );
34
  }
35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  /*
37
  *
38
  * Init
@@ -133,7 +156,7 @@ function wpcf_embedded_init() {
133
  // Define necessary constants if plugin is not present
134
  // This ones are skipped if used as embedded code!
135
  if ( !defined( 'WPCF_VERSION' ) ) {
136
- define( 'WPCF_VERSION', '1.7.11' );
137
  define( 'WPCF_META_PREFIX', 'wpcf-' );
138
  }
139
 
@@ -297,7 +320,7 @@ function wpcf_embedded_init() {
297
 
298
  // Define exceptions - privileged plugins and their data
299
  $wpcf->toolset_post_types = array(
300
- 'view', 'view-template', 'cred-form'
301
  );
302
  // 'attachment' = Media
303
  //
33
  define( 'TYPES_INIT_PRIORITY', -1 );
34
  }
35
 
36
+ /**
37
+ * custom filed groups - post type
38
+ */
39
+ define('TYPES_CUSTOM_FIELD_GROUP_CPT_NAME', 'wp-types-group');
40
+
41
+ /**
42
+ * user meta filed groups - post type
43
+ */
44
+ define('TYPES_USER_META_FIELD_GROUP_CPT_NAME', 'wp-types-user-group');
45
+
46
+ /**
47
+ * default capability
48
+ */
49
+
50
+ define('TYPES_CAPABILITY', 'manage_options');
51
+
52
+ /**
53
+ * last author
54
+ */
55
+ if ( !defined('WPCF_AUTHOR' )){
56
+ define( 'WPCF_AUTHOR', '_wpcf_author_id');
57
+ }
58
+
59
  /*
60
  *
61
  * Init
156
  // Define necessary constants if plugin is not present
157
  // This ones are skipped if used as embedded code!
158
  if ( !defined( 'WPCF_VERSION' ) ) {
159
+ define( 'WPCF_VERSION', '1.8' );
160
  define( 'WPCF_META_PREFIX', 'wpcf-' );
161
  }
162
 
320
 
321
  // Define exceptions - privileged plugins and their data
322
  $wpcf->toolset_post_types = array(
323
+ 'view', 'view-template', 'cred-form', 'cred-user-form'
324
  );
325
  // 'attachment' = Media
326
  //
embedded/classes/conditional.php CHANGED
@@ -139,9 +139,6 @@ class WPCF_Conditional extends WPCF_Field
139
  */
140
  function add_js() {
141
  wp_enqueue_script( 'types-conditional' );
142
- wpcf_admin_add_js_settings( 'wpcfConditionalVerify_nonce',
143
- wp_create_nonce( 'cd_verify' )
144
- );
145
  }
146
 
147
  /**
@@ -220,15 +217,5 @@ class WPCF_Conditional extends WPCF_Field
220
  return $this->passed;
221
  }
222
 
223
- /**
224
- * Processes AJAX call 'cd_verify'.
225
- *
226
- * @param type $data
227
- * @return type
228
- */
229
- function ajaxVerify( $data ) {
230
- WPCF_Loader::loadClass( 'helper.ajax' );
231
- return WPCF_Helper_Ajax::conditionalVerify( $data );
232
- }
233
 
234
- }
139
  */
140
  function add_js() {
141
  wp_enqueue_script( 'types-conditional' );
 
 
 
142
  }
143
 
144
  /**
217
  return $this->passed;
218
  }
219
 
 
 
 
 
 
 
 
 
 
 
220
 
221
+ }
embedded/classes/editor.php CHANGED
@@ -168,8 +168,7 @@ class WPCF_Editor
168
  $this->_data['tabs']['display'] = array(
169
  'menu_title' => __( 'Display', 'wpcf' ),
170
  'title' => __( 'Display', 'wpcf' ),
171
- 'content' => sprintf( __( 'There are no additional display options for the %s field.',
172
- 'wpcf' ),
173
  $this->_data['field_type_data']['title'] ),
174
  );
175
  }
168
  $this->_data['tabs']['display'] = array(
169
  'menu_title' => __( 'Display', 'wpcf' ),
170
  'title' => __( 'Display', 'wpcf' ),
171
+ 'content' => sprintf( __( 'There are no additional display options for the %s field.', 'wpcf' ),
 
172
  $this->_data['field_type_data']['title'] ),
173
  );
174
  }
embedded/classes/field.php CHANGED
@@ -358,7 +358,7 @@ class WPCF_Field
358
  /**
359
  * apply filters
360
  */
361
- $_value = $this->_filter_save_postmeta_value( $value );
362
  $_value = $this->_filter_save_value( $_value );
363
  /**
364
  * Save field if needed
@@ -405,18 +405,18 @@ class WPCF_Field
405
 
406
  return $value;
407
  }
408
-
409
- function _filter_save_postmeta_value( $value )
410
- {
411
- $value = apply_filters( 'wpcf_fields_postmeta_value_save', $value, $this->cf['type'], $this->cf['slug'], $this->cf, $this );
412
- return $value;
413
- }
414
-
415
- function _filter_save_usermeta_value( $value )
416
- {
417
- $value = apply_filters( 'wpcf_fields_usermeta_value_save', $value, $this->cf['type'], $this->cf['slug'], $this->cf, $this );
418
- return $value;
419
- }
420
 
421
  /**
422
  * Use these hooks to add future functionality.
358
  /**
359
  * apply filters
360
  */
361
+ $_value = $this->_filter_save_postmeta_value( $value );
362
  $_value = $this->_filter_save_value( $_value );
363
  /**
364
  * Save field if needed
405
 
406
  return $value;
407
  }
408
+
409
+ function _filter_save_postmeta_value( $value )
410
+ {
411
+ $value = apply_filters( 'wpcf_fields_postmeta_value_save', $value, $this->cf['type'], $this->cf['slug'], $this->cf, $this );
412
+ return $value;
413
+ }
414
+
415
+ function _filter_save_usermeta_value( $value )
416
+ {
417
+ $value = apply_filters( 'wpcf_fields_usermeta_value_save', $value, $this->cf['type'], $this->cf['slug'], $this->cf, $this );
418
+ return $value;
419
+ }
420
 
421
  /**
422
  * Use these hooks to add future functionality.
embedded/classes/forms.php CHANGED
@@ -1,968 +1,1062 @@
1
- <?php
2
-
3
- /**
4
- *
5
- * Returns HTML formatted output for elements and handles form submission.
6
- *
7
- *
8
- *
9
- * @version 1.0
10
- */
11
- class Enlimbo_Forms_Wpcf
12
- {
13
-
14
- /**
15
- * @var string
16
- */
17
- private $_id;
18
-
19
- /**
20
- * @var array
21
- */
22
- private $_errors = array();
23
-
24
- /**
25
- * @var array
26
- */
27
- private $_elements = array();
28
-
29
- /**
30
- * Failed elements.
31
- *
32
- * @var type
33
- */
34
- private $_elements_not_valid = array();
35
-
36
- /**
37
- * @var array
38
- */
39
- private $_count = array();
40
-
41
- /**
42
- * @var string
43
- */
44
- public $css_class = 'wpcf-form';
45
-
46
- /**
47
- * Auto handler
48
- *
49
- * Renders.
50
- *
51
- * @param array $element
52
- * @return HTML formatted output
53
- */
54
- public function autoHandle( $id, $form )
55
- {
56
- // Auto-add wpnonce field
57
- $form['_wpnonce'] = array(
58
- '#type' => 'markup',
59
- '#markup' => wp_nonce_field( $id, '_wpnonce_wpcf', true, false )
60
- );
61
-
62
- $this->_id = $id;
63
- $this->_elements = $form;
64
-
65
- do_action( 'wpcf_form_autohandle', $id, $form, $this );
66
- do_action( 'wpcf_form_autohandle_' . $id, $form, $this );
67
-
68
- // get submitted data
69
- if ( $this->isSubmitted() ) {
70
-
71
- do_action( 'wpcf_form_autohandle_submit', $id, $form, $this );
72
- do_action( 'wpcf_form_autohandle_submit_' . $id, $form, $this );
73
-
74
- // check if errors (validation)
75
- $this->validate( $this->_elements );
76
-
77
- do_action( 'wpcf_form_autohandle_validate', $id, $form, $this );
78
- do_action( 'wpcf_form_autohandle_validate_' . $id, $form, $this );
79
-
80
- // callback
81
- if ( empty( $this->_errors ) ) {
82
-
83
- if ( isset( $form['#form']['callback'] ) ) {
84
- if ( is_array( $form['#form']['callback'] ) ) {
85
- foreach ( $form['#form']['callback'] as $callback ) {
86
- if ( is_callable( $callback ) ) {
87
- call_user_func( $callback, $this );
88
- }
89
- }
90
- } else {
91
- if ( is_callable( $form['#form']['callback'] ) ) {
92
- call_user_func( $form['#form']['callback'], $this );
93
- }
94
- }
95
- }
96
- // Maybe triggered by callback function
97
- if ( empty( $this->_errors ) ) {
98
- // redirect
99
- do_action( 'wpcf_form_autohandle_redirection', $id, $form,
100
- $this );
101
- do_action( 'wpcf_form_autohandle_redirection_' . $id, $form,
102
- $this );
103
- if ( !isset( $form['#form']['redirection'] ) ) {
104
- header( 'Location: ' . $_SERVER['REQUEST_URI'] );
105
- } else if ( $form['#form']['redirection'] != false ) {
106
- header( 'Location: ' . $form['#form']['redirection'] );
107
- }
108
- }
109
- }
110
- }
111
- }
112
-
113
- /**
114
- * Checks if form is submitted.
115
- *
116
- * @param type $id
117
- * @return type
118
- */
119
- public function isSubmitted( $id = '' )
120
- {
121
- if ( empty( $id ) ) {
122
- $id = $this->_id;
123
- }
124
- return (
125
- isset( $_REQUEST['_wpnonce_wpcf'] )
126
- && wp_verify_nonce( $_REQUEST['_wpnonce_wpcf'], $id )
127
- );
128
- }
129
-
130
- /**
131
- * Loops over elements and validates them.
132
- *
133
- * @param type $elements
134
- */
135
- public function validate( &$elements )
136
- {
137
- require_once WPCF_EMBEDDED_ABSPATH . '/classes/validate.php';
138
- foreach ( $elements as $key => &$element ) {
139
- if ( !isset( $element['#type'] )
140
- || !$this->_isValidType( $element['#type'] ) ) {
141
- continue;
142
- }
143
- if ( $element['#type'] != 'fieldset' ) {
144
- if ( isset( $element['#name'] )
145
- && !in_array( $element['#type'],
146
- array('submit', 'reset') ) ) {
147
- // Set submitted data
148
- if ( !in_array( $element['#type'], array('checkboxes') )
149
- && empty( $element['#forced_value'] ) ) {
150
- $element['#value'] = $this->getSubmittedData( $element );
151
- } else if ( !empty( $element['#options'] )
152
- && empty( $element['#forced_value'] ) ) {
153
- foreach ( $element['#options'] as $option_key => $option ) {
154
- $option['#type'] = 'checkbox';
155
- $element['#options'][$option_key]['#value'] = $this->getSubmittedData( $option );
156
- }
157
- }
158
- }
159
- // Validate
160
- if ( isset( $element['#validate'] ) ) {
161
- $this->validateElement( $element );
162
- }
163
- } else if ( isset( $element['#type'] )
164
- && $element['#type'] == 'fieldset' ) {
165
- $this->validate( $element );
166
- } else if ( is_array( $element ) ) {
167
- $this->validate( $element );
168
- }
169
- }
170
- }
171
-
172
- /**
173
- * Validates element.
174
- *
175
- * @param type $element
176
- */
177
- public function validateElement( &$element )
178
- {
179
- $check = Wpcf_Validate::check( $element['#validate'], $element['#value'] );
180
- if ( isset( $check['error'] ) ) {
181
- $this->_errors = true;
182
- $element['#error'] = $check['message'];
183
- if ( isset( $element['wpcf-id'] ) ) {
184
- $this->_elements_not_valid[$element['wpcf-id']] = $element;
185
- }
186
- }
187
- }
188
-
189
- /**
190
- * Returns not valid elements.
191
- *
192
- * @return type
193
- */
194
- public function get_not_valid() {
195
- return $this->_elements_not_valid;
196
- }
197
-
198
- /**
199
- * Checks if there are errors.
200
- *
201
- * @return type
202
- */
203
- public function isError()
204
- {
205
- return $this->_errors;
206
- }
207
-
208
- /**
209
- * Sets errors to true.
210
- */
211
- public function triggerError()
212
- {
213
- $this->_errors = true;
214
- }
215
-
216
- /**
217
- * Renders form.
218
- *
219
- * @return type
220
- */
221
- public function renderForm()
222
- {
223
- // loop over elements and render them
224
- return $this->renderElements( $this->_elements );
225
- }
226
-
227
- /**
228
- * Counts element types.
229
- *
230
- * @param type $type
231
- * @return type
232
- */
233
- private function _count( $type ) {
234
- if ( !isset( $this->_count[$type] ) ) {
235
- $this->_count[$type] = 0;
236
- }
237
- $this->_count[$type] += 1;
238
- return $this->_count[$type];
239
- }
240
-
241
- /**
242
- * Check if element is of valid type
243
- *
244
- * @param string $type
245
- * @return boolean
246
- */
247
- private function _isValidType( $type )
248
- {
249
- return in_array( $type,
250
- array('select', 'checkboxes', 'checkbox', 'radios',
251
- 'radio', 'textfield', 'textarea', 'file', 'submit', 'reset',
252
- 'hidden', 'fieldset', 'markup', 'button') );
253
- }
254
-
255
- /**
256
- * Renders elements.
257
- *
258
- * @param type $elements
259
- * @return type
260
- */
261
- public function renderElements( $elements )
262
- {
263
- $output = '';
264
- foreach ( $elements as $key => $element ) {
265
- if ( !isset( $element['#type'] )
266
- || !$this->_isValidType( $element['#type'] ) ) {
267
- continue;
268
- }
269
- if ( $element['#type'] != 'fieldset' ) {
270
- $output .= $this->renderElement( $element );
271
- } else if ( isset( $element['#type'] )
272
- && $element['#type'] == 'fieldset' ) {
273
- $buffer = $this->renderElements( $element );
274
- $output .= $this->fieldset( $element, 'wrap', $buffer );
275
- } else if ( is_array( $element ) ) {
276
- $output .= $this->renderElements( $element );
277
- }
278
- }
279
- return $output;
280
- }
281
-
282
- /**
283
- * Renders element.
284
- *
285
- * Depending on element type, it calls class methods.
286
- *
287
- * @param array $element
288
- * @return HTML formatted output
289
- */
290
- public function renderElement( $element )
291
- {
292
- $method = $element['#type'];
293
- if ( !isset( $element['#name'] ) && $element['#type'] != 'markup' ) {
294
- if ( !isset( $element['#attributes']['name'] ) ) {
295
- return '#name or #attributes[\'name\'] required!';
296
- } else {
297
- $element['#name'] = $element['#attributes']['name'];
298
- }
299
- }
300
- if ( is_callable( array($this, $method) ) ) {
301
- if ( !isset( $element['#id'] ) ) {
302
- if ( isset( $element['#attributes']['id'] ) ) {
303
- $element['#id'] = $element['#attributes']['id'];
304
- } else {
305
- $element['#id'] = $element['#type'] . '-'
306
- . $this->_count( $element['#type'] );
307
- }
308
- }
309
- if ( isset( $this->_errors[$element['#id']] ) ) {
310
- $element['#error'] = $this->_errors[$element['#id']];
311
- }
312
- // Add JS validation
313
- if ( !empty( $element['#validate'] ) ) {
314
- wpcf_form_add_js_validation( $element );
315
- }
316
- return $this->{$method}( $element );
317
- }
318
- }
319
-
320
- /**
321
- * Sets other element attributes.
322
- *
323
- * @param array $element
324
- * @return string
325
- */
326
- private function _setElementAttributes( $element )
327
- {
328
- $attributes = '';
329
- $error_class = isset( $element['#error'] ) ? ' ' . $this->css_class . '-error ' . $this->css_class . '-' . $element['#type'] . '-error ' . ' form-' . $element['#type'] . '-error ' . $element['#type'] . '-error form-error ' : '';
330
- $class = $this->css_class . '-' . $element['#type']
331
- . ' form-' . $element['#type'] . ' ' . $element['#type'];
332
- // Add JS validation
333
- // if ( !empty( $element['#validate'] ) ) {
334
- // $class .= ' js-types-validate';
335
- // }
336
- if ( isset( $element['#attributes'] ) ) {
337
- foreach ( $element['#attributes'] as $attribute => $value ) {
338
- // Prevent undesired elements
339
- if ( in_array( $attribute, array('id', 'name') ) ) {
340
- continue;
341
- }
342
- // Don't set disabled for checkbox
343
- // if ( $attribute == 'disabled' && $element['#type'] == 'checkbox' ) {
344
- // continue;
345
- // }
346
- // Append class values
347
- if ( $attribute == 'class' ) {
348
- $value = $value . ' ' . $class . $error_class;
349
- }
350
- // Set return string
351
- $attributes .= ' ' . $attribute . '="' . $value . '"';
352
- }
353
- }
354
- if ( !isset( $element['#attributes']['class'] ) ) {
355
- $attributes .= ' class="' . $class . $error_class . '"';
356
- }
357
- return $attributes;
358
- }
359
-
360
- /**
361
- * Sets render elements.
362
- *
363
- * @param array $element
364
- */
365
- private function _setRender( $element )
366
- {
367
- if ( !isset( $element['#id'] ) ) {
368
- if ( isset( $element['#attributes']['id'] ) ) {
369
- $element['#id'] = $element['#attributes']['id'];
370
- } else {
371
- $element['#id'] = 'form-' . md5( serialize( $element ) ) . '-'
372
- . $this->_count( $element['#type'] );
373
- }
374
- }
375
- $element['_attributes_string'] = $this->_setElementAttributes( $element );
376
- $element['_render'] = array();
377
- $element['_render']['prefix'] = isset( $element['#prefix'] ) ? $element['#prefix'] . "\r\n" : '';
378
- $element['_render']['suffix'] = isset( $element['#suffix'] ) ? $element['#suffix'] . "\r\n" : '';
379
- $element['_render']['before'] = isset( $element['#before'] ) ? $element['#before'] . "\r\n" : '';
380
- $element['_render']['after'] = isset( $element['#after'] ) ? $element['#after'] . "\r\n" : '';
381
- $element['_render']['label'] = isset( $element['#title'] ) ? '<label class="'
382
- . $this->css_class . '-label ' . $this->css_class . '-'
383
- . $element['#type'] . '-label" for="' . $element['#id'] . '">'
384
- . stripslashes( $element['#title'] )
385
- . '</label>' . "\r\n" : '';
386
- $element['_render']['title'] = $this->_setElementTitle( $element );
387
- $element['_render']['description'] = !empty( $element['#description'] ) ? $this->_setElementDescription( $element ) : '';
388
- $element['_render']['error'] = $this->renderError( $element ) . "\r\n";
389
-
390
- return $element;
391
- }
392
-
393
- /**
394
- * Applies pattern to output.
395
- *
396
- * Pass element property #pattern to get custom renedered element.
397
- *
398
- * @param array $pattern
399
- * Accepts: <prefix><suffix><label><title><desription><error>
400
- * @param array $element
401
- */
402
- private function _pattern( $pattern, $element )
403
- {
404
- foreach ( $element['_render'] as $key => $value ) {
405
- $pattern = str_replace( '<' . strtoupper( $key ) . '>', $value,
406
- $pattern );
407
- }
408
- return $pattern;
409
- }
410
-
411
- /**
412
- * Wrapps element in <div></div>.
413
- *
414
- * @param arrat $element
415
- * @param string $output
416
- * @return string
417
- */
418
- private function _wrapElement( $element, $output )
419
- {
420
- if ( empty( $element['#inline'] ) ) {
421
- $wrapped = '<div id="' . $element['#id'] . '-wrapper"'
422
- . ' class="form-item form-item-' . $element['#type'] . ' '
423
- . $this->css_class . '-item '
424
- . $this->css_class . '-item-' . $element['#type']
425
- . '">' . $output . '</div>';
426
- return $wrapped;
427
- }
428
- return $output;
429
- }
430
-
431
- /**
432
- * Returns HTML formatted output for element's title.
433
- *
434
- * @param string $element
435
- * @return string
436
- */
437
- private function _setElementTitle( $element )
438
- {
439
- $output = '';
440
- if ( isset( $element['#title'] ) ) {
441
- $output .= '<div class="title '
442
- . $this->css_class . '-title '
443
- . $this->css_class . '-title-' . $element['#type'] . ' '
444
- . 'title-' . $element['#type'] . '">'
445
- . stripslashes( $element['#title'] )
446
- . "</div>\r\n";
447
- }
448
- return $output;
449
- }
450
-
451
- /**
452
- * Returns HTML formatted output for element's description.
453
- *
454
- * @param array $element
455
- * @return string
456
- */
457
- private function _setElementDescription( $element )
458
- {
459
- $element['#description'] = stripslashes( $element['#description'] );
460
- $output = "\r\n"
461
- . '<div class="description '
462
- . $this->css_class . '-description '
463
- . $this->css_class . '-description-' . $element['#type'] . ' '
464
- . 'description-' . $element['#type'] . '">'
465
- . $element['#description'] . "</div>\r\n";
466
- return $output;
467
- }
468
-
469
- /**
470
- * Returns HTML formatted element's error message.
471
- *
472
- * Pass #supress_errors in #form element to avoid error rendering.
473
- *
474
- * @param array $element
475
- * @return string
476
- */
477
- public function renderError( $element )
478
- {
479
- if ( !isset( $element['#error'] ) ) {
480
- return '';
481
- }
482
- $output = '<div class="form-error '
483
- . $this->css_class . '-error '
484
- . $this->css_class . '-form-error '
485
- . $this->css_class . '-' . $element['#type'] . '-error '
486
- . $element['#type'] . '-error form-error-label'
487
- . '">' . $element['#error'] . '</div>'
488
- . "\r\n";
489
- return $output;
490
- }
491
-
492
- /**
493
- * Returns HTML formatted output for fieldset.
494
- *
495
- * @param array $element
496
- * @param string $action open|close|wrap
497
- * @param string $wrap_content HTML formatted output of child elements
498
- * @return string
499
- */
500
- public function fieldset( $element, $action = 'open', $wrap_content = '' )
501
- {
502
- $collapsible_open = '<div class="fieldset-wrapper">';
503
- $collapsible_close = '</div>';
504
- $legend_class = '';
505
- if ( !isset( $element['#id'] ) ) {
506
- $element['#id'] = 'fieldset-' . $this->_count( 'fieldset' );
507
- }
508
- if ( !isset( $element['_attributes_string'] ) ) {
509
- $element['_attributes_string'] = $this->_setElementAttributes( $element );
510
- }
511
- if ( (isset( $element['#collapsible'] ) && $element['#collapsible'])
512
- || (isset( $element['#collapsed'] ) && $element['#collapsed']) ) {
513
- $collapsible_open = '<div class="collapsible fieldset-wrapper">';
514
- $collapsible_close = '</div>';
515
- $legend_class = ' class="legend-expanded"';
516
- }
517
- if ( isset( $element['#collapsed'] ) && $element['#collapsed'] ) {
518
- $collapsible_open = str_replace( 'class="', 'class="collapsed ',
519
- $collapsible_open );
520
- $legend_class = ' class="legend-collapsed"';
521
- }
522
- $output = '';
523
- switch ( $action ) {
524
- case 'close':
525
- $output .= $collapsible_close . "</fieldset>\r\n";
526
- $output .= isset( $element['#suffix'] ) ? $element['#suffix']
527
- . "\r\n" : '';
528
- $output .= "\n\r";
529
- break;
530
-
531
- case 'open':
532
- $output .= $collapsible_open;
533
- $output .= isset( $element['#prefix'] ) ? $element['#prefix']
534
- . "\r\n" : '';
535
- $output .= '<fieldset' . $element['_attributes_string']
536
- . ' id="' . $element['#id'] . '">' . "\r\n";
537
- $output .= isset( $element['#title'] ) ? '<legend'
538
- . $legend_class . '>'
539
- . stripslashes( $element['#title'] )
540
- . "</legend>\r\n" : '';
541
- $output .=
542
- !empty( $element['#description'] ) ? $this->_setElementDescription( $element ) : '';
543
- $output .= "\n\r";
544
- break;
545
-
546
- case 'wrap':
547
- if ( !empty( $wrap_content ) ) {
548
- $output .= isset( $element['#prefix'] ) ? $element['#prefix'] : '';
549
- $output .= '<fieldset' . $element['_attributes_string']
550
- . ' id="' . $element['#id'] . '">' . "\r\n";
551
- $output .= '<legend' . $legend_class . '>'
552
- . stripslashes( $element['#title'] )
553
- . "</legend>\r\n"
554
- . $collapsible_open;
555
- $output .=!empty( $element['#description'] ) ? $this->_setElementDescription( $element ) : '';
556
- $output .= $wrap_content . $collapsible_close
557
- . "</fieldset>\r\n";
558
- $output .=
559
- isset( $element['#suffix'] ) ? $element['#suffix'] : '';
560
- $output .= "\n\r";
561
- }
562
- break;
563
- }
564
- return $output;
565
- }
566
-
567
- /**
568
- * Returns HTML formatted output for checkbox element.
569
- *
570
- * @param array $element
571
- * @return string
572
- */
573
- public function checkbox( $element )
574
- {
575
- $element['#type'] = 'checkbox';
576
- $element = $this->_setRender( $element );
577
- $element['_render']['element'] = '<input type="checkbox" id="'
578
- . $element['#id'] . '" name="'
579
- . $element['#name'] . '" value="';
580
- // Specific: if value is empty force 1 to be rendered
581
- $element['_render']['element'] .=
582
- !empty( $element['#value'] ) ? htmlspecialchars( $element['#value'] ) : 1;
583
- $element['_render']['element'] .= '"' . $element['_attributes_string'];
584
- $element['_render']['element'] .= ((!$this->isSubmitted()
585
- && !empty( $element['#default_value'] ))
586
- || ($this->isSubmitted()
587
- && !empty( $element['#value'] ))) ? ' checked="checked"' : '';
588
- // Removed because not checkboxes can be disabled
589
- // if ( !empty( $element['#attributes']['disabled'] ) || !empty( $element['#disable'] ) ) {
590
- // $element['_render']['element'] .= ' onclick="javascript:return false; if(this.checked == 1){this.checked=1; return true;}else{this.checked=0; return false;}"';
591
- // }
592
- $element['_render']['element'] .= ' />';
593
- $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><PREFIX><ELEMENT>&nbsp;<LABEL><ERROR><SUFFIX><DESCRIPTION><AFTER>';
594
- $output = $this->_pattern( $pattern, $element );
595
- $output = $this->_wrapElement( $element, $output );
596
- return $output . "\r\n";
597
- }
598
-
599
- /**
600
- * Returns HTML formatted output for checkboxes element.
601
- *
602
- * Renders more than one checkboxes provided as elements in '#options'
603
- * array element.
604
- *
605
- * @param array $element
606
- * @return string
607
- */
608
- public function checkboxes( $element )
609
- {
610
- $element['#type'] = 'checkboxes';
611
- $element = $this->_setRender( $element );
612
- $clone = $element;
613
- $clone['#type'] = 'checkbox';
614
- $element['_render']['element'] = '';
615
- foreach ( $element['#options'] as $ID => $value ) {
616
- if ( !is_array( $value ) ) {
617
- $value = array('#title' => $ID, '#value' => $value, '#name' => $element['#name'] . '[]');
618
- }
619
- $element['_render']['element'] .= $this->checkbox( $value );
620
- }
621
- $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><PREFIX><TITLE><DESCRIPTION><ELEMENT><SUFFIX><AFTER>';
622
- $output = $this->_pattern( $pattern, $element );
623
- $output = $this->_wrapElement( $element, $output );
624
- return $output;
625
- }
626
-
627
- /**
628
- * Returns HTML formatted output for radio element.
629
- *
630
- * @param array $element
631
- * @return string
632
- */
633
- public function radio( $element )
634
- {
635
- $element['#type'] = 'radio';
636
- $element = $this->_setRender( $element );
637
- $element['_render']['element'] = '<input type="radio" id="'
638
- . $element['#id'] . '" name="'
639
- . $element['#name'] . '" value="';
640
- $element['_render']['element'] .= isset( $element['#value'] ) ? htmlspecialchars( $element['#value'] ) : $this->_count['radio'];
641
- $element['_render']['element'] .= '"';
642
- $element['_render']['element'] .= $element['_attributes_string'];
643
- $element['_render']['element'] .= ( isset( $element['#value'] )
644
- && $element['#value'] === $element['#default_value']) ? ' checked="checked"' : '';
645
- if ( isset( $element['#disable'] ) && $element['#disable'] ) {
646
- $element['_render']['element'] .= ' disabled="disabled"';
647
- }
648
- $element['_render']['element'] .= ' />';
649
- $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><PREFIX><ELEMENT>&nbsp;<LABEL><ERROR><SUFFIX><DESCRIPTION><AFTER>';
650
- $output = $this->_pattern( $pattern, $element );
651
- $output = $this->_wrapElement( $element, $output );
652
- return $output . "\r\n";
653
- }
654
-
655
- /**
656
- * Returns HTML formatted output for radios elements.
657
- *
658
- * Radios are provided via #options array.
659
- * Requires #name value.
660
- *
661
- * @param array $element
662
- * @return string
663
- */
664
- public function radios( $element )
665
- {
666
- if ( !isset( $element['#name'] ) || empty( $element['#name'] ) ) {
667
- return FALSE;
668
- }
669
- $element['#type'] = 'radios';
670
- $element = $this->_setRender( $element );
671
- $element['_render']['element'] = '';
672
- foreach ( $element['#options'] as $ID => $value ) {
673
- $this->_count( 'radio' );
674
- if ( !is_array( $value ) ) {
675
- $value = array('#title' => $ID, '#value' => $value);
676
- $value['#inline'] = true;
677
- $value['#after'] = '<br />';
678
- }
679
- $value['#name'] = $element['#name'];
680
- $value['#default_value'] = isset( $element['#default_value'] ) ? $element['#default_value'] : $value['#value'];
681
- $value['#disable'] = isset( $element['#disable'] ) ? $element['#disable'] : false;
682
- $element['_render']['element'] .= $this->radio( $value );
683
- }
684
- $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><PREFIX><TITLE><DESCRIPTION><ELEMENT><SUFFIX><AFTER>';
685
- $output = $this->_pattern( $pattern, $element );
686
- $output = $this->_wrapElement( $element, $output );
687
- return $output;
688
- }
689
-
690
- /**
691
- * Returns HTML formatted output for select element.
692
- *
693
- * @param array $element
694
- * @return string
695
- */
696
- public function select( $element )
697
- {
698
- $element['#type'] = 'select';
699
- $element = $this->_setRender( $element );
700
- $element['_render']['element'] = '<select id="' . $element['#id']
701
- . '" name="' . $element['#name'] . '"'
702
- . $element['_attributes_string'] . ">\r\n";
703
- $count = 1;
704
- foreach ( $element['#options'] as $id => $value ) {
705
- if ( !is_array( $value ) ) {
706
- $value = array('#title' => $id, '#value' => $value);
707
- }
708
- if ( !isset( $value['#value'] ) ) {
709
- $value['#value'] = $this->_count['select'] . '-' . $count;
710
- $count += 1;
711
- }
712
- $value['#type'] = 'option';
713
- $element['_render']['element'] .= '<option value="'
714
- . htmlspecialchars( $value['#value'] ) . '"';
715
- $element['_render']['element'] .= ( $element['#default_value']
716
- == $value['#value']) ? ' selected="selected"' : '';
717
- $element['_render']['element'] .= $this->_setElementAttributes( $value );
718
- $element['_render']['element'] .= '>';
719
- $element['_render']['element'] .= $this->strip( isset( $value['#title'] ) ? $value['#title'] : $value['#value'] );
720
- $element['_render']['element'] .= "</option>\r\n";
721
- }
722
- $element['_render']['element'] .= "</select>\r\n";
723
- $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><LABEL><DESCRIPTION><ERROR><PREFIX><ELEMENT><SUFFIX><AFTER>';
724
- $output = $this->_pattern( $pattern, $element );
725
- $output = $this->_wrapElement( $element, $output );
726
- return $output;
727
- }
728
-
729
- /**
730
- * Returns HTML formatted output for textfield element.
731
- *
732
- * @param array $element
733
- * @return string
734
- */
735
- public function textfield( $element )
736
- {
737
- $element['#type'] = 'textfield';
738
- $element = $this->_setRender( $element );
739
- $element['_render']['element'] = '<input type="text" id="'
740
- . $element['#id'] . '" name="' . $element['#name'] . '" value="';
741
- $element['_render']['element'] .= isset( $element['#value'] ) ? htmlspecialchars( stripslashes( $element['#value'] ) ) : '';
742
- $element['_render']['element'] .= '"' . $element['_attributes_string'];
743
- if ( isset( $element['#disable'] ) && $element['#disable'] ) {
744
- $element['_render']['element'] .= ' disabled="disabled"';
745
- }
746
- $element['_render']['element'] .= ' />';
747
- $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><LABEL><ERROR><PREFIX><ELEMENT><SUFFIX><DESCRIPTION><AFTER>';
748
- $output = $this->_pattern( $pattern, $element );
749
- $output = $this->_wrapElement( $element, $output );
750
- return $output . "\r\n";
751
- }
752
-
753
- /**
754
- * Returns HTML formatted output for textfield element.
755
- *
756
- * @param array $element
757
- * @return string
758
- */
759
- public function password( $element )
760
- {
761
- $element['#type'] = 'password';
762
- $element = $this->_setRender( $element );
763
- $element['_render']['element'] = '<input type="password" id="'
764
- . $element['#id'] . '" name="' . $element['#name'] . '" value="';
765
- $element['_render']['element'] .= isset( $element['#value'] ) ? $element['#value'] : '';
766
- $element['_render']['element'] .= '"' . $element['_attributes_string'];
767
- if ( isset( $element['#disable'] ) && $element['#disable'] ) {
768
- $element['_render']['element'] .= ' disabled="disabled"';
769
- }
770
- $element['_render']['element'] .= ' />';
771
- $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><LABEL><ERROR><PREFIX><ELEMENT><SUFFIX><DESCRIPTION><AFTER>';
772
- $output = $this->_pattern( $pattern, $element );
773
- $output = $this->_wrapElement( $element, $output );
774
- return $output . "\r\n";
775
- }
776
-
777
- /**
778
- * Returns HTML formatted output for textarea element.
779
- *
780
- * @param array $element
781
- * @return string
782
- */
783
- public function textarea( $element )
784
- {
785
- $element['#type'] = 'textarea';
786
- if ( !isset( $element['#attributes']['rows'] ) ) {
787
- $element['#attributes']['rows'] = 5;
788
- }
789
- if ( !isset( $element['#attributes']['cols'] ) ) {
790
- $element['#attributes']['cols'] = 1;
791
- }
792
- $element = $this->_setRender( $element );
793
- $element['_render']['element'] = '<textarea id="' . $element['#id']
794
- . '" name="' . $element['#name'] . '"'
795
- . $element['_attributes_string'] . '>';
796
- $element['_render']['element'] .= isset( $element['#value'] ) ? htmlspecialchars( stripslashes( $element['#value'] ) ) : '';
797
- $element['_render']['element'] .= '</textarea>' . "\r\n";
798
- $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><LABEL><DESCRIPTION><ERROR><PREFIX><ELEMENT><SUFFIX><AFTER>';
799
- $output = $this->_pattern( $pattern, $element );
800
- $output = $this->_wrapElement( $element, $output );
801
- return $output . "\r\n";
802
- }
803
-
804
- /**
805
- * Returns HTML formatted output for file upload element.
806
- *
807
- * @param array $element
808
- * @return string
809
- */
810
- public function file( $element )
811
- {
812
- $element['#type'] = 'file';
813
- $element = $this->_setRender( $element );
814
- $element['_render']['element'] = '<input type="file" id="'
815
- . $element['#id'] . '" name="' . $element['#name'] . '"'
816
- . $element['_attributes_string'];
817
- if ( isset( $element['#disable'] ) && $element['#disable'] ) {
818
- $element['_render']['element'] .= ' disabled="disabled"';
819
- }
820
- $element['_render']['element'] .= ' />';
821
- $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><LABEL><ERROR><PREFIX><ELEMENT><DESCRIPTION><SUFFIX><AFTER>';
822
- $output = $this->_pattern( $pattern, $element );
823
- $output = $this->_wrapElement( $element, $output );
824
- return $output;
825
- }
826
-
827
- /**
828
- * Returns HTML formatted output for markup element.
829
- *
830
- * @param array $element
831
- * @return string
832
- */
833
- public function markup( $element )
834
- {
835
- return $element['#markup'];
836
- }
837
-
838
- /**
839
- * Returns HTML formatted output for hidden element.
840
- *
841
- * @param array $element
842
- * @return string
843
- */
844
- public function hidden( $element )
845
- {
846
- $element['#type'] = 'hidden';
847
- $element = $this->_setRender( $element );
848
- $output = '<input type="hidden" ';
849
- foreach( array('id', 'name' ) as $key ) {
850
- $output .= sprintf( '%s="%s" ', $key, $element['#'.$key] );
851
- }
852
- $output .= sprintf( 'value="%s" ', isset( $element['#value'] ) ? $element['#value'] : 1 );
853
- $output .= $element['_attributes_string'];
854
- $output .= ' />';
855
- return $output;
856
- }
857
-
858
- /**
859
- * Returns HTML formatted output for reset button element.
860
- *
861
- * @param array $element
862
- * @return string
863
- */
864
- public function reset( $element )
865
- {
866
- return $this->submit( $element, 'reset', 'Reset' );
867
- }
868
-
869
- /**
870
- * Returns HTML formatted output for button element.
871
- *
872
- * @param array $element
873
- * @return string
874
- */
875
- public function button( $element )
876
- {
877
- return $this->submit( $element, 'button', 'Button' );
878
- }
879
-
880
- /**
881
- * Returns HTML formatted output for radio element.
882
- *
883
- * Used by reset and button.
884
- *
885
- * @param array $element
886
- * @param string $type
887
- * @param string $title
888
- * @return string
889
- */
890
- public function submit( $element, $type = 'submit', $title = 'Submit' )
891
- {
892
- $element['#type'] = $type;
893
- $element = $this->_setRender( $element );
894
- $element['_render']['element'] = '<input type="' . $type . '" id="'
895
- . $element['#id'] . '" name="' . $element['#name'] . '" value="';
896
- $element['_render']['element'] .= isset( $element['#value'] ) ? $element['#value'] : $title;
897
- $element['_render']['element'] .= '"' . $element['_attributes_string']
898
- . ' />';
899
- $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><PREFIX><ELEMENT><SUFFIX><AFTER>';
900
- $output = $this->_pattern( $pattern, $element );
901
- return $output;
902
- }
903
-
904
- /**
905
- * Searches and returns submitted data for element.
906
- *
907
- * @param type $element
908
- * @return type mixed
909
- */
910
- public function getSubmittedData( $element )
911
- {
912
- $name = $element['#name'];
913
- if ( strpos( $name, '[' ) === false ) {
914
- if ( $element['#type'] == 'file' ) {
915
- return $_FILES[$name]['tmp_name'];
916
- }
917
- return isset( $_REQUEST[$name] ) ? $_REQUEST[$name] : in_array( $element['#type'],
918
- array('textfield', 'textarea') ) ? '' : 0;
919
- }
920
-
921
- if ( !function_exists('getSubmittedDataTrim')) {
922
- function getSubmittedDataTrim($a)
923
- {
924
- return trim($a, ']');
925
- }
926
- }
927
-
928
- $parts = explode( '[', $name );
929
- $parts = array_map( 'getSubmittedDataTrim', $parts );
930
- if ( !isset( $_REQUEST[$parts[0]] ) ) {
931
- return in_array( $element['#type'], array('textfield', 'textarea') ) ? '' : 0;
932
- }
933
- $search = $_REQUEST[$parts[0]];
934
- for ( $index = 0; $index < count( $parts ); $index++ ) {
935
- $key = $parts[$index];
936
- // We're at the end but no data retrieved
937
- if ( !isset( $parts[$index + 1] ) ) {
938
- return in_array( $element['#type'],
939
- array('textfield', 'textarea') ) ? '' : 0;
940
- }
941
- $key_next = $parts[$index + 1];
942
- if ( $index > 0 ) {
943
- if ( !isset( $search[$key] ) ) {
944
- return in_array( $element['#type'],
945
- array('textfield', 'textarea') ) ? '' : 0;
946
- } else {
947
- $search = $search[$key];
948
- }
949
- }
950
- if ( is_array( $search ) && array_key_exists( $key_next, $search ) ) {
951
- if ( !is_array( $search[$key_next] ) ) {
952
- return $search[$key_next];
953
- }
954
- }
955
- }
956
- return 0;
957
- }
958
-
959
- private function strip($value)
960
- {
961
- if ( empty( $value ) ) {
962
- return $value;
963
- }
964
- $re = array( "/\\\\'/", '/\\\\"/' );
965
- $to = array( "'", '"' );
966
- return esc_attr( preg_replace( $re, $to, $value ) );
967
- }
968
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ * Returns HTML formatted output for elements and handles form submission.
6
+ *
7
+ *
8
+ *
9
+ * @version 1.0
10
+ */
11
+ class Enlimbo_Forms_Wpcf
12
+ {
13
+
14
+ /**
15
+ * @var string
16
+ */
17
+ private $_id;
18
+
19
+ /**
20
+ * @var array
21
+ */
22
+ private $_errors = array();
23
+
24
+ /**
25
+ * @var array
26
+ */
27
+ private $_elements = array();
28
+
29
+ /**
30
+ * Failed elements.
31
+ *
32
+ * @var type
33
+ */
34
+ private $_elements_not_valid = array();
35
+
36
+ /**
37
+ * @var array
38
+ */
39
+ private $_count = array();
40
+
41
+ /**
42
+ * @var string
43
+ */
44
+ public $css_class = 'wpcf-form';
45
+
46
+ /**
47
+ * Auto handler
48
+ *
49
+ * Renders.
50
+ *
51
+ * @param array $element
52
+ * @return HTML formatted output
53
+ */
54
+ public function autoHandle( $id, $form )
55
+ {
56
+ // Auto-add wpnonce field
57
+ $form['_wpnonce'] = array(
58
+ '#type' => 'markup',
59
+ '#markup' => wp_nonce_field( $id, '_wpnonce_wpcf', true, false )
60
+ );
61
+
62
+ $this->_id = $id;
63
+ $this->_elements = $form;
64
+
65
+ do_action( 'wpcf_form_autohandle', $id, $form, $this );
66
+ do_action( 'wpcf_form_autohandle_' . $id, $form, $this );
67
+
68
+ // get submitted data
69
+ if ( $this->isSubmitted() ) {
70
+
71
+ do_action( 'wpcf_form_autohandle_submit', $id, $form, $this );
72
+ do_action( 'wpcf_form_autohandle_submit_' . $id, $form, $this );
73
+
74
+ // check if errors (validation)
75
+ $this->validate( $this->_elements );
76
+
77
+ do_action( 'wpcf_form_autohandle_validate', $id, $form, $this );
78
+ do_action( 'wpcf_form_autohandle_validate_' . $id, $form, $this );
79
+
80
+ // callback
81
+ if ( empty( $this->_errors ) ) {
82
+
83
+ if ( isset( $form['#form']['callback'] ) ) {
84
+ if ( is_array( $form['#form']['callback'] ) ) {
85
+ foreach ( $form['#form']['callback'] as $callback ) {
86
+ if ( is_callable( $callback ) ) {
87
+ call_user_func( $callback, $this );
88
+ }
89
+ }
90
+ } else {
91
+ if ( is_callable( $form['#form']['callback'] ) ) {
92
+ call_user_func( $form['#form']['callback'], $this );
93
+ }
94
+ }
95
+ }
96
+ // Maybe triggered by callback function
97
+ if ( empty( $this->_errors ) ) {
98
+ // redirect
99
+ do_action( 'wpcf_form_autohandle_redirection', $id, $form,
100
+ $this );
101
+ do_action( 'wpcf_form_autohandle_redirection_' . $id, $form,
102
+ $this );
103
+ if ( !isset( $form['#form']['redirection'] ) ) {
104
+ header( 'Location: ' . $_SERVER['REQUEST_URI'] );
105
+ } else if ( $form['#form']['redirection'] != false ) {
106
+ header( 'Location: ' . $form['#form']['redirection'] );
107
+ }
108
+ }
109
+ }
110
+ }
111
+ }
112
+
113
+ /**
114
+ * Checks if form is submitted.
115
+ *
116
+ * @param type $id
117
+ * @return type
118
+ */
119
+ public function isSubmitted( $id = '' )
120
+ {
121
+ if ( empty( $id ) ) {
122
+ $id = $this->_id;
123
+ }
124
+ return (
125
+ isset( $_REQUEST['_wpnonce_wpcf'] )
126
+ && wp_verify_nonce( $_REQUEST['_wpnonce_wpcf'], $id )
127
+ );
128
+ }
129
+
130
+ /**
131
+ * Loops over elements and validates them.
132
+ *
133
+ * @param type $elements
134
+ */
135
+ public function validate( &$elements )
136
+ {
137
+ require_once WPCF_EMBEDDED_ABSPATH . '/classes/validate.php';
138
+ foreach ( $elements as $key => &$element ) {
139
+ if ( !isset( $element['#type'] )
140
+ || !$this->_isValidType( $element['#type'] ) ) {
141
+ continue;
142
+ }
143
+ if ( $element['#type'] != 'fieldset' ) {
144
+ if ( isset( $element['#name'] )
145
+ && !in_array( $element['#type'],
146
+ array('submit', 'reset') ) ) {
147
+ // Set submitted data
148
+ if ( !in_array( $element['#type'], array('checkboxes') )
149
+ && empty( $element['#forced_value'] ) ) {
150
+ $element['#value'] = $this->getSubmittedData( $element );
151
+ } else if ( !empty( $element['#options'] )
152
+ && empty( $element['#forced_value'] ) ) {
153
+ foreach ( $element['#options'] as $option_key => $option ) {
154
+ $option['#type'] = 'checkbox';
155
+ $element['#options'][$option_key]['#value'] = $this->getSubmittedData( $option );
156
+ }
157
+ }
158
+ }
159
+ // Validate
160
+ if ( isset( $element['#validate'] ) ) {
161
+ $this->validateElement( $element );
162
+ }
163
+ } else if ( isset( $element['#type'] )
164
+ && $element['#type'] == 'fieldset' ) {
165
+ $this->validate( $element );
166
+ } else if ( is_array( $element ) ) {
167
+ $this->validate( $element );
168
+ }
169
+ }
170
+ }
171
+
172
+ /**
173
+ * Validates element.
174
+ *
175
+ * @param type $element
176
+ */
177
+ public function validateElement( &$element )
178
+ {
179
+ $check = Wpcf_Validate::check( $element['#validate'], $element['#value'] );
180
+ if ( isset( $check['error'] ) ) {
181
+ $this->_errors = true;
182
+ $element['#error'] = $check['message'];
183
+ if ( isset( $element['wpcf-id'] ) ) {
184
+ $this->_elements_not_valid[$element['wpcf-id']] = $element;
185
+ }
186
+ }
187
+ }
188
+
189
+ /**
190
+ * Returns not valid elements.
191
+ *
192
+ * @return type
193
+ */
194
+ public function get_not_valid() {
195
+ return $this->_elements_not_valid;
196
+ }
197
+
198
+ /**
199
+ * Checks if there are errors.
200
+ *
201
+ * @return type
202
+ */
203
+ public function isError()
204
+ {
205
+ return $this->_errors;
206
+ }
207
+
208
+ /**
209
+ * Sets errors to true.
210
+ */
211
+ public function triggerError()
212
+ {
213
+ $this->_errors = true;
214
+ }
215
+
216
+ /**
217
+ * Renders form.
218
+ *
219
+ * @return type
220
+ */
221
+ public function renderForm()
222
+ {
223
+ // loop over elements and render them
224
+ return $this->renderElements( $this->_elements );
225
+ }
226
+
227
+ /**
228
+ * Counts element types.
229
+ *
230
+ * @param type $type
231
+ * @return type
232
+ */
233
+ private function _count( $type ) {
234
+ if ( !isset( $this->_count[$type] ) ) {
235
+ $this->_count[$type] = 0;
236
+ }
237
+ $this->_count[$type] += 1;
238
+ return $this->_count[$type];
239
+ }
240
+
241
+ /**
242
+ * Check if element is of valid type
243
+ *
244
+ * @param string $type
245
+ * @return boolean
246
+ */
247
+ private function _isValidType( $type )
248
+ {
249
+ return in_array(
250
+ $type,
251
+ array(
252
+ 'button',
253
+ 'checkbox',
254
+ 'checkboxes',
255
+ 'fieldset',
256
+ 'file',
257
+ 'hidden',
258
+ 'markup',
259
+ 'radio',
260
+ 'radios',
261
+ 'reset',
262
+ 'select',
263
+ 'submit',
264
+ 'textarea',
265
+ 'textfield',
266
+ 'thumbnail',
267
+ )
268
+ );
269
+ }
270
+
271
+ /**
272
+ * Renders elements.
273
+ *
274
+ * @param type $elements
275
+ * @return type
276
+ */
277
+ public function renderElements( $elements )
278
+ {
279
+ $output = '';
280
+ foreach ( $elements as $key => $element ) {
281
+ if ( !isset( $element['#type'] )
282
+ || !$this->_isValidType( $element['#type'] ) ) {
283
+ continue;
284
+ }
285
+ if ( $element['#type'] != 'fieldset' ) {
286
+ $output .= $this->renderElement( $element );
287
+ } else if ( isset( $element['#type'] )
288
+ && $element['#type'] == 'fieldset' ) {
289
+ $buffer = $this->renderElements( $element );
290
+ $output .= $this->fieldset( $element, 'wrap', $buffer );
291
+ } else if ( is_array( $element ) ) {
292
+ $output .= $this->renderElements( $element );
293
+ }
294
+ }
295
+ return $output;
296
+ }
297
+
298
+ /**
299
+ * Renders element.
300
+ *
301
+ * Depending on element type, it calls class methods.
302
+ *
303
+ * @param array $element
304
+ * @return HTML formatted output
305
+ */
306
+ public function renderElement( $element )
307
+ {
308
+ $method = $element['#type'];
309
+ if ( !isset( $element['#name'] ) && $element['#type'] != 'markup' ) {
310
+ if ( !isset( $element['#attributes']['name'] ) ) {
311
+ return '#name or #attributes[\'name\'] required!';
312
+ } else {
313
+ $element['#name'] = $element['#attributes']['name'];
314
+ }
315
+ }
316
+ if ( is_callable( array($this, $method) ) ) {
317
+ if ( !isset( $element['#id'] ) ) {
318
+ if ( isset( $element['#attributes']['id'] ) ) {
319
+ $element['#id'] = $element['#attributes']['id'];
320
+ } else {
321
+ $element['#id'] = $element['#type'] . '-' . $this->_count( $element['#type'] );
322
+ }
323
+ }
324
+ if ( isset( $this->_errors[$element['#id']] ) ) {
325
+ $element['#error'] = $this->_errors[$element['#id']];
326
+ }
327
+ // Add JS validation
328
+ if ( !empty( $element['#validate'] ) ) {
329
+ wpcf_form_add_js_validation( $element );
330
+ }
331
+ return $this->{$method}( $element );
332
+ }
333
+ }
334
+
335
+ /**
336
+ * Sets other element attributes.
337
+ *
338
+ * @param array $element
339
+ * @return string
340
+ */
341
+ private function _setElementAttributes( $element )
342
+ {
343
+ $attributes = '';
344
+ $error_class = isset( $element['#error'] ) ? ' ' . $this->css_class . '-error ' . $this->css_class . '-' . $element['#type'] . '-error ' . ' form-' . $element['#type'] . '-error ' . $element['#type'] . '-error form-error ' : '';
345
+ $class = $this->css_class . '-' . $element['#type']
346
+ . ' form-' . $element['#type'] . ' ' . $element['#type'];
347
+ // Add JS validation
348
+ // if ( !empty( $element['#validate'] ) ) {
349
+ // $class .= ' js-types-validate';
350
+ // }
351
+ if ( isset( $element['#attributes'] ) ) {
352
+ foreach ( $element['#attributes'] as $attribute => $value ) {
353
+ // Prevent undesired elements
354
+ if ( in_array( $attribute, array('id', 'name') ) ) {
355
+ continue;
356
+ }
357
+ // Don't set disabled for checkbox
358
+ // if ( $attribute == 'disabled' && $element['#type'] == 'checkbox' ) {
359
+ // continue;
360
+ // }
361
+ // Append class values
362
+ if ( $attribute == 'class' ) {
363
+ $value = $value . ' ' . $class . $error_class;
364
+ }
365
+ // Set return string
366
+ $attributes .= ' ' . $attribute . '="' . $value . '"';
367
+ }
368
+ }
369
+ if ( !isset( $element['#attributes']['class'] ) ) {
370
+ $attributes .= ' class="' . $class . $error_class . '"';
371
+ }
372
+ return $attributes;
373
+ }
374
+
375
+ /**
376
+ * Sets render elements.
377
+ *
378
+ * @param array $element
379
+ */
380
+ private function _setRender( $element )
381
+ {
382
+ if ( !isset( $element['#id'] ) ) {
383
+ if ( isset( $element['#attributes']['id'] ) ) {
384
+ $element['#id'] = $element['#attributes']['id'];
385
+ } else {
386
+ $element['#id'] = 'form-' . md5( serialize( $element ) ) . '-'
387
+ . $this->_count( $element['#type'] );
388
+ }
389
+ }
390
+ $element['_attributes_string'] = $this->_setElementAttributes( $element );
391
+ $element['_render'] = array();
392
+ $element['_render']['prefix'] = isset( $element['#prefix'] ) ? $element['#prefix'] . "\r\n" : '';
393
+ $element['_render']['suffix'] = isset( $element['#suffix'] ) ? $element['#suffix'] . "\r\n" : '';
394
+ $element['_render']['before'] = isset( $element['#before'] ) ? $element['#before'] . "\r\n" : '';
395
+ $element['_render']['after'] = isset( $element['#after'] ) ? $element['#after'] . "\r\n" : '';
396
+ /**
397
+ * label
398
+ */
399
+ $element['_render']['label'] = $lebel = '';
400
+ if (isset($element['#label'])) {
401
+ $label = $element['#label'];
402
+ } else if (isset($element['#title'])) {
403
+ $label = $element['#title'];
404
+ }
405
+ if ( !empty($label) ) {
406
+ $element['_render']['label'] = sprintf(
407
+ '<label class="%s-label %s-%s-label" for="%s">%s</label>',
408
+ esc_attr($this->css_class),
409
+ esc_attr($this->css_class),
410
+ esc_attr($element['#type']),
411
+ esc_attr($element['#id']),
412
+ stripslashes( $label )
413
+ );
414
+ }
415
+ /**
416
+ * title
417
+ */
418
+ $element['_render']['title'] = $this->_setElementTitle( $element );
419
+ $element['_render']['description'] = !empty( $element['#description'] ) ? $this->_setElementDescription( $element ) : '';
420
+ $element['_render']['error'] = $this->renderError( $element ) . "\r\n";
421
+
422
+ return $element;
423
+ }
424
+
425
+ /**
426
+ * Applies pattern to output.
427
+ *
428
+ * Pass element property #pattern to get custom renedered element.
429
+ *
430
+ * @param array $pattern
431
+ * Accepts: <prefix><suffix><label><title><desription><error>
432
+ * @param array $element
433
+ */
434
+ private function _pattern( $pattern, $element )
435
+ {
436
+ foreach ( $element['_render'] as $key => $value ) {
437
+ $pattern = str_replace( '<' . strtoupper( $key ) . '>', $value, $pattern );
438
+ }
439
+ return $pattern;
440
+ }
441
+
442
+ /**
443
+ * Wrapps element in <div></div>.
444
+ *
445
+ * @param arrat $element
446
+ * @param string $output
447
+ * @return string
448
+ */
449
+ private function _wrapElement( $element, $output )
450
+ {
451
+ if ( empty( $element['#inline'] ) ) {
452
+ $wrapped = '<div id="' . $element['#id'] . '-wrapper"'
453
+ . ' class="form-item form-item-' . $element['#type'] . ' '
454
+ . $this->css_class . '-item '
455
+ . $this->css_class . '-item-' . $element['#type']
456
+ . '">' . $output . '</div>';
457
+ return $wrapped;
458
+ }
459
+ return $output;
460
+ }
461
+
462
+ /**
463
+ * Returns HTML formatted output for element's title.
464
+ *
465
+ * @param string $element
466
+ * @return string
467
+ */
468
+ private function _setElementTitle( $element )
469
+ {
470
+ $output = '';
471
+ if ( isset( $element['#title'] ) ) {
472
+ $output .= '<div class="title '
473
+ . $this->css_class . '-title '
474
+ . $this->css_class . '-title-' . $element['#type'] . ' '
475
+ . 'title-' . $element['#type'] . '">'
476
+ . stripslashes( $element['#title'] )
477
+ . "</div>\r\n";
478
+ }
479
+ return $output;
480
+ }
481
+
482
+ /**
483
+ * Returns HTML formatted output for element's description.
484
+ *
485
+ * @param array $element
486
+ * @return string
487
+ */
488
+ private function _setElementDescription( $element )
489
+ {
490
+ $element['#description'] = stripslashes( $element['#description'] );
491
+ $output = "\r\n"
492
+ . '<p class="description '
493
+ . $this->css_class . '-description '
494
+ . $this->css_class . '-description-' . $element['#type'] . ' '
495
+ . 'description-' . $element['#type'] . '">'
496
+ . $element['#description'] . "</p>\r\n";
497
+ return $output;
498
+ }
499
+
500
+ /**
501
+ * Returns HTML formatted element's error message.
502
+ *
503
+ * Pass #supress_errors in #form element to avoid error rendering.
504
+ *
505
+ * @param array $element
506
+ * @return string
507
+ */
508
+ public function renderError( $element )
509
+ {
510
+ if ( !isset( $element['#error'] ) ) {
511
+ return '';
512
+ }
513
+ $output = '<div class="form-error '
514
+ . $this->css_class . '-error '
515
+ . $this->css_class . '-form-error '
516
+ . $this->css_class . '-' . $element['#type'] . '-error '
517
+ . $element['#type'] . '-error form-error-label'
518
+ . '">' . $element['#error'] . '</div>'
519
+ . "\r\n";
520
+ return $output;
521
+ }
522
+
523
+ /**
524
+ * Returns HTML formatted output for fieldset.
525
+ *
526
+ * @param array $element
527
+ * @param string $action open|close|wrap
528
+ * @param string $wrap_content HTML formatted output of child elements
529
+ * @return string
530
+ */
531
+ public function fieldset( $element, $action = 'open', $wrap_content = '' )
532
+ {
533
+ $collapsible_open = '<div class="fieldset-wrapper">';
534
+ $collapsible_close = '</div>';
535
+ $legend_class = '';
536
+ if ( !isset( $element['#id'] ) ) {
537
+ $element['#id'] = 'fieldset-' . $this->_count( 'fieldset' );
538
+ }
539
+ if ( !isset( $element['_attributes_string'] ) ) {
540
+ $element['_attributes_string'] = $this->_setElementAttributes( $element );
541
+ }
542
+ if ( (isset( $element['#collapsible'] ) && $element['#collapsible'])
543
+ || (isset( $element['#collapsed'] ) && $element['#collapsed']) ) {
544
+ $collapsible_open = '<div class="collapsible fieldset-wrapper">';
545
+ $collapsible_close = '</div>';
546
+ $legend_class = ' class="legend-expanded"';
547
+ }
548
+ if ( isset( $element['#collapsed'] ) && $element['#collapsed'] ) {
549
+ $collapsible_open = str_replace( 'class="', 'class="collapsed ',
550
+ $collapsible_open );
551
+ $legend_class = ' class="legend-collapsed"';
552
+ }
553
+ $output = '';
554
+ switch ( $action ) {
555
+ case 'close':
556
+ $output .= $collapsible_close . "</fieldset>\r\n";
557
+ $output .= isset( $element['#suffix'] ) ? $element['#suffix']
558
+ . "\r\n" : '';
559
+ $output .= "\n\r";
560
+ break;
561
+
562
+ case 'open':
563
+ $output .= $collapsible_open;
564
+ $output .= isset( $element['#prefix'] ) ? $element['#prefix']
565
+ . "\r\n" : '';
566
+ $output .= '<fieldset' . $element['_attributes_string']
567
+ . ' id="' . $element['#id'] . '">' . "\r\n";
568
+ $output .= isset( $element['#title'] ) ? '<legend'
569
+ . $legend_class . '>'
570
+ . stripslashes( $element['#title'] )
571
+ . "</legend>\r\n" : '';
572
+ $output .=
573
+ !empty( $element['#description'] ) ? $this->_setElementDescription( $element ) : '';
574
+ $output .= "\n\r";
575
+ break;
576
+
577
+ case 'wrap':
578
+ if ( !empty( $wrap_content ) ) {
579
+ $output .= isset( $element['#prefix'] ) ? $element['#prefix'] : '';
580
+ $output .= '<fieldset' . $element['_attributes_string']
581
+ . ' id="' . $element['#id'] . '">' . "\r\n";
582
+ $output .= '<legend' . $legend_class . '>'
583
+ . stripslashes( $element['#title'] )
584
+ . "</legend>\r\n"
585
+ . $collapsible_open;
586
+ $output .=!empty( $element['#description'] ) ? $this->_setElementDescription( $element ) : '';
587
+ $output .= $wrap_content . $collapsible_close
588
+ . "</fieldset>\r\n";
589
+ $output .=
590
+ isset( $element['#suffix'] ) ? $element['#suffix'] : '';
591
+ $output .= "\n\r";
592
+ }
593
+ break;
594
+ }
595
+ return $output;
596
+ }
597
+
598
+ /**
599
+ * Returns HTML formatted output for checkbox element.
600
+ *
601
+ * @param array $element
602
+ * @return string
603
+ */
604
+ public function checkbox( $element )
605
+ {
606
+ $element['#type'] = 'checkbox';
607
+ $element = $this->_setRender( $element );
608
+ $element['_render']['element'] = '<input type="checkbox" id="'
609
+ . $element['#id'] . '" name="'
610
+ . $element['#name'] . '" value="';
611
+ // Specific: if value is empty force 1 to be rendered
612
+ $element['_render']['element'] .=
613
+ !empty( $element['#value'] ) ? htmlspecialchars( $element['#value'] ) : 1;
614
+ $element['_render']['element'] .= '"' . $element['_attributes_string'];
615
+ $element['_render']['element'] .= ((!$this->isSubmitted()
616
+ && !empty( $element['#default_value'] ))
617
+ || ($this->isSubmitted()
618
+ && !empty( $element['#value'] ))) ? ' checked="checked"' : '';
619
+ // Removed because not checkboxes can be disabled
620
+ // if ( !empty( $element['#attributes']['disabled'] ) || !empty( $element['#disable'] ) ) {
621
+ // $element['_render']['element'] .= ' onclick="javascript:return false; if(this.checked == 1){this.checked=1; return true;}else{this.checked=0; return false;}"';
622
+ // }
623
+ $element['_render']['element'] .= ' />';
624
+ $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><PREFIX><ELEMENT>&nbsp;<LABEL><ERROR><SUFFIX><DESCRIPTION><AFTER>';
625
+ $output = $this->_pattern( $pattern, $element );
626
+ $output = $this->_wrapElement( $element, $output );
627
+ return $output . "\r\n";
628
+ }
629
+
630
+ /**
631
+ * Returns HTML formatted output for checkboxes element.
632
+ *
633
+ * Renders more than one checkboxes provided as elements in '#options'
634
+ * array element.
635
+ *
636
+ * @param array $element
637
+ * @return string
638
+ */
639
+ public function checkboxes( $element )
640
+ {
641
+ $element['#type'] = 'checkboxes';
642
+ $element = $this->_setRender( $element );
643
+ $clone = $element;
644
+ $clone['#type'] = 'checkbox';
645
+ $element['_render']['element'] = '';
646
+ if ( isset($element['#options']) && !empty($element['#options'] ) ) {
647
+ foreach ( $element['#options'] as $ID => $value ) {
648
+ if ( !is_array( $value ) ) {
649
+ $value = array('#title' => $ID, '#value' => $value, '#name' => $element['#name'] . '[]');
650
+ }
651
+ $element['_render']['element'] .= $this->checkbox( $value );
652
+ }
653
+ }
654
+ $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><PREFIX><TITLE><DESCRIPTION><ELEMENT><SUFFIX><AFTER>';
655
+ $output = $this->_pattern( $pattern, $element );
656
+ $output = $this->_wrapElement( $element, $output );
657
+ return $output;
658
+ }
659
+
660
+ /**
661
+ * Returns HTML formatted output for radio element.
662
+ *
663
+ * @param array $element
664
+ * @return string
665
+ */
666
+ public function radio( $element )
667
+ {
668
+ $element['#type'] = 'radio';
669
+ $element = $this->_setRender( $element );
670
+ $element['_render']['element'] = '<input type="radio" id="'
671
+ . $element['#id'] . '" name="'
672
+ . $element['#name'] . '" value="';
673
+ $element['_render']['element'] .= isset( $element['#value'] ) ? htmlspecialchars( $element['#value'] ) : $this->_count['radio'];
674
+ $element['_render']['element'] .= '"';
675
+ $element['_render']['element'] .= $element['_attributes_string'];
676
+ /**
677
+ * checked
678
+ */
679
+ if (
680
+ isset( $element['#value'] )
681
+ && (
682
+ $element['#value'] === $element['#default_value']
683
+ || (
684
+ is_string($element['#value'])
685
+ && '0' == $element['#value']
686
+ && is_numeric($element['#default_value'])
687
+ && 0 == $element['#default_value']
688
+ )
689
+ )
690
+ ) {
691
+ $element['_render']['element'] .= ' checked="checked"';
692
+ }
693
+ if ( isset( $element['#disable'] ) && $element['#disable'] ) {
694
+ $element['_render']['element'] .= ' disabled="disabled"';
695
+ }
696
+ $element['_render']['element'] .= ' />';
697
+ $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><PREFIX><ELEMENT>&nbsp;<LABEL><ERROR><SUFFIX><DESCRIPTION><AFTER>';
698
+ $output = $this->_pattern( $pattern, $element );
699
+ $output = $this->_wrapElement( $element, $output );
700
+ return $output . "\r\n";
701
+ }
702
+
703
+ /**
704
+ * Returns HTML formatted output for radios elements.
705
+ *
706
+ * Radios are provided via #options array.
707
+ * Requires #name value.
708
+ *
709
+ * @param array $element
710
+ * @return string
711
+ */
712
+ public function radios( $element )
713
+ {
714
+ if ( !isset( $element['#name'] ) || empty( $element['#name'] ) ) {
715
+ return FALSE;
716
+ }
717
+ $element['#type'] = 'radios';
718
+ $element = $this->_setRender( $element );
719
+ $element['_render']['element'] = '';
720
+ foreach ( $element['#options'] as $ID => $value ) {
721
+ $this->_count( 'radio' );
722
+ if ( !is_array( $value ) ) {
723
+ $value = array('#title' => $ID, '#value' => $value);
724
+ $value['#inline'] = true;
725
+ $value['#after'] = '<br />';
726
+ }
727
+ $value['#name'] = $element['#name'];
728
+ $value['#default_value'] = isset( $element['#default_value'] ) ? $element['#default_value'] : $value['#value'];
729
+ $value['#disable'] = isset( $element['#disable'] ) ? $element['#disable'] : false;
730
+ $element['_render']['element'] .= $this->radio( $value );
731
+ }
732
+ $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><PREFIX><TITLE><DESCRIPTION><ELEMENT><SUFFIX><AFTER>';
733
+ $output = $this->_pattern( $pattern, $element );
734
+ $output = $this->_wrapElement( $element, $output );
735
+ return $output;
736
+ }
737
+
738
+ /**
739
+ * Returns HTML formatted output for select element.
740
+ *
741
+ * @param array $element
742
+ * @return string
743
+ */
744
+ public function select( $element )
745
+ {
746
+ $element['#type'] = 'select';
747
+ $element = $this->_setRender( $element );
748
+ $element['_render']['element'] = '<select id="' . $element['#id']
749
+ . '" name="' . $element['#name'] . '"'
750
+ . $element['_attributes_string'] . ">\r\n";
751
+ $count = 1;
752
+ foreach ( $element['#options'] as $id => $value ) {
753
+ if ( !is_array( $value ) ) {
754
+ $value = array('#title' => $id, '#value' => $value);
755
+ }
756
+ if ( !isset( $value['#value'] ) ) {
757
+ $value['#value'] = $this->_count['select'] . '-' . $count;
758
+ $count += 1;
759
+ }
760
+ $value['#type'] = 'option';
761
+ $element['_render']['element'] .= '<option value="'
762
+ . htmlspecialchars( $value['#value'] ) . '"';
763
+ $element['_render']['element'] .= ( isset($element['#default_value']) && $element['#default_value'] == $value['#value']) ? ' selected="selected"' : '';
764
+ $element['_render']['element'] .= $this->_setElementAttributes( $value );
765
+ $element['_render']['element'] .= '>';
766
+ $element['_render']['element'] .= $this->strip( isset( $value['#title'] ) ? $value['#title'] : $value['#value'] );
767
+ $element['_render']['element'] .= "</option>\r\n";
768
+ }
769
+ $element['_render']['element'] .= "</select>\r\n";
770
+ $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><LABEL><DESCRIPTION><ERROR><PREFIX><ELEMENT><SUFFIX><AFTER>';
771
+ $output = $this->_pattern( $pattern, $element );
772
+ $output = $this->_wrapElement( $element, $output );
773
+ return $output;
774
+ }
775
+
776
+ /**
777
+ * Returns HTML formatted output for textfield element.
778
+ *
779
+ * @param array $element
780
+ * @return string
781
+ */
782
+ public function textfield( $element )
783
+ {
784
+ $element['#type'] = 'textfield';
785
+ $element = $this->_setRender( $element );
786
+ $element['_render']['element'] = '<input type="text" id="'
787
+ . $element['#id'] . '" name="' . $element['#name'] . '" value="';
788
+ $element['_render']['element'] .= isset( $element['#value'] ) ? htmlspecialchars( stripslashes( $element['#value'] ) ) : '';
789
+ $element['_render']['element'] .= '"' . $element['_attributes_string'];
790
+ if ( isset( $element['#disable'] ) && $element['#disable'] ) {
791
+ $element['_render']['element'] .= ' disabled="disabled"';
792
+ }
793
+ $element['_render']['element'] .= ' />';
794
+ $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><LABEL><ERROR><PREFIX><ELEMENT><SUFFIX><DESCRIPTION><AFTER>';
795
+ $output = $this->_pattern( $pattern, $element );
796
+ $output = $this->_wrapElement( $element, $output );
797
+ return $output . "\r\n";
798
+ }
799
+
800
+ /**
801
+ * Returns HTML formatted output for textfield element.
802
+ *
803
+ * @param array $element
804
+ * @return string
805
+ */
806
+ public function password( $element )
807
+ {
808
+ $element['#type'] = 'password';
809
+ $element = $this->_setRender( $element );
810
+ $element['_render']['element'] = '<input type="password" id="'
811
+ . $element['#id'] . '" name="' . $element['#name'] . '" value="';
812
+ $element['_render']['element'] .= isset( $element['#value'] ) ? $element['#value'] : '';
813
+ $element['_render']['element'] .= '"' . $element['_attributes_string'];
814
+ if ( isset( $element['#disable'] ) && $element['#disable'] ) {
815
+ $element['_render']['element'] .= ' disabled="disabled"';
816
+ }
817
+ $element['_render']['element'] .= ' />';
818
+ $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><LABEL><ERROR><PREFIX><ELEMENT><SUFFIX><DESCRIPTION><AFTER>';
819
+ $output = $this->_pattern( $pattern, $element );
820
+ $output = $this->_wrapElement( $element, $output );
821
+ return $output . "\r\n";
822
+ }
823
+
824
+ /**
825
+ * Returns HTML formatted output for textarea element.
826
+ *
827
+ * @param array $element
828
+ * @return string
829
+ */
830
+ public function textarea( $element )
831
+ {
832
+ $element['#type'] = 'textarea';
833
+ if ( !isset( $element['#attributes']['rows'] ) ) {
834
+ $element['#attributes']['rows'] = 5;
835
+ }
836
+ if ( !isset( $element['#attributes']['cols'] ) ) {
837
+ $element['#attributes']['cols'] = 1;
838
+ }
839
+ $element = $this->_setRender( $element );
840
+ $element['_render']['element'] = '<textarea id="' . $element['#id']
841
+ . '" name="' . $element['#name'] . '"'
842
+ . $element['_attributes_string'] . '>';
843
+ $element['_render']['element'] .= isset( $element['#value'] ) ? htmlspecialchars( stripslashes( $element['#value'] ) ) : '';
844
+ $element['_render']['element'] .= '</textarea>' . "\r\n";
845
+ $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><LABEL><DESCRIPTION><ERROR><PREFIX><ELEMENT><SUFFIX><AFTER>';
846
+ $output = $this->_pattern( $pattern, $element );
847
+ $output = $this->_wrapElement( $element, $output );
848
+ return $output . "\r\n";
849
+ }
850
+
851
+ /**
852
+ * Returns HTML formatted output for file upload element.
853
+ *
854
+ * @param array $element
855
+ * @return string
856
+ */
857
+ public function file( $element )
858
+ {
859
+ $element['#type'] = 'file';
860
+ $element = $this->_setRender( $element );
861
+ $element['_render']['element'] = '<input type="file" id="'
862
+ . $element['#id'] . '" name="' . $element['#name'] . '"'
863
+ . $element['_attributes_string'];
864
+ if ( isset( $element['#disable'] ) && $element['#disable'] ) {
865
+ $element['_render']['element'] .= ' disabled="disabled"';
866
+ }
867
+ $element['_render']['element'] .= ' />';
868
+ $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><LABEL><ERROR><PREFIX><ELEMENT><DESCRIPTION><SUFFIX><AFTER>';
869
+ $output = $this->_pattern( $pattern, $element );
870
+ $output = $this->_wrapElement( $element, $output );
871
+ return $output;
872
+ }
873
+
874
+ /**
875
+ * Returns HTML formatted output for markup element.
876
+ *
877
+ * @param array $element
878
+ * @return string
879
+ */
880
+ public function markup( $element )
881
+ {
882
+ if ( isset( $element['#pattern'] ) ) {
883
+ $element['_render']['label'] = isset($element['#title'])? $element['#title']:__('[no title]', 'wpcf');
884
+ $element['_render']['element'] = isset($element['#markup'])? $element['#markup']:'';
885
+ return $this->_pattern( $element['#pattern'], $element );
886
+ }
887
+ if ( isset($element['#markup'] ) ) {
888
+ return $element['#markup'];
889
+ }
890
+ return '';
891
+ }
892
+
893
+ /**
894
+ * Returns HTML formatted output for hidden element.
895
+ *
896
+ * @param array $element
897
+ * @return string
898
+ */
899
+ public function hidden( $element )
900
+ {
901
+ $element['#type'] = 'hidden';
902
+ $element = $this->_setRender( $element );
903
+ $output = '<input type="hidden" ';
904
+ foreach( array('id', 'name' ) as $key ) {
905
+ $output .= sprintf( '%s="%s" ', $key, $element['#'.$key] );
906
+ }
907
+ $output .= sprintf( 'value="%s" ', isset( $element['#value'] ) ? $element['#value'] : 1 );
908
+ $output .= $element['_attributes_string'];
909
+ $output .= ' />';
910
+ if ( isset( $element['#after'] ) ) {
911
+ $output .= $element['#after'];
912
+ }
913
+ return $output;
914
+ }
915
+
916
+ /**
917
+ * Returns HTML formatted output for reset button element.
918
+ *
919
+ * @param array $element
920
+ * @return string
921
+ */
922
+ public function reset( $element )
923
+ {
924
+ return $this->submit( $element, 'reset', 'Reset' );
925
+ }
926
+
927
+ /**
928
+ * Returns HTML formatted output for button element.
929
+ *
930
+ * @param array $element
931
+ * @return string
932
+ */
933
+ public function button( $element )
934
+ {
935
+ return $this->submit( $element, 'button', 'Button' );
936
+ }
937
+
938
+ /**
939
+ * Returns HTML formatted output for thumbnail element.
940
+ *
941
+ * @param array $element
942
+ * @return string
943
+ */
944
+ public function thumbnail( $element )
945
+ {
946
+ /**
947
+ * allowed only on admin
948
+ */
949
+ if ( !is_admin() ) {
950
+ return '';
951
+ }
952
+ global $post;
953
+ if ( is_object($post) ) {
954
+ wp_enqueue_media(array('post' => $post->ID));
955
+ }
956
+
957
+ $image = $element['#value']? wp_get_attachment_image($element['#value']):'';
958
+ $element['#attributes'] = array(
959
+ 'class' => 'feature-image-id',
960
+ );
961
+ $element['#after'] = sprintf(
962
+ '<div class="wpt-file-preview">%s</div><a href="#" id="%s_media" class="feature-image" data-set="%s" data-remove="%s" data-value="%d" data-wpt-type="image">%s</a>',
963
+ $image,
964
+ $element['#id'],
965
+ __('Set featured image', 'wpcf'),
966
+ __('Remove featured image', 'wpcf'),
967
+ $element['#value']? $element['#value']:0,
968
+ $image? __('Remove featured image', 'wpcf'):__('Set featured image', 'wpcf')
969
+ );
970
+ return $this->hidden($element);
971
+ }
972
+
973
+ /**
974
+ * Returns HTML formatted output for submit element.
975
+ *
976
+ * Used by reset and button.
977
+ *
978
+ * @param array $element
979
+ * @param string $type
980
+ * @param string $title
981
+ * @return string
982
+ */
983
+ public function submit( $element, $type = 'submit', $title = 'Submit' )
984
+ {
985
+ $element['#type'] = $type;
986
+ $element = $this->_setRender( $element );
987
+ $element['_render']['element'] = '<input type="' . $type . '" id="'
988
+ . $element['#id'] . '" name="' . $element['#name'] . '" value="';
989
+ $element['_render']['element'] .= isset( $element['#value'] ) ? $element['#value'] : $title;
990
+ $element['_render']['element'] .= '"' . $element['_attributes_string']
991
+ . ' />';
992
+ $pattern = isset( $element['#pattern'] ) ? $element['#pattern'] : '<BEFORE><PREFIX><ELEMENT><SUFFIX><AFTER>';
993
+ $output = $this->_pattern( $pattern, $element );
994
+ return $output;
995
+ }
996
+
997
+
998
+ /**
999
+ * Searches and returns submitted data for element.
1000
+ *
1001
+ * @param type $element
1002
+ * @return type mixed
1003
+ */
1004
+ public function getSubmittedData( $element )
1005
+ {
1006
+ $name = $element['#name'];
1007
+ if ( strpos( $name, '[' ) === false ) {
1008
+ if ( $element['#type'] == 'file' ) {
1009
+ return $_FILES[$name]['tmp_name'];
1010
+ }
1011
+ return isset( $_REQUEST[$name] ) ? $_REQUEST[$name] : in_array( $element['#type'],
1012
+ array('textfield', 'textarea') ) ? '' : 0;
1013
+ }
1014
+
1015
+ if ( !function_exists('getSubmittedDataTrim')) {
1016
+ function getSubmittedDataTrim($a)
1017
+ {
1018
+ return trim($a, ']');
1019
+ }
1020
+ }
1021
+
1022
+ $parts = explode( '[', $name );
1023
+ $parts = array_map( 'getSubmittedDataTrim', $parts );
1024
+ if ( !isset( $_REQUEST[$parts[0]] ) ) {
1025
+ return in_array( $element['#type'], array('textfield', 'textarea') ) ? '' : 0;
1026
+ }
1027
+ $search = $_REQUEST[$parts[0]];
1028
+ for ( $index = 0; $index < count( $parts ); $index++ ) {
1029
+ $key = $parts[$index];
1030
+ // We're at the end but no data retrieved
1031
+ if ( !isset( $parts[$index + 1] ) ) {
1032
+ return in_array( $element['#type'],
1033
+ array('textfield', 'textarea') ) ? '' : 0;
1034
+ }
1035
+ $key_next = $parts[$index + 1];
1036
+ if ( $index > 0 ) {
1037
+ if ( !isset( $search[$key] ) ) {
1038
+ return in_array( $element['#type'],
1039
+ array('textfield', 'textarea') ) ? '' : 0;
1040
+ } else {
1041
+ $search = $search[$key];
1042
+ }
1043
+ }
1044
+ if ( is_array( $search ) && array_key_exists( $key_next, $search ) ) {
1045
+ if ( !is_array( $search[$key_next] ) ) {
1046
+ return $search[$key_next];
1047
+ }
1048
+ }
1049
+ }
1050
+ return 0;
1051
+ }
1052
+
1053
+ private function strip($value)
1054
+ {
1055
+ if ( empty( $value ) ) {
1056
+ return $value;
1057
+ }
1058
+ $re = array( "/\\\\'/", '/\\\\"/' );
1059
+ $to = array( "'", '"' );
1060
+ return esc_attr( preg_replace( $re, $to, $value ) );
1061
+ }
1062
+ }
embedded/classes/helper.ajax.php CHANGED
@@ -126,7 +126,7 @@ class WPCF_Helper_Ajax
126
  }
127
  }
128
  }
129
- return $js_execute;
130
  }
131
 
132
- }
126
  }
127
  }
128
  }
129
+ return 'console.log("asdasdsdasdasdasdasd");'.$js_execute;
130
  }
131
 
132
+ }
embedded/classes/loader.php CHANGED
@@ -30,8 +30,7 @@ class WPCF_Loader
30
  self::__registerScripts();
31
  self::__registerStyles();
32
  self::__toolset();
33
- add_action( 'admin_print_scripts',
34
- array('WPCF_Loader', 'renderJsSettings'), 5 );
35
  add_filter( 'the_posts', array('WPCF_Loader', 'wpcf_cache_complete_postmeta') );
36
  add_filter( 'wpcf_fields_postmeta_value_save', array( 'WPCF_Loader', 'wpcf_sanitize_postmeta_values_on_save' ) );
37
  add_filter( 'wpcf_fields_usermeta_value_save', array( 'WPCF_Loader', 'wpcf_sanitize_usermeta_values_on_save' ) );
30
  self::__registerScripts();
31
  self::__registerStyles();
32
  self::__toolset();
33
+ add_action( 'admin_print_scripts', array('WPCF_Loader', 'renderJsSettings'), 5 );
 
34
  add_filter( 'the_posts', array('WPCF_Loader', 'wpcf_cache_complete_postmeta') );
35
  add_filter( 'wpcf_fields_postmeta_value_save', array( 'WPCF_Loader', 'wpcf_sanitize_postmeta_values_on_save' ) );
36
  add_filter( 'wpcf_fields_usermeta_value_save', array( 'WPCF_Loader', 'wpcf_sanitize_usermeta_values_on_save' ) );
embedded/classes/relationship.php CHANGED
@@ -345,21 +345,21 @@ class WPCF_Relationship
345
 
346
  // Unset non-types
347
  unset( $save_fields['_wp_title'], $save_fields['_wp_body'],
348
- $save_fields['parents'], $save_fields['taxonomies'] );
349
- /*
350
- *
351
- *
352
- *
353
- *
354
- *
355
- *
 
356
  * UPDATE Loop over fields
357
  */
358
  foreach ( $save_fields as $slug => $value ) {
359
  if ( defined( 'WPTOOLSET_FORMS_VERSION' ) ) {
360
  // Get field by slug
361
- $field = wpcf_fields_get_field_by_slug( str_replace( WPCF_META_PREFIX,
362
- '', $slug ) );
363
  if ( empty( $field ) ) {
364
  continue;
365
  }
@@ -369,10 +369,12 @@ class WPCF_Relationship
369
  $valid = wptoolset_form_validate_field( 'post', $config, $value );
370
  if ( is_wp_error( $valid ) ) {
371
  $errors = $valid->get_error_data();
372
- $msg = sprintf( __( 'Child post "%s" field "%s" not updated:',
373
- 'wpcf' ), $child->post_title, $field['name'] );
374
- wpcf_admin_message_store( $msg . ' ' . implode( ', ',
375
- $errors ), 'error' );
 
 
376
  continue;
377
  }
378
  }
@@ -381,6 +383,20 @@ class WPCF_Relationship
381
  $this->cf->save( $value );
382
  }
383
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
384
  do_action( 'wpcf_relationship_save_child', $child, $parent );
385
 
386
  clean_post_cache( $parent->ID );
@@ -406,7 +422,7 @@ class WPCF_Relationship
406
  return new WP_Error( 'wpcf-relationship-no-parent', 'No parent' );
407
  }
408
  $new_post = array(
409
- 'post_title' => __('New'). ': '.$post_type,
410
  'post_type' => $post_type,
411
  'post_status' => 'draft',
412
  );
345
 
346
  // Unset non-types
347
  unset( $save_fields['_wp_title'], $save_fields['_wp_body'],
348
+ $save_fields['parents'], $save_fields['taxonomies'] );
349
+
350
+ /**
351
+ * add filter to remove field name from error message
352
+ */
353
+ /** This filter is toolset-common/toolset-forms/classes/class.validation.php */
354
+ add_filter('toolset_common_validation_add_field_name_to_error', '__return_false', 1234, 1);
355
+
356
+ /**
357
  * UPDATE Loop over fields
358
  */
359
  foreach ( $save_fields as $slug => $value ) {
360
  if ( defined( 'WPTOOLSET_FORMS_VERSION' ) ) {
361
  // Get field by slug
362
+ $field = wpcf_fields_get_field_by_slug( str_replace( WPCF_META_PREFIX, '', $slug ) );
 
363
  if ( empty( $field ) ) {
364
  continue;
365
  }
369
  $valid = wptoolset_form_validate_field( 'post', $config, $value );
370
  if ( is_wp_error( $valid ) ) {
371
  $errors = $valid->get_error_data();
372
+ $msg = sprintf(
373
+ __( 'Child post "%s" field "%s" not updated:', 'wpcf' ),
374
+ $child->post_title,
375
+ $field['name']
376
+ );
377
+ wpcf_admin_message_store( $msg . ' ' . implode( ', ', $errors ), 'error' );
378
  continue;
379
  }
380
  }
383
  $this->cf->save( $value );
384
  }
385
 
386
+ /**
387
+ * save feature image
388
+ */
389
+ if ( isset( $save_fields['_wp_featured_image']) ) {
390
+ if ( $save_fields['_wp_featured_image'] ) {
391
+ set_post_thumbnail( $updated_id, $save_fields['_wp_featured_image']);
392
+ } else {
393
+ delete_post_thumbnail($updated_id);
394
+ }
395
+ }
396
+
397
+
398
+ remove_filter('toolset_common_validation_add_field_name_to_error', '__return_false', 1234, 1);
399
+
400
  do_action( 'wpcf_relationship_save_child', $child, $parent );
401
 
402
  clean_post_cache( $parent->ID );
422
  return new WP_Error( 'wpcf-relationship-no-parent', 'No parent' );
423
  }
424
  $new_post = array(
425
+ 'post_title' => __('New Child', 'wpcf'). ': '.$post_type,
426
  'post_type' => $post_type,
427
  'post_status' => 'draft',
428
  );
embedded/classes/relationship/form-child.php CHANGED
@@ -286,6 +286,14 @@ class WPCF_Relationship_Child_Form
286
  $this->headers[] = '_wp_excerpt';
287
  $row[] = $this->excerpt();
288
  }
 
 
 
 
 
 
 
 
289
 
290
  /**
291
  * get allowed fields for this post type
@@ -510,6 +518,26 @@ class WPCF_Relationship_Child_Form
510
  );
511
  }
512
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
513
  /**
514
  * Returns HTML formatted taxonomy form.
515
  *
@@ -694,8 +722,7 @@ class WPCF_Relationship_Child_Form
694
  $parent, $belongs_data );
695
 
696
  if ( empty( $temp_form ) ) {
697
- return '<span class="types-small-italic">' . __( 'No parents available',
698
- 'wpcf' ) . '</span>';
699
  }
700
  unset(
701
  $temp_form[$parent]['#suffix'],
@@ -709,8 +736,7 @@ class WPCF_Relationship_Child_Form
709
  return wpcf_form_simple( $temp_form );
710
  }
711
  }
712
- return '<span class="types-small-italic">' . __( 'No parents available',
713
- 'wpcf' ) . '</span>';
714
  }
715
 
716
  /**
@@ -765,7 +791,7 @@ class WPCF_Relationship_Child_Form
765
  $headers[$header] .= '<a href="' . admin_url( 'admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=pr_sort&amp;field='
766
  . '_wp_title&amp;sort=' . $title_dir . '&amp;post_id=' . $post->ID . '&amp;post_type='
767
  . $post_type . '&amp;_wpnonce='
768
- . wp_create_nonce( 'pr_sort' ) ) . '">' . __( 'Post Title' ) . '</a>';
769
  } else {
770
  $headers[$header] = 'ID';
771
  }
@@ -776,9 +802,12 @@ class WPCF_Relationship_Child_Form
776
  $headers[$header] .= '<a href="' . admin_url( 'admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=pr_sort&amp;field='
777
  . '_wp_body&amp;sort=' . $body_dir . '&amp;post_id=' . $post->ID . '&amp;post_type='
778
  . $post_type . '&amp;_wpnonce='
779
- . wp_create_nonce( 'pr_sort' ) ) . '">' . __( 'Post Body' ) . '</a>';
780
- } else if ( $header == '_wp_excerpt' ) {
781
- $headers[$header] = __( 'Post excerpt' );
 
 
 
782
  } else if ( strpos( $header, WPCF_META_PREFIX ) === 0
783
  && isset( $wpcf_fields[str_replace( WPCF_META_PREFIX, '',
784
  $header )] ) ) {
@@ -800,7 +829,7 @@ class WPCF_Relationship_Child_Form
800
  . $header . '&amp;sort=' . $field_dir . '&amp;post_id=' . $post->ID . '&amp;post_type='
801
  . $post_type . '&amp;_wpnonce='
802
  . wp_create_nonce( 'pr_sort' ) ) . '">'
803
- . stripslashes( $header ) . '</a>';
804
  }
805
  }
806
  if ( !empty( $this->headers['__parents'] ) ) {
@@ -830,4 +859,17 @@ class WPCF_Relationship_Child_Form
830
  return $headers;
831
  }
832
 
 
 
 
 
 
 
 
 
 
 
 
 
 
833
  }
286
  $this->headers[] = '_wp_excerpt';
287
  $row[] = $this->excerpt();
288
  }
289
+ // Set thumbnail
290
+ if (
291
+ isset( $this->data['fields']['_wp_featured_image'] )
292
+ && post_type_supports( $this->child_post_type_object->slug, 'thumbnail' )
293
+ ) {
294
+ $this->headers[] = '_wp_featured_image';
295
+ $row[] = $this->thumbnail();
296
+ }
297
 
298
  /**
299
  * get allowed fields for this post type
518
  );
519
  }
520
 
521
+ /**
522
+ * Returns HTML formatted post thumbnail field.
523
+ *
524
+ * @return type
525
+ */
526
+ function thumbnail()
527
+ {
528
+ return wpcf_form_simple(
529
+ array('field' => array(
530
+ '#type' => 'thumbnail',
531
+ '#id' => 'wpcf_post_relationship_'
532
+ . $this->child->ID . '_wp_featured_image',
533
+ '#name' => 'wpcf_post_relationship['
534
+ . $this->parent->ID . ']['
535
+ . $this->child->ID . '][_wp_featured_image]',
536
+ '#value' => get_post_thumbnail_id($this->child->ID),
537
+ )
538
+ )
539
+ );
540
+ }
541
  /**
542
  * Returns HTML formatted taxonomy form.
543
  *
722
  $parent, $belongs_data );
723
 
724
  if ( empty( $temp_form ) ) {
725
+ return '<span class="types-small-italic">' . __( 'No parents available', 'wpcf' ) . '</span>';
 
726
  }
727
  unset(
728
  $temp_form[$parent]['#suffix'],
736
  return wpcf_form_simple( $temp_form );
737
  }
738
  }
739
+ return '<span class="types-small-italic">' . __( 'No parents available', 'wpcf' ) . '</span>';
 
740
  }
741
 
742
  /**
791
  $headers[$header] .= '<a href="' . admin_url( 'admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=pr_sort&amp;field='
792
  . '_wp_title&amp;sort=' . $title_dir . '&amp;post_id=' . $post->ID . '&amp;post_type='
793
  . $post_type . '&amp;_wpnonce='
794
+ . wp_create_nonce( 'pr_sort' ) ) . '">' . __( 'Post Title', 'wpcf' ) . '</a>';
795
  } else {
796
  $headers[$header] = 'ID';
797
  }
802
  $headers[$header] .= '<a href="' . admin_url( 'admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=pr_sort&amp;field='
803
  . '_wp_body&amp;sort=' . $body_dir . '&amp;post_id=' . $post->ID . '&amp;post_type='
804
  . $post_type . '&amp;_wpnonce='
805
+ . wp_create_nonce( 'pr_sort' ) ) . '">' . __( 'Post Body', 'wpcf' ) . '</a>';
806
+ } else if (
807
+ $header == '_wp_excerpt'
808
+ || $header == '_wp_featured_image'
809
+ ) {
810
+ $headers[$header] = $this->get_header($header);
811
  } else if ( strpos( $header, WPCF_META_PREFIX ) === 0
812
  && isset( $wpcf_fields[str_replace( WPCF_META_PREFIX, '',
813
  $header )] ) ) {
829
  . $header . '&amp;sort=' . $field_dir . '&amp;post_id=' . $post->ID . '&amp;post_type='
830
  . $post_type . '&amp;_wpnonce='
831
  . wp_create_nonce( 'pr_sort' ) ) . '">'
832
+ . $this->get_header($header) . '</a>';
833
  }
834
  }
835
  if ( !empty( $this->headers['__parents'] ) ) {
859
  return $headers;
860
  }
861
 
862
+ public function get_header($header)
863
+ {
864
+ switch( $header) {
865
+ case '_wp_featured_image':
866
+ $header = __('Feature Image', 'wpcf');
867
+ break;
868
+ case '_wp_excerpt':
869
+ $header = __('Post excerpt', 'wpcf');
870
+ break;
871
+ }
872
+ return stripslashes($header);
873
+ }
874
+
875
  }
embedded/classes/repeater.php CHANGED
@@ -129,8 +129,8 @@ class WPCF_Repeater extends WPCF_Field
129
  $meta_value, $this );
130
 
131
  // Apply other filters
132
- $_meta_value = $this->_filter_save_postmeta_value( $meta_value );
133
- $_meta_value = $this->_filter_save_value( $_meta_value );
134
 
135
  // Adding each field will return $mid
136
  if ( count($data) == $i++ ) {
129
  $meta_value, $this );
130
 
131
  // Apply other filters
132
+ $_meta_value = $this->_filter_save_postmeta_value( $meta_value );
133
+ $_meta_value = $this->_filter_save_value( $_meta_value );
134
 
135
  // Adding each field will return $mid
136
  if ( count($data) == $i++ ) {
embedded/classes/usermeta_field.php CHANGED
@@ -93,7 +93,7 @@ class WPCF_Usermeta_Field extends WPCF_Field
93
 
94
  // Apply filters
95
  $_value = $this->_filter_save_usermeta_value( $value );
96
- $_value = $this->_filter_save_value( $_value );
97
  if ( !empty( $_value ) || is_numeric( $_value ) ) {
98
  // Save field
99
  $mid = update_user_meta( $this->currentUID, $this->slug, $_value );
93
 
94
  // Apply filters
95
  $_value = $this->_filter_save_usermeta_value( $value );
96
+ $_value = $this->_filter_save_value( $_value );
97
  if ( !empty( $_value ) || is_numeric( $_value ) ) {
98
  // Save field
99
  $mid = update_user_meta( $this->currentUID, $this->slug, $_value );
embedded/classes/usermeta_repeater.php CHANGED
@@ -92,8 +92,8 @@ class WPCF_Usermeta_Repeater extends WPCF_Usermeta_Field
92
  }
93
 
94
  // Apply filters
95
- $_meta_value = $this->_filter_save_usermeta_value( $meta_value );
96
- $_meta_value = $this->_filter_save_value( $_meta_value );
97
 
98
  // Adding each field will return $mid
99
  // $unique = false
92
  }
93
 
94
  // Apply filters
95
+ $_meta_value = $this->_filter_save_usermeta_value( $meta_value );
96
+ $_meta_value = $this->_filter_save_value( $_meta_value );
97
 
98
  // Adding each field will return $mid
99
  // $unique = false
embedded/classes/validate.php CHANGED
@@ -246,6 +246,11 @@ class Wpcf_Validate
246
  return true;
247
  }
248
 
 
 
 
 
 
249
  /**
250
  * Returns form data.
251
  *
246
  return true;
247
  }
248
 
249
+ public static function skype( $args, $value )
250
+ {
251
+ return true;
252
+ }
253
+
254
  /**
255
  * Returns form data.
256
  *
embedded/classes/validation-cakephp.php CHANGED
@@ -396,8 +396,7 @@ class Wpcf_Cake_Validation
396
  break;
397
  default:
398
  $_this = &Wpcf_Cake_Validation::getInstance();
399
- $_this->errors[] = __( 'You must define the $operator parameter for Wpcf_Cake_Validation::comparison()',
400
- 'wpcf' );
401
  break;
402
  }
403
  return false;
@@ -421,8 +420,7 @@ class Wpcf_Cake_Validation
421
  $_this->_extract( $check );
422
  }
423
  if ( $_this->regex === null ) {
424
- $_this->errors[] = __( 'You must define a regular expression for Wpcf_Cake_Validation::custom()',
425
- 'wpcf' );
426
  return false;
427
  }
428
  return $_this->_check();
@@ -1004,13 +1002,11 @@ class Wpcf_Cake_Validation
1004
  function _pass( $method, $check, $classPrefix ) {
1005
  $className = ucwords( $classPrefix ) . 'Validation';
1006
  if ( !class_exists( $className ) ) {
1007
- trigger_error( sprintf( __( 'Could not find %s class, unable to complete validation.',
1008
- true ), $className ), E_USER_WARNING );
1009
  return false;
1010
  }
1011
  if ( !is_callable( array($className, $method) ) ) {
1012
- trigger_error( sprintf( __( 'Method %s does not exist on %s unable to complete validation.',
1013
- true ), $method, $className ),
1014
  E_USER_WARNING );
1015
  return false;
1016
  }
396
  break;
397
  default:
398
  $_this = &Wpcf_Cake_Validation::getInstance();
399
+ $_this->errors[] = __( 'You must define the $operator parameter for Wpcf_Cake_Validation::comparison()', 'wpcf' );
 
400
  break;
401
  }
402
  return false;
420
  $_this->_extract( $check );
421
  }
422
  if ( $_this->regex === null ) {
423
+ $_this->errors[] = __( 'You must define a regular expression for Wpcf_Cake_Validation::custom()', 'wpcf' );
 
424
  return false;
425
  }
426
  return $_this->_check();
1002
  function _pass( $method, $check, $classPrefix ) {
1003
  $className = ucwords( $classPrefix ) . 'Validation';
1004
  if ( !class_exists( $className ) ) {
1005
+ trigger_error( sprintf( __( 'Could not find %s class, unable to complete validation.', 'wpcf' ), $className ), E_USER_WARNING );
 
1006
  return false;
1007
  }
1008
  if ( !is_callable( array($className, $method) ) ) {
1009
+ trigger_error( sprintf( __( 'Method %s does not exist on %s unable to complete validation.', 'wpcf' ), $method, $className ),
 
1010
  E_USER_WARNING );
1011
  return false;
1012
  }
embedded/classes/wpviews.php CHANGED
@@ -131,7 +131,7 @@ class WPCF_WPViews
131
  if ( empty( $post ) ) {
132
  $post = (object) array('ID' => -1);
133
  }
134
- $groups = wpcf_admin_fields_get_groups( 'wp-types-group', 'group_active' );
135
  $all_post_types = implode( ' ',
136
  get_post_types( array('public' => true) ) );
137
  $add = array();
131
  if ( empty( $post ) ) {
132
  $post = (object) array('ID' => -1);
133
  }
134
+ $groups = wpcf_admin_fields_get_groups( TYPES_CUSTOM_FIELD_GROUP_CPT_NAME, 'group_active' );
135
  $all_post_types = implode( ' ',
136
  get_post_types( array('public' => true) ) );
137
  $add = array();
embedded/common/.gitignore ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Ignore test results
2
+ actual
3
+ results
4
+
5
+ # Ignore compiled docs
6
+ _gh_pages
7
+ _gh-pages
8
+ _site
9
+
10
+ # Numerous always-ignore extensions
11
+ *.csv
12
+ *.dat
13
+ *.diff
14
+ *.err
15
+ *.gz
16
+ *.log
17
+ *.log
18
+ *.orig
19
+ *.out
20
+ *.pid
21
+ *.rej
22
+ *.ruby-version
23
+ *.sass-cache
24
+ *.seed
25
+ *.swo
26
+ *.swp
27
+ *.vi
28
+ *.zip
29
+ *~
30
+ lib-cov
31
+
32
+ # OS or Editor folders
33
+ .DS_Store
34
+ ._*
35
+ Thumbs.db
36
+ .cache
37
+ .project
38
+ .settings
39
+ .tmproj
40
+ *.esproj
41
+ nbproject
42
+ *.sublime-*
43
+ .editorconfig
44
+
45
+ # Komodo
46
+ *.komodoproject
47
+ .komodotools
48
+
49
+ # Folders to ignore
50
+ .hg
51
+ .svn
52
+ .CVS
53
+ .idea
54
+ tmp
55
+ pids
56
+ build
57
+ src
58
+ node_modules
59
+ # Files to ignore
60
+ npm-debug.log
embedded/common/changelog.txt CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  Common 1.6 (June 11, 2015)
2
  - Tagged for Types 1.7, Views 1.9 and Layouts 1.2
3
 
1
+ Common 1.X (month day, 2015)
2
+ - Added "ico" file type as proper image file.
3
+
4
  Common 1.6 (June 11, 2015)
5
  - Tagged for Types 1.7, Views 1.9 and Layouts 1.2
6
 
embedded/common/classes/class-toolset-admin-bar-menu.php CHANGED
@@ -20,6 +20,7 @@ if ( ! class_exists( 'Toolset_Admin_Bar_Menu' ) ) {
20
  $this->done = false;
21
 
22
  add_action( 'admin_bar_menu', array( $this, 'admin_bar_menu' ), 99 );
 
23
 
24
  if ( is_admin() ) {
25
 
@@ -68,6 +69,19 @@ if ( ! class_exists( 'Toolset_Admin_Bar_Menu' ) ) {
68
  if ( $this->done ) {
69
  return;
70
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
71
 
72
  if ( $this->get_default_plugin() && $this->has_capatibilities() && $this->is_assignable() ) {
73
 
@@ -102,11 +116,34 @@ if ( ! class_exists( 'Toolset_Admin_Bar_Menu' ) ) {
102
  'title' => $title,
103
  'href' => $href,
104
  );
 
 
 
 
 
 
 
 
 
105
  $wp_admin_bar->add_node( $args );
106
 
107
  $this->done = true;
108
  }
109
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
110
 
111
  /**
112
  * User is admin or similar?
@@ -244,6 +281,16 @@ if ( ! class_exists( 'Toolset_Admin_Bar_Menu' ) ) {
244
  return null;
245
  }
246
  }
 
 
 
 
 
 
 
 
 
 
247
 
248
  /**
249
  * Finds the right action depending on what you're seeing and have done
20
  $this->done = false;
21
 
22
  add_action( 'admin_bar_menu', array( $this, 'admin_bar_menu' ), 99 );
23
+ add_filter( 'toolset_filter_toolset_admin_bar_menu_disable', array( $this, 'admin_bar_menu_disable' ), 1 );
24
 
25
  if ( is_admin() ) {
26
 
69
  if ( $this->done ) {
70
  return;
71
  }
72
+
73
+ /**
74
+ * Filter to disable the Toolset Admin Bar menu
75
+ *
76
+ * Used to disable the Admin Bar Menu when the 'show_admin_bar_shortcut' entry on the 'toolset_options' option has an 'off' value
77
+ * It is up to the plugins to produce a GUI for setting that value
78
+ *
79
+ * @since 1.7
80
+ */
81
+
82
+ if ( apply_filters( 'toolset_filter_toolset_admin_bar_menu_disable', false ) ) {
83
+ return;
84
+ }
85
 
86
  if ( $this->get_default_plugin() && $this->has_capatibilities() && $this->is_assignable() ) {
87
 
116
  'title' => $title,
117
  'href' => $href,
118
  );
119
+ $wp_admin_bar->add_node( $args );
120
+
121
+ $settings_href = $this->get_settings_href();
122
+ $args = array(
123
+ 'parent' => 'toolset_admin_bar_menu',
124
+ 'id' => 'toolset_remove_this_menu',
125
+ 'title' => __( 'Remove this menu', 'wpv-views' ),
126
+ 'href' => $settings_href,
127
+ );
128
  $wp_admin_bar->add_node( $args );
129
 
130
  $this->done = true;
131
  }
132
  }
133
+
134
+ /**
135
+ * Disable the Admin Bar Menu entry when the 'show_admin_bar_shortcut' entry on the 'toolset_options' option has an 'off' value
136
+ *
137
+ * @since 1.7
138
+ */
139
+ public function admin_bar_menu_disable( $state ) {
140
+ $toolset_options = get_option( 'toolset_options', array() );
141
+ $toolset_admin_bar_menu_remove = ( isset( $toolset_options['show_admin_bar_shortcut'] ) && $toolset_options['show_admin_bar_shortcut'] == 'off' ) ? true : false;
142
+ if ( $toolset_admin_bar_menu_remove ) {
143
+ $state = true;
144
+ }
145
+ return $state;
146
+ }
147
 
148
  /**
149
  * User is admin or similar?
281
  return null;
282
  }
283
  }
284
+
285
+ private function get_settings_href() {
286
+ $plugin_name = $this->get_default_plugin();
287
+
288
+ if( 'layouts' === $plugin_name ) {
289
+ return admin_url( 'admin.php?page=dd_layout_settings' ).'#toolset-admin-bar-settings';
290
+ } else /* 'views' */ {
291
+ return admin_url( 'admin.php?page=views-settings' ).'#toolset-admin-bar-settings';
292
+ }
293
+ }
294
 
295
  /**
296
  * Finds the right action depending on what you're seeing and have done
embedded/common/toolset-forms/classes/class.conditional.php CHANGED
@@ -58,6 +58,7 @@ require_once WPTOOLSET_COMMON_PATH . '/expression-parser/parser.php';
58
  *
59
  * @author Srdjan
60
  */
 
61
  class WPToolset_Forms_Conditional {
62
 
63
  private $__formID;
@@ -477,6 +478,7 @@ class WPToolset_Forms_Conditional {
477
  }
478
 
479
  }
 
480
 
481
  if (!class_exists('WPV_Handle_Users_Functions')) {
482
 
58
  *
59
  * @author Srdjan
60
  */
61
+ if ( !class_exists('WPToolset_Forms_Conditional') ){
62
  class WPToolset_Forms_Conditional {
63
 
64
  private $__formID;
478
  }
479
 
480
  }
481
+ }
482
 
483
  if (!class_exists('WPV_Handle_Users_Functions')) {
484
 
embedded/common/toolset-forms/classes/class.cred.php CHANGED
@@ -10,6 +10,7 @@ require_once 'class.conditional.php';
10
  *
11
  * @author Srdjan
12
  */
 
13
  class WPToolset_Cred
14
  {
15
 
@@ -86,3 +87,4 @@ class WPToolset_Cred
86
  }
87
 
88
  }
 
10
  *
11
  * @author Srdjan
12
  */
13
+ if ( !class_exists('WPToolset_Cred') ){
14
  class WPToolset_Cred
15
  {
16
 
87
  }
88
 
89
  }
90
+ }
embedded/common/toolset-forms/classes/class.credfile.php CHANGED
@@ -48,7 +48,7 @@ class WPToolset_Field_Credfile extends WPToolset_Field_Textfield {
48
  wp_enqueue_script('my_ajax_file_uploader', $scriptpath . 'file_upload.js', array('jquery'));
49
 
50
  //wp_localize_script('my_ajax_file_uploader_thing', 'settings', array('ajaxurl' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('uploader_nonce')));
51
- wp_localize_script('my_ajax_file_uploader', 'settings', array('ajaxurl' => plugins_url("submit.php", __FILE__)));
52
  }
53
  }
54
 
48
  wp_enqueue_script('my_ajax_file_uploader', $scriptpath . 'file_upload.js', array('jquery'));
49
 
50
  //wp_localize_script('my_ajax_file_uploader_thing', 'settings', array('ajaxurl' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('uploader_nonce')));
51
+ wp_localize_script('my_ajax_file_uploader', 'settings', array('ajaxurl' => plugins_url("submit.php", __FILE__), 'nonce' => wp_create_nonce('ajax_nonce')));
52
  }
53
  }
54
 
embedded/common/toolset-forms/classes/class.date.php CHANGED
@@ -318,7 +318,7 @@ class WPToolset_Field_Date extends FieldFactory
318
  }
319
 
320
  public static function filterConditionalArgsPhp($args, $type)
321
- {
322
  if ($type == 'date') {
323
  foreach ($args as &$arg) {
324
  $arg = self::filterConditionalValuePhp($arg, $type);
318
  }
319
 
320
  public static function filterConditionalArgsPhp($args, $type)
321
+ {
322
  if ($type == 'date') {
323
  foreach ($args as &$arg) {
324
  $arg = self::filterConditionalValuePhp($arg, $type);
embedded/common/toolset-forms/classes/class.date.scripts.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
- if (!function_exists('adodb_mktime')) {
3
- require_once WPTOOLSET_FORMS_ABSPATH . '/lib/adodb-time.inc.php';
4
  }
5
 
6
  class WPToolset_Field_Date_Scripts
@@ -29,19 +29,19 @@ class WPToolset_Field_Date_Scripts
29
  public function __construct()
30
  {
31
  global $pagenow;
32
- if (
33
- //for front-end
34
- !is_admin() ||
35
- //for edit group pages
36
- ( ( isset($_GET['page']) && ($_GET['page'] == 'wpcf-edit-usermeta' || $_GET['page'] == 'wpcf-edit') ) ||
37
- //for edit pages including profile pages
38
- ($pagenow == 'profile.php' || $pagenow == 'post-new.php' || $pagenow == 'user-edit.php' || $pagenow == 'user-new.php' || $pagenow == 'post.php' || $pagenow == 'admin-ajax.php') && is_admin() ) ){
39
  add_action( 'admin_enqueue_scripts', array( $this,'date_enqueue_scripts' ) );
40
  if ( defined('CRED_FE_VERSION')) {
41
  add_action( 'wp_enqueue_scripts', array( $this, 'date_enqueue_scripts' ) );
42
  }
43
- }
44
- $this->localization_slug = false;
45
  }
46
 
47
  public function date_enqueue_scripts()
@@ -64,6 +64,20 @@ class WPToolset_Field_Date_Scripts
64
  array(),
65
  WPTOOLSET_FORMS_VERSION
66
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  /**
68
  * scripts
69
  */
@@ -77,7 +91,7 @@ class WPToolset_Field_Date_Scripts
77
  // Localize datepicker
78
  if ( in_array( self::getDateFormat(), self::$_supported_date_formats ) ) {
79
  /*
80
- $locale = str_replace( '_', '-', strtolower( get_locale() ) );
81
  $file = WPTOOLSET_FORMS_ABSPATH . '/js/i18n/jquery.ui.datepicker-' . $locale . '.js';
82
  if ( file_exists( $file ) ) {
83
  wp_register_script(
@@ -88,24 +102,24 @@ class WPToolset_Field_Date_Scripts
88
  true
89
  );
90
  }
91
- */
92
- $lang = get_locale();
93
- $lang = str_replace('_', '-', $lang);
94
- // TODO integrate this with WPML lang
95
- if ( file_exists( WPTOOLSET_FORMS_ABSPATH . '/js/i18n/jquery.ui.datepicker-' . $lang . '.js' ) ) {
96
- if ( !wp_script_is( 'jquery-ui-datepicker-local-' . $lang, 'registered' ) ) {
97
- wp_register_script( 'jquery-ui-datepicker-local-' . $lang, WPTOOLSET_FORMS_RELPATH . '/js/i18n/jquery.ui.datepicker-' . $lang . '.js', array('jquery-ui-core', 'jquery', 'jquery-ui-datepicker'), WPTOOLSET_FORMS_VERSION, true );
98
- $this->localization_slug = $lang;
99
- }
100
- } else {
101
- $lang = substr($lang, 0, 2);
102
- if ( file_exists( WPTOOLSET_FORMS_ABSPATH . '/js/i18n/jquery.ui.datepicker-' . $lang . '.js' ) ) {
103
- if ( !wp_script_is( 'jquery-ui-datepicker-local-' . $lang, 'registered' ) ) {
104
- wp_register_script( 'jquery-ui-datepicker-local-' . $lang, WPTOOLSET_FORMS_RELPATH . '/js/i18n/jquery.ui.datepicker-' . $lang . '.js', array('jquery-ui-core', 'jquery', 'jquery-ui-datepicker'), WPTOOLSET_FORMS_VERSION, true );
105
- $this->localization_slug = $lang;
106
- }
107
- }
108
- }
109
  }
110
  /**
111
  * styles
@@ -117,10 +131,10 @@ class WPToolset_Field_Date_Scripts
117
  wp_enqueue_script( 'wptoolset-field-date' );
118
  $date_format = self::getDateFormat();
119
  $js_date_format = $this->_convertPhpToJs( $date_format );
120
- $calendar_image = WPTOOLSET_FORMS_RELPATH . '/images/calendar.gif';
121
- $calendar_image = apply_filters( 'wptoolset_filter_wptoolset_calendar_image', $calendar_image );
122
- $calendar_image_readonly = WPTOOLSET_FORMS_RELPATH . '/images/calendar-readonly.gif';
123
- $calendar_image_readonly = apply_filters( 'wptoolset_filter_wptoolset_calendar_image_readonly', $calendar_image_readonly );
124
  $js_data = array(
125
  'buttonImage' => $calendar_image,
126
  'buttonText' => __( 'Select date', 'wpv-views' ),
@@ -129,14 +143,14 @@ class WPToolset_Field_Date_Scripts
129
  'dateFormatNote' => esc_js( sprintf( __( 'Input format: %s', 'wpv-views' ), $date_format ) ),
130
  'yearMin' => intval( self::timetodate( self::$_mintimestamp, 'Y' ) ) + 1,
131
  'yearMax' => self::timetodate( self::$_maxtimestamp, 'Y' ),
132
- 'ajaxurl' => admin_url('admin-ajax.php', null),
133
- 'readonly' => esc_js( __( 'This is a read-only date input', 'wpv-views' ) ),
134
  'readonly_image' => $calendar_image_readonly,
135
  );
136
  wp_localize_script( 'wptoolset-field-date', 'wptDateData', $js_data );
137
- if ( $this->localization_slug && !wp_script_is( 'jquery-ui-datepicker-local-' . $this->localization_slug ) ) {
138
- wp_enqueue_script( 'jquery-ui-datepicker-local-' . $this->localization_slug );
139
- }
140
  }
141
 
142
  protected function _convertPhpToJs( $date_format )
@@ -174,5 +188,3 @@ class WPToolset_Field_Date_Scripts
174
  return self::$_mintimestamp <= $timestamp && $timestamp <= self::$_maxtimestamp;
175
  }
176
  }
177
-
178
-
1
  <?php
2
+ if (!function_exists('adodb_mktime')) {
3
+ require_once WPTOOLSET_FORMS_ABSPATH . '/lib/adodb-time.inc.php';
4
  }
5
 
6
  class WPToolset_Field_Date_Scripts
29
  public function __construct()
30
  {
31
  global $pagenow;
32
+ if (
33
+ //for front-end
34
+ !is_admin() ||
35
+ //for edit group pages
36
+ ( ( isset($_GET['page']) && ($_GET['page'] == 'wpcf-edit-usermeta' || $_GET['page'] == 'wpcf-edit') ) ||
37
+ //for edit pages including profile pages
38
+ ($pagenow == 'profile.php' || $pagenow == 'post-new.php' || $pagenow == 'user-edit.php' || $pagenow == 'user-new.php' || $pagenow == 'post.php' || $pagenow == 'admin-ajax.php') && is_admin() ) ){
39
  add_action( 'admin_enqueue_scripts', array( $this,'date_enqueue_scripts' ) );
40
  if ( defined('CRED_FE_VERSION')) {
41
  add_action( 'wp_enqueue_scripts', array( $this, 'date_enqueue_scripts' ) );
42
  }
43
+ }
44
+ $this->localization_slug = false;
45
  }
46
 
47
  public function date_enqueue_scripts()
64
  array(),
65
  WPTOOLSET_FORMS_VERSION
66
  );
67
+
68
+ /**
69
+ * check first is wptoolset-forms registered?
70
+ */
71
+ if (!wp_script_is('wptoolset-forms', 'registered')) {
72
+ wp_register_script(
73
+ 'wptoolset-forms',
74
+ WPTOOLSET_FORMS_RELPATH . '/js/main.js',
75
+ array('jquery', 'underscore', 'suggest'),
76
+ WPTOOLSET_FORMS_VERSION,
77
+ true
78
+ );
79
+ }
80
+
81
  /**
82
  * scripts
83
  */
91
  // Localize datepicker
92
  if ( in_array( self::getDateFormat(), self::$_supported_date_formats ) ) {
93
  /*
94
+ $locale = str_replace( '_', '-', strtolower( get_locale() ) );
95
  $file = WPTOOLSET_FORMS_ABSPATH . '/js/i18n/jquery.ui.datepicker-' . $locale . '.js';
96
  if ( file_exists( $file ) ) {
97
  wp_register_script(
102
  true
103
  );
104
  }
105
+ */
106
+ $lang = get_locale();
107
+ $lang = str_replace('_', '-', $lang);
108
+ // TODO integrate this with WPML lang
109
+ if ( file_exists( WPTOOLSET_FORMS_ABSPATH . '/js/i18n/jquery.ui.datepicker-' . $lang . '.js' ) ) {
110
+ if ( !wp_script_is( 'jquery-ui-datepicker-local-' . $lang, 'registered' ) ) {
111
+ wp_register_script( 'jquery-ui-datepicker-local-' . $lang, WPTOOLSET_FORMS_RELPATH . '/js/i18n/jquery.ui.datepicker-' . $lang . '.js', array('jquery-ui-core', 'jquery', 'jquery-ui-datepicker'), WPTOOLSET_FORMS_VERSION, true );
112
+ $this->localization_slug = $lang;
113
+ }
114
+ } else {
115
+ $lang = substr($lang, 0, 2);
116
+ if ( file_exists( WPTOOLSET_FORMS_ABSPATH . '/js/i18n/jquery.ui.datepicker-' . $lang . '.js' ) ) {
117
+ if ( !wp_script_is( 'jquery-ui-datepicker-local-' . $lang, 'registered' ) ) {
118
+ wp_register_script( 'jquery-ui-datepicker-local-' . $lang, WPTOOLSET_FORMS_RELPATH . '/js/i18n/jquery.ui.datepicker-' . $lang . '.js', array('jquery-ui-core', 'jquery', 'jquery-ui-datepicker'), WPTOOLSET_FORMS_VERSION, true );
119
+ $this->localization_slug = $lang;
120
+ }
121
+ }
122
+ }
123
  }
124
  /**
125
  * styles
131
  wp_enqueue_script( 'wptoolset-field-date' );
132
  $date_format = self::getDateFormat();
133
  $js_date_format = $this->_convertPhpToJs( $date_format );
134
+ $calendar_image = WPTOOLSET_FORMS_RELPATH . '/images/calendar.gif';
135
+ $calendar_image = apply_filters( 'wptoolset_filter_wptoolset_calendar_image', $calendar_image );
136
+ $calendar_image_readonly = WPTOOLSET_FORMS_RELPATH . '/images/calendar-readonly.gif';
137
+ $calendar_image_readonly = apply_filters( 'wptoolset_filter_wptoolset_calendar_image_readonly', $calendar_image_readonly );
138
  $js_data = array(
139
  'buttonImage' => $calendar_image,
140
  'buttonText' => __( 'Select date', 'wpv-views' ),
143
  'dateFormatNote' => esc_js( sprintf( __( 'Input format: %s', 'wpv-views' ), $date_format ) ),
144
  'yearMin' => intval( self::timetodate( self::$_mintimestamp, 'Y' ) ) + 1,
145
  'yearMax' => self::timetodate( self::$_maxtimestamp, 'Y' ),
146
+ 'ajaxurl' => admin_url('admin-ajax.php', null),
147
+ 'readonly' => esc_js( __( 'This is a read-only date input', 'wpv-views' ) ),
148
  'readonly_image' => $calendar_image_readonly,
149
  );
150
  wp_localize_script( 'wptoolset-field-date', 'wptDateData', $js_data );
151
+ if ( $this->localization_slug && !wp_script_is( 'jquery-ui-datepicker-local-' . $this->localization_slug ) ) {
152
+ wp_enqueue_script( 'jquery-ui-datepicker-local-' . $this->localization_slug );
153
+ }
154
  }
155
 
156
  protected function _convertPhpToJs( $date_format )
188
  return self::$_mintimestamp <= $timestamp && $timestamp <= self::$_maxtimestamp;
189
  }
190
  }
 
 
embedded/common/toolset-forms/classes/class.field_factory.php CHANGED
@@ -81,6 +81,12 @@ abstract class FieldFactory extends FieldAbstract
81
  {
82
  global $post;
83
  $value = $this->_value;
 
 
 
 
 
 
84
  $value = apply_filters( 'wpcf_fields_value_get', $value, $post );
85
  if ( array_key_exists('slug', $this->_data ) ) {
86
  $value = apply_filters( 'wpcf_fields_slug_' . $this->_data['slug'] . '_value_get', $value, $post );
81
  {
82
  global $post;
83
  $value = $this->_value;
84
+ /**
85
+ * default value
86
+ */
87
+ if ( empty( $value ) && array_key_exists('user_default_value', $this->_data)) {
88
+ $value = stripcslashes($this->_data['user_default_value']);
89
+ }
90
  $value = apply_filters( 'wpcf_fields_value_get', $value, $post );
91
  if ( array_key_exists('slug', $this->_data ) ) {
92
  $value = apply_filters( 'wpcf_fields_slug_' . $this->_data['slug'] . '_value_get', $value, $post );
embedded/common/toolset-forms/classes/class.form_factory.php CHANGED
@@ -33,7 +33,7 @@ class FormFactory extends FormAbstract
33
 
34
  wp_register_script( 'wptoolset-forms',
35
  WPTOOLSET_FORMS_RELPATH . '/js/main.js',
36
- array('jquery', 'underscore', 'suggest'), WPTOOLSET_FORMS_VERSION, false );
37
  wp_enqueue_script( 'wptoolset-forms' );
38
  $wptoolset_forms_localization = array(
39
  'ajaxurl' => admin_url( 'admin-ajax.php', null )
@@ -178,11 +178,36 @@ class FormFactory extends FormAbstract
178
  */
179
  $config['use_bootstrap'] = $this->theForm->form_settings['use_bootstrap'];
180
  $config['has_media_button'] = $this->theForm->form_settings['has_media_button'];
 
181
  /**
182
  * WMPL configuration
183
  */
184
  $config['wpml_action'] = $this->get_wpml_action($config['id']);
185
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
  $htmlArray = array();
187
  $_gnf = $global_name_field;
188
  $_cfg = $config;
33
 
34
  wp_register_script( 'wptoolset-forms',
35
  WPTOOLSET_FORMS_RELPATH . '/js/main.js',
36
+ array('jquery', 'underscore', 'suggest'), WPTOOLSET_FORMS_VERSION, true );
37
  wp_enqueue_script( 'wptoolset-forms' );
38
  $wptoolset_forms_localization = array(
39
  'ajaxurl' => admin_url( 'admin-ajax.php', null )
178
  */
179
  $config['use_bootstrap'] = $this->theForm->form_settings['use_bootstrap'];
180
  $config['has_media_button'] = $this->theForm->form_settings['has_media_button'];
181
+
182
  /**
183
  * WMPL configuration
184
  */
185
  $config['wpml_action'] = $this->get_wpml_action($config['id']);
186
 
187
+ /**
188
+ * Change config options.
189
+ *
190
+ * This filter allow to chenge value of key 'options' for field config..
191
+ *
192
+ * @since 1.8.0
193
+ *
194
+ * @param array $options Array options for field.
195
+ * @param string $slug Field slug.
196
+ * @param string $type field type
197
+ */
198
+ if (
199
+ isset($config['type'])
200
+ && isset($config['slug'])
201
+ && isset($config['options'])
202
+ ) {
203
+ $config['options'] = apply_filters(
204
+ 'wpcf_config_options_'.$config['type'],
205
+ $config['options'],
206
+ $config['slug'],
207
+ $config['type']
208
+ );
209
+ }
210
+
211
  $htmlArray = array();
212
  $_gnf = $global_name_field;
213
  $_cfg = $config;
embedded/common/toolset-forms/classes/class.image.php CHANGED
@@ -23,6 +23,7 @@ class WPToolset_Field_Image extends WPToolset_Field_File
23
  $valid_extensions = array(
24
  'bmp',
25
  'gif',
 
26
  'jpeg',
27
  'jpg',
28
  'png',
23
  $valid_extensions = array(
24
  'bmp',
25
  'gif',
26
+ 'ico',
27
  'jpeg',
28
  'jpg',
29
  'png',
embedded/common/toolset-forms/classes/class.skype.php CHANGED
@@ -7,18 +7,27 @@ require_once 'class.textfield.php';
7
 
8
  class WPToolset_Field_Skype extends WPToolset_Field_Textfield
9
  {
10
-
11
- protected $_defaults = array('skypename' => '', 'button_style' => 'btn2');
 
 
 
 
12
 
13
  public function init()
14
  {
15
  add_action( 'admin_footer', array($this, 'editButtonTemplate') );
16
  add_action( 'wp_footer', array($this, 'editButtonTemplate') );
17
 
 
 
 
 
 
18
  wp_register_script(
19
  'wptoolset-field-skype',
20
  WPTOOLSET_FORMS_RELPATH . '/js/skype.js',
21
- array('jquery'),
22
  WPTOOLSET_FORMS_VERSION,
23
  true
24
  );
@@ -41,7 +50,7 @@ class WPToolset_Field_Skype extends WPToolset_Field_Textfield
41
  } else {
42
  $attributes['class'] = '';
43
  }
44
- $attributes['class'] = 'js-wpt-skypename js-wpt-cond-trigger';// What is this js-wpt-cond-trigger classname for?
45
  $form = array();
46
  $form[] = array(
47
  '#type' => 'textfield',
@@ -54,181 +63,205 @@ class WPToolset_Field_Skype extends WPToolset_Field_Textfield
54
  '#attributes' => $attributes,
55
  '#repetitive' => $this->isRepetitive(),
56
  );
57
- $form['style'] = array(
 
 
 
 
58
  '#type' => 'hidden',
59
- '#value' => $value['button_style'],
60
- '#name' => $this->getName() . '[button_style]',
61
- '#attributes' => array('class' => 'js-wpt-skypestyle'),
62
- );
63
- if (is_admin()) {
64
- $form[] = array(
65
- '#type' => 'markup',
66
- '#markup' => $this->getButtonImage( $value['skypename'], $value['button_style'], 'js-wpt-skype-preview' ),
67
- );
68
- $button_element = array(
69
- '#name' => '',
70
- '#type' => 'button',
71
- '#value' => esc_attr( __( 'Edit', 'wpv-views' ) )." Skype button",
72
- '#attributes' => array('class' => 'js-wpt-skype-edit-button button button-small button-secondary'),
73
- );
74
- /*
75
- We only need to add Bootstrap classnames to the frontend, and here we are just in is_admin()
76
- if ( !is_admin() && array_key_exists( 'use_bootstrap', $this->_data ) && $this->_data['use_bootstrap'] ) {// TODO check if is_Admin() is enough as we might want to load forms using AJAX
77
- $button_element['#attributes']['class'] .= ' btn btn-default btn-sm';
78
- }
79
- */
80
- $form[] = $button_element;
 
 
 
 
 
81
  }
 
 
 
 
 
 
 
 
 
 
 
 
82
  return $form;
83
  }
84
 
85
- public function editButtonTemplate(){
86
- $output = '';
87
- $output .= '<div id="tpl-wpt-skype-edit-button" style="display:none;">'
88
- . '<div id="wpt-skype-edit-button-popup">'
89
- . '<h3>' .__( 'Enter your Skype Name', 'wpv-views' ) . '</h3>'
90
- . '<input type="textfield" value="" class="js-wpt-skypename-popup">&nbsp;'
91
- . '<h3>' . __( 'Select a button from below', 'wpv-views' ) . '</h3>';
92
- for ( $index = 1; $index < 7; $index++ ) {
93
- if ( $index == 5 ) {
94
- $output .= '<h3>' . __( 'Skype buttons with status', 'wpv-views' ) . '</h3>'
95
- . '<p>' . __( 'If you choose to show your Skype status, your Skype button will always reflect your availability on Skype. This status will be shown to everyone, whether they’re in your contact list or not.', 'wpv-views' )
96
- . '</p>';
97
- }
98
- $output .= '<div><label><input type="radio" name="wpt-skypestyle-popup" value="btn'
99
- . $index . '">&nbsp;'
100
- . $this->getButtonImage( '', "btn{$index}",
101
- 'js-wpt-skype-preview' )
102
- . '</label></div>';
103
  }
104
- $output .= '<input type="button" class="button-secondary js-wpt-close-thickbox" value="' . __( 'Save', 'wpv-views' ) . '">'
105
- . '</div></div>';
106
- echo $output;
107
- }
108
 
109
- public function editform( $config = null ) {
110
 
111
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
- public function mediaEditor(){
114
- return array();
115
- }
 
116
 
117
- /**
118
- * Returns HTML formatted skype button.
119
- *
120
- * @param type $skypename
121
- * @param type $template
122
- * @param type $class
123
- * @return type
124
- */
125
- function getButton( $skypename, $template = '', $class = false ) {
126
-
127
- if ( empty( $skypename ) ) {
128
- return '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
  }
 
 
 
 
130
 
131
- switch ( $template ) {
132
-
133
- case 'btn1':
134
- // Call me big drawn
135
- $output = '<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script><a href="skype:'
136
- . $skypename . '?call">'
137
- . $this->getButtonImage( $skypename, $template, $class )
138
- . '</a>';
139
- break;
140
-
141
- case 'btn4':
142
- // Call me small
143
- $output = '<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
144
- <a href="skype:' . $skypename . '?call">'
145
- . $this->getButtonImage( $skypename, $template, $class )
146
- . '</a>';
147
- break;
148
-
149
- case 'btn3':
150
- // Call me small drawn
151
- $output = '<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
152
- <a href="skype:' . $skypename . '?call">'
153
- . $this->getButtonImage( $skypename, $template, $class )
154
- . '</a>';
155
- break;
156
-
157
- case 'btn6':
158
- // Status
159
- $output = '<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
160
- <a href="skype:' . $skypename . '?call">'
161
- . $this->getButtonImage( $skypename, $template, $class )
162
- . '</a>';
163
- break;
164
-
165
- case 'btn5':
166
- // Status drawn
167
- $output = '<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
168
- <a href="skype:' . $skypename . '?call">'
169
- . $this->getButtonImage( $skypename, $template, $class )
170
- . '</a>';
171
- break;
172
-
173
- default:
174
- // Call me big
175
- $output = '<script type="text/javascript" src="http://download.skype.com/share/skypebuttons/js/skypeCheck.js"></script>
176
- <a href="skype:' . $skypename . '?call">'
177
- . $this->getButtonImage( $skypename, $template, $class )
178
- . '</a>';
179
- break;
180
- }
181
 
182
- return $output;
 
 
 
 
 
 
 
183
  }
184
 
185
- /**
186
- * Returns HTML formatted skype button image.
187
- *
188
- * @param type $skypename
189
- * @param type $template
190
- * @return type
191
- */
192
- public function getButtonImage( $skypename = '', $template = '', $class = '' ) {
193
-
194
- if ( empty( $skypename ) ) {
195
- $skypename = '--not--';
196
- }
197
 
198
- $class = !empty( $class ) ? ' class="' . strval( $class ) . '"' : '';
199
-
200
- switch ( $template ) {
201
- case 'btn1':
202
- // Call me big drawn
203
- $output = '<img src="http://download.skype.com/share/skypebuttons/buttons/call_green_white_153x63.png" style="border: none;" width="153" height="63" alt="Skype Me™!"' . $class . ' />';
204
- break;
205
-
206
- case 'btn4':
207
- // Call me small
208
- $output = '<img src="http://download.skype.com/share/skypebuttons/buttons/call_blue_transparent_34x34.png" style="border: none;" width="34" height="34" alt="Skype Me™!"' . $class . ' />';
209
- break;
210
-
211
- case 'btn3':
212
- // Call me small drawn
213
- $output = '<img src="http://download.skype.com/share/skypebuttons/buttons/call_green_white_92x82.png" style="border: none;" width="92" height="82" alt="Skype Me™!"' . $class . ' />';
214
- break;
215
-
216
- case 'btn6':
217
- // Status
218
- $output = '<img src="http://mystatus.skype.com/bigclassic/' . $skypename . '" style="border: none;" width="182" height="44" alt="My status"' . $class . ' />';
219
- break;
220
-
221
- case 'btn5':
222
- // Status drawn
223
- $output = '<img src="http://mystatus.skype.com/balloon/' . $skypename . '" style="border: none;" width="150" height="60" alt="My status"' . $class . ' />';
224
- break;
225
-
226
- default:
227
- // Call me big
228
- $output = '<img src="http://download.skype.com/share/skypebuttons/buttons/call_blue_white_124x52.png" style="border: none;" width="124" height="52" alt="Skype Me™!"' . $class . ' />';
229
- break;
230
- }
231
- return $output;
232
  }
233
 
234
  }
7
 
8
  class WPToolset_Field_Skype extends WPToolset_Field_Textfield
9
  {
10
+ protected $_defaults = array(
11
+ 'skypename' => '',
12
+ 'action' => 'chat',
13
+ 'color' => 'blue',
14
+ 'size' => 32,
15
+ );
16
 
17
  public function init()
18
  {
19
  add_action( 'admin_footer', array($this, 'editButtonTemplate') );
20
  add_action( 'wp_footer', array($this, 'editButtonTemplate') );
21
 
22
+ wp_register_script(
23
+ 'skype-uri-buttom',
24
+ '//www.skypeassets.com/i/scom/js/skype-uri.js'
25
+ );
26
+
27
  wp_register_script(
28
  'wptoolset-field-skype',
29
  WPTOOLSET_FORMS_RELPATH . '/js/skype.js',
30
+ array('jquery', 'skype-uri-buttom'),
31
  WPTOOLSET_FORMS_VERSION,
32
  true
33
  );
50
  } else {
51
  $attributes['class'] = '';
52
  }
53
+ $attributes['class'] = 'js-wpt-skypename js-wpt-cond-trigger regular-text';// What is this js-wpt-cond-trigger classname for?
54
  $form = array();
55
  $form[] = array(
56
  '#type' => 'textfield',
63
  '#attributes' => $attributes,
64
  '#repetitive' => $this->isRepetitive(),
65
  );
66
+
67
+ /**
68
+ * action
69
+ */
70
+ $form[] = array(
71
  '#type' => 'hidden',
72
+ '#value' => $value['action'],
73
+ '#name' => $this->getName() . '[action]',
74
+ '#attributes' => array('class' => 'js-wpt-skype-action'),
75
+ );
76
+
77
+ /**
78
+ * color
79
+ */
80
+ $form[] = array(
81
+ '#type' => 'hidden',
82
+ '#value' => $value['color'],
83
+ '#name' => $this->getName() . '[color]',
84
+ '#attributes' => array('class' => 'js-wpt-skype-color'),
85
+ );
86
+
87
+ /**
88
+ * size
89
+ */
90
+ $form[] = array(
91
+ '#type' => 'hidden',
92
+ '#value' => $value['size'],
93
+ '#name' => $this->getName() . '[size]',
94
+ '#attributes' => array('class' => 'js-wpt-skype-size'),
95
+ );
96
+
97
+ if (!is_admin()) {
98
+ return $form;
99
  }
100
+ $button_element = array(
101
+ '#name' => '',
102
+ '#type' => 'button',
103
+ '#value' => esc_attr( __( 'Edit Skype', 'wpv-views' ) ),
104
+ '#attributes' => array(
105
+ 'class' => 'js-wpt-skype-edit-button button button-small button-secondary',
106
+ ),
107
+ );
108
+ foreach( $value as $key => $val ) {
109
+ $button_element['#attributes']['data-'.esc_attr($key)] = $val;
110
+ }
111
+ $form[] = $button_element;
112
  return $form;
113
  }
114
 
115
+ public function editButtonTemplate()
116
+ {
117
+
118
+ static $edit_button_template_template_already_loaded;
119
+
120
+ if ( $edit_button_template_template_already_loaded ) {
121
+ return;
 
 
 
 
 
 
 
 
 
 
 
122
  }
 
 
 
 
123
 
124
+ $edit_button_template_template_already_loaded = true;
125
 
126
+ $form = array();
127
+ $form['full-open'] = array(
128
+ '#type' => 'markup',
129
+ '#markup' => '<div id="tpl-wpt-skype-edit-button" style="display:none;"><div id="wpt-skype-edit-button-popup">',
130
+ );
131
+ $form['preview'] = array(
132
+ '#type' => 'markup',
133
+ '#markup' => sprintf(
134
+ '<div id="wpt-skype-edit-button-popup-preview"><p class="bold">%s</p><div id="wpt-skype-edit-button-popup-preview-button"><div id="wpt-skype-preview"></div><small style="display:none">%s</small></div><p class="description"><strong>%s</strong>: %s</p></div>',
135
+ __('Preview of your Skype button', 'wpv-views'),
136
+ __('*Hover over to see the menu', 'wpv-views'),
137
+ __('Note', 'wpv-views'),
138
+ __('Skype button background is transparent and will work on any colour backgrounds.', 'wpv-views')
139
+ ),
140
+ );
141
+ $form['options-open'] = array(
142
+ '#type' => 'markup',
143
+ '#markup' => '<div class="main">',
144
+ );
145
+ $form['skypename'] = array(
146
+ '#type' => 'textfield',
147
+ '#name' => 'skype[name]',
148
+ '#attributes' => array(
149
+ 'class' => 'js-wpt-skypename-popup js-wpt-skype',
150
+ 'data-skype-field-name' => 'skypename',
151
+ ),
152
+ '#before' => sprintf('<h3>%s</h2>', __( 'Enter your Skype Name', 'wpv-views' )),
153
+ );
154
+ $form['skype-action'] = array(
155
+ '#type' => 'checkboxes',
156
+ '#name' => 'skype[action]',
157
+ '#options' => array(
158
+ 'call' => array(
159
+ '#name' => 'skype[action][call]',
160
+ '#value' => 'call',
161
+ '#title' => __('Call', 'wpv-views'),
162
+ '#description' => __('Start a call with just a click.', 'wpv-views'),
163
+ '#default_value' => 'call',
164
+ '#attributes' => array(
165
+ 'class' => 'js-wpt-skype js-wpt-skype-action js-wpt-skype-action-call',
166
+ 'data-skype-field-name' => 'action',
167
+ ),
168
+ ),
169
+ 'chat' => array(
170
+ '#name' => 'skype[action][chat]',
171
+ '#title' => __('Chat', 'wpv-views'),
172
+ '#value' => 'chat',
173
+ '#description' => __('Start the conversation with an instant message.', 'wpv-views'),
174
+ '#attributes' => array(
175
+ 'class' => 'js-wpt-skype js-wpt-skype-action js-wpt-skype-action-chat',
176
+ 'data-skype-field-name' => 'action',
177
+ ),
178
+ ),
179
+ ),
180
+ '#before' => sprintf('<h3>%s</h3>', __( "Choose what you'd like your button to do", 'wpv-views' )),
181
+ );
182
 
183
+ $form['skype-color-header'] = array(
184
+ '#type' => 'markup',
185
+ '#markup' => sprintf('<h3>%s</h3>', __( 'Choose how you want your button to look', 'wpv-views' )),
186
+ );
187
 
188
+ $form['skype-color'] = array(
189
+ '#type' => 'select',
190
+ '#name' => 'skype[color]',
191
+ '#options' => array(
192
+ array(
193
+ '#value' => 'blue',
194
+ '#title' => __('Blue', 'wpv-views'),
195
+ '#attributes' => array(
196
+ 'data-skype-field-name' => 'color',
197
+ 'class' => 'js-wpt-skype',
198
+ ),
199
+ ),
200
+ array(
201
+ '#value' => 'white',
202
+ '#title' => __('White', 'wpv-views'),
203
+ '#attributes' => array(
204
+ 'data-skype-field-name' => 'color',
205
+ 'class' => 'js-wpt-skype',
206
+ ),
207
+ ),
208
+ ),
209
+ '#default_value' => 'blue',
210
+ '#attributes' => array(
211
+ 'class' => 'js-wpt-skype js-wpt-skype-color'
212
+ ),
213
+ '#inline' => true,
214
+ );
215
+ $form['skype-size'] = array(
216
+ '#type' => 'select',
217
+ '#name' => 'skype[size]',
218
+ '#options' => array(),
219
+ '#default_value' => 32,
220
+ '#attributes' => array(
221
+ 'class' => 'js-wpt-skype js-wpt-skype-size'
222
+ ),
223
+ '#inline' => true,
224
+ );
225
+ foreach( array(10,12,14,16,24,32) as $size ) {
226
+ $form['skype-size']['#options'][] = array(
227
+ '#value' => $size,
228
+ '#title' => sprintf('%dpx', $size),
229
+ '#attributes' => array(
230
+ 'data-skype-field-name' => 'size',
231
+ 'class' => 'js-wpt-skype',
232
+ ),
233
+ );
234
  }
235
+ $form['options-close'] = array(
236
+ '#type' => 'markup',
237
+ '#markup' => '</div>',
238
+ );
239
 
240
+ $form['submit'] = array(
241
+ '#type' => 'button',
242
+ '#name' => 'skype[submit]',
243
+ '#attributes' => array(
244
+ 'class' => 'button-secondary js-wpt-close-thickbox',
245
+ ),
246
+ '#value' => __( 'Save', 'wpv-views' ),
247
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
248
 
249
+ $form['full-close'] = array(
250
+ '#type' => 'markup',
251
+ '#markup' => '</div></div>',
252
+ );
253
+
254
+ $theForm = new Enlimbo_Forms( __FUNCTION__ );
255
+ $theForm->autoHandle( __FUNCTION__, $form);
256
+ echo $theForm->renderElements($form);
257
  }
258
 
259
+ public function editform( $config = null ) {
 
 
 
 
 
 
 
 
 
 
 
260
 
261
+ }
262
+
263
+ public function mediaEditor(){
264
+ return array();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
265
  }
266
 
267
  }
embedded/common/toolset-forms/classes/class.types.php CHANGED
@@ -10,6 +10,7 @@
10
  *
11
  * @author Srdjan
12
  */
 
13
  class WPToolset_Types
14
  {
15
 
@@ -80,6 +81,7 @@ class WPToolset_Types
80
  'validation' => self::filterValidation( $field ), // Validation settings
81
  'conditional' => self::filterConditional( $field, $post_id, $_post_wpcf ), // Conditional settings
82
  'placeholder' => isset($field['data']) && isset($field['data']['placeholder'])? $field['data']['placeholder']:null, // HTML5 placeholder
 
83
  );
84
 
85
  /* Specific field settings
@@ -534,3 +536,4 @@ class WPToolset_Types
534
  return strval( $array );
535
  }
536
  }
 
10
  *
11
  * @author Srdjan
12
  */
13
+ if ( !class_exists('WPToolset_Types') ){
14
  class WPToolset_Types
15
  {
16
 
81
  'validation' => self::filterValidation( $field ), // Validation settings
82
  'conditional' => self::filterConditional( $field, $post_id, $_post_wpcf ), // Conditional settings
83
  'placeholder' => isset($field['data']) && isset($field['data']['placeholder'])? $field['data']['placeholder']:null, // HTML5 placeholder
84
+ 'user_default_value' => isset($field['data']) && isset($field['data']['user_default_value'])? $field['data']['user_default_value']:null, // HTML5 default_value
85
  );
86
 
87
  /* Specific field settings
536
  return strval( $array );
537
  }
538
  }
539
+ }
embedded/common/toolset-forms/classes/class.validation.php CHANGED
@@ -145,7 +145,20 @@ class WPToolset_Forms_Validation
145
  $errors = array();
146
  foreach ( $rules as $rule => $args ) {
147
  if ( !$this->validate( $rule, $args['args'] ) ) {
148
- $errors[] = $field->getTitle() . ' ' . $args['message'];
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  }
150
  }
151
  if ( !empty( $errors ) ) {
145
  $errors = array();
146
  foreach ( $rules as $rule => $args ) {
147
  if ( !$this->validate( $rule, $args['args'] ) ) {
148
+ /**
149
+ * Allow turn off field name.
150
+ *
151
+ * Allow turn off field name from error message.
152
+ *
153
+ * @since x.x.x
154
+ *
155
+ * @param boolean $var show field title in message, * default true.
156
+ */
157
+ if ( apply_filters('toolset_common_validation_add_field_name_to_error', true) ) {
158
+ $errors[] = $field->getTitle() . ' ' . $args['message'];
159
+ } else {
160
+ $errors[] = $args['message'];
161
+ }
162
  }
163
  }
164
  if ( !empty( $errors ) ) {
embedded/common/toolset-forms/classes/submit.php CHANGED
@@ -10,9 +10,14 @@ function _pre($v) {
10
  echo "</pre>";
11
  }
12
 
 
 
 
 
 
13
  function get_local($url) {
14
  $urlParts = parse_url($url);
15
- return $_SERVER['DOCUMENT_ROOT'] . "/" . $urlParts['path'];
16
  }
17
 
18
  function clean($string) {
@@ -31,46 +36,67 @@ define('DOING_AJAX', true);
31
  // define('WP_ADMIN', true);
32
  //}
33
 
34
- /** Load WordPress Bootstrap */
35
- require_once( $_SERVER['DOCUMENT_ROOT'] . '/wp-load.php' );
 
 
36
 
37
  /** Allow for cross-domain requests (from the frontend). */
38
  send_origin_headers();
39
 
40
- if (!function_exists('wp_handle_upload')) {
41
- require_once( ABSPATH . '/wp-admin/includes/file.php' );
42
- }
43
-
44
  $data = array();
45
 
46
- if (isset($_POST['action']) && $_POST['action'] == 'delete' && isset($_POST['file'])) {
47
- $file = $_POST['file'];
 
 
48
 
49
- $del_nonce = $_POST['nonce'];
50
 
51
- if (!isset($del_nonce) || (time() - $del_nonce > 100)) {
52
- $data = array('result' => false, 'error' => 'Delete Error: Invalid NONCE', 'debug' => $_POST['nonce'] . " " . $md5);
53
- } else {
54
  $local_file = get_local($file);
55
 
56
- if (file_exists($local_file))
57
- $res = unlink($local_file);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
 
59
- $data = ($res) ? array('result' => $res) : array('result' => $res, 'error' => 'Error Deleting ' . $file);
60
- }
61
- } else {
62
-
63
- if (!isset($_REQUEST['un'])) { // || !wp_verify_nonce($_REQUEST['un'], '_cred_cred_wpnonce')) {
64
- $data = array('result' => false, 'error' => 'Upload Error: Invalid NONCE ');
65
  } else {
66
 
 
 
67
  $error = false;
68
  $files = array();
69
 
70
  $upload_overrides = array('test_form' => false);
71
  if (!empty($_FILES)) {
72
  foreach ($_FILES as $file) {
73
- //For repetitive
74
  foreach ($file as &$f) {
75
  if (is_array($f)) {
76
  foreach ($f as $p) {
@@ -81,7 +107,22 @@ if (isset($_POST['action']) && $_POST['action'] == 'delete' && isset($_POST['fil
81
  }
82
 
83
  $res = wp_handle_upload($file, $upload_overrides);
 
84
  if (!isset($res['error'])) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  $files[] = $res['url'];
86
  } else {
87
  $error = true;
@@ -92,6 +133,8 @@ if (isset($_POST['action']) && $_POST['action'] == 'delete' && isset($_POST['fil
92
  $data = array('error' => 'Error: Files is too big, Max upload size is: ' . ini_get('post_max_size'));
93
  }
94
  }
 
 
95
  }
96
 
97
  echo json_encode($data);
10
  echo "</pre>";
11
  }
12
 
13
+ function get_root_path() {
14
+ $urlp = explode('wp-content', $_SERVER['SCRIPT_FILENAME']);
15
+ return $urlp[0];
16
+ }
17
+
18
  function get_local($url) {
19
  $urlParts = parse_url($url);
20
+ return get_root_path() . $urlParts['path'];
21
  }
22
 
23
  function clean($string) {
36
  // define('WP_ADMIN', true);
37
  //}
38
 
39
+ require_once( get_root_path() . 'wp-load.php' );
40
+ require_once( get_root_path() . 'wp-admin/includes/file.php' );
41
+ require_once ( get_root_path() . 'wp-admin/includes/media.php' );
42
+ require_once ( get_root_path() . 'wp-admin/includes/image.php' );
43
 
44
  /** Allow for cross-domain requests (from the frontend). */
45
  send_origin_headers();
46
 
 
 
 
 
47
  $data = array();
48
 
49
+ if (isset($_REQUEST['nonce']) && check_ajax_referer('ajax_nonce', 'nonce', false)) {
50
+ $post_id = intval($_POST['id']);
51
+ if (isset($_POST['action']) && $_POST['action'] == 'delete' && isset($_POST['file'])) {
52
+ $file = $_POST['file'];
53
 
54
+ $data = array('result' => true);
55
 
 
 
 
56
  $local_file = get_local($file);
57
 
58
+ //get all image attachments
59
+ $attachments = get_children(
60
+ array(
61
+ 'post_parent' => $post->ID,
62
+ //'post_mime_type' => 'image',
63
+ 'post_type' => 'attachment'
64
+ )
65
+ );
66
+
67
+ //loop through the array
68
+ if (!empty($attachments)) {
69
+ foreach ($attachments as $attachment) {
70
+ $attach_file = strtolower(basename($attachment->guid));
71
+ $my_local_file = strtolower(basename($local_file));
72
+ if ($attach_file == $my_local_file)
73
+ wp_delete_attachment($attachment->ID);
74
+
75
+ // Update the post into the database
76
+ // wp_update_post( array(
77
+ // 'ID' => $attachment->ID,
78
+ // 'post_parent' => 0
79
+ // )
80
+ // );
81
+ }
82
+ }
83
 
84
+
85
+ // if (file_exists($local_file)) {
86
+ // $res = unlink($local_file);
87
+ // }
88
+ //$data = ($res) ? array('result' => $res) : array('result' => $res, 'error' => 'Error Deleting ' . $file);
 
89
  } else {
90
 
91
+
92
+
93
  $error = false;
94
  $files = array();
95
 
96
  $upload_overrides = array('test_form' => false);
97
  if (!empty($_FILES)) {
98
  foreach ($_FILES as $file) {
99
+ //For repetitive
100
  foreach ($file as &$f) {
101
  if (is_array($f)) {
102
  foreach ($f as $p) {
107
  }
108
 
109
  $res = wp_handle_upload($file, $upload_overrides);
110
+
111
  if (!isset($res['error'])) {
112
+
113
+ $attachment = array(
114
+ 'post_mime_type' => $res['type'],
115
+ 'post_title' => basename($res['file']),
116
+ 'post_content' => '',
117
+ 'post_status' => 'inherit',
118
+ 'post_parent' => $post_id,
119
+ 'post_type' => 'attachment',
120
+ 'guid' => $res['url'],
121
+ );
122
+ $attach_id = wp_insert_attachment($attachment, $res['file']);
123
+ $attach_data = wp_generate_attachment_metadata($attach_id, $res['file']);
124
+ wp_update_attachment_metadata($attach_id, $attach_data);
125
+
126
  $files[] = $res['url'];
127
  } else {
128
  $error = true;
133
  $data = array('error' => 'Error: Files is too big, Max upload size is: ' . ini_get('post_max_size'));
134
  }
135
  }
136
+ } else {
137
+ $data = array('result' => false, 'error' => 'Upload Error: Invalid NONCE ');
138
  }
139
 
140
  echo json_encode($data);
embedded/common/toolset-forms/css/wpt-toolset-backend.css CHANGED
@@ -186,11 +186,65 @@ img.ui-datepicker-trigger {
186
  #wpt-skype-edit-button-popup .button-secondary {
187
  display: block;
188
  clear: both;
189
- margin-top: 80px;
190
  }
191
- #wpt-skype-edit-button-popup div {
 
 
192
  float: left;
193
- margin-right: 25px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  }
195
  #wpt-skype-edit-button-popup input {
196
  margin-top: 5px;
186
  #wpt-skype-edit-button-popup .button-secondary {
187
  display: block;
188
  clear: both;
189
+ margin-top: 2em;
190
  }
191
+
192
+ #wpt-skype-edit-button-popup .wpcf-form-item-select
193
+ {
194
  float: left;
195
+ margin-right: 20px;
196
+ }
197
+
198
+ #wpt-skype-edit-button-popup .main
199
+ {
200
+ width: 350px;
201
+ }
202
+ #wpt-skype-edit-button-popup-preview
203
+ {
204
+ background-color: #e5eef3;
205
+ border: 1px solid #c1c1c1;
206
+ min-height: 250px;
207
+ padding: 10px 20px;
208
+ position: absolute;
209
+ top: 50px;
210
+ right: 10px;
211
+ width: 200px;
212
+ z-index: 1000;
213
+ }
214
+
215
+ #TB_ajaxContent #wpt-skype-edit-button-popup-preview-button p
216
+ {
217
+ line-height: 36px;
218
+ margin: 0;
219
+ padding: 0;
220
+ }
221
+
222
+ #wpt-skype-edit-button-popup-preview-button.dark-background
223
+ {
224
+ background-color: #b2b5b8;
225
+ }
226
+
227
+ #wpt-skype-edit-button-popup-preview-button.dropdown small
228
+ {
229
+ display: block;
230
+ }
231
+
232
+ #wpt-skype-edit-button-popup-preview-button small
233
+ {
234
+ display: none;
235
+ }
236
+
237
+ #wpt-skype-edit-button-popup-preview-button li
238
+ {
239
+ text-align: left;
240
+ }
241
+
242
+ #wpt-skype-edit-button-popup-preview-button
243
+ {
244
+ background-color: #fff;
245
+ min-height: 120px;
246
+ text-align: center;
247
+ width: 200px;
248
  }
249
  #wpt-skype-edit-button-popup input {
250
  margin-top: 5px;
embedded/common/toolset-forms/js/conditional.js CHANGED
@@ -230,18 +230,27 @@ var wptCond = (function ($) {
230
  */
231
  if ($obj.length < 1) {
232
  $obj = $('[data-wpt-name="' + name + '[datepicker]"]', formID);
 
 
 
233
  }
234
  /**
235
  * handle skype field
236
  */
237
  if ($obj.length < 1) {
238
  $obj = $('[data-wpt-name="' + name + '[skypename]"]', formID);
 
 
 
239
  }
240
  /**
241
  * handle checkboxes field
242
  */
243
  if ($obj.length < 1) {
244
  $obj = $('[data-wpt-name="' + name + '[]"]', formID);
 
 
 
245
  }
246
  /**
247
  * catch by id
230
  */
231
  if ($obj.length < 1) {
232
  $obj = $('[data-wpt-name="' + name + '[datepicker]"]', formID);
233
+ if ($obj.length < 1) {
234
+ $obj = $('[data-item_name="date-' + name + '"]', formID);
235
+ }
236
  }
237
  /**
238
  * handle skype field
239
  */
240
  if ($obj.length < 1) {
241
  $obj = $('[data-wpt-name="' + name + '[skypename]"]', formID);
242
+ if ($obj.length < 1) {
243
+ $obj = $('[data-item_name="skype-' + name + '"]', formID);
244
+ }
245
  }
246
  /**
247
  * handle checkboxes field
248
  */
249
  if ($obj.length < 1) {
250
  $obj = $('[data-wpt-name="' + name + '[]"]', formID);
251
+ if ($obj.length < 1) {
252
+ $obj = $('[data-item_name="checkboxes-' + name + '"]', formID);
253
+ }
254
  }
255
  /**
256
  * catch by id
embedded/common/toolset-forms/js/date.js CHANGED
@@ -8,7 +8,7 @@ var wptDate = (function ($) {
8
  if (/*!$(this).is(':disabled') &&*/ !$(this).hasClass('hasDatepicker')) {
9
  a = wptDate.add($(this));
10
  //a.next().after('<span style="margin-left:10px"><i>' + wptDateData.dateFormatNote + '</i></span>').data( 'dateFormatNote', true );
11
- }
12
  });
13
  }
14
 
@@ -40,7 +40,6 @@ var wptDate = (function ($) {
40
  el.val('');
41
  el_select.val('0');
42
  thiz.hide();
43
-
44
  });
45
  }
46
 
8
  if (/*!$(this).is(':disabled') &&*/ !$(this).hasClass('hasDatepicker')) {
9
  a = wptDate.add($(this));
10
  //a.next().after('<span style="margin-left:10px"><i>' + wptDateData.dateFormatNote + '</i></span>').data( 'dateFormatNote', true );
11
+ }
12
  });
13
  }
14
 
40
  el.val('');
41
  el_select.val('0');
42
  thiz.hide();
 
43
  });
44
  }
45
 
embedded/common/toolset-forms/js/file-wp35.js CHANGED
@@ -73,16 +73,52 @@ var wptFile = (function($, w) {
73
  var $parent = $el.parent();
74
  switch( $type ) {
75
  case 'image':
76
- $('.textfield', $parent).val(attachment.attributes.sizes.full.url);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  if ( 0 == $('.wpt-file-preview img', $parent.parent()).length) {
78
  $('.wpt-file-preview', $parent.parent()).append('<img src="">');
79
  }
80
- if ( 'undefined' != typeof attachment.attributes.sizes.thumbnail ) {
81
- $('.wpt-file-preview img', $parent.parent()).attr('src', attachment.attributes.sizes.thumbnail.url);
82
- } else {
 
 
 
 
 
83
  $('.wpt-file-preview img', $parent.parent()).attr('src', attachment.attributes.sizes.full.url);
84
  }
85
- $('.wpt-file-preview img', $parent.parent()).data('full-src', attachment.attributes.sizes.full.url);
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  if ( 'function' == typeof bind_colorbox_to_thumbnail_preview) {
87
  bind_colorbox_to_thumbnail_preview();
88
  }
73
  var $parent = $el.parent();
74
  switch( $type ) {
75
  case 'image':
76
+ /**
77
+ * value
78
+ */
79
+ var has_size_full = false;
80
+ if (
81
+ 'undefined' != typeof attachment.attributes.sizes
82
+ && 'undefined' != typeof attachment.attributes.sizes.full
83
+ && 'undefined' != typeof attachment.attributes.sizes.full.url
84
+ ) {
85
+ has_size_full = true;
86
+ $('.textfield', $parent).val(attachment.attributes.sizes.full.url);
87
+ }
88
+ else if ( 'undefined' != typeof(attachment.attributes.url) ) {
89
+ $('.textfield', $parent).val(attachment.attributes.url);
90
+ }
91
+
92
+ /**
93
+ * preview
94
+ */
95
  if ( 0 == $('.wpt-file-preview img', $parent.parent()).length) {
96
  $('.wpt-file-preview', $parent.parent()).append('<img src="">');
97
  }
98
+ if (
99
+ 'undefined' != typeof attachment.attributes.sizes
100
+ && 'undefined' != typeof attachment.attributes.sizes.thumbnail
101
+ && 'undefined' != typeof attachment.attributes.sizes.thumbnail.url
102
+ ) {
103
+ $('.wpt-file-preview img', $parent.parent()).attr('src', attachment.attributes.sizes.thumbnail.url);
104
+ }
105
+ else if ( has_size_full ) {
106
  $('.wpt-file-preview img', $parent.parent()).attr('src', attachment.attributes.sizes.full.url);
107
  }
108
+ else if ( 'undefined' != typeof(attachment.attributes.url) ) {
109
+ $('.wpt-file-preview img', $parent.parent()).attr('src', attachment.attributes.url);
110
+ }
111
+ /**
112
+ * add full
113
+ */
114
+ if ( has_size_full ) {
115
+ $('.wpt-file-preview img', $parent.parent()).data('full-src', attachment.attributes.sizes.full.url);
116
+ } else if ( 'undefined' != typeof(attachment.attributes.url) ) {
117
+ $('.wpt-file-preview img', $parent.parent()).data('full-src', attachment.attributes.url);
118
+ }
119
+ /**
120
+ * bind preview
121
+ */
122
  if ( 'function' == typeof bind_colorbox_to_thumbnail_preview) {
123
  bind_colorbox_to_thumbnail_preview();
124
  }
embedded/common/toolset-forms/js/jquery_upload/file_upload.js CHANGED
@@ -126,14 +126,20 @@ function isImage(file) {
126
  jQuery(function () {
127
  'use strict';
128
  // Change this to the location of your server-side upload handler:
129
- var url = settings.ajaxurl;
130
- //console.log(url);
131
- var nonce = jQuery("input[name='_cred_cred_wpnonce']").val();
132
-
133
- console.log(nonce);
134
 
135
  function o(i, file) {
136
- //console.log(file);
 
 
 
 
 
 
137
  var curr_file = file;
138
  var validation = jQuery(curr_file).attr('data-wpt-validate');
139
  //console.log(validation);
@@ -150,25 +156,26 @@ jQuery(function () {
150
  var validation_message = obj_validation[x][y];
151
  }
152
  }
153
-
154
-
155
  }
156
  }
157
 
158
  jQuery(file).fileupload({
159
- url: url + "?un=" + nonce,
160
  dataType: 'json',
161
- //maxChunkSize: 10000000,
162
- //formData: {nonce: nonce},
 
163
  //acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
164
  done: function (e, data) {
165
  var id = jQuery(curr_file).attr('id');
166
  var wpt_id = id.replace("_file", "");
167
  //progress bar hide
168
- jQuery('#progress_' + wpt_id).css({'width': '0%'});
 
 
 
169
  jQuery('#progress_' + wpt_id).hide();
170
-
171
- var delete_nonce = data.result.delete_nonce;
172
  if (data._response.result.error && data._response.result.error != '') {
173
  alert(data._response.result.error);
174
  }
@@ -199,6 +206,10 @@ jQuery(function () {
199
  //file field disabled and hided
200
  jQuery('#' + id).hide();
201
  jQuery('#' + id).prop('disabled', true);
 
 
 
 
202
  //add image/file uploaded and button to delete
203
  if (isImage(file)) {
204
  jQuery("<img id='loaded_" + myid + "' src='" + file + "'><input id='butt_" + myid + "' style='width:100%;margin-top:2px;margin-bottom:2px;' type='button' value='delete' rel='" + file + "' class='delete_ajax_file'>").insertAfter('#' + jQuery(curr_file).attr('id'));
@@ -221,7 +232,7 @@ jQuery(function () {
221
  url: url,
222
  timeout: 10000,
223
  type: 'POST',
224
- data: {action: 'delete', file: file, nonce: delete_nonce},
225
  dataType: 'json',
226
  success: function (data)
227
  {
@@ -232,6 +243,7 @@ jQuery(function () {
232
  else
233
  alert('Error deleting file !');
234
  }
 
235
  },
236
  error: function ()
237
  {
@@ -240,6 +252,7 @@ jQuery(function () {
240
  }
241
  });
242
  });
 
243
  }
244
  },
245
  add: function (e, data) {
@@ -264,18 +277,23 @@ jQuery(function () {
264
  },
265
  progressall: function (e, data) {
266
  var progress = parseInt(data.loaded / data.total * 100, 10);
 
267
  var id = jQuery(curr_file).attr('id');
268
  var wpt_id = id.replace("_file", "");
269
  jQuery('#progress_' + wpt_id).show();
 
270
  jQuery('#progress_' + wpt_id + ' .progress-bar').css(
271
- {'width': progress + '%'}
272
- );
273
  },
274
  fail: function (e, data) {
275
  var id = jQuery(curr_file).attr('id');
276
  var wpt_id = id.replace("_file", "");
277
  jQuery('#progress_' + wpt_id).hide();
278
- jQuery('#progress_' + wpt_id).css({'width': '0%'});
 
 
 
279
  alert("Upload Failed !");
280
  }
281
  }).prop('disabled', !jQuery.support.fileInput)
@@ -283,22 +301,28 @@ jQuery(function () {
283
 
284
  }
285
 
286
- jQuery('input[type="file"]:not(#_featured_image_file)').each(o);
 
287
 
288
- //AddRepetitive add event
289
- wptCallbacks.addRepetitive.add(function () {
290
- jQuery('input[type="file"]:not(#_featured_image_file)').each(o);
291
- });
292
 
293
- //AddRepetitive remove event
294
- wptCallbacks.addRepetitive.remove(function () {
295
- console.log("TODO: delete file related before removing")
296
- });
 
 
 
 
 
 
297
 
298
  // jQuery('.js-wpt-repadd').on('click', function (e) {
299
  // e.preventDefault();
300
  // alert("ciao");
301
  // jQuery('input[type="file"]').each(o);
302
  // });
303
-
304
  });
126
  jQuery(function () {
127
  'use strict';
128
  // Change this to the location of your server-side upload handler:
129
+
130
+ // jQuery.each(jQuery(".wpt-form-hidden"),function(i, val){
131
+ // console.log(i);
132
+ // jQuery(val).prop('');
133
+ // });
134
 
135
  function o(i, file) {
136
+ var url = settings.ajaxurl;
137
+ console.log("URL:" + url);
138
+ var nonce = settings.nonce;
139
+ console.log("NONCE:" + nonce);
140
+ var id = jQuery("input[name='_cred_cred_prefix_post_id']").val();
141
+ console.log("ID:" + id);
142
+
143
  var curr_file = file;
144
  var validation = jQuery(curr_file).attr('data-wpt-validate');
145
  //console.log(validation);
156
  var validation_message = obj_validation[x][y];
157
  }
158
  }
 
 
159
  }
160
  }
161
 
162
  jQuery(file).fileupload({
163
+ url: url + '?nonce=' + nonce,
164
  dataType: 'json',
165
+ cache: false,
166
+ maxChunkSize: 0,
167
+ formData: {id: id},
168
  //acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i,
169
  done: function (e, data) {
170
  var id = jQuery(curr_file).attr('id');
171
  var wpt_id = id.replace("_file", "");
172
  //progress bar hide
173
+ //jQuery('#progress_' + wpt_id).css({'width': '0%'});
174
+ jQuery('#progress_' + wpt_id + ' .progress-bar').css(
175
+ {'width': '0%'}
176
+ );
177
  jQuery('#progress_' + wpt_id).hide();
178
+
 
179
  if (data._response.result.error && data._response.result.error != '') {
180
  alert(data._response.result.error);
181
  }
206
  //file field disabled and hided
207
  jQuery('#' + id).hide();
208
  jQuery('#' + id).prop('disabled', true);
209
+
210
+ //remove restore button
211
+ jQuery('#' + id).siblings(".js-wpt-credfile-undo").hide();
212
+
213
  //add image/file uploaded and button to delete
214
  if (isImage(file)) {
215
  jQuery("<img id='loaded_" + myid + "' src='" + file + "'><input id='butt_" + myid + "' style='width:100%;margin-top:2px;margin-bottom:2px;' type='button' value='delete' rel='" + file + "' class='delete_ajax_file'>").insertAfter('#' + jQuery(curr_file).attr('id'));
232
  url: url,
233
  timeout: 10000,
234
  type: 'POST',
235
+ data: {action: 'delete', file: file, nonce: nonce},
236
  dataType: 'json',
237
  success: function (data)
238
  {
243
  else
244
  alert('Error deleting file !');
245
  }
246
+ credfile_fu_init();
247
  },
248
  error: function ()
249
  {
252
  }
253
  });
254
  });
255
+ credfile_fu_init();
256
  }
257
  },
258
  add: function (e, data) {
277
  },
278
  progressall: function (e, data) {
279
  var progress = parseInt(data.loaded / data.total * 100, 10);
280
+ console.log("progress => " + progress + "%");
281
  var id = jQuery(curr_file).attr('id');
282
  var wpt_id = id.replace("_file", "");
283
  jQuery('#progress_' + wpt_id).show();
284
+ //jQuery('#progress_' + wpt_id).css({'width': '100%'});
285
  jQuery('#progress_' + wpt_id + ' .progress-bar').css(
286
+ {'width': progress + '%'}
287
+ );
288
  },
289
  fail: function (e, data) {
290
  var id = jQuery(curr_file).attr('id');
291
  var wpt_id = id.replace("_file", "");
292
  jQuery('#progress_' + wpt_id).hide();
293
+ //jQuery('#progress_' + wpt_id).css({'width': '100%'});
294
+ jQuery('#progress_' + wpt_id + ' .progress-bar').css(
295
+ {'width': '0%'}
296
+ );
297
  alert("Upload Failed !");
298
  }
299
  }).prop('disabled', !jQuery.support.fileInput)
301
 
302
  }
303
 
304
+ function credfile_fu_init() {
305
+ jQuery('input[type="file"]:visible:not(#_featured_image_file)').each(o);
306
 
307
+ jQuery(document).on('click', '.js-wpt-credfile-delete, .js-wpt-credfile-undo', function (e) {
308
+ jQuery('input[type="file"]:visible:not(#_featured_image_file)').each(o);
309
+ });
 
310
 
311
+ //AddRepetitive add event
312
+ wptCallbacks.addRepetitive.add(function () {
313
+ jQuery('input[type="file"]:visible:not(#_featured_image_file)').each(o);
314
+ });
315
+
316
+ //AddRepetitive remove event
317
+ wptCallbacks.addRepetitive.remove(function () {
318
+ //console.log("TODO: delete file related before removing")
319
+ });
320
+ }
321
 
322
  // jQuery('.js-wpt-repadd').on('click', function (e) {
323
  // e.preventDefault();
324
  // alert("ciao");
325
  // jQuery('input[type="file"]').each(o);
326
  // });
327
+ credfile_fu_init();
328
  });
embedded/common/toolset-forms/js/skype.js CHANGED
@@ -1,28 +1,154 @@
1
 
2
  var wptSkype = (function($) {
3
- var $parent, $skypename, $style, $preview;
4
  var $popup = $('#tpl-wpt-skype-edit-button > div');
5
  function init() {
6
  $('body').on('click', '.js-wpt-skype-edit-button', function() {
7
  $parent = $(this).parents('.js-wpt-field-item');
8
  $skypename = $('.js-wpt-skypename', $parent);
9
- $style = $('.js-wpt-skypestyle', $parent);
10
  $preview = $('.js-wpt-skype-preview', $parent);
11
  $('.js-wpt-skypename-popup', $popup).val($skypename.val());
12
- $('[name="wpt-skypestyle-popup"][value="' + $style.val() + '"]', $popup)
13
- .attr('checked', true);
14
  tb_show(wptSkypeData.title, "#TB_inline?inlineId=tpl-wpt-skype-edit-button&height=500&width=600", "");
 
 
 
 
 
 
 
15
  });
16
  $('#wpt-skype-edit-button-popup').on('click', '.js-wpt-close-thickbox', function() {
 
 
17
  $skypename.val($('.js-wpt-skypename-popup', $popup).val());
18
- var $selected = $('[name="wpt-skypestyle-popup"]:checked', $popup);
19
- $style.val($selected.val());
20
- $preview.replaceWith($selected.next().clone());
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  tb_remove();
22
  });
23
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  return {
25
- init: init
 
26
  };
27
  })(jQuery);
28
 
1
 
2
  var wptSkype = (function($) {
3
+ var $parent, $skypename, $preview, $fields;
4
  var $popup = $('#tpl-wpt-skype-edit-button > div');
5
  function init() {
6
  $('body').on('click', '.js-wpt-skype-edit-button', function() {
7
  $parent = $(this).parents('.js-wpt-field-item');
8
  $skypename = $('.js-wpt-skypename', $parent);
 
9
  $preview = $('.js-wpt-skype-preview', $parent);
10
  $('.js-wpt-skypename-popup', $popup).val($skypename.val());
 
 
11
  tb_show(wptSkypeData.title, "#TB_inline?inlineId=tpl-wpt-skype-edit-button&height=500&width=600", "");
12
+ $('.js-wpt-skype', $popup).on("change", function(){
13
+ wptSkype.preview($popup, this);
14
+ });
15
+ $('.js-wpt-skype', $popup).on("keyup", function(){
16
+ wptSkype.preview($popup, this);
17
+ });
18
+ wptSkype.preview($popup, this, 'init');
19
  });
20
  $('#wpt-skype-edit-button-popup').on('click', '.js-wpt-close-thickbox', function() {
21
+ var button = $('.js-wpt-skype-edit-button', $parent);
22
+ var $extra_skype_data = {};
23
  $skypename.val($('.js-wpt-skypename-popup', $popup).val());
24
+ $('.js-wpt-skype', $popup).each(function() {
25
+ var $field_name = $(this).data('skype-field-name');
26
+ var $val = $(this).val();
27
+ if ( $field_name ) {
28
+ switch($(this).data('wpt-type')) {
29
+ case 'checkbox':
30
+ if ( $(this).is(':checked') ) {
31
+ $('.js-wpt-skype-'+$field_name, $parent).val($val);
32
+ button.data($field_name, $val);
33
+ }
34
+ break;
35
+ case 'option':
36
+ if ( $(this).is(':selected') ) {
37
+ $('.js-wpt-skype-'+$field_name, $parent).val($val);
38
+ button.data($field_name, $val);
39
+ }
40
+ break;
41
+ case 'textfield':
42
+ $('.js-wpt-skype-'+$field_name, $parent).val($val);
43
+ button.data($field_name, $val);
44
+ break;
45
+ }
46
+ }
47
+ });
48
+ /**
49
+ * fix data for action
50
+ */
51
+ if ( 1 < $('.js-wpt-skype-action:checked', $popup).length ) {
52
+ $('.js-wpt-skype-action', $popup).val('dropdown');;
53
+ $(this).data('action', 'dropdown');
54
+ }
55
  tb_remove();
56
  });
57
  }
58
+ function preview($popup, object, mode) {
59
+ var $object = $(object);
60
+ /**
61
+ * be sure, that at lest one action is on
62
+ */
63
+ if ( 'checkbox' == $object.attr('type') ) {
64
+ if ( 0 == $('.js-wpt-skype-action:checked', $popup).length ) {
65
+ $('.js-wpt-skype-action', $popup).each(function() {
66
+ if ( this != object ) {
67
+ $(this).attr('checked', 'checked');
68
+ }
69
+ });
70
+ }
71
+ }
72
+
73
+ /**
74
+ * participants
75
+ */
76
+ var $button = $('#wpt-skype-edit-button-popup-preview-button');
77
+ $('#wpt-skype-preview', $button).html('');
78
+ var participants = $('.js-wpt-skypename-popup', $popup).val();
79
+
80
+ /**
81
+ * setup values
82
+ */
83
+ if ( 'undefined' != typeof mode && 'init' == mode ) {
84
+ if ( value = $object.data('size') ) {
85
+ $('.js-wpt-skype-size option', $popup).removeAttr('selected');
86
+ $('.js-wpt-skype-size [value='+value+']', $popup).attr('selected', 'selected');
87
+ }
88
+ if ( value = $object.data('color') ) {
89
+ $('.js-wpt-skype-color option', $popup).removeAttr('selected');
90
+ $('.js-wpt-skype-color [value='+value+']', $popup).attr('selected', 'selected');
91
+ }
92
+ if ( value = $object.data('action') ) {
93
+ switch(value) {
94
+ case 'dropdown':
95
+ $('.js-wpt-skype-action', $popup).attr('checked', 'checked');
96
+ break;
97
+ case 'chat':
98
+ case 'call':
99
+ $('.js-wpt-skype-action', $popup).removeAttr('checked');
100
+ $('.js-wpt-skype-action-'+value, $popup).attr('checked', 'checked');
101
+ break;
102
+ default:
103
+ $('.js-wpt-skype-action', $popup).removeAttr('checked');
104
+ $('.js-wpt-skype-action-call', $popup).attr('checked', 'checked');
105
+ break;
106
+ }
107
+ }
108
+ }
109
+ /**
110
+ * skypename
111
+ */
112
+ var skypename = "dropdown";
113
+ if ($('.js-wpt-skype-action:checked', $popup).length < 2 ) {
114
+ skypename = $('.js-wpt-skype-action:checked', $popup).val();
115
+ }
116
+ /**
117
+ * Skype.ui
118
+ */
119
+ if ( participants.length > 2 ) {
120
+ if ( 'object' == typeof Skype) {
121
+ data = {
122
+ name: skypename,
123
+ element: "wpt-skype-preview",
124
+ participants: [participants],
125
+ imageSize: parseInt($('.js-wpt-skype-size option:selected', $popup).val()),
126
+ imageColor: $('.js-wpt-skype-color option:selected', $popup).val()
127
+ }
128
+ /**
129
+ * show tooltip
130
+ */
131
+ if ( 'dropdown' == data.name ) {
132
+ $('small', $button).show();
133
+ } else {
134
+ $('small', $button).hide();
135
+ }
136
+ /**
137
+ * change parent background to see skype in white
138
+ */
139
+ if ( 'white' == data.imageColor) {
140
+ $button.addClass('dark-background');
141
+
142
+ } else {
143
+ $button.removeClass('dark-background');
144
+ }
145
+ Skype.ui(data);
146
+ }
147
+ }
148
+ }
149
  return {
150
+ init: init,
151
+ preview: preview
152
  };
153
  })(jQuery);
154
 
embedded/common/toolset-forms/js/validation.js CHANGED
@@ -67,6 +67,18 @@ var wptValidation = (function($) {
67
  // return this.getLength(value, element) > 0;
68
  // }
69
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  if (jQuery(element).hasClass("hasDatepicker")) {
71
  return false;
72
  }
67
  // return this.getLength(value, element) > 0;
68
  // }
69
 
70
+ //Fixing YT cred-104
71
+ element = jQuery(element).siblings( 'input[type="hidden"]' );
72
+ if (element[0] &&
73
+ !jQuery(element[0]).prop("disabled") &&
74
+ (jQuery(element[0]).attr('data-wpt-type')=='file' ||
75
+ jQuery(element[0]).attr('data-wpt-type')=='video' ||
76
+ jQuery(element[0]).attr('data-wpt-type')=='image'
77
+ )) {
78
+ var val = jQuery(element[0]).val();
79
+ return val && $.trim(val).length > 0;
80
+ }
81
+
82
  if (jQuery(element).hasClass("hasDatepicker")) {
83
  return false;
84
  }
embedded/common/toolset-forms/readme.txt CHANGED
@@ -30,6 +30,11 @@ function my_toolset_valid_image_extentions($valid_extensions)
30
 
31
  = Changelog =
32
 
 
 
 
 
 
33
  2015-03-25
34
 
35
  - Fixed missing warning for date type field.
30
 
31
  = Changelog =
32
 
33
+ 2015-06-29
34
+
35
+ - Added ability to have default value for custom fields
36
+ https://onthegosystems.myjetbrains.com/youtrack/issue/types-58
37
+
38
  2015-03-25
39
 
40
  - Fixed missing warning for date type field.
embedded/common/utility/css/notifications.css CHANGED
@@ -339,4 +339,9 @@ span.toolset-alert {
339
 
340
  .wp-toolset-pointer.wp-pointer-left .wp-pointer-arrow {
341
  border-right-color: #EF6223;
342
- }
 
 
 
 
 
339
 
340
  .wp-toolset-pointer.wp-pointer-left .wp-pointer-arrow {
341
  border-right-color: #EF6223;
342
+ }
343
+
344
+ /* //// DON'T SHOW AGAIN STUFF ////////////*/
345
+ span.dont-wrap{float:right;margin-right:12px;}
346
+ .toolset-alert-not-again{}
347
+ .toolset-alert-not-again-label{}
embedded/common/utility/js/events-manager/event-manager.js ADDED
@@ -0,0 +1,248 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ( function( window, undefined ) {
2
+ 'use strict';
3
+
4
+ /**
5
+ * Handles managing all events for whatever you plug it into. Priorities for hooks are based on lowest to highest in
6
+ * that, lowest priority hooks are fired first.
7
+ */
8
+ var EventManager = function() {
9
+ var slice = Array.prototype.slice;
10
+
11
+ /**
12
+ * Maintain a reference to the object scope so our public methods never get confusing.
13
+ */
14
+ var MethodsAvailable = {
15
+ removeFilter : removeFilter,
16
+ applyFilters : applyFilters,
17
+ addFilter : addFilter,
18
+ removeAction : removeAction,
19
+ doAction : doAction,
20
+ addAction : addAction
21
+ };
22
+
23
+ /**
24
+ * Contains the hooks that get registered with this EventManager. The array for storage utilizes a "flat"
25
+ * object literal such that looking up the hook utilizes the native object literal hash.
26
+ */
27
+ var STORAGE = {
28
+ actions : {},
29
+ filters : {}
30
+ };
31
+
32
+ /**
33
+ * Adds an action to the event manager.
34
+ *
35
+ * @param action Must contain namespace.identifier
36
+ * @param callback Must be a valid callback function before this action is added
37
+ * @param [priority=10] Used to control when the function is executed in relation to other callbacks bound to the same hook
38
+ * @param [context] Supply a value to be used for this
39
+ */
40
+ function addAction( action, callback, priority, context ) {
41
+ if( typeof action === 'string' && typeof callback === 'function' ) {
42
+ priority = parseInt( ( priority || 10 ), 10 );
43
+ _addHook( 'actions', action, callback, priority, context );
44
+ }
45
+
46
+ return MethodsAvailable;
47
+ }
48
+
49
+ /**
50
+ * Performs an action if it exists. You can pass as many arguments as you want to this function; the only rule is
51
+ * that the first argument must always be the action.
52
+ */
53
+ function doAction( /* action, arg1, arg2, ... */ ) {
54
+ var args = slice.call( arguments );
55
+ var action = args.shift();
56
+
57
+ if( typeof action === 'string' ) {
58
+ _runHook( 'actions', action, args );
59
+ }
60
+
61
+ return MethodsAvailable;
62
+ }
63
+
64
+ /**
65
+ * Removes the specified action if it contains a namespace.identifier & exists.
66
+ *
67
+ * @param action The action to remove
68
+ * @param [callback] Callback function to remove
69
+ */
70
+ function removeAction( action, callback ) {
71
+ if( typeof action === 'string' ) {
72
+ _removeHook( 'actions', action, callback );
73
+ }
74
+
75
+ return MethodsAvailable;
76
+ }
77
+
78
+ /**
79
+ * Adds a filter to the event manager.
80
+ *
81
+ * @param filter Must contain namespace.identifier
82
+ * @param callback Must be a valid callback function before this action is added
83
+ * @param [priority=10] Used to control when the function is executed in relation to other callbacks bound to the same hook
84
+ * @param [context] Supply a value to be used for this
85
+ */
86
+ function addFilter( filter, callback, priority, context ) {
87
+ if( typeof filter === 'string' && typeof callback === 'function' ) {
88
+ priority = parseInt( ( priority || 10 ), 10 );
89
+ _addHook( 'filters', filter, callback, priority, context );
90
+ }
91
+
92
+ return MethodsAvailable;
93
+ }
94
+
95
+ /**
96
+ * Performs a filter if it exists. You should only ever pass 1 argument to be filtered. The only rule is that
97
+ * the first argument must always be the filter.
98
+ */
99
+ function applyFilters( /* filter, filtered arg, arg2, ... */ ) {
100
+ var args = slice.call( arguments );
101
+ var filter = args.shift();
102
+
103
+ if( typeof filter === 'string' ) {
104
+ return _runHook( 'filters', filter, args );
105
+ }
106
+
107
+ return MethodsAvailable;
108
+ }
109
+
110
+ /**
111
+ * Removes the specified filter if it contains a namespace.identifier & exists.
112
+ *
113
+ * @param filter The action to remove
114
+ * @param [callback] Callback function to remove
115
+ */
116
+ function removeFilter( filter, callback ) {
117
+ if( typeof filter === 'string') {
118
+ _removeHook( 'filters', filter, callback );
119
+ }
120
+
121
+ return MethodsAvailable;
122
+ }
123
+
124
+ /**
125
+ * Removes the specified hook by resetting the value of it.
126
+ *
127
+ * @param type Type of hook, either 'actions' or 'filters'
128
+ * @param hook The hook (namespace.identifier) to remove
129
+ * @private
130
+ */
131
+ function _removeHook( type, hook, callback, context ) {
132
+ var handlers, handler, i;
133
+
134
+ if ( !STORAGE[ type ][ hook ] ) {
135
+ return;
136
+ }
137
+ if ( !callback ) {
138
+ STORAGE[ type ][ hook ] = [];
139
+ } else {
140
+ handlers = STORAGE[ type ][ hook ];
141
+ if ( !context ) {
142
+ for ( i = handlers.length; i--; ) {
143
+ if ( handlers[i].callback === callback ) {
144
+ handlers.splice( i, 1 );
145
+ }
146
+ }
147
+ }
148
+ else {
149
+ for ( i = handlers.length; i--; ) {
150
+ handler = handlers[i];
151
+ if ( handler.callback === callback && handler.context === context) {
152
+ handlers.splice( i, 1 );
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
158
+
159
+ /**
160
+ * Adds the hook to the appropriate storage container
161
+ *
162
+ * @param type 'actions' or 'filters'
163
+ * @param hook The hook (namespace.identifier) to add to our event manager
164
+ * @param callback The function that will be called when the hook is executed.
165
+ * @param priority The priority of this hook. Must be an integer.
166
+ * @param [context] A value to be used for this
167
+ * @private
168
+ */
169
+ function _addHook( type, hook, callback, priority, context ) {
170
+ var hookObject = {
171
+ callback : callback,
172
+ priority : priority,
173
+ context : context
174
+ };
175
+
176
+ // Utilize 'prop itself' : http://jsperf.com/hasownproperty-vs-in-vs-undefined/19
177
+ var hooks = STORAGE[ type ][ hook ];
178
+ if( hooks ) {
179
+ hooks.push( hookObject );
180
+ hooks = _hookInsertSort( hooks );
181
+ }
182
+ else {
183
+ hooks = [ hookObject ];
184
+ }
185
+
186
+ STORAGE[ type ][ hook ] = hooks;
187
+ }
188
+
189
+ /**
190
+ * Use an insert sort for keeping our hooks organized based on priority. This function is ridiculously faster
191
+ * than bubble sort, etc: http://jsperf.com/javascript-sort
192
+ *
193
+ * @param hooks The custom array containing all of the appropriate hooks to perform an insert sort on.
194
+ * @private
195
+ */
196
+ function _hookInsertSort( hooks ) {
197
+ var tmpHook, j, prevHook;
198
+ for( var i = 1, len = hooks.length; i < len; i++ ) {
199
+ tmpHook = hooks[ i ];
200
+ j = i;
201
+ while( ( prevHook = hooks[ j - 1 ] ) && prevHook.priority > tmpHook.priority ) {
202
+ hooks[ j ] = hooks[ j - 1 ];
203
+ --j;
204
+ }
205
+ hooks[ j ] = tmpHook;
206
+ }
207
+
208
+ return hooks;
209
+ }
210
+
211
+ /**
212
+ * Runs the specified hook. If it is an action, the value is not modified but if it is a filter, it is.
213
+ *
214
+ * @param type 'actions' or 'filters'
215
+ * @param hook The hook ( namespace.identifier ) to be ran.
216
+ * @param args Arguments to pass to the action/filter. If it's a filter, args is actually a single parameter.
217
+ * @private
218
+ */
219
+ function _runHook( type, hook, args ) {
220
+ var handlers = STORAGE[ type ][ hook ], i, len;
221
+
222
+ if ( !handlers ) {
223
+ return (type === 'filters') ? args[0] : false;
224
+ }
225
+
226
+ len = handlers.length;
227
+ if ( type === 'filters' ) {
228
+ for ( i = 0; i < len; i++ ) {
229
+ args[ 0 ] = handlers[ i ].callback.apply( handlers[ i ].context, args );
230
+ }
231
+ } else {
232
+ for ( i = 0; i < len; i++ ) {
233
+ handlers[ i ].callback.apply( handlers[ i ].context, args );
234
+ }
235
+ }
236
+
237
+ return ( type === 'filters' ) ? args[ 0 ] : true;
238
+ }
239
+
240
+ // return all of the publicly available methods
241
+ return MethodsAvailable;
242
+
243
+ };
244
+
245
+ window.wp = window.wp || {};
246
+ window.wp.hooks = new EventManager();
247
+
248
+ } )( window );
embedded/common/utility/js/events-manager/event-manager.min.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ /**
2
+ * Module: WP-JS-Hooks
3
+ * Props: Carl Danley & 10up
4
+ */
5
+ !function(a){"use strict";var b=function(){function a(a,b,c,d){return"string"==typeof a&&"function"==typeof b&&(c=parseInt(c||10,10),h("actions",a,b,c,d)),k}function b(){var a=Array.prototype.slice.call(arguments),b=a.shift();return"string"==typeof b&&j("actions",b,a),k}function c(a,b){return"string"==typeof a&&g("actions",a,b),k}function d(a,b,c,d){return"string"==typeof a&&"function"==typeof b&&(c=parseInt(c||10,10),h("filters",a,b,c,d)),k}function e(){var a=Array.prototype.slice.call(arguments),b=a.shift();return"string"==typeof b?j("filters",b,a):k}function f(a,b){return"string"==typeof a&&g("filters",a,b),k}function g(a,b,c,d){if(l[a][b])if(c){var e,f=l[a][b];if(d)for(e=f.length;e--;){var g=f[e];g.callback===c&&g.context===d&&f.splice(e,1)}else for(e=f.length;e--;)f[e].callback===c&&f.splice(e,1)}else l[a][b]=[]}function h(a,b,c,d,e){var f={callback:c,priority:d,context:e},g=l[a][b];g?(g.push(f),g=i(g)):g=[f],l[a][b]=g}function i(a){for(var b,c,d,e=1,f=a.length;f>e;e++){for(b=a[e],c=e;(d=a[c-1])&&d.priority>b.priority;)a[c]=a[c-1],--c;a[c]=b}return a}function j(a,b,c){var d=l[a][b];if(!d)return"filters"===a?c[0]:!1;var e=0,f=d.length;if("filters"===a)for(;f>e;e++)c[0]=d[e].callback.apply(d[e].context,c);else for(;f>e;e++)d[e].callback.apply(d[e].context,c);return"filters"===a?c[0]:!0}var k={removeFilter:f,applyFilters:e,addFilter:d,removeAction:c,doAction:b,addAction:a},l={actions:{},filters:{}};return k};a.wp=a.wp||{},a.wp.hooks=new b}(window);
embedded/common/utility/js/utils.js CHANGED
@@ -106,6 +106,8 @@ WPV_Toolset.Utils.do_ajax_post = function( params, callback_object )
106
  onClose: false,
107
  onOpen: false,
108
  onDestroy:false,
 
 
109
  args:[],
110
  referTo: null,
111
  offestX: -20,
@@ -192,6 +194,17 @@ WPV_Toolset.Utils.do_ajax_post = function( params, callback_object )
192
  self.box.html( self.prms.text );
193
  }
194
 
 
 
 
 
 
 
 
 
 
 
 
195
  if( self.prms.close ){
196
  self.remove = $('<i class="toolset-alert-close icon-remove-sign js-icon-remove-sign"></i>');
197
  self.box.append( self.remove );
@@ -201,6 +214,7 @@ WPV_Toolset.Utils.do_ajax_post = function( params, callback_object )
201
  }
202
 
203
 
 
204
  //if( is_open ) self.wpvMessageRemove();
205
  if ( self.prms.position == 'before' ) {
206
  self.container.prepend( self.box );
@@ -336,6 +350,102 @@ WPV_Toolset.Utils.do_ajax_post = function( params, callback_object )
336
  };
337
  })( jQuery, window, document );
338
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
339
  (function ($) {
340
  $.fn.insertAtIndex = function(index,selector){
341
  var opts = $.extend({
@@ -997,7 +1107,22 @@ String.prototype.regexEscape = function regexEscape() {
997
  }(jQuery, window, document))
998
  ;
999
 
1000
- /* http://bigwilliam.com/jquery-fire-event-after-window-resize-is-completed/ */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1001
  var waitForFinalEvent = ( function () {
1002
  var timers = {};
1003
  return function ( callback, ms, uniqueId ) {
@@ -1012,6 +1137,7 @@ var waitForFinalEvent = ( function () {
1012
  };
1013
  } )();
1014
 
 
1015
  WPV_Toolset.Utils._strip_scripts = function (data) {
1016
 
1017
  if( !data ) return '';
@@ -1046,22 +1172,49 @@ if (!String.prototype.trim) {
1046
  })();
1047
  }
1048
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1049
  WPV_Toolset.Utils._strip_tags_and_preserve_text = function( text ){
1050
  var rex = /<\/?(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdi|bdo|bgsound|big|blink|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|data|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|i|iframe|img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|main|map|mark|marquee|menu|menuitem|meta|meter|nav|nobr|noframes|noscript|object|ol|optgroup|option|output|p|param|plaintext|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|small|source|spacer|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|track|tt|u|ul|var|video|wbr|xmp)\b[^<>]*>/ig
1051
  return _.escape( text.replace(rex , "") ).trim();
1052
  };
1053
 
1054
- /*
1055
-
1056
- // Usage
1057
- $(window).resize(function() {
1058
- var output = $('.output');
1059
- $(output).text('RESIZING...');
1060
- // Wait for it...
1061
- waitForFinalEvent(function() {
1062
- $(output).text('EVENT FIRED!');
1063
- //...
1064
- }, 500, "some unique string");
1065
- });
1066
 
 
 
 
 
 
 
 
 
 
1067
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
106
  onClose: false,
107
  onOpen: false,
108
  onDestroy:false,
109
+ dontShowAgain:null,
110
+ dontShowAgainText:'',
111
  args:[],
112
  referTo: null,
113
  offestX: -20,
194
  self.box.html( self.prms.text );
195
  }
196
 
197
+ if( self.prms.dontShowAgain && typeof self.prms.dontShowAgain === 'function' && self.prms.dontShowAgainText !== '' ){
198
+ self.$dontContainer = $('<span class="dont-wrap"></span>')
199
+ self.$dont_show = $('<input type="checkbox" class="toolset-alert-not-again js-icon-not-again">');
200
+ self.$dont_label = $('<label class="toolset-alert-not-again-label" for="toolset-alert-not-again"></label>');
201
+ self.$dont_label.text(self.prms.dontShowAgainText);
202
+ self.$dontContainer.append( self.$dont_show, self.$dont_label );
203
+ self.box.append( self.$dontContainer );
204
+
205
+ self.prms.dontShowAgain.call(self.$dont_show, self);
206
+ }
207
+
208
  if( self.prms.close ){
209
  self.remove = $('<i class="toolset-alert-close icon-remove-sign js-icon-remove-sign"></i>');
210
  self.box.append( self.remove );
214
  }
215
 
216
 
217
+
218
  //if( is_open ) self.wpvMessageRemove();
219
  if ( self.prms.position == 'before' ) {
220
  self.container.prepend( self.box );
350
  };
351
  })( jQuery, window, document );
352
 
353
+ jQuery( function( $ ) {
354
+ $.each( $( '.js-show-toolset-message:not(.js-show-toolset-message-inited)' ), function() {
355
+ $( this )
356
+ .addClass( 'js-show-toolset-message-inited' )
357
+ .show()
358
+ .wpvToolsetHelp();
359
+ });
360
+ });
361
+
362
+ if ( typeof jQuery.fn.wpvToolsetHelp === 'undefined' ) {
363
+
364
+ /* Help messages */
365
+ (function($){
366
+
367
+ $.fn.wpvToolsetHelp = function( options ) {
368
+
369
+ var thiz = this;
370
+
371
+ var $container = this;
372
+ var prms = $.extend( {
373
+ content : ( thiz.contents().length !== 0 ) ? thiz.contents() : "Enter a customized text to be displayed",
374
+ tutorialButtonText : ( typeof(thiz.data('tutorial-button-text' )) !== 'undefined' ) ? thiz.data('tutorial-button-text') : null,
375
+ tutorialButtonURL : ( typeof(thiz.data('tutorial-button-url' )) !== 'undefined' ) ? thiz.data('tutorial-button-url') : null,
376
+ linkText : ( typeof(thiz.data('link-text')) !== 'undefined' ) ? thiz.data('link-text') : null,
377
+ linkURL : ( typeof(thiz.data('link-url')) !== 'undefined' ) ? thiz.data('link-url') : null,
378
+ footer : ( typeof(thiz.data('footer')) !== 'undefined' ) ? thiz.data('footer') : false,
379
+ classname : ( typeof(thiz.data('classname')) !== 'undefined' ) ? thiz.data('classname') : '',
380
+ close: ( typeof(thiz.data('close')) !== 'undefined' ) ? thiz.data('close') : true,
381
+ hidden: ( typeof(thiz.data('hidden')) !== 'undefined' ) ? thiz.data('hidden') : false,
382
+ onClose: false,
383
+ args:[]
384
+ }, options );
385
+
386
+ if ( $.type(prms.content) === 'string' ) {
387
+ prms.content = $('<p>' + prms.content + '</p>');
388
+ }
389
+
390
+ var $box = $('<div class="toolset-help ' + prms.classname + '"><div class="toolset-help-content"></div><div class="toolset-help-sidebar"></div></div>');
391
+
392
+ var $footer = $('<div class="toolset-help-footer"><button class="js-toolset-help-close js-toolset-help-close-forever button-secondary">'+ wpv_help_box_texts.wpv_dont_show_it_again +'</button><button class="js-toolset-help-close js-toolset-help-close-once button-primary">'+ wpv_help_box_texts.wpv_close +'</button></div>');
393
+
394
+ if (prms.footer === true) {
395
+ $footer.appendTo($box);
396
+ }
397
+
398
+ prms.content.appendTo($box.find('.toolset-help-content'));
399
+
400
+ this.wpvHelpRemove = function() {
401
+ if( $box )
402
+ $box.fadeOut('fast', function(){
403
+ // $(this).remove();
404
+ if ( prms.onClose && typeof prms.onClose === 'function' ) {
405
+ prms.onClose.apply( $container, prms.args );
406
+ }
407
+ });
408
+ return this;
409
+ };
410
+
411
+ if ( (prms.tutorialButtonText && prms.tutorialButtonURL) || (prms.linkText && prms.linkURL) ) {
412
+ var $toolbar = $('<p class="toolset-help-content-toolbar"></p>');
413
+ $toolbar.appendTo($box.find('.toolset-help-content'));
414
+ if (prms.tutorialButtonText && prms.tutorialButtonURL) {
415
+ $('<a href="' + prms.tutorialButtonURL + '" class="btn">' + prms.tutorialButtonText + '</a>').appendTo($toolbar);
416
+ }
417
+ if (prms.linkText && prms.linkURL) {
418
+ $('<a href="' + prms.linkURL + '">' + prms.linkText + '</a>').appendTo($toolbar);
419
+ }
420
+ }
421
+
422
+ if (prms.close === true) {
423
+ $('<i class="icon-remove js-toolset-help-close js-toolset-help-close-main"></i>').appendTo($box);
424
+ }
425
+
426
+ // bind close event to all close buttons
427
+ var $closeButtons = $box.find('.js-toolset-help-close');
428
+ if ( $closeButtons.length !== 0 ) {
429
+ $closeButtons.on('click',function(){
430
+ $container.wpvHelpRemove();
431
+ });
432
+ }
433
+
434
+ $box.appendTo($container).hide();
435
+ if ($container.hasClass('js-show-toolset-message')) {
436
+ $box.unwrap();
437
+ }
438
+ if (prms.hidden === false) {
439
+ $box.fadeIn('fast');
440
+ }
441
+
442
+ return this;
443
+ };
444
+
445
+ })(jQuery);
446
+
447
+ }
448
+
449
  (function ($) {
450
  $.fn.insertAtIndex = function(index,selector){
451
  var opts = $.extend({
1107
  }(jQuery, window, document))
1108
  ;
1109
 
1110
+ /*
1111
+
1112
+ http://bigwilliam.com/jquery-fire-event-after-window-resize-is-completed/
1113
+
1114
+ // Usage
1115
+ $(window).resize(function() {
1116
+ var output = $('.output');
1117
+ $(output).text('RESIZING...');
1118
+ // Wait for it...
1119
+ waitForFinalEvent(function() {
1120
+ $(output).text('EVENT FIRED!');
1121
+ //...
1122
+ }, 500, "some unique string");
1123
+ });
1124
+
1125
+ */
1126
  var waitForFinalEvent = ( function () {
1127
  var timers = {};
1128
  return function ( callback, ms, uniqueId ) {
1137
  };
1138
  } )();
1139
 
1140
+
1141
  WPV_Toolset.Utils._strip_scripts = function (data) {
1142
 
1143
  if( !data ) return '';
1172
  })();
1173
  }
1174
 
1175
+
1176
+ /**
1177
+ * Strip known tags and escape the rest of the string.
1178
+ *
1179
+ * Warning! Since underscore.js 1.2.2 the _.escape() method got dumber and
1180
+ * now it double-escapes HTML entities (read: https://github.com/jashkenas/underscore/issues/350).
1181
+ * If you want to avoid double-escaping, you can do it by:
1182
+ *
1183
+ * WPV_Toolset.Utils._strip_tags_and_preserve_text(_.unescape(text))
1184
+ *
1185
+ * Note: Although the "_" prefix suggests this function is private, it's also used elsewhere.
1186
+ *
1187
+ * @param {string} text
1188
+ * @returns {string}
1189
+ * @since unknown
1190
+ */
1191
  WPV_Toolset.Utils._strip_tags_and_preserve_text = function( text ){
1192
  var rex = /<\/?(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|basefont|bdi|bdo|bgsound|big|blink|blockquote|body|br|button|canvas|caption|center|cite|code|col|colgroup|data|datalist|dd|del|details|dfn|dir|div|dl|dt|em|embed|fieldset|figcaption|figure|font|footer|form|frame|frameset|h1|h2|h3|h4|h5|h6|head|header|hgroup|hr|html|i|iframe|img|input|ins|isindex|kbd|keygen|label|legend|li|link|listing|main|map|mark|marquee|menu|menuitem|meta|meter|nav|nobr|noframes|noscript|object|ol|optgroup|option|output|p|param|plaintext|pre|progress|q|rp|rt|ruby|s|samp|script|section|select|small|source|spacer|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|track|tt|u|ul|var|video|wbr|xmp)\b[^<>]*>/ig
1193
  return _.escape( text.replace(rex , "") ).trim();
1194
  };
1195
 
 
 
 
 
 
 
 
 
 
 
 
 
1196
 
1197
+ /**
1198
+ * Setup the behaviour of browser when user tries to leave the page.
1199
+ *
1200
+ * When user tries to leave the page, check if confirmation is needed, and if so, displays a confirmation message and
1201
+ * runs custom action.
1202
+ *
1203
+ * @param {function} checkIfConfirmationNeededCallback Should return true if confirmation should be shown (e.g. unsaved data).
1204
+ * @param {function} onBeforeUnloadCallback Will be called before showing the confirmation.
1205
+ * @param {string} confirmationMessage Confirmation message that should be shown by the browser.
1206
  */
1207
+ WPV_Toolset.Utils.setConfirmUnload = function(checkIfConfirmationNeededCallback, onBeforeUnloadCallback, confirmationMessage) {
1208
+ window.onbeforeunload = function(e) {
1209
+ if(checkIfConfirmationNeededCallback()) {
1210
+
1211
+ onBeforeUnloadCallback();
1212
+
1213
+ // For IE and Firefox prior to version 4
1214
+ if (e) {
1215
+ e.returnValue = confirmationMessage;
1216
+ }
1217
+ return confirmationMessage;
1218
+ }
1219
+ };
1220
+ };
embedded/common/utility/utils.php CHANGED
@@ -1,8 +1,67 @@
1
  <?php
2
 
3
  /**
4
- * a collection of .php utility functions for common use
5
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
 
7
  if ( ! function_exists( 'wp_json_encode' ) ) {
8
  function wp_json_encode( $data, $options = 0, $depth = 512 ) {
@@ -108,4 +167,165 @@ if ( ! function_exists( 'wp_json_encode' ) ) {
108
  }
109
  }
110
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
111
  }
1
  <?php
2
 
3
  /**
4
+ * utils.php
5
+ *
6
+ * A collection of .php utility functions for common use
7
+ *
8
+ * @package ToolsetCommon
9
+ *
10
+ * @since unknown
11
+ */
12
+
13
+ if ( ! class_exists( 'Toolset_Utils' ) ) {
14
+
15
+ /**
16
+ * ToolsetUtils
17
+ *
18
+ * A collection of static methods to be used across Toolset plugins
19
+ *
20
+ * @since 1.7
21
+ */
22
+
23
+ class Toolset_Utils {
24
+
25
+ /**
26
+ * help_box
27
+ *
28
+ * Creates the HTML version for the wpvToolsetHelp() javascript function
29
+ *
30
+ * @param data array containing the attributes
31
+ * text => The content to show inside the help box.
32
+ * tutorial-button-text => Optional button anchor text.
33
+ * tutorial-button-url => Optional button url.
34
+ * link-text => Optional link anchor text.
35
+ * link-url => Optional link url.
36
+ * footer => 'true'|'false' Whether the help box should have a footer with a Close button (managed) and a "dismiss forever" button (not managed). Defaults to 'false'.
37
+ * classname => Additional classnames for the help box in a space-separated list.
38
+ * close => 'true'|'false' Whether the help box should have a close button. Defaults to 'true'.
39
+ * hidden => 'true'|'false' Whether the help box should be hidden by default. Defaults to 'false'.
40
+ *
41
+ * @since 1.7
42
+ */
43
+
44
+ public static function help_box( $data = array() ) {
45
+ if ( is_array( $data ) && ! empty( $data ) ) {
46
+ $data_attr = '';
47
+ foreach ( $data as $key => $value ) {
48
+ if ( 'text' != $key ) {
49
+ $data_attr .= ' data-' . $key . '="' . esc_attr( $value ) . '"';
50
+ }
51
+ }
52
+ ?>
53
+ <div class="js-show-toolset-message"<?php echo $data_attr; ?>>
54
+ <?php if ( isset( $data['text'] ) ) {
55
+ echo $data['text'];
56
+ } ?>
57
+ </div>
58
+ <?php }
59
+ }
60
+
61
+
62
+ }
63
+
64
+ }
65
 
66
  if ( ! function_exists( 'wp_json_encode' ) ) {
67
  function wp_json_encode( $data, $options = 0, $depth = 512 ) {
167
  }
168
  }
169
  }
170
+ }
171
+
172
+ if( !class_exists('Toolset_ArrayUtils') ){
173
+ Class Toolset_ArrayUtils{
174
+ private $value = null;
175
+ private $property = null;
176
+
177
+ function __construct($property = null, $value = null ){
178
+ $this->value = $value;
179
+ $this->property = $property;
180
+ }
181
+
182
+ function filter_array($element){
183
+ if( is_object($element) ){
184
+ return $element->{$this->property} === $this->value;
185
+ } elseif( is_array($element) ){
186
+ return $element[$this->property] === $this->value;
187
+ }else{
188
+ throw new Exception(sprintf("Element parameter should be an object, %s given.", gettype($element) ) );
189
+ }
190
+ }
191
+
192
+ public function remap_by_property( $data ){
193
+ return $data[$this->property];
194
+ }
195
+
196
+ function value_in_array( $array ){
197
+ return in_array( $this->value, array_values( $array ) );
198
+ }
199
+
200
+ function sort_string_ascendant( $a, $b ){
201
+ return strcmp($a[$this->property], $b[$this->property]);
202
+ }
203
+ }
204
+ }
205
+
206
+
207
+
208
+ if( !class_exists('Toolset_ErrorHandler') ){
209
+
210
+ /**
211
+ * ErrorHandler that can be used to catch internal PHP errors
212
+ * and convert to an ErrorException instance.
213
+ */
214
+ abstract class Toolset_ErrorHandler
215
+ {
216
+ /**
217
+ * Active stack
218
+ *
219
+ * @var array
220
+ */
221
+ protected static $stack = array();
222
+
223
+ /**
224
+ * Check if this error handler is active
225
+ *
226
+ * @return bool
227
+ */
228
+ public static function started()
229
+ {
230
+ return (bool) static::getNestedLevel();
231
+ }
232
+
233
+ /**
234
+ * Get the current nested level
235
+ *
236
+ * @return int
237
+ */
238
+ public static function getNestedLevel()
239
+ {
240
+ return count(static::$stack);
241
+ }
242
+
243
+ /**
244
+ * Starting the error handler
245
+ *
246
+ * @param int $errorLevel
247
+ */
248
+ public static function start($errorLevel = \E_WARNING)
249
+ {
250
+ if (!static::$stack) {
251
+ set_error_handler(array(get_called_class(), 'addError'), $errorLevel);
252
+ register_shutdown_function( array(get_called_class(), 'handle_shutdown'), true );
253
+ }
254
+
255
+ static::$stack[] = null;
256
+ }
257
+
258
+ /**
259
+ * Stopping the error handler
260
+ *
261
+ * @param bool $throw Throw the ErrorException if any
262
+ * @return null|ErrorException
263
+ * @throws ErrorException If an error has been catched and $throw is true
264
+ */
265
+ public static function stop($throw = false)
266
+ {
267
+ $errorException = null;
268
+
269
+ if (static::$stack) {
270
+ $errorException = array_pop(static::$stack);
271
+
272
+ if (!static::$stack) {
273
+ restore_error_handler();
274
+ }
275
+
276
+ if ($errorException && $throw) {
277
+ throw $errorException;
278
+ }
279
+ }
280
+
281
+ return $errorException;
282
+ }
283
+
284
+
285
+ public static function handle_shutdown( ){
286
+ if( static::is_fatal() ){
287
+ do_action('toolset-shutdown-hander');
288
+ }
289
+ exit;
290
+ }
291
+
292
+ public static function is_fatal(){
293
+ $error = error_get_last();
294
+ $ignore = E_WARNING | E_NOTICE | E_USER_WARNING | E_USER_NOTICE | E_STRICT | E_DEPRECATED | E_USER_DEPRECATED;
295
+ if ( ($error['type'] & $ignore) == 0 ){
296
+ return true;
297
+ }
298
+ return false;
299
+ }
300
+
301
+ /**
302
+ * Stop all active handler
303
+ *
304
+ * @return void
305
+ */
306
+ public static function clean()
307
+ {
308
+ if (static::$stack) {
309
+ restore_error_handler();
310
+ }
311
+
312
+ static::$stack = array();
313
+ }
314
+
315
+ /**
316
+ * Add an error to the stack
317
+ *
318
+ * @param int $errno
319
+ * @param string $errstr
320
+ * @param string $errfile
321
+ * @param int $errline
322
+ * @return void
323
+ */
324
+ public static function addError($errno, $errstr = '', $errfile = '', $errline = 0)
325
+ {
326
+ $stack = & static::$stack[count(static::$stack) - 1];
327
+ $stack = new ErrorException($errstr, 0, $errno, $errfile, $errline, $stack);
328
+ }
329
+ }
330
+
331
  }
embedded/common/visual-editor/editor-addon-generic.class.php CHANGED
@@ -39,8 +39,9 @@ if( !class_exists( 'Editor_addon_generic' ) )
39
  // Scripts
40
  wp_register_script( 'icl_editor-script', EDITOR_ADDON_RELPATH . '/res/js/icl_editor_addon_plugin.js', array( 'jquery', 'quicktags', 'wplink' ) );
41
  $editor_script_translations = array(
 
42
  'wpv_conditional_button' => __( 'conditional output', 'wpv-views' ),
43
- 'wpv_conditional_callback_nonce' => wp_create_nonce( 'wpv_editor_callback' )
44
  );
45
  wp_localize_script( 'icl_editor-script', 'icl_editor_localization_texts', $editor_script_translations );
46
  wp_register_script( 'icl_media-manager-js', EDITOR_ADDON_RELPATH . '/res/js/icl_media_manager.js', array( 'jquery', 'icl_editor-script' ) );
39
  // Scripts
40
  wp_register_script( 'icl_editor-script', EDITOR_ADDON_RELPATH . '/res/js/icl_editor_addon_plugin.js', array( 'jquery', 'quicktags', 'wplink' ) );
41
  $editor_script_translations = array(
42
+ 'wpv_insert_conditional_shortcode' => __( 'Insert conditional shortcode', 'wpv-views' ),
43
  'wpv_conditional_button' => __( 'conditional output', 'wpv-views' ),
44
+ 'wpv_editor_callback_nonce' => wp_create_nonce( 'wpv_editor_callback' )
45
  );
46
  wp_localize_script( 'icl_editor-script', 'icl_editor_localization_texts', $editor_script_translations );
47
  wp_register_script( 'icl_media-manager-js', EDITOR_ADDON_RELPATH . '/res/js/icl_media_manager.js', array( 'jquery', 'icl_editor-script' ) );
embedded/common/visual-editor/res/js/icl_editor_addon_plugin.js CHANGED
@@ -47,7 +47,7 @@ if ( typeof WPV_Toolset.add_qt_editor_buttons !== 'function' ) {
47
  if ( selection ) {
48
  //When texty selected
49
  current_editor_object = {'e' : e, 'c' : c, 'ed' : ed, 't' : t, 'post_id' : '', 'close_tag' : true, 'codemirror' : id};
50
- WPViews.shortcodes_gui.wpv_insert_popup_conditional('wpv-conditional', icl_editor_localization_texts.wpv_conditional_button, {}, icl_editor_localization_texts.wpv_conditional_callback_nonce, current_editor_object );
51
  } else if ( ed.openTags ) {
52
  // if we have an open tag, see if it's ours
53
  var ret = false, i = 0, t = this;
@@ -64,7 +64,7 @@ if ( typeof WPV_Toolset.add_qt_editor_buttons !== 'function' ) {
64
  ed.openTags.push(t.id);
65
  e.value = '/' + e.value;
66
  current_editor_object = {'e' : e, 'c' : c, 'ed' : ed, 't' : t, 'post_id' : '', 'close_tag' : false, 'codemirror' : id};
67
- WPViews.shortcodes_gui.wpv_insert_popup_conditional('wpv-conditional', icl_editor_localization_texts.wpv_conditional_button, {},icl_editor_localization_texts.wpv_conditional_callback_nonce, current_editor_object );
68
  } else {
69
  // close tag
70
  ed.openTags.splice(ret, 1);
@@ -83,7 +83,7 @@ if ( typeof WPV_Toolset.add_qt_editor_buttons !== 'function' ) {
83
  ed.openTags.push(t.id);
84
  e.value = '/' + e.value;
85
  current_editor_object = {'e' : e, 'c' : c, 'ed' : ed, 't' : t, 'post_id' : '', 'close_tag' : false, 'codemirror' : id};
86
- WPViews.shortcodes_gui.wpv_insert_popup_conditional('wpv-conditional', icl_editor_localization_texts.wpv_conditional_button, {}, icl_editor_localization_texts.wpv_conditional_callback_nonce, current_editor_object );
87
  }
88
  }
89
  }
@@ -1029,15 +1029,20 @@ var icl_editor = (function(window, $){
1029
  {
1030
  var startPos = parseInt(myField.selectionStart);
1031
  var endPos = parseInt(myField.selectionEnd);
 
1032
  if (typeof(myValue2)!='undefined' && myValue2) // wrap
1033
  {
1034
  var sel = myField.value.substring(startPos, endPos);
1035
  myField.value = myField.value.substring(0, startPos) + myValue1 + sel + myValue2 +
1036
  myField.value.substring(endPos, myField.value.length);
 
 
1037
  }
1038
- else
1039
- myField.value = myField.value.substring(0, startPos) + myValue1 +
1040
- myField.value.substring(endPos, myField.value.length);
 
 
1041
  }
1042
  else
1043
  {
47
  if ( selection ) {
48
  //When texty selected
49
  current_editor_object = {'e' : e, 'c' : c, 'ed' : ed, 't' : t, 'post_id' : '', 'close_tag' : true, 'codemirror' : id};
50
+ WPViews.shortcodes_gui.wpv_insert_popup_conditional('wpv-conditional', icl_editor_localization_texts.wpv_insert_conditional_shortcode, {}, icl_editor_localization_texts.wpv_editor_callback_nonce, current_editor_object );
51
  } else if ( ed.openTags ) {
52
  // if we have an open tag, see if it's ours
53
  var ret = false, i = 0, t = this;
64
  ed.openTags.push(t.id);
65
  e.value = '/' + e.value;
66
  current_editor_object = {'e' : e, 'c' : c, 'ed' : ed, 't' : t, 'post_id' : '', 'close_tag' : false, 'codemirror' : id};
67
+ WPViews.shortcodes_gui.wpv_insert_popup_conditional('wpv-conditional', icl_editor_localization_texts.wpv_insert_conditional_shortcode, {},icl_editor_localization_texts.wpv_editor_callback_nonce, current_editor_object );
68
  } else {
69
  // close tag
70
  ed.openTags.splice(ret, 1);
83
  ed.openTags.push(t.id);
84
  e.value = '/' + e.value;
85
  current_editor_object = {'e' : e, 'c' : c, 'ed' : ed, 't' : t, 'post_id' : '', 'close_tag' : false, 'codemirror' : id};
86
+ WPViews.shortcodes_gui.wpv_insert_popup_conditional('wpv-conditional', icl_editor_localization_texts.wpv_insert_conditional_shortcode, {}, icl_editor_localization_texts.wpv_editor_callback_nonce, current_editor_object );
87
  }
88
  }
89
  }
1029
  {
1030
  var startPos = parseInt(myField.selectionStart);
1031
  var endPos = parseInt(myField.selectionEnd);
1032
+ var correctedPos = endPos;
1033
  if (typeof(myValue2)!='undefined' && myValue2) // wrap
1034
  {
1035
  var sel = myField.value.substring(startPos, endPos);
1036
  myField.value = myField.value.substring(0, startPos) + myValue1 + sel + myValue2 +
1037
  myField.value.substring(endPos, myField.value.length);
1038
+ correctedPos += myValue1.length + sel.length + myValue2.length;
1039
+ myField.setSelectionRange(correctedPos, correctedPos);
1040
  }
1041
+ else {
1042
+ myField.value = myField.value.substring(0, startPos) + myValue1 + myField.value.substring(endPos, myField.value.length);
1043
+ correctedPos += myValue1.length;
1044
+ myField.setSelectionRange(correctedPos, correctedPos);
1045
+ }
1046
  }
1047
  else
1048
  {
embedded/common/visual-editor/views-editor-addon.class.php CHANGED
@@ -199,6 +199,7 @@ if ( file_exists( dirname(__FILE__) . '/editor-addon-generic.class.php') && !cla
199
  __( 'Post View', 'wpv-views' ),
200
  __( 'View', 'wpv-views' ),
201
  __( 'Post field', 'wpv-views' ),
 
202
  __( 'Content Template', 'wpv-views' ),
203
  __( 'Taxonomy', 'wpv-views' ),
204
  __( 'Basic', 'wpv-views' )
@@ -211,7 +212,8 @@ if ( file_exists( dirname(__FILE__) . '/editor-addon-generic.class.php') && !cla
211
  $menus_on_top = array(
212
  __( 'Basic', 'wpv-views' ),
213
  __( 'Taxonomy', 'wpv-views' ),
214
- __( 'Content Template', 'wpv-views' )
 
215
  );
216
 
217
  $menus_on_bottom = array(
199
  __( 'Post View', 'wpv-views' ),
200
  __( 'View', 'wpv-views' ),
201
  __( 'Post field', 'wpv-views' ),
202
+ __( 'User basic data', 'wpv-views' ),
203
  __( 'Content Template', 'wpv-views' ),
204
  __( 'Taxonomy', 'wpv-views' ),
205
  __( 'Basic', 'wpv-views' )
212
  $menus_on_top = array(
213
  __( 'Basic', 'wpv-views' ),
214
  __( 'Taxonomy', 'wpv-views' ),
215
+ __( 'Content Template', 'wpv-views' ),
216
+ __( 'User basic data', 'wpv-views' )
217
  );
218
 
219
  $menus_on_bottom = array(
embedded/frontend.php CHANGED
@@ -30,13 +30,13 @@ add_shortcode( 'types', 'wpcf_shortcode' );
30
 
31
  /**
32
  * Shortcode processing.
33
- *
34
  * Called by WP when rendering post on frontend.
35
  * From here follow these:
36
  * @see types_render_field() Renders shortcode. Can be used other ways too.
37
  * @see types_render_field_single() Renders single field. Useful for Repeater.
38
  * Afterwards wrapping options.
39
- *
40
  * @param type $atts
41
  * @param type $content
42
  * @param type $code
@@ -45,7 +45,7 @@ add_shortcode( 'types', 'wpcf_shortcode' );
45
  function wpcf_shortcode( $atts, $content = null, $code = '' ) {
46
 
47
  global $wpcf;
48
-
49
  // Switch the post if there is an attribute of 'id' in the shortcode.
50
  $post_id_atts = new WPV_wpcf_switch_post_from_attr_id( $atts );
51
 
@@ -73,10 +73,10 @@ function wpcf_shortcode( $atts, $content = null, $code = '' ) {
73
 
74
  /**
75
  * Calls view function for specific field type.
76
- *
77
  * @param type $field
78
  * @param type $atts
79
- * @return type
80
  */
81
  function types_render_field( $field_id = null, $params = array(), $content = null, $code = '' )
82
  {
@@ -214,10 +214,10 @@ function types_render_field( $field_id = null, $params = array(), $content = nul
214
 
215
  /**
216
  * Calls view function for specific field type by single field.
217
- *
218
  * @param type $field
219
  * @param type $atts
220
- * @return type
221
  */
222
  function types_render_field_single( $field, $params, $content = null, $code = '', $meta_id = null )
223
  {
@@ -258,10 +258,10 @@ function types_render_field_single( $field, $params, $content = null, $code = ''
258
  }
259
  } else {
260
  if ((isset($field['data']['repetitive'])) && ($field['data']['repetitive'])) {
261
-
262
  //Repetitive fields, used meta ID for proper string translation unique identification
263
  $params['field_value'] = wpcf_translate( 'field ' . $field['id'] . ' value '.$meta_id, $params['field_value'] );
264
-
265
  } else {
266
  //Non-repetitive fields, use post ID
267
  $params['field_value'] = wpcf_translate( 'field ' . $field['id'] . ' value '.$post->ID, $params['field_value'] );
@@ -327,9 +327,9 @@ function types_render_field_single( $field, $params, $content = null, $code = ''
327
  $output = strval( apply_filters( 'types_view', $output,
328
  $params['field_value'], $field['type'], $field['slug'],
329
  $field['name'], $params ) );
330
-
331
  return stripslashes( strval( $output ) );
332
-
333
  }
334
 
335
  function wpcf_frontend_compat_html_output( $output, $field, $content, $params ) {
@@ -363,10 +363,10 @@ function wpcf_frontend_compat_html_output( $output, $field, $content, $params )
363
 
364
  /**
365
  * Wraps field content.
366
- *
367
  * @param type $field
368
  * @param type $content
369
- * @return type
370
  */
371
  function wpcf_frontend_wrap_field( $field, $content, $params = array() ) {
372
  if ( isset( $params['output'] ) && $params['output'] == 'html' ) {
@@ -407,10 +407,10 @@ function wpcf_frontend_wrap_field( $field, $content, $params = array() ) {
407
 
408
  /**
409
  * Wraps field name.
410
- *
411
  * @param type $field
412
  * @param type $content
413
- * @return type
414
  */
415
  function wpcf_frontend_wrap_field_name( $field, $content, $params = array() ) {
416
  if ( isset( $params['output'] ) && $params['output'] == 'html' ) {
@@ -451,10 +451,10 @@ function wpcf_frontend_wrap_field_name( $field, $content, $params = array() ) {
451
 
452
  /**
453
  * Wraps field value.
454
- *
455
  * @param type $field
456
  * @param type $content
457
- * @return type
458
  */
459
  function wpcf_frontend_wrap_field_value( $field, $content, $params = array() ) {
460
  if ( isset( $params['output'] ) && $params['output'] == 'html' ) {
@@ -504,9 +504,9 @@ add_filter( 'wpv_filter_query', 'wpcf_views_query', 12, 2 ); // after custom fie
504
 
505
  /**
506
  * Filter to handle Views queries with checkboxes.
507
- *
508
  * @todo DOCUMENT THIS!
509
- *
510
  * @param type $query
511
  * @param type $view_settings
512
  * @return string
@@ -551,7 +551,7 @@ function wpcf_views_query( $query, $view_settings ) {
551
 
552
  global $wp_version;
553
 
554
- if ( version_compare( $wp_version, '4.1', '<' ) ) {
555
  // We can not use nested meta_query entries
556
  foreach ( $values as $value ) {
557
  foreach ( $options as $key => $option ) {
@@ -645,7 +645,7 @@ function _wpcf_is_checkboxes_field( $field_name ) {
645
  function wpcf_views_get_meta_sql( $clause, $queries, $type, $primary_table,
646
  $primary_id_column, $context ) {
647
 
648
- // Look for the REGEXP code we added and covert it to a proper SQL REGEXP
649
  $regex = '/= \'REGEXP\(([^\)]*)\)\'/siU';
650
 
651
  if ( preg_match_all( $regex, $clause['where'], $matches, PREG_SET_ORDER ) ) {
@@ -665,42 +665,25 @@ function wpcf_views_get_meta_sql( $clause, $queries, $type, $primary_table,
665
  * We now pre-process before the main do_shortcode fitler so that we
666
  * can still use shortcodes in html attributes
667
  * like <img src="[types field="image-field"][/types]">
668
- * adding filter with priority before do_shortcode and other WP standard filters
 
 
669
  */
670
 
671
- add_filter('the_content', 'wpcf_preprocess_shortcodes_for_4_2_3', 5);
 
 
672
 
673
- function wpcf_preprocess_shortcodes_for_4_2_3($content) {
674
-
675
  $shortcode = "/\\[types.*?\\](.*?)\\[\\/types\\]/is";
676
-
677
  // Normalize entities in unfiltered HTML before adding placeholders.
678
  $trans = array( '&#91;' => '&#091;', '&#93;' => '&#093;' );
679
  $content = strtr( $content, $trans );
680
- $trans = array( '[' => '&#91;', ']' => '&#93;' );
681
 
682
- $comment_regex =
683
- '!' // Start of comment, after the <.
684
- . '(?:' // Unroll the loop: Consume everything until --> is found.
685
- . '-(?!->)' // Dash not followed by end of comment.
686
- . '[^\-]*+' // Consume non-dashes.
687
- . ')*+' // Loop possessively.
688
- . '(?:-->)?'; // End of comment. If not found, match all input.
689
-
690
- $regex =
691
- '/(' // Capture the entire match.
692
- . '<' // Find start of element.
693
- . '(?(?=!--)' // Is this a comment?
694
- . $comment_regex // Find end of comment.
695
- . '|'
696
- . '[^>]*>?' // Find end of element. If not found, match all input.
697
- . ')'
698
- . ')/s';
699
-
700
- $textarr = preg_split( $regex, $content, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );
701
 
702
  foreach ( $textarr as &$element ) {
703
- if ( '<' !== $element[0] ) {
704
  continue;
705
  }
706
 
@@ -708,44 +691,83 @@ function wpcf_preprocess_shortcodes_for_4_2_3($content) {
708
  $noclose = false === strpos( $element, ']' );
709
  if ( $noopen || $noclose ) {
710
  // This element does not contain shortcodes.
711
- if ( $noopen xor $noclose ) {
712
- // Need to encode stray [ or ] chars.
713
- $element = strtr( $element, $trans );
714
- }
715
  continue;
716
  }
717
 
718
- if ( '<!--' === substr( $element, 0, 4 ) ) {
719
- // Encode all [ and ] chars.
720
- $element = strtr( $element, $trans );
721
  continue;
722
  }
723
-
724
- $counts = preg_match_all($shortcode, $element, $matches);
725
-
726
- if($counts > 0) {
727
- foreach($matches[0] as $index => &$match) {
728
-
729
  $string_to_replace = $match;
730
-
731
  $inner_content = $matches[1][ $index ];
732
  if ( $inner_content ) {
733
- $new_inner_content = wpcf_preprocess_shortcodes_for_4_2_3( $inner_content );
734
  $match = str_replace( $inner_content, $new_inner_content, $match );
735
  }
736
-
737
- $replacement = do_shortcode($match);
738
- $element = str_replace($string_to_replace, $replacement, $element);
739
-
740
  }
741
  }
742
-
743
- // Now encode any remaining [ or ] chars.
744
- $element = strtr( $element, $trans );
745
  }
746
-
747
  $content = implode( '', $textarr );
748
-
749
  return $content;
750
  }
751
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  /**
32
  * Shortcode processing.
33
+ *
34
  * Called by WP when rendering post on frontend.
35
  * From here follow these:
36
  * @see types_render_field() Renders shortcode. Can be used other ways too.
37
  * @see types_render_field_single() Renders single field. Useful for Repeater.
38
  * Afterwards wrapping options.
39
+ *
40
  * @param type $atts
41
  * @param type $content
42
  * @param type $code
45
  function wpcf_shortcode( $atts, $content = null, $code = '' ) {
46
 
47
  global $wpcf;
48
+
49
  // Switch the post if there is an attribute of 'id' in the shortcode.
50
  $post_id_atts = new WPV_wpcf_switch_post_from_attr_id( $atts );
51
 
73
 
74
  /**
75
  * Calls view function for specific field type.
76
+ *
77
  * @param type $field
78
  * @param type $atts
79
+ * @return type
80
  */
81
  function types_render_field( $field_id = null, $params = array(), $content = null, $code = '' )
82
  {
214
 
215
  /**
216
  * Calls view function for specific field type by single field.
217
+ *
218
  * @param type $field
219
  * @param type $atts
220
+ * @return type
221
  */
222
  function types_render_field_single( $field, $params, $content = null, $code = '', $meta_id = null )
223
  {
258
  }
259
  } else {
260
  if ((isset($field['data']['repetitive'])) && ($field['data']['repetitive'])) {
261
+
262
  //Repetitive fields, used meta ID for proper string translation unique identification
263
  $params['field_value'] = wpcf_translate( 'field ' . $field['id'] . ' value '.$meta_id, $params['field_value'] );
264
+
265
  } else {
266
  //Non-repetitive fields, use post ID
267
  $params['field_value'] = wpcf_translate( 'field ' . $field['id'] . ' value '.$post->ID, $params['field_value'] );
327
  $output = strval( apply_filters( 'types_view', $output,
328
  $params['field_value'], $field['type'], $field['slug'],
329
  $field['name'], $params ) );
330
+
331
  return stripslashes( strval( $output ) );
332
+
333
  }
334
 
335
  function wpcf_frontend_compat_html_output( $output, $field, $content, $params ) {
363
 
364
  /**
365
  * Wraps field content.
366
+ *
367
  * @param type $field
368
  * @param type $content
369
+ * @return type
370
  */
371
  function wpcf_frontend_wrap_field( $field, $content, $params = array() ) {
372
  if ( isset( $params['output'] ) && $params['output'] == 'html' ) {
407
 
408
  /**
409
  * Wraps field name.
410
+ *
411
  * @param type $field
412
  * @param type $content
413
+ * @return type
414
  */
415
  function wpcf_frontend_wrap_field_name( $field, $content, $params = array() ) {
416
  if ( isset( $params['output'] ) && $params['output'] == 'html' ) {
451
 
452
  /**
453
  * Wraps field value.
454
+ *
455
  * @param type $field
456
  * @param type $content
457
+ * @return type
458
  */
459
  function wpcf_frontend_wrap_field_value( $field, $content, $params = array() ) {
460
  if ( isset( $params['output'] ) && $params['output'] == 'html' ) {
504
 
505
  /**
506
  * Filter to handle Views queries with checkboxes.
507
+ *
508
  * @todo DOCUMENT THIS!
509
+ *
510
  * @param type $query
511
  * @param type $view_settings
512
  * @return string
551
 
552
  global $wp_version;
553
 
554
+ if ( version_compare( $wp_version, '4.1', '<' ) ) {
555
  // We can not use nested meta_query entries
556
  foreach ( $values as $value ) {
557
  foreach ( $options as $key => $option ) {
645
  function wpcf_views_get_meta_sql( $clause, $queries, $type, $primary_table,
646
  $primary_id_column, $context ) {
647
 
648
+ // Look for the REGEXP code we added and covert it to a proper SQL REGEXP
649
  $regex = '/= \'REGEXP\(([^\)]*)\)\'/siU';
650
 
651
  if ( preg_match_all( $regex, $clause['where'], $matches, PREG_SET_ORDER ) ) {
665
  * We now pre-process before the main do_shortcode fitler so that we
666
  * can still use shortcodes in html attributes
667
  * like <img src="[types field="image-field"][/types]">
668
+ * adding filter with priority 5 before do_shortcode and other WP standard filters
669
+ *
670
+ * Heavily inspired in do_shortcodes_in_html_tags
671
  */
672
 
673
+ add_filter( 'the_content', 'wpcf_preprocess_shortcodes_in_html_elements', 5 );
674
+
675
+ function wpcf_preprocess_shortcodes_in_html_elements( $content ) {
676
 
 
 
677
  $shortcode = "/\\[types.*?\\](.*?)\\[\\/types\\]/is";
678
+
679
  // Normalize entities in unfiltered HTML before adding placeholders.
680
  $trans = array( '&#91;' => '&#091;', '&#93;' => '&#093;' );
681
  $content = strtr( $content, $trans );
 
682
 
683
+ $textarr = wpcf_html_split( $content );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
684
 
685
  foreach ( $textarr as &$element ) {
686
+ if ( '' == $element || '<' !== $element[0] ) {
687
  continue;
688
  }
689
 
691
  $noclose = false === strpos( $element, ']' );
692
  if ( $noopen || $noclose ) {
693
  // This element does not contain shortcodes.
 
 
 
 
694
  continue;
695
  }
696
 
697
+ if ( '<!--' === substr( $element, 0, 4 ) || '<![CDATA[' === substr( $element, 0, 9 ) ) {
 
 
698
  continue;
699
  }
700
+
701
+ $counts = preg_match_all( $shortcode, $element, $matches );
702
+
703
+ if ( $counts > 0 ) {
704
+ foreach ( $matches[0] as $index => &$match ) {
705
+
706
  $string_to_replace = $match;
707
+
708
  $inner_content = $matches[1][ $index ];
709
  if ( $inner_content ) {
710
+ $new_inner_content = wpcf_preprocess_shortcodes_in_html_elements( $inner_content );
711
  $match = str_replace( $inner_content, $new_inner_content, $match );
712
  }
713
+
714
+ $replacement = do_shortcode( $match );
715
+ $element = str_replace( $string_to_replace, $replacement, $element );
716
+
717
  }
718
  }
719
+
 
 
720
  }
721
+
722
  $content = implode( '', $textarr );
723
+
724
  return $content;
725
  }
726
 
727
+ /**
728
+ * Separate HTML elements and comments from the text. Needed for wpcf_preprocess_shortcodes_in_html_elements.
729
+ *
730
+ * Heavily inspired in wp_html_split
731
+ *
732
+ * @param string $input The text which has to be formatted.
733
+ * @return array The formatted text.
734
+ */
735
+ function wpcf_html_split( $input ) {
736
+ static $regex;
737
+
738
+ if ( ! isset( $regex ) ) {
739
+ $comments =
740
+ '!' // Start of comment, after the <.
741
+ . '(?:' // Unroll the loop: Consume everything until --> is found.
742
+ . '-(?!->)' // Dash not followed by end of comment.
743
+ . '[^\-]*+' // Consume non-dashes.
744
+ . ')*+' // Loop possessively.
745
+ . '(?:-->)?'; // End of comment. If not found, match all input.
746
+
747
+ $cdata =
748
+ '!\[CDATA\[' // Start of comment, after the <.
749
+ . '[^\]]*+' // Consume non-].
750
+ . '(?:' // Unroll the loop: Consume everything until ]]> is found.
751
+ . '](?!]>)' // One ] not followed by end of comment.
752
+ . '[^\]]*+' // Consume non-].
753
+ . ')*+' // Loop possessively.
754
+ . '(?:]]>)?'; // End of comment. If not found, match all input.
755
+
756
+ $regex =
757
+ '/(' // Capture the entire match.
758
+ . '<' // Find start of element.
759
+ . '(?(?=!--)' // Is this a comment?
760
+ . $comments // Find end of comment.
761
+ . '|'
762
+ . '(?(?=!\[CDATA\[)' // Is this a comment?
763
+ . $cdata // Find end of comment.
764
+ . '|'
765
+ . '[^>]*>?' // Find end of element. If not found, match all input.
766
+ . ')'
767
+ . ')'
768
+ . ')/s';
769
+ }
770
+
771
+ return preg_split( $regex, $input, -1, PREG_SPLIT_DELIM_CAPTURE );
772
+ }
773
+
embedded/functions.php CHANGED
@@ -128,18 +128,11 @@ function wpcf_embedded_check_import()
128
  return false;
129
  }
130
  if ( $timestamp > get_option( 'wpcf-types-embedded-import', 0 ) ) {
131
- if ( !$auto_import ) {
132
- $link = "<a href=\"" . admin_url( '?types-embedded-import=1&amp;_wpnonce=' . wp_create_nonce( 'embedded-import' ) ) . "\">";
133
- $text = sprintf( __( 'You have Types import pending. %sClick here to import.%s %sDismiss message.%s',
134
- 'wpcf' ), $link, '</a>',
135
- "<a onclick=\"jQuery(this).parent().parent().fadeOut();\" class=\"wpcf-ajax-link\" href=\""
136
- . admin_url( 'admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=dismiss_message&amp;id='
137
- . $timestamp . '&amp;_wpnonce=' . wp_create_nonce( 'dismiss_message' ) ) . "\">",
138
- '</a>' );
139
- wpcf_admin_message( $text );
140
- }
141
- if ( $auto_import || (isset( $_GET['types-embedded-import'] ) && isset( $_GET['_wpnonce'] ) && wp_verify_nonce( $_GET['_wpnonce'],
142
- 'embedded-import' )) ) {
143
  if ( file_exists( WPCF_EMBEDDED_ABSPATH . '/settings.xml' ) ) {
144
  $_POST['overwrite-groups'] = 1;
145
  $_POST['overwrite-fields'] = 1;
@@ -151,12 +144,21 @@ function wpcf_embedded_check_import()
151
  $data = @file_get_contents( WPCF_EMBEDDED_ABSPATH . '/settings.xml' );
152
  wpcf_admin_import_data( $data, false, 'types-auto-import' );
153
  update_option( 'wpcf-types-embedded-import', $timestamp );
154
- wp_redirect( admin_url() );
155
  } else {
156
  $code = __( 'settings.xml file missing', 'wpcf' );
157
  wpcf_admin_message( $code, 'error' );
158
  }
159
  }
 
 
 
 
 
 
 
 
 
160
  }
161
  }
162
  }
@@ -167,7 +169,7 @@ function wpcf_embedded_check_import()
167
  * @param type $action
168
  */
169
  function wpcf_types_cf_under_control( $action = 'add', $args = array(),
170
- $post_type = 'wp-types-group', $meta_name = 'wpcf-fields' ) {
171
  global $wpcf_types_under_control;
172
  $wpcf_types_under_control['errors'] = array();
173
  switch ( $action ) {
@@ -342,8 +344,9 @@ function wpcf_get_settings($specific = false)
342
  'images_remote' => 0,
343
  'images_remote_cache_time' => '36',
344
  'help_box' => 'by_types',
345
- 'postmeta_unfiltered_html' => 'on',
346
- 'usermeta_unfiltered_html' => 'on',
 
347
  );
348
  $settings = wp_parse_args( get_option( 'wpcf_settings', array() ), $defaults );
349
  $settings = apply_filters( 'types_settings', $settings );
@@ -522,12 +525,6 @@ function wpcf_enqueue_scripts()
522
 
523
  // Conditional
524
  wp_enqueue_script( 'types-conditional' );
525
- wpcf_admin_add_js_settings( 'wpcfConditionalVerify_nonce',
526
- wp_create_nonce( 'cd_verify' )
527
- );
528
- wpcf_admin_add_js_settings( 'wpcfConditionalVerifyGroup',
529
- wp_create_nonce( 'cd_group_verify' ) );
530
-
531
  // RTL
532
  if ( is_rtl() ) {
533
  wp_enqueue_style(
@@ -535,6 +532,26 @@ function wpcf_enqueue_scripts()
535
  array('wpcf-css-embedded'), WPCF_VERSION
536
  );
537
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
538
  }
539
 
540
  /**
@@ -546,9 +563,6 @@ function wpcf_enqueue_scripts()
546
  function wpcf_edit_post_screen_scripts()
547
  {
548
  wpcf_enqueue_scripts();
549
- wp_enqueue_script( 'wpcf-fields-post',
550
- WPCF_EMBEDDED_RES_RELPATH . '/js/fields-post.js', array('jquery'),
551
- WPCF_VERSION );
552
  // TODO Switch to 1.11.1 jQuery Validation
553
  // wp_enqueue_script( 'types-js-validation' );
554
  if ( !defined( 'WPTOOLSET_FORMS_ABSPATH' ) ) {
@@ -705,3 +719,86 @@ function types_validate($method, $args)
705
  }
706
  return false;
707
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
  return false;
129
  }
130
  if ( $timestamp > get_option( 'wpcf-types-embedded-import', 0 ) ) {
131
+ if (
132
+ isset( $_GET['types-embedded-import'] )
133
+ && isset( $_GET['_wpnonce'] )
134
+ && wp_verify_nonce( $_GET['_wpnonce'], 'embedded-import')
135
+ ) {
 
 
 
 
 
 
 
136
  if ( file_exists( WPCF_EMBEDDED_ABSPATH . '/settings.xml' ) ) {
137
  $_POST['overwrite-groups'] = 1;
138
  $_POST['overwrite-fields'] = 1;
144
  $data = @file_get_contents( WPCF_EMBEDDED_ABSPATH . '/settings.xml' );
145
  wpcf_admin_import_data( $data, false, 'types-auto-import' );
146
  update_option( 'wpcf-types-embedded-import', $timestamp );
147
+ wp_safe_redirect( esc_url_raw(admin_url() ));
148
  } else {
149
  $code = __( 'settings.xml file missing', 'wpcf' );
150
  wpcf_admin_message( $code, 'error' );
151
  }
152
  }
153
+ else {
154
+ $link = "<a href=\"" . admin_url( '?types-embedded-import=1&amp;_wpnonce=' . wp_create_nonce( 'embedded-import' ) ) . "\">";
155
+ $text = sprintf( __( 'You have Types import pending. %sClick here to import.%s %sDismiss message.%s', 'wpcf' ), $link, '</a>',
156
+ "<a onclick=\"jQuery(this).parent().parent().fadeOut();\" class=\"wpcf-ajax-link\" href=\""
157
+ . admin_url( 'admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=dismiss_message&amp;id='
158
+ . $timestamp . '&amp;_wpnonce=' . wp_create_nonce( 'dismiss_message' ) ) . "\">",
159
+ '</a>' );
160
+ wpcf_admin_message( $text );
161
+ }
162
  }
163
  }
164
  }
169
  * @param type $action
170
  */
171
  function wpcf_types_cf_under_control( $action = 'add', $args = array(),
172
+ $post_type = TYPES_CUSTOM_FIELD_GROUP_CPT_NAME, $meta_name = 'wpcf-fields' ) {
173
  global $wpcf_types_under_control;
174
  $wpcf_types_under_control['errors'] = array();
175
  switch ( $action ) {
344
  'images_remote' => 0,
345
  'images_remote_cache_time' => '36',
346
  'help_box' => 'by_types',
347
+ 'hide_standard_custom_fields_metabox' => 'show',
348
+ 'postmeta_unfiltered_html' => 'on',
349
+ 'usermeta_unfiltered_html' => 'on',
350
  );
351
  $settings = wp_parse_args( get_option( 'wpcf_settings', array() ), $defaults );
352
  $settings = apply_filters( 'types_settings', $settings );
525
 
526
  // Conditional
527
  wp_enqueue_script( 'types-conditional' );
 
 
 
 
 
 
528
  // RTL
529
  if ( is_rtl() ) {
530
  wp_enqueue_style(
532
  array('wpcf-css-embedded'), WPCF_VERSION
533
  );
534
  }
535
+
536
+ /**
537
+ * select2
538
+ */
539
+ if ( !wp_script_is('select2', 'registered') ) {
540
+ $select2_version = '3.5.2';
541
+ wp_register_script(
542
+ 'select2',
543
+ WPCF_EMBEDDED_RELPATH. '/common/utility/js/select2.min.js',
544
+ array( 'jquery' ),
545
+ $select2_version
546
+ );
547
+ wp_register_style(
548
+ 'select2',
549
+ WPCF_EMBEDDED_RELPATH. '/common/utility/css/select2/select2.css',
550
+ array(),
551
+ $select2_version
552
+ );
553
+ wp_enqueue_style('select2');
554
+ }
555
  }
556
 
557
  /**
563
  function wpcf_edit_post_screen_scripts()
564
  {
565
  wpcf_enqueue_scripts();
 
 
 
566
  // TODO Switch to 1.11.1 jQuery Validation
567
  // wp_enqueue_script( 'types-js-validation' );
568
  if ( !defined( 'WPTOOLSET_FORMS_ABSPATH' ) ) {
719
  }
720
  return false;
721
  }
722
+
723
+ /**
724
+ * Gets post_types supported by specific group.
725
+ *
726
+ * @param type $group_id
727
+ * @return array list of custom post types belongs to selected group
728
+ */
729
+ function wpcf_admin_get_post_types_by_group($group_id)
730
+ {
731
+ $post_types = get_post_meta( $group_id, '_wp_types_group_post_types', true );
732
+ if ( $post_types == 'all' ) {
733
+ return array();
734
+ }
735
+ $post_types = explode( ',', trim( $post_types, ',' ) );
736
+ return $post_types;
737
+ }
738
+
739
+ /**
740
+ * Filter return the array of Types fields
741
+ *
742
+ * Filter return the array of Types active fields
743
+ *
744
+ * @since x.x.x
745
+ *
746
+ * @param array fields Unused argument
747
+ */
748
+ add_filter('wpcf_get_all_fields_slugs', 'wpcf_get_all_fields_slugs');
749
+
750
+ /**
751
+ * Function return the array of Types fields.
752
+ *
753
+ * Function return the array of Types active fields slugs.
754
+ *
755
+ * @since x.x.x
756
+ *
757
+ * @return array List of slugs
758
+ */
759
+ function wpcf_get_all_fields_slugs($fields)
760
+ {
761
+ $post_meta_keys = array();
762
+ foreach (wpcf_admin_fields_get_fields( true, true ) as $key => $data ) {
763
+ $post_meta_keys[] = $data['meta_key'];
764
+ }
765
+ return $post_meta_keys;
766
+ }
767
+
768
+ function wpcf_get_builtin_in_post_types()
769
+ {
770
+ static $post_types = array();
771
+ if ( empty( $post_types ) ) {
772
+ $post_types = get_post_types(array('public' => true, '_builtin' => true));
773
+ }
774
+ return $post_types;
775
+ }
776
+
777
+ function wpcf_is_builtin_post_types($post_type)
778
+ {
779
+ $post_types = wpcf_get_builtin_in_post_types();
780
+ return in_array($post_type, $post_types);
781
+ }
782
+
783
+ /**
784
+ * Adds JS settings.
785
+ *
786
+ * @static array $settings
787
+ * @param type $id
788
+ * @param type $setting
789
+ * @return string
790
+ */
791
+ function wpcf_admin_add_js_settings( $id, $setting = '' )
792
+ {
793
+ static $settings = array();
794
+ $settings['wpcf_nonce_ajax_callback'] = '\'' . wp_create_nonce( 'execute' ) . '\'';
795
+ $settings['wpcf_cookiedomain'] = '\'' . COOKIE_DOMAIN . '\'';
796
+ $settings['wpcf_cookiepath'] = '\'' . COOKIEPATH . '\'';
797
+ if ( $id == 'get' ) {
798
+ $temp = $settings;
799
+ $settings = array();
800
+ return $temp;
801
+ }
802
+ $settings[$id] = $setting;
803
+ }
804
+
embedded/includes/ajax.php CHANGED
@@ -150,6 +150,7 @@ function wpcf_ajax_embedded() {
150
  break;
151
 
152
  case 'pr_save_all':
 
153
  $output = '';
154
  if ( current_user_can( 'edit_posts' ) && isset( $_POST['post_id'] ) ) {
155
 
@@ -169,14 +170,18 @@ function wpcf_ajax_embedded() {
169
  // TODO Move to conditional
170
  $output .= '<script type="text/javascript">wpcfConditionalInit();</script>';
171
  }
 
 
172
  if ( !defined( 'WPTOOLSET_FORMS_VERSION' ) ) {
173
  echo json_encode( array(
174
  'output' => $output,
 
175
  ) );
176
  } else {
177
  echo json_encode( array(
178
  'output' => $output,
179
  'conditionals' => array('#post' => wptoolset_form_get_conditional_data( 'post' )),
 
180
  ) );
181
  }
182
  break;
@@ -210,6 +215,7 @@ function wpcf_ajax_embedded() {
210
  }
211
  }
212
  }
 
213
  $errors = ob_get_clean();
214
  if ( !defined( 'WPTOOLSET_FORMS_VERSION' ) ) {
215
  echo json_encode( array(
@@ -236,34 +242,6 @@ function wpcf_ajax_embedded() {
236
  ) );
237
  break;
238
 
239
- case 'pr-update-belongs':
240
- require_once WPCF_EMBEDDED_ABSPATH . '/includes/post-relationship.php';
241
- $output = 'Passed wrong parameters';
242
- if ( current_user_can( 'edit_posts' )
243
- && isset( $_POST['post_id'] )
244
- && isset( $_POST['wpcf_pr_belongs'][$_POST['post_id']] ) )
245
- {
246
- $parent_post_id = intval( $_POST['post_id'] );
247
- $belongs_assignments = array();
248
- foreach( $_POST['wpcf_pr_belongs'][$parent_post_id] as $post_type_raw => $post_id_raw ) {
249
- $belongs_assignments[ sanitize_text_field( $post_type_raw) ] = intval( $post_id_raw );
250
- }
251
-
252
- $updated = wpcf_pr_admin_update_belongs( $parent_post_id, $belongs_assignments );
253
- $output = is_wp_error( $updated ) ? $updated->get_error_message() : $updated;
254
- }
255
- if ( !defined( 'WPTOOLSET_FORMS_VERSION' ) ) {
256
- echo json_encode( array(
257
- 'output' => $output,
258
- ) );
259
- } else {
260
- echo json_encode( array(
261
- 'output' => $output,
262
- 'conditionals' => array('#post' => wptoolset_form_get_conditional_data( 'post' )),
263
- ) );
264
- }
265
- break;
266
-
267
  case 'pr_pagination':
268
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields.php';
269
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields-post.php';
@@ -487,87 +465,6 @@ function wpcf_ajax_embedded() {
487
  }
488
  break;
489
 
490
- case 'cd_verify':
491
-
492
- if ( !current_user_can( 'edit_posts' ) || ( empty( $_POST['wpcf'] ) && empty( $_POST['wpcf_post_relationship'] ) ) ){
493
- die();
494
- }
495
- WPCF_Loader::loadClass( 'helper.ajax' );
496
- $js_execute = WPCF_Helper_Ajax::conditionalVerify( $_POST );
497
-
498
- // Render JSON
499
- if ( !empty( $js_execute ) ) {
500
- echo json_encode( array(
501
- 'output' => '',
502
- 'execute' => $js_execute,
503
- 'wpcf_nonce_ajax_callback' => wp_create_nonce( 'execute' ),
504
- ) );
505
- }
506
- die();
507
- break;
508
-
509
- case 'cd_group_verify':
510
- require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields.php';
511
- require_once WPCF_EMBEDDED_INC_ABSPATH . '/conditional-display.php';
512
- $group = wpcf_admin_fields_get_group( sanitize_text_field( $_POST['group_id'] ) );
513
- if ( !current_user_can( 'edit_posts' ) || empty( $group ) ) {
514
- echo json_encode( array(
515
- 'output' => ''
516
- ) );
517
- die();
518
- }
519
- $execute = '';
520
- $group['conditional_display'] = get_post_meta( $group['id'],
521
- '_wpcf_conditional_display', true );
522
- // Filter meta values (switch them with $_POST values)
523
- add_filter( 'get_post_metadata',
524
- 'wpcf_cd_meta_ajax_validation_filter', 10, 4 );
525
- $parent_post = false;
526
- if ( isset( $_SERVER['HTTP_REFERER'] ) ) {
527
- $split = explode( '?', $_SERVER['HTTP_REFERER'] );
528
- if ( isset( $split[1] ) ) {
529
- parse_str( $split[1], $vars );
530
- if ( isset( $vars['post'] ) ) {
531
- $parent_post = get_post( $vars['post'] );
532
- }
533
- }
534
- }
535
- // Dummy post
536
- if ( !$parent_post ) {
537
- $parent_post = new stdClass();
538
- $parent_post->ID = 1;
539
- }
540
- if ( !empty( $group['conditional_display']['conditions'] ) ) {
541
- $result = wpcf_cd_post_groups_filter( array(0 => $group), $parent_post,
542
- 'group' );
543
- if ( !empty( $result ) ) {
544
- $result = array_shift( $result );
545
- $passed = $result['_conditional_display'] == 'passed' ? true : false;
546
- } else {
547
- $passed = false;
548
- }
549
- if ( !$passed ) {
550
- $execute = 'jQuery("#wpcf-group-' . $group['slug']
551
- . '").slideUp().find(".wpcf-cd-group")'
552
- . '.addClass(\'wpcf-cd-group-failed\')'
553
- . '.removeClass(\'wpcf-cd-group-passed\').hide();';
554
- } else {
555
- $execute = 'jQuery("#wpcf-group-' . $group['slug']
556
- . '").show().find(".wpcf-cd-group")'
557
- . '.addClass(\'wpcf-cd-group-passed\')'
558
- . '.removeClass(\'wpcf-cd-group-failed\').slideDown();';
559
- }
560
- }
561
- // Remove filter meta values (switch them with $_POST values)
562
- remove_filter( 'get_post_metadata',
563
- 'wpcf_cd_meta_ajax_validation_filter', 10, 4 );
564
- echo json_encode( array(
565
- 'output' => '',
566
- 'execute' => $execute,
567
- 'wpcf_nonce_ajax_callback' => wp_create_nonce( 'execute' ),
568
- ) );
569
- break;
570
-
571
  default:
572
  break;
573
  }
150
  break;
151
 
152
  case 'pr_save_all':
153
+ ob_start(); // Try to catch any errors
154
  $output = '';
155
  if ( current_user_can( 'edit_posts' ) && isset( $_POST['post_id'] ) ) {
156
 
170
  // TODO Move to conditional
171
  $output .= '<script type="text/javascript">wpcfConditionalInit();</script>';
172
  }
173
+ wpcf_show_admin_messages('echo');
174
+ $errors = ob_get_clean();
175
  if ( !defined( 'WPTOOLSET_FORMS_VERSION' ) ) {
176
  echo json_encode( array(
177
  'output' => $output,
178
+ 'errors' => $errors
179
  ) );
180
  } else {
181
  echo json_encode( array(
182
  'output' => $output,
183
  'conditionals' => array('#post' => wptoolset_form_get_conditional_data( 'post' )),
184
+ 'errors' => $errors
185
  ) );
186
  }
187
  break;
215
  }
216
  }
217
  }
218
+ wpcf_show_admin_messages('echo');
219
  $errors = ob_get_clean();
220
  if ( !defined( 'WPTOOLSET_FORMS_VERSION' ) ) {
221
  echo json_encode( array(
242
  ) );
243
  break;
244
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
245
  case 'pr_pagination':
246
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields.php';
247
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields-post.php';
465
  }
466
  break;
467
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
468
  default:
469
  break;
470
  }
embedded/includes/ajax/admin-footer.php CHANGED
@@ -20,7 +20,7 @@ if ( !defined( 'ABSPATH' ) )
20
  <?php do_action( 'in_admin_footer' ); ?>
21
  <p id="footer-left" class="alignleft"><?php
22
  echo apply_filters( 'admin_footer_text',
23
- '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.' ) . '</span>' );
24
 
25
  ?></p>
26
  <!-- <p id="footer-upgrade" class="alignright"><?php //echo apply_filters( 'update_footer', '' ); ?></p>-->
20
  <?php do_action( 'in_admin_footer' ); ?>
21
  <p id="footer-left" class="alignleft"><?php
22
  echo apply_filters( 'admin_footer_text',
23
+ '<span id="footer-thankyou">' . __( 'Thank you for creating with <a href="http://wordpress.org/">WordPress</a>.', 'wpcf' ) . '</span>' );
24
 
25
  ?></p>
26
  <!-- <p id="footer-upgrade" class="alignright"><?php //echo apply_filters( 'update_footer', '' ); ?></p>-->
embedded/includes/ajax/admin-header.php CHANGED
@@ -26,16 +26,16 @@ get_admin_page_title();
26
  $title = esc_html( strip_tags( $title ) );
27
 
28
  if ( is_network_admin() )
29
- $admin_title = __( 'Network Admin' );
30
  elseif ( is_user_admin() )
31
- $admin_title = __( 'Global Dashboard' );
32
  else
33
  $admin_title = get_bloginfo( 'name' );
34
 
35
  if ( $admin_title == $title )
36
- $admin_title = sprintf( __( '%1$s &#8212; WordPress' ), $title );
37
  else
38
- $admin_title = sprintf( __( '%1$s &lsaquo; %2$s &#8212; WordPress' ),
39
  $title, $admin_title );
40
 
41
  $admin_title = apply_filters( 'admin_title', $admin_title, $title );
@@ -120,7 +120,7 @@ if ( wp_script_is( 'customize-loader', 'queue' ) && current_user_can( 'edit_them
120
  ?>
121
  <div id="wpcf-ajax">
122
  <div id="wpwrap">
123
- <!--<a tabindex="1" href="#wpbody-content" class="screen-reader-shortcut"><?php _e( 'Skip to main content' ); ?></a>-->
124
  <?php //require(ABSPATH . 'wp-admin/menu-header.php'); ?>
125
  <div id="wpcontent">
126
 
@@ -138,7 +138,7 @@ if ( wp_script_is( 'customize-loader', 'queue' ) && current_user_can( 'edit_them
138
 
139
  ?>
140
 
141
- <div id="wpbody-content" aria-label="<?php esc_attr_e( 'Main content' ); ?>" tabindex="0">
142
  <?php
143
  $current_screen->render_screen_meta();
144
 
26
  $title = esc_html( strip_tags( $title ) );
27
 
28
  if ( is_network_admin() )
29
+ $admin_title = __( 'Network Admin', 'wpcf' );
30
  elseif ( is_user_admin() )
31
+ $admin_title = __( 'Global Dashboard', 'wpcf' );
32
  else
33
  $admin_title = get_bloginfo( 'name' );
34
 
35
  if ( $admin_title == $title )
36
+ $admin_title = sprintf( __( '%1$s &#8212; WordPress', 'wpcf' ), $title );
37
  else
38
+ $admin_title = sprintf( __( '%1$s &lsaquo; %2$s &#8212; WordPress', 'wpcf' ),
39
  $title, $admin_title );
40
 
41
  $admin_title = apply_filters( 'admin_title', $admin_title, $title );
120
  ?>
121
  <div id="wpcf-ajax">
122
  <div id="wpwrap">
123
+ <!--<a tabindex="1" href="#wpbody-content" class="screen-reader-shortcut"><?php _e( 'Skip to main content', 'wpcf' ); ?></a>-->
124
  <?php //require(ABSPATH . 'wp-admin/menu-header.php'); ?>
125
  <div id="wpcontent">
126
 
138
 
139
  ?>
140
 
141
+ <div id="wpbody-content" aria-label="<?php esc_attr_e( 'Main content', 'wpcf' ); ?>" tabindex="0">
142
  <?php
143
  $current_screen->render_screen_meta();
144
 
embedded/includes/classes/class.types.data.installer.php CHANGED
@@ -32,8 +32,8 @@ if ( !class_exists('Types_Data_Installer') ) {
32
  $data->$key = new stdClass;
33
  }
34
 
35
- $data->groups->group = $this->get_data_by_group_name('wp-types-group');
36
- $data->user_groups->group = $this->get_data_by_group_name('wp-types-user-group');
37
 
38
  $data->fields->field = $this->get_data_by_field_type('fields');
39
  $data->user_fields->field = $this->get_data_by_field_type('user_fields');
@@ -60,7 +60,7 @@ if ( !class_exists('Types_Data_Installer') ) {
60
  {
61
  $group = 'groups';
62
  $element = 'group';
63
- if ( 'wp-types-user-group' == $group_name ) {
64
  $group = 'user_groups';
65
  }
66
 
@@ -104,10 +104,10 @@ if ( !class_exists('Types_Data_Installer') ) {
104
  ) {
105
  $new[] = $group;
106
  switch($group_name) {
107
- case 'wp-types-group':
108
  $this->fields += explode(',', $group->meta->_wp_types_group_fields);
109
  break;
110
- case 'wp-types-user-group':
111
  $this->user_fields += explode(',', $group->meta->_wp_types_group_fields);
112
  break;
113
  }
@@ -119,7 +119,7 @@ if ( !class_exists('Types_Data_Installer') ) {
119
  && in_array($group->__types_id, $this->args['force_duplicate_post_name'][$group_name])
120
  ) {
121
  $one = $group;
122
- $one->__types_id = wp_unique_post_slug( sanitize_title_with_dashes($group->post_title, null, 'save'), null, 'publish', 'wp-types-group', null);
123
  $one->__types_title = $one->post_title = sprintf('%s %s', $group->post_title, $date);
124
  $new[$one->__types_id] = $one;
125
  continue;
@@ -237,8 +237,8 @@ if ( !class_exists('Types_Data_Installer') ) {
237
  if (!empty($this->reset_toolset_edit_last_list)) {
238
  foreach( $this->reset_toolset_edit_last_list as $group => $data) {
239
  switch( $group ) {
240
- case 'wp-types-group':
241
- case 'wp-types-user-group':
242
  foreach( $data as $slug) {
243
  $post = get_page_by_path($slug, OBJECT, $group);
244
  if ( $post ) {
32
  $data->$key = new stdClass;
33
  }
34
 
35
+ $data->groups->group = $this->get_data_by_group_name(TYPES_CUSTOM_FIELD_GROUP_CPT_NAME);
36
+ $data->user_groups->group = $this->get_data_by_group_name(TYPES_USER_META_FIELD_GROUP_CPT_NAME);
37
 
38
  $data->fields->field = $this->get_data_by_field_type('fields');
39
  $data->user_fields->field = $this->get_data_by_field_type('user_fields');
60
  {
61
  $group = 'groups';
62
  $element = 'group';
63
+ if ( TYPES_USER_META_FIELD_GROUP_CPT_NAME == $group_name ) {
64
  $group = 'user_groups';
65
  }
66
 
104
  ) {
105
  $new[] = $group;
106
  switch($group_name) {
107
+ case TYPES_CUSTOM_FIELD_GROUP_CPT_NAME:
108
  $this->fields += explode(',', $group->meta->_wp_types_group_fields);
109
  break;
110
+ case TYPES_USER_META_FIELD_GROUP_CPT_NAME:
111
  $this->user_fields += explode(',', $group->meta->_wp_types_group_fields);
112
  break;
113
  }
119
  && in_array($group->__types_id, $this->args['force_duplicate_post_name'][$group_name])
120
  ) {
121
  $one = $group;
122
+ $one->__types_id = wp_unique_post_slug( sanitize_title_with_dashes($group->post_title, null, 'save'), null, 'publish', TYPES_CUSTOM_FIELD_GROUP_CPT_NAME, null);
123
  $one->__types_title = $one->post_title = sprintf('%s %s', $group->post_title, $date);
124
  $new[$one->__types_id] = $one;
125
  continue;
237
  if (!empty($this->reset_toolset_edit_last_list)) {
238
  foreach( $this->reset_toolset_edit_last_list as $group => $data) {
239
  switch( $group ) {
240
+ case TYPES_CUSTOM_FIELD_GROUP_CPT_NAME:
241
+ case TYPES_USER_META_FIELD_GROUP_CPT_NAME:
242
  foreach( $data as $slug) {
243
  $post = get_page_by_path($slug, OBJECT, $group);
244
  if ( $post ) {
embedded/includes/cred.php CHANGED
@@ -22,7 +22,7 @@
22
  */
23
  function wpcf_cred_post_groups_filter( $groups, $post ) {
24
  if ( isset( $post->post_type ) && $post->post_type == 'cred-form' ) {
25
- return wpcf_admin_fields_get_groups( 'wp-types-group', 'group_active',
26
  'fields_active' );
27
  return wpcf_admin_fields_get_groups();
28
  }
22
  */
23
  function wpcf_cred_post_groups_filter( $groups, $post ) {
24
  if ( isset( $post->post_type ) && $post->post_type == 'cred-form' ) {
25
+ return wpcf_admin_fields_get_groups( TYPES_CUSTOM_FIELD_GROUP_CPT_NAME, 'group_active',
26
  'fields_active' );
27
  return wpcf_admin_fields_get_groups();
28
  }
embedded/includes/custom-types.php CHANGED
@@ -84,6 +84,15 @@ function wpcf_custom_types_init() {
84
  $custom_types = get_option( WPCF_OPTION_NAME_CUSTOM_TYPES, array() );
85
  if ( !empty( $custom_types ) ) {
86
  foreach ( $custom_types as $post_type => $data ) {
 
 
 
 
 
 
 
 
 
87
  wpcf_custom_types_register( $post_type, $data );
88
  }
89
  }
@@ -295,7 +304,7 @@ function wpcf_get_active_custom_types() {
295
  }
296
 
297
  /** This action is documented in wp-admin/includes/dashboard.php */
298
- add_action('dashboard_glance_items', 'wpcf_dashboard_glance_items');
299
 
300
  /**
301
  * Add CPT info to "At a Glance"
@@ -306,35 +315,38 @@ add_action('dashboard_glance_items', 'wpcf_dashboard_glance_items');
306
  * @since 1.6.6
307
  *
308
  */
309
- function wpcf_dashboard_glance_items()
310
  {
311
  $custom_types = get_option( WPCF_OPTION_NAME_CUSTOM_TYPES, array() );
 
 
 
312
  ksort($custom_types);
313
- if ( !empty( $custom_types ) ) {
314
- foreach ( $custom_types as $post_type => $data ) {
315
- if ( !isset($data['dashboard_glance']) || !$data['dashboard_glance']) {
316
- continue;
317
- }
318
- if ( isset($data['disabled']) && $data['disabled'] ) {
319
- continue;
320
- }
321
- $num_posts = wp_count_posts($post_type);
322
- $num = number_format_i18n($num_posts->publish);
323
- $text = _n( $data['labels']['singular_name'], $data['labels']['name'], intval($num_posts->publish) );
324
- printf(
325
- '<li class="page-count %s-count"><a href="%s"%s>%d %s</a></li>',
326
- $post_type,
327
  add_query_arg(
328
  array(
329
  'post_type' => $post_type,
330
  ),
331
  admin_url('edit.php')
332
- ),
333
- isset($data['icon'])? sprintf('class="dashicons-%s"', $data['icon']):'',
334
- $num,
335
- $text
336
- );
337
- }
338
  }
 
339
  }
340
 
84
  $custom_types = get_option( WPCF_OPTION_NAME_CUSTOM_TYPES, array() );
85
  if ( !empty( $custom_types ) ) {
86
  foreach ( $custom_types as $post_type => $data ) {
87
+ if ( empty($data) ) {
88
+ continue;
89
+ }
90
+ if (
91
+ ( isset($data['_builtin']) && $data['_builtin'] )
92
+ || wpcf_is_builtin_post_types($post_type)
93
+ ) {
94
+ continue;
95
+ }
96
  wpcf_custom_types_register( $post_type, $data );
97
  }
98
  }
304
  }
305
 
306
  /** This action is documented in wp-admin/includes/dashboard.php */
307
+ add_filter('dashboard_glance_items', 'wpcf_dashboard_glance_items');
308
 
309
  /**
310
  * Add CPT info to "At a Glance"
315
  * @since 1.6.6
316
  *
317
  */
318
+ function wpcf_dashboard_glance_items($elements)
319
  {
320
  $custom_types = get_option( WPCF_OPTION_NAME_CUSTOM_TYPES, array() );
321
+ if ( empty( $custom_types ) ) {
322
+ return $elements;
323
+ }
324
  ksort($custom_types);
325
+ foreach ( $custom_types as $post_type => $data ) {
326
+ if ( !isset($data['dashboard_glance']) || !$data['dashboard_glance']) {
327
+ continue;
328
+ }
329
+ if ( isset($data['disabled']) && $data['disabled'] ) {
330
+ continue;
331
+ }
332
+ $num_posts = wp_count_posts($post_type);
333
+ $num = number_format_i18n($num_posts->publish);
334
+ $text = _n( $data['labels']['singular_name'], $data['labels']['name'], intval($num_posts->publish) );
335
+ $elements[] = sprintf(
336
+ '<a href="%s"%s>%d %s</a>',
337
+ esc_url(
 
338
  add_query_arg(
339
  array(
340
  'post_type' => $post_type,
341
  ),
342
  admin_url('edit.php')
343
+ )
344
+ ),
345
+ isset($data['icon'])? sprintf('class="dashicons-%s"', $data['icon']):'',
346
+ $num,
347
+ $text
348
+ );
349
  }
350
+ return $elements;
351
  }
352
 
embedded/includes/examples/google_map.php CHANGED
@@ -147,8 +147,7 @@ function wpcf_fields_google_map_meta_box_form( $data ) {
147
  '#name' => 'wpcf[' . $data['slug'] . ']', // Set this to override default output
148
  '#type' => 'textfield',
149
  '#title' => __( 'Add Google Map coordinates', 'wpcf' ),
150
- '#description' => __( 'Your input should look something like "41.934146,12.455821"',
151
- 'wpcf' )
152
  );
153
  return $form;
154
  }
@@ -162,11 +161,9 @@ function wpcf_fields_google_map_editor_callback( $field, $settings ) {
162
  ob_start();
163
 
164
  ?>
165
- <label><input type="text" name="width" value="<?php echo isset( $settings['width'] ) ? $settings['width'] : '425'; ?>" />&nbsp;<?php _e( 'Width',
166
- 'wpcf' ); ?></label>
167
  <br />
168
- <label><input type="text" name="height" value="<?php echo isset( $settings['height'] ) ? $settings['height'] : '350'; ?>" />&nbsp;<?php _e( 'Height',
169
- 'wpcf' ); ?></label>
170
  <?php
171
  $form = ob_get_contents();
172
  ob_get_clean();
147
  '#name' => 'wpcf[' . $data['slug'] . ']', // Set this to override default output
148
  '#type' => 'textfield',
149
  '#title' => __( 'Add Google Map coordinates', 'wpcf' ),
150
+ '#description' => __( 'Your input should look something like "41.934146,12.455821"', 'wpcf' )
 
151
  );
152
  return $form;
153
  }
161
  ob_start();
162
 
163
  ?>
164
+ <label><input type="text" name="width" value="<?php echo isset( $settings['width'] ) ? $settings['width'] : '425'; ?>" />&nbsp;<?php _e( 'Width', 'wpcf' ); ?></label>
 
165
  <br />
166
+ <label><input type="text" name="height" value="<?php echo isset( $settings['height'] ) ? $settings['height'] : '350'; ?>" />&nbsp;<?php _e( 'Height', 'wpcf' ); ?></label>
 
167
  <?php
168
  $form = ob_get_contents();
169
  ob_get_clean();
embedded/includes/fields-post.php CHANGED
@@ -38,7 +38,7 @@ function wpcf_admin_post_init( $post ) {
38
  * TODO Remove
39
  */
40
  // Add items to View dropdown
41
- if ( in_array( $post_type, array('view', 'view-template', 'cred-form') ) ) {
42
  add_filter( 'editor_addon_menus_wpv-views',
43
  'wpcf_admin_post_editor_addon_menus_filter' );
44
  add_action( 'admin_footer', 'wpcf_admin_post_js_validation' );
@@ -46,13 +46,22 @@ function wpcf_admin_post_init( $post ) {
46
  wp_enqueue_script( 'toolset-colorbox' );
47
  wp_enqueue_style( 'toolset-colorbox' );
48
  }
49
- // Never show on 'Views' and 'View Templates'
50
  if ( in_array( $post_type, array('view', 'view-template') ) ) {
51
  return false;
52
  }
53
 
 
 
 
 
 
 
 
 
 
54
  // Add marketing box
55
- if ( !in_array( $post_type, array('post', 'page', 'cred-form') ) && !defined( 'WPCF_RUNNING_EMBEDDED' ) ) {
56
  $hide_help_box = true;
57
  $help_box = wpcf_get_settings( 'help_box' );
58
  $custom_types = get_option( WPCF_OPTION_NAME_CUSTOM_TYPES, array() );
@@ -576,7 +585,7 @@ function wpcf_admin_post_save_post_hook( $post_ID, $post )
576
 
577
  // Do not save post if is type of
578
  if ( in_array( $post->post_type,
579
- array('revision', 'view', 'view-template', 'cred-form',
580
  'nav_menu_item', 'mediapage') ) ) {
581
  return false;
582
  }
@@ -599,6 +608,10 @@ function wpcf_admin_post_save_post_hook( $post_ID, $post )
599
  }
600
 
601
  if ( count( $_post_wpcf ) ) {
 
 
 
 
602
  /**
603
  * check some attachment to delete
604
  */
@@ -639,12 +652,17 @@ function wpcf_admin_post_save_post_hook( $post_ID, $post )
639
  }
640
  }
641
 
 
 
 
 
 
642
  foreach ( $_field_value as $_k => $_val ) {
643
  // Check if valid
644
  $validation = wptoolset_form_validate_field( 'post', $config, $_val );
645
  $conditional = wptoolset_form_conditional_check( $config );
646
  $not_valid = is_wp_error( $validation ) || !$conditional;
647
- if ( is_wp_error( $validation )) {
648
  $errors = true;
649
  $_errors = $validation->get_error_data();
650
  $_msg = sprintf( __( 'Field "%s" not updated:', 'wpcf' ), $field['name'] );
@@ -658,6 +676,7 @@ function wpcf_admin_post_save_post_hook( $post_ID, $post )
658
  }
659
  }
660
  }
 
661
  // Save field
662
  if ( types_is_repetitive( $field ) ) {
663
  $wpcf->repeater->set( $post_ID, $field );
@@ -1402,10 +1421,8 @@ function wpcf_admin_post_process_field( $field_object ) {
1402
  // TODO WPML move Set WPML locked icon
1403
  if ( wpcf_wpml_field_is_copied( $field ) ) {
1404
  $element['#title'] .= '<img src="' . WPCF_EMBEDDED_RES_RELPATH . '/images/locked.png" alt="'
1405
- . __( 'This field is locked for editing because WPML will copy its value from the original language.',
1406
- 'wpcf' ) . '" title="'
1407
- . __( 'This field is locked for editing because WPML will copy its value from the original language.',
1408
- 'wpcf' ) . '" style="position:relative;left:2px;top:2px;" />';
1409
  }
1410
 
1411
  // Add repetitive class
@@ -1659,8 +1676,8 @@ function wpcf_admin_post_add_to_editor( $field ) {
1659
  if ( $field == 'get' ) {
1660
  return $fields;
1661
  }
1662
- if (
1663
- empty( $fields )
1664
  && ! (
1665
  apply_filters( 'toolset_is_views_available', false )
1666
  || apply_filters( 'toolset_is_views_embedded_available', false )
@@ -1689,8 +1706,17 @@ function wpcf_admin_post_add_to_editor_js() {
1689
 
1690
  $fields = wpcf_admin_post_add_to_editor( 'get' );
1691
  $groups = wpcf_admin_post_get_post_groups_fields( $post );
 
 
1692
  if ( empty( $fields ) || empty( $groups ) ) {
1693
- return false;
 
 
 
 
 
 
 
1694
  }
1695
  $editor_addon = new Editor_addon( 'types',
1696
  __( 'Insert Types Shortcode', 'wpcf' ),
@@ -1736,7 +1762,7 @@ function wpcf_admin_post_editor_addon_menus_filter( $menu ) {
1736
  $post = (object) array('ID' => -1);
1737
  }
1738
 
1739
- $groups = wpcf_admin_fields_get_groups( 'wp-types-group', 'group_active' );
1740
  $all_post_types = implode( ' ', get_post_types( array('public' => true) ) );
1741
  $add = array();
1742
  if ( !empty( $groups ) ) {
@@ -1787,43 +1813,6 @@ function wpcf_admin_post_editor_addon_menus_filter( $menu ) {
1787
  }
1788
  }
1789
  }
1790
-
1791
- /*
1792
- $search_key = '';
1793
-
1794
- // Iterate all items to be displayed in the "V" menu
1795
- foreach ( $items as $key => $item ) {
1796
- if ( $key == __( 'Basic', 'wpv-views' ) ) {
1797
- $search_key = 'found';
1798
- continue;
1799
- }
1800
- if ( $search_key == 'found' ) {
1801
- $search_key = $key;
1802
- }
1803
-
1804
- if ( $key == __( 'Field', 'wpv-views' ) && isset( $item[trim( wpcf_types_get_meta_prefix(),
1805
- '-' )] ) ) {
1806
- unset( $items[$key][trim( wpcf_types_get_meta_prefix(), '-' )] );
1807
- }
1808
- }
1809
- if ( empty( $search_key ) || $search_key == 'found' ) {
1810
- $search_key = count( $items );
1811
- }
1812
-
1813
- $insert_position = array_search( $search_key, array_keys( $items ) );
1814
- $part_one = array_slice( $items, 0, $insert_position );
1815
- $part_two = array_slice( $items, $insert_position );
1816
- $items = $part_one + $add + $part_two;
1817
-
1818
- // apply CSS styles to each item based on post types
1819
- foreach ( $items as $key => $value ) {
1820
- if ( isset( $item_styles[$key] ) ) {
1821
- $items[$key]['css'] = $item_styles[$key];
1822
- } else {
1823
- $items[$key]['css'] = $all_post_types;
1824
- }
1825
- }
1826
- */
1827
 
1828
  return $menu;
1829
  }
@@ -1845,17 +1834,13 @@ function wpcf_admin_post_marketing_meta_box() {
1845
  }
1846
 
1847
  if ( $views_plugin_available ) {
1848
- $output .= '<p><strong>' . sprintf( __( "Build this site with %sViews%s",
1849
- 'wpcf' ),
1850
  '<a href="http://wp-types.com/home/views-create-elegant-displays-for-your-content/?utm_source=typesplugin&utm_medium=postedit&utm_term=views&utm_content=promobox&utm_campaign=types" title="Views" target="_blank">',
1851
  '</a>' ) . '</strong></p>';
1852
- $output .= '<p><a href="' . admin_url( 'edit.php?post_type=view-template' ) . '">' . __( 'Create <strong>View Templates</strong> for single pages &raquo;',
1853
- 'wpcf' ) . '</a></p>';
1854
- $output .= '<p><a href="' . admin_url( 'edit.php?post_type=view' ) . '">' . __( 'Create <strong>Views</strong> for content lists &raquo;',
1855
- 'wpcf' ) . '</a></p>';
1856
  } else {
1857
- $output .= '<p><strong>' . sprintf( __( "%sViews%s lets you build complete websites without coding.",
1858
- 'wpcf' ),
1859
  '<a href="http://wp-types.com/home/views-create-elegant-displays-for-your-content/?utm_source=typesplugin&utm_medium=postedit&utm_term=views&utm_content=promobox&utm_campaign=types" title="Views" target="_blank">',
1860
  '</a>' )
1861
  . '</strong></p>'
@@ -1879,29 +1864,16 @@ function wpcf_post_preview_warning() {
1879
  if ( isset( $post->post_status ) && !in_array( $post->post_status,
1880
  array('auto-draft', 'draft') ) && !in_array( $post->post_type,
1881
  array('cred', 'view', 'view-template') ) ) {
1882
- // require_once WPCF_EMBEDDED_ABSPATH . '/common/wp-pointer.php';
1883
- //
1884
- // $pointer = new WPV_wp_pointer('types-post-preview-warning');
1885
- // $pointer->add_pointer(__('Preview warning'),
1886
- // sprintf(__('Custom field changes cannot be previewed until %s is updated'), $post->post_type),
1887
- // $jquery_id = '#types-preview-warning',
1888
- // $position = 'left',
1889
- // $pointer_name = 'types_preview_warning',
1890
- // $activate_function = null,
1891
- // $activate_selector = false
1892
- // );
1893
- // $pointer->admin_enqueue_scripts();
1894
  wp_enqueue_style( 'wp-pointer' );
1895
  wp_enqueue_script( 'wp-pointer' );
1896
 
1897
- ?><script type="text/javascript">typesPostScreen.previewWarning('<?php
1898
- _e( 'Preview warning', 'wpcf' );
1899
-
1900
- ?>', '<?php
1901
- printf( __( 'Custom field changes cannot be previewed until %s is updated',
1902
- 'wpcf' ), $post->post_type );
1903
-
1904
- ?>');</script><?php
1905
  }
1906
  }
1907
 
38
  * TODO Remove
39
  */
40
  // Add items to View dropdown
41
+ if ( in_array( $post_type, array('view', 'view-template', 'cred-form', 'cred-user-form') ) ) {
42
  add_filter( 'editor_addon_menus_wpv-views',
43
  'wpcf_admin_post_editor_addon_menus_filter' );
44
  add_action( 'admin_footer', 'wpcf_admin_post_js_validation' );
46
  wp_enqueue_script( 'toolset-colorbox' );
47
  wp_enqueue_style( 'toolset-colorbox' );
48
  }
49
+ // Never show on 'Views' and 'Content Templates'
50
  if ( in_array( $post_type, array('view', 'view-template') ) ) {
51
  return false;
52
  }
53
 
54
+ /**
55
+ * remove custom field WordPress metabox
56
+ */
57
+ if ( 'hide' == wpcf_get_settings('hide_standard_custom_fields_metabox') ) {
58
+ foreach( array( 'normal', 'advanced', 'side' ) as $context) {
59
+ remove_meta_box('postcustom', $post_type, $context );
60
+ }
61
+ }
62
+
63
  // Add marketing box
64
+ if ( !in_array( $post_type, array('post', 'page', 'cred-form', 'cred-user-form') ) && !defined( 'WPCF_RUNNING_EMBEDDED' ) ) {
65
  $hide_help_box = true;
66
  $help_box = wpcf_get_settings( 'help_box' );
67
  $custom_types = get_option( WPCF_OPTION_NAME_CUSTOM_TYPES, array() );
585
 
586
  // Do not save post if is type of
587
  if ( in_array( $post->post_type,
588
+ array('revision', 'view', 'view-template', 'cred-form', 'cred-user-form' ,
589
  'nav_menu_item', 'mediapage') ) ) {
590
  return false;
591
  }
608
  }
609
 
610
  if ( count( $_post_wpcf ) ) {
611
+ $add_error_message = true;
612
+ if ( isset( $_POST['post_id']) && $_POST['post_id'] != $post_ID ) {
613
+ $add_error_message = false;
614
+ }
615
  /**
616
  * check some attachment to delete
617
  */
652
  }
653
  }
654
 
655
+ /**
656
+ * add filter to remove field name from error message
657
+ */
658
+ /** This filter is toolset-common/toolset-forms/classes/class.validation.php */
659
+ add_filter('toolset_common_validation_add_field_name_to_error', '__return_false', 1234, 1);
660
  foreach ( $_field_value as $_k => $_val ) {
661
  // Check if valid
662
  $validation = wptoolset_form_validate_field( 'post', $config, $_val );
663
  $conditional = wptoolset_form_conditional_check( $config );
664
  $not_valid = is_wp_error( $validation ) || !$conditional;
665
+ if ($add_error_message && is_wp_error( $validation )) {
666
  $errors = true;
667
  $_errors = $validation->get_error_data();
668
  $_msg = sprintf( __( 'Field "%s" not updated:', 'wpcf' ), $field['name'] );
676
  }
677
  }
678
  }
679
+ remove_filter('toolset_common_validation_add_field_name_to_error', '__return_false', 1234, 1);
680
  // Save field
681
  if ( types_is_repetitive( $field ) ) {
682
  $wpcf->repeater->set( $post_ID, $field );
1421
  // TODO WPML move Set WPML locked icon
1422
  if ( wpcf_wpml_field_is_copied( $field ) ) {
1423
  $element['#title'] .= '<img src="' . WPCF_EMBEDDED_RES_RELPATH . '/images/locked.png" alt="'
1424
+ . __( 'This field is locked for editing because WPML will copy its value from the original language.', 'wpcf' ) . '" title="'
1425
+ . __( 'This field is locked for editing because WPML will copy its value from the original language.', 'wpcf' ) . '" style="position:relative;left:2px;top:2px;" />';
 
 
1426
  }
1427
 
1428
  // Add repetitive class
1676
  if ( $field == 'get' ) {
1677
  return $fields;
1678
  }
1679
+ if (
1680
+ empty( $fields )
1681
  && ! (
1682
  apply_filters( 'toolset_is_views_available', false )
1683
  || apply_filters( 'toolset_is_views_embedded_available', false )
1706
 
1707
  $fields = wpcf_admin_post_add_to_editor( 'get' );
1708
  $groups = wpcf_admin_post_get_post_groups_fields( $post );
1709
+
1710
+
1711
  if ( empty( $fields ) || empty( $groups ) ) {
1712
+ /**
1713
+ * check user fields too, but only when CF are empty
1714
+ */
1715
+ include_once dirname(__FILE__).'/usermeta-post.php';
1716
+ $groups = wpcf_admin_usermeta_get_groups_fields();
1717
+ if ( empty( $groups ) ) {
1718
+ return false;
1719
+ }
1720
  }
1721
  $editor_addon = new Editor_addon( 'types',
1722
  __( 'Insert Types Shortcode', 'wpcf' ),
1762
  $post = (object) array('ID' => -1);
1763
  }
1764
 
1765
+ $groups = wpcf_admin_fields_get_groups( TYPES_CUSTOM_FIELD_GROUP_CPT_NAME, 'group_active' );
1766
  $all_post_types = implode( ' ', get_post_types( array('public' => true) ) );
1767
  $add = array();
1768
  if ( !empty( $groups ) ) {
1813
  }
1814
  }
1815
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1816
 
1817
  return $menu;
1818
  }
1834
  }
1835
 
1836
  if ( $views_plugin_available ) {
1837
+ $output .= '<p><strong>' . sprintf( __( "Build this site with %sViews%s", 'wpcf' ),
 
1838
  '<a href="http://wp-types.com/home/views-create-elegant-displays-for-your-content/?utm_source=typesplugin&utm_medium=postedit&utm_term=views&utm_content=promobox&utm_campaign=types" title="Views" target="_blank">',
1839
  '</a>' ) . '</strong></p>';
1840
+ $output .= '<p><a href="' . admin_url( 'edit.php?post_type=view-template' ) . '">' . __( 'Create <strong>Content Templates</strong> for single pages &raquo;', 'wpcf' ) . '</a></p>';
1841
+ $output .= '<p><a href="' . admin_url( 'edit.php?post_type=view' ) . '">' . __( 'Create <strong>Views</strong> for content lists &raquo;', 'wpcf' ) . '</a></p>';
 
 
1842
  } else {
1843
+ $output .= '<p><strong>' . sprintf( __( "%sViews%s lets you build complete websites without coding.", 'wpcf' ),
 
1844
  '<a href="http://wp-types.com/home/views-create-elegant-displays-for-your-content/?utm_source=typesplugin&utm_medium=postedit&utm_term=views&utm_content=promobox&utm_campaign=types" title="Views" target="_blank">',
1845
  '</a>' )
1846
  . '</strong></p>'
1864
  if ( isset( $post->post_status ) && !in_array( $post->post_status,
1865
  array('auto-draft', 'draft') ) && !in_array( $post->post_type,
1866
  array('cred', 'view', 'view-template') ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
1867
  wp_enqueue_style( 'wp-pointer' );
1868
  wp_enqueue_script( 'wp-pointer' );
1869
 
1870
+ ?><script type="text/javascript">
1871
+ if ( "undefined" != typeof typesPostScreen ) {
1872
+ typesPostScreen.previewWarning(
1873
+ '<?php _e( 'Preview warning', 'wpcf' ); ?>',
1874
+ '<?php printf( __( 'Custom field changes cannot be previewed until %s is updated', 'wpcf' ), $post->post_type ); ?>');
1875
+ }
1876
+ </script><?php
 
1877
  }
1878
  }
1879
 
embedded/includes/fields.php CHANGED
@@ -1,24 +1,43 @@
1
  <?php
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  /**
4
  * Gets all groups.
5
  *
6
  * @param string $post_type
7
  * @param boolean|string $only_active
8
  * @param boolean|string $add_fields - 'field_active', 'field_all', false (to omitt fields)
9
- * @return type
10
  */
11
- function wpcf_admin_fields_get_groups( $post_type = 'wp-types-group',
12
- $only_active = false, $add_fields = false ) {
13
  $cache_group = 'types_cache_groups';
14
- $cache_key = md5( 'group::_get_group' . $post_type );
15
- $cached_object = wp_cache_get( $cache_key, $cache_group );
16
  if ( false === $cached_object ) {
17
- $groups = get_posts( 'numberposts=-1&post_type=' . $post_type . '&post_status=null' );
18
- wp_cache_add( $cache_key, $groups, $cache_group );
19
- } else {
20
- $groups = $cached_object;
21
- }
22
  $_groups = array();
23
  if ( !empty( $groups ) ) {
24
  foreach ( $groups as $k => $group ) {
@@ -42,7 +61,7 @@ function wpcf_admin_fields_get_groups( $post_type = 'wp-types-group',
42
  * @param bool $add_fields
43
  * @return array
44
  */
45
- function wpcf_admin_fields_get_group( $group_id, $post_type = 'wp-types-group',
46
  $add_fields = false ) {
47
  $group = get_post( $group_id );
48
  if ( empty( $group->ID ) ) {
@@ -76,8 +95,8 @@ function wpcf_admin_fields_adjust_group( $post, $add_fields = false ) {
76
  $group['meta_box_context'] = 'normal';
77
  $group['meta_box_priority'] = 'high';
78
  $group['is_active'] = $post->post_status == 'publish' ? true : false;
79
- $group['filters_association'] = get_post_meta( $post->ID,
80
- '_wp_types_group_filters_association', true );
81
 
82
  // Attach fields if required (since 1.3)
83
  if ( $add_fields ) {
@@ -95,9 +114,15 @@ function wpcf_admin_fields_adjust_group( $post, $add_fields = false ) {
95
  * @param type $group_id
96
  * @return type
97
  */
98
- function wpcf_admin_get_groups_admin_styles_by_group( $group_id ) {
99
- $admin_styles = get_post_meta( $group_id, '_wp_types_group_admin_styles', true );
100
- return trim( $admin_styles );
 
 
 
 
 
 
101
  }
102
 
103
  /**
@@ -251,7 +276,7 @@ add_filter('wpcf_fields_by_group', 'wpcf_admin_fields_get_fields_by_group', 10,
251
  */
252
  function wpcf_admin_fields_get_fields_by_group( $group_id, $key = 'slug',
253
  $only_active = false, $disabled_by_type = false,
254
- $strictly_active = false, $post_type = 'wp-types-group',
255
  $meta_name = 'wpcf-fields', $use_cache = true ) {
256
  static $cache = array();
257
  $cache_key = md5( serialize( func_get_args() ) );
@@ -289,7 +314,7 @@ function wpcf_admin_fields_get_fields_by_group( $group_id, $key = 'slug',
289
  function wpcf_admin_fields_get_groups_by_term( $term_id = false,
290
  $fetch_empty = true, $post_type = false, $only_active = true ) {
291
  $args = array();
292
- $args['post_type'] = 'wp-types-group';
293
  $args['numberposts'] = -1;
294
  // Active
295
  if ( $only_active ) {
@@ -349,7 +374,7 @@ add_filter('wpcf_get_groups_by_post_type', 'wpcf_admin_get_groups_by_post_type',
349
  function wpcf_admin_get_groups_by_post_type( $post_type, $fetch_empty = true, $terms = null, $only_active = true )
350
  {
351
  $args = array();
352
- $args['post_type'] = 'wp-types-group';
353
  $args['numberposts'] = -1;
354
  // Active
355
  if ( $only_active ) {
@@ -407,7 +432,7 @@ function wpcf_admin_get_groups_by_post_type( $post_type, $fetch_empty = true, $t
407
  global $wpdb;
408
  $terms_sql = "SELECT * FROM $wpdb->posts p
409
  JOIN $wpdb->postmeta m
410
- WHERE p.post_type='wp-types-group' AND p.post_status='publish'
411
  AND p.ID = m.post_id AND m.meta_key='_wp_types_group_terms'
412
  $terms_sql";
413
  $groups = $wpdb->get_results( $terms_sql );
@@ -439,7 +464,7 @@ function wpcf_admin_get_groups_by_post_type( $post_type, $fetch_empty = true, $t
439
  function wpcf_admin_get_groups_by_template( $templates = array('default'),
440
  $fetch_empty = true, $only_active = true ) {
441
  $args = array();
442
- $args['post_type'] = 'wp-types-group';
443
  $args['numberposts'] = -1;
444
  $meta_query = array();
445
  // Active
@@ -581,7 +606,7 @@ function wpcf_admin_fields_get_available_types() {
581
  function wpcf_sanitize_field( $field ) {
582
  // Sanitize name
583
  if ( isset( $field['name'] ) ) {
584
- $field['name'] = sanitize_text_field( $field['name'] );
585
  }
586
  // Sanitize slug
587
  if ( !empty( $field['slug'] ) ) {
@@ -589,7 +614,6 @@ function wpcf_sanitize_field( $field ) {
589
  } else if ( isset( $field['name'] ) ) {
590
  $field['slug'] = sanitize_title( $field['name'] );
591
  }
592
-
593
  return $field;
594
  }
595
 
@@ -600,10 +624,10 @@ function wpcf_sanitize_field( $field ) {
600
  * @param type $field_id
601
  */
602
  function wpcf_admin_fields_get_groups_by_field( $field_id,
603
- $post_type = 'wp-types-group' ) {
604
  static $cache = array();
605
  $groups = wpcf_admin_fields_get_groups( $post_type );
606
- $meta_name = ($post_type == 'wp-types-group' ? 'wpcf-fields' : 'wpcf-usermeta');
607
  $return = array();
608
  foreach ( $groups as $group_id => $group ) {
609
  if ( isset( $cache['groups'][$group_id] ) ) {
@@ -671,7 +695,7 @@ function wpcf_admin_get_allowed_fields_by_post_type($post_type)
671
  foreach( $all_groups as $group_id => $group_data ) {
672
  $active_groups[] = $group_data['slug'];
673
  }
674
- $all_groups = wpcf_admin_fields_get_groups('wp-types-group', true, true);
675
  foreach( $all_groups as $group ) {
676
  if ( !in_array($group['slug'], $active_groups) ) {
677
  continue;
1
  <?php
2
 
3
+ function wpcf_admin_fields_get_active_fields_by_post_type($post_type)
4
+ {
5
+ $custom_fields = array();
6
+ $groups = wpcf_admin_fields_get_groups(TYPES_CUSTOM_FIELD_GROUP_CPT_NAME, true, true);
7
+ if ( empty($groups) ) {
8
+ return $custom_fields;
9
+ }
10
+ foreach ($groups as $group) {
11
+ $types = wpcf_admin_get_post_types_by_group($group['id']);
12
+ if ( !empty($types) && !in_array($post_type, $types) ) {
13
+ continue;
14
+ }
15
+ if (isset($group['fields'])) {
16
+ $custom_fields += $group['fields'];
17
+ }
18
+ }
19
+ return $custom_fields;
20
+ }
21
+
22
+
23
  /**
24
  * Gets all groups.
25
  *
26
  * @param string $post_type
27
  * @param boolean|string $only_active
28
  * @param boolean|string $add_fields - 'field_active', 'field_all', false (to omitt fields)
29
+ * @return array array of custom fields definition
30
  */
31
+ function wpcf_admin_fields_get_groups( $post_type = TYPES_CUSTOM_FIELD_GROUP_CPT_NAME, $only_active = false, $add_fields = false ) {
 
32
  $cache_group = 'types_cache_groups';
33
+ $cache_key = md5( 'group::_get_group' . $post_type );
34
+ $cached_object = wp_cache_get( $cache_key, $cache_group );
35
  if ( false === $cached_object ) {
36
+ $groups = get_posts( 'numberposts=-1&post_type=' . $post_type . '&post_status=null' );
37
+ wp_cache_add( $cache_key, $groups, $cache_group );
38
+ } else {
39
+ $groups = $cached_object;
40
+ }
41
  $_groups = array();
42
  if ( !empty( $groups ) ) {
43
  foreach ( $groups as $k => $group ) {
61
  * @param bool $add_fields
62
  * @return array
63
  */
64
+ function wpcf_admin_fields_get_group( $group_id, $post_type = TYPES_CUSTOM_FIELD_GROUP_CPT_NAME,
65
  $add_fields = false ) {
66
  $group = get_post( $group_id );
67
  if ( empty( $group->ID ) ) {
95
  $group['meta_box_context'] = 'normal';
96
  $group['meta_box_priority'] = 'high';
97
  $group['is_active'] = $post->post_status == 'publish' ? true : false;
98
+ $group['filters_association'] = get_post_meta( $post->ID, '_wp_types_group_filters_association', true );
99
+ $group[WPCF_AUTHOR] = $post->post_author;
100
 
101
  // Attach fields if required (since 1.3)
102
  if ( $add_fields ) {
114
  * @param type $group_id
115
  * @return type
116
  */
117
+ function wpcf_admin_get_groups_admin_styles_by_group( $group_id )
118
+ {
119
+ if (
120
+ defined('TYPES_USE_STYLING_EDITOR')
121
+ && TYPES_USE_STYLING_EDITOR
122
+ ) {
123
+ $admin_styles = get_post_meta( $group_id, '_wp_types_group_admin_styles', true );
124
+ return trim( $admin_styles );
125
+ }
126
  }
127
 
128
  /**
276
  */
277
  function wpcf_admin_fields_get_fields_by_group( $group_id, $key = 'slug',
278
  $only_active = false, $disabled_by_type = false,
279
+ $strictly_active = false, $post_type = TYPES_CUSTOM_FIELD_GROUP_CPT_NAME,
280
  $meta_name = 'wpcf-fields', $use_cache = true ) {
281
  static $cache = array();
282
  $cache_key = md5( serialize( func_get_args() ) );
314
  function wpcf_admin_fields_get_groups_by_term( $term_id = false,
315
  $fetch_empty = true, $post_type = false, $only_active = true ) {
316
  $args = array();
317
+ $args['post_type'] = TYPES_CUSTOM_FIELD_GROUP_CPT_NAME;
318
  $args['numberposts'] = -1;
319
  // Active
320
  if ( $only_active ) {
374
  function wpcf_admin_get_groups_by_post_type( $post_type, $fetch_empty = true, $terms = null, $only_active = true )
375
  {
376
  $args = array();
377
+ $args['post_type'] = TYPES_CUSTOM_FIELD_GROUP_CPT_NAME;
378
  $args['numberposts'] = -1;
379
  // Active
380
  if ( $only_active ) {
432
  global $wpdb;
433
  $terms_sql = "SELECT * FROM $wpdb->posts p
434
  JOIN $wpdb->postmeta m
435
+ WHERE p.post_type=".TYPES_CUSTOM_FIELD_GROUP_CPT_NAME." AND p.post_status='publish'
436
  AND p.ID = m.post_id AND m.meta_key='_wp_types_group_terms'
437
  $terms_sql";
438
  $groups = $wpdb->get_results( $terms_sql );
464
  function wpcf_admin_get_groups_by_template( $templates = array('default'),
465
  $fetch_empty = true, $only_active = true ) {
466
  $args = array();
467
+ $args['post_type'] = TYPES_CUSTOM_FIELD_GROUP_CPT_NAME;
468
  $args['numberposts'] = -1;
469
  $meta_query = array();
470
  // Active
606
  function wpcf_sanitize_field( $field ) {
607
  // Sanitize name
608
  if ( isset( $field['name'] ) ) {
609
+ $field['name'] = wp_kses_post( $field['name'] );
610
  }
611
  // Sanitize slug
612
  if ( !empty( $field['slug'] ) ) {
614
  } else if ( isset( $field['name'] ) ) {
615
  $field['slug'] = sanitize_title( $field['name'] );
616
  }
 
617
  return $field;
618
  }
619
 
624
  * @param type $field_id
625
  */
626
  function wpcf_admin_fields_get_groups_by_field( $field_id,
627
+ $post_type = TYPES_CUSTOM_FIELD_GROUP_CPT_NAME ) {
628
  static $cache = array();
629
  $groups = wpcf_admin_fields_get_groups( $post_type );
630
+ $meta_name = ($post_type == TYPES_CUSTOM_FIELD_GROUP_CPT_NAME ? 'wpcf-fields' : 'wpcf-usermeta');
631
  $return = array();
632
  foreach ( $groups as $group_id => $group ) {
633
  if ( isset( $cache['groups'][$group_id] ) ) {
695
  foreach( $all_groups as $group_id => $group_data ) {
696
  $active_groups[] = $group_data['slug'];
697
  }
698
+ $all_groups = wpcf_admin_fields_get_groups(TYPES_CUSTOM_FIELD_GROUP_CPT_NAME, true, true);
699
  foreach( $all_groups as $group ) {
700
  if ( !in_array($group['slug'], $active_groups) ) {
701
  continue;
embedded/includes/fields/colorpicker.php CHANGED
@@ -36,8 +36,7 @@ function wpcf_fields_colorpicker_meta_box_form( $field ) {
36
  wpcf_fields_colorpicker_enqueue_scripts();
37
  //By Gen: changed minimal version from 3.4 to 3.5, because colorbox not works in 3.4.2
38
  if ( wpcf_compare_wp_version( '3.5', '<' ) ) {
39
- $form['name']['#after'] .= '<a href="#" class="button-secondary js-types-pickcolor">' . __( 'Pick color',
40
- 'wpcf' ) . '</a><div class="js-types-cp-preview types-cp-preview" style="background-color:' . $field['value'] . '"></div>';
41
  wp_enqueue_script( 'farbtastic' );
42
  wp_enqueue_style( 'farbtastic' );
43
  } else {
@@ -156,4 +155,4 @@ function wpcf_fields_colorpicker_view( $params ) {
156
  return '__wpcf_skip_empty';
157
  }
158
  return $params['field_value'];
159
- }
36
  wpcf_fields_colorpicker_enqueue_scripts();
37
  //By Gen: changed minimal version from 3.4 to 3.5, because colorbox not works in 3.4.2
38
  if ( wpcf_compare_wp_version( '3.5', '<' ) ) {
39
+ $form['name']['#after'] .= '<a href="#" class="button-secondary js-types-pickcolor">' . __( 'Pick color', 'wpcf' ) . '</a><div class="js-types-cp-preview types-cp-preview" style="background-color:' . $field['value'] . '"></div>';
 
40
  wp_enqueue_script( 'farbtastic' );
41
  wp_enqueue_style( 'farbtastic' );
42
  } else {
155
  return '__wpcf_skip_empty';
156
  }
157
  return $params['field_value'];
158
+ }
embedded/includes/fields/date.php CHANGED
@@ -442,7 +442,7 @@ function wpcf_fields_date_editor_callback( $field, $settings ) {
442
  );
443
  $date_formats = apply_filters( 'date_formats',
444
  array(
445
- __( 'F j, Y' ),
446
  'Y/m/d',
447
  'm/d/Y',
448
  'd/m/Y',
442
  );
443
  $date_formats = apply_filters( 'date_formats',
444
  array(
445
+ __( 'F j, Y', 'wpcf' ),
446
  'Y/m/d',
447
  'm/d/Y',
448
  'd/m/Y',
embedded/includes/fields/date/js.php CHANGED
@@ -9,8 +9,7 @@ function wpcf_fields_date_meta_box_js_inline() {
9
  $date_format = wpcf_get_date_format();
10
  $date_format = _wpcf_date_convert_wp_to_js( $date_format );
11
 
12
- $date_format_note = '<span style="margin-left:10px"><i>' . esc_js( sprintf( __( 'Input format: %s',
13
- 'wpcf' ), wpcf_get_date_format_text() ) ) . '</i></span>';
14
  $year_range = fields_date_timestamp_neg_supported() ? '1902:2037' : '1970:2037';
15
 
16
  ?>
@@ -80,4 +79,4 @@ function wpcf_fields_date_editor_form_script() {
80
  // ]]>
81
  </script>
82
  <?php
83
- }
9
  $date_format = wpcf_get_date_format();
10
  $date_format = _wpcf_date_convert_wp_to_js( $date_format );
11
 
12
+ $date_format_note = '<span style="margin-left:10px"><i>' . esc_js( sprintf( __( 'Input format: %s', 'wpcf' ), wpcf_get_date_format_text() ) ) . '</i></span>';
 
13
  $year_range = fields_date_timestamp_neg_supported() ? '1902:2037' : '1970:2037';
14
 
15
  ?>
79
  // ]]>
80
  </script>
81
  <?php
82
+ }
embedded/includes/fields/image.php CHANGED
@@ -10,6 +10,27 @@ add_filter( 'wpcf_fields_type_image_value_save', 'wpcf_fields_image_value_filter
10
  // Do not wrap if 'url' is TRUE
11
  add_filter( 'types_view', 'wpcf_fields_image_view_filter', 10, 6 );
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  /**
14
  * Register data (called automatically).
15
  * @return type
@@ -289,8 +310,7 @@ function wpcf_fields_image_view( $params ) {
289
  //print_r('is_attachment');
290
  if ( isset( $params['url'] ) && $params['url'] == 'true' ) {
291
  //print_r('is_url');
292
- $image_url = wp_get_attachment_image_src( $image_data['is_attachment'],
293
- $params['size'] );
294
  if ( !empty( $image_url[0] ) ) {
295
  $output = $image_url[0];
296
  } else {
@@ -389,15 +409,14 @@ function wpcf_fields_image_view( $params ) {
389
  return $resized_image;
390
  }
391
 
392
- $output = '<img alt="';
393
- $output .= $alt !== false ? $alt : $resized_image;
394
- $output .= '" title="';
395
- $output .= $title !== false ? $title : $resized_image;
396
- $output .= '"';
397
- $output .=!empty( $params['onload'] ) ? ' onload="' . $params['onload'] . '"' : '';
398
- $output .=!empty( $class ) ? ' class="' . implode( ' ', $class ) . '"' : '';
399
- $output .=!empty( $style ) ? ' style="' . implode( ' ', $style ) . '"' : '';
400
- $output .= ' src="' . $resized_image . '" />';
401
  }
402
 
403
  return $output;
@@ -470,8 +489,7 @@ function wpcf_fields_image_resize_image( $url_path, $width = 300, $height = 200,
470
  $suffix .= '_wpcf_' . $dst_w . 'x' . $dst_h;
471
  }
472
 
473
- $image_data['extension'] = in_array( strtolower( $image_data['extension'] ),
474
- array('gif', 'png', 'jpeg') ) ? $image_data['extension'] : 'jpg';
475
 
476
  $image_relpath = $image_data['relpath'] . '/' . $image_data['image_name'] . '-'
477
  . $suffix . '.' . $image_data['extension'];
@@ -563,10 +581,8 @@ function wpcf_fields_image_get_data( $image ) {
563
  }
564
  // Extension check
565
  $data['extension'] = pathinfo( $image, PATHINFO_EXTENSION );
566
- if ( !in_array( strtolower( $data['extension'] ),
567
- array('jpg', 'jpeg', 'gif', 'png') ) ) {
568
- return array('error' => sprintf( __( 'Image %s not valid', 'wpcf' ),
569
- $image ));
570
  }
571
 
572
  // Check if it's on same domain
@@ -651,10 +667,13 @@ function wpcf_fields_image_get_cache_directory( $suppress_filters = false ) {
651
  if ( !$suppress_filters ) {
652
  $cache_dir = apply_filters( 'types_image_cache_dir', $cache_dir );
653
  if ( !wp_mkdir_p( $cache_dir ) ) {
654
- return new WP_Error( 'wpcf_image_cache_dir',
655
- sprintf( __( 'Image cache directory %s could not be created',
656
- 'wpcf' ),
657
- '<strong>' . $cache_dir . '</strong>' ) );
 
 
 
658
  }
659
  }
660
  return $cache_dir;
@@ -684,9 +703,8 @@ function wpcf_fields_image_get_remote( $url ) {
684
 
685
  // Validate image
686
  $extension = pathinfo( $url, PATHINFO_EXTENSION );
687
- if ( !in_array( strtolower( $extension ), array('jpg', 'jpeg', 'gif', 'png') ) ) {
688
- return new WP_Error( 'wpcf_image_cache_not_valid', sprintf( __( 'Image %s not valid',
689
- 'wpcf' ), $url ) );
690
  }
691
 
692
  $image = $cache_dir . md5( $url ) . '.' . $extension;
@@ -712,14 +730,13 @@ function wpcf_fields_image_get_remote( $url ) {
712
  // fetch the remote url and write it to the placeholder file
713
  add_filter( 'http_request_timeout', 'wpcf_image_http_request_timeout',
714
  10, 1 );
715
- $resp = wp_remote_get( $url );
716
 
717
  // Check if response type is expected
718
  if ( is_object( $resp ) ) {
719
  return new WP_Error(
720
  'wpcf_image_cache_file_error',
721
- sprintf( __( 'Remote server returned error response %1$d %2$s',
722
- 'wpcf' ),
723
  esc_html( $resp->errors["http_request_failed"][0] ),
724
  get_status_header_desc( $resp->errors["http_request_failed"][0] )
725
  )
@@ -730,21 +747,22 @@ function wpcf_fields_image_get_remote( $url ) {
730
  'wpcf_image_http_request_timeout', 10, 1 );
731
  // make sure the fetch was successful
732
  if ( $resp['response']['code'] != '200' ) {
733
- return new WP_Error( 'wpcf_image_cache_file_error', sprintf( __( 'Remote server returned error response %1$d %2$s',
734
- 'wpcf' ),
735
- esc_html( $resp['response'] ),
736
- get_status_header_desc( $resp['response'] ) ) );
 
 
 
737
  }
738
  if ( !isset( $resp['headers']['content-length'] )
739
  || strlen( $resp['body'] ) != $resp['headers']['content-length'] ) {
740
- return new WP_Error( 'wpcf_image_cache_file_error', __( 'Remote file is incorrect size',
741
- 'wpcf' ) );
742
  }
743
 
744
  $out_fp = fopen( $image, 'w' );
745
  if ( !$out_fp ) {
746
- return new WP_Error( 'wpcf_image_cache_file_error', __( 'Could not create cache file',
747
- 'wpcf' ) );
748
  }
749
 
750
  fwrite( $out_fp, $resp['body'] );
@@ -754,8 +772,7 @@ function wpcf_fields_image_get_remote( $url ) {
754
  $filesize = filesize( $image );
755
  if ( !empty( $max_size ) && $filesize > $max_size ) {
756
  @unlink( $image );
757
- return new WP_Error( 'wpcf_image_cache_file_error', sprintf( __( 'Remote file is too large, limit is %s',
758
- 'wpcf' ), size_format( $max_size ) ) );
759
  }
760
  }
761
 
@@ -884,12 +901,12 @@ function wpcf_image_resize( $file, $max_w, $max_h, $crop = false,
884
 
885
  $size = @getimagesize( $file );
886
  if ( !$size )
887
- return new WP_Error( 'invalid_image', __( 'Could not read image size' ), $file );
888
  list($orig_w, $orig_h, $orig_type) = $size;
889
 
890
  $dims = image_resize_dimensions( $orig_w, $orig_h, $max_w, $max_h, $crop );
891
  if ( !$dims )
892
- return new WP_Error( 'error_getting_dimensions', __( 'Could not calculate resized image dimensions' ) );
893
  list($dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) = $dims;
894
 
895
  $newimage = wp_imagecreatetruecolor( $dst_w, $dst_h );
@@ -919,10 +936,10 @@ function wpcf_image_resize( $file, $max_w, $max_h, $crop = false,
919
 
920
  if ( IMAGETYPE_GIF == $orig_type ) {
921
  if ( !imagegif( $newimage, $destfilename ) )
922
- return new WP_Error( 'resize_path_invalid', __( 'Resize path invalid' ) );
923
  } elseif ( IMAGETYPE_PNG == $orig_type ) {
924
  if ( !imagepng( $newimage, $destfilename ) )
925
- return new WP_Error( 'resize_path_invalid', __( 'Resize path invalid' ) );
926
  } else {
927
  // all other formats are converted to jpg
928
  if ( 'jpg' != $ext && 'jpeg' != $ext )
@@ -930,7 +947,7 @@ function wpcf_image_resize( $file, $max_w, $max_h, $crop = false,
930
  if ( !imagejpeg( $newimage, $destfilename,
931
  apply_filters( 'jpeg_quality', $jpeg_quality,
932
  'image_resize' ) ) )
933
- return new WP_Error( 'resize_path_invalid', __( 'Resize path invalid' ) );
934
  }
935
 
936
  imagedestroy( $newimage );
10
  // Do not wrap if 'url' is TRUE
11
  add_filter( 'types_view', 'wpcf_fields_image_view_filter', 10, 6 );
12
 
13
+ /**
14
+ * return array of valid extensions
15
+ *
16
+ * @since 1.8
17
+ *
18
+ * @return array
19
+ */
20
+ function wpcf_fields_image_valid_extension()
21
+ {
22
+ return array(
23
+ 'bmp',
24
+ 'gif',
25
+ 'ico',
26
+ 'jpeg',
27
+ 'jpg',
28
+ 'png',
29
+ 'svg',
30
+ 'webp',
31
+ );
32
+ }
33
+
34
  /**
35
  * Register data (called automatically).
36
  * @return type
310
  //print_r('is_attachment');
311
  if ( isset( $params['url'] ) && $params['url'] == 'true' ) {
312
  //print_r('is_url');
313
+ $image_url = wp_get_attachment_image_src( $image_data['is_attachment'], $params['size'] );
 
314
  if ( !empty( $image_url[0] ) ) {
315
  $output = $image_url[0];
316
  } else {
409
  return $resized_image;
410
  }
411
 
412
+ $output = sprintf( '<img alt="%s" ', $output .= $alt !== false ? esc_attr($alt) : '');
413
+ if ( $title !== false ) {
414
+ $output .= sprintf(' title="%s"', esc_attr($title));
415
+ }
416
+ $output .=!empty( $params['onload'] ) ? ' onload="' . esc_attr($params['onload']) . '"' : '';
417
+ $output .=!empty( $class ) ? ' class="' . esc_attr(implode( ' ', $class )) . '"' : '';
418
+ $output .=!empty( $style ) ? ' style="' . esc_attr(implode( ' ', $style )) . '"' : '';
419
+ $output .= sprintf(' src="%s" />', esc_attr($resized_image));
 
420
  }
421
 
422
  return $output;
489
  $suffix .= '_wpcf_' . $dst_w . 'x' . $dst_h;
490
  }
491
 
492
+ $image_data['extension'] = in_array( strtolower( $image_data['extension'] ), wpcf_fields_image_valid_extension() ) ? $image_data['extension'] : 'jpg';
 
493
 
494
  $image_relpath = $image_data['relpath'] . '/' . $image_data['image_name'] . '-'
495
  . $suffix . '.' . $image_data['extension'];
581
  }
582
  // Extension check
583
  $data['extension'] = pathinfo( $image, PATHINFO_EXTENSION );
584
+ if ( !in_array( strtolower( $data['extension'] ), wpcf_fields_image_valid_extension() ) ) {
585
+ return array('error' => sprintf( __( 'Image %s not valid', 'wpcf' ), $image ));
 
 
586
  }
587
 
588
  // Check if it's on same domain
667
  if ( !$suppress_filters ) {
668
  $cache_dir = apply_filters( 'types_image_cache_dir', $cache_dir );
669
  if ( !wp_mkdir_p( $cache_dir ) ) {
670
+ return new WP_Error(
671
+ 'wpcf_image_cache_dir',
672
+ sprintf(
673
+ __( 'Image cache directory %s could not be created', 'wpcf' ),
674
+ '<strong>' . $cache_dir . '</strong>'
675
+ )
676
+ );
677
  }
678
  }
679
  return $cache_dir;
703
 
704
  // Validate image
705
  $extension = pathinfo( $url, PATHINFO_EXTENSION );
706
+ if ( !in_array( strtolower( $extension ), wpcf_fields_image_valid_extension() ) ) {
707
+ return new WP_Error( 'wpcf_image_cache_not_valid', sprintf( __( 'Image %s not valid', 'wpcf' ), $url ) );
 
708
  }
709
 
710
  $image = $cache_dir . md5( $url ) . '.' . $extension;
730
  // fetch the remote url and write it to the placeholder file
731
  add_filter( 'http_request_timeout', 'wpcf_image_http_request_timeout',
732
  10, 1 );
733
+ $resp = wp_safe_remote_get( $url );
734
 
735
  // Check if response type is expected
736
  if ( is_object( $resp ) ) {
737
  return new WP_Error(
738
  'wpcf_image_cache_file_error',
739
+ sprintf( __( 'Remote server returned error response %1$d %2$s', 'wpcf' ),
 
740
  esc_html( $resp->errors["http_request_failed"][0] ),
741
  get_status_header_desc( $resp->errors["http_request_failed"][0] )
742
  )
747
  'wpcf_image_http_request_timeout', 10, 1 );
748
  // make sure the fetch was successful
749
  if ( $resp['response']['code'] != '200' ) {
750
+ return new WP_Error( 'wpcf_image_cache_file_error',
751
+ sprintf(
752
+ __( 'Remote server returned error response %1$d %2$s', 'wpcf' ),
753
+ esc_html( $resp['response'] ),
754
+ get_status_header_desc( $resp['response'] )
755
+ )
756
+ );
757
  }
758
  if ( !isset( $resp['headers']['content-length'] )
759
  || strlen( $resp['body'] ) != $resp['headers']['content-length'] ) {
760
+ return new WP_Error( 'wpcf_image_cache_file_error', __( 'Remote file is incorrect size', 'wpcf' ) );
 
761
  }
762
 
763
  $out_fp = fopen( $image, 'w' );
764
  if ( !$out_fp ) {
765
+ return new WP_Error( 'wpcf_image_cache_file_error', __( 'Could not create cache file', 'wpcf' ) );
 
766
  }
767
 
768
  fwrite( $out_fp, $resp['body'] );
772
  $filesize = filesize( $image );
773
  if ( !empty( $max_size ) && $filesize > $max_size ) {
774
  @unlink( $image );
775
+ return new WP_Error( 'wpcf_image_cache_file_error', sprintf( __( 'Remote file is too large, limit is %s', 'wpcf' ), size_format( $max_size ) ) );
 
776
  }
777
  }
778
 
901
 
902
  $size = @getimagesize( $file );
903
  if ( !$size )
904
+ return new WP_Error( 'invalid_image', __( 'Could not read image size', 'wpcf' ), $file );
905
  list($orig_w, $orig_h, $orig_type) = $size;
906
 
907
  $dims = image_resize_dimensions( $orig_w, $orig_h, $max_w, $max_h, $crop );
908
  if ( !$dims )
909
+ return new WP_Error( 'error_getting_dimensions', __( 'Could not calculate resized image dimensions', 'wpcf' ) );
910
  list($dst_x, $dst_y, $src_x, $src_y, $dst_w, $dst_h, $src_w, $src_h) = $dims;
911
 
912
  $newimage = wp_imagecreatetruecolor( $dst_w, $dst_h );
936
 
937
  if ( IMAGETYPE_GIF == $orig_type ) {
938
  if ( !imagegif( $newimage, $destfilename ) )
939
+ return new WP_Error( 'resize_path_invalid', __( 'Resize path invalid', 'wpcf' ) );
940
  } elseif ( IMAGETYPE_PNG == $orig_type ) {
941
  if ( !imagepng( $newimage, $destfilename ) )
942
+ return new WP_Error( 'resize_path_invalid', __( 'Resize path invalid', 'wpcf' ) );
943
  } else {
944
  // all other formats are converted to jpg
945
  if ( 'jpg' != $ext && 'jpeg' != $ext )
947
  if ( !imagejpeg( $newimage, $destfilename,
948
  apply_filters( 'jpeg_quality', $jpeg_quality,
949
  'image_resize' ) ) )
950
+ return new WP_Error( 'resize_path_invalid', __( 'Resize path invalid', 'wpcf' ) );
951
  }
952
 
953
  imagedestroy( $newimage );
embedded/includes/fields/url.php CHANGED
@@ -59,8 +59,7 @@ function wpcf_fields_url_editor_callback( $field, $settings ) {
59
  }
60
  $settings['target_options'] = array(
61
  '_blank' => __( '_blank: Opens in a new window or tab', 'wpcf' ),
62
- '_self' => __( '_self: Opens in the same frame as it was clicked',
63
- 'wpcf' ),
64
  '_parent' => __( '_parent: Opens in the parent frame', 'wpcf' ),
65
  '_top' => __( '_top: Opens in the full body of the window', 'wpcf' ),
66
  'framename' => __( 'framename: Opens in a named frame', 'wpcf' ),
@@ -124,4 +123,4 @@ function wpcf_fields_no_protocol_parser( $value, $params, $post, $meta ){
124
  $params['field_value'] );
125
  }
126
  return $params['field_value'];
127
- }
59
  }
60
  $settings['target_options'] = array(
61
  '_blank' => __( '_blank: Opens in a new window or tab', 'wpcf' ),
62
+ '_self' => __( '_self: Opens in the same frame as it was clicked', 'wpcf' ),
 
63
  '_parent' => __( '_parent: Opens in the parent frame', 'wpcf' ),
64
  '_top' => __( '_top: Opens in the full body of the window', 'wpcf' ),
65
  'framename' => __( 'framename: Opens in a named frame', 'wpcf' ),
123
  $params['field_value'] );
124
  }
125
  return $params['field_value'];
126
+ }
embedded/includes/fields/wysiwyg.php CHANGED
@@ -2,8 +2,8 @@
2
 
3
  /**
4
  * Register data (called automatically).
5
- *
6
- * @return type
7
  */
8
  function wpcf_fields_wysiwyg() {
9
  $settings = array(
@@ -22,9 +22,9 @@ function wpcf_fields_wysiwyg() {
22
 
23
  /**
24
  * Meta box form.
25
- *
26
  * @param type $field
27
- * @return array
28
  */
29
  function wpcf_fields_wysiwyg_meta_box_form( $field, $f ) {
30
 
@@ -111,9 +111,9 @@ function wpcf_fields_wysiwyg_css() {
111
 
112
  /**
113
  * View function.
114
- *
115
  * @param type $params
116
- * @return type
117
  */
118
  function wpcf_fields_wysiwyg_view( $params ) {
119
  $output = '';
@@ -129,10 +129,10 @@ function wpcf_fields_wysiwyg_view( $params ) {
129
  }
130
 
131
  remove_shortcode('playlist', 'wp_playlist_shortcode');
132
-
133
- $content = stripslashes( $params['field_value'] );
134
-
135
- if ( isset( $params['suppress_filters'] ) && $params['suppress_filters'] == 'true' ) {
136
  $the_content_filters = array(
137
  'wptexturize', 'convert_smilies', 'convert_chars', 'wpautop',
138
  'shortcode_unautop', 'prepend_attachment', 'capital_P_dangit', 'do_shortcode');
@@ -143,11 +143,11 @@ function wpcf_fields_wysiwyg_view( $params ) {
143
  }
144
  $output .= $content;
145
  } else {
146
- $filter_state = new WPCF_WP_filter_state( 'the_content' );
147
  $output .= apply_filters( 'the_content', $content );
148
- $filter_state->restore( );
149
  }
150
-
151
  if ( preg_match_all('/playlist[^\]]+/', $output, $matches ) ) {
152
  foreach( $matches[0] as $one ) {
153
  $re = '/'.$one.'/';
@@ -173,17 +173,17 @@ class WPCF_WP_filter_state {
173
 
174
  private $current_index;
175
  private $tag;
176
-
177
  public function __construct( $tag ) {
178
  global $wp_filter;
179
 
180
  $this->tag = $tag;
181
-
182
  if ( isset( $wp_filter[$tag] ) ) {
183
  $this->current_index = current($wp_filter[$tag]);
184
  }
185
  }
186
-
187
  public function restore( ) {
188
  global $wp_filter;
189
 
@@ -193,7 +193,7 @@ class WPCF_WP_filter_state {
193
  next( $wp_filter[$this->tag] );
194
  }
195
  }
196
-
197
  }
198
 
199
  }
2
 
3
  /**
4
  * Register data (called automatically).
5
+ *
6
+ * @return type
7
  */
8
  function wpcf_fields_wysiwyg() {
9
  $settings = array(
22
 
23
  /**
24
  * Meta box form.
25
+ *
26
  * @param type $field
27
+ * @return array
28
  */
29
  function wpcf_fields_wysiwyg_meta_box_form( $field, $f ) {
30
 
111
 
112
  /**
113
  * View function.
114
+ *
115
  * @param type $params
116
+ * @return type
117
  */
118
  function wpcf_fields_wysiwyg_view( $params ) {
119
  $output = '';
129
  }
130
 
131
  remove_shortcode('playlist', 'wp_playlist_shortcode');
132
+
133
+ $content = stripslashes( $params['field_value'] );
134
+
135
+ if ( isset( $params['suppress_filters'] ) && $params['suppress_filters'] == 'true' ) {
136
  $the_content_filters = array(
137
  'wptexturize', 'convert_smilies', 'convert_chars', 'wpautop',
138
  'shortcode_unautop', 'prepend_attachment', 'capital_P_dangit', 'do_shortcode');
143
  }
144
  $output .= $content;
145
  } else {
146
+ $filter_state = new WPCF_WP_filter_state( 'the_content' );
147
  $output .= apply_filters( 'the_content', $content );
148
+ $filter_state->restore( );
149
  }
150
+
151
  if ( preg_match_all('/playlist[^\]]+/', $output, $matches ) ) {
152
  foreach( $matches[0] as $one ) {
153
  $re = '/'.$one.'/';
173
 
174
  private $current_index;
175
  private $tag;
176
+
177
  public function __construct( $tag ) {
178
  global $wp_filter;
179
 
180
  $this->tag = $tag;
181
+
182
  if ( isset( $wp_filter[$tag] ) ) {
183
  $this->current_index = current($wp_filter[$tag]);
184
  }
185
  }
186
+
187
  public function restore( ) {
188
  global $wp_filter;
189
 
193
  next( $wp_filter[$this->tag] );
194
  }
195
  }
196
+
197
  }
198
 
199
  }
embedded/includes/footer-credit.php CHANGED
@@ -44,16 +44,13 @@ function wpcf_footer_credits_init() {
44
  */
45
  function wpcf_footer_credit_defaults() {
46
  return array(
47
- sprintf(__("Functionality enhanced using %sWordPress Custom Fields%s",
48
- 'wpcf'),
49
  '<a href="http://wp-types.com/documentation/user-guides/using-custom-fields/" target="_blank">',
50
  ' &raquo;</a>'),
51
- sprintf(__("Functionality enhanced using %sWordPress Custom Post Types%s",
52
- 'wpcf'),
53
  '<a href="http://wp-types.com/documentation/user-guides/create-a-custom-post-type/" target="_blank">',
54
  ' &raquo;</a>'),
55
- sprintf(__("Functionality enhanced using %sWordPress Custom Taxonomy%s",
56
- 'wpcf'),
57
  '<a href="http://wp-types.com/documentation/user-guides/create-custom-taxonomies/" target="_blank">',
58
  ' &raquo;</a>'),
59
  );
@@ -108,17 +105,15 @@ function wpcf_footer_credit_message() {
108
  }
109
  $option = get_option('wpcf_footer_credit', false);
110
  if (empty($option['active'])) {
111
- $message = __('You too can support Types! Would you like to add a small credit link, saying that you\'re using Types for custom fields or custom post types?',
112
- 'wpcf')
113
  . '<br /><br />'
114
  . '<a onclick="jQuery(this).parent().parent().fadeOut();" class="wpcf-ajax-link button-primary" href="'
115
  . admin_url('admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=footer_credit_activate_message&amp;_wpnonce='
116
- . wp_create_nonce('footer_credit_activate_message')) . '" class="button-primary">' . __('Yes',
117
- 'wpcf') . '</a>'
118
  . "&nbsp;<a onclick=\"jQuery(this).parent().parent().fadeOut();\" class=\"wpcf-ajax-link button-secondary\" href=\""
119
  . admin_url('admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=dismiss_message&amp;id='
120
  . 'footer_credit_support_message' . '&amp;_wpnonce=' . wp_create_nonce('dismiss_message')) . "\">"
121
  . __('No, thanks', 'wpcf') . '</a>';
122
  echo '<div class="message updated"><p>' . $message . '</p></div>';
123
  }
124
- }
44
  */
45
  function wpcf_footer_credit_defaults() {
46
  return array(
47
+ sprintf(__("Functionality enhanced using %sWordPress Custom Fields%s", 'wpcf'),
 
48
  '<a href="http://wp-types.com/documentation/user-guides/using-custom-fields/" target="_blank">',
49
  ' &raquo;</a>'),
50
+ sprintf(__("Functionality enhanced using %sWordPress Custom Post Types%s", 'wpcf'),
 
51
  '<a href="http://wp-types.com/documentation/user-guides/create-a-custom-post-type/" target="_blank">',
52
  ' &raquo;</a>'),
53
+ sprintf(__("Functionality enhanced using %sWordPress Custom Taxonomy%s", 'wpcf'),
 
54
  '<a href="http://wp-types.com/documentation/user-guides/create-custom-taxonomies/" target="_blank">',
55
  ' &raquo;</a>'),
56
  );
105
  }
106
  $option = get_option('wpcf_footer_credit', false);
107
  if (empty($option['active'])) {
108
+ $message = __('You too can support Types! Would you like to add a small credit link, saying that you\'re using Types for custom fields or custom post types?', 'wpcf')
 
109
  . '<br /><br />'
110
  . '<a onclick="jQuery(this).parent().parent().fadeOut();" class="wpcf-ajax-link button-primary" href="'
111
  . admin_url('admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=footer_credit_activate_message&amp;_wpnonce='
112
+ . wp_create_nonce('footer_credit_activate_message')) . '" class="button-primary">' . __('Yes', 'wpcf') . '</a>'
 
113
  . "&nbsp;<a onclick=\"jQuery(this).parent().parent().fadeOut();\" class=\"wpcf-ajax-link button-secondary\" href=\""
114
  . admin_url('admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=dismiss_message&amp;id='
115
  . 'footer_credit_support_message' . '&amp;_wpnonce=' . wp_create_nonce('dismiss_message')) . "\">"
116
  . __('No, thanks', 'wpcf') . '</a>';
117
  echo '<div class="message updated"><p>' . $message . '</p></div>';
118
  }
119
+ }
embedded/includes/import-export.php CHANGED
@@ -94,7 +94,7 @@ function wpcf_admin_import_data($data = '', $redirect = true, $context = 'types'
94
  foreach ( $groups as $group_id => $group ) {
95
  $post = array(
96
  'post_status' => $group['post_status'],
97
- 'post_type' => 'wp-types-group',
98
  'post_title' => $group['post_title'],
99
  'post_content' => !empty( $group['post_content'] ) ? $group['post_content'] : '',
100
  );
@@ -109,7 +109,7 @@ function wpcf_admin_import_data($data = '', $redirect = true, $context = 'types'
109
  $wpdb->prepare(
110
  "SELECT ID FROM $wpdb->posts WHERE post_title = %s AND post_type = %s",
111
  $group['post_title'],
112
- 'wp-types-group'
113
  )
114
  );
115
  // Update (may be forced by bulk action)
@@ -172,7 +172,7 @@ function wpcf_admin_import_data($data = '', $redirect = true, $context = 'types'
172
  if ( $delete_groups ) {
173
  $groups_to_delete = get_posts(
174
  array(
175
- 'post_type' => 'wp-types-group',
176
  'post_status' => 'any',
177
  'posts_per_page' => -1,
178
  )
@@ -198,7 +198,7 @@ function wpcf_admin_import_data($data = '', $redirect = true, $context = 'types'
198
  if ( !empty( $_POST['groups-to-be-deleted'] ) ) {
199
  foreach ( $_POST['groups-to-be-deleted'] as $group_to_delete ) {
200
  $group_to_delete_post = get_post( $group_to_delete );
201
- if ( !empty( $group_to_delete_post ) && $group_to_delete_post->post_type == 'wp-types-group' ) {
202
  $deleted = wp_delete_post( $group_to_delete, true );
203
  if ( !$deleted ) {
204
  wpcf_admin_message_store( sprintf( __( 'Group "%s" delete failed',
@@ -335,7 +335,7 @@ function wpcf_admin_import_data($data = '', $redirect = true, $context = 'types'
335
  foreach ( $groups as $group_id => $group ) {
336
  $post = array(
337
  'post_status' => $group['post_status'],
338
- 'post_type' => 'wp-types-user-group',
339
  'post_title' => $group['post_title'],
340
  'post_content' => !empty( $group['post_content'] ) ? $group['post_content'] : '',
341
  );
@@ -344,7 +344,7 @@ function wpcf_admin_import_data($data = '', $redirect = true, $context = 'types'
344
  $wpdb->prepare(
345
  "SELECT ID FROM $wpdb->posts WHERE post_title = %s AND post_type = %s",
346
  $group['post_title'],
347
- 'wp-types-user-group'
348
  )
349
  );
350
 
@@ -396,7 +396,7 @@ function wpcf_admin_import_data($data = '', $redirect = true, $context = 'types'
396
  if ( $delete_groups ) {
397
  $groups_to_delete = get_posts(
398
  array(
399
- 'post_type' => 'wp-types-user-group',
400
  'post_status' => 'any',
401
  'posts_per_page' => -1,
402
  )
@@ -423,7 +423,7 @@ function wpcf_admin_import_data($data = '', $redirect = true, $context = 'types'
423
  foreach ( $_POST['user-groups-to-be-deleted'] as
424
  $group_to_delete ) {
425
  $group_to_delete_post = get_post( $group_to_delete );
426
- if ( !empty( $group_to_delete_post ) && $group_to_delete_post->post_type == 'wp-types-user-group' ) {
427
  $deleted = wp_delete_post( $group_to_delete, true );
428
  if ( !$deleted ) {
429
  wpcf_admin_message_store( sprintf( __( 'User group "%s" delete failed',
94
  foreach ( $groups as $group_id => $group ) {
95
  $post = array(
96
  'post_status' => $group['post_status'],
97
+ 'post_type' => TYPES_CUSTOM_FIELD_GROUP_CPT_NAME,
98
  'post_title' => $group['post_title'],
99
  'post_content' => !empty( $group['post_content'] ) ? $group['post_content'] : '',
100
  );
109
  $wpdb->prepare(
110
  "SELECT ID FROM $wpdb->posts WHERE post_title = %s AND post_type = %s",
111
  $group['post_title'],
112
+ TYPES_CUSTOM_FIELD_GROUP_CPT_NAME
113
  )
114
  );
115
  // Update (may be forced by bulk action)
172
  if ( $delete_groups ) {
173
  $groups_to_delete = get_posts(
174
  array(
175
+ 'post_type' => TYPES_CUSTOM_FIELD_GROUP_CPT_NAME,
176
  'post_status' => 'any',
177
  'posts_per_page' => -1,
178
  )
198
  if ( !empty( $_POST['groups-to-be-deleted'] ) ) {
199
  foreach ( $_POST['groups-to-be-deleted'] as $group_to_delete ) {
200
  $group_to_delete_post = get_post( $group_to_delete );
201
+ if ( !empty( $group_to_delete_post ) && $group_to_delete_post->post_type == TYPES_CUSTOM_FIELD_GROUP_CPT_NAME ) {
202
  $deleted = wp_delete_post( $group_to_delete, true );
203
  if ( !$deleted ) {
204
  wpcf_admin_message_store( sprintf( __( 'Group "%s" delete failed',
335
  foreach ( $groups as $group_id => $group ) {
336
  $post = array(
337
  'post_status' => $group['post_status'],
338
+ 'post_type' => TYPES_USER_META_FIELD_GROUP_CPT_NAME,
339
  'post_title' => $group['post_title'],
340
  'post_content' => !empty( $group['post_content'] ) ? $group['post_content'] : '',
341
  );
344
  $wpdb->prepare(
345
  "SELECT ID FROM $wpdb->posts WHERE post_title = %s AND post_type = %s",
346
  $group['post_title'],
347
+ TYPES_USER_META_FIELD_GROUP_CPT_NAME
348
  )
349
  );
350
 
396
  if ( $delete_groups ) {
397
  $groups_to_delete = get_posts(
398
  array(
399
+ 'post_type' => TYPES_USER_META_FIELD_GROUP_CPT_NAME,
400
  'post_status' => 'any',
401
  'posts_per_page' => -1,
402
  )
423
  foreach ( $_POST['user-groups-to-be-deleted'] as
424
  $group_to_delete ) {
425
  $group_to_delete_post = get_post( $group_to_delete );
426
+ if ( !empty( $group_to_delete_post ) && $group_to_delete_post->post_type == TYPES_USER_META_FIELD_GROUP_CPT_NAME ) {
427
  $deleted = wp_delete_post( $group_to_delete, true );
428
  if ( !$deleted ) {
429
  wpcf_admin_message_store( sprintf( __( 'User group "%s" delete failed',
embedded/includes/module-manager.php CHANGED
@@ -19,12 +19,6 @@ define( '_TAX_MODULE_MANAGER_KEY_', 'taxonomies' );
19
  */
20
  add_action( 'wpcf_admin_footer_wpcf-edit', 'wpcf_module_inline_table_fields' );
21
 
22
- add_action( 'wpcf_admin_footer_wpcf-edit-type',
23
- 'wpcf_module_inline_table_post_types' );
24
-
25
- add_action( 'wpcf_admin_footer_wpcf-edit-tax',
26
- 'wpcf_module_inline_table_post_taxonomies' );
27
-
28
  /**
29
  * Fields table.
30
  */
@@ -37,11 +31,11 @@ function wpcf_module_inline_table_fields() {
37
  // add module manager meta box to post type form
38
  $element = array('id' => '12' . _GROUPS_MODULE_MANAGER_KEY_ . '21' . $_group['id'],
39
  'title' => $_group['name'], 'section' => _GROUPS_MODULE_MANAGER_KEY_);
40
- echo '<table class="widefat modman-inline-table"><thead><tr><th>'
41
  . __( 'Module Manager', 'wpcf' )
42
  . '</th></tr></thead><tbody><tr><td>';
43
  do_action( 'wpmodules_inline_element_gui', $element );
44
- echo '</td></tr></tbody></table>';
45
  break;
46
  }
47
  }
@@ -51,6 +45,83 @@ function wpcf_module_inline_table_fields() {
51
  /**
52
  * Post types table.
53
  */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  function wpcf_module_inline_table_post_types() {
55
  // dont add module manager meta box on new post type form
56
  if ( defined( 'MODMAN_PLUGIN_NAME' ) && isset( $_GET['wpcf-post-type'] ) ) {
@@ -59,10 +130,7 @@ function wpcf_module_inline_table_post_types() {
59
  $_post_type = $_custom_types[$_GET['wpcf-post-type']];
60
  // add module manager meta box to post type form
61
  $element = array('id' => '12' . _TYPES_MODULE_MANAGER_KEY_ . '21' . $_post_type['slug'], 'title' => $_post_type['labels']['singular_name'], 'section' => _TYPES_MODULE_MANAGER_KEY_);
62
- echo '<br /><br /><table class="wpcf-types-form-table widefat"><thead><tr><th colspan="2">' . __( 'Module Manager',
63
- 'wpcf' ) . '</th></tr></thead><tbody><tr><td>';
64
  do_action( 'wpmodules_inline_element_gui', $element );
65
- echo '</td></tr></tbody></table>';
66
  }
67
  }
68
  }
@@ -79,10 +147,7 @@ function wpcf_module_inline_table_post_taxonomies() {
79
  // add module manager meta box to post type form
80
  $element = array('id' => '12' . _TAX_MODULE_MANAGER_KEY_ . '21' . $_tax['slug'],
81
  'title' => $_tax['labels']['singular_name'], 'section' => _TAX_MODULE_MANAGER_KEY_);
82
- echo '<br /><br /><table class="wpcf-types-form-table widefat"><thead><tr><th colspan="2">' . __( 'Module Manager',
83
- 'wpcf' ) . '</th></tr></thead><tbody><tr><td>';
84
  do_action( 'wpmodules_inline_element_gui', $element );
85
- echo '</td></tr></tbody></table>';
86
  }
87
  }
88
  }
@@ -178,8 +243,13 @@ if ( defined( 'MODMAN_PLUGIN_NAME' ) ) {
178
  function wpcf_register_modules_items_types( $items ) {
179
  $custom_types = get_option( WPCF_OPTION_NAME_CUSTOM_TYPES, array() );
180
  foreach ( $custom_types as $type ) {
181
- $_details = sprintf( __( '%s custom post type: %s', 'wpcf' ),
182
- ucfirst( $type['public'] ), $type['labels']['name'] );
 
 
 
 
 
183
  $details = !empty( $type['description'] ) ? $type['description'] : $_details;
184
  $items[] = array(
185
  'id' => '12' . _TYPES_MODULE_MANAGER_KEY_ . '21' . $type['slug'],
@@ -209,8 +279,7 @@ if ( defined( 'MODMAN_PLUGIN_NAME' ) ) {
209
  $result2 = wpcf_admin_import_data_from_xmlstring( $xmlstring, 'types',
210
  'modman' );
211
  if ( false === $result2 || is_wp_error( $result2 ) )
212
- return (false === $result2) ? __( 'Error during Post Types import',
213
- 'wpcf' ) : $result2->get_error_message( $result2->get_error_code() );
214
 
215
  return $result2;
216
  }
@@ -247,8 +316,7 @@ if ( defined( 'MODMAN_PLUGIN_NAME' ) ) {
247
  $result2 = wpcf_admin_import_data_from_xmlstring( $xmlstring, 'groups',
248
  'modman' );
249
  if ( false === $result2 || is_wp_error( $result2 ) )
250
- return (false === $result2) ? __( 'Error during Field Groups import',
251
- 'wpcf' ) : $result2->get_error_message( $result2->get_error_code() );
252
 
253
  return $result2;
254
  }
@@ -288,8 +356,7 @@ if ( defined( 'MODMAN_PLUGIN_NAME' ) ) {
288
  $result2 = wpcf_admin_import_data_from_xmlstring( $xmlstring,
289
  'taxonomies', 'modman' );
290
  if ( false === $result2 || is_wp_error( $result2 ) )
291
- return (false === $result2) ? __( 'Error during Taxonomies import',
292
- 'wpcf' ) : $result2->get_error_message( $result2->get_error_code() );
293
 
294
  return $result2;
295
  }
@@ -320,7 +387,13 @@ function wpcf_admin_export_selected_data ( array $items, $_type = 'all', $return
320
  if ( 'user_groups' == $_type || 'all' == $_type ) {
321
  // Get groups
322
  if ( empty( $items ) ) {
323
- $groups = get_posts( 'post_type=wp-types-user-group&post_status=null&numberposts=-1' );
 
 
 
 
 
 
324
  } else {
325
  /*
326
  *
@@ -336,7 +409,7 @@ function wpcf_admin_export_selected_data ( array $items, $_type = 'all', $return
336
  }
337
  $args = array(
338
  'post__in' => $items,
339
- 'post_type' => 'wp-types-user-group',
340
  'post_status' => 'all',
341
  'posts_per_page' => -1
342
  );
@@ -390,7 +463,7 @@ function wpcf_admin_export_selected_data ( array $items, $_type = 'all', $return
390
  $fields = array_merge( $fields,
391
  wpcf_admin_fields_get_fields_by_group( $post->ID,
392
  'slug', false, false, false,
393
- 'wp-types-user-group', 'wpcf-usermeta',
394
  $use_cache ) );
395
  }
396
  } else {
@@ -448,7 +521,7 @@ function wpcf_admin_export_selected_data ( array $items, $_type = 'all', $return
448
  }
449
  $args = array(
450
  'post__in' => $items,
451
- 'post_type' => 'wp-types-group',
452
  'post_status' => 'all',
453
  'posts_per_page' => -1
454
  );
@@ -506,7 +579,7 @@ function wpcf_admin_export_selected_data ( array $items, $_type = 'all', $return
506
  foreach ( $groups as $key => $post ) {
507
  $fields = array_merge( $fields,
508
  wpcf_admin_fields_get_fields_by_group( $post->ID,
509
- 'slug', false, false, false, 'wp-types-group',
510
  'wpcf-fields', $use_cache ) );
511
  }
512
  } else {
@@ -705,16 +778,13 @@ function wpcf_admin_export_selected_data ( array $items, $_type = 'all', $return
705
  $filename = $sitename . 'types.' . date( 'Y-m-d' ) . '.xml';
706
  $code = "<?php\r\n";
707
  $code .= '$timestamp = ' . time() . ';' . "\r\n";
708
- $code .= '$auto_import = ';
709
- $code .= (isset( $_POST['embedded-settings'] ) && $_POST['embedded-settings'] == 'ask') ? 0 : 1;
710
- $code .= ';' . "\r\n";
711
  $code .= "\r\n?".">";
712
 
713
  if ( class_exists( 'ZipArchive' ) ) {
714
  $zipname = $sitename . 'types.' . date( 'Y-m-d' ) . '.zip';
715
  $temp_dir = wpcf_get_temporary_directory();
716
  if ( empty( $temp_dir ) ) {
717
- die(__('There is a problem with temporary directory.'));
718
  }
719
  $file = tempnam( $temp_dir, "zip" );
720
  $zip = new ZipArchive();
@@ -796,8 +866,7 @@ function wpcf_admin_import_data_from_xmlstring( $data = '', $_type = 'types',
796
  if ( !$data ) {
797
  echo '<div class="message error"><p>' . __( 'Error parsing XML', 'wpcf' ) . '</p></div>';
798
  foreach ( libxml_get_errors() as $error ) {
799
- return new WP_Error( 'error_parsing_xml', __( 'Error parsing XML',
800
- 'wpcf' ) . ' ' . $error->message );
801
  }
802
  libxml_clear_errors();
803
  return false;
@@ -837,7 +906,7 @@ function wpcf_admin_import_data_from_xmlstring( $data = '', $_type = 'types',
837
  foreach ( $groups as $group ) {
838
  $post = array(
839
  'post_status' => $group['post_status'],
840
- 'post_type' => 'wp-types-group',
841
  'post_title' => $group['post_title'],
842
  'post_content' => !empty( $group['post_content'] ) ? $group['post_content'] : '',
843
  );
@@ -846,7 +915,7 @@ function wpcf_admin_import_data_from_xmlstring( $data = '', $_type = 'types',
846
  $wpdb->prepare(
847
  "SELECT ID FROM $wpdb->posts WHERE post_title = %s AND post_type = %s",
848
  $group['post_title'],
849
- 'wp-types-group'
850
  )
851
  );
852
  // Update (may be forced by bulk action)
@@ -863,11 +932,9 @@ function wpcf_admin_import_data_from_xmlstring( $data = '', $_type = 'types',
863
 
864
  $group_wp_id = wp_update_post( $post );
865
  if ( !$group_wp_id ) {
866
- $errors[] = new WP_Error( 'group_update_failed', sprintf( __( 'Group "%s" update failed',
867
- 'wpcf' ),
868
  $group['post_title'] ) );
869
- $result['errors'][] = sprintf( __( 'Group %s update failed',
870
- 'wpcf' ), $group['post_title'] );
871
  $result['failed'] += 1;
872
  } else {
873
  if ( !$_checksum ) {
@@ -877,18 +944,15 @@ function wpcf_admin_import_data_from_xmlstring( $data = '', $_type = 'types',
877
  }
878
  }
879
  } else {
880
- $errors[] = new WP_Error( 'group_update_failed', sprintf( __( 'Group "%s" update failed',
881
- 'wpcf' ),
882
  $group['post_title'] ) );
883
  }
884
  } else { // Insert
885
  $group_wp_id = wp_insert_post( $post, true );
886
  if ( is_wp_error( $group_wp_id ) ) {
887
- $errors[] = new WP_Error( 'group_insert_failed', sprintf( __( 'Group "%s" insert failed',
888
- 'wpcf' ),
889
  $group['post_title'] ) );
890
- $result['errors'][] = sprintf( __( 'Group %s insert failed',
891
- 'wpcf' ), $group['post_title'] );
892
  $result['failed'] += 1;
893
  } else {
894
  $result['new'] += 1;
19
  */
20
  add_action( 'wpcf_admin_footer_wpcf-edit', 'wpcf_module_inline_table_fields' );
21
 
 
 
 
 
 
 
22
  /**
23
  * Fields table.
24
  */
31
  // add module manager meta box to post type form
32
  $element = array('id' => '12' . _GROUPS_MODULE_MANAGER_KEY_ . '21' . $_group['id'],
33
  'title' => $_group['name'], 'section' => _GROUPS_MODULE_MANAGER_KEY_);
34
+ echo '<div class="wpcf-form-fields-main modman"><table class="widefat"><thead><tr><th>'
35
  . __( 'Module Manager', 'wpcf' )
36
  . '</th></tr></thead><tbody><tr><td>';
37
  do_action( 'wpmodules_inline_element_gui', $element );
38
+ echo '</td></tr></tbody></table></div>';
39
  break;
40
  }
41
  }
45
  /**
46
  * Post types table.
47
  */
48
+ add_filter('wpcf_meta_box_order_defaults', 'wpcf_module_post_add_meta_box', 10, 2);
49
+
50
+ function wpcf_module_post_add_meta_box($meta_box_order_defaults, $type)
51
+ {
52
+ if ( !defined( 'MODMAN_PLUGIN_NAME' )) {
53
+ return $meta_box_order_defaults;
54
+ }
55
+ switch($type)
56
+ {
57
+ case 'post_type':
58
+ if ( isset( $_GET['wpcf-post-type'] ) ) {
59
+ if (!isset($meta_box_order_defaults['side'])) {
60
+ $meta_box_order_defaults['side'] = array();
61
+ }
62
+ $meta_box_order_defaults['side'][] = 'module_manager_post';
63
+ }
64
+ break;
65
+ case 'taxonomy':
66
+ if ( isset( $_GET['wpcf-tax'] ) ) {
67
+ if (!isset($meta_box_order_defaults['side'])) {
68
+ $meta_box_order_defaults['side'] = array();
69
+ }
70
+ $meta_box_order_defaults['side'][] = 'module_manager_taxonomy';
71
+ }
72
+ break;
73
+ }
74
+ return $meta_box_order_defaults;
75
+ }
76
+
77
+ function wpcf_admin_metabox_module_manager_post($post_type)
78
+ {
79
+ return wpcf_admin_metabox_module_manager($post_type, 'post');
80
+ }
81
+
82
+ function wpcf_admin_metabox_module_manager_taxonomy($taxonomy_type)
83
+ {
84
+ return wpcf_admin_metabox_module_manager($taxonomy_type, 'taxonomy');
85
+ }
86
+
87
+ function wpcf_admin_metabox_module_manager($post_type, $type)
88
+ {
89
+ $form = array();
90
+ /**
91
+ * open form
92
+ */
93
+ $form['table-mm-open'] = wpcf_admin_metabox_begin(__( 'Module Manager', 'wpcf' ), 'module_manager_post', 'wpcf-types-form-mm-table', false);
94
+ /**
95
+ * box content
96
+ */
97
+ ob_start();
98
+ switch($type) {
99
+ case 'post':
100
+ wpcf_module_inline_table_post_types();
101
+ break;
102
+ case 'taxonomy':
103
+ wpcf_module_inline_table_post_taxonomies();
104
+ break;
105
+ default:
106
+ _e('Wrong type!', 'wpcf');
107
+ break;
108
+ }
109
+ $markup = ob_get_contents();
110
+ ob_end_clean();
111
+ $form['table-mm'] = array(
112
+ '#type' => 'markup',
113
+ '#markup' => $markup,
114
+ );
115
+ /**
116
+ * close form
117
+ */
118
+ $form['table-mm-close'] = wpcf_admin_metabox_end();
119
+ /**
120
+ * additional settings
121
+ */
122
+ return $form;
123
+ }
124
+
125
  function wpcf_module_inline_table_post_types() {
126
  // dont add module manager meta box on new post type form
127
  if ( defined( 'MODMAN_PLUGIN_NAME' ) && isset( $_GET['wpcf-post-type'] ) ) {
130
  $_post_type = $_custom_types[$_GET['wpcf-post-type']];
131
  // add module manager meta box to post type form
132
  $element = array('id' => '12' . _TYPES_MODULE_MANAGER_KEY_ . '21' . $_post_type['slug'], 'title' => $_post_type['labels']['singular_name'], 'section' => _TYPES_MODULE_MANAGER_KEY_);
 
 
133
  do_action( 'wpmodules_inline_element_gui', $element );
 
134
  }
135
  }
136
  }
147
  // add module manager meta box to post type form
148
  $element = array('id' => '12' . _TAX_MODULE_MANAGER_KEY_ . '21' . $_tax['slug'],
149
  'title' => $_tax['labels']['singular_name'], 'section' => _TAX_MODULE_MANAGER_KEY_);
 
 
150
  do_action( 'wpmodules_inline_element_gui', $element );
 
151
  }
152
  }
153
  }
243
  function wpcf_register_modules_items_types( $items ) {
244
  $custom_types = get_option( WPCF_OPTION_NAME_CUSTOM_TYPES, array() );
245
  foreach ( $custom_types as $type ) {
246
+ if ( empty($type) ) {
247
+ continue;
248
+ }
249
+ if (isset($type['_builtin']) && $type['_builtin']) {
250
+ continue;
251
+ }
252
+ $_details = sprintf( __( '%s custom post type: %s', 'wpcf' ), ucfirst( $type['public'] ), $type['labels']['name'] );
253
  $details = !empty( $type['description'] ) ? $type['description'] : $_details;
254
  $items[] = array(
255
  'id' => '12' . _TYPES_MODULE_MANAGER_KEY_ . '21' . $type['slug'],
279
  $result2 = wpcf_admin_import_data_from_xmlstring( $xmlstring, 'types',
280
  'modman' );
281
  if ( false === $result2 || is_wp_error( $result2 ) )
282
+ return (false === $result2) ? __( 'Error during Post Types import', 'wpcf' ) : $result2->get_error_message( $result2->get_error_code() );
 
283
 
284
  return $result2;
285
  }
316
  $result2 = wpcf_admin_import_data_from_xmlstring( $xmlstring, 'groups',
317
  'modman' );
318
  if ( false === $result2 || is_wp_error( $result2 ) )
319
+ return (false === $result2) ? __( 'Error during Field Groups import', 'wpcf' ) : $result2->get_error_message( $result2->get_error_code() );
 
320
 
321
  return $result2;
322
  }
356
  $result2 = wpcf_admin_import_data_from_xmlstring( $xmlstring,
357
  'taxonomies', 'modman' );
358
  if ( false === $result2 || is_wp_error( $result2 ) )
359
+ return (false === $result2) ? __( 'Error during Taxonomies import', 'wpcf' ) : $result2->get_error_message( $result2->get_error_code() );
 
360
 
361
  return $result2;
362
  }
387
  if ( 'user_groups' == $_type || 'all' == $_type ) {
388
  // Get groups
389
  if ( empty( $items ) ) {
390
+ $groups = get_posts(
391
+ array(
392
+ 'post_type' => TYPES_USER_META_FIELD_GROUP_CPT_NAME,
393
+ 'post_status' => null,
394
+ 'numberposts' => '-1',
395
+ )
396
+ );
397
  } else {
398
  /*
399
  *
409
  }
410
  $args = array(
411
  'post__in' => $items,
412
+ 'post_type' => TYPES_USER_META_FIELD_GROUP_CPT_NAME,
413
  'post_status' => 'all',
414
  'posts_per_page' => -1
415
  );
463
  $fields = array_merge( $fields,
464
  wpcf_admin_fields_get_fields_by_group( $post->ID,
465
  'slug', false, false, false,
466
+ TYPES_USER_META_FIELD_GROUP_CPT_NAME, 'wpcf-usermeta',
467
  $use_cache ) );
468
  }
469
  } else {
521
  }
522
  $args = array(
523
  'post__in' => $items,
524
+ 'post_type' => TYPES_CUSTOM_FIELD_GROUP_CPT_NAME,
525
  'post_status' => 'all',
526
  'posts_per_page' => -1
527
  );
579
  foreach ( $groups as $key => $post ) {
580
  $fields = array_merge( $fields,
581
  wpcf_admin_fields_get_fields_by_group( $post->ID,
582
+ 'slug', false, false, false, TYPES_CUSTOM_FIELD_GROUP_CPT_NAME,
583
  'wpcf-fields', $use_cache ) );
584
  }
585
  } else {
778
  $filename = $sitename . 'types.' . date( 'Y-m-d' ) . '.xml';
779
  $code = "<?php\r\n";
780
  $code .= '$timestamp = ' . time() . ';' . "\r\n";
 
 
 
781
  $code .= "\r\n?".">";
782
 
783
  if ( class_exists( 'ZipArchive' ) ) {
784
  $zipname = $sitename . 'types.' . date( 'Y-m-d' ) . '.zip';
785
  $temp_dir = wpcf_get_temporary_directory();
786
  if ( empty( $temp_dir ) ) {
787
+ die(__('There is a problem with temporary directory.', 'wpcf'));
788
  }
789
  $file = tempnam( $temp_dir, "zip" );
790
  $zip = new ZipArchive();
866
  if ( !$data ) {
867
  echo '<div class="message error"><p>' . __( 'Error parsing XML', 'wpcf' ) . '</p></div>';
868
  foreach ( libxml_get_errors() as $error ) {
869
+ return new WP_Error( 'error_parsing_xml', __( 'Error parsing XML', 'wpcf' ) . ' ' . $error->message );
 
870
  }
871
  libxml_clear_errors();
872
  return false;
906
  foreach ( $groups as $group ) {
907
  $post = array(
908
  'post_status' => $group['post_status'],
909
+ 'post_type' => TYPES_CUSTOM_FIELD_GROUP_CPT_NAME,
910
  'post_title' => $group['post_title'],
911
  'post_content' => !empty( $group['post_content'] ) ? $group['post_content'] : '',
912
  );
915
  $wpdb->prepare(
916
  "SELECT ID FROM $wpdb->posts WHERE post_title = %s AND post_type = %s",
917
  $group['post_title'],
918
+ TYPES_CUSTOM_FIELD_GROUP_CPT_NAME
919
  )
920
  );
921
  // Update (may be forced by bulk action)
932
 
933
  $group_wp_id = wp_update_post( $post );
934
  if ( !$group_wp_id ) {
935
+ $errors[] = new WP_Error( 'group_update_failed', sprintf( __( 'Group "%s" update failed', 'wpcf' ),
 
936
  $group['post_title'] ) );
937
+ $result['errors'][] = sprintf( __( 'Group %s update failed', 'wpcf' ), $group['post_title'] );
 
938
  $result['failed'] += 1;
939
  } else {
940
  if ( !$_checksum ) {
944
  }
945
  }
946
  } else {
947
+ $errors[] = new WP_Error( 'group_update_failed', sprintf( __( 'Group "%s" update failed', 'wpcf' ),
 
948
  $group['post_title'] ) );
949
  }
950
  } else { // Insert
951
  $group_wp_id = wp_insert_post( $post, true );
952
  if ( is_wp_error( $group_wp_id ) ) {
953
+ $errors[] = new WP_Error( 'group_insert_failed', sprintf( __( 'Group "%s" insert failed', 'wpcf' ),
 
954
  $group['post_title'] ) );
955
+ $result['errors'][] = sprintf( __( 'Group %s insert failed', 'wpcf' ), $group['post_title'] );
 
956
  $result['failed'] += 1;
957
  } else {
958
  $result['new'] += 1;
embedded/includes/post-relationship.php CHANGED
@@ -6,6 +6,12 @@
6
  */
7
  add_action( 'wpcf_admin_post_init', 'wpcf_pr_admin_post_init_action', 10, 4 );
8
  add_action( 'save_post', 'wpcf_pr_admin_save_post_hook', 20, 2 ); // Trigger afer main hook
 
 
 
 
 
 
9
 
10
  /**
11
  * Init function.
@@ -29,13 +35,22 @@ function wpcf_pr_admin_post_init_action( $post_type, $post, $groups, $wpcf_activ
29
  if ( !empty( $has ) || !empty( $belongs ) ) {
30
 
31
  $output = wpcf_pr_admin_post_meta_box_output( $post, array('post_type' => $post_type, 'has' => $has, 'belongs' => $belongs) );
32
- add_meta_box( 'wpcf-post-relationship', __( 'Fields table', 'wpcf' ),
33
- 'wpcf_pr_admin_post_meta_box', $post_type, 'normal', 'default',
34
- array('output' => $output) );
 
 
 
 
 
 
35
  if ( !empty( $output ) ) {
36
- wp_enqueue_script( 'wpcf-post-relationship',
37
- WPCF_EMBEDDED_RELPATH . '/resources/js/post-relationship.js',
38
- array('jquery'), WPCF_VERSION );
 
 
 
39
  wp_enqueue_style( 'wpcf-post-relationship',
40
  WPCF_EMBEDDED_RELPATH . '/resources/css/post-relationship.css',
41
  array(), WPCF_VERSION );
@@ -56,8 +71,7 @@ function wpcf_pr_admin_post_init_action( $post_type, $post, $groups, $wpcf_activ
56
  wpcf_admin_add_js_settings( 'wpcf_pr_del_warning',
57
  '\'' . __( 'Are you sure about deleting this post?', 'wpcf' ) . '\'' );
58
  wpcf_admin_add_js_settings( 'wpcf_pr_pagination_warning',
59
- '\'' . __( 'If you continue without saving your changes, they might get lost.',
60
- 'wpcf' ) . '\'' );
61
  }
62
  }
63
  }
@@ -150,11 +164,11 @@ function wpcf_admin_notice_post_locked_no_parent() {
150
  }
151
 
152
  if ( ( $sendback = wp_get_referer() ) && false === strpos( $sendback, 'post.php' ) && false === strpos( $sendback, 'post-new.php' ) ) {
153
- $sendback_text = __('Go back');
154
  } else {
155
  $sendback = admin_url( 'edit.php' );
156
  if ( 'post' != $post->post_type ) {
157
- $sendback = add_query_arg( 'post_type', $post->post_type, $sendback );
158
  }
159
  $sendback_text = get_post_type_object( $post->post_type )->labels->all_items;
160
  }
@@ -178,7 +192,7 @@ function wpcf_admin_notice_post_locked_no_parent() {
178
  }
179
  ?>
180
  </p>
181
- <p><a class="button button-primary wp-tab-last" href="<?php echo esc_url( $sendback ); ?>"><?php echo $sendback_text; ?></a></p>
182
  </div>
183
  </div>
184
  </div>
@@ -232,17 +246,30 @@ function wpcf_pr_admin_post_meta_box_output( $post, $args )
232
  }
233
  }
234
  foreach ( $relationships['belongs'] as $post_type => $data ) {
235
- $output .= '<div style="margin: 20px 0 10px 0">';
236
- if ( $x = wpcf_form_simple( wpcf_pr_admin_post_meta_box_belongs_form( $post, $post_type, $belongs ) ) ) {
237
- $output .= sprintf(
238
- __( 'This <i>%s</i> belongs to:', 'wpcf' ),
239
- get_post_type_object($current_post_type)->labels->singular_name
 
 
 
 
 
 
 
 
 
 
240
  );
 
 
241
  $output .= $x;
242
  } else {
243
- $output .= get_post_type_object($post_type)->labels->not_found;
244
  }
245
  $output .= '</div>';
 
246
  }
247
  }
248
  return $output;
@@ -286,100 +313,26 @@ function wpcf_pr_admin_post_meta_box_belongs_form_items_helper( $item )
286
  function wpcf_pr_admin_post_meta_box_belongs_form( $post, $type, $belongs )
287
  {
288
  global $wpdb;
289
-
290
  $temp_type = get_post_type_object( $type );
291
  if ( empty( $temp_type ) ) {
292
  return array();
293
  }
294
  $form = array();
295
- $options = array(
296
- __( 'Not selected', 'wpcf' ) => 0,
297
- );
298
-
299
- $args = array(
300
- 'fields' => 'ids',
301
- 'numberposts' => -1,
302
- 'orderby' => 'title',
303
- 'order' => 'ASC',
304
- 'post_status' => apply_filters( 'wpcf_pr_belongs_post_status', array( 'publish', 'private' ) ),
305
- 'post_type' => $type,
306
- 'suppress_filters' => 0,
307
- );
308
- $items = get_posts($args);
309
-
310
- if ( empty( $items ) ) {
311
- return array();
312
- }
313
- /**
314
- * Filter array of parent objects.
315
- *
316
- * Allow to change array of parent objects, modyfiy titles, remove
317
- * or add some data from list of avaiable post parents.
318
- *
319
- * @since 1.6.6
320
- *
321
- * @param array $args {
322
- * Array of objects with all possible parents
323
- *
324
- * @param int $ID Post ID
325
- * @param string $type Post title.
326
- * }
327
- * @param string $type Post Type of parent.
328
- */
329
- $_titles = apply_filters(
330
- 'wpcf_pr_belongs_items',
331
- $wpdb->get_results(
332
- $wpdb->prepare(
333
- sprintf(
334
- 'SELECT ID, post_title FROM %s WHERE ID IN (%s)',
335
- $wpdb->posts,
336
- implode(', ', array_map( 'wpcf_pr_admin_post_meta_box_belongs_form_items_helper', $items))
337
- ),
338
- $items
339
- ),
340
- OBJECT_K
341
- ),
342
- $type
343
- );
344
-
345
- foreach ( $items as $temp_post ) {
346
- if ( !isset( $_titles[$temp_post]->post_title ) ) {
347
- continue;
348
- }
349
- /**
350
- * Filter single parent data
351
- *
352
- * Allow change singla parent data.
353
- *
354
- * @since 1.6.6
355
- *
356
- * @param array $args Single parent title and id
357
- * @param string $type Post Type of parent.
358
- */
359
- $options[] = apply_filters(
360
- 'wpcf_pr_belongs_item',
361
- array(
362
- '#title' => $_titles[$temp_post]->post_title,
363
- '#value' => $temp_post,
364
- ),
365
- $type
366
- );
367
- }
368
-
369
-
370
  $form[$type] = array(
371
- '#type' => 'select',
372
  '#name' => 'wpcf_pr_belongs[' . $post->ID . '][' . $type . ']',
373
- '#default_value' => isset( $belongs['belongs'][$type] ) ? $belongs['belongs'][$type] : 0,
374
- '#options' => $options,
375
- '#prefix' => $temp_type->labels->singular_name . '&nbsp;',
376
- '#suffix' => '&nbsp;<a href="'
377
- . admin_url( 'admin-ajax.php?action=wpcf_ajax'
378
- . '&amp;wpcf_action=pr-update-belongs&amp;_wpnonce='
379
- . wp_create_nonce( 'pr-update-belongs' )
380
- . '&amp;post_id=' . $post->ID )
381
- . '" class="button-secondary wpcf-pr-update-belongs">' . __( 'Update',
382
- 'wpcf' ) . '</a>',
 
383
  );
384
  return $form;
385
  }
@@ -492,7 +445,7 @@ function wpcf_pr_admin_has_pagination( $post, $post_type, $page, $prev, $next,
492
  $url_params['dir'] = 'prev';
493
  $link .= sprintf(
494
  '<a class="button-secondary wpcf-pr-pagination-link wpcf-pr-prev" href="%s" data-pagination-name="%s">',
495
- add_query_arg( $url_params, $url),
496
  esc_attr($wpcf->relationship->items_per_page_option_name)
497
  );
498
  $link .= __( 'Prev', 'wpcf' ) . '</a>&nbsp;&nbsp;';
@@ -510,7 +463,7 @@ function wpcf_pr_admin_has_pagination( $post, $post_type, $page, $prev, $next,
510
  }
511
  $url_params['page'] = $index;
512
 
513
- $link .= sprintf( ' value="%s"', add_query_arg( $url_params, $url));
514
  $link .= '">' . $index . '</option>';
515
  }
516
  $link .= '</select>';
@@ -519,7 +472,7 @@ function wpcf_pr_admin_has_pagination( $post, $post_type, $page, $prev, $next,
519
  $url_params['page'] = $page + 1;
520
  $link .= sprintf(
521
  '<a class="button-secondary wpcf-pr-pagination-link wpcf-pr-next" href="%s" data-pagination-name="%s">',
522
- add_query_arg( $url_params, $url),
523
  esc_attr($wpcf->relationship->items_per_page_option_name)
524
  );
525
  $link .= __( 'Next', 'wpcf' ) . '</a>';
@@ -568,7 +521,7 @@ function wpcf_pr_admin_save_post_hook( $parent_post_id ) {
568
  }
569
 
570
  /**
571
- * Filters AJAX 'cd_verify' action data.
572
  *
573
  * @global type $wpcf
574
  * @param type $posted
@@ -598,3 +551,98 @@ function wpcf_relationship_is_parent( $parent_post_type, $child_post_type ) {
598
  $has = wpcf_pr_admin_get_has( $parent_post_type );
599
  return isset( $has[$child_post_type] );
600
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  */
7
  add_action( 'wpcf_admin_post_init', 'wpcf_pr_admin_post_init_action', 10, 4 );
8
  add_action( 'save_post', 'wpcf_pr_admin_save_post_hook', 20, 2 ); // Trigger afer main hook
9
+ if ( is_admin() ) {
10
+ add_action('wp_ajax_wpcf_relationship_search', 'wpcf_pr_admin_wpcf_relationship_search');
11
+ add_action('wp_ajax_wpcf_relationship_entry', 'wpcf_pr_admin_wpcf_relationship_entry');
12
+ add_action('wp_ajax_wpcf_relationship_delete', 'wpcf_pr_admin_wpcf_relationship_delete');
13
+ add_action('wp_ajax_wpcf_relationship_save', 'wpcf_pr_admin_wpcf_relationship_save');
14
+ }
15
 
16
  /**
17
  * Init function.
35
  if ( !empty( $has ) || !empty( $belongs ) ) {
36
 
37
  $output = wpcf_pr_admin_post_meta_box_output( $post, array('post_type' => $post_type, 'has' => $has, 'belongs' => $belongs) );
38
+ add_meta_box(
39
+ 'wpcf-post-relationship',
40
+ __( 'Post Relationship', 'wpcf' ),
41
+ 'wpcf_pr_admin_post_meta_box',
42
+ $post_type,
43
+ 'normal',
44
+ 'default',
45
+ array('output' => $output)
46
+ );
47
  if ( !empty( $output ) ) {
48
+ wp_enqueue_script(
49
+ 'wpcf-post-relationship',
50
+ WPCF_EMBEDDED_RELPATH . '/resources/js/post-relationship.js',
51
+ array('jquery', 'select2'),
52
+ WPCF_VERSION
53
+ );
54
  wp_enqueue_style( 'wpcf-post-relationship',
55
  WPCF_EMBEDDED_RELPATH . '/resources/css/post-relationship.css',
56
  array(), WPCF_VERSION );
71
  wpcf_admin_add_js_settings( 'wpcf_pr_del_warning',
72
  '\'' . __( 'Are you sure about deleting this post?', 'wpcf' ) . '\'' );
73
  wpcf_admin_add_js_settings( 'wpcf_pr_pagination_warning',
74
+ '\'' . __( 'If you continue without saving your changes, they might get lost.', 'wpcf' ) . '\'' );
 
75
  }
76
  }
77
  }
164
  }
165
 
166
  if ( ( $sendback = wp_get_referer() ) && false === strpos( $sendback, 'post.php' ) && false === strpos( $sendback, 'post-new.php' ) ) {
167
+ $sendback_text = __('Go back', 'wpcf');
168
  } else {
169
  $sendback = admin_url( 'edit.php' );
170
  if ( 'post' != $post->post_type ) {
171
+ $sendback = esc_url(add_query_arg( 'post_type', $post->post_type, $sendback ));
172
  }
173
  $sendback_text = get_post_type_object( $post->post_type )->labels->all_items;
174
  }
192
  }
193
  ?>
194
  </p>
195
+ <p><a class="button button-primary wp-tab-last" href="<?php echo $sendback; ?>"><?php echo $sendback_text; ?></a></p>
196
  </div>
197
  </div>
198
  </div>
246
  }
247
  }
248
  foreach ( $relationships['belongs'] as $post_type => $data ) {
249
+ $parent_post_type_object = get_post_type_object($post_type);
250
+ $output .= '<div class="belongs">';
251
+ $form = wpcf_pr_admin_post_meta_box_belongs_form( $post, $post_type, $belongs );
252
+ if ( isset($form[$post_type]) ) {
253
+ $form[$post_type]['#before'] = sprintf(
254
+ '<p>%s %s</p>', sprintf(
255
+ __( 'This <em>%s</em> belongs to <em>%s</em>', 'wpcf' ),
256
+ get_post_type_object($current_post_type)->labels->singular_name,
257
+ $parent_post_type_object->labels->singular_name
258
+ ),
259
+ sprintf(
260
+ ' <a href="%s" class="button disabled">%s</a>',
261
+ get_edit_post_link($form[$post_type]['#value']),
262
+ $parent_post_type_object->labels->edit_item
263
+ )
264
  );
265
+ }
266
+ if ( $x = wpcf_form_simple( $form ) ) {
267
  $output .= $x;
268
  } else {
269
+ $output .= $parent_post_type_object->labels->not_found;
270
  }
271
  $output .= '</div>';
272
+ unset($parent_post_type_object);
273
  }
274
  }
275
  return $output;
313
  function wpcf_pr_admin_post_meta_box_belongs_form( $post, $type, $belongs )
314
  {
315
  global $wpdb;
 
316
  $temp_type = get_post_type_object( $type );
317
  if ( empty( $temp_type ) ) {
318
  return array();
319
  }
320
  $form = array();
321
+ $id = esc_attr(sprintf('wpcf_pr_belongs_%d_%s', $post->ID, $type));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
322
  $form[$type] = array(
323
+ '#type' => 'textfield',
324
  '#name' => 'wpcf_pr_belongs[' . $post->ID . '][' . $type . ']',
325
+ '#value' => isset( $belongs['belongs'][$type] ) ? $belongs['belongs'][$type] : 0,
326
+ '#id' => $id,
327
+ '#attributes' => array(
328
+ 'class' => 'wpcf-pr-belongs',
329
+ 'data-loading' => esc_attr__('Loading...', 'wpcf'),
330
+ 'data-nounce' => wp_create_nonce($id),
331
+ 'data-placeholder' => esc_attr__('Search for a entries', 'wpcf'),
332
+ 'data-post-id' => $post->ID,
333
+ 'data-post-type' => esc_attr($type),
334
+ 'data-input-too-short' => esc_attr(__('Please enter 1 or more character.', 'wpcf')),
335
+ ),
336
  );
337
  return $form;
338
  }
445
  $url_params['dir'] = 'prev';
446
  $link .= sprintf(
447
  '<a class="button-secondary wpcf-pr-pagination-link wpcf-pr-prev" href="%s" data-pagination-name="%s">',
448
+ esc_url( add_query_arg( $url_params, $url) ),
449
  esc_attr($wpcf->relationship->items_per_page_option_name)
450
  );
451
  $link .= __( 'Prev', 'wpcf' ) . '</a>&nbsp;&nbsp;';
463
  }
464
  $url_params['page'] = $index;
465
 
466
+ $link .= sprintf( ' value="%s"', esc_url(add_query_arg( $url_params, $url)));
467
  $link .= '">' . $index . '</option>';
468
  }
469
  $link .= '</select>';
472
  $url_params['page'] = $page + 1;
473
  $link .= sprintf(
474
  '<a class="button-secondary wpcf-pr-pagination-link wpcf-pr-next" href="%s" data-pagination-name="%s">',
475
+ esc_url(add_query_arg( $url_params, $url)),
476
  esc_attr($wpcf->relationship->items_per_page_option_name)
477
  );
478
  $link .= __( 'Next', 'wpcf' ) . '</a>';
521
  }
522
 
523
  /**
524
+ * Adds filtering regular evaluation (not wpv_conditional)
525
  *
526
  * @global type $wpcf
527
  * @param type $posted
551
  $has = wpcf_pr_admin_get_has( $parent_post_type );
552
  return isset( $has[$child_post_type] );
553
  }
554
+
555
+ function wpcf_pr_admin_wpcf_relationship_check($keys_to_check = array())
556
+ {
557
+ $keys_to_check += array('nounce', 'post_id', 'post_type');
558
+ foreach( $keys_to_check as $key ) {
559
+ if ( !isset($_REQUEST[$key] ) ) {
560
+ die(__('Sorry, something went wrong. The requested can not be completed.', 'wpcf'));
561
+ }
562
+ }
563
+ $id = esc_attr(sprintf('wpcf_pr_belongs_%d_%s', $_REQUEST['post_id'], $_REQUEST['post_type']));
564
+ if ( !wp_verify_nonce($_REQUEST['nounce'], $id) ) {
565
+ die(__('Sorry, something went wrong. The requested can not be completed.', 'wpcf'));
566
+ }
567
+ }
568
+
569
+ function wpcf_pr_admin_wpcf_relationship_search()
570
+ {
571
+ wpcf_pr_admin_wpcf_relationship_check(array('s'));
572
+
573
+ $numberposts = apply_filters( 'wpcf_pr_belongs_post_numberposts', 10 );
574
+
575
+ $args = array(
576
+ 'numberposts' => $numberposts,
577
+ // 'orderby' => apply_filters( 'wpcf_pr_belongs_post_orderby', 'date' ),
578
+ // 'order' => apply_filters( 'wpcf_pr_belongs_post_order', 'ASC' ),
579
+ 'post_status' => apply_filters( 'wpcf_pr_belongs_post_status', array( 'publish', 'private' ) ),
580
+ 'post_type' => $_REQUEST['post_type'],
581
+ 'suppress_filters' => 0,
582
+ 's' => $_REQUEST['s'],
583
+ );
584
+
585
+ $the_query = new WP_Query( $args );
586
+
587
+ $posts = array(
588
+ 'items' => array(),
589
+ 'total_count' => $the_query->found_posts,
590
+ 'incomplete_results' => $the_query->found_posts > $numberposts,
591
+ );
592
+
593
+ if ( $the_query->have_posts() ) {
594
+ while ( $the_query->have_posts() ) {
595
+ $the_query->the_post();
596
+ $posts['items'][] = array(
597
+ 'ID' => get_the_ID(),
598
+ 'parent_id' => isset($_REQUEST['post_id'])? intval($_REQUEST['post_id']):0,
599
+ 'edit_link' => html_entity_decode(get_edit_post_link(get_the_ID())),
600
+ 'post_title' => get_the_title(),
601
+ 'post_type' => get_post_type(),
602
+ );
603
+ }
604
+ }
605
+ /* Restore original Post Data */
606
+ wp_reset_postdata();
607
+
608
+ echo json_encode($posts);
609
+ die;
610
+ }
611
+
612
+ function wpcf_pr_admin_wpcf_relationship_entry()
613
+ {
614
+ wpcf_pr_admin_wpcf_relationship_check(array('p'));
615
+ $wpcf_post = get_post($_REQUEST['p'], ARRAY_A);
616
+ /**
617
+ * remove unnecessary data and add some necessary
618
+ */
619
+ $wpcf_post = array(
620
+ 'ID' => $wpcf_post['ID'],
621
+ 'parent_id' => isset($_REQUEST['post_id'])? intval($_REQUEST['post_id']):0,
622
+ 'edit_link' => html_entity_decode(get_edit_post_link($wpcf_post['ID'])),
623
+ 'post_title' => $wpcf_post['post_title'],
624
+ 'post_type' => $wpcf_post['post_type'],
625
+ );
626
+ echo json_encode($wpcf_post);
627
+ die;
628
+ }
629
+
630
+ function wpcf_pr_admin_wpcf_relationship_delete()
631
+ {
632
+ wpcf_pr_admin_wpcf_relationship_check();
633
+ delete_post_meta( $_REQUEST['post_id'], sprintf('_wpcf_belongs_%s_id', $_REQUEST['post_type']));
634
+ echo json_encode(
635
+ array(
636
+ 'target' => sprintf('#wpcf_pr_belongs_%d_%s-wrapper', $_REQUEST['post_id'], $_REQUEST['post_type']),
637
+ )
638
+ );
639
+ die;
640
+ }
641
+
642
+ function wpcf_pr_admin_wpcf_relationship_save()
643
+ {
644
+ wpcf_pr_admin_wpcf_relationship_check(array('p'));
645
+ update_post_meta( $_REQUEST['post_id'], sprintf('_wpcf_belongs_%s_id', $_REQUEST['post_type']), intval($_REQUEST['p']));
646
+ die;
647
+ }
648
+
embedded/includes/promo-tabs.php CHANGED
@@ -41,31 +41,16 @@ jQuery(function(){
41
  <div class="wpcf-contextual-help-tabs">
42
  <ul>
43
  <li<?php if ($selected == 0) echo " class='active'"; ?> id="tab-link-types-promo1-tab">
44
- <a href="#tab-panel-types-promo1-tab"><?php
45
- _e('Types is part of the entire toolbox', 'wpcf');
46
-
47
- ?></a>
48
  </li>
49
  <li<?php if ($selected == 1) echo " class='active'"; ?> id="tab-link-types-promo2-tab">
50
- <a href="#tab-panel-types-promo2-tab"><?php
51
- _e('Discover what you can build with WordPress',
52
- 'wpcf');
53
-
54
- ?></a>
55
  </li>
56
  <li<?php if ($selected == 2) echo " class='active'"; ?> id="tab-link-types-promo3-tab">
57
- <a href="#tab-panel-types-promo3-tab"><?php
58
- _e('Learn how to make your sites interactive',
59
- 'wpcf');
60
-
61
- ?></a>
62
  </li>
63
  <li<?php if ($selected == 3) echo " class='active'"; ?> id="tab-link-types-promo4-tab">
64
- <a href="#tab-panel-types-promo4-tab"><?php
65
- _e('Learn how to display custom content anyway you choose',
66
- 'wpcf');
67
-
68
- ?></a>
69
  </li>
70
  </ul>
71
  </div>
@@ -73,32 +58,27 @@ jQuery(function(){
73
  <div class="wpcf-contextual-help-tabs-wrap">
74
  <div class="wpcf-help-tab-content<?php if ($selected == 0) echo ' active'; ?>" id="tab-panel-types-promo1-tab">
75
  <strong><?php
76
- _e('Types lets you customize the WordPress admin, but you can do a lot more with the entire package.',
77
- 'wpcf');
78
 
79
  ?></strong><br />
80
  <ul>
81
  <li><?php
82
- _e('Views - display custom content anyway and anywhere you like',
83
- 'wpcf');
84
 
85
  ?></li>
86
  <li><?php
87
- _e('CRED - build forms that create and edit WordPress content',
88
- 'wpcf');
89
 
90
  ?></li>
91
  <li><?php
92
- _e('Access - control who can access different parts of the site',
93
- 'wpcf');
94
 
95
  ?></li>
96
  </ul>
97
 
98
  <br /><br />
99
  <?php
100
- _e('The complete framework lets you build powerful, flexible and interactive WordPress sites.',
101
- 'wpcf');
102
 
103
  ?>
104
  <br /><br />
@@ -116,20 +96,17 @@ jQuery(function(){
116
 
117
  <div class="wpcf-help-tab-content<?php if ($selected == 1) echo ' active'; ?>" id="tab-panel-types-promo2-tab">
118
  <strong><?php
119
- _e('You already know that WordPress can build a lot more than blogs, but just how much more?',
120
- 'wpcf');
121
 
122
  ?></strong>
123
  <br /><br />
124
  <?php
125
- _e('Learn how to build your own magazine designs, classifieds, listing, e-commerce sites and more.',
126
- 'wpcf');
127
 
128
  ?>
129
  <br /><br />
130
  <?php
131
- _e('Discover WP is a free online learning resource, where you can launch fully-functional test sites and experiment with complete sites.',
132
- 'wpcf');
133
 
134
  ?>
135
  <br /><br />
@@ -143,8 +120,7 @@ jQuery(function(){
143
 
144
  <div class="wpcf-help-tab-content<?php if ($selected == 2) echo ' active'; ?>" id="tab-panel-types-promo3-tab">
145
  <strong><?php
146
- _e('Need to build sites, where visitors can create and edit content?',
147
- 'wpcf');
148
 
149
  ?></strong>
150
  <br /><br />
@@ -154,14 +130,12 @@ jQuery(function(){
154
  ?>
155
  <br /><br />
156
  <?php
157
- _e('CRED lets you build forms that work directly on WordPress content. CRED forms include fields for standard fields, custom fields and taxonomy. Everything that you can build with Types, CRED can edit.',
158
- 'wpcf');
159
 
160
  ?>
161
  <br /><br />
162
  <?php
163
- _e("CRED is a lot more than a pretty forms plugin. It's a complete development framework that lets you build powerful web applications with WordPress.",
164
- 'wpcf');
165
 
166
  ?>
167
  <br /><br />
@@ -179,14 +153,12 @@ jQuery(function(){
179
 
180
  <div class="wpcf-help-tab-content<?php if ($selected == 3) echo ' active'; ?>" id="tab-panel-types-promo4-tab">
181
  <strong><?php
182
- _e("Views is a powerful display engine, which lets you build WordPress sites from within the admin dashboard.",
183
- 'wpcf');
184
 
185
  ?></strong>
186
  <br /><br />
187
  <?php
188
- _e("You can create templates for single pages, query content from the database and display it with your design.",
189
- 'wpcf');
190
 
191
  ?>
192
  <br /><br />
@@ -215,4 +187,4 @@ if (function_exists('wprc_is_logged_to_repo') && !wprc_is_logged_to_repo(WPCF_RE
215
  if (!function_exists('wprc_is_logged_to_repo')) {
216
  echo '<p>' . sprintf(__('Already purchased our Toolset package? Install our Installer plugin and login to wp-types to remove this information box. %sInstructions &raquo;%s', 'wpcf'), '<a href="http://wp-types.com/documentation/installation/#2" target="_blank">', '</a>'). '</p>';
217
  }
218
- }
41
  <div class="wpcf-contextual-help-tabs">
42
  <ul>
43
  <li<?php if ($selected == 0) echo " class='active'"; ?> id="tab-link-types-promo1-tab">
44
+ <a href="#tab-panel-types-promo1-tab"><?php _e('Types is part of the entire toolbox', 'wpcf'); ?></a>
 
 
 
45
  </li>
46
  <li<?php if ($selected == 1) echo " class='active'"; ?> id="tab-link-types-promo2-tab">
47
+ <a href="#tab-panel-types-promo2-tab"><?php _e('Discover what you can build with WordPress', 'wpcf'); ?></a>
 
 
 
 
48
  </li>
49
  <li<?php if ($selected == 2) echo " class='active'"; ?> id="tab-link-types-promo3-tab">
50
+ <a href="#tab-panel-types-promo3-tab"><?php _e('Learn how to make your sites interactive', 'wpcf'); ?></a>
 
 
 
 
51
  </li>
52
  <li<?php if ($selected == 3) echo " class='active'"; ?> id="tab-link-types-promo4-tab">
53
+ <a href="#tab-panel-types-promo4-tab"><?php _e('Learn how to display custom content anyway you choose', 'wpcf'); ?></a>
 
 
 
 
54
  </li>
55
  </ul>
56
  </div>
58
  <div class="wpcf-contextual-help-tabs-wrap">
59
  <div class="wpcf-help-tab-content<?php if ($selected == 0) echo ' active'; ?>" id="tab-panel-types-promo1-tab">
60
  <strong><?php
61
+ _e('Types lets you customize the WordPress admin, but you can do a lot more with the entire package.', 'wpcf');
 
62
 
63
  ?></strong><br />
64
  <ul>
65
  <li><?php
66
+ _e('Views - display custom content anyway and anywhere you like', 'wpcf');
 
67
 
68
  ?></li>
69
  <li><?php
70
+ _e('CRED - build forms that create and edit WordPress content', 'wpcf');
 
71
 
72
  ?></li>
73
  <li><?php
74
+ _e('Access - control who can access different parts of the site', 'wpcf');
 
75
 
76
  ?></li>
77
  </ul>
78
 
79
  <br /><br />
80
  <?php
81
+ _e('The complete framework lets you build powerful, flexible and interactive WordPress sites.', 'wpcf');
 
82
 
83
  ?>
84
  <br /><br />
96
 
97
  <div class="wpcf-help-tab-content<?php if ($selected == 1) echo ' active'; ?>" id="tab-panel-types-promo2-tab">
98
  <strong><?php
99
+ _e('You already know that WordPress can build a lot more than blogs, but just how much more?', 'wpcf');
 
100
 
101
  ?></strong>
102
  <br /><br />
103
  <?php
104
+ _e('Learn how to build your own magazine designs, classifieds, listing, e-commerce sites and more.', 'wpcf');
 
105
 
106
  ?>
107
  <br /><br />
108
  <?php
109
+ _e('Discover WP is a free online learning resource, where you can launch fully-functional test sites and experiment with complete sites.', 'wpcf');
 
110
 
111
  ?>
112
  <br /><br />
120
 
121
  <div class="wpcf-help-tab-content<?php if ($selected == 2) echo ' active'; ?>" id="tab-panel-types-promo3-tab">
122
  <strong><?php
123
+ _e('Need to build sites, where visitors can create and edit content?', 'wpcf');
 
124
 
125
  ?></strong>
126
  <br /><br />
130
  ?>
131
  <br /><br />
132
  <?php
133
+ _e('CRED lets you build forms that work directly on WordPress content. CRED forms include fields for standard fields, custom fields and taxonomy. Everything that you can build with Types, CRED can edit.', 'wpcf');
 
134
 
135
  ?>
136
  <br /><br />
137
  <?php
138
+ _e("CRED is a lot more than a pretty forms plugin. It's a complete development framework that lets you build powerful web applications with WordPress.", 'wpcf');
 
139
 
140
  ?>
141
  <br /><br />
153
 
154
  <div class="wpcf-help-tab-content<?php if ($selected == 3) echo ' active'; ?>" id="tab-panel-types-promo4-tab">
155
  <strong><?php
156
+ _e("Views is a powerful display engine, which lets you build WordPress sites from within the admin dashboard.", 'wpcf');
 
157
 
158
  ?></strong>
159
  <br /><br />
160
  <?php
161
+ _e("You can create templates for single pages, query content from the database and display it with your design.", 'wpcf');
 
162
 
163
  ?>
164
  <br /><br />
187
  if (!function_exists('wprc_is_logged_to_repo')) {
188
  echo '<p>' . sprintf(__('Already purchased our Toolset package? Install our Installer plugin and login to wp-types to remove this information box. %sInstructions &raquo;%s', 'wpcf'), '<a href="http://wp-types.com/documentation/installation/#2" target="_blank">', '</a>'). '</p>';
189
  }
190
+ }
embedded/includes/relationship/child-table.php CHANGED
@@ -7,7 +7,6 @@
7
  *
8
  * Append pagination and sort GET vars if present
9
  */
10
-
11
  ?>
12
 
13
  <!--WRAPPER-->
@@ -54,9 +53,7 @@ echo admin_url( 'admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=pr_save_all'
54
 
55
  ?>
56
  <div class="wpcf-message wpcf-error"><p><?php
57
- echo __( 'Repeating fields should not be used in child posts. Types will update all field values.',
58
- 'wpcf' );
59
-
60
  ?></p></div>
61
  <?php
62
  endif;
@@ -83,7 +80,7 @@ echo admin_url( 'admin-ajax.php?action=wpcf_ajax&amp;wpcf_action=pr_save_all'
83
  ?>
84
  <th>
85
  <?php
86
- echo __( 'Action', 'wpcf' );
87
 
88
  ?>
89
  </th>
7
  *
8
  * Append pagination and sort GET vars if present
9
  */
 
10
  ?>
11
 
12
  <!--WRAPPER-->
53
 
54
  ?>
55
  <div class="wpcf-message wpcf-error"><p><?php
56
+ _e( 'Repeating fields should not be used in child posts. Types will update all field values.', 'wpcf' );
 
 
57
  ?></p></div>
58
  <?php
59
  endif;
80
  ?>
81
  <th>
82
  <?php
83
+ _e( 'Action', 'wpcf' );
84
 
85
  ?>
86
  </th>
embedded/includes/usermeta-post.php CHANGED
@@ -23,8 +23,8 @@ function wpcf_admin_userprofile_init($user_id){
23
  $user_role = isset($user_id->roles) ? array_shift($user_id->roles) : 'subscriber';
24
  $groups = wpcf_admin_usermeta_get_groups_fields();
25
  $wpcf_active = false;
26
- $profile_only_preview = '';
27
-
28
  foreach ( $groups as $group ) {
29
  if ( !empty( $group['fields'] ) ) {
30
  $wpcf_active = true;
@@ -201,7 +201,7 @@ function wpcf_usermeta_preview_profile( $user_id, $group, $echo = ''){
201
 
202
  foreach ( $fields as $field ) {
203
  $html = '';
204
- $params['post_type'] = 'wp-types-user-group';
205
  $params['option_name'] = 'wpcf-usermeta';
206
  $params['separator'] = ', ';
207
  if ( wpcf_admin_is_repetitive( $field ) ) {
@@ -700,12 +700,14 @@ function wpcf_admin_render_fields( $group, $user_id, $echo = '') {
700
  * @param type $post_ID
701
  * @return type
702
  */
703
- function wpcf_admin_usermeta_get_groups_fields() {
704
- $post = array();
 
 
705
  // Filter groups
706
  $groups = array();
707
 
708
- $groups_all = wpcf_admin_fields_get_groups('wp-types-user-group');
709
 
710
  foreach ( $groups_all as $temp_key => $temp_group ) {
711
  if ( empty( $temp_group['is_active'] ) ) {
@@ -717,7 +719,7 @@ function wpcf_admin_usermeta_get_groups_fields() {
717
  unset( $groups_all[$temp_key] );
718
  } else {
719
  $groups_all[$temp_key]['fields'] = wpcf_admin_fields_get_fields_by_group( $temp_group['id'],
720
- 'slug', true, false, true, 'wp-types-user-group', 'wpcf-usermeta');
721
  }
722
  }
723
  $groups = $groups_all;
23
  $user_role = isset($user_id->roles) ? array_shift($user_id->roles) : 'subscriber';
24
  $groups = wpcf_admin_usermeta_get_groups_fields();
25
  $wpcf_active = false;
26
+ $profile_only_preview = '';
27
+
28
  foreach ( $groups as $group ) {
29
  if ( !empty( $group['fields'] ) ) {
30
  $wpcf_active = true;
201
 
202
  foreach ( $fields as $field ) {
203
  $html = '';
204
+ $params['post_type'] = TYPES_USER_META_FIELD_GROUP_CPT_NAME;
205
  $params['option_name'] = 'wpcf-usermeta';
206
  $params['separator'] = ', ';
207
  if ( wpcf_admin_is_repetitive( $field ) ) {
700
  * @param type $post_ID
701
  * @return type
702
  */
703
+ function wpcf_admin_usermeta_get_groups_fields()
704
+ {
705
+ wpcf_enqueue_scripts();
706
+ $post = array();
707
  // Filter groups
708
  $groups = array();
709
 
710
+ $groups_all = wpcf_admin_fields_get_groups(TYPES_USER_META_FIELD_GROUP_CPT_NAME);
711
 
712
  foreach ( $groups_all as $temp_key => $temp_group ) {
713
  if ( empty( $temp_group['is_active'] ) ) {
719
  unset( $groups_all[$temp_key] );
720
  } else {
721
  $groups_all[$temp_key]['fields'] = wpcf_admin_fields_get_fields_by_group( $temp_group['id'],
722
+ 'slug', true, false, true, TYPES_USER_META_FIELD_GROUP_CPT_NAME, 'wpcf-usermeta');
723
  }
724
  }
725
  $groups = $groups_all;
embedded/includes/usermeta.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- // 'wp-types-user-group'
3
  // 'wpcf-usermeta';
4
  define("WORKINGTYPE", "usermeta");
5
 
1
  <?php
2
+ // TYPES_USER_META_FIELD_GROUP_CPT_NAME
3
  // 'wpcf-usermeta';
4
  define("WORKINGTYPE", "usermeta");
5
 
embedded/includes/wpml.php CHANGED
@@ -963,13 +963,13 @@ function wpcf_wpml_taxonomy_renamed( $new_slug, $old_slug ) {
963
  * @param type $child
964
  * @param type $parent
965
  */
966
- function wpcf_wpml_relationship_save_child( $child, $parent ) {
967
- global $sitepress;
968
- $lang_details = $sitepress->get_element_language_details( $parent->ID,
969
- 'post_' . $parent->post_type );
970
- if ( $lang_details ) {
971
- $sitepress->set_element_language_details( $child->ID,
972
- 'post_' . $child->post_type, null, $lang_details->language_code );
973
  }
974
  }
975
 
963
  * @param type $child
964
  * @param type $parent
965
  */
966
+ function wpcf_wpml_relationship_save_child( $child, $parent )
967
+ {
968
+ $lang_details = apply_filters('wpml_post_language_details', null, $parent->ID);
969
+ if ( ! $lang_details ) {
970
+ global $sitepress;
971
+ //Here we still need to create an action, so we have to stick with this dependency for the time being
972
+ $sitepress->set_element_language_details( $child->ID, 'post_' . $child->post_type, null, $lang_details->language_code );
973
  }
974
  }
975
 
embedded/locale/types-pl_PL.mo CHANGED
Binary file
embedded/locale/types-pl_PL.po ADDED
@@ -0,0 +1,6598 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # This file was generated by WPML
2
+ # WPML is a WordPress plugin that can turn any WordPress site into a full featured multilingual content management system.
3
+ # https://wpml.org
4
+ msgid ""
5
+ msgstr ""
6
+ "Project-Id-Version: Types\n"
7
+ "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/types\n"
8
+ "POT-Creation-Date: 2015-08-10 09:53:11+00:00\n"
9
+ "PO-Revision-Date: \n"
10
+ "Last-Translator: Marcin Pietrzak <marcin@iworks.pl>\n"
11
+ "Language-Team: \n"
12
+ "Language: en\n"
13
+ "MIME-Version: 1.0\n"
14
+ "Content-Type: text/plain; charset=UTF-8\n"
15
+ "Content-Transfer-Encoding: 8bit\n"
16
+ "X-Generator: Poedit 1.5.4\n"
17
+ "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
18
+ "|| n%100>=20) ? 1 : 2);\n"
19
+
20
+ #. #-#-#-#-# wp_types.pot (Types 1.8) #-#-#-#-#
21
+ #. Plugin Name of the plugin/theme
22
+ #: admin.php:63 admin.php:64
23
+ #: embedded/common/visual-editor/editor-addon.class.php:104
24
+ #: embedded/common/visual-editor/editor-addon.class.php:350
25
+ #: embedded/includes/fields/file.php:122 help.php:336
26
+ msgid "Types"
27
+ msgstr "Types"
28
+
29
+ #: admin.php:75 admin.php:469 admin.php:478
30
+ #: embedded/includes/module-manager.php:220 help.php:345
31
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:238
32
+ msgid "Post Types"
33
+ msgstr "Typy postów"
34
+
35
+ #: admin.php:83 admin.php:497 admin.php:505 help.php:349
36
+ #: plus/types-access/includes/admin-edit-access.php:138
37
+ msgid "Custom Taxonomies"
38
+ msgstr "Własne taksonomie"
39
+
40
+ #: admin.php:91 admin.php:664 help.php:357 includes/fields.php:1350
41
+ msgid "Custom Fields"
42
+ msgstr "Pola wpisów"
43
+
44
+ #: admin.php:99 embedded/usermeta-init.php:154
45
+ msgid "User Fields"
46
+ msgstr "Pola użytkownika"
47
+
48
+ #: admin.php:107 admin.php:728
49
+ msgid "Settings"
50
+ msgstr "Ustawienia"
51
+
52
+ #: admin.php:124 admin.php:758 embedded/usermeta-init.php:164
53
+ #: includes/usermeta-list.php:49 includes/usermeta-list.php:69
54
+ msgid "User Fields Control"
55
+ msgstr "Zarządzanie polami użytkownika"
56
+
57
+ #: admin.php:138 admin.php:675 admin.php:753 includes/fields-list.php:51
58
+ msgid "Custom Fields Control"
59
+ msgstr "Zarządzanie polami wpisów"
60
+
61
+ #: admin.php:151 admin.php:632 admin.php:763 help.php:373
62
+ msgid "Import/Export"
63
+ msgstr "Importuj/Eksportuj"
64
+
65
+ #: admin.php:164 admin.php:778
66
+ msgid "Debug Information"
67
+ msgstr "Informacje debugowania"
68
+
69
+ #: admin.php:174
70
+ msgid "Edit Group"
71
+ msgstr "Edytuj grupę"
72
+
73
+ #: admin.php:174 admin.php:431
74
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:560
75
+ msgid "Add New Custom Fields Group"
76
+ msgstr "Dodaj nową grupę własnych pól"
77
+
78
+ #: admin.php:190 admin.php:425
79
+ msgid "View Custom Fields Group"
80
+ msgstr "Zarządzanie własnymi polami"
81
+
82
+ #: admin.php:202 admin.php:558
83
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:612
84
+ msgid "Add New Custom Post Type"
85
+ msgstr "Dodaj nowy własny typ wpisu"
86
+
87
+ #: admin.php:204 admin.php:545
88
+ msgid "Edit Custom Post Type"
89
+ msgstr "Edytuj własny typ wpisu"
90
+
91
+ #: admin.php:206 admin.php:547
92
+ msgid "Edit Post Type"
93
+ msgstr "Edytuj własny typ wpisu"
94
+
95
+ #: admin.php:224 admin.php:542
96
+ msgid "View Custom Post Type"
97
+ msgstr "Zobacz własny typ wpisu"
98
+
99
+ #: admin.php:235 admin.php:600
100
+ msgid "Edit Custom Taxonomy"
101
+ msgstr "Edytuj własną taksonomię"
102
+
103
+ #: admin.php:235 admin.php:598
104
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:550
105
+ msgid "Add New Custom Taxonomy"
106
+ msgstr "Dodaj nową taksonomię"
107
+
108
+ #: admin.php:251 admin.php:596
109
+ msgid "View Custom Taxonomy"
110
+ msgstr "Zobacz własną taksonomię"
111
+
112
+ #: admin.php:265 embedded/usermeta-init.php:97
113
+ msgid "Edit User Fields Group"
114
+ msgstr "Edytuj grupę pól użytkownika"
115
+
116
+ #: admin.php:265 embedded/usermeta-init.php:100
117
+ #: includes/classes/class.wpcf.user.fields.list.table.php:542
118
+ msgid "Add New User Fields Group"
119
+ msgstr "Dodaj nową grupę pól użytkownika"
120
+
121
+ #: admin.php:280 embedded/usermeta-init.php:93
122
+ msgid "View User Fields Group"
123
+ msgstr "Zobacz grupę pól użytkownika"
124
+
125
+ #: admin.php:296 admin.php:297 admin.php:702
126
+ msgid "Migration"
127
+ msgstr "Migracja"
128
+
129
+ #: admin.php:324 embedded/usermeta-init.php:182 help.php:365
130
+ msgid "User Fields Groups"
131
+ msgstr "Własne pola użytkownika"
132
+
133
+ #: admin.php:334 admin.php:342
134
+ msgid "Custom Fields Groups"
135
+ msgstr "Grupy własnych pól"
136
+
137
+ #: admin.php:428
138
+ msgid "Edit Custom Fields Group"
139
+ msgstr "Edytuj grupę własnych użytkownika"
140
+
141
+ #: admin.php:480 admin.php:555 admin.php:829 embedded/usermeta-init.php:184
142
+ #: help.php:35 help.php:119 help.php:151 help.php:280
143
+ #: includes/custom-types-form.php:1046 includes/custom-types-form.php:1048
144
+ msgid "Add New"
145
+ msgstr "Dodaj nowe"
146
+
147
+ #: admin.php:663
148
+ msgid "Custom Field"
149
+ msgstr "Pole spersonalizowane"
150
+
151
+ #: admin.php:742
152
+ msgid "Types tools"
153
+ msgstr "Narzędzia Types"
154
+
155
+ #: admin.php:754
156
+ msgid "Allow to control custom fields."
157
+ msgstr "Umożliwia zarządzania własnymi polami wpisów."
158
+
159
+ #: admin.php:759
160
+ msgid "Allow to control user meta fields."
161
+ msgstr "Umożliwia zarządzania własnymi polami użytkownika."
162
+
163
+ #: admin.php:764
164
+ msgid "For import or export data from Types."
165
+ msgstr "Importuj lub exportuj dane."
166
+
167
+ #: admin.php:768 plus/types-access.php:44 plus/types-access.php:83
168
+ msgid "Access"
169
+ msgstr "Access"
170
+
171
+ #: admin.php:769 plus/types-access.php:88
172
+ msgid ""
173
+ "Access lets you control what content types different users can read, edit "
174
+ "and publish on your site and create custom roles."
175
+ msgstr ""
176
+ "Wtyczka Access umożliwia kontrolowanie, jakie typy zawartości mogą być "
177
+ "czytane, edytowane i publikowane na twojej stronie internetowej przez "
178
+ "użytkowników różnych typów oraz tworzenie ról niestandardowych."
179
+
180
+ #: admin.php:773 plus/installer/includes/installer.class.php:189
181
+ #: plus/installer/includes/installer.class.php:634 wpcf.php:154
182
+ msgid "Installer"
183
+ msgstr "Instalator"
184
+
185
+ #: admin.php:774
186
+ msgid "This page lets you install plugins and update existing plugins."
187
+ msgstr "Strona pozwala na instalację oraz aktualizacje wtyczek."
188
+
189
+ #: admin.php:779
190
+ msgid "For retrieving debug information if asked by a support person."
191
+ msgstr "Pobierz informacje debugowe na prośbę personelu pomocy technicznej."
192
+
193
+ #: admin.php:889
194
+ msgid "No results"
195
+ msgstr "Brak wyników"
196
+
197
+ #: embedded/admin.php:284
198
+ msgid "This field is required."
199
+ msgstr "To pole jest wymagane."
200
+
201
+ #: embedded/admin.php:285
202
+ msgid "Please enter a valid email address."
203
+ msgstr "Wpisz poprawny adres e-mail."
204
+
205
+ #: embedded/admin.php:286
206
+ msgid "Please enter a valid URL address."
207
+ msgstr "Wpisz poprawny adres URL."
208
+
209
+ #: embedded/admin.php:287
210
+ msgid "Please enter a valid date."
211
+ msgstr "Wpisz poprawną datę."
212
+
213
+ #: embedded/admin.php:288 embedded/admin.php:289
214
+ msgid "Please enter numeric data."
215
+ msgstr "Wpisz datę numerycznie."
216
+
217
+ #: embedded/admin.php:290
218
+ msgid "Letters, numbers, spaces or underscores only please."
219
+ msgstr "Tylko litery, cyfry, spacje i znaki podkreślenia."
220
+
221
+ #: embedded/admin.php:291
222
+ msgid "Letters, numbers, spaces, underscores and dashes only please."
223
+ msgstr "Tylko litery, cyfry, spacje, znaki podkreślenia i myślniki."
224
+
225
+ #: embedded/admin.php:292
226
+ msgid "Letters, numbers, slashes, underscores and dashes only please."
227
+ msgstr "Tylko litery, cyfry, ukośniki, znaki podkreślenia i myślniki."
228
+
229
+ #: embedded/admin.php:293
230
+ msgid "Please enter a date after 1 January 1970."
231
+ msgstr "Wpisz datę po 1 stycznia 1970."
232
+
233
+ #: embedded/admin.php:294
234
+ msgid "Maximum of %s characters exceeded."
235
+ msgstr "Przekroczono dozwoloną liczbę %s znaków."
236
+
237
+ #: embedded/admin.php:295
238
+ msgid "Minimum of %s characters has not been reached."
239
+ msgstr "Nie osiągnięto minimum %s znaków."
240
+
241
+ #: embedded/admin.php:300
242
+ msgid "Letters, numbers, dashes, underscores, commas and periods only please."
243
+ msgstr "Wyłącznie litery, cyfry, myślniki, podkreślenia, przecinki i kropki"
244
+
245
+ #: embedded/admin.php:425
246
+ #: includes/classes/class.wpcf.marketing.messages.php:326
247
+ #: plus/installer/includes/installer.class.php:470
248
+ msgid "Dismiss"
249
+ msgstr "Porzuć"
250
+
251
+ #: embedded/classes/class.wpcf-post-types.php:302
252
+ msgid "Archive for %s"
253
+ msgstr "Archiwum dla %s"
254
+
255
+ #: embedded/classes/editor.php:133 includes/custom-taxonomies-form.php:597
256
+ msgid "Update %s"
257
+ msgstr "Aktualizuj %s"
258
+
259
+ #: embedded/classes/editor.php:135
260
+ msgid "Update shortcode"
261
+ msgstr "Aktualizuj shortcode"
262
+
263
+ #: embedded/classes/editor.php:169 embedded/classes/editor.php:170
264
+ #: embedded/includes/examples/google_map.php:173
265
+ #: embedded/includes/examples/google_map.php:174
266
+ msgid "Display"
267
+ msgstr "Ekran"
268
+
269
+ #: embedded/classes/editor.php:171
270
+ msgid "There are no additional display options for the %s field."
271
+ msgstr "Brak dodatkowych opcji wyświetlania dla pola %s."
272
+
273
+ #: embedded/classes/editor.php:312
274
+ msgid "Shortcode generation failed"
275
+ msgstr "Generowanie kodu shortcode nie powiodło się"
276
+
277
+ #: embedded/classes/forms.php:883
278
+ msgid "[no title]"
279
+ msgstr "[brak tytułu]"
280
+
281
+ #: embedded/classes/forms.php:965 embedded/classes/forms.php:968
282
+ msgid "Set featured image"
283
+ msgstr "Ustaw ikonę wpisu"
284
+
285
+ #: embedded/classes/forms.php:966 embedded/classes/forms.php:968
286
+ msgid "Remove featured image"
287
+ msgstr "Usuń ikonę wpisu"
288
+
289
+ #: embedded/classes/post-types/messages.php:9
290
+ msgid ""
291
+ "It is not recommended to have same plural and singular name for a post type. "
292
+ "Please use a different name for the singular and plural names."
293
+ msgstr ""
294
+ "Nie zalecamy nadawania takiej samej nazwy w liczbie pojedynczej i mnogiej "
295
+ "typowi wpisu. Użyj innej nazwy dla nazw w liczbie pojedynczej i mnogiej."
296
+
297
+ #: embedded/classes/post-types/messages.php:10
298
+ msgid "Ignore this warning."
299
+ msgstr "Zignoruj to ostrzeżenie."
300
+
301
+ #: embedded/classes/relationship/form-child.php:204
302
+ msgid "All"
303
+ msgstr "Wszystkie"
304
+
305
+ #: embedded/classes/relationship/form-child.php:214
306
+ msgid "Show"
307
+ msgstr "Wyświetl"
308
+
309
+ #: embedded/classes/relationship/form-child.php:558
310
+ #: embedded/classes/relationship/form-child.php:569
311
+ msgid "No %s"
312
+ msgstr "Brak %s"
313
+
314
+ #: embedded/classes/relationship/form-child.php:725
315
+ #: embedded/classes/relationship/form-child.php:739
316
+ msgid "No parents available"
317
+ msgstr "Brak dostępnych rodziców"
318
+
319
+ #: embedded/classes/relationship/form-child.php:794
320
+ msgid "Post Title"
321
+ msgstr "Tytuł wpisu"
322
+
323
+ #: embedded/classes/relationship/form-child.php:805
324
+ msgid "Post Body"
325
+ msgstr "Treść wpisu"
326
+
327
+ #: embedded/classes/relationship/form-child.php:866
328
+ msgid "Feature Image"
329
+ msgstr "Ikona wpisu"
330
+
331
+ #: embedded/classes/relationship/form-child.php:869
332
+ #: includes/post-relationship.php:189
333
+ msgid "Post excerpt"
334
+ msgstr "Zajawka"
335
+
336
+ #: embedded/classes/relationship.php:373
337
+ msgid "Child post \"%s\" field \"%s\" not updated:"
338
+ msgstr "Pole \"%s\" wpisu potomka \"%s\" nie zaktualizowane:"
339
+
340
+ #: embedded/classes/relationship.php:425
341
+ msgid "New Child"
342
+ msgstr "Dodaj potomka"
343
+
344
+ #: embedded/classes/repeater.php:70 embedded/classes/usermeta_repeater.php:42
345
+ msgid "Sorry, can not delete all fields."
346
+ msgstr "Niestety, nie można usunąć wszystkich pól."
347
+
348
+ #: embedded/classes/validate.php:199 embedded/common/classes/validate.php:202
349
+ msgid "Required"
350
+ msgstr "Wymagane"
351
+
352
+ #: embedded/classes/validate.php:266 embedded/common/classes/validate.php:264
353
+ #: embedded/includes/fields/email.php:11 embedded/includes/fields/email.php:12
354
+ msgid "Email"
355
+ msgstr "Email"
356
+
357
+ #: embedded/classes/validate.php:317 embedded/common/classes/validate.php:312
358
+ #: embedded/includes/fields/date.php:97 embedded/includes/fields/date.php:98
359
+ msgid "Date"
360
+ msgstr "Data"
361
+
362
+ #: embedded/classes/validate.php:352 embedded/common/classes/validate.php:347
363
+ msgid "Digits"
364
+ msgstr "Cyfry"
365
+
366
+ #: embedded/classes/validate.php:381 embedded/common/classes/validate.php:375
367
+ #: embedded/includes/fields/numeric.php:22
368
+ #: embedded/includes/fields/numeric.php:23
369
+ msgid "Numeric"
370
+ msgstr "Numeryczne"
371
+
372
+ #: embedded/classes/validation-cakephp.php:399
373
+ #: embedded/common/classes/validation-cakephp.php:376
374
+ msgid ""
375
+ "You must define the $operator parameter for Wpcf_Cake_Validation::"
376
+ "comparison()"
377
+ msgstr ""
378
+ "Musisz zdefiniować parametr $operator dla Wpcf_Cake_Validation::comparison()"
379
+
380
+ #: embedded/classes/validation-cakephp.php:423
381
+ #: embedded/common/classes/validation-cakephp.php:400
382
+ msgid "You must define a regular expression for Wpcf_Cake_Validation::custom()"
383
+ msgstr ""
384
+ "Musisz zdefiniować wyrażenie regularne dla Wpcf_Cake_Validation::custom()"
385
+
386
+ #: embedded/classes/validation-cakephp.php:1005
387
+ #: embedded/common/classes/validation-cakephp.php:1002
388
+ #: embedded/common/toolset-forms/lib/CakePHP-Validation.php:1010
389
+ msgid "Could not find %s class, unable to complete validation."
390
+ msgstr "Nie znaleziono klasy %s, nie można ukończyć walidacji."
391
+
392
+ #: embedded/classes/validation-cakephp.php:1009
393
+ #: embedded/common/classes/validation-cakephp.php:1006
394
+ #: embedded/common/toolset-forms/lib/CakePHP-Validation.php:1014
395
+ msgid "Method %s does not exist on %s unable to complete validation."
396
+ msgstr "Metoda %s nie istnieje na %s, nie można ukończyć walidacji."
397
+
398
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:107
399
+ msgid "Design with Toolset"
400
+ msgstr "Tworzone za pomocą Toolseta"
401
+
402
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:125
403
+ msgid "Remove this menu"
404
+ msgstr "Przenieś menu"
405
+
406
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:637
407
+ msgid "Create a new"
408
+ msgstr "Utwórz"
409
+
410
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:648
411
+ #: embedded/includes/relationship/child-table-row.php:39 help.php:37
412
+ #: help.php:121 help.php:153 help.php:282
413
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:144
414
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:148
415
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:136
416
+ #: includes/classes/class.wpcf.user.fields.list.table.php:134
417
+ #: includes/conditional-display.php:166 includes/fields-control.php:230
418
+ #: includes/fields-form.php:1515 includes/fields-form.php:1585
419
+ #: includes/post-relationship.php:336 includes/post-relationship.php:385
420
+ #: includes/usermeta-control.php:219
421
+ msgid "Edit"
422
+ msgstr "Edycja"
423
+
424
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:651
425
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:686
426
+ msgid "Layout"
427
+ msgstr "Szablon"
428
+
429
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:652
430
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:687
431
+ msgid "Archive"
432
+ msgstr "Archiwa"
433
+
434
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:652
435
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:687
436
+ msgid "Template"
437
+ msgstr "Szablon"
438
+
439
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:691
440
+ msgid "for"
441
+ msgstr "dla"
442
+
443
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:697
444
+ msgid "Error 404 page"
445
+ msgstr "Strona błędu 404"
446
+
447
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:704
448
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:718
449
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:720
450
+ msgid "Archives"
451
+ msgstr "Archiwa"
452
+
453
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:722
454
+ msgid "Unsupported post type archives"
455
+ msgstr "Niewspierane archiwum typu wpisu"
456
+
457
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:726
458
+ msgid "Unsupported page"
459
+ msgstr "Niewybrana strona"
460
+
461
+ #: embedded/common/classes/class.toolset.promo.php:123
462
+ msgid ""
463
+ "Want to edit Views, CRED forms and Layouts? Get the full <em>Toolset</em> "
464
+ "package!"
465
+ msgstr ""
466
+ "Czy chcesz edytować Widoki, formularze CRED oraz Układy? Zdobądź pełną "
467
+ "wersję pakietu <em>Toolset</em>!"
468
+
469
+ #: embedded/common/classes/class.toolset.promo.php:126
470
+ msgid ""
471
+ "The full <em>Toolset</em> package allows you to develop and customize themes "
472
+ "without touching PHP. You will be able to:"
473
+ msgstr ""
474
+ "Pełna wersja pakietu <em>Toolset</e< pozwala na zmiany i personalazcję "
475
+ "wyświetlanie bez potrzeby użycia PHP. Możliwości:"
476
+
477
+ #: embedded/common/classes/class.toolset.promo.php:130
478
+ msgid "Create templates"
479
+ msgstr "Stwórz szablony"
480
+
481
+ #: embedded/common/classes/class.toolset.promo.php:131
482
+ msgid "Design page layouts using drag-and-drop"
483
+ msgstr "Zaprojektuj szablon motodą podnieś-upuść"
484
+
485
+ #: embedded/common/classes/class.toolset.promo.php:132
486
+ #: embedded/includes/fields-post.php:1841
487
+ msgid "Build parametric searches"
488
+ msgstr "Utwórz zaawansowaną wyszukiwarkę"
489
+
490
+ #: embedded/common/classes/class.toolset.promo.php:135
491
+ msgid "Display lists of content"
492
+ msgstr "Wyświetla listę zawartości"
493
+
494
+ #: embedded/common/classes/class.toolset.promo.php:136
495
+ msgid "Create front-end content editing forms"
496
+ msgstr "Twórz formularze edycji w części publicznej"
497
+
498
+ #: embedded/common/classes/class.toolset.promo.php:137
499
+ msgid "and more…"
500
+ msgstr "oraz więcej…"
501
+
502
+ #: embedded/common/classes/class.toolset.promo.php:141
503
+ msgid ""
504
+ "Once you buy the full Toolset, you will be able to edit Views, CRED forms "
505
+ "and Layouts in your site, as well as build new ones."
506
+ msgstr ""
507
+ "Jak tylko kupisz pakiet Toolset będzie można edytować oraz dodawać Widoki, "
508
+ "Formularze CRED oraz Układy."
509
+
510
+ #: embedded/common/classes/class.toolset.promo.php:144
511
+ msgid "<em>Toolset</em> Package Options"
512
+ msgstr "Opcję pakietu <em>Toolset</em>"
513
+
514
+ #: embedded/common/classes/class.toolset.promo.php:146
515
+ msgid "Learn more about <em>Toolset</em>"
516
+ msgstr "Dowiedz się więcej na temat pakietu <em>Toolset</em>"
517
+
518
+ #: embedded/common/debug/debug-information.php:14
519
+ #: embedded/common/debug/debug-information.php:17
520
+ msgid "Debug information"
521
+ msgstr "Informacje o debugowaniu"
522
+
523
+ #: embedded/common/debug/debug-information.php:19
524
+ msgid ""
525
+ "This information allows our support team to see the versions of WordPress, "
526
+ "plugins and theme on your site. Provide this information if requested in our "
527
+ "support forum. No passwords or other confidential information is included."
528
+ msgstr ""
529
+ "Te informacje umożliwiają zespołowi pomocy technicznej zobaczyć wersję "
530
+ "WordPressa, wtyczek i motywu na twojej stronie. Podaj te informacje, jeżeli "
531
+ "będą wymagane, na naszym forum pomocy technicznej. Dane te nie zawierają "
532
+ "haseł ani żadnych informacji poufnych."
533
+
534
+ #: embedded/common/debug/functions_debug_information.php:63
535
+ msgid "n/a"
536
+ msgstr "n.d."
537
+
538
+ #: embedded/common/functions.php:416
539
+ msgid "Error while parsing the evaluate expression"
540
+ msgstr "Błąd podczas analizy wyrażenia ewaluacji"
541
+
542
+ #: embedded/common/functions.php:420
543
+ msgid "Conditional expression includes illegal characters"
544
+ msgstr "Wyrażenie warunkowe zawiera niedopuszczalne znaki"
545
+
546
+ #: embedded/common/functions.php:424
547
+ msgid "Correct conditional expression has not been found"
548
+ msgstr "Nie znaleziono poprawnego wyrażenia warunkowego"
549
+
550
+ #: embedded/common/functions.php:602
551
+ msgid "Don't show this message again"
552
+ msgstr "Nie wyświetlaj więcej tego komunikatu"
553
+
554
+ #: embedded/common/toolset-forms/classes/class.audio.php:29
555
+ msgid "You can add only audio."
556
+ msgstr "Możesz dodać jedynie dźwięk."
557
+
558
+ #: embedded/common/toolset-forms/classes/class.colorpicker.php:34
559
+ #: embedded/common/toolset-forms/classes/class.credfile.php:143
560
+ #: embedded/common/toolset-forms/classes/class.date.php:233
561
+ #: embedded/common/visual-editor/editor-addon.class.php:699
562
+ msgid "Clear"
563
+ msgstr "Wyczyść"
564
+
565
+ #: embedded/common/toolset-forms/classes/class.colorpicker.php:35
566
+ #: includes/fields/radio.php:206 includes/fields/select.php:135
567
+ msgid "Default"
568
+ msgstr "Domyślne"
569
+
570
+ #: embedded/common/toolset-forms/classes/class.colorpicker.php:36
571
+ #: embedded/common/toolset-forms/classes/class.date.php:129
572
+ #: embedded/common/toolset-forms/classes/class.date.php:197
573
+ #: embedded/includes/fields/select.php:10
574
+ #: embedded/includes/fields/select.php:11
575
+ msgid "Select"
576
+ msgstr "Wybierz"
577
+
578
+ #: embedded/common/toolset-forms/classes/class.colorpicker.php:65
579
+ msgid "You can add valid hexadecimal."
580
+ msgstr "Możesz dodać poprawną wartość szesnastkową."
581
+
582
+ #: embedded/common/toolset-forms/classes/class.credfile.php:94
583
+ msgid "Featured Image"
584
+ msgstr "Ikona wpisu"
585
+
586
+ #: embedded/common/toolset-forms/classes/class.credfile.php:139
587
+ msgid "Restore original"
588
+ msgstr "Przywróć oryginał"
589
+
590
+ #: embedded/common/toolset-forms/classes/class.date.php:192
591
+ #: embedded/includes/fields/date.php:232
592
+ #: embedded/includes/usermeta-post.php:645
593
+ msgid "Hour"
594
+ msgstr "Godzina"
595
+
596
+ #: embedded/common/toolset-forms/classes/class.date.php:215
597
+ #: embedded/includes/fields/date.php:254
598
+ #: embedded/includes/usermeta-post.php:645
599
+ msgid "Minute"
600
+ msgstr "Minuta"
601
+
602
+ #: embedded/common/toolset-forms/classes/class.date.php:220
603
+ msgid "Select minute"
604
+ msgstr "Wybierz minutę"
605
+
606
+ #: embedded/common/toolset-forms/classes/class.date.scripts.php:134
607
+ #: embedded/includes/fields/date/js.php:30
608
+ msgid "Select date"
609
+ msgstr "Wybierz datę"
610
+
611
+ #: embedded/common/toolset-forms/classes/class.date.scripts.php:137
612
+ #: embedded/includes/fields/date/js.php:12
613
+ msgid "Input format: %s"
614
+ msgstr "Format wprowadzania: %s"
615
+
616
+ #: embedded/common/toolset-forms/classes/class.date.scripts.php:141
617
+ msgid "This is a read-only date input"
618
+ msgstr "To jest pole daty tylko do odczytu"
619
+
620
+ #: embedded/common/toolset-forms/classes/class.eforms.php:389
621
+ #: embedded/includes/fields-post.php:1424
622
+ #: embedded/includes/fields-post.php:1425
623
+ msgid ""
624
+ "This field is locked for editing because WPML will copy its value from the "
625
+ "original language."
626
+ msgstr ""
627
+ "Edycja tego pola została zablokowana, ponieważ WPML skopiuje jego wartość z "
628
+ "języka źródłowego."
629
+
630
+ #: embedded/common/toolset-forms/classes/class.file.php:111
631
+ msgid "audio"
632
+ msgstr "dźwięk"
633
+
634
+ #: embedded/common/toolset-forms/classes/class.file.php:114
635
+ msgid "image"
636
+ msgstr "obraz"
637
+
638
+ #: embedded/common/toolset-forms/classes/class.file.php:117
639
+ msgid "video"
640
+ msgstr "wideo"
641
+
642
+ #: embedded/common/toolset-forms/classes/class.file.php:120
643
+ msgid "file"
644
+ msgstr "plik"
645
+
646
+ #: embedded/common/toolset-forms/classes/class.file.php:126
647
+ #: embedded/includes/fields/file.php:29
648
+ msgid "Select %s"
649
+ msgstr "Wybierz %s"
650
+
651
+ #: embedded/common/toolset-forms/classes/class.form_factory.php:269
652
+ msgid "There is a problem rendering field <strong>%s (%s)</strong>."
653
+ msgstr "Wystąpił problem z wyświetleniem pola <strong>%s (%s)</strong>."
654
+
655
+ #: embedded/common/toolset-forms/classes/class.image.php:39
656
+ msgid "You can add only images."
657
+ msgstr "Możesz dodać jedynie obrazy."
658
+
659
+ #: embedded/common/toolset-forms/classes/class.skype.php:36
660
+ #: embedded/includes/fields/skype.php:90 embedded/includes/fields/skype.php:92
661
+ msgid "Edit Skype button"
662
+ msgstr "Edytuj przycisk Skype"
663
+
664
+ #: embedded/common/toolset-forms/classes/class.skype.php:103
665
+ msgid "Edit Skype"
666
+ msgstr "Edytuj przycisk Skype"
667
+
668
+ #: embedded/common/toolset-forms/classes/class.skype.php:135
669
+ msgid "Preview of your Skype button"
670
+ msgstr "Zobacz przycisk Skype"
671
+
672
+ #: embedded/common/toolset-forms/classes/class.skype.php:136
673
+ msgid "*Hover over to see the menu"
674
+ msgstr "*Najedź żeby zobaczyć menu"
675
+
676
+ #: embedded/common/toolset-forms/classes/class.skype.php:137
677
+ msgid "Note"
678
+ msgstr "Notatka"
679
+
680
+ #: embedded/common/toolset-forms/classes/class.skype.php:138
681
+ msgid ""
682
+ "Skype button background is transparent and will work on any colour "
683
+ "backgrounds."
684
+ msgstr "Przycisk Skype ma przezroczyste tło i będzie widoczny Tło "
685
+
686
+ #: embedded/common/toolset-forms/classes/class.skype.php:152
687
+ #: embedded/includes/fields/skype.php:198
688
+ msgid "Enter your Skype Name"
689
+ msgstr "Wpisz swoją nazwę w Skype"
690
+
691
+ #: embedded/common/toolset-forms/classes/class.skype.php:161
692
+ msgid "Call"
693
+ msgstr "Rozmowa"
694
+
695
+ #: embedded/common/toolset-forms/classes/class.skype.php:162
696
+ msgid "Start a call with just a click."
697
+ msgstr "Zacznij rozmowę po kliknięciu."
698
+
699
+ #: embedded/common/toolset-forms/classes/class.skype.php:171
700
+ msgid "Chat"
701
+ msgstr "Czat"
702
+
703
+ #: embedded/common/toolset-forms/classes/class.skype.php:173
704
+ msgid "Start the conversation with an instant message."
705
+ msgstr "Zacznij czat za pomocą komunikatora."
706
+
707
+ #: embedded/common/toolset-forms/classes/class.skype.php:180
708
+ msgid "Choose what you'd like your button to do"
709
+ msgstr "Wybierz co przycisk ma robić"
710
+
711
+ #: embedded/common/toolset-forms/classes/class.skype.php:185
712
+ msgid "Choose how you want your button to look"
713
+ msgstr "Wybierz jak przycisk ma wyglądać"
714
+
715
+ #: embedded/common/toolset-forms/classes/class.skype.php:194
716
+ msgid "Blue"
717
+ msgstr "Niebieski"
718
+
719
+ #: embedded/common/toolset-forms/classes/class.skype.php:202
720
+ msgid "White"
721
+ msgstr "Biały"
722
+
723
+ #: embedded/common/toolset-forms/classes/class.skype.php:246
724
+ #: embedded/includes/relationship/child-table-row.php:31
725
+ #: includes/common-functions.php:56 includes/fields-form.php:295
726
+ #: includes/fields-form.php:903 includes/post-relationship.php:252
727
+ #: includes/usermeta-form.php:249 includes/usermeta-form.php:642
728
+ #: plus/types-access/includes/admin-edit-access.php:909
729
+ msgid "Save"
730
+ msgstr "Zapisz"
731
+
732
+ #: embedded/common/toolset-forms/classes/class.taxonomyhierarchical.php:96
733
+ #: embedded/views/editor-modal-window.php:89 includes/fields-form.php:1524
734
+ #: includes/fields-form.php:1639 includes/post-relationship.php:378
735
+ #: includes/post-relationship.php:432
736
+ #: plus/installer/templates/repository-listing.php:27
737
+ #: plus/types-access/includes/admin-edit-access.php:614
738
+ #: plus/types-access/includes/admin-edit-access.php:671
739
+ #: plus/types-access/includes/admin-edit-access.php:839
740
+ #: plus/types-access/includes/admin-edit-access.php:869
741
+ #: plus/types-access/includes/admin-edit-access.php:915
742
+ msgid "Cancel"
743
+ msgstr "Anuluj"
744
+
745
+ #: embedded/common/toolset-forms/classes/class.video.php:65
746
+ msgid "You can add only video."
747
+ msgstr "Możesz dodać jedynie wideo."
748
+
749
+ #: embedded/common/toolset-forms/lib/CakePHP-Validation.php:385
750
+ msgid ""
751
+ "You must define the $operator parameter for WPToolset_Cake_Validation::"
752
+ "comparison()"
753
+ msgstr ""
754
+ "Musisz zdefiniować parametr $operator dla WPToolset_Cake_Validation::"
755
+ "comparison()"
756
+
757
+ #: embedded/common/toolset-forms/lib/CakePHP-Validation.php:409
758
+ msgid ""
759
+ "You must define a regular expression for WPToolset_Cake_Validation::custom()"
760
+ msgstr ""
761
+ "Musisz zdefiniować wyrażenie regularne dla WPToolset_Cake_Validation::"
762
+ "custom()"
763
+
764
+ #: embedded/common/toolset-forms/templates/metaform-item.php:13
765
+ #: embedded/includes/repetitive-fields-ordering.php:93
766
+ #: embedded/includes/repetitive-usermetafields-ordering.php:93
767
+ msgid "Delete %s"
768
+ msgstr "Usuń %s"
769
+
770
+ #: embedded/common/toolset-forms/templates/metaform-item.php:33
771
+ #: embedded/includes/relationship/child-table-row.php:50 help.php:43
772
+ #: help.php:127 help.php:159 help.php:288
773
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:162
774
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:284
775
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:185
776
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:299
777
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:170
778
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:291
779
+ #: includes/classes/class.wpcf.user.fields.list.table.php:152
780
+ #: includes/fields-control.php:244 includes/usermeta-control.php:233
781
+ #: plus/types-access/includes/admin-edit-access.php:911
782
+ msgid "Delete"
783
+ msgstr "Usuń"
784
+
785
+ #: embedded/common/toolset-forms/templates/metaform.php:18
786
+ #: embedded/common/toolset-forms/templates/metaform.php:59
787
+ msgid "Add new %s"
788
+ msgstr "Dodaj nowy %s"
789
+
790
+ #: embedded/common/visual-editor/editor-addon-generic.class.php:42
791
+ msgid "Insert conditional shortcode"
792
+ msgstr "Wstaw shortcode z warunkiem"
793
+
794
+ #: embedded/common/visual-editor/editor-addon-generic.class.php:43
795
+ msgid "conditional output"
796
+ msgstr "warunkowa treść"
797
+
798
+ #: embedded/common/visual-editor/editor-addon-generic.class.php:49
799
+ msgid "You can only use an image file here"
800
+ msgstr "Możesz tu użyć tylko pliku obrazu"
801
+
802
+ #: embedded/common/visual-editor/editor-addon.class.php:72
803
+ #: embedded/common/visual-editor/editor-addon.class.php:543
804
+ #: embedded/common/visual-editor/editor-addon.class.php:661
805
+ #: embedded/common/visual-editor/views-editor-addon.class.php:203
806
+ #: embedded/common/visual-editor/views-editor-addon.class.php:215
807
+ msgid "Content Template"
808
+ msgstr "Szablon Treści"
809
+
810
+ #: embedded/common/visual-editor/editor-addon.class.php:74
811
+ #: embedded/common/visual-editor/editor-addon.class.php:83
812
+ #: embedded/common/visual-editor/editor-addon.class.php:305
813
+ #: embedded/common/visual-editor/editor-addon.class.php:448
814
+ #: embedded/common/visual-editor/editor-addon.class.php:453
815
+ #: embedded/common/visual-editor/editor-addon.class.php:546
816
+ #: embedded/common/visual-editor/editor-addon.class.php:572
817
+ #: embedded/common/visual-editor/editor-addon.class.php:659
818
+ #: embedded/common/visual-editor/editor-addon.class.php:734
819
+ #: embedded/common/visual-editor/editor-addon.class.php:739
820
+ #: embedded/common/visual-editor/editor-addon.class.php:745
821
+ #: embedded/common/visual-editor/views-editor-addon.class.php:199
822
+ #: embedded/common/visual-editor/views-editor-addon.class.php:222
823
+ msgid "Post View"
824
+ msgstr "Widok wpisu"
825
+
826
+ #: embedded/common/visual-editor/editor-addon.class.php:76
827
+ #: embedded/common/visual-editor/editor-addon.class.php:85
828
+ #: embedded/common/visual-editor/editor-addon.class.php:449
829
+ #: embedded/common/visual-editor/editor-addon.class.php:455
830
+ #: embedded/common/visual-editor/editor-addon.class.php:546
831
+ #: embedded/common/visual-editor/editor-addon.class.php:574
832
+ #: embedded/common/visual-editor/editor-addon.class.php:658
833
+ #: embedded/common/visual-editor/editor-addon.class.php:737
834
+ #: embedded/common/visual-editor/editor-addon.class.php:745
835
+ #: embedded/common/visual-editor/editor-addon.class.php:749
836
+ #: embedded/common/visual-editor/views-editor-addon.class.php:198
837
+ #: embedded/common/visual-editor/views-editor-addon.class.php:223
838
+ msgid "Taxonomy View"
839
+ msgstr "Widok taksonomii"
840
+
841
+ #: embedded/common/visual-editor/editor-addon.class.php:78
842
+ #: embedded/common/visual-editor/editor-addon.class.php:87
843
+ #: embedded/common/visual-editor/editor-addon.class.php:450
844
+ #: embedded/common/visual-editor/editor-addon.class.php:457
845
+ #: embedded/common/visual-editor/editor-addon.class.php:547
846
+ #: embedded/common/visual-editor/editor-addon.class.php:576
847
+ #: embedded/common/visual-editor/editor-addon.class.php:657
848
+ #: embedded/common/visual-editor/editor-addon.class.php:739
849
+ #: embedded/common/visual-editor/editor-addon.class.php:743
850
+ #: embedded/common/visual-editor/editor-addon.class.php:749
851
+ #: embedded/common/visual-editor/views-editor-addon.class.php:197
852
+ #: embedded/common/visual-editor/views-editor-addon.class.php:224
853
+ msgid "User View"
854
+ msgstr "Widok użytkownika"
855
+
856
+ #: embedded/common/visual-editor/editor-addon.class.php:102
857
+ #: embedded/common/visual-editor/editor-addon.class.php:132
858
+ #: embedded/common/visual-editor/editor-addon.class.php:348
859
+ #: embedded/common/visual-editor/editor-addon.class.php:363
860
+ #: embedded/common/visual-editor/views-editor-addon.class.php:145
861
+ #: embedded/common/visual-editor/views-editor-addon.class.php:150
862
+ msgid "Fields and Views"
863
+ msgstr "Pola i widoki"
864
+
865
+ #: embedded/common/visual-editor/editor-addon.class.php:155
866
+ #: embedded/common/visual-editor/editor-addon.class.php:378
867
+ msgid "Go to"
868
+ msgstr "Przejdź do"
869
+
870
+ #: embedded/common/visual-editor/editor-addon.class.php:199
871
+ msgid "User ID"
872
+ msgstr "ID użytkownika"
873
+
874
+ #: embedded/common/visual-editor/editor-addon.class.php:199
875
+ #: embedded/common/visual-editor/editor-addon.class.php:200
876
+ #: embedded/common/visual-editor/editor-addon.class.php:201
877
+ #: embedded/common/visual-editor/editor-addon.class.php:202
878
+ #: embedded/common/visual-editor/editor-addon.class.php:203
879
+ #: embedded/common/visual-editor/editor-addon.class.php:204
880
+ #: embedded/common/visual-editor/editor-addon.class.php:205
881
+ #: embedded/common/visual-editor/editor-addon.class.php:206
882
+ #: embedded/common/visual-editor/editor-addon.class.php:207
883
+ #: embedded/common/visual-editor/editor-addon.class.php:208
884
+ #: embedded/common/visual-editor/editor-addon.class.php:209
885
+ #: embedded/common/visual-editor/editor-addon.class.php:210
886
+ #: embedded/common/visual-editor/editor-addon.class.php:211
887
+ #: embedded/common/visual-editor/editor-addon.class.php:212
888
+ #: embedded/common/visual-editor/editor-addon.class.php:213
889
+ #: embedded/common/visual-editor/editor-addon.class.php:221
890
+ #: embedded/common/visual-editor/editor-addon.class.php:538
891
+ #: embedded/common/visual-editor/editor-addon.class.php:663
892
+ #: embedded/common/visual-editor/views-editor-addon.class.php:205
893
+ #: embedded/common/visual-editor/views-editor-addon.class.php:213
894
+ msgid "Basic"
895
+ msgstr "Podstawowy"
896
+
897
+ #: embedded/common/visual-editor/editor-addon.class.php:200
898
+ msgid "User Email"
899
+ msgstr "E-mail użytkownika"
900
+
901
+ #: embedded/common/visual-editor/editor-addon.class.php:201
902
+ msgid "User Login"
903
+ msgstr "Login użytkownika"
904
+
905
+ #: embedded/common/visual-editor/editor-addon.class.php:202
906
+ msgid "First Name"
907
+ msgstr "Imię"
908
+
909
+ #: embedded/common/visual-editor/editor-addon.class.php:203
910
+ msgid "Last Name"
911
+ msgstr "Nazwisko"
912
+
913
+ #: embedded/common/visual-editor/editor-addon.class.php:204
914
+ msgid "Nickname"
915
+ msgstr "Pseudonim"
916
+
917
+ #: embedded/common/visual-editor/editor-addon.class.php:205
918
+ msgid "Display Name"
919
+ msgstr "Nazwa wyświetlana"
920
+
921
+ #: embedded/common/visual-editor/editor-addon.class.php:206
922
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:228
923
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:249
924
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:236
925
+ #: includes/classes/class.wpcf.user.fields.list.table.php:218
926
+ #: includes/common-functions.php:159 includes/custom-taxonomies-form.php:175
927
+ #: includes/custom-types-form.php:235 includes/fields/checkbox.php:48
928
+ #: includes/fields/checkboxes.php:43 includes/fields/date.php:44
929
+ #: includes/fields/radio.php:37 includes/fields/select.php:37
930
+ msgid "Description"
931
+ msgstr "Opis"
932
+
933
+ #: embedded/common/visual-editor/editor-addon.class.php:207
934
+ msgid "Yahoo IM"
935
+ msgstr "Yahoo IM"
936
+
937
+ #: embedded/common/visual-editor/editor-addon.class.php:208
938
+ msgid "Jabber"
939
+ msgstr "Jabber"
940
+
941
+ #: embedded/common/visual-editor/editor-addon.class.php:209
942
+ msgid "AIM"
943
+ msgstr "AIM"
944
+
945
+ #: embedded/common/visual-editor/editor-addon.class.php:210
946
+ msgid "User Url"
947
+ msgstr "Url użytkownika"
948
+
949
+ #: embedded/common/visual-editor/editor-addon.class.php:211
950
+ msgid "Registration Date"
951
+ msgstr "Data rejestracji"
952
+
953
+ #: embedded/common/visual-editor/editor-addon.class.php:212
954
+ msgid "User Status"
955
+ msgstr "Status użytkownika"
956
+
957
+ #: embedded/common/visual-editor/editor-addon.class.php:213
958
+ msgid "User Spam Status"
959
+ msgstr "Status spamu użytkownika"
960
+
961
+ #: embedded/common/visual-editor/editor-addon.class.php:219
962
+ #: embedded/common/visual-editor/editor-addon.class.php:222
963
+ msgid "Translatable string"
964
+ msgstr "Fraza przetłumaczalna"
965
+
966
+ #: embedded/common/visual-editor/editor-addon.class.php:242
967
+ msgid "Users fields"
968
+ msgstr "Pola użytkowników"
969
+
970
+ #: embedded/common/visual-editor/editor-addon.class.php:251 help.php:65
971
+ msgid "User fields"
972
+ msgstr "Pola użytkownika"
973
+
974
+ #: embedded/common/visual-editor/editor-addon.class.php:291
975
+ msgid "Types fields"
976
+ msgstr "Pola typów"
977
+
978
+ #: embedded/common/visual-editor/editor-addon.class.php:551
979
+ msgid "Field"
980
+ msgstr "Pole"
981
+
982
+ #: embedded/common/visual-editor/editor-addon.class.php:660
983
+ #: embedded/common/visual-editor/views-editor-addon.class.php:200
984
+ #: embedded/common/visual-editor/views-editor-addon.class.php:221
985
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:176
986
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:191
987
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:184
988
+ #: includes/classes/class.wpcf.user.fields.list.table.php:166
989
+ #: includes/fields-form.php:1583
990
+ msgid "View"
991
+ msgstr "Widok"
992
+
993
+ #: embedded/common/visual-editor/editor-addon.class.php:662
994
+ #: embedded/common/visual-editor/views-editor-addon.class.php:204
995
+ #: embedded/common/visual-editor/views-editor-addon.class.php:214 help.php:353
996
+ #: plus/types-access/includes/admin-edit-access.php:161
997
+ msgid "Taxonomy"
998
+ msgstr "Taksonomia"
999
+
1000
+ #: embedded/common/visual-editor/editor-addon.class.php:664
1001
+ msgid "Other Fields"
1002
+ msgstr "Inne pola"
1003
+
1004
+ #: embedded/common/visual-editor/editor-addon.class.php:697
1005
+ #: embedded/common/visual-editor/views-editor-addon.class.php:250
1006
+ msgid "Search"
1007
+ msgstr "Szukaj"
1008
+
1009
+ #: embedded/common/visual-editor/views-editor-addon.class.php:112
1010
+ #: embedded/common/visual-editor/views-editor-addon.class.php:201
1011
+ #: embedded/common/visual-editor/views-editor-addon.class.php:220
1012
+ msgid "Post field"
1013
+ msgstr "Pole wpisu"
1014
+
1015
+ #: embedded/common/visual-editor/views-editor-addon.class.php:169
1016
+ msgid "Jump to:"
1017
+ msgstr "Przejdź do"
1018
+
1019
+ #: embedded/common/visual-editor/views-editor-addon.class.php:196
1020
+ #: embedded/common/visual-editor/views-editor-addon.class.php:225
1021
+ msgid "WPML"
1022
+ msgstr "WPML"
1023
+
1024
+ #: embedded/common/visual-editor/views-editor-addon.class.php:202
1025
+ #: embedded/common/visual-editor/views-editor-addon.class.php:216
1026
+ msgid "User basic data"
1027
+ msgstr "Podstawowe informacje"
1028
+
1029
+ #: embedded/common/wp-pointer.php:156
1030
+ msgid "Some pointer hints have been hidden on this page. %sShow them again%s"
1031
+ msgstr ""
1032
+ "Niektóre wskazówki kontekstowe na tej stronie zostały ukryte. %sWyświetl je "
1033
+ "ponownie%s"
1034
+
1035
+ #: embedded/functions.php:149
1036
+ msgid "settings.xml file missing"
1037
+ msgstr "brak pliku settings.xml"
1038
+
1039
+ #: embedded/functions.php:155
1040
+ msgid ""
1041
+ "You have Types import pending. %sClick here to import.%s %sDismiss message.%s"
1042
+ msgstr ""
1043
+ "Masz oczekujący import Typów.%sKliknij tutaj, aby zaimportować.%s %sOdrzuć "
1044
+ "wiadomość.%s"
1045
+
1046
+ #: embedded/functions.php:488 includes/fields-form.php:1637
1047
+ msgid "Close"
1048
+ msgstr "Zamknij"
1049
+
1050
+ #: embedded/includes/ajax/admin-footer.php:23
1051
+ msgid ""
1052
+ "Thank you for creating with <a href=\"http://wordpress.org/\">WordPress</a>."
1053
+ msgstr ""
1054
+ "Dziękujemy za tworzenie w <a href=\"http://wordpress.org/\">WordPressie</a>."
1055
+
1056
+ #: embedded/includes/ajax/admin-header.php:29
1057
+ msgid "Network Admin"
1058
+ msgstr "Administrator sieci"
1059
+
1060
+ #: embedded/includes/ajax/admin-header.php:31
1061
+ msgid "Global Dashboard"
1062
+ msgstr "Pulpit globalny"
1063
+
1064
+ #: embedded/includes/ajax/admin-header.php:36
1065
+ msgid "%1$s &#8212; WordPress"
1066
+ msgstr "%1$s &#8212; WordPress"
1067
+
1068
+ #: embedded/includes/ajax/admin-header.php:38
1069
+ msgid "%1$s &lsaquo; %2$s &#8212; WordPress"
1070
+ msgstr "%1$s &lsaquo; %2$s &#8212; WordPress"
1071
+
1072
+ #: embedded/includes/ajax/admin-header.php:123
1073
+ msgid "Skip to main content"
1074
+ msgstr "Przejdź do zawartości głównej"
1075
+
1076
+ #: embedded/includes/ajax/admin-header.php:141
1077
+ msgid "Main content"
1078
+ msgstr "Zawartość główna"
1079
+
1080
+ #: embedded/includes/ajax.php:131
1081
+ msgid "Error creating post relationship"
1082
+ msgstr "Błąd w tworzeniu relacji wpisu"
1083
+
1084
+ #: embedded/includes/ajax.php:135
1085
+ msgid "Error getting parent post"
1086
+ msgstr "Błąd w pozyskiwaniu wpisu-rodzica"
1087
+
1088
+ #: embedded/includes/conditional-display.php:190
1089
+ msgid "Equal to"
1090
+ msgstr "Równa się"
1091
+
1092
+ #: embedded/includes/conditional-display.php:191
1093
+ msgid "Larger than"
1094
+ msgstr "Większe niż"
1095
+
1096
+ #: embedded/includes/conditional-display.php:192
1097
+ msgid "Less than"
1098
+ msgstr "Mniejsze niż"
1099
+
1100
+ #: embedded/includes/conditional-display.php:193
1101
+ msgid "Larger or equal to"
1102
+ msgstr "Większe niż lub równe"
1103
+
1104
+ #: embedded/includes/conditional-display.php:194
1105
+ msgid "Less or equal to"
1106
+ msgstr "Mniejsze niż lub równe"
1107
+
1108
+ #: embedded/includes/conditional-display.php:195
1109
+ msgid "Identical to"
1110
+ msgstr "Identyczne z"
1111
+
1112
+ #: embedded/includes/conditional-display.php:196
1113
+ msgid "Not identical to"
1114
+ msgstr "Nie identyczne z"
1115
+
1116
+ #: embedded/includes/conditional-display.php:197
1117
+ msgid "Strictly not equal"
1118
+ msgstr "Bezwzględnie nierówne"
1119
+
1120
+ #: embedded/includes/examples/google_map.php:50
1121
+ msgid "Google Map"
1122
+ msgstr "Mapa Google"
1123
+
1124
+ #: embedded/includes/examples/google_map.php:51
1125
+ msgid "This is additional field"
1126
+ msgstr "To jest pole dodatkowe"
1127
+
1128
+ #: embedded/includes/examples/google_map.php:149
1129
+ msgid "Add Google Map coordinates"
1130
+ msgstr "Dodaj współrzędne na Mapie Google"
1131
+
1132
+ #: embedded/includes/examples/google_map.php:150
1133
+ msgid "Your input should look something like \"41.934146,12.455821\""
1134
+ msgstr ""
1135
+ "Wprowadzana fraza powinna wyglądać mniej więcej jak \"41.934146,12.455821\""
1136
+
1137
+ #: embedded/includes/examples/google_map.php:164
1138
+ #: embedded/views/templates/editor-modal-embed.tpl.php:27
1139
+ #: embedded/views/templates/editor-modal-image.tpl.php:92
1140
+ #: embedded/views/templates/editor-modal-video.tpl.php:31
1141
+ msgid "Width"
1142
+ msgstr "Szerokość"
1143
+
1144
+ #: embedded/includes/examples/google_map.php:166
1145
+ #: embedded/views/templates/editor-modal-embed.tpl.php:31
1146
+ #: embedded/views/templates/editor-modal-image.tpl.php:96
1147
+ #: embedded/views/templates/editor-modal-video.tpl.php:35
1148
+ msgid "Height"
1149
+ msgstr "Wysokość"
1150
+
1151
+ #: embedded/includes/examples/google_map.php:220
1152
+ msgid "View Larger Map"
1153
+ msgstr "Wyświetl większą mapę"
1154
+
1155
+ #: embedded/includes/fields/audio.php:15 embedded/includes/fields/audio.php:16
1156
+ msgid "Audio"
1157
+ msgstr "Dźwięk"
1158
+
1159
+ #: embedded/includes/fields/audio.php:68
1160
+ #: embedded/includes/fields/checkbox.php:91
1161
+ #: embedded/includes/fields/checkboxes.php:77
1162
+ #: embedded/includes/fields/date.php:474 embedded/includes/fields/email.php:51
1163
+ #: embedded/includes/fields/embed.php:99 embedded/includes/fields/file.php:203
1164
+ #: embedded/includes/fields/image.php:148
1165
+ #: embedded/includes/fields/numeric.php:88
1166
+ #: embedded/includes/fields/radio.php:92 embedded/includes/fields/url.php:71
1167
+ #: embedded/includes/fields/video.php:101
1168
+ msgid "Display options"
1169
+ msgstr "Opcje wyświetlania"
1170
+
1171
+ #: embedded/includes/fields/audio.php:69
1172
+ #: embedded/includes/fields/checkbox.php:92
1173
+ #: embedded/includes/fields/checkboxes.php:78
1174
+ #: embedded/includes/fields/date.php:475 embedded/includes/fields/email.php:52
1175
+ #: embedded/includes/fields/embed.php:100
1176
+ #: embedded/includes/fields/file.php:204
1177
+ #: embedded/includes/fields/image.php:149
1178
+ #: embedded/includes/fields/numeric.php:89
1179
+ #: embedded/includes/fields/radio.php:93 embedded/includes/fields/url.php:72
1180
+ #: embedded/includes/fields/video.php:102
1181
+ msgid "Display options for this field:"
1182
+ msgstr "Wyświetl opcje dla pole:"
1183
+
1184
+ #: embedded/includes/fields/checkbox.php:19
1185
+ #: embedded/includes/fields/checkbox.php:20
1186
+ msgid "Checkbox"
1187
+ msgstr "Pole wyboru"
1188
+
1189
+ #: embedded/includes/fields/checkboxes.php:13
1190
+ #: embedded/includes/fields/checkboxes.php:14
1191
+ #: includes/fields/checkboxes.php:72
1192
+ msgid "Checkboxes"
1193
+ msgstr "Pola wyboru"
1194
+
1195
+ #: embedded/includes/fields/colorpicker.php:11
1196
+ #: embedded/includes/fields/colorpicker.php:12
1197
+ msgid "Colorpicker"
1198
+ msgstr "Selektor kolorów"
1199
+
1200
+ #: embedded/includes/fields/colorpicker.php:39
1201
+ #: embedded/includes/fields/colorpicker.php:125
1202
+ #: embedded/includes/fields/colorpicker.php:126
1203
+ msgid "Pick color"
1204
+ msgstr "Wybierz kolor"
1205
+
1206
+ #: embedded/includes/fields/colorpicker.php:126
1207
+ msgid "Done"
1208
+ msgstr "Gotowe"
1209
+
1210
+ #. translators: Calendar caption: 1: month name, 2: 4-digit year
1211
+ #: embedded/includes/fields/date/calendar.php:82
1212
+ msgctxt "calendar caption"
1213
+ msgid "%1$s %2$s"
1214
+ msgstr "%2$s %1$s"
1215
+
1216
+ #: embedded/includes/fields/date/calendar.php:84
1217
+ msgid "Calendar"
1218
+ msgstr "Kalendarz"
1219
+
1220
+ #: embedded/includes/fields/date.php:203
1221
+ msgid "Please enter a date after 1 January 1970"
1222
+ msgstr "Wpisz datę po 1 stycznia 1970"
1223
+
1224
+ #: embedded/includes/fields/date.php:445
1225
+ msgid "F j, Y"
1226
+ msgstr "Y-m-d"
1227
+
1228
+ #: embedded/includes/fields/embed.php:11 embedded/includes/fields/embed.php:12
1229
+ msgid "Embedded Media"
1230
+ msgstr "Multimedia osadzone"
1231
+
1232
+ #: embedded/includes/fields/file.php:14 embedded/includes/fields/file.php:15
1233
+ msgid "File"
1234
+ msgstr "Plik"
1235
+
1236
+ #: embedded/includes/fields/file.php:128
1237
+ msgid "Use as field value"
1238
+ msgstr "Użyj jako wartość pola"
1239
+
1240
+ #: embedded/includes/fields/image.php:20 embedded/includes/fields/image.php:21
1241
+ msgid "Image"
1242
+ msgstr "Obraz"
1243
+
1244
+ #: embedded/includes/fields/image.php:107
1245
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:94
1246
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:99
1247
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:97
1248
+ #: includes/fields-control.php:46 includes/fields-control.php:69
1249
+ #: includes/fields-control.php:83 includes/fields-control.php:96
1250
+ #: includes/fields-control.php:212 includes/usermeta-control.php:33
1251
+ #: includes/usermeta-control.php:58 includes/usermeta-control.php:72
1252
+ #: includes/usermeta-control.php:85 includes/usermeta-control.php:200
1253
+ msgid "None"
1254
+ msgstr "Brak"
1255
+
1256
+ #: embedded/includes/fields/image.php:108
1257
+ msgid "Left"
1258
+ msgstr "Do lewej"
1259
+
1260
+ #: embedded/includes/fields/image.php:109
1261
+ msgid "Center"
1262
+ msgstr "Do środka"
1263
+
1264
+ #: embedded/includes/fields/image.php:110
1265
+ msgid "Right"
1266
+ msgstr "Do prawej"
1267
+
1268
+ #: embedded/includes/fields/image.php:123
1269
+ msgid "Thumbnail - %s"
1270
+ msgstr "Ikona - %s"
1271
+
1272
+ #: embedded/includes/fields/image.php:125
1273
+ msgid "Medium - %s"
1274
+ msgstr "Średni - %s"
1275
+
1276
+ #: embedded/includes/fields/image.php:127
1277
+ msgid "Large - %s"
1278
+ msgstr "Duży - %s"
1279
+
1280
+ #: embedded/includes/fields/image.php:129
1281
+ msgid "Original image"
1282
+ msgstr "Oryginalny obrazek"
1283
+
1284
+ #: embedded/includes/fields/image.php:138
1285
+ msgid "Custom size..."
1286
+ msgstr "Niestandardowy rozmiar..."
1287
+
1288
+ #: embedded/includes/fields/image.php:560
1289
+ #: embedded/includes/fields/image.php:567
1290
+ #: embedded/includes/fields/image.php:690
1291
+ msgid "Image %s not valid"
1292
+ msgstr "Obraz %s nie jest poprawny"
1293
+
1294
+ #: embedded/includes/fields/image.php:656
1295
+ msgid "Image cache directory %s could not be created"
1296
+ msgstr "Utworzenie katalogu pamięci podręcznej obrazu %s nie powiodło się"
1297
+
1298
+ #: embedded/includes/fields/image.php:722
1299
+ #: embedded/includes/fields/image.php:735
1300
+ msgid "Remote server returned error response %1$d %2$s"
1301
+ msgstr "Serwer zdalny zwrócił komunikat błędu %1$d %2$s"
1302
+
1303
+ #: embedded/includes/fields/image.php:743
1304
+ msgid "Remote file is incorrect size"
1305
+ msgstr "Plik zdalny ma niewłaściwy rozmiar"
1306
+
1307
+ #: embedded/includes/fields/image.php:748
1308
+ msgid "Could not create cache file"
1309
+ msgstr "Utworzenie pliku pamięci podręcznej nie powiodło się"
1310
+
1311
+ #: embedded/includes/fields/image.php:758
1312
+ msgid "Remote file is too large, limit is %s"
1313
+ msgstr "Plik zdalny jest zbyt duży, maksymalna wielkość to %s"
1314
+
1315
+ #: embedded/includes/fields/image.php:887
1316
+ msgid "Could not read image size"
1317
+ msgstr "Odczytanie rozmiaru obrazu nie powiodło się"
1318
+
1319
+ #: embedded/includes/fields/image.php:892
1320
+ msgid "Could not calculate resized image dimensions"
1321
+ msgstr "Obliczenie rozmiarów obrazu po zmianie wielkości nie powiodło się."
1322
+
1323
+ #: embedded/includes/fields/image.php:922
1324
+ #: embedded/includes/fields/image.php:925
1325
+ #: embedded/includes/fields/image.php:933 embedded/views/image.php:296
1326
+ msgid "Resize path invalid"
1327
+ msgstr "Nieprawidłowa ścieżka zmiany wielkości"
1328
+
1329
+ #: embedded/includes/fields/phone.php:10 embedded/includes/fields/phone.php:11
1330
+ msgid "Phone"
1331
+ msgstr "Telefon"
1332
+
1333
+ #: embedded/includes/fields/radio.php:11 embedded/includes/fields/radio.php:12
1334
+ msgid "Radio"
1335
+ msgstr "Radio"
1336
+
1337
+ #: embedded/includes/fields/skype.php:15 embedded/includes/fields/skype.php:16
1338
+ msgid "Skype"
1339
+ msgstr "Skype"
1340
+
1341
+ #: embedded/includes/fields/skype.php:53
1342
+ msgid "Skype name"
1343
+ msgstr "Nazwa użytkownika Skype"
1344
+
1345
+ #: embedded/includes/fields/skype.php:193
1346
+ #: embedded/includes/fields/skype.php:214
1347
+ msgid "Insert skype button"
1348
+ msgstr "Wstaw przycisk Skype"
1349
+
1350
+ #: embedded/includes/fields/textarea.php:15
1351
+ msgid "Multiple lines"
1352
+ msgstr "Wiele linii"
1353
+
1354
+ #: embedded/includes/fields/textarea.php:16
1355
+ msgid "Textarea"
1356
+ msgstr "Tekst"
1357
+
1358
+ #: embedded/includes/fields/textfield.php:11
1359
+ msgid "Single line"
1360
+ msgstr "Pojedyncza linia"
1361
+
1362
+ #: embedded/includes/fields/textfield.php:12
1363
+ msgid "Textfield"
1364
+ msgstr "Pole tekstowe"
1365
+
1366
+ #: embedded/includes/fields/url.php:61
1367
+ msgid "_blank: Opens in a new window or tab"
1368
+ msgstr "_blank: Otwiera w nowym oknie lub karcie"
1369
+
1370
+ #: embedded/includes/fields/url.php:62
1371
+ msgid "_self: Opens in the same frame as it was clicked"
1372
+ msgstr "_self: Otwiera w tej samej ramce, w której kliknięto"
1373
+
1374
+ #: embedded/includes/fields/url.php:63
1375
+ msgid "_parent: Opens in the parent frame"
1376
+ msgstr "_parent: Otwiera w ramce przodka"
1377
+
1378
+ #: embedded/includes/fields/url.php:64
1379
+ msgid "_top: Opens in the full body of the window"
1380
+ msgstr "_top: Otwiera w całym obszarze okna"
1381
+
1382
+ #: embedded/includes/fields/url.php:65
1383
+ msgid "framename: Opens in a named frame"
1384
+ msgstr "framename: Otwiera w nazwanej ramce"
1385
+
1386
+ #: embedded/includes/fields/url.php:77 embedded/includes/fields/url.php:78
1387
+ msgid "Target"
1388
+ msgstr "Element docelowy"
1389
+
1390
+ #: embedded/includes/fields/video.php:15 embedded/includes/fields/video.php:16
1391
+ msgid "Video"
1392
+ msgstr "Wideo"
1393
+
1394
+ #: embedded/includes/fields/wysiwyg.php:11
1395
+ msgid "WYSIWYG"
1396
+ msgstr "WYSIWYG"
1397
+
1398
+ #: embedded/includes/fields/wysiwyg.php:12
1399
+ msgid "WYSIWYG editor"
1400
+ msgstr "Edytor wizualny"
1401
+
1402
+ #: embedded/includes/fields-post.php:82
1403
+ msgid "Display Custom Content"
1404
+ msgstr "Wyświetl zawartość niestandardową"
1405
+
1406
+ #: embedded/includes/fields-post.php:668
1407
+ #: embedded/includes/usermeta-post.php:389
1408
+ msgid "Field \"%s\" not updated:"
1409
+ msgstr "Nie zaktualizowano pola \"%s\":"
1410
+
1411
+ #: embedded/includes/fields-post.php:828
1412
+ #: embedded/includes/usermeta-post.php:495
1413
+ msgid "Please check your input data"
1414
+ msgstr "Sprawdź wprowadzone dane"
1415
+
1416
+ #: embedded/includes/fields-post.php:1321
1417
+ msgid "If you change slug, new field will be created"
1418
+ msgstr "Jeżeli zmienisz slug, utworzone zostanie nowe pole"
1419
+
1420
+ #: embedded/includes/fields-post.php:1713
1421
+ msgid "Insert Types Shortcode"
1422
+ msgstr "Wstaw kod Shortcode wtyczki Types"
1423
+
1424
+ #: embedded/includes/fields-post.php:1828
1425
+ msgid "Build this site with %sViews%s"
1426
+ msgstr "Zbuduj tę witrynę, korzystając z wtyczki %sViews%s"
1427
+
1428
+ #: embedded/includes/fields-post.php:1831
1429
+ msgid "Create <strong>Content Templates</strong> for single pages &raquo;"
1430
+ msgstr "Utwórz <strong>Szablony</strong> dla pojedynczych stron &raquo;"
1431
+
1432
+ #: embedded/includes/fields-post.php:1832
1433
+ msgid "Create <strong>Views</strong> for content lists &raquo;"
1434
+ msgstr "Utwórz <strong>Widoki</strong> dla list zawartości &raquo;"
1435
+
1436
+ #: embedded/includes/fields-post.php:1834
1437
+ msgid "%sViews%s lets you build complete websites without coding."
1438
+ msgstr ""
1439
+ "Wtyczka %sViews%s umożliwia tworzenie kompletnych witryn bez kodowania."
1440
+
1441
+ #: embedded/includes/fields-post.php:1839
1442
+ #: marketing/congrats-post-types/index.php:107
1443
+ msgid "Design templates for single pages"
1444
+ msgstr "Projektuj szablony dla pojedynczych stron"
1445
+
1446
+ #: embedded/includes/fields-post.php:1840
1447
+ msgid "Query content and display anywhere"
1448
+ msgstr "Przeszukuj zawartość i wyświetlaj w dowolnym miejscu"
1449
+
1450
+ #: embedded/includes/fields-post.php:1842
1451
+ msgid "Create your own widgets"
1452
+ msgstr "Twórz swoje własne widgety"
1453
+
1454
+ #: embedded/includes/fields-post.php:1843
1455
+ msgid "No coding necessary"
1456
+ msgstr "Nie wymaga kodowania"
1457
+
1458
+ #: embedded/includes/fields-post.php:1846
1459
+ msgid "Get Views"
1460
+ msgstr "Pobierz wtyczkę Views"
1461
+
1462
+ #: embedded/includes/fields-post.php:1864
1463
+ msgid "Preview warning"
1464
+ msgstr "Ostrzeżenie podglądu"
1465
+
1466
+ #: embedded/includes/fields-post.php:1865
1467
+ msgid "Custom field changes cannot be previewed until %s is updated"
1468
+ msgstr ""
1469
+ "Nie można wyświetlić podglądu zmian pola niestandardowego przed aktualizacją "
1470
+ "%s"
1471
+
1472
+ #: embedded/includes/footer-credit.php:47
1473
+ msgid "Functionality enhanced using %sWordPress Custom Fields%s"
1474
+ msgstr "Zwiększona funkcjonalność dzięki %sniestandardowym polom WordPressa%s"
1475
+
1476
+ #: embedded/includes/footer-credit.php:50
1477
+ msgid "Functionality enhanced using %sWordPress Custom Post Types%s"
1478
+ msgstr ""
1479
+ "Zwiększona funkcjonalność dzięki %sniestandardowym typom postów WordPressa%s"
1480
+
1481
+ #: embedded/includes/footer-credit.php:53
1482
+ msgid "Functionality enhanced using %sWordPress Custom Taxonomy%s"
1483
+ msgstr ""
1484
+ "Zwiększona funkcjonalność dzięki %sniestandardowej taksonomii WordPressa%s"
1485
+
1486
+ #: embedded/includes/footer-credit.php:108
1487
+ msgid ""
1488
+ "You too can support Types! Would you like to add a small credit link, saying "
1489
+ "that you're using Types for custom fields or custom post types?"
1490
+ msgstr ""
1491
+ "Ty też możesz wesprzeć Types! Czy zechcesz umieścić niewielki odnośnik, "
1492
+ "informujący, że korzystasz z wtyczki Types do tworzenia niestandardowych pól "
1493
+ "i niestandardowych typów postów?"
1494
+
1495
+ #: embedded/includes/footer-credit.php:112
1496
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:107
1497
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:101
1498
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:99
1499
+ #: includes/classes/class.wpcf.user.fields.list.table.php:97
1500
+ msgid "Yes"
1501
+ msgstr "Tak"
1502
+
1503
+ #: embedded/includes/footer-credit.php:116
1504
+ msgid "No, thanks"
1505
+ msgstr "Nie, dziękuję"
1506
+
1507
+ #: embedded/includes/import-export.php:22
1508
+ #: embedded/includes/module-manager.php:867
1509
+ #: embedded/includes/module-manager.php:869 includes/import-export.php:339
1510
+ msgid "Error parsing XML"
1511
+ msgstr "Błąd analizy XML"
1512
+
1513
+ #: embedded/includes/import-export.php:62
1514
+ msgid "Settings are updated."
1515
+ msgstr "Ustawienia są aktualizowane."
1516
+
1517
+ #: embedded/includes/import-export.php:121
1518
+ #: embedded/includes/import-export.php:130
1519
+ #: embedded/includes/module-manager.php:935
1520
+ #: embedded/includes/module-manager.php:947
1521
+ msgid "Group \"%s\" update failed"
1522
+ msgstr "Aktualizacja grupy \"%s\" nie powiodła się"
1523
+
1524
+ #: embedded/includes/import-export.php:125
1525
+ msgid "Group \"%s\" updated"
1526
+ msgstr "Zaktualizowano grupę \"%s\""
1527
+
1528
+ #: embedded/includes/import-export.php:137
1529
+ #: embedded/includes/module-manager.php:953
1530
+ msgid "Group \"%s\" insert failed"
1531
+ msgstr "Wstawienie grupy \"%s\" nie powiodło się"
1532
+
1533
+ #: embedded/includes/import-export.php:141
1534
+ msgid "Group \"%s\" added"
1535
+ msgstr "Dodano grupę \"%s\""
1536
+
1537
+ #: embedded/includes/import-export.php:155
1538
+ msgid ""
1539
+ "The Types settings were not fully imported because it contained unsecured "
1540
+ "data. You should re-export your Types settings using the latest version of "
1541
+ "Types"
1542
+ msgstr ""
1543
+ "Ustawienia wtyczki Types nie zostały w pełni zaimportowane, ponieważ "
1544
+ "zawierały niezabezpieczone dane. Musisz ponownie wyeksportować swoje "
1545
+ "ustawienia Types, używając najnowszej wersji Types"
1546
+
1547
+ #: embedded/includes/import-export.php:185
1548
+ #: embedded/includes/import-export.php:204
1549
+ #: embedded/includes/import-export.php:214
1550
+ msgid "Group \"%s\" delete failed"
1551
+ msgstr "Usunięcie grupy \"%s\" nie powiodło się"
1552
+
1553
+ #: embedded/includes/import-export.php:190
1554
+ #: embedded/includes/import-export.php:209
1555
+ msgid "Group \"%s\" deleted"
1556
+ msgstr "Usunięto grupę \"%s\""
1557
+
1558
+ #: embedded/includes/import-export.php:279
1559
+ msgid "Field \"%s\" added/updated"
1560
+ msgstr "Dodano/zaktualizowano pole \"%s\""
1561
+
1562
+ #: embedded/includes/import-export.php:290
1563
+ #: embedded/includes/import-export.php:299
1564
+ msgid "Field \"%s\" deleted"
1565
+ msgstr "Usunięto pole \"%s\""
1566
+
1567
+ #: embedded/includes/import-export.php:358
1568
+ #: embedded/includes/import-export.php:367
1569
+ msgid "User group \"%s\" update failed"
1570
+ msgstr "Aktualizacja grupy użytkowników \"%s\" nie powiodła się"
1571
+
1572
+ #: embedded/includes/import-export.php:362
1573
+ msgid "User group \"%s\" updated"
1574
+ msgstr "Zaktualizowano grupę użytkowników \"%s\""
1575
+
1576
+ #: embedded/includes/import-export.php:374
1577
+ msgid "User group \"%s\" insert failed"
1578
+ msgstr "Dodanie grupy użytkowników \"%s\" nie powiodło się"
1579
+
1580
+ #: embedded/includes/import-export.php:378
1581
+ msgid "User group \"%s\" added"
1582
+ msgstr "Dodano grupę użytkowników \"%s\""
1583
+
1584
+ #: embedded/includes/import-export.php:409
1585
+ #: embedded/includes/import-export.php:429
1586
+ #: embedded/includes/import-export.php:439
1587
+ msgid "User group \"%s\" delete failed"
1588
+ msgstr "Usunięcie grupy użytkowników \"%s\" nie powiodło się"
1589
+
1590
+ #: embedded/includes/import-export.php:414
1591
+ #: embedded/includes/import-export.php:434
1592
+ msgid "User group \"%s\" deleted"
1593
+ msgstr "Usunięto grupę użytkowników \"%s\""
1594
+
1595
+ #: embedded/includes/import-export.php:500
1596
+ msgid "User field \"%s\" added/updated"
1597
+ msgstr "Dodano/zaktualizowano pole użytkownika \"%s\""
1598
+
1599
+ #: embedded/includes/import-export.php:511
1600
+ #: embedded/includes/import-export.php:521
1601
+ msgid "User field \"%s\" deleted"
1602
+ msgstr "Usunięto pole użytkownika \"%s\""
1603
+
1604
+ #: embedded/includes/import-export.php:566
1605
+ msgid "Custom post type \"%s\" added/updated"
1606
+ msgstr "Dodano/zaktualizowano własny typ wpisu \"%s\""
1607
+
1608
+ #: embedded/includes/import-export.php:575
1609
+ #: embedded/includes/import-export.php:582
1610
+ msgid "Custom post type \"%s\" deleted"
1611
+ msgstr "Usunięto własny typ wpisu \"%s\""
1612
+
1613
+ #: embedded/includes/import-export.php:627
1614
+ msgid "Custom taxonomy \"%s\" added/updated"
1615
+ msgstr "Dodano/zaktualizowano niestandardową taksonomię \"%s\""
1616
+
1617
+ #: embedded/includes/import-export.php:645
1618
+ #: embedded/includes/import-export.php:652
1619
+ msgid "Custom taxonomy \"%s\" deleted"
1620
+ msgstr "Usunięto niestandardową taksonomię \"%s\""
1621
+
1622
+ #: embedded/includes/import-export.php:673
1623
+ msgid "Post relationships created"
1624
+ msgstr "Utworzono relacje wpisu"
1625
+
1626
+ #: embedded/includes/import-export.php:675
1627
+ msgid ""
1628
+ "Post relationships settings were not imported because it contained unsecured "
1629
+ "data. You should re-export your Types settings using the latest version of "
1630
+ "Types"
1631
+ msgstr ""
1632
+ "Ustawienia relacji wpisów nie zostały zaimportowane, ponieważ zawierały "
1633
+ "niezabezpieczone dane. Musisz ponownie wyeksportować swoje ustawienia Types, "
1634
+ "korzystając z najnowszej wersji Types."
1635
+
1636
+ #: embedded/includes/module-manager.php:35
1637
+ #: embedded/includes/module-manager.php:93
1638
+ msgid "Module Manager"
1639
+ msgstr "Menedżer modułów"
1640
+
1641
+ #: embedded/includes/module-manager.php:106
1642
+ msgid "Wrong type!"
1643
+ msgstr "Błędny typ wpisu!"
1644
+
1645
+ #: embedded/includes/module-manager.php:225
1646
+ msgid "Field Groups"
1647
+ msgstr "Grupy pól"
1648
+
1649
+ #: embedded/includes/module-manager.php:235
1650
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:231
1651
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:251
1652
+ msgid "Taxonomies"
1653
+ msgstr "Taksonomie"
1654
+
1655
+ #: embedded/includes/module-manager.php:252
1656
+ msgid "%s custom post type: %s"
1657
+ msgstr "%s własny typ wpisu: %s"
1658
+
1659
+ #: embedded/includes/module-manager.php:282
1660
+ msgid "Error during Post Types import"
1661
+ msgstr "Błąd podczas importu typów postów"
1662
+
1663
+ #: embedded/includes/module-manager.php:290
1664
+ #: embedded/includes/module-manager.php:328
1665
+ msgid "Fields group: %s"
1666
+ msgstr "Grupa pól: %s"
1667
+
1668
+ #: embedded/includes/module-manager.php:319
1669
+ msgid "Error during Field Groups import"
1670
+ msgstr "Błąd podczas importu grup pól"
1671
+
1672
+ #: embedded/includes/module-manager.php:359
1673
+ msgid "Error during Taxonomies import"
1674
+ msgstr "Błąd podczas importu taksonomii"
1675
+
1676
+ #: embedded/includes/module-manager.php:787
1677
+ msgid "There is a problem with temporary directory."
1678
+ msgstr "Wystąpił problem z katalogiem tymczasowym"
1679
+
1680
+ #: embedded/includes/module-manager.php:937
1681
+ msgid "Group %s update failed"
1682
+ msgstr "Aktualizacja grupy %s nie powiodła się"
1683
+
1684
+ #: embedded/includes/module-manager.php:955
1685
+ msgid "Group %s insert failed"
1686
+ msgstr "Dodanie grupy %s nie powiodło się"
1687
+
1688
+ #: embedded/includes/module-manager.php:1219
1689
+ msgid "Field: %s"
1690
+ msgstr "Pole: %s"
1691
+
1692
+ #: embedded/includes/post-relationship.php:40
1693
+ #: includes/post-relationship.php:294
1694
+ msgid "Post Relationship"
1695
+ msgstr "Relacje wpisu"
1696
+
1697
+ #: embedded/includes/post-relationship.php:72
1698
+ msgid "Are you sure about deleting this post?"
1699
+ msgstr "Czy na pewno chcesz usunąć ten post?"
1700
+
1701
+ #: embedded/includes/post-relationship.php:74
1702
+ msgid "If you continue without saving your changes, they might get lost."
1703
+ msgstr ""
1704
+ "Jeżeli będziesz kontynuować bez zapisania zmian, mogą one zostać utracone."
1705
+
1706
+ #: embedded/includes/post-relationship.php:147
1707
+ msgid "You will be able to manage child posts after saving this post."
1708
+ msgstr "Zarządzanie postami potomnymi będzie możliwe po zapisaniu tego wpisu."
1709
+
1710
+ #: embedded/includes/post-relationship.php:149
1711
+ msgid "You will be able to add parent posts after saving this post."
1712
+ msgstr "Dodanie wpisu nadrzędnego będzie możliwe po zapisaniu."
1713
+
1714
+ #: embedded/includes/post-relationship.php:167
1715
+ msgid "Go back"
1716
+ msgstr "Wstecz"
1717
+
1718
+ #: embedded/includes/post-relationship.php:184
1719
+ msgid ""
1720
+ "You will be able to add child posts after saving at least one <b>%s</b>."
1721
+ msgstr ""
1722
+ "Będziesz w stanie dodawać wpisy potomne po zapisaniu co najmniej jedn(ego/"
1723
+ "ej) <b>%s</b>."
1724
+
1725
+ #: embedded/includes/post-relationship.php:189
1726
+ msgid ""
1727
+ "You will be able to edit child posts after saving at least one <b>%s</b>."
1728
+ msgstr ""
1729
+ "Będziesz w stanie edytować wpisy potomne po zapisaniu co najmniej jedn(ego/"
1730
+ "ej) <b>%s</b>."
1731
+
1732
+ #: embedded/includes/post-relationship.php:255
1733
+ msgid "This <em>%s</em> belongs to <em>%s</em>"
1734
+ msgstr "Wpis <i>%s</i> należy do <em>%s</em>:"
1735
+
1736
+ #: embedded/includes/post-relationship.php:286
1737
+ msgid "Post deleted"
1738
+ msgstr "Post usunięto"
1739
+
1740
+ #: embedded/includes/post-relationship.php:329
1741
+ msgid "Loading..."
1742
+ msgstr "Pobieranie..."
1743
+
1744
+ #: embedded/includes/post-relationship.php:331
1745
+ msgid "Search for a entries"
1746
+ msgstr "Szukaj wpisów"
1747
+
1748
+ #: embedded/includes/post-relationship.php:334
1749
+ msgid "Please enter 1 or more character."
1750
+ msgstr "Wpisz jeden lub więcej znaków."
1751
+
1752
+ #: embedded/includes/post-relationship.php:355
1753
+ msgid "Missing child post ID %d"
1754
+ msgstr "Brak wpisu potomnego o ID %d"
1755
+
1756
+ #: embedded/includes/post-relationship.php:365
1757
+ msgid "Relationship do not exist %s -> %s"
1758
+ msgstr "Relacja nie istnieje %s -> %s"
1759
+
1760
+ #: embedded/includes/post-relationship.php:378
1761
+ msgid "Missing parent post ID %d"
1762
+ msgstr "Brak wpisu nadrzędnego o ID %d"
1763
+
1764
+ #: embedded/includes/post-relationship.php:384
1765
+ msgid "Parent post ID %d is not type of %s"
1766
+ msgstr "Post przodek o ID %d nie jest typu %s"
1767
+
1768
+ #: embedded/includes/post-relationship.php:397
1769
+ msgid "Post updated"
1770
+ msgstr "Post zaktualizowano"
1771
+
1772
+ #: embedded/includes/post-relationship.php:451
1773
+ msgid "Prev"
1774
+ msgstr "Poprzedni"
1775
+
1776
+ #: embedded/includes/post-relationship.php:478
1777
+ msgid "Next"
1778
+ msgstr "Dalej"
1779
+
1780
+ #: embedded/includes/post-relationship.php:560
1781
+ #: embedded/includes/post-relationship.php:565
1782
+ msgid "Sorry, something went wrong. The requested can not be completed."
1783
+ msgstr ""
1784
+ "Przepraszamy, ale coś poszło nie tak. Nie można dokończyć pobierania strony."
1785
+
1786
+ #: embedded/includes/promo-tabs.php:44
1787
+ msgid "Types is part of the entire toolbox"
1788
+ msgstr "Wtyczka Types jest częścią całego zestawu narzędzi"
1789
+
1790
+ #: embedded/includes/promo-tabs.php:47
1791
+ msgid "Discover what you can build with WordPress"
1792
+ msgstr "Odkryj, co możesz stworzyć z WordPressem"
1793
+
1794
+ #: embedded/includes/promo-tabs.php:50
1795
+ msgid "Learn how to make your sites interactive"
1796
+ msgstr "Naucz się, jak tworzyć interaktywne witryny"
1797
+
1798
+ #: embedded/includes/promo-tabs.php:53
1799
+ msgid "Learn how to display custom content anyway you choose"
1800
+ msgstr ""
1801
+ "Dowiedz się, jak wyświetlać zawartość niestandardową w dowolny wybrany sposób"
1802
+
1803
+ #: embedded/includes/promo-tabs.php:61
1804
+ msgid ""
1805
+ "Types lets you customize the WordPress admin, but you can do a lot more with "
1806
+ "the entire package."
1807
+ msgstr ""
1808
+ "Wtyczka Types umożliwia Ci personalizację administratora WordPressa, ale "
1809
+ "możesz zrobić znacznie więcej, korzystając z całego pakietu."
1810
+
1811
+ #: embedded/includes/promo-tabs.php:66
1812
+ msgid "Views - display custom content anyway and anywhere you like"
1813
+ msgstr ""
1814
+ "Wtyczka Views - wyświetlaj zawartość niestandardową w dowolny sposób i w "
1815
+ "dowolnym miejscu"
1816
+
1817
+ #: embedded/includes/promo-tabs.php:70
1818
+ msgid "CRED - build forms that create and edit WordPress content"
1819
+ msgstr ""
1820
+ "Wtyczka CRED - twórz formularze, które tworzą i edytują zawartość WordPressa"
1821
+
1822
+ #: embedded/includes/promo-tabs.php:74
1823
+ msgid "Access - control who can access different parts of the site"
1824
+ msgstr ""
1825
+ "Wtyczka Access - kontroluj, kto może uzyskać dostęp do różnych miejsc witryny"
1826
+
1827
+ #: embedded/includes/promo-tabs.php:81
1828
+ msgid ""
1829
+ "The complete framework lets you build powerful, flexible and interactive "
1830
+ "WordPress sites."
1831
+ msgstr ""
1832
+ "Kompletny szkielet pozwala Ci budować potężne, elastyczne i interaktywne "
1833
+ "witryny w WordPressie."
1834
+
1835
+ #: embedded/includes/promo-tabs.php:86 embedded/includes/promo-tabs.php:88
1836
+ msgid "Learn more"
1837
+ msgstr "Dowiedz się więcej"
1838
+
1839
+ #: embedded/includes/promo-tabs.php:89 embedded/includes/promo-tabs.php:146
1840
+ #: embedded/includes/promo-tabs.php:169
1841
+ msgid "Free Trial"
1842
+ msgstr "Darmowa próba"
1843
+
1844
+ #: embedded/includes/promo-tabs.php:92 embedded/includes/promo-tabs.php:94
1845
+ #: embedded/includes/promo-tabs.php:149 embedded/includes/promo-tabs.php:151
1846
+ #: embedded/includes/promo-tabs.php:172 embedded/includes/promo-tabs.php:174
1847
+ msgid "Pricing"
1848
+ msgstr "Cennik"
1849
+
1850
+ #: embedded/includes/promo-tabs.php:99
1851
+ msgid ""
1852
+ "You already know that WordPress can build a lot more than blogs, but just "
1853
+ "how much more?"
1854
+ msgstr ""
1855
+ "Już wiesz, w WordPressie możesz tworzyć o wiele więcej niż blogi, ale o ile "
1856
+ "więcej?"
1857
+
1858
+ #: embedded/includes/promo-tabs.php:104
1859
+ msgid ""
1860
+ "Learn how to build your own magazine designs, classifieds, listing, e-"
1861
+ "commerce sites and more."
1862
+ msgstr ""
1863
+ "Dowiedz się, jak tworzyć własne projekty czasopism, ogłoszeń drobnych, "
1864
+ "zestawień, witryn e-handlowych i jeszcze więcej."
1865
+
1866
+ #: embedded/includes/promo-tabs.php:109
1867
+ msgid ""
1868
+ "Discover WP is a free online learning resource, where you can launch fully-"
1869
+ "functional test sites and experiment with complete sites."
1870
+ msgstr ""
1871
+ "Discover WP to darmowe zasoby edukacyjne, gdzie możesz uruchamiać w pełni "
1872
+ "funkcjonalne witryny testowe i eksperymentować ze skończonymi witrynami."
1873
+
1874
+ #: embedded/includes/promo-tabs.php:114 embedded/includes/promo-tabs.php:116
1875
+ msgid "Get you FREE learning site"
1876
+ msgstr "Odbierz swoją DARMOWĄ witrynę edukacyjną"
1877
+
1878
+ #: embedded/includes/promo-tabs.php:123
1879
+ msgid "Need to build sites, where visitors can create and edit content?"
1880
+ msgstr ""
1881
+ "Potrzebujesz zbudować strony internetowe, na których goście będą mogli "
1882
+ "dodawać i edytować zawartość?"
1883
+
1884
+ #: embedded/includes/promo-tabs.php:128
1885
+ msgid "Meet CRED, our content-forms editor!"
1886
+ msgstr "Poznaj wtyczkę CRED, nasz edytor formularzy treści!"
1887
+
1888
+ #: embedded/includes/promo-tabs.php:133
1889
+ msgid ""
1890
+ "CRED lets you build forms that work directly on WordPress content. CRED "
1891
+ "forms include fields for standard fields, custom fields and taxonomy. "
1892
+ "Everything that you can build with Types, CRED can edit."
1893
+ msgstr ""
1894
+ "CRED umożliwia tworzenie formularzy, które działają bezpośrednio w "
1895
+ "zawartości WordPressa. Formularze CRED zawierają pola dla pól standardowych, "
1896
+ "pól niestandardowych i taksonomii. Wszystko, co można stworzyć za pomocą "
1897
+ "wtyczki Types, można edytować za pomocą CRED."
1898
+
1899
+ #: embedded/includes/promo-tabs.php:138
1900
+ msgid ""
1901
+ "CRED is a lot more than a pretty forms plugin. It's a complete development "
1902
+ "framework that lets you build powerful web applications with WordPress."
1903
+ msgstr ""
1904
+ "CRED to o wiele więcej niż wtyczka z ładnymi formularzami. Jest to kompletne "
1905
+ "środowisko do tworzenia, które umożliwia budowanie potężnych aplikacji "
1906
+ "sieciowych z wykorzystaniem WordPressa."
1907
+
1908
+ #: embedded/includes/promo-tabs.php:143 embedded/includes/promo-tabs.php:145
1909
+ msgid "Meet CRED"
1910
+ msgstr "Poznaj CRED"
1911
+
1912
+ #: embedded/includes/promo-tabs.php:156
1913
+ msgid ""
1914
+ "Views is a powerful display engine, which lets you build WordPress sites "
1915
+ "from within the admin dashboard."
1916
+ msgstr ""
1917
+ "Wtyczka Views to potężny silnik do wyświetlania, który umożliwia tworzenie "
1918
+ "stron opartych na WordPressie z poziomu panelu administratora."
1919
+
1920
+ #: embedded/includes/promo-tabs.php:161
1921
+ msgid ""
1922
+ "You can create templates for single pages, query content from the database "
1923
+ "and display it with your design."
1924
+ msgstr ""
1925
+ "Możesz tworzyć szablony dla pojedynczych stron, wyszukiwać zawartość w bazie "
1926
+ "danych i wyświetlać ją w swoim projekcie."
1927
+
1928
+ #: embedded/includes/promo-tabs.php:166 embedded/includes/promo-tabs.php:168
1929
+ msgid "Meet Views"
1930
+ msgstr "Poznaj Views"
1931
+
1932
+ #: embedded/includes/promo-tabs.php:185
1933
+ msgid ""
1934
+ "Already purchased our Toolset package? %sLog-in to wp-types.com%s to remove "
1935
+ "this information box."
1936
+ msgstr ""
1937
+ "Zakupiłeś już pakiet Toolset? %sZaloguj się do wp-types.com%s, aby usunąć to "
1938
+ "pole informacyjne."
1939
+
1940
+ #: embedded/includes/promo-tabs.php:188
1941
+ msgid ""
1942
+ "Already purchased our Toolset package? Install our Installer plugin and "
1943
+ "login to wp-types to remove this information box. %sInstructions &raquo;%s"
1944
+ msgstr ""
1945
+ "Zakupiłeś już pakiet Toolset? Zainstaluj naszą wtyczkę instalatora i zaloguj "
1946
+ "się do wp-types, aby usunąć to pole informacyjne. %sInstrukcja &raquo;%s"
1947
+
1948
+ #: embedded/includes/relationship/child-table.php:34
1949
+ msgid "Save All %s"
1950
+ msgstr "Zapisz wszystkie %s"
1951
+
1952
+ #: embedded/includes/relationship/child-table.php:56
1953
+ #: includes/post-relationship.php:123
1954
+ msgid ""
1955
+ "Repeating fields should not be used in child posts. Types will update all "
1956
+ "field values."
1957
+ msgstr ""
1958
+ "Powtarzające się pola nie powinny być używane w postach potomnych. Wtyczka "
1959
+ "Types zaktualizuje wartości wszystkich pól."
1960
+
1961
+ #: embedded/includes/relationship/child-table.php:83
1962
+ #: plus/types-access/includes/admin-edit-access.php:716
1963
+ msgid "Action"
1964
+ msgstr "Działanie"
1965
+
1966
+ #: embedded/includes/repetitive-fields-ordering.php:36
1967
+ #: embedded/includes/repetitive-usermetafields-ordering.php:36
1968
+ msgid "Add Another %s"
1969
+ msgstr "Dodaj kolejne %s"
1970
+
1971
+ #: embedded/includes/repetitive-fields-ordering.php:89
1972
+ #: embedded/includes/repetitive-usermetafields-ordering.php:89
1973
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:156
1974
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:179
1975
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:164
1976
+ #: includes/classes/class.wpcf.user.fields.list.table.php:146
1977
+ #: includes/fields/checkboxes.php:149 includes/fields/radio.php:181
1978
+ #: includes/fields/select.php:113 includes/fields-form.php:1027
1979
+ #: includes/fields-form.php:1033
1980
+ msgid "Are you sure?"
1981
+ msgstr "Na pewno?"
1982
+
1983
+ #: embedded/includes/repetitive-fields-ordering.php:111
1984
+ #: embedded/includes/repetitive-usermetafields-ordering.php:111
1985
+ msgid "Delete Field"
1986
+ msgstr "Usuń pole"
1987
+
1988
+ #: embedded/includes/usermeta-post.php:651
1989
+ msgid "Time"
1990
+ msgstr "Czas"
1991
+
1992
+ #: embedded/includes/wpml.php:1254 embedded/includes/wpml.php:1288
1993
+ msgid ""
1994
+ "<a href=\"%s\" target=\"_blank\">How to translate strings when default "
1995
+ "language is not English</a>"
1996
+ msgstr ""
1997
+ "<a href=\"%s\" target=\"_blank\">Jak przetłumaczyć jeżeli domyślny język "
1998
+ "jest inny niż angielski</a>"
1999
+
2000
+ #: embedded/plugin.php:54
2001
+ msgid ""
2002
+ "Types Embedded was <strong>deactivated</strong>! You are already running the "
2003
+ "complete Types plugin, so this one is not needed anymore."
2004
+ msgstr ""
2005
+ "Wtyczka Types Embedded została <strong>wyłączona</strong>! Korzystasz już z "
2006
+ "pełnej wersji wtyczki Types, więc ta nie jest już więcej potrzebna."
2007
+
2008
+ #: embedded/usermeta-init.php:107 includes/fields-form.php:409
2009
+ #: includes/usermeta-form.php:364
2010
+ msgid "Enter group title"
2011
+ msgstr "Wpisz tytuł grupy"
2012
+
2013
+ #: embedded/usermeta-init.php:108 includes/fields-form.php:423
2014
+ #: includes/usermeta-form.php:378
2015
+ msgid "Enter a description for this group"
2016
+ msgstr "Podaj opis tej grupy"
2017
+
2018
+ #: embedded/usermeta-init.php:110 includes/fields-form.php:1098
2019
+ msgid "Enter field name"
2020
+ msgstr "Wpisz nazwę pola"
2021
+
2022
+ #: embedded/usermeta-init.php:113 includes/fields-form.php:1110
2023
+ msgid "Enter field slug"
2024
+ msgstr "Wpisz slug pola"
2025
+
2026
+ #: embedded/usermeta-init.php:116 includes/fields-form.php:1135
2027
+ msgid "Describe this field"
2028
+ msgstr "Opisz to pole"
2029
+
2030
+ #: embedded/usermeta-init.php:153
2031
+ msgid "User Field"
2032
+ msgstr "Pole użytkownika"
2033
+
2034
+ #: embedded/usermeta-init.php:300
2035
+ msgid "%s (Usermeta fields)"
2036
+ msgstr "%s (Pola użytkownika)"
2037
+
2038
+ #: embedded/usermeta-init.php:804 embedded/usermeta-init.php:842
2039
+ msgid "User Meta Fields Frontend Access"
2040
+ msgstr "Dostęp do pól meta użytkownika z poziomu użytkownika"
2041
+
2042
+ #: embedded/usermeta-init.php:811
2043
+ msgid "View own fields in profile"
2044
+ msgstr "Wyświetlaj własne pola w profilu"
2045
+
2046
+ #: embedded/usermeta-init.php:812
2047
+ msgid "Modify own fields"
2048
+ msgstr "Modyfikuj własne pola"
2049
+
2050
+ #: embedded/usermeta-init.php:863
2051
+ msgid "User Meta Fields Access"
2052
+ msgstr "Dostęp do pól meta użytkownika"
2053
+
2054
+ #: embedded/usermeta-init.php:915
2055
+ msgid "Post Custom Fields Frontend Access"
2056
+ msgstr "Dostęp z poziomu użytkownika do niestandardowych pól postu"
2057
+
2058
+ #: embedded/usermeta-init.php:921
2059
+ msgid "View Fields In Edit Page"
2060
+ msgstr "Wyświetl pola na stronie edycji"
2061
+
2062
+ #: embedded/usermeta-init.php:922
2063
+ msgid "Modify Fields In Edit Page"
2064
+ msgstr "Modyfikuj pola na stronie edycji"
2065
+
2066
+ #: embedded/usermeta-init.php:949
2067
+ msgid "Post Fields Frontend Access"
2068
+ msgstr "Dostęp z poziomu użytkownika do pól postu"
2069
+
2070
+ #: embedded/usermeta-init.php:969
2071
+ msgid "Post Meta Fields Access"
2072
+ msgstr "Dostęp do pól meta postu"
2073
+
2074
+ #: embedded/views/editor-modal-window.php:18
2075
+ msgid "field"
2076
+ msgstr "pole"
2077
+
2078
+ #: embedded/views/editor-modal-window.php:19
2079
+ msgid "Insert shortcode"
2080
+ msgstr "Wstaw kod shortcode"
2081
+
2082
+ #: embedded/views/editor-modal-window.php:45
2083
+ #: embedded/views/editor-modal-window.php:101
2084
+ msgid "Styling"
2085
+ msgstr "Stylizacja"
2086
+
2087
+ #: embedded/views/editor-modal-window.php:46
2088
+ #: embedded/views/editor-modal-window.php:124
2089
+ msgid "Separator"
2090
+ msgstr "Separator"
2091
+
2092
+ #: embedded/views/editor-modal-window.php:47
2093
+ msgid "User"
2094
+ msgstr "Użytkownik"
2095
+
2096
+ #: embedded/views/editor-modal-window.php:48
2097
+ #: embedded/views/editor-modal-window.php:207
2098
+ msgid "Post selection"
2099
+ msgstr "Wybór wpisu"
2100
+
2101
+ #: embedded/views/editor-modal-window.php:52
2102
+ msgid "Display this field without any formatting"
2103
+ msgstr "Wyświetl pole bez formatowania"
2104
+
2105
+ #: embedded/views/editor-modal-window.php:53
2106
+ msgid "RAW mode"
2107
+ msgstr "Tryb RAW"
2108
+
2109
+ #: embedded/views/editor-modal-window.php:53
2110
+ msgid "When checked, displays raw data stored in database."
2111
+ msgstr ""
2112
+ "Kiedy opcja ta zostanie zaznaczona, wyświetlane będą surowe dane zapisane w "
2113
+ "bazie danych."
2114
+
2115
+ #: embedded/views/editor-modal-window.php:68
2116
+ msgid ""
2117
+ "RAW mode is selected. The field value will be displayed, without any "
2118
+ "formatting."
2119
+ msgstr ""
2120
+ "Wybrano tryb RAW. Wartość pola będzie wyświetlana bez żadnego formatowania."
2121
+
2122
+ #: embedded/views/editor-modal-window.php:79
2123
+ msgid "Display the field for this user"
2124
+ msgstr "Wyświetl pole dla tego użytkownika"
2125
+
2126
+ #: embedded/views/editor-modal-window.php:102
2127
+ msgid ""
2128
+ "You can style this field by applying a CSS class to it, or by entering the "
2129
+ "CSS attributes that would appear with the HTML."
2130
+ msgstr ""
2131
+ "Możesz stylizować to pole, stosując do niego klasę CSS albo wpisując "
2132
+ "atrybuty CSS, które pojawiłyby się wraz z HTML."
2133
+
2134
+ #: embedded/views/editor-modal-window.php:105
2135
+ msgid "CSS class:"
2136
+ msgstr "Klasa CSS:"
2137
+
2138
+ #: embedded/views/editor-modal-window.php:107
2139
+ msgid "enter your class names separated by a space (e.g. myclass1 myclass2)"
2140
+ msgstr ""
2141
+ "wpisz nazwy swoich klas, oddzielone spacjami (np. mojaklasa1 mojaklasa2)"
2142
+
2143
+ #: embedded/views/editor-modal-window.php:110
2144
+ msgid "CSS style:"
2145
+ msgstr "Styl CSS:"
2146
+
2147
+ #: embedded/views/editor-modal-window.php:113
2148
+ msgid "Warning"
2149
+ msgstr "Ostrzeżenie"
2150
+
2151
+ #: embedded/views/editor-modal-window.php:113
2152
+ msgid "Style is not available for %s field"
2153
+ msgstr "Styl jest niedostępny dla pola %s"
2154
+
2155
+ #: embedded/views/editor-modal-window.php:115
2156
+ msgid "enter the css for your inline style (e.g. color:red;font-weight:bold)"
2157
+ msgstr "wpisz css dla stylu w linii (np. color:red;font-weight:bold)"
2158
+
2159
+ #: embedded/views/editor-modal-window.php:126
2160
+ msgid ""
2161
+ "The separator will be displayed between each of your repeating field values"
2162
+ msgstr ""
2163
+ "Separator wyświetlany będzie pomiędzy każdą z powtarzających się wartości "
2164
+ "twoich pól"
2165
+
2166
+ #: embedded/views/editor-modal-window.php:132
2167
+ msgid "Comma"
2168
+ msgstr "Przecinek"
2169
+
2170
+ #: embedded/views/editor-modal-window.php:136
2171
+ msgid "Space"
2172
+ msgstr "Spacja"
2173
+
2174
+ #: embedded/views/editor-modal-window.php:140
2175
+ msgid "Non-breaking space"
2176
+ msgstr "Spacja nierozdzielająca"
2177
+
2178
+ #: embedded/views/editor-modal-window.php:144
2179
+ msgid "Semicolon"
2180
+ msgstr "Średnik"
2181
+
2182
+ #: embedded/views/editor-modal-window.php:148
2183
+ #: embedded/views/templates/editor-modal-date.tpl.php:47
2184
+ msgid "Custom"
2185
+ msgstr "Niestandardowy"
2186
+
2187
+ #: embedded/views/editor-modal-window.php:159
2188
+ msgid "Display this field for:"
2189
+ msgstr "Wyświetl to pole dla:"
2190
+
2191
+ #: embedded/views/editor-modal-window.php:163
2192
+ msgid "The current post being displayed either directly or in a View loop"
2193
+ msgstr "Bieżący post wyświetlany albo bezpośrednio albo w pętli widoku"
2194
+
2195
+ #: embedded/views/editor-modal-window.php:168
2196
+ msgid "The parent of the current post (WordPress parent)"
2197
+ msgstr "Rodzic bieżącego posta (rodzic WordPress)"
2198
+
2199
+ #: embedded/views/editor-modal-window.php:174
2200
+ #: embedded/views/editor-modal-window.php:187
2201
+ msgid "The parent of this post, set by Types (parent/child relationship)"
2202
+ msgstr "Rodzić wpisu, ustawiony przez Types (relacja rodzic/dziecko)"
2203
+
2204
+ #: embedded/views/editor-modal-window.php:191
2205
+ msgid "Post type"
2206
+ msgstr "Typ postu"
2207
+
2208
+ #: embedded/views/editor-modal-window.php:203
2209
+ msgid "A specific post"
2210
+ msgstr "Konkretny post"
2211
+
2212
+ #: embedded/views/editor-modal-window.php:216
2213
+ msgid "Output HTML"
2214
+ msgstr "HTML na wyjściu"
2215
+
2216
+ #: embedded/views/editor-modal-window.php:220
2217
+ msgid "Show name"
2218
+ msgstr "Pokaż nazwę"
2219
+
2220
+ #: embedded/views/templates/child-tax-category.tpl.php:14
2221
+ #: includes/custom-taxonomies-form.php:624
2222
+ msgid "Most Used"
2223
+ msgstr "Najczęściej używana"
2224
+
2225
+ #. translators: %s: add new taxonomy label
2226
+ #: embedded/views/templates/child-tax-category.tpl.php:38
2227
+ msgid "+ %s"
2228
+ msgstr "+ %s"
2229
+
2230
+ #: embedded/views/templates/child-tax-tag.tpl.php:11
2231
+ msgctxt "tag delimiter"
2232
+ msgid ","
2233
+ msgstr ","
2234
+
2235
+ #: embedded/views/templates/child-tax-tag.tpl.php:23
2236
+ #: plus/installer/templates/products-compact.php:77
2237
+ msgid "Add"
2238
+ msgstr "Dodaj"
2239
+
2240
+ #: embedded/views/templates/editor-modal-audio.tpl.php:27
2241
+ #: embedded/views/templates/editor-modal-video.tpl.php:47
2242
+ msgid "Loop"
2243
+ msgstr "Pętla"
2244
+
2245
+ #: embedded/views/templates/editor-modal-audio.tpl.php:28
2246
+ #: embedded/views/templates/editor-modal-video.tpl.php:48
2247
+ msgid "Allows for the looping of media."
2248
+ msgstr "Umożliwia odtwarzanie multimediów w pętli"
2249
+
2250
+ #: embedded/views/templates/editor-modal-audio.tpl.php:32
2251
+ #: embedded/views/templates/editor-modal-video.tpl.php:52
2252
+ msgid "Autoplay"
2253
+ msgstr "Auto-odtwarzanie"
2254
+
2255
+ #: embedded/views/templates/editor-modal-audio.tpl.php:33
2256
+ #: embedded/views/templates/editor-modal-video.tpl.php:53
2257
+ msgid ""
2258
+ "Causes the media to automatically play as soon as the media file is ready."
2259
+ msgstr ""
2260
+ "Powoduje odtwarzanie multimediów natychmiast po tym, jak plik multimedialny "
2261
+ "jest gotowy."
2262
+
2263
+ #: embedded/views/templates/editor-modal-audio.tpl.php:37
2264
+ #: embedded/views/templates/editor-modal-video.tpl.php:57
2265
+ msgid "Preload"
2266
+ msgstr "Wczytaj z wyprzedzeniem"
2267
+
2268
+ #: embedded/views/templates/editor-modal-checkbox.tpl.php:28
2269
+ #: embedded/views/templates/editor-modal-checkboxes.tpl.php:27
2270
+ #: embedded/views/templates/editor-modal-radio.tpl.php:28
2271
+ #: includes/fields/checkbox.php:100 includes/fields/checkboxes.php:199
2272
+ #: includes/fields/radio.php:116
2273
+ msgid "Display the value of this field from the database"
2274
+ msgstr "Wyświetl wartość tego pola na podstawie bazy danych"
2275
+
2276
+ #: embedded/views/templates/editor-modal-checkbox.tpl.php:32
2277
+ #: embedded/views/templates/editor-modal-checkboxes.tpl.php:36
2278
+ msgid "Enter values for 'selected' and 'not selected' states"
2279
+ msgstr "Wpisz wartości dla stanów 'wybrany' i 'niewybrany'"
2280
+
2281
+ #: embedded/views/templates/editor-modal-checkbox.tpl.php:36
2282
+ #: embedded/views/templates/editor-modal-checkboxes.tpl.php:44
2283
+ #: includes/fields/checkbox.php:126 includes/fields/checkboxes.php:225
2284
+ msgid "Selected:"
2285
+ msgstr "Wybrany:"
2286
+
2287
+ #: embedded/views/templates/editor-modal-checkbox.tpl.php:37
2288
+ #: embedded/views/templates/editor-modal-checkboxes.tpl.php:45
2289
+ #: includes/fields/checkbox.php:130 includes/fields/checkboxes.php:229
2290
+ msgid "Enter selected value"
2291
+ msgstr "Wpisz wybraną wartość"
2292
+
2293
+ #: embedded/views/templates/editor-modal-checkbox.tpl.php:40
2294
+ #: embedded/views/templates/editor-modal-checkboxes.tpl.php:48
2295
+ #: includes/fields/checkbox.php:116 includes/fields/checkboxes.php:215
2296
+ msgid "Not selected:"
2297
+ msgstr "Niewybrany:"
2298
+
2299
+ #: embedded/views/templates/editor-modal-checkbox.tpl.php:41
2300
+ #: embedded/views/templates/editor-modal-checkboxes.tpl.php:49
2301
+ #: includes/fields/checkbox.php:121 includes/fields/checkboxes.php:220
2302
+ msgid "Enter not selected value"
2303
+ msgstr "Wpisz niewybraną wartość"
2304
+
2305
+ #: embedded/views/templates/editor-modal-checkboxes.tpl.php:31
2306
+ msgid "Display all values with separator"
2307
+ msgstr "Wyświetl wszystkie wartości z separatorem"
2308
+
2309
+ #: embedded/views/templates/editor-modal-date.tpl.php:28
2310
+ msgid "Show as calendar "
2311
+ msgstr "Wyświetl jako kalendarz"
2312
+
2313
+ #: embedded/views/templates/editor-modal-date.tpl.php:32
2314
+ msgid "Show as text"
2315
+ msgstr "Wyświetl jako tekst"
2316
+
2317
+ #: embedded/views/templates/editor-modal-date.tpl.php:50
2318
+ msgid "Documentation on date and time formatting"
2319
+ msgstr "Dokumentacja dotycząca formatowania daty i godziny"
2320
+
2321
+ #: embedded/views/templates/editor-modal-email.tpl.php:26
2322
+ #: embedded/views/templates/editor-modal-url.tpl.php:28
2323
+ #: includes/custom-types-form.php:1122 includes/fields/checkboxes.php:162
2324
+ #: includes/fields/radio.php:173 includes/fields/select.php:105
2325
+ msgid "Title"
2326
+ msgstr "Tytuł"
2327
+
2328
+ #: embedded/views/templates/editor-modal-email.tpl.php:28
2329
+ #: embedded/views/templates/editor-modal-url.tpl.php:30
2330
+ msgid "If set, this text will be displayed instead of raw data"
2331
+ msgstr "Jeżeli wybrano, ten tekst będzie wyświetlany zamiast surowych danych"
2332
+
2333
+ #: embedded/views/templates/editor-modal-file.tpl.php:28
2334
+ msgid "Link title"
2335
+ msgstr "Tytuł odnośnika"
2336
+
2337
+ #: embedded/views/templates/editor-modal-image.tpl.php:32
2338
+ msgid ""
2339
+ "Remote image resize is disabled, so Types will only resize images that you "
2340
+ "upload."
2341
+ msgstr ""
2342
+ "Zmiana rozmiaru obrazów zdalnych jest wyłączona, dlatego wtyczka Types "
2343
+ "zmieni wyłącznie rozmiary obrazów, które przesyłasz."
2344
+
2345
+ #: embedded/views/templates/editor-modal-image.tpl.php:34
2346
+ msgid ""
2347
+ "Remote image resize is currently disabled, so Types will only resize images "
2348
+ "that you upload. To change, go to the %sTypes settings page%s."
2349
+ msgstr ""
2350
+ "Zmiana rozmiaru obrazów zdalnych jest aktualnie wyłączona, dlatego wtyczka "
2351
+ "Types zmieni wyłącznie rozmiary obrazów, które przesyłasz. Aby to zmienić, "
2352
+ "przejdż do %sstrony ustawień Types%s."
2353
+
2354
+ #: embedded/views/templates/editor-modal-image.tpl.php:48
2355
+ msgid "Image title"
2356
+ msgstr "Tytuł obrazu"
2357
+
2358
+ #: embedded/views/templates/editor-modal-image.tpl.php:52
2359
+ msgid "Alternative text"
2360
+ msgstr "Tekst alternatywny"
2361
+
2362
+ #: embedded/views/templates/editor-modal-image.tpl.php:58
2363
+ msgid "Position and size"
2364
+ msgstr "Położenie i rozmiar"
2365
+
2366
+ #: embedded/views/templates/editor-modal-image.tpl.php:60
2367
+ #: embedded/views/templates/editor-modal-image.tpl.php:61
2368
+ msgid "Alignment"
2369
+ msgstr "Wyrównanie"
2370
+
2371
+ #: embedded/views/templates/editor-modal-image.tpl.php:73
2372
+ #: embedded/views/templates/editor-modal-image.tpl.php:74
2373
+ msgid "Pre-defined sizes"
2374
+ msgstr "Rozmiary pre-definiowane"
2375
+
2376
+ #: embedded/views/templates/editor-modal-image.tpl.php:85
2377
+ msgid "Image resize disabled"
2378
+ msgstr "Zmiana rozmiaru obrazu wyłączona"
2379
+
2380
+ #: embedded/views/templates/editor-modal-image.tpl.php:103
2381
+ msgid ""
2382
+ "If images have a different aspect ratio than the display size, what would "
2383
+ "you like to do?"
2384
+ msgstr ""
2385
+ "Co chcesz zrobić, jeżeli obrazy będą miały inne proporcje niż rozmiar "
2386
+ "wyświetlania?"
2387
+
2388
+ #: embedded/views/templates/editor-modal-image.tpl.php:105
2389
+ msgid "Keep proportional"
2390
+ msgstr "Zachowaj proporcje"
2391
+
2392
+ #: embedded/views/templates/editor-modal-image.tpl.php:111
2393
+ msgid ""
2394
+ "Resize images to fit inside the new size. Width or height might be smaller "
2395
+ "than the specified dimensions."
2396
+ msgstr ""
2397
+ "Zmień rozmiar obrazów tak, aby pasował do nowych wymiarów. Szerokość i "
2398
+ "wysokość mogą być mniejsze niż podane wymiary."
2399
+
2400
+ #: embedded/views/templates/editor-modal-image.tpl.php:115
2401
+ msgid "Pad images, so that they fill the specified dimensions exactly."
2402
+ msgstr "Dodaj ramkę do obrazów, tak, aby dokładnie wypełniały zadane wymiary."
2403
+
2404
+ #: embedded/views/templates/editor-modal-image.tpl.php:118
2405
+ msgid "Transparent"
2406
+ msgstr "Przezroczyste"
2407
+
2408
+ #: embedded/views/templates/editor-modal-image.tpl.php:122
2409
+ msgid "Padding color"
2410
+ msgstr "Kolor ramki"
2411
+
2412
+ #: embedded/views/templates/editor-modal-image.tpl.php:127
2413
+ msgid "Crop images, so that they fill the specified dimensions exactly."
2414
+ msgstr "Przytnij obrazy tak, aby dokładnie wypełniały zadane rozmiary."
2415
+
2416
+ #: embedded/views/templates/editor-modal-image.tpl.php:134
2417
+ msgid "Output only the URL of the re-sized image instead of the img tag"
2418
+ msgstr "Wyświetl jedynie URL obrazu o zmienionych wymiarach zamiast tagu img"
2419
+
2420
+ #: embedded/views/templates/editor-modal-image.tpl.php:138
2421
+ msgid "Onload callback"
2422
+ msgstr "Onload callback"
2423
+
2424
+ #: embedded/views/templates/editor-modal-numeric.tpl.php:26
2425
+ msgid "Output format"
2426
+ msgstr "Format wyjściowy"
2427
+
2428
+ #: embedded/views/templates/editor-modal-numeric.tpl.php:30
2429
+ msgid "Use FIELD_NAME for title and FIELD_VALUE for value"
2430
+ msgstr "Użyj FIELD_NAME jako tytułu, a FIELD_VALUE jako wartości"
2431
+
2432
+ #: embedded/views/templates/editor-modal-numeric.tpl.php:32
2433
+ msgid "e.g. Value of FIELD_NAME is FIELD_VALUE"
2434
+ msgstr "np. wartością dla FIELD_NAME jest FIELD_VALUE"
2435
+
2436
+ #: embedded/views/templates/editor-modal-radio.tpl.php:32
2437
+ #: includes/fields/radio.php:123
2438
+ msgid "Show one of these values:"
2439
+ msgstr "Wyświetl jedną z tych wartości:"
2440
+
2441
+ #: embedded/views/templates/editor-modal-url.tpl.php:34
2442
+ msgid "No protocol"
2443
+ msgstr "Bez protokołu"
2444
+
2445
+ #: embedded/views/templates/editor-modal-url.tpl.php:36
2446
+ msgid "If checked, link will be rendered without http or https"
2447
+ msgstr ""
2448
+ "Jeżeli opcja ta zostanie zaznaczona, odnośniki będą tłumaczone bez http lub "
2449
+ "https"
2450
+
2451
+ #: embedded/views/templates/editor-modal-url.tpl.php:53
2452
+ msgid "Enter framename"
2453
+ msgstr "Wpisz nazwę ramki"
2454
+
2455
+ #: embedded/views/templates/editor-modal-video.tpl.php:39
2456
+ msgid "Poster"
2457
+ msgstr "Plakat"
2458
+
2459
+ #: embedded/views/templates/editor-modal-video.tpl.php:41
2460
+ msgid ""
2461
+ "URL for the poster image. Defines image to show as placeholder before the "
2462
+ "media plays."
2463
+ msgstr ""
2464
+ "URL dla obrazu plakatu. Wskazuje, jaki obraz będzie wyświetlany jako symbol "
2465
+ "zastępczy do momentu uruchomienia odtwarzania multimediów."
2466
+
2467
+ #: embedded/views/templates/skype-select-button.tpl.php:21
2468
+ msgid "Select a button from below"
2469
+ msgstr "Wybierz przycisk poniżej"
2470
+
2471
+ #: embedded/views/templates/skype-select-button.tpl.php:59
2472
+ msgid "Skype buttons with status"
2473
+ msgstr "Przyciski Skype ze statusem"
2474
+
2475
+ #: embedded/views/templates/skype-select-button.tpl.php:60
2476
+ msgid ""
2477
+ "If you choose to show your Skype status, your Skype button will always "
2478
+ "reflect your availability on Skype. This status will be shown to everyone, "
2479
+ "whether they’re in your contact list or not."
2480
+ msgstr ""
2481
+ "Jeżeli zdecydujesz się wyświetlać swój status w Skype, Twój przycisk Skype "
2482
+ "będzie zawsze odzwierciedlał Twoją dostępność w Skype. Ten status będzie "
2483
+ "widoczny dla każdego, niezależnie od tego, czy znajduje się na Twojej liście "
2484
+ "kontaktów, czy nie."
2485
+
2486
+ #: help.php:21
2487
+ msgid ""
2488
+ "Types plugin organizes custom fields in groups. Once you create a group, you "
2489
+ "can add the fields to it and control to what content it belongs."
2490
+ msgstr ""
2491
+ "Wtyczka Types organizuje własne pola w grupy. Kiedy utworzysz grupę, możesz "
2492
+ "dodawać do niej pola i kontrolować, do jakich treści ona należy."
2493
+
2494
+ #: help.php:25
2495
+ msgid "You can read more about Custom Fields in this tutorial: %s."
2496
+ msgstr ""
2497
+ "Więcej na temat pól niestandardowych dowiesz się z tego podręcznika: %s"
2498
+
2499
+ #: help.php:30
2500
+ msgid ""
2501
+ "On this page you can see your current custom field groups, as well as "
2502
+ "information about which post types and taxonomies they are attached to, and "
2503
+ "whether they are active or not."
2504
+ msgstr ""
2505
+ "Na tej stronie wyświetlane są twoje aktualne grupy pól niestandardowych, a "
2506
+ "także informacje o tym, do jakich typów postów i taksonomii zostały one "
2507
+ "dołączone oraz czy są aktywne, czy nie."
2508
+
2509
+ #: help.php:33 help.php:278
2510
+ msgid "You have the following options:"
2511
+ msgstr "Masz następujące możliwości:"
2512
+
2513
+ #: help.php:36
2514
+ msgid ""
2515
+ "Use this to add a new custom fields group which can be attached to a post "
2516
+ "type"
2517
+ msgstr ""
2518
+ "Służy do dodawania nowej grupy własnych pól, którą można dołączyć do danego "
2519
+ "typu postu"
2520
+
2521
+ #: help.php:38
2522
+ msgid "Click to edit the custom field group"
2523
+ msgstr "Kliknij, aby edytować grupę własnych pól"
2524
+
2525
+ #: help.php:39 help.php:284
2526
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:282
2527
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:297
2528
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:289
2529
+ #: includes/classes/class.wpcf.user.fields.list.table.php:271
2530
+ #: includes/custom-taxonomies.php:21 includes/custom-types.php:21
2531
+ #: includes/fields.php:648 includes/usermeta.php:19
2532
+ #: plus/installer/templates/downloads-list-compact.php:12
2533
+ msgid "Activate"
2534
+ msgstr "Włącz"
2535
+
2536
+ #: help.php:40
2537
+ msgid "Click to activate a custom field group"
2538
+ msgstr "Kliknij, aby włączyć grupę własnych pól"
2539
+
2540
+ #: help.php:41 help.php:123 help.php:155 help.php:286
2541
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:283
2542
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:298
2543
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:290
2544
+ #: includes/classes/class.wpcf.user.fields.list.table.php:272
2545
+ #: includes/custom-taxonomies.php:38 includes/custom-types.php:37
2546
+ #: includes/fields.php:663 includes/usermeta.php:33
2547
+ msgid "Deactivate"
2548
+ msgstr "Wyłącz"
2549
+
2550
+ #: help.php:42
2551
+ msgid ""
2552
+ "Click to deactivate a custom field group (this can be re-activated at a "
2553
+ "later date)"
2554
+ msgstr ""
2555
+ "Kliknij, aby wyłączyć grupę pól niestandardowych (można ją ponownie włączyć "
2556
+ "później)"
2557
+
2558
+ #: help.php:44
2559
+ msgid "Click to delete a custom field group."
2560
+ msgstr "Kliknij, aby włączyć grupę własnych pól."
2561
+
2562
+ #: help.php:46 help.php:130 help.php:162 help.php:291
2563
+ msgid "Warning: This cannot be undone."
2564
+ msgstr "Uwaga: tej czynności nie można cofnąć."
2565
+
2566
+ #: help.php:53
2567
+ msgid "Custom fields"
2568
+ msgstr "Własne pola"
2569
+
2570
+ #: help.php:57
2571
+ msgid "Adding custom fields to content"
2572
+ msgstr "Dodawanie pól niestandardowych do zawartości"
2573
+
2574
+ #: help.php:61
2575
+ msgid "Displaying custom fields on front-end"
2576
+ msgstr "Wyświetlanie pól niestandardowych po stronie użtykownika"
2577
+
2578
+ #: help.php:69
2579
+ msgid "Adding user fields to user profiles"
2580
+ msgstr "Dodawanie pól użytkowników do profili użytkowników"
2581
+
2582
+ #: help.php:73
2583
+ msgid "Displaying user fields on front-end"
2584
+ msgstr "Wyświetlanie pól użytkownika z poziomu użytkownika"
2585
+
2586
+ #: help.php:77
2587
+ msgid "Custom post types and taxonomy"
2588
+ msgstr "Własne typy wpisów i taksonomie"
2589
+
2590
+ #: help.php:81
2591
+ msgid "Creating and using custom post types"
2592
+ msgstr "Tworzenie i używanie niestandardowych typów postów"
2593
+
2594
+ #: help.php:85
2595
+ msgid "Arranging content with taxonomy"
2596
+ msgstr "Organizowanie treści za pomocą taksonomi"
2597
+
2598
+ #: help.php:89
2599
+ msgid "Creating parent / child relationships"
2600
+ msgstr "Tworzenie relacji przodek/potomek"
2601
+
2602
+ #: help.php:93
2603
+ msgid "Access control"
2604
+ msgstr "Kontrola Access"
2605
+
2606
+ #: help.php:97
2607
+ msgid "Controlling which users can view and edit different fields"
2608
+ msgstr ""
2609
+ "Kontrolowanie, którzy użytkownicy mogą wyświetlać i edytować różne pola"
2610
+
2611
+ #: help.php:101
2612
+ msgid "Controlling which users can access different post types"
2613
+ msgstr ""
2614
+ "Kontrolowanie, którzy użytkownicy mogą uzyskiwać dostęp do różnych typów "
2615
+ "postów"
2616
+
2617
+ #: help.php:108
2618
+ msgid ""
2619
+ "This is the your Custom Taxonomies list. It provides you with an overview of "
2620
+ "your data."
2621
+ msgstr "Lista własnych taksonomii wyświetla podstawowe informacje."
2622
+
2623
+ #: help.php:112 help.php:144
2624
+ msgid ""
2625
+ "You can read more about Custom Post Types and Taxonomies in this tutorial. %s"
2626
+ msgstr ""
2627
+ "Więcej na temat typów postów niestandardowych i taksonomii można przyczytać "
2628
+ "w tym podręczniku. %s"
2629
+
2630
+ #: help.php:117 help.php:149 help.php:174
2631
+ msgid "On this page you have the following options:"
2632
+ msgstr "Na tej stronie dostępne są następujące opcje:"
2633
+
2634
+ #: help.php:120
2635
+ msgid "Use to create a new Custom Taxonomy"
2636
+ msgstr "Użyj aby stworzyć własną taksonomię"
2637
+
2638
+ #: help.php:122
2639
+ msgid "Click to edit the settings of a Custom Taxonomy"
2640
+ msgstr "Kliknij żeby edytować ustawienia własnej taksonomii"
2641
+
2642
+ #: help.php:124
2643
+ msgid ""
2644
+ "Click to deactivate a Custom Taxonomy (this can be reactivated at a later "
2645
+ "date)"
2646
+ msgstr ""
2647
+ "Kliknij, aby wyłączyć grupę pól niestandardowych (można ją ponownie włączyć "
2648
+ "później)"
2649
+
2650
+ #: help.php:125 help.php:157
2651
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:167
2652
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:152
2653
+ msgid "Duplicate"
2654
+ msgstr "Powiel"
2655
+
2656
+ #: help.php:126
2657
+ msgid "Click to duplicate a Custom Taxonomy"
2658
+ msgstr "Kliknij aby powielić własną taksonomię"
2659
+
2660
+ #: help.php:128
2661
+ msgid "Click to delete a Custom Taxonomy."
2662
+ msgstr "Kliknij aby powielić własną taksonomię."
2663
+
2664
+ #: help.php:137
2665
+ msgid ""
2666
+ "This is the main admin page for built-in Post Types and your Custom Post "
2667
+ "Types. It provides you with an overview of your data."
2668
+ msgstr ""
2669
+ "Głowny ekran zarządzania typami wpisów - zarówno wbudowanymi, jak i "
2670
+ "własnymi. Widać na niem podstawowe informacje związane z typami."
2671
+
2672
+ #: help.php:140
2673
+ msgid "Post Types are built-in and user-defined content types."
2674
+ msgstr "Typy wpisów dzielą się na wbudowane oraz własne."
2675
+
2676
+ #: help.php:152
2677
+ msgid "Use to create a new Custom Post Type"
2678
+ msgstr "Tworzenie i używanie własnych typów postów"
2679
+
2680
+ #: help.php:154
2681
+ msgid "Click to edit the settings of a Post Type"
2682
+ msgstr "Edytuj typ wpisu"
2683
+
2684
+ #: help.php:156
2685
+ msgid ""
2686
+ "Click to deactivate a Custom Post Type (this can be reactivated at a later "
2687
+ "date)"
2688
+ msgstr ""
2689
+ "Kliknij, aby wyłączyć grupę pól niestandardowych (można ją ponownie włączyć "
2690
+ "później)"
2691
+
2692
+ #: help.php:158
2693
+ msgid "Click to duplicate a Custom Post Type"
2694
+ msgstr "Kliknij żeby powielić własny typ wpisu."
2695
+
2696
+ #: help.php:160
2697
+ msgid "Click to delete a Custom Post Type."
2698
+ msgstr "Tworzenie i używanie własnych typów postów."
2699
+
2700
+ #: help.php:171
2701
+ msgid ""
2702
+ "Use this page to import and export custom post types, taxonomies and custom "
2703
+ "fields to and from Types."
2704
+ msgstr ""
2705
+ "Skorzystaj z tej strony, aby importować lub eksportować niestandardowe typy "
2706
+ "postów, taksonomie lub pola niestandardowe do i z wtyczki Types."
2707
+
2708
+ #: help.php:176 includes/import-export.php:215
2709
+ msgid "Import Types data file"
2710
+ msgstr "Importuj plik danych wtyczki Types"
2711
+
2712
+ #: help.php:178 help.php:186
2713
+ msgid "Step 1:"
2714
+ msgstr "Krok pierwszy:"
2715
+
2716
+ #: help.php:179
2717
+ msgid "Choose and upload an XML file."
2718
+ msgstr "Wybierz i prześlij plik XML."
2719
+
2720
+ #: help.php:180 help.php:188
2721
+ msgid "Step 2:"
2722
+ msgstr "Krok drugi:"
2723
+
2724
+ #: help.php:181 help.php:189
2725
+ msgid ""
2726
+ "Select which custom post types, taxonomies and custom fields should be "
2727
+ "imported."
2728
+ msgstr ""
2729
+ "Wybierz, które Własne typy postów, taksonomie i pola mają zostać "
2730
+ "zaimportowane."
2731
+
2732
+ #: help.php:184 includes/import-export.php:238
2733
+ msgid "Import Types data text input"
2734
+ msgstr "Importuj wejście tekstowe danych wtyczki Types"
2735
+
2736
+ #: help.php:187
2737
+ msgid "Paste XML content directly into the text area."
2738
+ msgstr "Wklej w pole zawartość w fromacie XML."
2739
+
2740
+ #: help.php:192 includes/import-export.php:196
2741
+ msgid "Export"
2742
+ msgstr "Eksportuj"
2743
+
2744
+ #: help.php:193
2745
+ msgid "Click Export to export data from Types as an XML file."
2746
+ msgstr ""
2747
+ "Kliknij Eksportuj, aby wyeksportować dane z wtyczki Types lub pliku XML."
2748
+
2749
+ #: help.php:200
2750
+ msgid "This is the edit page for your Custom Fields Groups."
2751
+ msgstr "To jest strona edycji twoich grup pól niestandardowych."
2752
+
2753
+ #: help.php:204
2754
+ msgid "You can read more about creating a Custom Fields Group here: %s"
2755
+ msgstr ""
2756
+ "Tutaj możesz przeczytać więcej na temat tworzenia grup pól niestandardowych: "
2757
+ "%s"
2758
+
2759
+ #: help.php:209
2760
+ msgid ""
2761
+ "On this page you can create and edit your groups. To create a group, do the "
2762
+ "following:"
2763
+ msgstr ""
2764
+ "Na tej stronie możesz tworzyć i edytować swoje grupy. Aby utworzyć grupę, "
2765
+ "wykonaj następujące czynności:"
2766
+
2767
+ #: help.php:211 help.php:304
2768
+ msgid "Add a Title"
2769
+ msgstr "Dodaj tytuł"
2770
+
2771
+ #: help.php:213
2772
+ msgid ""
2773
+ "Choose where to display your group. You can attach this to both default "
2774
+ "WordPress post types and Custom Post Types. (nb: you can also associate "
2775
+ "taxonomy terms with Custom Field Groups)"
2776
+ msgstr ""
2777
+ "Wybierz, gdzie twoja grupa ma być wyświetlana. Możesz dołączyć ją zarówno do "
2778
+ "domyślnych typów postów WordPressa, jak i do niestandardowych typów postów "
2779
+ "(pamiętaj, że możesz także kojarzyć frazy taksonomii z grupami pól "
2780
+ "niestandardowych)"
2781
+
2782
+ #: help.php:215
2783
+ msgid ""
2784
+ "To add a field click on the field you desire under “Available Fields” on the "
2785
+ "right hand side of your screen.This will be added to your Custom Field Group"
2786
+ msgstr ""
2787
+ "Aby dodać pole, kliknij na wybranym polu pod etykietą “Dostępne pola” po "
2788
+ "prawej stronie ekranu. Zostanie ono dodane do twojej grupy pól "
2789
+ "niestandardowych"
2790
+
2791
+ #: help.php:217
2792
+ msgid "Add information about your Custom Field"
2793
+ msgstr "Dodaj informację o swoim polu niestandardowym"
2794
+
2795
+ #: help.php:219 help.php:312
2796
+ msgid "Tips"
2797
+ msgstr "Porady"
2798
+
2799
+ #: help.php:221 help.php:314
2800
+ msgid ""
2801
+ "To ensure a user completes a field, check the box for validation required"
2802
+ msgstr ""
2803
+ "Aby mieć pewność, że użytkownik wypełni pole, zaznacz pole wymagania "
2804
+ "walidacji"
2805
+
2806
+ #: help.php:223 help.php:316
2807
+ msgid ""
2808
+ "Once you have created a field it will be saved for future use under \"User "
2809
+ "created fields\""
2810
+ msgstr ""
2811
+ "Po utworzeniu pola zostanie ona zapisane do przyszłego wykorzystania pod "
2812
+ "etykietą \"Pola stworzone przez użytkownika\""
2813
+
2814
+ #: help.php:225 help.php:318
2815
+ msgid ""
2816
+ "You can drag and drop the order of your custom fields using the blue icon"
2817
+ msgstr ""
2818
+ "Możesz zmieniać kolejność swoich pól standardowych przez przeciąganie i "
2819
+ "upuszczanie, korzystając z niebieskiej ikony"
2820
+
2821
+ #: help.php:232
2822
+ msgid ""
2823
+ "Use this page to create a WordPress post type. If you’d like to learn more "
2824
+ "about Custom Post Types you can read our detailed guide: <a href=\"http://wp-"
2825
+ "types.com/learn/custom-post-types/\" target=\"_blank\">http://wp-types.com/"
2826
+ "learn/custom-post-types/</a> or check out our tutorial on creating them with "
2827
+ "Types: <a href=\"http://wp-types.com/user-guides/create-a-custom-post-type/"
2828
+ "\" target=\"_blank\">http://wp-types.com/user-guides/create-a-custom-post-"
2829
+ "type/ &raquo;</a>"
2830
+ msgstr ""
2831
+ "Ta strona służy do tworzenia typu postu WordPressa. Jeżeli chcesz dowiedzieć "
2832
+ "się więcej na tama niestandardowych typów postów, możesz przeczytać "
2833
+ "szczegółowy podręcznik: <a href=\"http://wp-types.com/learn/custom-post-"
2834
+ "types/\" target=\"_blank\">http://wp-types.com/learn/custom-post-types/</a> "
2835
+ "albo przejrzeć nasz podręcznik tworzenia ich za pomocą wtyczki Types: <a "
2836
+ "href=\"http://wp-types.com/user-guides/create-a-custom-post-type/\" target="
2837
+ "\"_blank\">http://wp-types.com/user-guides/create-a-custom-post-type/ &raquo;"
2838
+ "</a>"
2839
+
2840
+ #: help.php:235 help.php:258
2841
+ msgid "Name and Description"
2842
+ msgstr "Nazwa i opis"
2843
+
2844
+ #: help.php:236
2845
+ msgid ""
2846
+ "Add a singular and plural name for your post type. You should also add a "
2847
+ "slug. This will be created from the post type name if none is added."
2848
+ msgstr ""
2849
+ "Dodaj swojemu typowi postu nazwę w liczbie pojedynczej lub mnogiej. Musisz "
2850
+ "także dodać slug. Zostanie on utworzony na podstawie nazwy typu postu, "
2851
+ "jeżeli nic nie wpiszesz."
2852
+
2853
+ #: help.php:237 help.php:260 includes/custom-taxonomies-form.php:500
2854
+ #: includes/custom-types-form.php:944
2855
+ msgid "Visibility"
2856
+ msgstr "Widoczność"
2857
+
2858
+ #: help.php:238
2859
+ msgid ""
2860
+ "Determine whether your post type will be visible on the admin menu to your "
2861
+ "users."
2862
+ msgstr ""
2863
+ "Określ, czy twój typ postu będzie widoczny dla twoich użytkowników w menu "
2864
+ "administratora"
2865
+
2866
+ #: help.php:239
2867
+ msgid ""
2868
+ "You can also adjust the menu position. The default position is 20, which "
2869
+ "means your post type will appear under “Pages”. You can find more "
2870
+ "information about menu positioning in the WordPress Codex. <a href=\"http://"
2871
+ "codex.wordpress.org/Function_Reference/register_post_type#Parameters\" "
2872
+ "target=\"_blank\">http://codex.wordpress.org/Function_Reference/"
2873
+ "register_post_type#Parameters</a>"
2874
+ msgstr ""
2875
+ "Możesz także określić jego położenie w menu. Położenie domyślne to 20, co "
2876
+ "oznacza, że twój typ postu pojawi się pod etykietą \"Strony\". Więcej "
2877
+ "informacji na tema położenia w menu znajdziesz w dokumentacji WordPressa. <a "
2878
+ "href=\"http://codex.wordpress.org/Function_Reference/"
2879
+ "register_post_type#Parameters\" target=\"_blank\">http://codex.wordpress.org/"
2880
+ "Function_Reference/register_post_type#Parameters</a>"
2881
+
2882
+ #: help.php:240
2883
+ msgid ""
2884
+ "The default post type icon is the pushpin icon that appears beside WordPress "
2885
+ "posts. You can change this by adding your own icon of 16px x 16px."
2886
+ msgstr ""
2887
+ "Domyślną ikoną typu postu jest ikona z pinezką, która wyświetlana jest obok "
2888
+ "postów WordPressa. Możesz ją zmienić, dodając swoją własną ikonę 16px x 16px."
2889
+
2890
+ #: help.php:241 includes/custom-types-form.php:1022
2891
+ msgid "Select Taxonomies"
2892
+ msgstr "Wybierz taksonomie"
2893
+
2894
+ #: help.php:242
2895
+ msgid "Choose which taxonomies are to be associated with this post type."
2896
+ msgstr "Wybierz, które taksonomie mają być skojarzone z tym typem postu."
2897
+
2898
+ #: help.php:243 help.php:264 includes/custom-taxonomies-form.php:634
2899
+ #: includes/custom-types-form.php:1043
2900
+ msgid "Labels"
2901
+ msgstr "Etykiety"
2902
+
2903
+ #: help.php:244
2904
+ msgid ""
2905
+ "Labels are the text that is attached to your custom post type name. Examples "
2906
+ "of them in use are “Add New Post” (where “Add New” is the label”) and “Edit "
2907
+ "Post” (where “Edit” is the label). In normal circumstances the defaults will "
2908
+ "suffice."
2909
+ msgstr ""
2910
+ "Etykiety to tekst, który jest dołączany do nazwy stworzonego przez ciebie "
2911
+ "typu postu. Ich przykładami w użyciu są \"Dodaj nowy post\" (gdzie \"Dodaj "
2912
+ "nowy\" jest etykietą) oraz \"Edytuj post\" (gdzie \"Edytuj\" jest etykietą). "
2913
+ "W normalnych warunkach etykiety domyślne są wystarczające."
2914
+
2915
+ #: help.php:245 includes/custom-types-form.php:1117
2916
+ msgid "Custom Post Properites"
2917
+ msgstr "Właściwości"
2918
+
2919
+ #: help.php:246
2920
+ msgid "Choose which sections to display on your “Add New” page."
2921
+ msgstr ""
2922
+ "Wybierz, które sekcje będą wyświetlane na twojej stronie \"Dodaj nowy\"."
2923
+
2924
+ #: help.php:247
2925
+ msgid "Advanced Settings"
2926
+ msgstr "Ustawienia zaawansowane"
2927
+
2928
+ #: help.php:248
2929
+ msgid ""
2930
+ "Advanced settings give you even more control over your custom post type. You "
2931
+ "can read in detail what all of these settings do on our tutorial."
2932
+ msgstr ""
2933
+ "Ustawienia zaawansowane dają ci jeszcze więcej kontroli nad tworzonym przez "
2934
+ "ciebie niestandardowym typem postu. Szczegóły dotyczące działania każdego z "
2935
+ "tych ustawień znajdziesz w naszym podręczniku."
2936
+
2937
+ #: help.php:256
2938
+ msgid ""
2939
+ "You can use Custom Taxonomies to categorize your content. Read more about "
2940
+ "what they are on our website: <a href=\"http://wp-types.com/learn/custom-"
2941
+ "post-types/\" target=\"_blank\">http://wp-types.com/learn/custom-post-types/ "
2942
+ "&raquo;</a> or you can read our guide about how to set them up: <a href="
2943
+ "\"http://wp-types.com/user-guides/create-custom-taxonomies/\" target=\"_blank"
2944
+ "\">http://wp-types.com/user-guides/create-custom-taxonomies/</a>"
2945
+ msgstr ""
2946
+ "Możesz korzystać z taksonomii niestandardowych, aby kategoryzować tworzoną "
2947
+ "przez ciebie zawartość. Więcej o tym, czym one są przeczytasz na naszej "
2948
+ "stronie: <a href=\"http://wp-types.com/learn/custom-post-types/\" target="
2949
+ "\"_blank\">http://wp-types.com/learn/custom-post-types/ &raquo;</a> albo "
2950
+ "przeczytaj nasz podręcznik na temat ich ustawiania: <a href=\"http://wp-"
2951
+ "types.com/user-guides/create-custom-taxonomies/\" target=\"_blank\">http://"
2952
+ "wp-types.com/user-guides/create-custom-taxonomies/</a>"
2953
+
2954
+ #: help.php:259
2955
+ msgid ""
2956
+ "Add a singular and plural name for your taxonomy. You should also add a "
2957
+ "slug. This will be created from the taxonomy name if none is added."
2958
+ msgstr ""
2959
+ "Nadaj taksonomii nazwę w liczbie pojedynczej lub mnogiej. Musisz także dodać "
2960
+ "slug. Jeżeli nie zostanie on dodany, będzie utworzony z nazwy taksonomii."
2961
+
2962
+ #: help.php:261
2963
+ msgid ""
2964
+ "Determine whether your taxonomy will be visible on the admin menu to your "
2965
+ "users."
2966
+ msgstr ""
2967
+ "Określ, czy twój typ postu będzie widoczny dla twoich użytkowników w menu "
2968
+ "administratora."
2969
+
2970
+ #: help.php:262 includes/custom-taxonomies-form.php:544
2971
+ msgid "Select Post Types"
2972
+ msgstr "Wybierz typy postów"
2973
+
2974
+ #: help.php:263
2975
+ msgid "Choose which post types this taxonomy should be associated with."
2976
+ msgstr "Wybierz typy postów, z którymi należy skojarzyć tę taksonomię."
2977
+
2978
+ #: help.php:265
2979
+ msgid ""
2980
+ "Labels are the text that is attached to your custom taxonomy name. Examples "
2981
+ "of them in use are “Add New Taxonomy” (where “Add New” is the label”) and "
2982
+ "“Edit Taxonomy” (where “Edit” is the label). In normal circumstances the "
2983
+ "defaults will suffice."
2984
+ msgstr ""
2985
+ "Etykiety to tekst, który jest dołączany do nazwy stworzonego przez ciebie "
2986
+ "typu postu. Ich przykładami w użyciu są \"Dodaj nowy post\" (gdzie \"Dodaj "
2987
+ "nowy\" jest etykietą) oraz \"Edytuj post\" (gdzie \"Edytuj\" jest etykietą). "
2988
+ "W normalnych warunkach etykiety domyślne są wystarczające."
2989
+
2990
+ #: help.php:266 includes/custom-taxonomies-form.php:656
2991
+ #: includes/custom-types-form.php:1217 includes/fields/radio.php:44
2992
+ #: includes/fields/select.php:44
2993
+ msgid "Options"
2994
+ msgstr "Opcje"
2995
+
2996
+ #: help.php:267
2997
+ msgid ""
2998
+ "Advanced settings give you even more control over your custom taxonomy. You "
2999
+ "can read in detail what all of these settings do on our tutorial."
3000
+ msgstr ""
3001
+ "Ustawienia zaawansowane dają ci jeszcze więcej kontroli nad tworzonym przez "
3002
+ "ciebie niestandardowym typem postu. Szczegóły dotyczące działania każdego z "
3003
+ "tych ustawień znajdziesz w naszym podręczniku."
3004
+
3005
+ #: help.php:274
3006
+ msgid ""
3007
+ "Types plugin organizes User Fields in groups. Once you create a group, you "
3008
+ "can add the fields to it and control to what content it belongs."
3009
+ msgstr ""
3010
+ "Wtyczka Types organizuje pola niestandardowe w grupy. Kiedy utworzysz grupę, "
3011
+ "możesz dodawać do niej pola i kontrolować, do jakich treści ona należy."
3012
+
3013
+ #: help.php:277
3014
+ msgid ""
3015
+ "On this page you can see your current User Fields groups, as well as "
3016
+ "information about which user role they are attached to, and whether they are "
3017
+ "active or not."
3018
+ msgstr ""
3019
+ "Na tej stronie wyświetlane są twoje aktualne grupy pól niestandardowych, a "
3020
+ "także informacje o tym, do jakich typów postów i taksonomii zostały one "
3021
+ "dołączone oraz czy są aktywne, czy nie."
3022
+
3023
+ #: help.php:281
3024
+ msgid "Use this to add a new User Fields Group"
3025
+ msgstr "Kliknij, aby dodać grupę pól użytkownika"
3026
+
3027
+ #: help.php:283
3028
+ msgid "Click to edit the User Fields Group"
3029
+ msgstr "Kliknij, aby edytować grupę pól użytkownika"
3030
+
3031
+ #: help.php:285
3032
+ msgid "Click to activate a User Fields Group"
3033
+ msgstr "Kliknij, aby włączyć grupę pól użytkownika"
3034
+
3035
+ #: help.php:287
3036
+ msgid ""
3037
+ "Click to deactivate a User Fields Group (this can be re-activated at a later "
3038
+ "date)"
3039
+ msgstr ""
3040
+ "Kliknij, aby wyłączyć grupę pól użytkownika (można ją ponownie włączyć "
3041
+ "później)"
3042
+
3043
+ #: help.php:289
3044
+ msgid "Click to delete a User Fields Group."
3045
+ msgstr "Kliknij, aby włączyć grupę pól użytkownika."
3046
+
3047
+ #: help.php:299
3048
+ msgid "This is the edit page for your User Fields Group."
3049
+ msgstr "To jest strona edycji twoich grup pól użytkownika."
3050
+
3051
+ #: help.php:302
3052
+ msgid ""
3053
+ "On this page you can create and edit your group. To create a group, do the "
3054
+ "following:"
3055
+ msgstr ""
3056
+ "Na tej stronie możesz tworzyć i edytować swoje grupy. Aby utworzyć grupę, "
3057
+ "wykonaj następujące czynności:"
3058
+
3059
+ #: help.php:306
3060
+ msgid ""
3061
+ "Choose where to display your group. You can attach this to both default "
3062
+ "WordPress post types and User Post Types. (nb: you can also associate "
3063
+ "taxonomy terms with User Field Groups)"
3064
+ msgstr ""
3065
+ "Wybierz, gdzie twoja grupa ma być wyświetlana. Możesz dołączyć ją zarówno do "
3066
+ "domyślnych typów postów WordPressa, jak i do niestandardowych typów postów "
3067
+ "(pamiętaj, że możesz także kojarzyć frazy taksonomii z grupami pól "
3068
+ "niestandardowych)"
3069
+
3070
+ #: help.php:308
3071
+ msgid ""
3072
+ "To add a field click on the field you desire under “Available Fields” on the "
3073
+ "right hand side of your screen. This will be added to your User Field Group"
3074
+ msgstr ""
3075
+ "Aby dodać pole, kliknij na wybranym polu pod etykietą “Dostępne pola” po "
3076
+ "prawej stronie ekranu. Zostanie ono dodane do twojej grupy pól "
3077
+ "niestandardowych"
3078
+
3079
+ #: help.php:310
3080
+ msgid "Add information about your User Field"
3081
+ msgstr "Dodaj informację o polu użytkownika"
3082
+
3083
+ #: help.php:341
3084
+ msgid "Post Type"
3085
+ msgstr "Typ wpisu"
3086
+
3087
+ #: help.php:361
3088
+ msgid "Custom Fields Group"
3089
+ msgstr "Grupa własnych pól"
3090
+
3091
+ #: help.php:369
3092
+ msgid "User Fields Group"
3093
+ msgstr "Grupę pól użytkownika"
3094
+
3095
+ #: help.php:390
3096
+ msgid "Need More Help?"
3097
+ msgstr "Potrzebujesz pomocy?"
3098
+
3099
+ #: includes/ajax.php:34 includes/ajax.php:63 includes/ajax.php:83
3100
+ #: includes/ajax.php:836
3101
+ msgid "Missing required data."
3102
+ msgstr "Brak wymaganych danych."
3103
+
3104
+ #: includes/ajax.php:51 includes/ajax.php:71 includes/ajax.php:91
3105
+ #: includes/ajax.php:125
3106
+ msgid "Verification failed."
3107
+ msgstr "Niepowodzenie weryfikacji."
3108
+
3109
+ #: includes/ajax.php:180 includes/ajax.php:259
3110
+ msgid "Group deactivated"
3111
+ msgstr "Grupa nieaktywna"
3112
+
3113
+ #: includes/ajax.php:198 includes/ajax.php:275
3114
+ msgid "Group activated"
3115
+ msgstr "Grupa aktywna"
3116
+
3117
+ #: includes/ajax.php:308
3118
+ msgid "Post type deactivated"
3119
+ msgstr "Typ postu nieaktywny"
3120
+
3121
+ #: includes/ajax.php:326
3122
+ msgid "Post type activated"
3123
+ msgstr "Typ postu aktywny"
3124
+
3125
+ #: includes/ajax.php:528
3126
+ msgid "Taxonomy deactivated"
3127
+ msgstr "Taksonomia nieaktywna"
3128
+
3129
+ #: includes/ajax.php:550
3130
+ msgid "Taxonomy activated"
3131
+ msgstr "Taksonomia aktywna"
3132
+
3133
+ #: includes/ajax.php:719
3134
+ msgid ""
3135
+ "Migration process is not yet finished - please save group first, then change "
3136
+ "settings of this field."
3137
+ msgstr ""
3138
+ "Proces migracji nie został jeszcze zakończony - najpierw zapisz grupę, a "
3139
+ "potem zmień ustawienia dla tego pola."
3140
+
3141
+ #: includes/ajax.php:728
3142
+ msgid "%d users require update"
3143
+ msgstr "Wymagana aktualizacja %d użytkowników"
3144
+
3145
+ #: includes/ajax.php:728
3146
+ msgid "%d posts require update"
3147
+ msgstr "Wymagana aktualizacja %d postów"
3148
+
3149
+ #: includes/ajax.php:729
3150
+ msgid "No users require update"
3151
+ msgstr "Żaden użytkownik nie wymaga aktualizacji"
3152
+
3153
+ #: includes/ajax.php:729
3154
+ msgid "No posts require update"
3155
+ msgstr "Żaden post nie wymaga aktualizacji"
3156
+
3157
+ #: includes/ajax.php:730
3158
+ msgid "Users updated"
3159
+ msgstr "Zaktualizowano użytkowników"
3160
+
3161
+ #: includes/ajax.php:730
3162
+ msgid "Posts updated"
3163
+ msgstr "Zaktualizowano posty"
3164
+
3165
+ #: includes/ajax.php:753 includes/import-export.php:378
3166
+ #: includes/import-export.php:487
3167
+ msgid "Update"
3168
+ msgstr "Aktualizacja"
3169
+
3170
+ #: includes/ajax.php:769
3171
+ msgid "Error occured"
3172
+ msgstr "Wystąpił błąd"
3173
+
3174
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:88
3175
+ msgid "All post types"
3176
+ msgstr "Wszystkie typy postów"
3177
+
3178
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:107
3179
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:101
3180
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:99
3181
+ #: includes/classes/class.wpcf.user.fields.list.table.php:97
3182
+ msgid "No"
3183
+ msgstr "Nie"
3184
+
3185
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:227
3186
+ #: includes/classes/class.wpcf.user.fields.list.table.php:217
3187
+ msgid "Group Name"
3188
+ msgstr "Nazwa grupy"
3189
+
3190
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:229
3191
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:250
3192
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:237
3193
+ #: includes/classes/class.wpcf.user.fields.list.table.php:219
3194
+ msgid "Active"
3195
+ msgstr "Aktywny"
3196
+
3197
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:230
3198
+ #: plus/types-access/includes/admin-edit-access.php:55
3199
+ msgid "Post types"
3200
+ msgstr "Typy postów"
3201
+
3202
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:543
3203
+ msgid "No custom field groups found."
3204
+ msgstr "Nie znaleziono grup pól niestandardowych."
3205
+
3206
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:548
3207
+ msgid "To use custom fields, please create a group to hold them."
3208
+ msgstr ""
3209
+ "Aby korzystać z pól niestandardowych, stwórz grupę do ich przechowywania."
3210
+
3211
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:248
3212
+ msgid "Post Type Name"
3213
+ msgstr "Nazwa typu postu"
3214
+
3215
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:509
3216
+ msgid "This is build-in WordPress post type."
3217
+ msgstr "Wbudowany typ wpisu."
3218
+
3219
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:598
3220
+ msgid "No custom post types found."
3221
+ msgstr "Nie znaleziono niestandardowych typów wpisów."
3222
+
3223
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:235
3224
+ msgid "Taxonomy Name"
3225
+ msgstr "Nazwa taksonomii"
3226
+
3227
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:536
3228
+ msgid "No custom taxonomies found."
3229
+ msgstr "Nie znaleziono taksonomii niestandardowych."
3230
+
3231
+ #: includes/classes/class.wpcf.marketing.messages.php:153
3232
+ msgid "Posts"
3233
+ msgstr "Posty"
3234
+
3235
+ #: includes/classes/class.wpcf.marketing.messages.php:154
3236
+ msgid "Tags"
3237
+ msgstr "Tagi"
3238
+
3239
+ #: includes/classes/class.wpcf.marketing.messages.php:169
3240
+ msgid "Saving your changes"
3241
+ msgstr "Zapisywanie zmian"
3242
+
3243
+ #: includes/classes/class.wpcf.marketing.messages.php:171
3244
+ msgid "Did you know?"
3245
+ msgstr "Czy wiesz, że...?"
3246
+
3247
+ #: includes/classes/class.wpcf.marketing.messages.php:269
3248
+ msgid "Updated!"
3249
+ msgstr "Zaktualizowano!"
3250
+
3251
+ #: includes/classes/class.wpcf.marketing.messages.php:269
3252
+ msgid "Created!"
3253
+ msgstr "Utworzono!"
3254
+
3255
+ #: includes/classes/class.wpcf.marketing.messages.php:321
3256
+ msgid "Need help with <em>Types</em>?"
3257
+ msgstr "Potrzebujesz pomocy do wtyczki <em>Types</em>?"
3258
+
3259
+ #: includes/classes/class.wpcf.marketing.messages.php:322
3260
+ msgid ""
3261
+ "Types plugin includes a lot of options. Tell us what kind of site you are "
3262
+ "building and we'll show you how to use Types in the best way."
3263
+ msgstr ""
3264
+ "Wtyczka Types zawiera wiele opcji. Powiedz nam, jakiego rodzaju stronę "
3265
+ "internetową tworzysz, a my pokażemy Ci, jak najlepiej wykorzystać wtyczkę "
3266
+ "Types."
3267
+
3268
+ #: includes/classes/class.wpcf.marketing.messages.php:324
3269
+ msgid "Get Started"
3270
+ msgstr "Rozpocznij"
3271
+
3272
+ #: includes/classes/class.wpcf.marketing.php:69
3273
+ msgid "Want to create templates with fields?"
3274
+ msgstr "Czy chcesz stworzyć szablon z uzyciem pól?"
3275
+
3276
+ #: includes/classes/class.wpcf.marketing.php:73
3277
+ msgid ""
3278
+ "The full Toolset package allows you to design templates for content and "
3279
+ "insert fields using the WordPress editor."
3280
+ msgstr ""
3281
+ "Pełen pakiet Toolset umożliwia tworzenie szablonów dla treści i wstawianie "
3282
+ "pól za pomocą edutora WordPress."
3283
+
3284
+ #: includes/classes/class.wpcf.marketing.php:88
3285
+ msgid "Meet Toolset"
3286
+ msgstr "Użyj Toolseta"
3287
+
3288
+ #: includes/classes/class.wpcf.marketing.php:100
3289
+ msgid "Creating Templates for Content"
3290
+ msgstr "Stwórz szablony dla swoich treści"
3291
+
3292
+ #: includes/classes/class.wpcf.marketing.php:218
3293
+ #: marketing/getting-started/index.php:18
3294
+ msgid "What kind of site are you building?"
3295
+ msgstr "Jakiego rodzaju witrynę tworzysz?"
3296
+
3297
+ #: includes/classes/class.wpcf.marketing.php:219
3298
+ msgid "Getting Started"
3299
+ msgstr "Jak zacząć"
3300
+
3301
+ #: includes/classes/class.wpcf.marketing.tutorial.php:34
3302
+ msgid "Tutorial error"
3303
+ msgstr "Błąd podręcznika"
3304
+
3305
+ #: includes/classes/class.wpcf.marketing.tutorial.php:39
3306
+ msgid "Wrong tutorial id."
3307
+ msgstr "Błędny id podręcznika"
3308
+
3309
+ #: includes/classes/class.wpcf.marketing.tutorial.php:44
3310
+ msgid "There is a problem with tutorial url."
3311
+ msgstr "Wystąpił problem z URL podręcznika."
3312
+
3313
+ #: includes/classes/class.wpcf.marketing.tutorial.php:47
3314
+ msgid "Selected tutorial is empty."
3315
+ msgstr "Wybrany podręcznik jest pusty."
3316
+
3317
+ #: includes/classes/class.wpcf.marketing.tutorial.php:55
3318
+ msgid "Some error occured."
3319
+ msgstr "Wystąpił jakiś błąd."
3320
+
3321
+ #: includes/classes/class.wpcf.marketing.tutorial.php:142
3322
+ msgid "Select instructions for other kinds of sites"
3323
+ msgstr "Wybierz instrukcje dla innych rodzajów witryn"
3324
+
3325
+ #: includes/classes/class.wpcf.marketing.tutorial.php:150
3326
+ msgid "Reload"
3327
+ msgstr "Wczytaj ponownie"
3328
+
3329
+ #: includes/classes/class.wpcf.roles.php:59
3330
+ msgid "Types capabilities"
3331
+ msgstr "Uprawnienie Types"
3332
+
3333
+ #: includes/classes/class.wpcf.roles.php:69
3334
+ msgid "View Custom Post Types"
3335
+ msgstr "Przeglądaj własne typy wpisów"
3336
+
3337
+ #: includes/classes/class.wpcf.roles.php:70
3338
+ msgid "Create and edit my Custom Post Types"
3339
+ msgstr "Tworzenie i edycja własnych typów wpisów"
3340
+
3341
+ #: includes/classes/class.wpcf.roles.php:71
3342
+ msgid "Edit others Custom Post Types"
3343
+ msgstr "Edytuj typ wpisu, których nie jesteś autorem"
3344
+
3345
+ #: includes/classes/class.wpcf.roles.php:73
3346
+ msgid "View Custom Taxonomies"
3347
+ msgstr "Przeglądaj taksonomię"
3348
+
3349
+ #: includes/classes/class.wpcf.roles.php:74
3350
+ msgid "Create and edit my Custom Taxonomies"
3351
+ msgstr "Twórz i edytuj taksonomię"
3352
+
3353
+ #: includes/classes/class.wpcf.roles.php:75
3354
+ msgid "Edit others Custom Taxonomies"
3355
+ msgstr "Edytuj taksonomie, których nie jesteś autorem"
3356
+
3357
+ #: includes/classes/class.wpcf.roles.php:77
3358
+ msgid "View Custom Fields"
3359
+ msgstr "Przeglądaj własne pola wpisów"
3360
+
3361
+ #: includes/classes/class.wpcf.roles.php:78
3362
+ msgid "Create and edit my Custom Fields"
3363
+ msgstr "Twórz i edytuj własne pola wpisów"
3364
+
3365
+ #: includes/classes/class.wpcf.roles.php:79
3366
+ msgid "Edit others Custom Fields"
3367
+ msgstr "Edytuj własne pola wpisów, których nie jesteś autorem"
3368
+
3369
+ #: includes/classes/class.wpcf.roles.php:81
3370
+ msgid "View User Meta Fields"
3371
+ msgstr "Przeglądaj "
3372
+
3373
+ #: includes/classes/class.wpcf.roles.php:82
3374
+ msgid "Create and edit my User Meta Fields"
3375
+ msgstr "Utwórz i edytuj własne pola użytkownika."
3376
+
3377
+ #: includes/classes/class.wpcf.roles.php:83
3378
+ msgid "Edit others User Meta Fields"
3379
+ msgstr "Eytuj pola użytkowników, których nie jestes autorem"
3380
+
3381
+ #: includes/classes/class.wpcf.user.fields.list.table.php:89
3382
+ #: includes/usermeta-form.php:432
3383
+ msgid "This groups visibility is also controlled by the Access plugin."
3384
+ msgstr "Widoczność tej grupy jest także sterowana przez wtyczkę Access."
3385
+
3386
+ #: includes/classes/class.wpcf.user.fields.list.table.php:93
3387
+ #: includes/usermeta-form.php:404 includes/usermeta-form.php:424
3388
+ msgid "Displayed for all users roles"
3389
+ msgstr "Wyświetlana dla wszystkich ról użytkownika"
3390
+
3391
+ #: includes/classes/class.wpcf.user.fields.list.table.php:220
3392
+ msgid "Available for"
3393
+ msgstr "Dostępne dla"
3394
+
3395
+ #: includes/classes/class.wpcf.user.fields.list.table.php:525
3396
+ msgid "No user field groups found."
3397
+ msgstr "Nie znaleziono grup pól użytkownika."
3398
+
3399
+ #: includes/classes/class.wpcf.user.fields.list.table.php:530
3400
+ msgid ""
3401
+ "User Fields, also known as user-meta, are additional fields that belong to "
3402
+ "user profiles."
3403
+ msgstr ""
3404
+ "Pola użytkownika, znane także jako user-meta, to dodatkowe pola należące do "
3405
+ "profili użytkowników."
3406
+
3407
+ #: includes/common-functions.php:33
3408
+ msgid "Click to toggle"
3409
+ msgstr "Kliknij, aby przełączyć"
3410
+
3411
+ #: includes/common-functions.php:133 includes/common-functions.php:158
3412
+ msgid "[empty]"
3413
+ msgstr "[pusty]"
3414
+
3415
+ #: includes/common-functions.php:147 includes/fields-control.php:186
3416
+ #: includes/usermeta-control.php:174
3417
+ msgid "Type"
3418
+ msgstr "Rodzaj"
3419
+
3420
+ #: includes/common-functions.php:151
3421
+ msgid "Name"
3422
+ msgstr "Nazwisko"
3423
+
3424
+ #: includes/common-functions.php:155 includes/custom-taxonomies-form.php:154
3425
+ #: includes/custom-types-form.php:215
3426
+ msgid "Slug"
3427
+ msgstr "Slug"
3428
+
3429
+ #: includes/common-functions.php:162 includes/fields-form.php:1238
3430
+ msgid "Allow multiple-instances of this field"
3431
+ msgstr "Zezwól na wiele instancji tego pola"
3432
+
3433
+ #: includes/common-functions.php:162 includes/fields-form.php:1243
3434
+ msgid "This field can have only one value"
3435
+ msgstr "To pole może mieć tylko jedną wartość"
3436
+
3437
+ #: includes/common-functions.php:163
3438
+ msgid "Repetitive"
3439
+ msgstr "Powtarzające się"
3440
+
3441
+ #: includes/conditional-display.php:40
3442
+ msgid ""
3443
+ "You will be able to set conditional field display once this group is saved."
3444
+ msgstr ""
3445
+ "Warunkowe wyświetlanie pola będzie można ustalić po zapisaniu tej grupy."
3446
+
3447
+ #: includes/conditional-display.php:150
3448
+ msgid "Conditional display"
3449
+ msgstr "Wyświetlanie warunkowe"
3450
+
3451
+ #: includes/conditional-display.php:158 includes/conditional-display.php:159
3452
+ msgid "custom logic"
3453
+ msgstr "logika niestandardowa"
3454
+
3455
+ #: includes/conditional-display.php:163
3456
+ msgid "Data-dependent display filters %s"
3457
+ msgstr "Filtry wyświetlania zależne od danych %s"
3458
+
3459
+ #: includes/conditional-display.php:164
3460
+ msgid ""
3461
+ "Specify additional filters that control this group's display, based on "
3462
+ "values of custom fields."
3463
+ msgstr ""
3464
+ "Określ filtry dodatkowe, które będą sterowały wyświetlaniem tej grupy, w "
3465
+ "oparciu o wartości pól niestandardowych."
3466
+
3467
+ #: includes/conditional-display.php:184
3468
+ msgid "Conditional display is not supported yet for Usermeta fields."
3469
+ msgstr ""
3470
+ "Wyświetlanie warunkowe nie jest jeszcze obsługiwane w przypadku pól Usermeta."
3471
+
3472
+ #: includes/conditional-display.php:206
3473
+ msgid "Add condition"
3474
+ msgstr "Dodaj warunek"
3475
+
3476
+ #: includes/conditional-display.php:266
3477
+ msgid "Go back to simple logic"
3478
+ msgstr "Wróć do logiki prostej"
3479
+
3480
+ #: includes/conditional-display.php:267
3481
+ msgid "Customize the display logic"
3482
+ msgstr "Dopasuj logikę wyświetlania"
3483
+
3484
+ #: includes/conditional-display.php:282
3485
+ msgid "Customize conditions"
3486
+ msgstr "Dopasuj warunki"
3487
+
3488
+ #: includes/conditional-display.php:290
3489
+ msgid "%sDates can be entered using the date filters &raquo;%s"
3490
+ msgstr "%sDaty można wprowadzać, korzystając z filtrów daty &raquo;%s"
3491
+
3492
+ #: includes/conditional-display.php:314 includes/fields-form.php:1520
3493
+ #: includes/fields-form.php:1630
3494
+ #: plus/installer/templates/repository-listing.php:26
3495
+ #: plus/types-access/includes/admin-edit-access.php:837
3496
+ #: plus/types-access/includes/admin-edit-access.php:867
3497
+ msgid "OK"
3498
+ msgstr "OK"
3499
+
3500
+ #: includes/conditional-display.php:434
3501
+ msgid ""
3502
+ "Conditional display is only working based on non-repeating fields. All "
3503
+ "fields in this group are repeating, so you cannot set their display based on "
3504
+ "other fields."
3505
+ msgstr ""
3506
+ "Wyświetlanie warunkowe działa w oparciu o niepowtarzające się pola. "
3507
+ "Wszystkie pola w tej grupie powtarzają się, więc nie możesz ustawić ich "
3508
+ "wyświetlania na podstawie innych pól."
3509
+
3510
+ #: includes/conditional-display.php:442
3511
+ msgid ""
3512
+ "You will be able to set conditional field display when you save more fields."
3513
+ msgstr ""
3514
+ "Warunkowe wyświetlanie pola będzie można ustawić po zapisaniu większej "
3515
+ "liczby pól."
3516
+
3517
+ #: includes/conditional-display.php:504
3518
+ msgid "Remove condition"
3519
+ msgstr "Usuń warunek"
3520
+
3521
+ #: includes/conditional-display.php:602
3522
+ msgid "%1$s%2$s, %3$s"
3523
+ msgstr "%1$s%2$s, %3$s"
3524
+
3525
+ #: includes/conditional-display.php:604
3526
+ msgid "Please enter a valid date here"
3527
+ msgstr "Wpisz tu poprawną datę"
3528
+
3529
+ #: includes/custom-taxonomies-form.php:38
3530
+ msgid "Wrong custom taxonomy specified"
3531
+ msgstr "Wskazano nieprawidłową taksonomię niestandardową"
3532
+
3533
+ #: includes/custom-taxonomies-form.php:98 includes/custom-types-form.php:153
3534
+ msgid "Name and description"
3535
+ msgstr "Nazwa i opis"
3536
+
3537
+ #: includes/custom-taxonomies-form.php:105
3538
+ msgid "Custom taxonomy name plural"
3539
+ msgstr "Nazwa taksonomii niestandardowej w l. mnogiej"
3540
+
3541
+ #: includes/custom-taxonomies-form.php:105
3542
+ #: includes/custom-taxonomies-form.php:121
3543
+ #: includes/custom-taxonomies-form.php:154 includes/custom-types-form.php:160
3544
+ #: includes/custom-types-form.php:180 includes/custom-types-form.php:215
3545
+ msgid "required"
3546
+ msgstr "wymagane"
3547
+
3548
+ #: includes/custom-taxonomies-form.php:106 includes/custom-types-form.php:161
3549
+ msgid "Enter in plural!"
3550
+ msgstr "Wpisz w liczbie mnogiej!"
3551
+
3552
+ #: includes/custom-taxonomies-form.php:115
3553
+ msgid "Enter custom taxonomy name plural"
3554
+ msgstr "Nazwa taksonomii - liczba mnoga"
3555
+
3556
+ #: includes/custom-taxonomies-form.php:121
3557
+ msgid "Custom taxonomy name singular"
3558
+ msgstr "Nazwa taksonomii - liczba pojedyncza"
3559
+
3560
+ #: includes/custom-taxonomies-form.php:122
3561
+ #: includes/custom-taxonomies-form.php:155 includes/custom-types-form.php:181
3562
+ msgid "Enter in singular!"
3563
+ msgstr "Wpisz w liczbie pojedynczej!"
3564
+
3565
+ #: includes/custom-taxonomies-form.php:131
3566
+ msgid "Enter custom taxonomy name singular"
3567
+ msgstr "Wprowadź liczbę pojedynczą taksonomii"
3568
+
3569
+ #: includes/custom-taxonomies-form.php:156
3570
+ msgid "Machine readable name."
3571
+ msgstr "Nazwa do odczytania maszynowego."
3572
+
3573
+ #: includes/custom-taxonomies-form.php:157
3574
+ msgid "If not provided - will be created from singular name."
3575
+ msgstr "Jeżeli nie zostanie podana - zostanie utworzona z nazwy w l. poj."
3576
+
3577
+ #: includes/custom-taxonomies-form.php:168
3578
+ msgid "Enter custom taxonomy slug"
3579
+ msgstr "Wprowadź slug taksonomii"
3580
+
3581
+ #: includes/custom-taxonomies-form.php:180
3582
+ msgid "Enter custom taxonomy description"
3583
+ msgstr "Wprowadź opis taksonomii"
3584
+
3585
+ #: includes/custom-taxonomies-form.php:354
3586
+ msgid "Please set taxonomy name"
3587
+ msgstr "Wprowadź nazwę taksonomii"
3588
+
3589
+ #: includes/custom-taxonomies-form.php:374
3590
+ msgid "Custom taxonomy do not exist"
3591
+ msgstr "Taksonomia nie istnieje"
3592
+
3593
+ #: includes/custom-taxonomies-form.php:386
3594
+ msgid "Custom taxonomy already exists"
3595
+ msgstr "Taksonomia już istnieje"
3596
+
3597
+ #: includes/custom-taxonomies-form.php:393
3598
+ msgid "Taxonomy already exists"
3599
+ msgstr "Taksonomia już istnieje"
3600
+
3601
+ #: includes/custom-taxonomies-form.php:459
3602
+ msgid "Custom taxonomy saved"
3603
+ msgstr "Taksonomia została zapisana"
3604
+
3605
+ #: includes/custom-taxonomies-form.php:490
3606
+ msgid "Save Custom Taxonomy"
3607
+ msgstr "Zapisz taksonomię"
3608
+
3609
+ #: includes/custom-taxonomies-form.php:505
3610
+ msgid "Make this taxonomy public (will appear in the WordPress Admin menu)"
3611
+ msgstr ""
3612
+ "Taksonomia publiczna (będzie wyświetlana w menu administratora WordPressa)"
3613
+
3614
+ #: includes/custom-taxonomies-form.php:506
3615
+ msgid "Hidden - users cannot directly edit data in this taxonomy"
3616
+ msgstr ""
3617
+ "Ukryta - użytkownicy nie będą mogli bezpośrednio edytować danych w tej "
3618
+ "taksonomii"
3619
+
3620
+ #: includes/custom-taxonomies-form.php:548
3621
+ msgid "Registered post types that will be used with this taxonomy."
3622
+ msgstr "Zarejestrowane typy wpisów, które będą wykorzystywane z tą taksonomią."
3623
+
3624
+ #: includes/custom-taxonomies-form.php:567 includes/custom-types-form.php:1071
3625
+ msgid "Search %s"
3626
+ msgstr "Szukaj %s"
3627
+
3628
+ #: includes/custom-taxonomies-form.php:568
3629
+ msgid ""
3630
+ "The search items text. Default is __( 'Search Tags' ) or __( 'Search "
3631
+ "Categories' )."
3632
+ msgstr ""
3633
+ "Tekst elementów wyszukiwania. Domyślne wartości to __( 'Przeszukaj tagi' ) "
3634
+ "albo __( 'Przeszukaj kategorie' )."
3635
+
3636
+ #: includes/custom-taxonomies-form.php:569 includes/custom-types-form.php:1073
3637
+ msgid "Search Items"
3638
+ msgstr "Szukaj Elementów"
3639
+
3640
+ #: includes/custom-taxonomies-form.php:572
3641
+ msgid "Popular %s"
3642
+ msgstr "Popularne %s"
3643
+
3644
+ #: includes/custom-taxonomies-form.php:573
3645
+ msgid "The popular items text. Default is __( 'Popular Tags' ) or null."
3646
+ msgstr ""
3647
+ "Tekst elementów popularnych. Domyślnie __( 'Popularne tagi' ) albo puste."
3648
+
3649
+ #: includes/custom-taxonomies-form.php:574
3650
+ msgid "Popular Items"
3651
+ msgstr "Popularne Elementy"
3652
+
3653
+ #: includes/custom-taxonomies-form.php:577
3654
+ msgid "All %s"
3655
+ msgstr "Wszystkie %s"
3656
+
3657
+ #: includes/custom-taxonomies-form.php:578
3658
+ msgid ""
3659
+ "The all items text. Default is __( 'All Tags' ) or __( 'All Categories' )."
3660
+ msgstr ""
3661
+ "Tekst dla wszystkich elementów. Domyślnie __( 'Wszystkie tagi' ) albo "
3662
+ "__( 'Wszystkie kategorie' )."
3663
+
3664
+ #: includes/custom-taxonomies-form.php:579 includes/custom-types-form.php:1093
3665
+ msgid "All Items"
3666
+ msgstr "Wszystkie Elementy"
3667
+
3668
+ #: includes/custom-taxonomies-form.php:582
3669
+ msgid "Parent %s"
3670
+ msgstr "Rodzic %s"
3671
+
3672
+ #: includes/custom-taxonomies-form.php:583
3673
+ msgid ""
3674
+ "The parent item text. This string is not used on non-hierarchical taxonomies "
3675
+ "such as post tags. Default is null or __( 'Parent Category' )."
3676
+ msgstr ""
3677
+ "Tekst dla elementu nadrzędnego. Ta fraza nie jest używana do taksonomii nie-"
3678
+ "hierarchicznych, jak tagi postu. Domyślnie puste albo __( 'Kategoria "
3679
+ "nadrzędna' )."
3680
+
3681
+ #: includes/custom-taxonomies-form.php:584
3682
+ msgid "Parent Item"
3683
+ msgstr "Element nadrzędny"
3684
+
3685
+ #: includes/custom-taxonomies-form.php:587
3686
+ msgid "Parent %s:"
3687
+ msgstr "Rodzic %s:"
3688
+
3689
+ #: includes/custom-taxonomies-form.php:588
3690
+ msgid ""
3691
+ "The same as parent_item, but with colon : in the end null, __( 'Parent "
3692
+ "Category:' )."
3693
+ msgstr ""
3694
+ "To samo, co parent_item, ale z dwukropkiem : na końcu puste, __( 'Kategoria "
3695
+ "nadrzędna:' )."
3696
+
3697
+ #: includes/custom-taxonomies-form.php:589
3698
+ msgid "Parent Item with colon"
3699
+ msgstr "Tekst elementu nadrzędnego z dwukropkiem"
3700
+
3701
+ #: includes/custom-taxonomies-form.php:592 includes/custom-types-form.php:1056
3702
+ msgid "Edit %s"
3703
+ msgstr "Edycja %s"
3704
+
3705
+ #: includes/custom-taxonomies-form.php:593
3706
+ msgid ""
3707
+ "The edit item text. Default is __( 'Edit Tag' ) or __( 'Edit Category' )."
3708
+ msgstr ""
3709
+ "Tekst elementu edycji. Domyślnie __( 'Edytuj tag' ) albo __( 'Edytuj "
3710
+ "kategorię' )."
3711
+
3712
+ #: includes/custom-taxonomies-form.php:594 includes/custom-types-form.php:1058
3713
+ msgid "Edit Item"
3714
+ msgstr "Edytuj Element"
3715
+
3716
+ #: includes/custom-taxonomies-form.php:598
3717
+ msgid ""
3718
+ "The update item text. Default is __( 'Update Tag' ) or __( 'Update "
3719
+ "Category' )."
3720
+ msgstr ""
3721
+ "Tekst elementu aktualizacji. Domyślnie __( 'Aktualizuj tag' ) albo "
3722
+ "__( Aktualizuj kategorię' )."
3723
+
3724
+ #: includes/custom-taxonomies-form.php:599
3725
+ msgid "Update Item"
3726
+ msgstr "Aktualizuj Elementy"
3727
+
3728
+ #: includes/custom-taxonomies-form.php:602 includes/custom-types-form.php:1051
3729
+ msgid "Add New %s"
3730
+ msgstr "Dodaj %s"
3731
+
3732
+ #: includes/custom-taxonomies-form.php:603
3733
+ msgid ""
3734
+ "The add new item text. Default is __( 'Add New Tag' ) or __( 'Add New "
3735
+ "Category' )."
3736
+ msgstr ""
3737
+ "Tekst elementu dodawania nowych. Domyślnie __( 'Dodaj nowy tag' ) albo "
3738
+ "__( 'Dodaj nową kategorię' )."
3739
+
3740
+ #: includes/custom-taxonomies-form.php:604 includes/custom-types-form.php:1053
3741
+ msgid "Add New Item"
3742
+ msgstr "Dodaj Nowy"
3743
+
3744
+ #: includes/custom-taxonomies-form.php:607
3745
+ msgid "New %s Name"
3746
+ msgstr "Nowa nazwa %s"
3747
+
3748
+ #: includes/custom-taxonomies-form.php:608
3749
+ msgid ""
3750
+ "The new item name text. Default is __( 'New Tag Name' ) or __( 'New Category "
3751
+ "Name' )."
3752
+ msgstr ""
3753
+ "Tekst nowej nazwy elementu. Domyślnie __( 'Nazwa nowego tagu' ) albo "
3754
+ "__( 'Nazwa nowej kategorii' )."
3755
+
3756
+ #: includes/custom-taxonomies-form.php:609
3757
+ msgid "New Item Name"
3758
+ msgstr "Nazwa Nowego Elementu"
3759
+
3760
+ #: includes/custom-taxonomies-form.php:612
3761
+ msgid "Separate %s with commas"
3762
+ msgstr "Rozdziel %s przecinkami"
3763
+
3764
+ #: includes/custom-taxonomies-form.php:613
3765
+ msgid ""
3766
+ "The separate item with commas text used in the taxonomy meta box. This "
3767
+ "string isn't used on hierarchical taxonomies. Default is __( 'Separate tags "
3768
+ "with commas' ), or null."
3769
+ msgstr ""
3770
+ "Tekst rozdzielania elementów przecinkami wykorzystywany w polu meta "
3771
+ "taksonomii. Ta fraza nie jest używana do taksonomii hierarchicznych. "
3772
+ "Domyślnie __( 'Rozdziel tagi przecinkami' ) albo pusta."
3773
+
3774
+ #: includes/custom-taxonomies-form.php:614
3775
+ msgid "Separate Items"
3776
+ msgstr "Rozdzielaj Elementy"
3777
+
3778
+ #: includes/custom-taxonomies-form.php:617
3779
+ msgid "Add or remove %s"
3780
+ msgstr "Dodaj lub usuń %s"
3781
+
3782
+ #: includes/custom-taxonomies-form.php:618
3783
+ msgid ""
3784
+ "the add or remove items text used in the meta box when JavaScript is "
3785
+ "disabled. This string isn't used on hierarchical taxonomies. Default is "
3786
+ "__( 'Add or remove tags' ) or null."
3787
+ msgstr ""
3788
+ "tekst dodawania albo usuwania elementów, wykorzystywany w polu meta, kiedy "
3789
+ "wyłączony jest JavaScript. Ciąg ten nie jest wykorzystywany w taksonomiach "
3790
+ "hierarchicznych. Domyślna wartość to __('Dodaj albo usuń znaczniki') lub "
3791
+ "null."
3792
+
3793
+ #: includes/custom-taxonomies-form.php:619
3794
+ msgid "Add or remove"
3795
+ msgstr "Dodaj lub usuń"
3796
+
3797
+ #: includes/custom-taxonomies-form.php:622
3798
+ msgid "Choose from the most used %s"
3799
+ msgstr "Wybierz spośród najczęściej używanych %s"
3800
+
3801
+ #: includes/custom-taxonomies-form.php:623
3802
+ msgid ""
3803
+ "The choose from most used text used in the taxonomy meta box. This string "
3804
+ "isn't used on hierarchical taxonomies. Default is __( 'Choose from the most "
3805
+ "used tags' ) or null."
3806
+ msgstr ""
3807
+ "Tekst wyboru spośród najczęściej używanych wykorzystywany w polu meta. Fraza "
3808
+ "ta nie jest używana do taksonomii hierarchicznych. Domyślnie __( 'Wybierz "
3809
+ "spośród najczęściej używanych tagów' ) lub pusta."
3810
+
3811
+ #: includes/custom-taxonomies-form.php:627
3812
+ #: includes/custom-taxonomies-form.php:629
3813
+ msgid "Menu Name"
3814
+ msgstr "Nazwa menu"
3815
+
3816
+ #: includes/custom-taxonomies-form.php:628
3817
+ msgid ""
3818
+ "The menu name text. This string is the name to give menu items. Defaults to "
3819
+ "value of name."
3820
+ msgstr ""
3821
+ "Tekst nazwy menu. Ta fraza jest nazwą nadawaną elementom menu. Domyślnie "
3822
+ "jest to wartość zmiennej name."
3823
+
3824
+ #: includes/custom-taxonomies-form.php:663
3825
+ msgid ""
3826
+ "Hierarchical - like post categories, with parent / children relationship and "
3827
+ "checkboxes to select taxonomy"
3828
+ msgstr ""
3829
+ "Hierarchiczne - jak kategorie postów z pokrewieństwem rodzic/dzieci i polami "
3830
+ "wyboru taksonomii"
3831
+
3832
+ #: includes/custom-taxonomies-form.php:664
3833
+ msgid "Flat - like post tags, with a text input to enter terms"
3834
+ msgstr ""
3835
+ "Płaskie - jak tagi postu, z wejściem tekstowym do wprowadzania warunków"
3836
+
3837
+ #: includes/custom-taxonomies-form.php:671 includes/custom-types-form.php:1220
3838
+ msgid "Rewrite"
3839
+ msgstr "Rewrite"
3840
+
3841
+ #: includes/custom-taxonomies-form.php:673
3842
+ msgid ""
3843
+ "Rewrite permalinks with this format. Default will use $taxonomy as query var."
3844
+ msgstr ""
3845
+ "Przekształć permalinki na ten format. Domyślnie wykorzystuje $taxonomy jako "
3846
+ "query var."
3847
+
3848
+ #: includes/custom-taxonomies-form.php:681
3849
+ msgid "Prepend posts with this slug"
3850
+ msgstr "Poprzedź posty tym slugiem"
3851
+
3852
+ #: includes/custom-taxonomies-form.php:682
3853
+ #: includes/custom-taxonomies-form.php:751 includes/custom-types-form.php:1353
3854
+ msgid "Optional"
3855
+ msgstr "Opcjonalne"
3856
+
3857
+ #: includes/custom-taxonomies-form.php:682
3858
+ msgid "Prepend posts with this slug - defaults to taxonomy's name."
3859
+ msgstr "Poprzedź posty tym slugiem - domyślnie używa nazwy taksonomii."
3860
+
3861
+ #: includes/custom-taxonomies-form.php:692 includes/custom-types-form.php:1250
3862
+ msgid "Allow permalinks to be prepended with front base"
3863
+ msgstr "Zezwól na poprzedzanie permalinków katalogiem głównym"
3864
+
3865
+ #: includes/custom-taxonomies-form.php:694 includes/custom-types-form.php:1252
3866
+ #: includes/custom-types-form.php:1269
3867
+ msgid "Defaults to true."
3868
+ msgstr "Domyślnie prawda."
3869
+
3870
+ #: includes/custom-taxonomies-form.php:701
3871
+ msgid "Hierarchical URLs"
3872
+ msgstr "URL hierarchiczne"
3873
+
3874
+ #: includes/custom-taxonomies-form.php:702
3875
+ msgid "True or false allow hierarchical urls (implemented in %sVersion 3.1%s)."
3876
+ msgstr ""
3877
+ "Zezwalaj lub nie zezwalaj używać url-i hierarchicznych (wprowadzonych w "
3878
+ "%sWersji 3.1%s)"
3879
+
3880
+ #: includes/custom-taxonomies-form.php:714 includes/custom-types-form.php:1304
3881
+ msgid "show_ui"
3882
+ msgstr "show_ui"
3883
+
3884
+ #: includes/custom-taxonomies-form.php:715
3885
+ msgid "Whether to generate a default UI for managing this taxonomy."
3886
+ msgstr "Określa, czy generować domyślny IU do zarządzania tą taksonomią."
3887
+
3888
+ #: includes/custom-taxonomies-form.php:715
3889
+ #: includes/custom-taxonomies-form.php:722
3890
+ msgid "Default: if not set, defaults to value of public argument."
3891
+ msgstr ""
3892
+ "Domyślnie: jeżeli nie ustawiono, przyjmuje domyślnie wartość argumentu "
3893
+ "publicznego."
3894
+
3895
+ #: includes/custom-taxonomies-form.php:721 includes/custom-types-form.php:1339
3896
+ msgid "show_in_nav_menus"
3897
+ msgstr "show_in_nav_menus"
3898
+
3899
+ #: includes/custom-taxonomies-form.php:722
3900
+ msgid "True makes this taxonomy available for selection in navigation menus."
3901
+ msgstr ""
3902
+ "Prawda powoduje, że taksonomia ta jest dostępna do wyboru w menu nawigacji."
3903
+
3904
+ #: includes/custom-taxonomies-form.php:728
3905
+ msgid "show_tagcloud"
3906
+ msgstr "show_tagcloud"
3907
+
3908
+ #: includes/custom-taxonomies-form.php:729
3909
+ msgid "Whether to allow the Tag Cloud widget to use this taxonomy."
3910
+ msgstr ""
3911
+ "Określa, czy zezwolić widżetowi chmury tagów na korzystanie z tej taksonomii."
3912
+
3913
+ #: includes/custom-taxonomies-form.php:729
3914
+ msgid "Default: if not set, defaults to value of show_ui argument."
3915
+ msgstr ""
3916
+ "Domyślnie: jeżeli nie ustawiono, domyślnie przyjmuje wartość argumentu "
3917
+ "show_ui."
3918
+
3919
+ #: includes/custom-taxonomies-form.php:738
3920
+ msgid "show_admin_column"
3921
+ msgstr "show_admin_column"
3922
+
3923
+ #: includes/custom-taxonomies-form.php:739
3924
+ msgid ""
3925
+ "Whether to allow automatic creation of taxonomy columns on associated post-"
3926
+ "types."
3927
+ msgstr ""
3928
+ "Określa, czy zezwolić na automatyczne tworzenie kolumn taksonomii w "
3929
+ "skojarzonych typach postów."
3930
+
3931
+ #: includes/custom-taxonomies-form.php:739 includes/custom-types-form.php:1326
3932
+ msgid "Default: false."
3933
+ msgstr "Domyślnie: fałsz."
3934
+
3935
+ #: includes/custom-taxonomies-form.php:749
3936
+ msgid ""
3937
+ "False to prevent queries, or string to customize query var. Default will use "
3938
+ "$taxonomy as query var."
3939
+ msgstr ""
3940
+ "Fałsz, aby zapobiegać zapytaniom albo ciąg znaków, aby dopasować query var. "
3941
+ "Domyślnie będzie wykorzystywać $taxonomy jako query var."
3942
+
3943
+ #: includes/custom-taxonomies-form.php:749
3944
+ msgid "Default: $taxonomy."
3945
+ msgstr "Domyślnie: $taxonomy."
3946
+
3947
+ #: includes/custom-taxonomies-form.php:751 includes/custom-types-form.php:1353
3948
+ msgid "String to customize query var"
3949
+ msgstr "Ciąg znaków, aby dopasować query var"
3950
+
3951
+ #: includes/custom-taxonomies-form.php:758
3952
+ msgid ""
3953
+ "Function name that will be called to update the count of an associated "
3954
+ "$object_type, such as post, is updated."
3955
+ msgstr ""
3956
+ "Nazwa funkcji, która będzie wywoływana w celu aktualizacji licznika, jeżeli "
3957
+ "skojarzony $object_type, np. post, zostanie zaktualizowany."
3958
+
3959
+ #: includes/custom-taxonomies-form.php:758
3960
+ #: includes/custom-taxonomies-form.php:781
3961
+ msgid "Default: None."
3962
+ msgstr "Domyślnie: brak."
3963
+
3964
+ #: includes/custom-taxonomies-form.php:765
3965
+ msgid "Meta box callback function"
3966
+ msgstr "Funkcja wywołania pola meta"
3967
+
3968
+ #: includes/custom-taxonomies-form.php:770
3969
+ msgid "Hide taxonomy meta box."
3970
+ msgstr "Ukryj pole meta taksonomii."
3971
+
3972
+ #: includes/custom-taxonomies-form.php:774
3973
+ msgid "If you disable this, there will be no metabox on entry edit screen."
3974
+ msgstr ""
3975
+ "Jeżeli wyłączysz, pole meta nie będzie wyświetlane na ekranie edycji wpisu."
3976
+
3977
+ #: includes/custom-taxonomies-form.php:780
3978
+ msgid "meta_box_cb"
3979
+ msgstr "meta_box_cb"
3980
+
3981
+ #: includes/custom-taxonomies-form.php:781
3982
+ msgid "Provide a callback function name for the meta box display."
3983
+ msgstr "Dostarcz wywołanie nazwy funkcji dla ekranu pola meta."
3984
+
3985
+ #: includes/custom-types-form.php:46
3986
+ msgid "Wrong custom post type specified"
3987
+ msgstr "Wskazano błędny własny typ postu"
3988
+
3989
+ #: includes/custom-types-form.php:160
3990
+ msgid "Custom post type name plural"
3991
+ msgstr "Nazwa pola w liczbie mnogiej"
3992
+
3993
+ #: includes/custom-types-form.php:173
3994
+ msgid "Enter post type name plural"
3995
+ msgstr "Wprowadź nazwę typu w liczbie mnogiej"
3996
+
3997
+ #: includes/custom-types-form.php:180
3998
+ msgid "Custom post type name singular"
3999
+ msgstr "Nazwa typu w liczbie pojedynczej"
4000
+
4001
+ #: includes/custom-types-form.php:192
4002
+ msgid "Enter post type name singular"
4003
+ msgstr "Wprowadź nazwę typu w liczbie pojedynczej"
4004
+
4005
+ #: includes/custom-types-form.php:226
4006
+ msgid "Enter post type slug"
4007
+ msgstr "Wprowadź uproszczoną nazwę"
4008
+
4009
+ #: includes/custom-types-form.php:240
4010
+ msgid "Enter post type description"
4011
+ msgstr "Wprowadź opis typu"
4012
+
4013
+ #: includes/custom-types-form.php:253
4014
+ msgid "Icon"
4015
+ msgstr "Ikona"
4016
+
4017
+ #: includes/custom-types-form.php:705
4018
+ msgid "Please set post type name"
4019
+ msgstr "Podaj nazwę typu"
4020
+
4021
+ #: includes/custom-types-form.php:725
4022
+ msgid "Custom post type already exists"
4023
+ msgstr "Podaty typ wpisu już istnieje"
4024
+
4025
+ #: includes/custom-types-form.php:895
4026
+ msgid "Custom post type saved"
4027
+ msgstr "Zapisano własny typ wpisu"
4028
+
4029
+ #: includes/custom-types-form.php:897
4030
+ msgid "Post type saved"
4031
+ msgstr "Typ postu został zapisany."
4032
+
4033
+ #: includes/custom-types-form.php:934
4034
+ msgid "Save Custom Post Type"
4035
+ msgstr "Zapisz własny typ wpisu"
4036
+
4037
+ #: includes/custom-types-form.php:949
4038
+ msgid "Make this type public (will appear in the WordPress Admin menu)"
4039
+ msgstr ""
4040
+ "Upublicznij ten typ (będzie wyświetlany w menu administratora WordPressa)"
4041
+
4042
+ #: includes/custom-types-form.php:950
4043
+ msgid "Hidden - users cannot directly edit data in this type"
4044
+ msgstr "Ukryty - użytkownicy nie mogą bezpośrednio edytować danych w tym typie"
4045
+
4046
+ #: includes/custom-types-form.php:959
4047
+ msgid "Menu position"
4048
+ msgstr "Pozycja w menu"
4049
+
4050
+ #: includes/custom-types-form.php:969
4051
+ msgid "Menu icon"
4052
+ msgstr "Ikona menu"
4053
+
4054
+ #: includes/custom-types-form.php:970
4055
+ msgid ""
4056
+ "The url to the icon to be used for this menu. Default: null - defaults to "
4057
+ "the posts icon."
4058
+ msgstr ""
4059
+ "URL do ikony, która ma być wykorzystywana dla tego menu. Domyślnie: pusty - "
4060
+ "domyślnie ustawia się na ikonę postu."
4061
+
4062
+ #: includes/custom-types-form.php:981
4063
+ msgid "Show on \"At a Glance\""
4064
+ msgstr "Pokaż w \"W skrócie\""
4065
+
4066
+ #: includes/custom-types-form.php:983
4067
+ msgid "Show number of entries on \"At a Glance\" admin widget."
4068
+ msgstr "Pokaż liczbę wpisów w widżecie \"W skrócie\"."
4069
+
4070
+ #: includes/custom-types-form.php:1026
4071
+ msgid "Registered taxonomies that will be used with this post type."
4072
+ msgstr ""
4073
+ "Zarejestrowano taksonomie, które będą wykorzystywane z tym typem postu."
4074
+
4075
+ #: includes/custom-types-form.php:1047
4076
+ msgid ""
4077
+ "The add new text. The default is Add New for both hierarchical and non-"
4078
+ "hierarchical types."
4079
+ msgstr ""
4080
+ "Tekst dla dodawania nowych. Domyślnie jest to Dodaj nowe tak dla typów "
4081
+ "hierarchicznych jak i niehierarchicznych."
4082
+
4083
+ #: includes/custom-types-form.php:1052
4084
+ msgid "The add new item text. Default is Add New Post/Add New Page."
4085
+ msgstr ""
4086
+ "Tekst dodawania nowego elementu. Domyślnie Dodaj nowy post/Dodaj nową stronę."
4087
+
4088
+ #: includes/custom-types-form.php:1057
4089
+ msgid "The edit item text. Default is Edit Post/Edit Page."
4090
+ msgstr "Tekst elementu edycji. Domyślnie Edytuj post/Edytuj stronę."
4091
+
4092
+ #: includes/custom-types-form.php:1061
4093
+ msgid "New %s"
4094
+ msgstr "Nowy/a/e %s"
4095
+
4096
+ #: includes/custom-types-form.php:1062
4097
+ msgid "The new item text. Default is New Post/New Page."
4098
+ msgstr "Tekst nowego elementu. Domyślnie jest to nowa strpna lub nowy wpis."
4099
+
4100
+ #: includes/custom-types-form.php:1063
4101
+ msgid "New Item"
4102
+ msgstr "Nowy Element"
4103
+
4104
+ #: includes/custom-types-form.php:1066
4105
+ msgid "View %s"
4106
+ msgstr "Wyświetl %s"
4107
+
4108
+ #: includes/custom-types-form.php:1067
4109
+ msgid "The view item text. Default is View Post/View Page."
4110
+ msgstr "Tekst elementu wyświetlania. Domyślnie Wyświetl post/Wyświetl stronę"
4111
+
4112
+ #: includes/custom-types-form.php:1068
4113
+ msgid "View Item"
4114
+ msgstr "Wyświetl Element"
4115
+
4116
+ #: includes/custom-types-form.php:1072
4117
+ msgid "The search items text. Default is Search Posts/Search Pages."
4118
+ msgstr ""
4119
+ "Tekst elementu wyszukiwania. Domyślnie Przeszukaj posty/Przeszukaj strony."
4120
+
4121
+ #: includes/custom-types-form.php:1076
4122
+ msgid "No %s found"
4123
+ msgstr "Nie znaleziono żadnych %s"
4124
+
4125
+ #: includes/custom-types-form.php:1077
4126
+ msgid "The not found text. Default is No posts found/No pages found."
4127
+ msgstr ""
4128
+ "Tekst, kiedy nie znaleziono. Domyślnie Nie znaleziono żadnych postów/Nie "
4129
+ "znaleziono żadnych stron."
4130
+
4131
+ #: includes/custom-types-form.php:1078
4132
+ msgid "Not Found"
4133
+ msgstr "Nie Znaleziono"
4134
+
4135
+ #: includes/custom-types-form.php:1081
4136
+ msgid "No %s found in Trash"
4137
+ msgstr "Nie znaleziono żadnych %s w koszu"
4138
+
4139
+ #: includes/custom-types-form.php:1082
4140
+ msgid ""
4141
+ "The not found in trash text. Default is No posts found in Trash/No pages "
4142
+ "found in Trash."
4143
+ msgstr ""
4144
+ "Tekst, w przypadku nie znalezienia w koszu. Domyślnie Nie znaleziono żadnych "
4145
+ "postów w koszu/Nie znaleziono żadnych stron w koszu."
4146
+
4147
+ #: includes/custom-types-form.php:1083
4148
+ msgid "Not Found In Trash"
4149
+ msgstr "Niczego nie ma w koszu"
4150
+
4151
+ #: includes/custom-types-form.php:1086
4152
+ msgid "Parent text"
4153
+ msgstr "Tekst elementu nadrzędnego"
4154
+
4155
+ #: includes/custom-types-form.php:1087
4156
+ msgid ""
4157
+ "The parent text. This string isn't used on non-hierarchical types. In "
4158
+ "hierarchical ones the default is Parent Page."
4159
+ msgstr ""
4160
+ "Tekst elementu nadrzędnego. Ta fraza nie jest wykorzystywana w przypadku "
4161
+ "typów niehierarchicznych. W przypadku hierarchicznych, wartość domyślna to "
4162
+ "Strona nadrzędna."
4163
+
4164
+ #: includes/custom-types-form.php:1088
4165
+ msgid "Parent Description"
4166
+ msgstr "Opis Elementu Nadrzędnego"
4167
+
4168
+ #: includes/custom-types-form.php:1091
4169
+ msgid "All items"
4170
+ msgstr "Wszystkie elementy"
4171
+
4172
+ #: includes/custom-types-form.php:1092
4173
+ msgid "The all items text used in the menu. Default is the Name label."
4174
+ msgstr ""
4175
+ "Tekst dla wszystkich elementów używanych w menu. Domyślnie jest to etykieta "
4176
+ "Nazwa"
4177
+
4178
+ #: includes/custom-types-form.php:1123
4179
+ msgid "Text input field to create a post title."
4180
+ msgstr "Pole wprowadzania tekstu do utworzenia tytułu postu."
4181
+
4182
+ #: includes/custom-types-form.php:1130
4183
+ msgid "Editor"
4184
+ msgstr "Edytor"
4185
+
4186
+ #: includes/custom-types-form.php:1131
4187
+ msgid "Content input box for writing."
4188
+ msgstr "Pole wprowadzania treści głównej."
4189
+
4190
+ #: includes/custom-types-form.php:1138
4191
+ msgid "Comments"
4192
+ msgstr "Komentarze"
4193
+
4194
+ #: includes/custom-types-form.php:1139
4195
+ msgid "Ability to turn comments on/off."
4196
+ msgstr "Możliwość włączenia/wyłączenia komentarzy."
4197
+
4198
+ #: includes/custom-types-form.php:1145
4199
+ msgid "Trackbacks"
4200
+ msgstr "Trackbacki"
4201
+
4202
+ #: includes/custom-types-form.php:1146
4203
+ msgid "Ability to turn trackbacks and pingbacks on/off."
4204
+ msgstr "Możliwość włączenia/wyłączenia trackbacków i pingbacków."
4205
+
4206
+ #: includes/custom-types-form.php:1152
4207
+ msgid "Revisions"
4208
+ msgstr "Wersje"
4209
+
4210
+ #: includes/custom-types-form.php:1153
4211
+ msgid "Allows revisions to be made of your post."
4212
+ msgstr "Umożliwia tworzenie wersji postu."
4213
+
4214
+ #: includes/custom-types-form.php:1159
4215
+ msgid "Author"
4216
+ msgstr "Autor"
4217
+
4218
+ #: includes/custom-types-form.php:1160
4219
+ msgid "Displays a dropdown menu for changing the post author."
4220
+ msgstr "Wyświetla menu rozwijane, z którego można zmienić autora postu."
4221
+
4222
+ #: includes/custom-types-form.php:1166
4223
+ msgid "Excerpt"
4224
+ msgstr "Streszczenie"
4225
+
4226
+ #: includes/custom-types-form.php:1167
4227
+ msgid "A text area for writing a custom excerpt."
4228
+ msgstr "Obszar wprowadzania tekstu do napisania niestandardowego streszczenia."
4229
+
4230
+ #: includes/custom-types-form.php:1173
4231
+ msgid "Thumbnail"
4232
+ msgstr "Ikona"
4233
+
4234
+ #: includes/custom-types-form.php:1174
4235
+ msgid "Add a box for uploading a featured image."
4236
+ msgstr "Dodaj pole do przesyłania ikony wpisu."
4237
+
4238
+ #: includes/custom-types-form.php:1180
4239
+ msgid "custom-fields"
4240
+ msgstr "wlasne-pola"
4241
+
4242
+ #: includes/custom-types-form.php:1181
4243
+ msgid "Custom fields input area."
4244
+ msgstr "Obszar wprowadzania własnych pól."
4245
+
4246
+ #: includes/custom-types-form.php:1187
4247
+ msgid "page-attributes"
4248
+ msgstr "atrybuty-strony"
4249
+
4250
+ #: includes/custom-types-form.php:1188
4251
+ msgid "Menu order, hierarchical must be true to show Parent option"
4252
+ msgstr ""
4253
+ "Kolejność menu, opcja hierarchiczne musi być ustawiona na prawda, aby "
4254
+ "wyświetlić opcję Nadrzędne"
4255
+
4256
+ #: includes/custom-types-form.php:1194
4257
+ msgid "post-formats"
4258
+ msgstr "formaty-wpisu"
4259
+
4260
+ #: includes/custom-types-form.php:1195
4261
+ msgid "Add post formats, see %sPost Formats%s"
4262
+ msgstr "Dodaj formaty wpisu, patrz %sFormaty wpisu%s"
4263
+
4264
+ #: includes/custom-types-form.php:1222
4265
+ msgid ""
4266
+ "Rewrite permalinks with this format. False to prevent rewrite. Default: true "
4267
+ "and use post type as slug."
4268
+ msgstr ""
4269
+ "Przekształć stałe odnośniki używając tego formatu. Fałsz, aby zapobiec "
4270
+ "przekształceniu. Domyślnie: prawda i użyj typu postu jako slug."
4271
+
4272
+ #: includes/custom-types-form.php:1230
4273
+ msgid "Use the normal WordPress URL logic"
4274
+ msgstr "Zastosuj zwykłą logikę URL WordPressa"
4275
+
4276
+ #: includes/custom-types-form.php:1231
4277
+ msgid "Use a custom URL format"
4278
+ msgstr "Zastosuj własny URL"
4279
+
4280
+ #: includes/custom-types-form.php:1241 includes/custom-types-form.php:1291
4281
+ #: includes/custom-types-form.php:1298
4282
+ msgid "Optional."
4283
+ msgstr "Opcjonalnie."
4284
+
4285
+ #: includes/custom-types-form.php:1241
4286
+ msgid "Prepend posts with this slug - defaults to post type's name."
4287
+ msgstr "Poprzedź posty tym slugiem - domyślnie nazwa typu postu."
4288
+
4289
+ #: includes/custom-types-form.php:1252
4290
+ msgid ""
4291
+ "Example: if your permalink structure is /blog/, then your links will be: "
4292
+ "false->/news/, true->/blog/news/."
4293
+ msgstr ""
4294
+ "Przykład: jeżeli struktura permalinku to /blog/, wtedy twoje linki będą: "
4295
+ "fałsz -> /news/, prawda -> /blog/news/."
4296
+
4297
+ #: includes/custom-types-form.php:1259
4298
+ msgid "Feeds"
4299
+ msgstr "Kanały"
4300
+
4301
+ #: includes/custom-types-form.php:1260
4302
+ msgid "Defaults to has_archive value."
4303
+ msgstr "Domyślnie wartość has_archive."
4304
+
4305
+ #: includes/custom-types-form.php:1268
4306
+ msgid "Pages"
4307
+ msgstr "Strony"
4308
+
4309
+ #: includes/custom-types-form.php:1288
4310
+ msgid "has_archive"
4311
+ msgstr "has_archive"
4312
+
4313
+ #: includes/custom-types-form.php:1289
4314
+ msgid "Allow to have custom archive slug for CPT."
4315
+ msgstr "Umożliwia dodanie własnego sluga dla archiwum typu wpisu"
4316
+
4317
+ #: includes/custom-types-form.php:1289
4318
+ msgid "Default: not set."
4319
+ msgstr "Domyślnie: nie ustawiono."
4320
+
4321
+ #: includes/custom-types-form.php:1291
4322
+ msgid "Default is value of rewrite or CPT slug."
4323
+ msgstr "Domyślną wartością jest slug typu wpisu."
4324
+
4325
+ #: includes/custom-types-form.php:1296
4326
+ msgid "show_in_menu"
4327
+ msgstr "show_in_menu"
4328
+
4329
+ #: includes/custom-types-form.php:1297
4330
+ msgid ""
4331
+ "Whether to show the post type in the admin menu and where to show that menu. "
4332
+ "Note that show_ui must be true."
4333
+ msgstr ""
4334
+ "Określa, czy dany typ postu ma być wyświetlany w menu administratora i gdzie "
4335
+ "wyświetlić to menu. Uwaga: show-ui musi być ustawione na prawda."
4336
+
4337
+ #: includes/custom-types-form.php:1297
4338
+ msgid "Default: null."
4339
+ msgstr "Domyślnie: null."
4340
+
4341
+ #: includes/custom-types-form.php:1298
4342
+ msgid "Top level page like 'tools.php' or 'edit.php?post_type=page'"
4343
+ msgstr ""
4344
+ "Strona najwyższego poziomu, jak 'tools.php' albo 'edit.php?post_type=page'"
4345
+
4346
+ #: includes/custom-types-form.php:1305
4347
+ msgid "Generate a default UI for managing this post type."
4348
+ msgstr "Wygeneruj domyślny IU do zarządzania tym typem postu."
4349
+
4350
+ #: includes/custom-types-form.php:1305 includes/custom-types-form.php:1312
4351
+ #: includes/custom-types-form.php:1340
4352
+ msgid "Default: value of public argument."
4353
+ msgstr "Domyślnie: wartość argumentu publicznego."
4354
+
4355
+ #: includes/custom-types-form.php:1311
4356
+ msgid "publicly_queryable"
4357
+ msgstr "publicly_queryable"
4358
+
4359
+ #: includes/custom-types-form.php:1312
4360
+ msgid "Whether post_type queries can be performed from the front end."
4361
+ msgstr "Czy przeszukiwanie postów można wykonać z poziomu użytkownika."
4362
+
4363
+ #: includes/custom-types-form.php:1318
4364
+ msgid "exclude_from_search"
4365
+ msgstr "exclude_from_search"
4366
+
4367
+ #: includes/custom-types-form.php:1319
4368
+ msgid "Whether to exclude posts with this post type from search results."
4369
+ msgstr "Czy wykluczyć posty z tym typem postu z wyników wyszukiwania."
4370
+
4371
+ #: includes/custom-types-form.php:1319
4372
+ msgid "Default: value of the opposite of the public argument."
4373
+ msgstr "Domyślnie: wartość przeciwna do wartości argumentu publicznego."
4374
+
4375
+ #: includes/custom-types-form.php:1325
4376
+ msgid "hierarchical"
4377
+ msgstr "hierarchiczne"
4378
+
4379
+ #: includes/custom-types-form.php:1326
4380
+ msgid "Whether the post type is hierarchical. Allows Parent to be specified."
4381
+ msgstr "Czy ten typ postu jest hierarchiczny. Umożliwia wskazanie rodzica."
4382
+
4383
+ #: includes/custom-types-form.php:1332
4384
+ msgid "can_export"
4385
+ msgstr "can_export"
4386
+
4387
+ #: includes/custom-types-form.php:1333
4388
+ msgid "Can this post_type be exported."
4389
+ msgstr "Czy ten post_type można eksportować."
4390
+
4391
+ #: includes/custom-types-form.php:1333
4392
+ msgid "Default: true."
4393
+ msgstr "Domyślnie: prawda."
4394
+
4395
+ #: includes/custom-types-form.php:1340
4396
+ msgid "Whether post_type is available for selection in navigation menus."
4397
+ msgstr "Czy ten post_type można wybrać w menu nawigacji."
4398
+
4399
+ #: includes/custom-types-form.php:1351
4400
+ msgid ""
4401
+ "False to prevent queries, or string value of the query var to use for this "
4402
+ "post type."
4403
+ msgstr ""
4404
+ "Fałsz, aby zapobiec wyszukiwaniu albo ciąg znaków query var do wykorzystania "
4405
+ "dla tego typu postu."
4406
+
4407
+ #: includes/custom-types-form.php:1351
4408
+ msgid "Default: true - set to $post_type."
4409
+ msgstr "Domyślnie: prawda - ustaw na $post_type."
4410
+
4411
+ #: includes/custom-types-form.php:1359
4412
+ msgid "Permalink epmask"
4413
+ msgstr "Maska EP permalinku"
4414
+
4415
+ #: includes/custom-types-form.php:1360
4416
+ msgid "Default value EP_PERMALINK. More info here %s."
4417
+ msgstr "Domyślna wartość EP_PERMALINK. Więcej informacji tutaj %s."
4418
+
4419
+ #: includes/custom-types-taxonomies-list.php:13
4420
+ msgid ""
4421
+ "Custom Post Types are user-defined content types. Custom Taxonomies are used "
4422
+ "to categorize your content."
4423
+ msgstr ""
4424
+ "Typy postów niestandardowych są definiowanymi przez użytkownika typami "
4425
+ "zawartości. Taksonomie niestandardowe wykorzystywane są do kategoryzowania "
4426
+ "twoich treści."
4427
+
4428
+ #: includes/custom-types-taxonomies-list.php:14
4429
+ msgid ""
4430
+ "You can read more about Custom Post Types and Taxonomies in this tutorial. "
4431
+ "<a href=\"http://wp-types.com/learn/custom-post-types/\" target=\"_blank"
4432
+ "\">http://wp-types.com/learn/custom-post-types/ &raquo;</a>"
4433
+ msgstr ""
4434
+ "Więcej na temat niestandardowych typów postów i taksonomii można przeczytać "
4435
+ "w tym podręczniku. <a href=\"http://wp-types.com/learn/custom-post-types/\" "
4436
+ "target=\"_blank\">http://wp-types.com/learn/custom-post-types/ &raquo;</a>"
4437
+
4438
+ #: includes/custom-types-taxonomies-list.php:31
4439
+ msgid "Search custom posts"
4440
+ msgstr "Przeszukaj wpis niestandardowy"
4441
+
4442
+ #: includes/custom-types-taxonomies-list.php:50
4443
+ msgid "Search custom taxonomies"
4444
+ msgstr "Przeszukaj taksonomie niestandardowe"
4445
+
4446
+ #: includes/fields/checkbox.php:38 includes/fields/checkboxes.php:35
4447
+ #: includes/fields/date.php:36 includes/fields/radio.php:29
4448
+ #: includes/fields/select.php:29
4449
+ msgid "Name of custom field"
4450
+ msgstr "Nazwa pola niestandardowego"
4451
+
4452
+ #: includes/fields/checkbox.php:39 includes/fields/checkboxes.php:36
4453
+ #: includes/fields/date.php:37 includes/fields/radio.php:30
4454
+ #: includes/fields/select.php:30
4455
+ msgid "Under this name field will be stored in DB (sanitized)"
4456
+ msgstr "Nazwa, pod którą pole będzie przechowywane w BD (oczyszczonej)"
4457
+
4458
+ #: includes/fields/checkbox.php:49 includes/fields/checkboxes.php:44
4459
+ #: includes/fields/date.php:45 includes/fields/radio.php:38
4460
+ #: includes/fields/select.php:38
4461
+ msgid "Text that describes function to user"
4462
+ msgstr "Tekst opisu funkcji dla użytkownika"
4463
+
4464
+ #: includes/fields/checkbox.php:55 includes/fields/checkboxes.php:174
4465
+ msgid "Value to store"
4466
+ msgstr "Wartość do zachowania"
4467
+
4468
+ #: includes/fields/checkbox.php:60 includes/fields/checkboxes.php:179
4469
+ msgid "This value can't be zero"
4470
+ msgstr "Ta wartość nie może być zerowa"
4471
+
4472
+ #: includes/fields/checkbox.php:61 includes/fields/checkboxes.php:180
4473
+ msgid "Please enter a value"
4474
+ msgstr "Wpisz wartość"
4475
+
4476
+ #: includes/fields/checkbox.php:73
4477
+ msgid "save 0 to the database"
4478
+ msgstr "zapisz 0 do bazy danych"
4479
+
4480
+ #: includes/fields/checkbox.php:78
4481
+ msgid "don't save anything to the database"
4482
+ msgstr "nie zapisuj nic w bazie danych"
4483
+
4484
+ #: includes/fields/checkbox.php:83
4485
+ msgid "When unchecked:"
4486
+ msgstr "Kiedy nie zaznaczone:"
4487
+
4488
+ #: includes/fields/checkbox.php:89 includes/fields/checkboxes.php:188
4489
+ msgid "Set checked by default (on new post)?"
4490
+ msgstr "Ustawić domyślne zaznaczenie (dla nowego postu)?"
4491
+
4492
+ #: includes/fields/checkbox.php:107 includes/fields/checkboxes.php:206
4493
+ msgid "Show one of these two values:"
4494
+ msgstr "Wyświetl jedną z tych dwóch wartości:"
4495
+
4496
+ #: includes/fields/checkbox.php:135
4497
+ msgid "Checkbox help"
4498
+ msgstr "Pomoc do pola wyboru"
4499
+
4500
+ #: includes/fields/checkboxes.php:58
4501
+ msgid "When unchecked, save 0 to the database"
4502
+ msgstr "Kiedy nie zaznaczone, zapisz 0 w bazie danych"
4503
+
4504
+ #: includes/fields/checkboxes.php:63
4505
+ msgid "When unchecked, don't save anything to the database"
4506
+ msgstr "Kiedy nie zaznaczone, nie zapisuj nic w bazie danych."
4507
+
4508
+ #: includes/fields/checkboxes.php:117 includes/fields/radio.php:104
4509
+ #: includes/fields/select.php:82
4510
+ msgid "Add option"
4511
+ msgstr "Dodaj opcję"
4512
+
4513
+ #: includes/fields/checkboxes.php:138 includes/fields/checkboxes.php:249
4514
+ msgid "Checkbox title"
4515
+ msgstr "Tytuł pola wyboru"
4516
+
4517
+ #: includes/fields/checkboxes.php:146 includes/fields/radio.php:178
4518
+ #: includes/fields/select.php:110
4519
+ msgid "Move this option"
4520
+ msgstr "Przenieś tę opcję"
4521
+
4522
+ #: includes/fields/checkboxes.php:152
4523
+ msgid "Delete this checkbox"
4524
+ msgstr "Usuń to pole wyboru"
4525
+
4526
+ #: includes/fields/date.php:55
4527
+ msgid "Input only the date"
4528
+ msgstr "Wpisuj tylko datę"
4529
+
4530
+ #: includes/fields/date.php:59
4531
+ msgid "Input date and time"
4532
+ msgstr "Wpisuj datę i godzinę"
4533
+
4534
+ #: includes/fields/radio.php:47 includes/fields/select.php:47
4535
+ msgid "Display text"
4536
+ msgstr "Tekst wyświetlany"
4537
+
4538
+ #: includes/fields/radio.php:49 includes/fields/select.php:49
4539
+ msgid "Custom field content"
4540
+ msgstr "Zawartość pola niestandardowego"
4541
+
4542
+ #: includes/fields/radio.php:82
4543
+ msgid "No Default"
4544
+ msgstr "Brak wartości domyślnej"
4545
+
4546
+ #: includes/fields/radio.php:161 includes/fields/radio.php:225
4547
+ #: includes/fields/select.php:95
4548
+ msgid "Option title"
4549
+ msgstr "Tytuł opcji"
4550
+
4551
+ #: includes/fields/radio.php:186 includes/fields/select.php:115
4552
+ msgid "Delete this option"
4553
+ msgstr "Usuń tę opcję"
4554
+
4555
+ #: includes/fields/radio.php:199 includes/fields/select.php:128
4556
+ msgid "Value"
4557
+ msgstr "Wartość"
4558
+
4559
+ #: includes/fields/radio.php:240
4560
+ msgid "Value to display"
4561
+ msgstr "Wartość do wyświetlenia"
4562
+
4563
+ #: includes/fields-control.php:14
4564
+ msgid "Search fields"
4565
+ msgstr "Wyszukaj pola"
4566
+
4567
+ #: includes/fields-control.php:183
4568
+ msgid "Custom Field Name"
4569
+ msgstr "Nazwa pola niestandardowego"
4570
+
4571
+ #: includes/fields-control.php:184 includes/usermeta-control.php:172
4572
+ msgid "Group"
4573
+ msgstr "Grupa"
4574
+
4575
+ #: includes/fields-control.php:185 includes/usermeta-control.php:173
4576
+ msgid "Types Name"
4577
+ msgstr "Nazwa w Types"
4578
+
4579
+ #: includes/fields-control.php:221 includes/usermeta-control.php:209
4580
+ msgid "Not under Types control"
4581
+ msgstr "Nie sterowane przez Types"
4582
+
4583
+ #: includes/fields-control.php:225 includes/usermeta-control.php:213
4584
+ msgid "disabled"
4585
+ msgstr "wyłączone"
4586
+
4587
+ #: includes/fields-control.php:228 includes/usermeta-control.php:216
4588
+ msgid ""
4589
+ "This field was disabled during conversion. You need to set some further "
4590
+ "settings in the group editor."
4591
+ msgstr ""
4592
+ "To pole zostało wyłączone podczas konwersji. Musisz wprowadzić kilka "
4593
+ "ustawień dodatkowych w edytorze grupy."
4594
+
4595
+ #: includes/fields-control.php:239 includes/usermeta-control.php:228
4596
+ msgid "Add to group"
4597
+ msgstr "Dodaj do grupy"
4598
+
4599
+ #: includes/fields-control.php:240 includes/usermeta-control.php:229
4600
+ msgid "Remove from group"
4601
+ msgstr "Usuń z grupy"
4602
+
4603
+ #: includes/fields-control.php:241 includes/usermeta-control.php:230
4604
+ msgid "Change type"
4605
+ msgstr "Zmień typ"
4606
+
4607
+ #: includes/fields-control.php:242 includes/usermeta-control.php:231
4608
+ msgid "Add to Types control"
4609
+ msgstr "Dodaj do sterowanych przez Types"
4610
+
4611
+ #: includes/fields-control.php:243 includes/usermeta-control.php:232
4612
+ msgid "Stop controlling with Types"
4613
+ msgstr "Zaprzestań sterowania przez Types"
4614
+
4615
+ #: includes/fields-control.php:251 includes/usermeta-control.php:240
4616
+ msgid "Show pagination"
4617
+ msgstr "Wyświetl podział stron"
4618
+
4619
+ #: includes/fields-control.php:254 includes/usermeta-control.php:243
4620
+ msgid "Display all items"
4621
+ msgstr "Wyświetl wszystkie elementy"
4622
+
4623
+ #: includes/fields-control.php:316 includes/usermeta-control.php:372
4624
+ msgid ""
4625
+ "Deleting fields will remove fields from groups and delete post meta. "
4626
+ "Continue?"
4627
+ msgstr ""
4628
+ "Usunięcie pól spowoduje usunięcie ich z grup oraz usunięcie metadanych "
4629
+ "postu. Kontynuować?"
4630
+
4631
+ #: includes/fields-control.php:348 includes/usermeta-control.php:285
4632
+ msgid "Removed from Types control: %s"
4633
+ msgstr "Usunięto spod kontroli przez Types: %s"
4634
+
4635
+ #: includes/fields-control.php:361 includes/usermeta-control.php:298
4636
+ msgid "Added to Types control: %s"
4637
+ msgstr "Dodano to sterowania przez Types: %s"
4638
+
4639
+ #: includes/fields-control.php:380 includes/usermeta-control.php:315
4640
+ msgid "Fields %s have been deleted."
4641
+ msgstr "Pola %s zostały usunięte."
4642
+
4643
+ #: includes/fields-control.php:386 includes/usermeta-control.php:320
4644
+ msgid "Fields %s are not Types fields. Types wont delete these fields."
4645
+ msgstr "Pola %s nie są polami Types. Wtyczka Types nie usunie tych pól."
4646
+
4647
+ #: includes/fields-control.php:412 includes/usermeta-control.php:392
4648
+ msgid "Please select fields"
4649
+ msgstr "Wybierz pola"
4650
+
4651
+ #: includes/fields-control.php:474 includes/settings.php:202
4652
+ #: includes/usermeta-control.php:458
4653
+ #: plus/types-access/includes/admin-edit-access.php:525
4654
+ #: plus/types-access/includes/admin-edit-access.php:528
4655
+ msgid "Save Changes"
4656
+ msgstr "Zapisz zmiany"
4657
+
4658
+ #: includes/fields-form.php:43 includes/usermeta-form.php:36
4659
+ msgid "Group name can not be empty."
4660
+ msgstr "Proszę wypełnić nazwę grupy."
4661
+
4662
+ #: includes/fields-form.php:63 includes/fields-form.php:88
4663
+ #: includes/usermeta-form.php:58 includes/usermeta-form.php:81
4664
+ msgid ""
4665
+ "A group by name <em>%s</em> already exists. Please use a different name and "
4666
+ "save again."
4667
+ msgstr ""
4668
+ "Grupa o nazwie <em>%s</em> już istnieje. Użyj innej nazwy grupy i zapisz "
4669
+ "ponownie."
4670
+
4671
+ #: includes/fields-form.php:74 includes/usermeta-form.php:68
4672
+ msgid "Wrong group ID %d"
4673
+ msgstr "Błędne ID grupy %d"
4674
+
4675
+ #: includes/fields-form.php:104 includes/usermeta-form.php:99
4676
+ msgid ""
4677
+ "Field slugs cannot contain non-English characters. Please edit this field "
4678
+ "name %s and save again."
4679
+ msgstr ""
4680
+ "Slugi pola nie mogą zawierać znaków spoza alfabetu angielskiego. Zmień tę "
4681
+ "nazwę pola %s i zapisz ponownie."
4682
+
4683
+ #: includes/fields-form.php:110
4684
+ msgid "Field names or slugs cannot contain only numbers."
4685
+ msgstr "Nazwy pól lub slugi nie mogą zawierać wyłącznie cyfr."
4686
+
4687
+ #: includes/fields-form.php:122 includes/usermeta-form.php:112
4688
+ msgid "Field with name \"%s\" already exists"
4689
+ msgstr "Pole o nazwie \"%s\" już istnieje"
4690
+
4691
+ #: includes/fields-form.php:128 includes/usermeta-form.php:119
4692
+ msgid "Field with slug \"%s\" already exists"
4693
+ msgstr "Pole o slugu \"%s\" już istnieje"
4694
+
4695
+ #: includes/fields-form.php:210 includes/usermeta-form.php:176
4696
+ msgid "Group saved"
4697
+ msgstr "Zapisano grupę"
4698
+
4699
+ #: includes/fields-form.php:216 includes/usermeta-form.php:182
4700
+ msgid "Error saving group"
4701
+ msgstr "Błąd podczas zapisywania grupy"
4702
+
4703
+ #: includes/fields-form.php:250 includes/usermeta-form.php:213
4704
+ msgid "Group with ID %d do not exist"
4705
+ msgstr "Grupa o ID %d nie istnieje"
4706
+
4707
+ #: includes/fields-form.php:290
4708
+ msgid "Custom fields help"
4709
+ msgstr "Pomoc nt. pól niestandardowych"
4710
+
4711
+ #: includes/fields-form.php:300 includes/usermeta-form.php:254
4712
+ msgid "Available fields"
4713
+ msgstr "Dostępne pola"
4714
+
4715
+ #: includes/fields-form.php:349 includes/usermeta-form.php:304
4716
+ msgid "User created fields"
4717
+ msgstr "Pola stworzone przez użytkownika"
4718
+
4719
+ #: includes/fields-form.php:376 includes/usermeta-form.php:331
4720
+ msgid "Are you sure that you want to remove field %s from history?"
4721
+ msgstr "Czy na pewno chcesz usunąć pole %s z historii?"
4722
+
4723
+ #: includes/fields-form.php:380 includes/usermeta-form.php:335
4724
+ msgid "Remove field %s"
4725
+ msgstr "Usuń pole %s"
4726
+
4727
+ #: includes/fields-form.php:459 includes/fields-form.php:479
4728
+ msgid "Displayed on all content types"
4729
+ msgstr "Wyświetlane ze wszystkimi typami zawartości"
4730
+
4731
+ #: includes/fields-form.php:477
4732
+ msgid "Post Types:"
4733
+ msgstr "Typy postów:"
4734
+
4735
+ #: includes/fields-form.php:541 includes/fields-form.php:549
4736
+ #: includes/fields-form.php:606 includes/fields-form.php:628
4737
+ msgid "Not Selected"
4738
+ msgstr "Nie wybrano"
4739
+
4740
+ #: includes/fields-form.php:547
4741
+ msgid "Terms:"
4742
+ msgstr "Wyrażenia:"
4743
+
4744
+ #: includes/fields-form.php:562 includes/fields-form.php:596
4745
+ msgid "Default Template"
4746
+ msgstr "Szablon domyślny"
4747
+
4748
+ #: includes/fields-form.php:626
4749
+ msgid "Templates:"
4750
+ msgstr "Szablony:"
4751
+
4752
+ #: includes/fields-form.php:638 includes/usermeta-form.php:437
4753
+ msgid "Where to display this group"
4754
+ msgstr "Gdzie wyświetlić tę grupę"
4755
+
4756
+ #: includes/fields-form.php:641
4757
+ msgid ""
4758
+ "Each custom fields group can display on different content types or different "
4759
+ "taxonomy."
4760
+ msgstr ""
4761
+ "Każda grupa pól niestandardowych może być wyświetlana z różnymi typami "
4762
+ "zawartości lub z różną taksonomią."
4763
+
4764
+ #: includes/fields-form.php:688
4765
+ msgid "Display this group when ANY of the above conditions is met"
4766
+ msgstr ""
4767
+ "Wyświetl tę grupę tam, gdzie spełniony jest DOWOLNY z powyższych warunków"
4768
+
4769
+ #: includes/fields-form.php:689
4770
+ msgid "Display this group when ALL the above conditions is met"
4771
+ msgstr "Wyświetl tę grupę, kiedy spełnione są WSZYSTKIE powyższe warunki"
4772
+
4773
+ #: includes/fields-form.php:697 includes/usermeta-form.php:654
4774
+ msgid ""
4775
+ "This group will appear on %pt% edit pages where content belongs to taxonomy: "
4776
+ "%tx% or Content Template is: %vt%"
4777
+ msgstr ""
4778
+ "Ta grupa widoczna będzie na stronach edycji %pt%, których zawartość należy "
4779
+ "do taksonomii: %tx% lub szablon widoku to: %vt%"
4780
+
4781
+ #: includes/fields-form.php:699 includes/usermeta-form.php:656
4782
+ msgid ""
4783
+ "This group will appear on %pt% edit pages where content belongs to taxonomy: "
4784
+ "%tx% and Content Template is: %vt%"
4785
+ msgstr ""
4786
+ "Ta grupa będzie widoczna na stronach edycji %pt%, których zawartość należy "
4787
+ "do taksonomii: %tx% lub szablon widoku to: %vt%"
4788
+
4789
+ #: includes/fields-form.php:701 includes/usermeta-form.php:658
4790
+ msgid "all"
4791
+ msgstr "wszystkie"
4792
+
4793
+ #: includes/fields-form.php:703 includes/fields-form.php:705
4794
+ #: includes/usermeta-form.php:660 includes/usermeta-form.php:662
4795
+ msgid "any"
4796
+ msgstr "dowolny"
4797
+
4798
+ #: includes/fields-form.php:725 includes/usermeta-form.php:471
4799
+ msgid "Styling Editor"
4800
+ msgstr "Edytor stylizacji"
4801
+
4802
+ #: includes/fields-form.php:728 includes/usermeta-form.php:474
4803
+ msgid "Customize Fields for admin panel."
4804
+ msgstr "Personalizuj pola panelu administratora."
4805
+
4806
+ #: includes/fields-form.php:794 includes/usermeta-form.php:535
4807
+ msgid "Field group preview"
4808
+ msgstr "Podgląd grupy pól"
4809
+
4810
+ #: includes/fields-form.php:802 includes/usermeta-form.php:543
4811
+ msgid "Your CSS"
4812
+ msgstr "Własny CSS"
4813
+
4814
+ #: includes/fields-form.php:806 includes/usermeta-form.php:546
4815
+ msgid "Admin styles for fields:"
4816
+ msgstr "Style administratora dla pól:"
4817
+
4818
+ #: includes/fields-form.php:807 includes/usermeta-form.php:546
4819
+ msgid "Open style editor"
4820
+ msgstr "Otwórz w edytorze stylów"
4821
+
4822
+ #: includes/fields-form.php:823 includes/usermeta-form.php:564
4823
+ msgid "Fields"
4824
+ msgstr "Pola"
4825
+
4826
+ #: includes/fields-form.php:886 includes/usermeta-form.php:625
4827
+ msgid ""
4828
+ "There are no fields in this group. To add a field, click on the field "
4829
+ "buttons at the right."
4830
+ msgstr ""
4831
+ "Ta grupa nie zawiera pól. Aby dodać pole, kliknij na przyciskach pól po "
4832
+ "prawej stronie."
4833
+
4834
+ #: includes/fields-form.php:917 includes/usermeta-form.php:665
4835
+ msgid "Warning: same values selected"
4836
+ msgstr "Uwaga: wybrano identyczne wartości"
4837
+
4838
+ #: includes/fields-form.php:919 includes/usermeta-form.php:667
4839
+ msgid "Warning: field name already used"
4840
+ msgstr "Uwaga: nazwa pola już istnieje"
4841
+
4842
+ #: includes/fields-form.php:921 includes/usermeta-form.php:669
4843
+ msgid "Warning: field slug already used"
4844
+ msgstr "Uwaga: slug pola już istnieje"
4845
+
4846
+ #: includes/fields-form.php:923
4847
+ msgid "Sorry, but this is only preview!"
4848
+ msgstr "Przepraszamy, ale to jest tylko podgląd!"
4849
+
4850
+ #: includes/fields-form.php:959 includes/usermeta-form.php:701
4851
+ msgid "Requested field don't exist"
4852
+ msgstr "Żądane pole nie istnieje"
4853
+
4854
+ #: includes/fields-form.php:996
4855
+ msgid "Wrong field requested"
4856
+ msgstr "Zażądano niewłaściwego pola"
4857
+
4858
+ #: includes/fields-form.php:1044
4859
+ msgid "Move this field"
4860
+ msgstr "Przenieś to pole"
4861
+
4862
+ #: includes/fields-form.php:1048
4863
+ msgid "Delete this field"
4864
+ msgstr "Usuń to pole"
4865
+
4866
+ #: includes/fields-form.php:1058
4867
+ msgid "Untitled"
4868
+ msgstr "Bez tytułu"
4869
+
4870
+ #: includes/fields-form.php:1060
4871
+ msgid "%s field"
4872
+ msgstr "pole %s"
4873
+
4874
+ #: includes/fields-form.php:1065
4875
+ msgid "(conditional)"
4876
+ msgstr "(warunkowe)"
4877
+
4878
+ #: includes/fields-form.php:1163
4879
+ msgid "Placeholder"
4880
+ msgstr "Symbol zastępczy"
4881
+
4882
+ #: includes/fields-form.php:1166
4883
+ msgid "Enter placeholder"
4884
+ msgstr "Wpisz symbol zastępczy"
4885
+
4886
+ #: includes/fields-form.php:1191 includes/fields-form.php:1204
4887
+ msgid "Default Value"
4888
+ msgstr "Wartość domyślna"
4889
+
4890
+ #: includes/fields-form.php:1194 includes/fields-form.php:1207
4891
+ msgid "Enter default value"
4892
+ msgstr "Wpisz domyślną wartość"
4893
+
4894
+ #: includes/fields-form.php:1235
4895
+ msgid "Single or repeating field?"
4896
+ msgstr "Pole jednorazowe czy powtarzalne?"
4897
+
4898
+ #: includes/fields-form.php:1249
4899
+ msgid ""
4900
+ "There may be multiple instances of this field already. When you switch back "
4901
+ "to single-field mode, all values of this field will be updated when it's "
4902
+ "edited."
4903
+ msgstr ""
4904
+ "Może istnieć już wiele instancji tego pola. Kiedy przełączysz z powrotem na "
4905
+ "tryb pola jednorazowego, wszystkie wartości tego pola zostaną "
4906
+ "zaktualizowane, kiedy to pole zostanie zmienione."
4907
+
4908
+ #: includes/fields-form.php:1315
4909
+ msgid "Translation preferences"
4910
+ msgstr "Preferencje tłumaczenia"
4911
+
4912
+ #: includes/fields-form.php:1363
4913
+ msgid "Validation"
4914
+ msgstr "Walidacja"
4915
+
4916
+ #: includes/fields-form.php:1363
4917
+ msgid "Error message"
4918
+ msgstr "Komunikat błędu"
4919
+
4920
+ #: includes/fields-list.php:23
4921
+ msgid "Search custom fields"
4922
+ msgstr "Przeszukaj pola niestandardowe"
4923
+
4924
+ #: includes/fields-list.php:62
4925
+ msgid ""
4926
+ "You can control Custom Fields by removing them from the groups, changing "
4927
+ "type or just deleting."
4928
+ msgstr ""
4929
+ "Można kontrolwać własne pole, usuwając z grupy, zmieniając typ lub po prostu usuwając."
4930
+
4931
+ #: includes/fields-list.php:71
4932
+ msgid "Control Custom Fields"
4933
+ msgstr "Zarządzanie własnymi polami wpisów"
4934
+
4935
+ #: includes/fields.php:280
4936
+ msgid "Error saving field"
4937
+ msgstr "Błąd podczas zapisywania pola"
4938
+
4939
+ #: includes/fields.php:286
4940
+ msgid "Please set name for field"
4941
+ msgstr "Podaj nazwę pola"
4942
+
4943
+ #: includes/fields.php:535
4944
+ msgid ""
4945
+ "Field \"%s\" type was converted from %s to %s. You need to set some further "
4946
+ "settings in the group editor."
4947
+ msgstr ""
4948
+ "Typ pola \"%s\" został zmieniony z %s na %s. Musisz wprowadzić kilka "
4949
+ "dodatkowych ustawień w edytorze grupy."
4950
+
4951
+ #: includes/fields.php:546
4952
+ msgid "Please enter numeric data"
4953
+ msgstr "Wpisz datę numerycznie"
4954
+
4955
+ #: includes/fields.php:1361
4956
+ msgid "There is no custom fields assign to this post type."
4957
+ msgstr "Nie przypisano żadnego pola do tego typu wpisu."
4958
+
4959
+ #: includes/fields.php:1365
4960
+ msgid "Check which fields should be shown on custom post list as a column."
4961
+ msgstr ""
4962
+ "Znaznacz pola, które mają być wuświetlane jako kolumny na liście wpisów."
4963
+
4964
+ #: includes/fields.php:1369
4965
+ msgid "Drag and drop ticked custom fields to reorder."
4966
+ msgstr "Złap i przenieś żeby zmienić kolejność,"
4967
+
4968
+ #: includes/import-export.php:43 includes/import-export.php:117
4969
+ msgid "Unable to open zip file"
4970
+ msgstr "Nie można otworzyć pliku zip"
4971
+
4972
+ #: includes/import-export.php:57 includes/import-export.php:63
4973
+ msgid "Unable to process file"
4974
+ msgstr "Nie można przetworzyć pliku"
4975
+
4976
+ #: includes/import-export.php:86
4977
+ msgid "Error uploading file"
4978
+ msgstr "Błąd podczas przesyłania pliku na serwer"
4979
+
4980
+ #: includes/import-export.php:96
4981
+ msgid "Error moving uploaded file"
4982
+ msgstr "Błąd przenoszenia przesłanego pliku"
4983
+
4984
+ #: includes/import-export.php:159 includes/import-export.php:166
4985
+ msgid "Data not valid"
4986
+ msgstr "Dane niepoprawne"
4987
+
4988
+ #: includes/import-export.php:184
4989
+ msgid "Import"
4990
+ msgstr "Import"
4991
+
4992
+ #: includes/import-export.php:199
4993
+ msgid "Export Types data"
4994
+ msgstr "Eksportuj dane wtyczki Types"
4995
+
4996
+ #: includes/import-export.php:200
4997
+ msgid ""
4998
+ "Download all custom fields, custom post types and taxonomies created by "
4999
+ "Types plugin."
5000
+ msgstr ""
5001
+ "Pobierz wszystkie niestandardowe pola, typy postów i taksonomie stworzone "
5002
+ "przez wtyczkę Types."
5003
+
5004
+ #: includes/import-export.php:214
5005
+ msgid "Upload XML file"
5006
+ msgstr "Prześlij plik XML"
5007
+
5008
+ #: includes/import-export.php:222
5009
+ msgid "Import file"
5010
+ msgstr "Importuj plik"
5011
+
5012
+ #: includes/import-export.php:235
5013
+ msgid "Paste code here"
5014
+ msgstr "Tu wklej kod"
5015
+
5016
+ #: includes/import-export.php:242
5017
+ msgid "Encoding"
5018
+ msgstr "Kodowanie"
5019
+
5020
+ #: includes/import-export.php:245
5021
+ msgid "If encoding is set in text input, it will override this setting."
5022
+ msgstr ""
5023
+ "Jeżeli kodowanie ustawione jest na wejście tekstowe, to ustawienie zostanie "
5024
+ "zmienione."
5025
+
5026
+ #: includes/import-export.php:250
5027
+ msgid "Import text"
5028
+ msgstr "Importuj tekst"
5029
+
5030
+ #: includes/import-export.php:260
5031
+ msgid "PHP SimpleXML extension not loaded: Importing not available"
5032
+ msgstr "Nie wczytano rozszerzenia PHP SimpleXML: import niedostępny"
5033
+
5034
+ #: includes/import-export.php:292
5035
+ msgid "General Settings"
5036
+ msgstr "Ustawienia ogólne"
5037
+
5038
+ #: includes/import-export.php:296
5039
+ msgid "Overwrite settings"
5040
+ msgstr "Zmień ustawienia"
5041
+
5042
+ #: includes/import-export.php:303
5043
+ msgid "Bulk overwrite groups if exist"
5044
+ msgstr "Masowa zmiana grup, jeżeli istnieją"
5045
+
5046
+ #: includes/import-export.php:310
5047
+ msgid "Delete group if don't exist"
5048
+ msgstr "Usuń grupę, jeżeli nie istnieje"
5049
+
5050
+ #: includes/import-export.php:317
5051
+ msgid "Delete field if don't exist"
5052
+ msgstr "Usuń pole, jeżeli nie istnieje"
5053
+
5054
+ #: includes/import-export.php:324
5055
+ msgid "Delete custom post type if don't exist"
5056
+ msgstr "Usuń własny typ postu, jeżeli nie istnieje"
5057
+
5058
+ #: includes/import-export.php:331
5059
+ msgid "Delete custom taxonomy if don't exist"
5060
+ msgstr "Usuń taksonomię niestandardową, jeżeli nie istnieje"
5061
+
5062
+ #: includes/import-export.php:351
5063
+ msgid "Groups to be added/updated"
5064
+ msgstr "Grupy do dodania/usunięcia"
5065
+
5066
+ #: includes/import-export.php:379 includes/import-export.php:488
5067
+ msgid "Create new"
5068
+ msgstr "Utwórz nowy/ą/e"
5069
+
5070
+ #: includes/import-export.php:401 includes/import-export.php:510
5071
+ msgid "Groups to be deleted"
5072
+ msgstr "Grupy do usunięcia"
5073
+
5074
+ #: includes/import-export.php:416
5075
+ msgid "Fields to be added/updated"
5076
+ msgstr "Pola do dodania/aktualizacji"
5077
+
5078
+ #: includes/import-export.php:446 includes/import-export.php:555
5079
+ msgid "Fields to be deleted"
5080
+ msgstr "Pola do usunięcia"
5081
+
5082
+ #: includes/import-export.php:460
5083
+ msgid "User Groups to be added/updated"
5084
+ msgstr "Grupy użytkownika do dodania/aktualizacji"
5085
+
5086
+ #: includes/import-export.php:525
5087
+ msgid "User fields to be added/updated"
5088
+ msgstr "Pola użytkownika do dodania/aktualizacji"
5089
+
5090
+ #: includes/import-export.php:569
5091
+ msgid "Custom post types to be added/updated"
5092
+ msgstr "Niestandardowe typy postów do dodania/aktualizacji"
5093
+
5094
+ #: includes/import-export.php:596
5095
+ msgid "Custom post types to be deleted"
5096
+ msgstr "Niestandardowe typy postów do usunięcia"
5097
+
5098
+ #: includes/import-export.php:610
5099
+ msgid "Custom taxonomies to be added/updated"
5100
+ msgstr "Taksonomie niestandardowe do dodania/aktualizacji"
5101
+
5102
+ #: includes/import-export.php:637
5103
+ msgid "Custom taxonomies to be deleted"
5104
+ msgstr "Taksonomie niestandardowe do usunięcia"
5105
+
5106
+ #: includes/import-export.php:651
5107
+ msgid "Post relationship"
5108
+ msgstr "Relacje pomiędzy postami"
5109
+
5110
+ #: includes/import-export.php:657
5111
+ msgid "Create relationships"
5112
+ msgstr "Utwórz relację"
5113
+
5114
+ #: includes/migration.php:35
5115
+ msgid "Custom Types UI Post Types"
5116
+ msgstr "Typy postów niestandardowego IU wtyczki Types"
5117
+
5118
+ #: includes/migration.php:43 includes/migration.php:74
5119
+ msgid "(exists)"
5120
+ msgstr "(istnieje)"
5121
+
5122
+ #: includes/migration.php:65
5123
+ msgid "Custom Types UI Taxonomies"
5124
+ msgstr "Niestandardowe taksonomie IU wtyczki Types"
5125
+
5126
+ #: includes/migration.php:99
5127
+ msgid ""
5128
+ "Disable Custom Types UI after importing the configuration (leave this "
5129
+ "checked to avoid defining custom types twice)"
5130
+ msgstr ""
5131
+ "Wyłącz niestandardowy IU wtyczki Types po zaimportowaniu konfiguracji "
5132
+ "(zostaw to pole zaznaczone, aby uniknąć powtórnego definiowania typów "
5133
+ "niestandardowych)"
5134
+
5135
+ #: includes/migration.php:138
5136
+ msgid "Advanced Custom Fields"
5137
+ msgstr "Zaawansowane pola niestandardowe"
5138
+
5139
+ #: includes/migration.php:150
5140
+ msgid "Group will be created"
5141
+ msgstr "Grupa zostanie utworzona"
5142
+
5143
+ #: includes/migration.php:152
5144
+ msgid "Group will be updated"
5145
+ msgstr "Grupa zostanie zaktualizowana"
5146
+
5147
+ #: includes/migration.php:190
5148
+ msgid "Field conversion not supported by Types"
5149
+ msgstr "Konwersja pola nieobsługiwana przez wtyczkę Types"
5150
+
5151
+ #: includes/migration.php:193
5152
+ msgid "Field with same name is already controlled by Types"
5153
+ msgstr "Pole o identycznej nazwie jest już pod kontrolą wtyczki Types"
5154
+
5155
+ #: includes/migration.php:196
5156
+ msgid "Field will be updated"
5157
+ msgstr "Pole zostanie zaktualizowane"
5158
+
5159
+ #: includes/migration.php:199
5160
+ msgid "Field will be created"
5161
+ msgstr "Pole zostanie utworzone"
5162
+
5163
+ #: includes/migration.php:294
5164
+ msgid "Import custom field settings"
5165
+ msgstr "Importuj ustawienia pola niestandardowego"
5166
+
5167
+ #: includes/migration.php:321
5168
+ msgid "Post Type %s added"
5169
+ msgstr "Dodano typ postu %s"
5170
+
5171
+ #: includes/migration.php:339
5172
+ msgid "Taxonomy %s added"
5173
+ msgstr "Dodano taksonomię %s"
5174
+
5175
+ #: includes/migration.php:387
5176
+ msgid "Group %s added"
5177
+ msgstr "Dodano grupę %s"
5178
+
5179
+ #: includes/migration.php:391
5180
+ msgid "Group %s updated"
5181
+ msgstr "Zaktualizowano grupę %s"
5182
+
5183
+ #: includes/migration.php:409
5184
+ msgid "Field %s added"
5185
+ msgstr "Dodano pole %s"
5186
+
5187
+ #: includes/post-relationship.php:94
5188
+ msgid "Wrong post types"
5189
+ msgstr "Błędne typy postów"
5190
+
5191
+ #: includes/post-relationship.php:98
5192
+ msgid "Relationship do not exist"
5193
+ msgstr "Relacja nie istnieje"
5194
+
5195
+ #: includes/post-relationship.php:158
5196
+ msgid "Title, all custom fields and parents"
5197
+ msgstr "Tytuł, wszystkie pola niestandardowe i rodzice"
5198
+
5199
+ #: includes/post-relationship.php:159
5200
+ msgid "Do not show management options for this post type"
5201
+ msgstr "Nie wyświetlaj opcji zarządzania dla tego typu wpisu"
5202
+
5203
+ #: includes/post-relationship.php:160
5204
+ msgid "All fields, including the standard post fields"
5205
+ msgstr "Wszystkie pola, w tym standardowe pola postu"
5206
+
5207
+ #: includes/post-relationship.php:161 includes/post-relationship.php:225
5208
+ msgid "Specific fields"
5209
+ msgstr "Wybrane pola"
5210
+
5211
+ #: includes/post-relationship.php:181
5212
+ msgid "Post title"
5213
+ msgstr "Tytuł postu"
5214
+
5215
+ #: includes/post-relationship.php:185
5216
+ msgid "Post body"
5217
+ msgstr "Treść postu"
5218
+
5219
+ #: includes/post-relationship.php:193
5220
+ msgid "Post featured image"
5221
+ msgstr "Ikona wpisu"
5222
+
5223
+ #: includes/post-relationship.php:236
5224
+ msgid "Taxonomy - %s"
5225
+ msgstr "Taksonomia - %s"
5226
+
5227
+ #: includes/post-relationship.php:303 includes/post-relationship.php:453
5228
+ msgid "Children: None"
5229
+ msgstr "Potomne: brak"
5230
+
5231
+ #: includes/post-relationship.php:309 includes/post-relationship.php:454
5232
+ msgid "Children: %s"
5233
+ msgstr "Potomne: %s"
5234
+
5235
+ #: includes/post-relationship.php:316 includes/post-relationship.php:327
5236
+ #: includes/post-relationship.php:456
5237
+ msgid "Parent: %s"
5238
+ msgstr "Rodzic: %s"
5239
+
5240
+ #: includes/post-relationship.php:319 includes/post-relationship.php:330
5241
+ #: includes/post-relationship.php:455
5242
+ msgid "Parent: None"
5243
+ msgstr "Rodzic: brak"
5244
+
5245
+ #: includes/post-relationship.php:377 includes/post-relationship.php:431
5246
+ #: plus/types-access/includes/admin-edit-access.php:612
5247
+ #: plus/types-access/includes/admin-edit-access.php:669
5248
+ msgid "Apply"
5249
+ msgstr "Zastosuj"
5250
+
5251
+ #: includes/post-relationship.php:415
5252
+ msgid "Select child fields to be displayed"
5253
+ msgstr "Wybierz pola potomne do wyświetlenia"
5254
+
5255
+ #: includes/post-relationship.php:416 includes/post-relationship.php:419
5256
+ msgid "Edit fields"
5257
+ msgstr "Edytuj pola"
5258
+
5259
+ #: includes/post-relationship.php:418
5260
+ msgid "Please save the page first, before you can edit the child items"
5261
+ msgstr "Elementy potomne będzie można edytować dopiero po zapisaniu tej strony"
5262
+
5263
+ #: includes/post-relationship.php:438
5264
+ msgid "You can choose which fields will show when editing parent pages."
5265
+ msgstr ""
5266
+ "Możesz wybrać, które pola będą wyświetlane podczas edycji stron rodziców."
5267
+
5268
+ #: includes/post-relationship.php:439
5269
+ msgid "Click on the 'edit' button to select them for each parent."
5270
+ msgstr "Kliknij przycisk 'edycja', aby wybrać je dla każdego rodzica."
5271
+
5272
+ #: includes/post-relationship.php:441
5273
+ msgid "Learn about %sPost Type Relationships%s"
5274
+ msgstr "Dowiedz się o %sRelacjach typu postu%s"
5275
+
5276
+ #: includes/settings.php:26
5277
+ msgid "Remote Images"
5278
+ msgstr "Zdalne obrazki"
5279
+
5280
+ #: includes/settings.php:28
5281
+ msgid "Add resized images to the media library"
5282
+ msgstr "Dodaj obrazy o zmienionych rozmiarach do biblioteki multimediów"
5283
+
5284
+ #: includes/settings.php:29
5285
+ msgid ""
5286
+ "Types will automatically add the resized images as attachments to the media "
5287
+ "library. Choose this to automatically upload resized images to a CDN."
5288
+ msgstr ""
5289
+ "Wtyczka Types automatyczne doda obrazy o zmienionych rozmiarach do "
5290
+ "biblioteki multimediów. Wybierz tę opcję, aby automatycznie przesyłać obrazy "
5291
+ "o zmienionych rozmiarach do CDN."
5292
+
5293
+ #: includes/settings.php:38
5294
+ msgid "Allow resizing of remote images"
5295
+ msgstr "Zezwól na zmianę rozmiarów obrazów zdalnych"
5296
+
5297
+ #: includes/settings.php:39
5298
+ msgid "Types will try to scale remote images."
5299
+ msgstr "Wtyczka Types będzie próbować przeskalować zdalne obrazy."
5300
+
5301
+ #: includes/settings.php:48
5302
+ msgid "Images cache"
5303
+ msgstr "Pamięć podręczna obrazków"
5304
+
5305
+ #: includes/settings.php:51
5306
+ msgid "Invalidate cached images that are more than <ELEMENT> hours old."
5307
+ msgstr ""
5308
+ "Unieważnij obrazy w pamięci podręcznej, które są starsze niż <ELEMENT> "
5309
+ "godzin(y)."
5310
+
5311
+ #: includes/settings.php:54
5312
+ msgid "Never"
5313
+ msgstr "Nigdy"
5314
+
5315
+ #: includes/settings.php:68
5316
+ msgid "Clear Cached Images"
5317
+ msgstr "Usuń obrazy z pamięci podręcznej"
5318
+
5319
+ #: includes/settings.php:77
5320
+ msgid "Clear Outdated Cached Images"
5321
+ msgstr "Usuń przestarzałe obrazy z pamięci podręcznej"
5322
+
5323
+ #: includes/settings.php:88
5324
+ msgid "WPML Integration"
5325
+ msgstr "Integracja z wtyczką WPML"
5326
+
5327
+ #: includes/settings.php:89
5328
+ msgid "When importing, add texts to WPML's String Translation table"
5329
+ msgstr "Podczas importu, dodaj teksty do tablicy tłumaczenia fraz WPML"
5330
+
5331
+ #: includes/settings.php:103
5332
+ msgid "Show help box on all custom post editing screens"
5333
+ msgstr ""
5334
+ "Wyświetlaj okienko pomocy na wszystkich ekranach edycji postu "
5335
+ "niestandardowego"
5336
+
5337
+ #: includes/settings.php:107
5338
+ msgid "Show help box only on custom post types that were created by Types"
5339
+ msgstr ""
5340
+ "Wyświetlaj okienko pomocy dla niestandardowych typów postów, które utworzono "
5341
+ "za pomocą wtyczki Types"
5342
+
5343
+ #: includes/settings.php:111
5344
+ msgid "Don't show help box on any custom post type editing screen"
5345
+ msgstr ""
5346
+ "Nie wyświetlaj okienka pomocy na żadnym ekranie edycji niestandardowego typu "
5347
+ "postu"
5348
+
5349
+ #: includes/settings.php:117
5350
+ msgid "Help Box"
5351
+ msgstr "Okienko pomocy"
5352
+
5353
+ #: includes/settings.php:124
5354
+ msgid "This setting allow to hide standard WordPress Custom Field Metabox."
5355
+ msgstr "Umożliwia ukrycie standardowego zarządzania własnymi polami."
5356
+
5357
+ #: includes/settings.php:128
5358
+ msgid "Show standard WordPress Custom Field Metabox"
5359
+ msgstr "Pokaż standardowe zarządzanie własnymi polami."
5360
+
5361
+ #: includes/settings.php:132
5362
+ msgid "Hide standard WordPress Custom Field Metabox"
5363
+ msgstr "Ukryj standardowe zarządzanie własnymi polami."
5364
+
5365
+ #: includes/settings.php:137
5366
+ msgid "Custom Field Metabox"
5367
+ msgstr "Sekcja zarządzania własnymi polami"
5368
+
5369
+ #: includes/settings.php:146
5370
+ msgid "Disable all messages about other Toolset components"
5371
+ msgstr "Wyłącz wszystkie wiadomości o innych składnikach Toolset"
5372
+
5373
+ #: includes/settings.php:148
5374
+ msgid "Toolset Messages"
5375
+ msgstr "Wiadomości Toolset"
5376
+
5377
+ #: includes/settings.php:158
5378
+ msgid "Custom fields - unfiltered HTML"
5379
+ msgstr "Własne pola - niefiltrowany HTML."
5380
+
5381
+ #: includes/settings.php:162
5382
+ msgid ""
5383
+ "Enable saving unfiltered HTML in Types custom fields for users with higher "
5384
+ "roles"
5385
+ msgstr ""
5386
+ "Pozwól na zapisywanie niefiltrowanego HTML we własnych polach dla "
5387
+ "użytkowników z wysoką rangą"
5388
+
5389
+ #: includes/settings.php:166
5390
+ msgid "Disable saving unfiltered HTML in Types custom fields for all users"
5391
+ msgstr ""
5392
+ "Zabroń zapisywania niefiltrowanego HTML we własnych polach wszystkim "
5393
+ "użytkownikom."
5394
+
5395
+ #: includes/settings.php:177
5396
+ msgid "Usermeta fields - unfiltered HTML"
5397
+ msgstr "Pola użytkowników - niefiltrowany HTML"
5398
+
5399
+ #: includes/settings.php:181
5400
+ msgid ""
5401
+ "Enable saving unfiltered HTML in Types usermeta fields for users with higher "
5402
+ "roles"
5403
+ msgstr ""
5404
+ "Pozwól na zapisywanie niefiltrowanego HTML we polach użytkowników dla "
5405
+ "użytkowników z wysoką rangą"
5406
+
5407
+ #: includes/settings.php:185
5408
+ msgid "Disable saving unfiltered HTML in Types usermeta fields for all users"
5409
+ msgstr ""
5410
+ "Zabroń zapisywania niefiltrowanego HTML w polach użytkowników wszystkim "
5411
+ "użytkownikom."
5412
+
5413
+ #: includes/settings.php:225
5414
+ msgid "Images cache cleared"
5415
+ msgstr "Wyczyszczono podręczną pamięć obrazów"
5416
+
5417
+ #: includes/settings.php:280
5418
+ msgid "Settings saved."
5419
+ msgstr "Ustawienia zostały zapisane."
5420
+
5421
+ #: includes/usermeta-control.php:171
5422
+ msgid "User Field Name"
5423
+ msgstr "Nazwa pola użytkownika"
5424
+
5425
+ #: includes/usermeta-form.php:244
5426
+ msgid "Usermeta help"
5427
+ msgstr "Pomoc Usermeta"
5428
+
5429
+ #: includes/usermeta-form.php:422
5430
+ msgid "Show For:"
5431
+ msgstr "Wyświetl dla:"
5432
+
5433
+ #: includes/usermeta-form.php:440
5434
+ msgid "Each usermeta group can display different fields for user roles."
5435
+ msgstr "Każda grupa usermeta może wyświetlać różne pola dla ról użytkownika."
5436
+
5437
+ #: includes/usermeta-list.php:21
5438
+ msgid "Search user fields"
5439
+ msgstr "Przeszukaj pola użytkownika"
5440
+
5441
+ #: includes/usermeta-list.php:60
5442
+ msgid ""
5443
+ "You can control User Fields by removing them from the groups, changing type "
5444
+ "or just deleting."
5445
+ msgstr ""
5446
+ "Można kontrolwać pola użytkowników, usuwając z grupy, zmieniając typ lub po prostu usuwając."
5447
+
5448
+ #: marketing/congrats-post-types/index.php:17
5449
+ msgid "Congratulations! Your custom post type %s was successfully updated."
5450
+ msgstr ""
5451
+ "Gratulacje! Twój własny typ postu, %s, został pomyślnie zaktualizowany."
5452
+
5453
+ #: marketing/congrats-post-types/index.php:19
5454
+ msgid "congratulations! your new custom post type %s was successfully created."
5455
+ msgstr ""
5456
+ "Gratulacje! Twój nowy niestandardowy typ wpisu %s został pomyślnie utworzony."
5457
+
5458
+ #: marketing/congrats-post-types/index.php:24
5459
+ msgid "Congratulations! Your custom fields group %s was successfully updated."
5460
+ msgstr ""
5461
+ "Gratulacje! Twoja nowa grupa pól niestandardowych, %s, została pomyślnie "
5462
+ "zaktualizowana."
5463
+
5464
+ #: marketing/congrats-post-types/index.php:26
5465
+ msgid ""
5466
+ "Congratulations! Your new custom fields group %s was successfully created."
5467
+ msgstr ""
5468
+ "Gratulacje! Twoja nowa grupa pól niestandardowych, %s, została pomyślnie "
5469
+ "utworzona."
5470
+
5471
+ #: marketing/congrats-post-types/index.php:31
5472
+ msgid "Congratulations! Your custom taxonomy %s was successfully updated."
5473
+ msgstr ""
5474
+ "Gratulacje! Twoja taksonomia niestandardowa, %s, została pomyślnie "
5475
+ "zaktualizowana."
5476
+
5477
+ #: marketing/congrats-post-types/index.php:33
5478
+ msgid "Congratulations! Your new custom taxonomy %s was successfully created."
5479
+ msgstr ""
5480
+ "Gratulacje! Twoja nowa taksonomia niestandardowa, %s, została pomyślnie "
5481
+ "utworzona."
5482
+
5483
+ #: marketing/congrats-post-types/index.php:38
5484
+ msgid "Congratulations! Your user meta group %s was successfully updated."
5485
+ msgstr ""
5486
+ "Gratulacje! Twoja grupa user meta, %s, została pomyślnie zaktualizowana."
5487
+
5488
+ #: marketing/congrats-post-types/index.php:40
5489
+ msgid "Congratulations! Your new user meta group %s was successfully created."
5490
+ msgstr ""
5491
+ "Gratulacje! Twoja nowa grupa user meta, %s, została pomyślnie utworzona."
5492
+
5493
+ #: marketing/congrats-post-types/index.php:48
5494
+ msgid "Show next steps and documentation"
5495
+ msgstr "Wyświetl następne kroki i dokumentację"
5496
+
5497
+ #: marketing/congrats-post-types/index.php:52
5498
+ msgid "Next, learn how to:"
5499
+ msgstr "Następnie nauczysz się, jak:"
5500
+
5501
+ #: marketing/congrats-post-types/index.php:56
5502
+ msgid "Enrich content using <strong>custom fields</strong>"
5503
+ msgstr "wzbogacać treść, korzystając z <strong>pól niestandardowych</strong>"
5504
+
5505
+ #: marketing/congrats-post-types/index.php:60
5506
+ #: marketing/congrats-post-types/index.php:74
5507
+ msgid "Organize content using <strong>taxonomy</strong>"
5508
+ msgstr "organizować treści, korzystając z <strong>taksonomii</strong>"
5509
+
5510
+ #: marketing/congrats-post-types/index.php:64
5511
+ msgid "Connect post types as <strong>parents and children</strong>"
5512
+ msgstr "łączyć typy postów, jako <strong>rodziców i dzieci</strong>"
5513
+
5514
+ #: marketing/congrats-post-types/index.php:67
5515
+ msgid "Display custom post <strong>archives</strong>"
5516
+ msgstr "wyświetlać <strong>archiwa</strong> postów niestandardowych"
5517
+
5518
+ #: marketing/congrats-post-types/index.php:78
5519
+ msgid "Display custom taxonomy <strong>archives</strong>"
5520
+ msgstr "wyświetlać <strong>archiwa</strong> taksonomii niestandardowej"
5521
+
5522
+ #: marketing/congrats-post-types/index.php:85
5523
+ msgid "Display user fields"
5524
+ msgstr "wyświetlać pola użytkownika"
5525
+
5526
+ #: marketing/congrats-post-types/index.php:92
5527
+ msgid "Display custom fields"
5528
+ msgstr "wyświetlać pola niestandardowe"
5529
+
5530
+ #: marketing/congrats-post-types/index.php:96
5531
+ msgid "Create groups of repeating fields"
5532
+ msgstr "tworzyć grupy powtarzających się pól"
5533
+
5534
+ #: marketing/congrats-post-types/index.php:104
5535
+ msgid "Build complete sites without coding:"
5536
+ msgstr "budować kompletne witryny bez kodowania:"
5537
+
5538
+ #: marketing/congrats-post-types/index.php:111
5539
+ msgid "Load and display custom content"
5540
+ msgstr "wczytywać i wyświetlać zawartość niestandardową"
5541
+
5542
+ #: marketing/congrats-post-types/index.php:116
5543
+ msgid "Hide notifications"
5544
+ msgstr "ukrywać powiadomienia"
5545
+
5546
+ #: marketing/etc/types-site-kinds.php:5
5547
+ msgid "Brochure"
5548
+ msgstr "Broszura"
5549
+
5550
+ #: marketing/etc/types-site-kinds.php:6
5551
+ msgid "static content displayed in different ways"
5552
+ msgstr "zawartość statyczna wyświetlana na różne sposoby"
5553
+
5554
+ #: marketing/etc/types-site-kinds.php:7
5555
+ msgid "http://wp-types.com/how-to/develop-brochure-site-wordpress/"
5556
+ msgstr "http://wp-types.com/how-to/develop-brochure-site-wordpress/"
5557
+
5558
+ #: marketing/etc/types-site-kinds.php:20
5559
+ msgid "Directory and Classifieds"
5560
+ msgstr "Spis i Ogłoszenia Drobne"
5561
+
5562
+ #: marketing/etc/types-site-kinds.php:21
5563
+ msgid "http://wp-types.com/how-to/develop-directory-site-toolset/"
5564
+ msgstr "http://wp-types.com/how-to/develop-directory-site-toolset/"
5565
+
5566
+ #: marketing/etc/types-site-kinds.php:24
5567
+ msgid "E-Commerce"
5568
+ msgstr "E-Handel"
5569
+
5570
+ #: marketing/etc/types-site-kinds.php:25
5571
+ msgid "http://wp-types.com/how-to/develop-e-commerce-site-toolset/"
5572
+ msgstr "http://wp-types.com/how-to/develop-e-commerce-site-toolset/"
5573
+
5574
+ #: marketing/etc/types-site-kinds.php:28
5575
+ msgid "Blog / Magazine"
5576
+ msgstr "Blog / Magazyn"
5577
+
5578
+ #: marketing/etc/types-site-kinds.php:29
5579
+ msgid "news sites with unique layouts"
5580
+ msgstr "strony wiadomości z niepowtarzalnymi układami"
5581
+
5582
+ #: marketing/etc/types-site-kinds.php:30
5583
+ msgid "http://wp-types.com/how-to/customise-wordpress-blog/"
5584
+ msgstr "http://wp-types.com/how-to/customise-wordpress-blog/"
5585
+
5586
+ #: marketing/etc/types-site-kinds.php:33
5587
+ msgid "Something else"
5588
+ msgstr "Coś innego"
5589
+
5590
+ #: marketing/etc/types-site-kinds.php:34
5591
+ msgid "http://wp-types.com/how-to/build-sites-toolset/"
5592
+ msgstr "http://wp-types.com/how-to/build-sites-toolset/"
5593
+
5594
+ #: marketing/etc/types.php:12
5595
+ msgid "Toolset lets you display PPP without coding!"
5596
+ msgstr "Toolset umożliwia wyświetlanie PPP bez kodowania!"
5597
+
5598
+ #: marketing/etc/types.php:13 marketing/etc/types.php:20
5599
+ #: marketing/etc/types.php:27
5600
+ msgid ""
5601
+ "See how Toolset can help you build custom WordPress sites without writing PHP"
5602
+ msgstr ""
5603
+ "Zobacz, w jaki sposób zestaw Toolset może pomóc Ci tworzyć niestandardowe "
5604
+ "strony WordPresa bez kodowania PHP"
5605
+
5606
+ #: marketing/etc/types.php:14 marketing/etc/types.php:21
5607
+ #: marketing/etc/types.php:28 marketing/etc/types.php:65
5608
+ #: marketing/etc/types.php:72 marketing/etc/types.php:78
5609
+ #: marketing/etc/types.php:92 marketing/etc/types.php:97
5610
+ #: marketing/etc/types.php:104 marketing/etc/types.php:110
5611
+ #: marketing/etc/types.php:122 marketing/etc/types.php:129
5612
+ #: marketing/etc/types.php:136 marketing/etc/types.php:148
5613
+ #: marketing/etc/types.php:154 marketing/etc/types.php:160
5614
+ msgid "http://wp-types.com/landing/types/"
5615
+ msgstr "http://wp-types.com/landing/types/"
5616
+
5617
+ #: marketing/etc/types.php:19
5618
+ msgid "Toolset lets you display TTT without coding!"
5619
+ msgstr "Zestaw Toolset umożliwia wyświetlanie TTT bez kodowania!"
5620
+
5621
+ #: marketing/etc/types.php:26
5622
+ msgid "Toolset lets you display custom fields without coding!"
5623
+ msgstr ""
5624
+ "Zestaw Toolset umożliwia wyświetlanie pól niestandardowych bez kodowania!"
5625
+
5626
+ #: marketing/etc/types.php:63 marketing/etc/types.php:95
5627
+ msgid ""
5628
+ "You can build parametric searches for PPP using Toolset, without any PHP!"
5629
+ msgstr ""
5630
+ "Możesz tworzyć wyszukiwania parametryczne dla PPP, korzystając z zestawu "
5631
+ "Toolset, bez PHP!"
5632
+
5633
+ #: marketing/etc/types.php:64 marketing/etc/types.php:71
5634
+ msgid ""
5635
+ "Build custom classifieds sites with Toolset, on any theme, without writing "
5636
+ "PHP"
5637
+ msgstr ""
5638
+ "Twórz niestandardowe strony z ogłoszeniami za pomocą zestawu Toolset, na "
5639
+ "dowolnym motywie, bez pisania PHP"
5640
+
5641
+ #: marketing/etc/types.php:70
5642
+ msgid "Toolset lets you display a directory of TTT!"
5643
+ msgstr "Zestaw Toolset umożliwia wyświetlanie spisu TTT!"
5644
+
5645
+ #: marketing/etc/types.php:77 marketing/etc/types.php:91
5646
+ #: marketing/etc/types.php:96 marketing/etc/types.php:103
5647
+ #: marketing/etc/types.php:109
5648
+ msgid ""
5649
+ "Develop flexible directory sites with Toolset, on any theme, without writing "
5650
+ "PHP"
5651
+ msgstr ""
5652
+ "Twórz elastyczne strony ze spisami za pomocą zestawu Toolset, na dowolnym "
5653
+ "motywie, bez pisania PHP"
5654
+
5655
+ #: marketing/etc/types.php:90
5656
+ msgid "Toolset lets you build forms for editing PPP in the site’s front-end!"
5657
+ msgstr ""
5658
+ "Zestaw Toolset umożliwia tworzenie formularzy do edytowania PPP po stronie "
5659
+ "użytkownika witryny!"
5660
+
5661
+ #: marketing/etc/types.php:121 marketing/etc/types.php:128
5662
+ #: marketing/etc/types.php:135
5663
+ msgid "Add a WooCommerce store to any theme using Toolset and no PHP coding"
5664
+ msgstr ""
5665
+ "Dodaj sklep WooCommerce do dowolnego motywu, korzystając z zestawu Toolset i "
5666
+ "bez kodowania PHP"
5667
+
5668
+ #: marketing/etc/types.php:127 marketing/etc/types.php:134
5669
+ msgid ""
5670
+ "Toolset lets you design product templates with fields and taxonomy, but no "
5671
+ "coding!"
5672
+ msgstr ""
5673
+ "Zestaw Toolset umożliwia Ci projektowanie szablonów produktów z polami i "
5674
+ "taksonomią i to bez kodowania!"
5675
+
5676
+ #: marketing/etc/types.php:147 marketing/etc/types.php:153
5677
+ #: marketing/etc/types.php:159
5678
+ msgid "Display custom content inside your blog with Toolset and no PHP coding"
5679
+ msgstr "Użyj Toolseta zamiast kodować w PHP, aby wyświetlić własne typy wpisów"
5680
+
5681
+ #: marketing/getting-started/index.php:20
5682
+ msgid ""
5683
+ "Types plugin includes a lot of features and there are many possibilities. By "
5684
+ "selecting what kind of site you are building, you allow Types to advise you "
5685
+ "about what features are needed and how to use them."
5686
+ msgstr ""
5687
+ "Wtyczka Types oferuje wiele możliwości. Wybierając typ witryny pozawalasz na "
5688
+ "zbudowanie podpowiedzi które z wielu funkcji wybrać i jak ich użyć."
5689
+
5690
+ #: marketing/getting-started/index.php:24
5691
+ msgid "Continue"
5692
+ msgstr "Dalej"
5693
+
5694
+ #: plus/installer/includes/class-installer-theme.php:869
5695
+ msgid "To install and update"
5696
+ msgstr "Do instalacji i aktualizacji"
5697
+
5698
+ #: plus/installer/includes/class-installer-theme.php:869
5699
+ msgid "themes"
5700
+ msgstr "motywy"
5701
+
5702
+ #: plus/installer/includes/class-installer-theme.php:870
5703
+ msgid "please"
5704
+ msgstr "proszę"
5705
+
5706
+ #: plus/installer/includes/class-installer-theme.php:870
5707
+ msgid "register"
5708
+ msgstr "zarejestruj"
5709
+
5710
+ #: plus/installer/includes/class-installer-theme.php:870
5711
+ msgid "for this site."
5712
+ msgstr "dla tej witryny."
5713
+
5714
+ #: plus/installer/includes/installer.class.php:101
5715
+ msgid "Installing %s"
5716
+ msgstr "instalowanie %s"
5717
+
5718
+ #: plus/installer/includes/installer.class.php:102
5719
+ msgid "Updating %s"
5720
+ msgstr "Aktualizowaniej %s"
5721
+
5722
+ #: plus/installer/includes/installer.class.php:103
5723
+ msgid "Activating %s"
5724
+ msgstr "Włączanie %s"
5725
+
5726
+ #: plus/installer/includes/installer.class.php:304
5727
+ msgid "Registered"
5728
+ msgstr "Zarejestrowane"
5729
+
5730
+ #: plus/installer/includes/installer.class.php:309
5731
+ msgid "Register"
5732
+ msgstr "Zarejestruj"
5733
+
5734
+ #: plus/installer/includes/installer.class.php:467
5735
+ msgid ""
5736
+ "To get automatic updates, you need to register %s for this site. %sRegister "
5737
+ "%s%s"
5738
+ msgstr ""
5739
+ "Aby otrzymywać aktualizacje automatyczne, musisz zarejestrować %s dla tej "
5740
+ "strony. %sZarejestruj%s%s"
5741
+
5742
+ #: plus/installer/includes/installer.class.php:492
5743
+ msgid "Commercial"
5744
+ msgstr "Komercyjny"
5745
+
5746
+ #: plus/installer/includes/installer.class.php:589
5747
+ msgid ""
5748
+ "Installer cannot contact our updates server to get information about the "
5749
+ "available products and check for new versions. If you are seeing this "
5750
+ "message for the first time, you can ignore it, as it may be a temporary "
5751
+ "communication problem. If the problem persists and your WordPress admin is "
5752
+ "slowing down, you can disable automated version checks. Add the following "
5753
+ "line to your wp-config.php file:"
5754
+ msgstr ""
5755
+ "Installer nie mógł pobrać z serwera informacji o produktach ani sprawdzić "
5756
+ "nowych wersji. Zignoruję tę informację, jeżeli widzisz to pierwszy razy. "
5757
+ "Jeżeli problem występuje częśto oraz panel administratora pracuje wolniej, "
5758
+ "możesz wyłączyć sprawdzanie dostępności nowych wersji. Po prostu dodaj "
5759
+ "poniższe linie do pliku wp-config.php:"
5760
+
5761
+ #: plus/installer/includes/installer.class.php:670
5762
+ msgid "No repositories defined."
5763
+ msgstr "Brak zdefiniowanych repozytoriów."
5764
+
5765
+ #: plus/installer/includes/installer.class.php:843
5766
+ msgid ""
5767
+ "%s cannot access %s to register. Try again to see if it's a temporary "
5768
+ "problem. If the problem continues, make sure that this site has access to "
5769
+ "the Internet. You can still use the plugin without registration, but you "
5770
+ "will not receive automated updates."
5771
+ msgstr ""
5772
+ "%s nie może uzyskać dostępu do %s, aby zarejestrować. Spróbuj ponownie, aby "
5773
+ "sprawdzić, czy jest to tylko tymczasowy problem. Jeżeli problem nie ustąpi, "
5774
+ "sprawdź, czy ta strona ma dostęp do Internetu. Możesz nadal korzystać z "
5775
+ "wtyczki bez rejestracji, ale nie będziesz otrzymywać automatycznych "
5776
+ "aktualizacji."
5777
+
5778
+ #: plus/installer/includes/installer.class.php:853
5779
+ #: plus/installer/includes/installer.class.php:935
5780
+ msgid "Invalid site key for the current site."
5781
+ msgstr "Nieważny klucz strony dla aktualnej strony."
5782
+
5783
+ #: plus/installer/includes/installer.class.php:1071
5784
+ #: plus/installer/includes/installer.class.php:1133
5785
+ msgid ""
5786
+ "You will have to renew your subscription in order to continue getting the "
5787
+ "updates and support."
5788
+ msgstr ""
5789
+ "Aby nadal uzyskiwać aktualizacje i wsparcie techniczne, konieczne jest "
5790
+ "odnowienie subskrypcji."
5791
+
5792
+ #: plus/installer/includes/installer.class.php:1085
5793
+ #: plus/installer/includes/installer.class.php:1140
5794
+ msgid "Your subscription expires in %d day."
5795
+ msgid_plural "Your subscription expires in %d days."
5796
+ msgstr[0] "Twoja subskrypcja wygasa za %d dzień."
5797
+ msgstr[1] "Twoja subskrypcja wygasa za %d dni."
5798
+ msgstr[2] "Twoja subskrypcja wygasa za %d dni."
5799
+
5800
+ #: plus/installer/includes/installer.class.php:1215
5801
+ msgid "%sRenew here%s."
5802
+ msgstr "%sOdnów tutaj%s."
5803
+
5804
+ #: plus/installer/includes/installer.class.php:1562
5805
+ msgid ""
5806
+ "Your subscription appears to no longer be valid. Please try to register "
5807
+ "again using a valid site key."
5808
+ msgstr ""
5809
+ "Wygląda na to, że Twoja subskrypcja jest już nieważna. Spróbuj zarejestrować "
5810
+ "się ponownie, używając ważnego klucza strony."
5811
+
5812
+ #: plus/installer/includes/installer.class.php:1843
5813
+ msgid ""
5814
+ "You need to have a valid subscription in order to get upgrades or support "
5815
+ "for this plugin. %sPurchase a subscription or enter an existing site key%s."
5816
+ msgstr ""
5817
+ "Aby otrzymywać ulepszenia i pomoc techniczną dla tej wtyczki, konieczne jest "
5818
+ "posiadania ważnej subskrypcji. %sWykup subskrypcję albo wprowadź istniejący "
5819
+ "klucz strony%s."
5820
+
5821
+ #: plus/installer/includes/installer.class.php:2255
5822
+ #: plus/installer/includes/installer.class.php:2318
5823
+ msgid ""
5824
+ "%s cannot update because your site's registration is not valid. Please "
5825
+ "%sregister %s%s again for this site first."
5826
+ msgstr ""
5827
+ "Wtyczka %s nie może zostać zaaktualizowana z powodu błędu z rejestracją. "
5828
+ "Proszę ponownie %s zarejstrować %s%s dla tej witryny."
5829
+
5830
+ #: plus/installer/includes/installer.class.php:2342
5831
+ msgid "Update Plugin"
5832
+ msgstr "Aktualizuj wtyczkę"
5833
+
5834
+ #: plus/installer/includes/installer.class.php:2343
5835
+ msgid "Return to the plugins page"
5836
+ msgstr "Powrót na stronę wtyczek"
5837
+
5838
+ #: plus/installer/templates/downloads-list-compact.php:8
5839
+ #: plus/installer/templates/downloads-list.php:10
5840
+ msgid "Plugin"
5841
+ msgstr "Wtyczka"
5842
+
5843
+ #: plus/installer/templates/downloads-list-compact.php:9
5844
+ msgid "Available"
5845
+ msgstr "Dostępne"
5846
+
5847
+ #: plus/installer/templates/downloads-list-compact.php:10
5848
+ msgid "Installed"
5849
+ msgstr "Zainstalowano"
5850
+
5851
+ #: plus/installer/templates/downloads-list-compact.php:11
5852
+ msgid "Downloading"
5853
+ msgstr "Pobieranie"
5854
+
5855
+ #: plus/installer/templates/downloads-list-compact.php:52
5856
+ msgid "downloading..."
5857
+ msgstr "pobieranie..."
5858
+
5859
+ #: plus/installer/templates/downloads-list-compact.php:53
5860
+ #: plus/installer/templates/downloads-list.php:52
5861
+ #: plus/installer/templates/downloads-list.php:53
5862
+ msgid "failed!"
5863
+ msgstr "nieudane!"
5864
+
5865
+ #: plus/installer/templates/downloads-list-compact.php:53
5866
+ msgid "downloaded"
5867
+ msgstr "pobrano"
5868
+
5869
+ #: plus/installer/templates/downloads-list-compact.php:56
5870
+ #: plus/installer/templates/downloads-list.php:56
5871
+ msgid "activating"
5872
+ msgstr "włączanie"
5873
+
5874
+ #: plus/installer/templates/downloads-list-compact.php:57
5875
+ #: plus/installer/templates/downloads-list.php:57
5876
+ msgid "activated"
5877
+ msgstr "włączone"
5878
+
5879
+ #: plus/installer/templates/downloads-list-compact.php:65
5880
+ #: plus/installer/templates/downloads-list.php:70
5881
+ msgid ""
5882
+ "Downloading is not possible because WordPress cannot write into the plugins "
5883
+ "folder. %sHow to fix%s."
5884
+ msgstr ""
5885
+ "Pobieranie nie jest możliwe, ponieważ WordPress nie może zapisywać w "
5886
+ "folderze wtyczek. %sSposób naprawy%s."
5887
+
5888
+ #: plus/installer/templates/downloads-list-compact.php:69
5889
+ #: plus/installer/templates/downloads-list.php:75
5890
+ msgid "Download"
5891
+ msgstr "Pobieranie"
5892
+
5893
+ #: plus/installer/templates/downloads-list-compact.php:71
5894
+ #: plus/installer/templates/downloads-list.php:77
5895
+ msgid "Activate after download"
5896
+ msgstr "Włącz po pobraniu"
5897
+
5898
+ #: plus/installer/templates/downloads-list-compact.php:74
5899
+ #: plus/installer/templates/downloads-list.php:81
5900
+ msgid "Operation complete!"
5901
+ msgstr "Operacja zakończona!"
5902
+
5903
+ #: plus/installer/templates/downloads-list-compact.php:76
5904
+ msgid ""
5905
+ "Download failed!\n"
5906
+ "\n"
5907
+ "Click OK to revalidate your subscription or CANCEL to try again."
5908
+ msgstr ""
5909
+ "Pobieranie nie powiodło się!\n"
5910
+ "\n"
5911
+ "Kliknij OK, aby ponownie zatwierdzić swoją subskrypcję albo ANULUJ, aby "
5912
+ "spróbować ponownie."
5913
+
5914
+ #: plus/installer/templates/downloads-list.php:2
5915
+ msgid "Downloads:"
5916
+ msgstr "Pobrania:"
5917
+
5918
+ #: plus/installer/templates/downloads-list.php:11
5919
+ msgid "Current version"
5920
+ msgstr "Aktualna wersja"
5921
+
5922
+ #: plus/installer/templates/downloads-list.php:12
5923
+ msgid "Released"
5924
+ msgstr "Opublikowane"
5925
+
5926
+ #: plus/installer/templates/downloads-list.php:13
5927
+ msgid "Installed version"
5928
+ msgstr "Wersja zainstalowana"
5929
+
5930
+ #: plus/installer/templates/downloads-list.php:46
5931
+ msgid "(embedded)"
5932
+ msgstr "(zagnieżdżone)"
5933
+
5934
+ #: plus/installer/templates/downloads-list.php:50
5935
+ msgid "installing..."
5936
+ msgstr "instalowanie..."
5937
+
5938
+ #: plus/installer/templates/downloads-list.php:51
5939
+ msgid "updating..."
5940
+ msgstr "aktualizacja..."
5941
+
5942
+ #: plus/installer/templates/downloads-list.php:52
5943
+ msgid "installed"
5944
+ msgstr "zainstalowano"
5945
+
5946
+ #: plus/installer/templates/downloads-list.php:53
5947
+ msgid "updated"
5948
+ msgstr "zaktualizowano"
5949
+
5950
+ #: plus/installer/templates/downloads-list.php:83
5951
+ msgid ""
5952
+ "Download failed!\n"
5953
+ "\n"
5954
+ "Please refresh the page and try again."
5955
+ msgstr ""
5956
+ "Pobieranie nie powiodło się!\n"
5957
+ "\n"
5958
+ "Odśwież tę stronę i spróbuj ponownie."
5959
+
5960
+ #: plus/installer/templates/products-compact.php:5
5961
+ msgid "Incorrect setup"
5962
+ msgstr "Niewłaściwe ustawienia"
5963
+
5964
+ #: plus/installer/templates/products-compact.php:25
5965
+ msgid "Invalid product"
5966
+ msgstr "Niewłaściwy produkt"
5967
+
5968
+ #: plus/installer/templates/products-compact.php:36
5969
+ msgid "Unknown repository"
5970
+ msgstr "Nieznane repozytorium"
5971
+
5972
+ #: plus/installer/templates/products-compact.php:44
5973
+ msgid " Your current site key (%s) does not match the selected product (%s)."
5974
+ msgstr ""
5975
+ "Aktualny klucz Twojej strony (%s) nie jest zgodny z wybranym produktem (%s)."
5976
+
5977
+ #: plus/installer/templates/products-compact.php:65
5978
+ msgid "Buy %s"
5979
+ msgstr "Kup %s"
5980
+
5981
+ #: plus/installer/templates/products-compact.php:69
5982
+ msgid "Already bought %s?"
5983
+ msgstr "Masz już %s?"
5984
+
5985
+ #: plus/installer/templates/products-compact.php:70
5986
+ msgid "Enter site key"
5987
+ msgstr "Wpisz klucz strony"
5988
+
5989
+ #: plus/installer/templates/products-compact.php:86
5990
+ msgid "Subscription is expired."
5991
+ msgstr "Subskrypcja wygasła."
5992
+
5993
+ #: plus/installer/templates/products-compact.php:95
5994
+ msgid "Renew %s"
5995
+ msgstr "Odnów %s"
5996
+
5997
+ #: plus/installer/templates/products-compact.php:105
5998
+ msgid "Are you sure you want to remove this site key?"
5999
+ msgstr "Czy na pewno chcesz usunąć klucz tej strony?"
6000
+
6001
+ #: plus/installer/templates/products-compact.php:105
6002
+ msgid "Remove current site key (%s)"
6003
+ msgstr "Usuń aktualny klucz strony (%s)"
6004
+
6005
+ #: plus/installer/templates/products-compact.php:120
6006
+ msgid "%s support on wpml.org"
6007
+ msgstr "%s wsparcie na wpml.org"
6008
+
6009
+ #: plus/installer/templates/repository-listing.php:18
6010
+ msgid "Already bought?"
6011
+ msgstr "Już kupione?"
6012
+
6013
+ #: plus/installer/templates/repository-listing.php:19
6014
+ msgid "Register %s"
6015
+ msgstr "Zarejestruj %s"
6016
+
6017
+ #: plus/installer/templates/repository-listing.php:24
6018
+ msgid "2. Enter your site key"
6019
+ msgstr "2. Wpisz klucz swojej strony"
6020
+
6021
+ #: plus/installer/templates/repository-listing.php:29
6022
+ msgid "1. Go to your %s%s account%s and add this site URL: %s"
6023
+ msgstr "1. Przejdź do swojego %skonta%s%s i dodaj URL tej strony: %s"
6024
+
6025
+ #: plus/installer/templates/repository-listing.php:55
6026
+ msgid ""
6027
+ "Subscription is expired. You need to either purchase a new subscription or "
6028
+ "upgrade if available."
6029
+ msgstr ""
6030
+ "Subskrypcja wygasła. Musisz albo kupić nową subskrypcję, albo ulepszenie, "
6031
+ "jeżeli jest dostępne."
6032
+
6033
+ #: plus/installer/templates/repository-listing.php:61
6034
+ msgid "Are you sure you want to unregister?"
6035
+ msgstr "Czy na pewno chcesz wyrejestrować?"
6036
+
6037
+ #: plus/installer/templates/repository-listing.php:61
6038
+ msgid "Unregister %s from this site"
6039
+ msgstr "Wyrejestruj %s z tej strony"
6040
+
6041
+ #: plus/installer/templates/repository-listing.php:62
6042
+ msgid "Check for updates"
6043
+ msgstr "Sprawdź aktualizacje"
6044
+
6045
+ #: plus/installer/templates/repository-listing.php:68
6046
+ msgid ""
6047
+ "%s is registered on this site. You will receive automatic updates until %s"
6048
+ msgstr ""
6049
+ "%s zarejestrowano na tej stronie. Będziesz otrzymywać aktualizacje "
6050
+ "automatyczne do %s"
6051
+
6052
+ #: plus/installer/templates/repository-listing.php:70
6053
+ msgid ""
6054
+ "%s is registered on this site. Your Lifetime account gives you updates for "
6055
+ "life."
6056
+ msgstr ""
6057
+ "%s zarejestrowano na tej stronie. Twoje dożywotnie konto uprawnia Cię do "
6058
+ "dożywotnich aktualizacji."
6059
+
6060
+ #: plus/installer/templates/repository-listing.php:122
6061
+ msgid "Click to see individual components options."
6062
+ msgstr "Kliknij tutaj, aby wyświetlić opcje poszczególnych składników."
6063
+
6064
+ #: plus/installer/templates/repository-listing.php:122
6065
+ msgid "Individual components"
6066
+ msgstr "Pojedyncze składniki"
6067
+
6068
+ #: plus/installer/templates/repository-listing.php:163
6069
+ msgid ""
6070
+ "This page lets you install plugins and update existing plugins. To remove "
6071
+ "any of these plugins, go to the %splugins%s page and if you have the "
6072
+ "permission to remove plugins you should be able to do this."
6073
+ msgstr ""
6074
+ "Ta strona umożliwia Ci instalację wtyczek oraz aktualizację istniejących "
6075
+ "wtyczek. Aby usunąć którekolwiek z tych wtyczek przejdź do strony %swtyczki"
6076
+ "%s i, jeżeli masz uprawnienia do usuwania wtyczek, będziesz w stanie je "
6077
+ "usunąć."
6078
+
6079
+ #: plus/types-access/embedded.php:14 plus/types-access/embedded.php:155
6080
+ msgid "Read"
6081
+ msgstr "Czytaj"
6082
+
6083
+ #: plus/types-access/embedded.php:19
6084
+ msgid "Edit own"
6085
+ msgstr "Edytuj własny"
6086
+
6087
+ #: plus/types-access/embedded.php:24
6088
+ msgid "Delete own"
6089
+ msgstr "Usuń własny"
6090
+
6091
+ #: plus/types-access/embedded.php:29
6092
+ msgid "Edit any"
6093
+ msgstr "Edytuj dowolny"
6094
+
6095
+ #: plus/types-access/embedded.php:34
6096
+ msgid "Delete any"
6097
+ msgstr "Usuń dowolny"
6098
+
6099
+ #: plus/types-access/embedded.php:39
6100
+ msgid "Publish"
6101
+ msgstr "Publikuj"
6102
+
6103
+ #: plus/types-access/embedded.php:58
6104
+ msgid "Read post"
6105
+ msgstr "Czytaj post"
6106
+
6107
+ #: plus/types-access/embedded.php:63
6108
+ msgid "Read private posts"
6109
+ msgstr "Czytaj posty prywatne"
6110
+
6111
+ #: plus/types-access/embedded.php:71
6112
+ msgid "Edit post"
6113
+ msgstr "Edytuj post"
6114
+
6115
+ #: plus/types-access/embedded.php:76
6116
+ msgid "Edit posts"
6117
+ msgstr "Edytuj posty"
6118
+
6119
+ #: plus/types-access/embedded.php:81 plus/types-access/embedded.php:124
6120
+ msgid "Moderate comments"
6121
+ msgstr "Moderuj komentarze"
6122
+
6123
+ #: plus/types-access/embedded.php:90
6124
+ msgid "Delete post"
6125
+ msgstr "Usuń post"
6126
+
6127
+ #: plus/types-access/embedded.php:95
6128
+ msgid "Delete posts"
6129
+ msgstr "Usuń posty"
6130
+
6131
+ #: plus/types-access/embedded.php:100
6132
+ msgid "Delete private posts"
6133
+ msgstr "Usuń prywatne posty"
6134
+
6135
+ #: plus/types-access/embedded.php:108
6136
+ msgid "Edit others posts"
6137
+ msgstr "Usuń posty innych"
6138
+
6139
+ #: plus/types-access/embedded.php:114
6140
+ msgid "Edit published posts"
6141
+ msgstr "Usuń opublikowane posty"
6142
+
6143
+ #: plus/types-access/embedded.php:119
6144
+ msgid "Edit private posts"
6145
+ msgstr "Edytuj prywatne posty"
6146
+
6147
+ #: plus/types-access/embedded.php:133
6148
+ msgid "Delete others posts"
6149
+ msgstr "Usuń posty innych"
6150
+
6151
+ #: plus/types-access/embedded.php:139
6152
+ msgid "Delete published posts"
6153
+ msgstr "Usuń opublikowane posty"
6154
+
6155
+ #: plus/types-access/embedded.php:147
6156
+ msgid "Publish post"
6157
+ msgstr "Publikuj post"
6158
+
6159
+ #: plus/types-access/embedded.php:171
6160
+ msgid "Manage terms"
6161
+ msgstr "Zarządzaj warunkami"
6162
+
6163
+ #: plus/types-access/embedded.php:183
6164
+ msgid "Edit terms"
6165
+ msgstr "Edytuj warunki"
6166
+
6167
+ #: plus/types-access/embedded.php:195
6168
+ msgid "Delete terms"
6169
+ msgstr "Usuń warunki"
6170
+
6171
+ #: plus/types-access/embedded.php:207
6172
+ msgid "Assign terms"
6173
+ msgstr "Przypisz warunki"
6174
+
6175
+ #: plus/types-access/includes/admin-edit-access.php:45
6176
+ msgid "Custom Types"
6177
+ msgstr "Typy niestandardowe"
6178
+
6179
+ #: plus/types-access/includes/admin-edit-access.php:68
6180
+ #: plus/types-access/includes/admin-edit-access.php:192
6181
+ msgid "Managed by Access"
6182
+ msgstr "Zarządzane przez Access"
6183
+
6184
+ #: plus/types-access/includes/admin-edit-access.php:78
6185
+ msgid ""
6186
+ "This post type will inherit the same access rights as the standard WordPress "
6187
+ "Post when not Managed by Access."
6188
+ msgstr ""
6189
+ "Ten typ postu odziedziczy takie same prawa dostępu, jak standardowy post "
6190
+ "WordPress, jeżeli nie jest Zarządzany przez Access."
6191
+
6192
+ #: plus/types-access/includes/admin-edit-access.php:176
6193
+ msgid ""
6194
+ "You need to manually set the access rules for taxonomy %s. That taxonomy is "
6195
+ "shared between several post types that have different access rules."
6196
+ msgstr ""
6197
+ "Musisz ręcznie ustawić reguły dostępu dla taksonomii %s. Taksonomia ta jest "
6198
+ "współdzielona przez kilka typów postów o różnych regułach dostępu."
6199
+
6200
+ #: plus/types-access/includes/admin-edit-access.php:206
6201
+ msgid "Same as Parent"
6202
+ msgstr "Tak samo jak przodek"
6203
+
6204
+ #: plus/types-access/includes/admin-edit-access.php:280
6205
+ msgid "Custom Roles"
6206
+ msgstr "Role niestandardowe"
6207
+
6208
+ #: plus/types-access/includes/admin-edit-access.php:290
6209
+ msgid "On this page"
6210
+ msgstr "Na tej stronie"
6211
+
6212
+ #: plus/types-access/includes/admin-edit-access.php:354
6213
+ #: plus/types-access/includes/admin-edit-access.php:728
6214
+ msgid "Guest"
6215
+ msgstr "Gość"
6216
+
6217
+ #: plus/types-access/includes/admin-edit-access.php:430
6218
+ msgid "Set all capabilities to users of type:"
6219
+ msgstr "Ustaw wszystkie uprawnienia dla użytkowników typu:"
6220
+
6221
+ #: plus/types-access/includes/admin-edit-access.php:433
6222
+ msgid "Choose user type"
6223
+ msgstr "Wybierz typ użytkownika"
6224
+
6225
+ #: plus/types-access/includes/admin-edit-access.php:507
6226
+ msgid ""
6227
+ "Are you sure? All permission settings for this type will change to their "
6228
+ "default values."
6229
+ msgstr ""
6230
+ "Na pewno? Wszystkie ustawienia uprawnień dla tego typu zostaną zmienione na "
6231
+ "wartości domyślne."
6232
+
6233
+ #: plus/types-access/includes/admin-edit-access.php:511
6234
+ msgid "Reset to defaults"
6235
+ msgstr "Przywróć domyślne"
6236
+
6237
+ #: plus/types-access/includes/admin-edit-access.php:573
6238
+ msgid "No custom roles defined"
6239
+ msgstr "Nie zdefiniowano żadnych ról niestandardowych"
6240
+
6241
+ #: plus/types-access/includes/admin-edit-access.php:576
6242
+ msgid ""
6243
+ "The user level determines which admin actions WordPress allows different "
6244
+ "kinds of users to perform."
6245
+ msgstr ""
6246
+ "Poziom użytkownika określa, jakie działania administracyjne WordPress "
6247
+ "pozwala wykonać różnym rodzajom użytkowników."
6248
+
6249
+ #: plus/types-access/includes/admin-edit-access.php:583
6250
+ #: plus/types-access/includes/admin-edit-access.php:606
6251
+ #: plus/types-access/includes/admin-edit-access.php:664
6252
+ msgid "Level %d"
6253
+ msgstr "Poziom %d"
6254
+
6255
+ #: plus/types-access/includes/admin-edit-access.php:622
6256
+ #: plus/types-access/includes/admin-edit-access.php:679
6257
+ msgid "Change level"
6258
+ msgstr "Zmień poziom"
6259
+
6260
+ #: plus/types-access/includes/admin-edit-access.php:634
6261
+ #: plus/types-access/includes/admin-edit-access.php:690
6262
+ msgid "Delete role"
6263
+ msgstr "Usuń rolę"
6264
+
6265
+ #: plus/types-access/includes/admin-edit-access.php:650
6266
+ msgid "Undefined"
6267
+ msgstr "Nie zdefiniowano"
6268
+
6269
+ #: plus/types-access/includes/admin-edit-access.php:729
6270
+ msgid "Specific user"
6271
+ msgstr "Konkretny użytkownik"
6272
+
6273
+ #: plus/types-access/includes/admin-edit-access.php:829
6274
+ msgid "search"
6275
+ msgstr "wyszukaj"
6276
+
6277
+ #: plus/types-access/includes/admin-edit-access.php:862
6278
+ msgid "New role"
6279
+ msgstr "Nowa rola"
6280
+
6281
+ #: plus/types-access/includes/admin-edit-access.php:893
6282
+ msgid "Choose what role to change current %s users to:"
6283
+ msgstr "Wybierz nową rolę, którą chcesz przypisać bieżącym użytkownikom %s:"
6284
+
6285
+ #: plus/types-access/includes/admin-edit-access.php:897
6286
+ msgid "--- choose role ---"
6287
+ msgstr "--- wybierz rolę ---"
6288
+
6289
+ #: plus/types-access/includes/admin-edit-access.php:900
6290
+ msgid "Do you really want to remove this role?"
6291
+ msgstr "Czy na pewno chcesz usunąć tę rolę?"
6292
+
6293
+ #: plus/types-access.php:85
6294
+ msgid ""
6295
+ "This screen shows a preview of %sAccess%s - the access control and roles "
6296
+ "management addon for Types."
6297
+ msgstr ""
6298
+ "Ten ekran przedstawia podgląd wtyczki %sAccess%s - kontrolującego dostęp i "
6299
+ "zarządzającego rolami dodatku do wtyczki Types."
6300
+
6301
+ #: plus/types-access.php:89
6302
+ msgid ""
6303
+ "%sBuy Access%s to unlock this screen and add access control management to "
6304
+ "your site."
6305
+ msgstr ""
6306
+ "%sKup Access%s, aby odblokować ten ekran i dodać zarządzanie kontrolą "
6307
+ "dostępu na swojej stronie internetowej."
6308
+
6309
+ #: plus/types-access.php:94
6310
+ msgid "Access Features"
6311
+ msgstr "Funkcje wtyczki Access"
6312
+
6313
+ #: plus/types-access.php:95
6314
+ msgid "Buy Access - $39 (USD)"
6315
+ msgstr "Kup Access - 39 USD"
6316
+
6317
+ #: wpcf.php:186
6318
+ msgid ""
6319
+ "You cannot use this slug because there is already a page by that name. "
6320
+ "Please choose a different slug."
6321
+ msgstr ""
6322
+ "Nie możesz użyć tego sluga, ponieważ istnieje już strona o tej nazwie. "
6323
+ "Wybierz inny slug."
6324
+
6325
+ #: wpcf.php:221
6326
+ msgid ""
6327
+ "You cannot use this slug because it is a reserved word, used by WordPress. "
6328
+ "Please choose a different slug."
6329
+ msgstr ""
6330
+ "Nie możesz użyć tego sluga, ponieważ to słowo jest zastrzeżone, "
6331
+ "wykorzystywane przez WordPress. Wybierz inny slug."
6332
+
6333
+ #. Plugin URI of the plugin/theme
6334
+ msgid "http://wordpress.org/extend/plugins/types/"
6335
+ msgstr "http://wordpress.org/extend/plugins/types/"
6336
+
6337
+ #. Description of the plugin/theme
6338
+ msgid "Define custom post types, custom taxonomies and custom fields."
6339
+ msgstr "Twórz własne typy wpisów, własne taksonomie oraz dodatkowe pola."
6340
+
6341
+ #. Author of the plugin/theme
6342
+ msgid "OnTheGoSystems"
6343
+ msgstr "OnTheGoSystems"
6344
+
6345
+ #. Author URI of the plugin/theme
6346
+ msgid "http://www.onthegosystems.com"
6347
+ msgstr "http://www.onthegosystems.com"
6348
+
6349
+ #~ msgctxt "Link to Control Custom Fields screen"
6350
+ #~ msgid "<strong>%s</strong> Custom Field"
6351
+ #~ msgid_plural "<strong>%s</strong> Custom Fields"
6352
+ #~ msgstr[0] "<strong>%s</strong> Własne Pole"
6353
+ #~ msgstr[1] "<strong>%s</strong> Własnych Pól"
6354
+ #~ msgstr[2] "<strong>%s</strong> Własnych Pól"
6355
+
6356
+ #~ msgctxt "Link to User Fields Control screen"
6357
+ #~ msgid "<strong>%s</strong> User Field"
6358
+ #~ msgid_plural "<strong>%s</strong> User Fields"
6359
+ #~ msgstr[0] "<strong>%s</strong> Własne pole"
6360
+ #~ msgstr[1] "<strong>%s</strong> Własnych pól"
6361
+ #~ msgstr[2] "<strong>%s</strong> Własnych pól"
6362
+
6363
+ #~ msgid "Add a Custom Fields Group"
6364
+ #~ msgstr "Dodaj nową grupę własnych pól"
6365
+
6366
+ #~ msgid "Delete permanently"
6367
+ #~ msgstr "Usuń całkowicie"
6368
+
6369
+ #~ msgid ""
6370
+ #~ "Click to delete a Custom Taxonomy.<strong> Warning: This cannot be "
6371
+ #~ "undone</strong> "
6372
+ #~ msgstr ""
6373
+ #~ "Kliknij, aby usunąć grupę pól niestandardowych. <strong>Uwaga: tej "
6374
+ #~ "czynności nie można cofnąć.</strong>"
6375
+
6376
+ #~ msgid ""
6377
+ #~ "You can read more about Custom Post Types and Taxonomies in this tutorial."
6378
+ #~ "%s"
6379
+ #~ msgstr ""
6380
+ #~ "Więcej na temat własnych typów postów i własnych taksonomii można "
6381
+ #~ "przyczytać w tym podręczniku. %s (po angielsku)"
6382
+
6383
+ #~ msgid ""
6384
+ #~ "Click to delete a Custom Post Type.<strong> Warning: This cannot be "
6385
+ #~ "undone</strong> "
6386
+ #~ msgstr ""
6387
+ #~ "Kliknij, aby usunąć grupę pól niestandardowych. <strong>Uwaga: tej "
6388
+ #~ "czynności nie można cofnąć.</strong>"
6389
+
6390
+ #~ msgid ""
6391
+ #~ "Click to delete a User Fields Group. <strong>Warning: This cannot be "
6392
+ #~ "undone.</strong>"
6393
+ #~ msgstr ""
6394
+ #~ "Kliknij, aby usunąć grupę pól niestandardowych. <strong>Uwaga: tej "
6395
+ #~ "czynności nie można cofnąć.</strong>"
6396
+
6397
+ #, fuzzy
6398
+ #~ msgid "Go to:"
6399
+ #~ msgstr "Przejdź do"
6400
+
6401
+ #~ msgid "Add New Group"
6402
+ #~ msgstr "Dodaj nową grupę"
6403
+
6404
+ #~ msgid "Edit Taxonomy"
6405
+ #~ msgstr "Edytuj taksonomię"
6406
+
6407
+ #~ msgid "This screen contains the Types settings for your site."
6408
+ #~ msgstr "Ten ekran wyświetla ustawienia Typów dla Twojej witryny."
6409
+
6410
+ #~ msgid "Image Settings"
6411
+ #~ msgstr "Ustawienia obrazów"
6412
+
6413
+ #~ msgid "Security improvement"
6414
+ #~ msgstr "Poprawione bezpieczeństwo"
6415
+
6416
+ #~ msgid ""
6417
+ #~ "This version of Types has improved security when importing Types "
6418
+ #~ "settings. Types settings that were saved with the older version of Types "
6419
+ #~ "may not import all the data. You should export new Types settings if "
6420
+ #~ "needed."
6421
+ #~ msgstr ""
6422
+ #~ "W tej wersji wtyczki Types poprawiono bezpieczeństwo podczas importowania "
6423
+ #~ "ustawień wtyczki Types. Ustawienia Types, które zapisano za pomocą "
6424
+ #~ "starszej wersji Types mogą uniemożliwić import wszystkich danych. W razie "
6425
+ #~ "potrzeby, wyeksportuj nowe ustawienia Types."
6426
+
6427
+ #~ msgid "Toolset Messages state saved!"
6428
+ #~ msgstr "Zapisano stan komunikatów Toolset!"
6429
+
6430
+ #~ msgid "New"
6431
+ #~ msgstr "Nowy"
6432
+
6433
+ #~ msgid "WordPress Archive"
6434
+ #~ msgstr "Archiwum WordPressa"
6435
+
6436
+ #~ msgid "Fields table"
6437
+ #~ msgstr "Tabela pól"
6438
+
6439
+ #~ msgid "Not selected"
6440
+ #~ msgstr "Nie wybrane"
6441
+
6442
+ #~ msgid "Edit Usermeta Group"
6443
+ #~ msgstr "Edytuj grupę Usermeta"
6444
+
6445
+ #~ msgid "Add New Usermeta Group"
6446
+ #~ msgstr "Dodaj nową grupę Usermeta"
6447
+
6448
+ #~ msgid "Display Sections"
6449
+ #~ msgstr "Sekcje wyświetlane"
6450
+
6451
+ #~ msgid "No post types associated"
6452
+ #~ msgstr "Nie skojarzono żadnych typów postów"
6453
+
6454
+ #~ msgid "No taxonomies associated"
6455
+ #~ msgstr "Nie skojarzono żadnych taksonomii"
6456
+
6457
+ #~ msgid "When importing to theme:"
6458
+ #~ msgstr "Podczas importu do motywu:"
6459
+
6460
+ #~ msgid "ask user for approval"
6461
+ #~ msgstr "poproś użytkownika o potwierdzenie"
6462
+
6463
+ #~ msgid "import automatically"
6464
+ #~ msgstr "importuj automatycznie"
6465
+
6466
+ #~ msgid "Temporary directory is not found or there is not enough disk space."
6467
+ #~ msgstr "Nie znaleziono katalogu tymczasowego albo brak miejsca na dysku."
6468
+
6469
+ #~ msgid "Please check server settings or contact your server administrator."
6470
+ #~ msgstr ""
6471
+ #~ "Sprawdź ustawienia serwera lub skontaktuj się z administratorem serwera."
6472
+
6473
+ #~ msgid "Access Control and User Roles"
6474
+ #~ msgstr "Kontrola dostępu i role użytkowników"
6475
+
6476
+ #~ msgid "Types - Complete Solution for Custom Fields and Types"
6477
+ #~ msgstr "Types - Kompletne rozwiązane dla własnych definicji typów i pól"
6478
+
6479
+ #~ msgid "View templates"
6480
+ #~ msgstr "Wyświetl szablony"
6481
+
6482
+ #~ msgid "Full Size"
6483
+ #~ msgstr "Pełny rozmiar"
6484
+
6485
+ #~ msgid "Can't connect to %s"
6486
+ #~ msgstr "Nie można połączyć się z %s"
6487
+
6488
+ #~ msgid ""
6489
+ #~ "Please note that not all video and audio formats are supported by the "
6490
+ #~ "WordPress media player. Before you upload media files, have a look at "
6491
+ #~ "%ssupported media formats%s."
6492
+ #~ msgstr ""
6493
+ #~ "Pamiętaj, że nie wszystkie formaty wideo i audio są obsługiwane przez "
6494
+ #~ "odtwarzacz WordPressa. Zanim prześlesz pliki multimedialne, zobacz "
6495
+ #~ "%sobsługiwane formaty multimediów%s"
6496
+
6497
+ #~ msgid "Insert %s"
6498
+ #~ msgstr "Wstaw %s"
6499
+
6500
+ #~ msgid "Post ID"
6501
+ #~ msgstr "ID postu"
6502
+
6503
+ #~ msgid "RAW field output"
6504
+ #~ msgstr "Wyjście pola RAW"
6505
+
6506
+ #~ msgid "A related post to the current post"
6507
+ #~ msgstr "Post powiązany z aktualnym postem"
6508
+
6509
+ #~ msgid "Allow custom post type to have index page."
6510
+ #~ msgstr "Zezwalaj niestandardowym typom postów na posiadanie strony index."
6511
+
6512
+ #~ msgid "General Setings"
6513
+ #~ msgstr "Ustawienia ogólne"
6514
+
6515
+ #~ msgid "Select Color"
6516
+ #~ msgstr "Wybierz kolor"
6517
+
6518
+ #~ msgid "Select hour"
6519
+ #~ msgstr "Wybierz godzinę"
6520
+
6521
+ #~ msgid "Clear date"
6522
+ #~ msgstr "Wyczyść datę"
6523
+
6524
+ #~ msgid "Select file"
6525
+ #~ msgstr "Wybierz plik"
6526
+
6527
+ #~ msgid "Delete %s repetition"
6528
+ #~ msgstr "Usuń powtórzenie %s"
6529
+
6530
+ #~ msgid "Test group of elements"
6531
+ #~ msgstr "Testuj grupę elementów"
6532
+
6533
+ #~ msgid "Test form"
6534
+ #~ msgstr "Formularz testowy"
6535
+
6536
+ #~ msgid "Get Types and Views"
6537
+ #~ msgstr "Pobierz wtyczki Types i Views"
6538
+
6539
+ #~ msgid ""
6540
+ #~ "Once you have installed the full versions of Types and Views you'll be "
6541
+ #~ "able to create and edit your own content types, layouts and listings."
6542
+ #~ msgstr ""
6543
+ #~ "Po zainstalowaniu pełnej wersji wtyczek Types i Views, będziesz w stanie "
6544
+ #~ "tworzyć i edytować swoje własne typy zawartości, układy i listy."
6545
+
6546
+ #~ msgid "<a href=\"%s\" target=\"_blank\">Learn more</a>"
6547
+ #~ msgstr "<a href=\"%s\" target=\"_blank\">Dowiedz się więcej</a>"
6548
+
6549
+ #~ msgid ""
6550
+ #~ "Your theme was created using <strong>Types</strong> and <strong>Views</"
6551
+ #~ "strong>. Developers use these two plugins to build complex websites, "
6552
+ #~ "without coding."
6553
+ #~ msgstr ""
6554
+ #~ "Twój motyw stworzono korzystając z wtyczek <strong>Types</strong> i "
6555
+ #~ "<strong>Views</strong>. Twórcy wykorzystują te dwie wtyczki do budowania "
6556
+ #~ "złożonych stron internetowych bez pisania kodu."
6557
+
6558
+ #~ msgid ""
6559
+ #~ "Right now, you're using the embedded version, which creates the layout "
6560
+ #~ "but doesn't include the editing interface. You can upgrade to the full "
6561
+ #~ "version and customize your site yourself - you don't even need to know "
6562
+ #~ "how to program!"
6563
+ #~ msgstr ""
6564
+ #~ "W chwili obecnej korzystasz z wersji osadzonej, która tworzy układ, ale "
6565
+ #~ "nie zawiera interfejsu edycji. Możesz ulepszyć ją do wersji pełnej i "
6566
+ #~ "samodzielnie spersonalizować swoją stronę internetową - nie musisz nawet "
6567
+ #~ "znać się na programowaniu!"
6568
+
6569
+ #~ msgid ""
6570
+ #~ "Every purchase of Views entitles you to commercial-grade support and "
6571
+ #~ "upgrades for one year."
6572
+ #~ msgstr ""
6573
+ #~ "Każdy zakup wtyczki Views uprawnia Cię do wsparcia na poziomie "
6574
+ #~ "komercyjnym oraz do ulepszeń przez jeden rok."
6575
+
6576
+ #~ msgid ""
6577
+ #~ "You can use Types and Views for as many themes and websites as you like."
6578
+ #~ msgstr ""
6579
+ #~ "Możesz wykorzystać wtyczki Types i Views z nieograniczoną liczbą motywów "
6580
+ #~ "i stron internetowych."
6581
+
6582
+ #~ msgid ""
6583
+ #~ "Types creates Custom Post Types. These are user-defined WordPress content "
6584
+ #~ "types. On your theme the following types are defined:"
6585
+ #~ msgstr ""
6586
+ #~ "Wtyczka Types tworzy Niestandardowe Typy Wpisów. Są to typy zawartości "
6587
+ #~ "WordPressa definiowane przez użytkownika. W Twoim motywie zdefiniowano "
6588
+ #~ "następujące typy:"
6589
+
6590
+ #~ msgid ""
6591
+ #~ "If you want to edit these or create your own you can download the full "
6592
+ #~ "version of <strong>Types</strong> from <a href=\"%s\">%s</a>"
6593
+ #~ msgstr ""
6594
+ #~ "Jeżeli chcesz je edytować lub utworzyć swoje własne, możesz pobrać pełną "
6595
+ #~ "wersję wtyczki <strong>Types</strong> ze strony <a href=\"%s\">%s</a>"
6596
+
6597
+ #~ msgid "Your subscription expires in %d days."
6598
+ #~ msgstr "Twoja subskrypcja wygasa za %d dni."
embedded/locale/wp_types.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Types package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Types 1.6.7\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/types\n"
7
- "POT-Creation-Date: 2015-05-26 09:00:34+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -12,293 +12,239 @@ msgstr ""
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #. #-#-#-#-# wp_types.pot (Types 1.6.7) #-#-#-#-#
16
  #. Plugin Name of the plugin/theme
17
- #: admin.php:58 admin.php:59 admin.php:956
18
  #: embedded/common/visual-editor/editor-addon.class.php:104
19
  #: embedded/common/visual-editor/editor-addon.class.php:350
20
- #: embedded/includes/fields/file.php:126
21
  msgid "Types"
22
  msgstr ""
23
 
24
- #: admin.php:70 admin.php:351 admin.php:360
25
- msgid "Custom Post Types"
 
 
26
  msgstr ""
27
 
28
- #: admin.php:76 admin.php:379 admin.php:387
29
- #: plus/types-access/includes/admin-edit-access.php:139
30
  msgid "Custom Taxonomies"
31
  msgstr ""
32
 
33
- #: admin.php:82 admin.php:213 admin.php:222 admin.php:546
34
- #: includes/fields.php:1349
35
  msgid "Custom Fields"
36
  msgstr ""
37
 
38
- #: admin.php:88 admin.php:557
39
- msgid "Custom Fields Control"
40
  msgstr ""
41
 
42
- #: admin.php:94 admin.php:203 embedded/usermeta-init.php:157
43
- #: embedded/usermeta-init.php:185
44
- msgid "User Fields"
45
  msgstr ""
46
 
47
- #: admin.php:100 embedded/usermeta-init.php:167
 
48
  msgid "User Fields Control"
49
  msgstr ""
50
 
51
- #: admin.php:109 admin.php:514
52
- msgid "Import/Export"
53
  msgstr ""
54
 
55
- #: admin.php:115 admin.php:615
56
- msgid "Settings"
57
  msgstr ""
58
 
59
- #: admin.php:119 admin.php:626 admin.php:718
60
  msgid "Debug Information"
61
  msgstr ""
62
 
63
- #: admin.php:132 admin.php:309
64
  msgid "Edit Group"
65
  msgstr ""
66
 
67
- #: admin.php:132 admin.php:224 admin.php:311
68
- #: includes/classes/class.wpcf.custom.fields.list.table.php:497
69
- msgid "Add New Group"
70
  msgstr ""
71
 
72
- #: admin.php:142 admin.php:425
73
- msgid "Edit Custom Post Type"
74
  msgstr ""
75
 
76
- #: admin.php:143 admin.php:362 admin.php:435
77
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:513
78
  msgid "Add New Custom Post Type"
79
  msgstr ""
80
 
81
- #: admin.php:153 admin.php:473
82
- msgid "Edit Taxonomy"
83
- msgstr ""
84
-
85
- #: admin.php:154 admin.php:483
86
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:510
87
- msgid "Add New Taxonomy"
88
- msgstr ""
89
-
90
- #: admin.php:162
91
- msgid "Edit User Fields Group"
92
- msgstr ""
93
-
94
- #: admin.php:162
95
- msgid "Add New User Fields Group"
96
  msgstr ""
97
 
98
- #: admin.php:175 admin.php:176 admin.php:584
99
- msgid "Migration"
100
  msgstr ""
101
 
102
- #: admin.php:432 admin.php:480 admin.php:752
103
- #: includes/custom-types-form.php:906 includes/custom-types-form.php:908
104
- msgid "Add New"
105
  msgstr ""
106
 
107
- #: admin.php:545
108
- msgid "Custom Field"
109
  msgstr ""
110
 
111
- #: admin.php:619
112
- msgid "This screen contains the Types settings for your site."
 
113
  msgstr ""
114
 
115
- #: admin.php:623 admin.php:634
116
- msgid "Image Settings"
117
  msgstr ""
118
 
119
- #: admin.php:624 admin.php:660 includes/import-export.php:316
120
- msgid "General Settings"
121
- msgstr ""
122
-
123
- #: admin.php:625 admin.php:690
124
- msgid "Toolset Messages"
125
  msgstr ""
126
 
127
- #: admin.php:726
128
- msgid ""
129
- "For retrieving debug information if asked by a support person, use the <a "
130
- "href=\"%s\">debug information</a> page."
131
  msgstr ""
132
 
133
- #: admin.php:792
134
- msgid "No results"
135
  msgstr ""
136
 
137
- #: admin.php:1125 classes/class.wpcf-marketing-messages.php:356
138
- #: embedded/admin.php:393 plus/installer/includes/installer.class.php:408
139
- msgid "Dismiss"
140
  msgstr ""
141
 
142
- #: admin.php:1127
143
- msgid "Security improvement"
144
  msgstr ""
145
 
146
- #: admin.php:1128
147
- msgid ""
148
- "This version of Types has improved security when importing Types settings. "
149
- "Types settings that were saved with the older version of Types may not "
150
- "import all the data. You should export new Types settings if needed."
151
  msgstr ""
152
 
153
- #: classes/class.wpcf-marketing-messages.php:158
154
- msgid "Posts"
155
  msgstr ""
156
 
157
- #: classes/class.wpcf-marketing-messages.php:159
158
- msgid "Tags"
 
 
159
  msgstr ""
160
 
161
- #: classes/class.wpcf-marketing-messages.php:174
162
- msgid "Saving your changes"
163
  msgstr ""
164
 
165
- #: classes/class.wpcf-marketing-messages.php:176
166
- msgid "Did you know?"
167
  msgstr ""
168
 
169
- #: classes/class.wpcf-marketing-messages.php:275
170
- msgid "Updated!"
171
  msgstr ""
172
 
173
- #: classes/class.wpcf-marketing-messages.php:275
174
- msgid "Created!"
175
  msgstr ""
176
 
177
- #: classes/class.wpcf-marketing-messages.php:332
178
- msgid "Toolset Messages state saved!"
179
  msgstr ""
180
 
181
- #: classes/class.wpcf-marketing-messages.php:351
182
- msgid "Need help with <em>Types</em>?"
183
  msgstr ""
184
 
185
- #: classes/class.wpcf-marketing-messages.php:352
186
  msgid ""
187
- "Types plugin includes a lot of options. Tell us what kind of site you are "
188
- "building and we'll show you how to use Types in the best way."
189
- msgstr ""
190
-
191
- #: classes/class.wpcf-marketing-messages.php:354
192
- msgid "Get Started"
193
- msgstr ""
194
-
195
- #: classes/class.wpcf-marketing-tutorial.php:38
196
- msgid "Tutorial error"
197
- msgstr ""
198
-
199
- #: classes/class.wpcf-marketing-tutorial.php:43
200
- msgid "Wrong tutorial id."
201
- msgstr ""
202
-
203
- #: classes/class.wpcf-marketing-tutorial.php:48
204
- msgid "There is a problem with tutorial url."
205
- msgstr ""
206
-
207
- #: classes/class.wpcf-marketing-tutorial.php:51
208
- msgid "Selected tutorial is empty."
209
- msgstr ""
210
-
211
- #: classes/class.wpcf-marketing-tutorial.php:59
212
- msgid "Some error occured."
213
  msgstr ""
214
 
215
- #: classes/class.wpcf-marketing-tutorial.php:144
216
- msgid "Select instructions for other kinds of sites"
 
217
  msgstr ""
218
 
219
- #: classes/class.wpcf-marketing-tutorial.php:152
220
- msgid "Reload"
221
  msgstr ""
222
 
223
- #: classes/class.wpcf-marketing.php:73
224
- msgid "Want to create templates with fields?"
225
  msgstr ""
226
 
227
- #: classes/class.wpcf-marketing.php:77
228
- msgid ""
229
- "The full Toolset package allows you to design templates for content and "
230
- "insert fields using the WordPress editor."
231
  msgstr ""
232
 
233
- #: classes/class.wpcf-marketing.php:92
234
- msgid "Meet Toolset"
235
  msgstr ""
236
 
237
- #: classes/class.wpcf-marketing.php:104
238
- msgid "Creating Templates for Content"
239
  msgstr ""
240
 
241
- #: classes/class.wpcf-marketing.php:221 marketing/getting-started/index.php:18
242
- msgid "What kind of site are you building?"
243
  msgstr ""
244
 
245
- #: classes/class.wpcf-marketing.php:222
246
- msgid "Getting Started"
247
  msgstr ""
248
 
249
- #: embedded/admin.php:288
250
- msgid "This field is required"
251
- msgstr ""
252
-
253
- #: embedded/admin.php:289
254
- msgid "Please enter a valid email address"
255
  msgstr ""
256
 
257
  #: embedded/admin.php:290
258
- msgid "Please enter a valid URL address"
259
  msgstr ""
260
 
261
  #: embedded/admin.php:291
262
- msgid "Please enter a valid date"
263
- msgstr ""
264
-
265
- #: embedded/admin.php:292 embedded/admin.php:293 includes/fields.php:567
266
- msgid "Please enter numeric data"
267
  msgstr ""
268
 
269
- #: embedded/admin.php:294
270
- msgid "Letters, numbers, spaces or underscores only please"
271
  msgstr ""
272
 
273
- #: embedded/admin.php:295
274
- msgid "Letters, numbers, spaces, underscores and dashes only please"
275
- msgstr ""
276
-
277
- #: embedded/admin.php:296
278
- msgid "Letters, numbers, slashes, underscores and dashes only please"
279
- msgstr ""
280
-
281
- #: embedded/admin.php:297
282
  msgid "Please enter a date after 1 January 1970."
283
  msgstr ""
284
 
285
- #: embedded/admin.php:298
286
  msgid "Maximum of %s characters exceeded."
287
  msgstr ""
288
 
289
- #: embedded/admin.php:299
290
  msgid "Minimum of %s characters has not been reached."
291
  msgstr ""
292
 
293
- #: embedded/admin.php:304
294
  msgid "Letters, numbers, dashes, underscores, commas and periods only please."
295
  msgstr ""
296
 
297
- #: embedded/classes/class.wpcf-post-types.php:289
 
 
 
 
 
 
298
  msgid "Archive for %s"
299
  msgstr ""
300
 
301
- #: embedded/classes/editor.php:133 includes/custom-taxonomies-form.php:569
302
  msgid "Update %s"
303
  msgstr ""
304
 
@@ -307,8 +253,8 @@ msgid "Update shortcode"
307
  msgstr ""
308
 
309
  #: embedded/classes/editor.php:169 embedded/classes/editor.php:170
310
- #: embedded/includes/examples/google_map.php:176
311
- #: embedded/includes/examples/google_map.php:177
312
  msgid "Display"
313
  msgstr ""
314
 
@@ -316,17 +262,29 @@ msgstr ""
316
  msgid "There are no additional display options for the %s field."
317
  msgstr ""
318
 
319
- #: embedded/classes/editor.php:313
320
  msgid "Shortcode generation failed"
321
  msgstr ""
322
 
323
- #: embedded/classes/post-types/messages.php:13
 
 
 
 
 
 
 
 
 
 
 
 
324
  msgid ""
325
  "It is not recommended to have same plural and singular name for a post type. "
326
  "Please use a different name for the singular and plural names."
327
  msgstr ""
328
 
329
- #: embedded/classes/post-types/messages.php:14
330
  msgid "Ignore this warning."
331
  msgstr ""
332
 
@@ -338,35 +296,39 @@ msgstr ""
338
  msgid "Show"
339
  msgstr ""
340
 
341
- #: embedded/classes/relationship/form-child.php:526
342
- #: embedded/classes/relationship/form-child.php:537
343
  msgid "No %s"
344
  msgstr ""
345
 
346
- #: embedded/classes/relationship/form-child.php:693
347
- #: embedded/classes/relationship/form-child.php:708
348
  msgid "No parents available"
349
  msgstr ""
350
 
351
- #: embedded/classes/relationship/form-child.php:764
352
  msgid "Post Title"
353
  msgstr ""
354
 
355
- #: embedded/classes/relationship/form-child.php:775
356
  msgid "Post Body"
357
  msgstr ""
358
 
359
- #: embedded/classes/relationship/form-child.php:777
360
- #: includes/post-relationship.php:186
 
 
 
 
361
  msgid "Post excerpt"
362
  msgstr ""
363
 
364
- #: embedded/classes/relationship.php:376
365
  msgid "Child post \"%s\" field \"%s\" not updated:"
366
  msgstr ""
367
 
368
- #: embedded/classes/relationship.php:413
369
- msgid "New"
370
  msgstr ""
371
 
372
  #: embedded/classes/repeater.php:70 embedded/classes/usermeta_repeater.php:42
@@ -377,21 +339,21 @@ msgstr ""
377
  msgid "Required"
378
  msgstr ""
379
 
380
- #: embedded/classes/validate.php:261 embedded/common/classes/validate.php:264
381
  #: embedded/includes/fields/email.php:11 embedded/includes/fields/email.php:12
382
  msgid "Email"
383
  msgstr ""
384
 
385
- #: embedded/classes/validate.php:312 embedded/common/classes/validate.php:312
386
  #: embedded/includes/fields/date.php:97 embedded/includes/fields/date.php:98
387
  msgid "Date"
388
  msgstr ""
389
 
390
- #: embedded/classes/validate.php:347 embedded/common/classes/validate.php:347
391
  msgid "Digits"
392
  msgstr ""
393
 
394
- #: embedded/classes/validate.php:376 embedded/common/classes/validate.php:375
395
  #: embedded/includes/fields/numeric.php:22
396
  #: embedded/includes/fields/numeric.php:23
397
  msgid "Numeric"
@@ -404,153 +366,150 @@ msgid ""
404
  "comparison()"
405
  msgstr ""
406
 
407
- #: embedded/classes/validation-cakephp.php:424
408
  #: embedded/common/classes/validation-cakephp.php:400
409
  msgid "You must define a regular expression for Wpcf_Cake_Validation::custom()"
410
  msgstr ""
411
 
412
- #: embedded/classes/validation-cakephp.php:1007
413
  #: embedded/common/classes/validation-cakephp.php:1002
414
  #: embedded/common/toolset-forms/lib/CakePHP-Validation.php:1010
415
  msgid "Could not find %s class, unable to complete validation."
416
  msgstr ""
417
 
418
- #: embedded/classes/validation-cakephp.php:1012
419
  #: embedded/common/classes/validation-cakephp.php:1006
420
  #: embedded/common/toolset-forms/lib/CakePHP-Validation.php:1014
421
  msgid "Method %s does not exist on %s unable to complete validation."
422
  msgstr ""
423
 
424
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:93
425
  msgid "Design with Toolset"
426
  msgstr ""
427
 
428
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:581
 
 
 
 
429
  msgid "Create a new"
430
  msgstr ""
431
 
432
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:592
433
- #: embedded/common/toolset-forms/classes/class.skype.php:75
434
- #: embedded/includes/relationship/child-table-row.php:39
435
- #: includes/classes/class.wpcf.custom.fields.list.table.php:141
436
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:133
437
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:133
438
- #: includes/classes/class.wpcf.user.fields.list.table.php:131
439
- #: includes/conditional-display.php:169 includes/fields-control.php:235
440
- #: includes/fields-form.php:1417 includes/fields-form.php:1479
441
- #: includes/post-relationship.php:335 includes/post-relationship.php:384
442
- #: includes/usermeta-control.php:224
443
  msgid "Edit"
444
  msgstr ""
445
 
446
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:595
447
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:630
448
  msgid "Layout"
449
  msgstr ""
450
 
451
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:596
452
- msgid "WordPress Archive"
453
- msgstr ""
454
-
455
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:596
456
- #: embedded/common/visual-editor/editor-addon.class.php:72
457
- #: embedded/common/visual-editor/editor-addon.class.php:543
458
- #: embedded/common/visual-editor/editor-addon.class.php:661
459
- #: embedded/common/visual-editor/views-editor-addon.class.php:212
460
- #: embedded/common/visual-editor/views-editor-addon.class.php:224
461
- msgid "Content Template"
462
  msgstr ""
463
 
464
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:632
 
465
  msgid "Template"
466
  msgstr ""
467
 
468
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:636
469
  msgid "for"
470
  msgstr ""
471
 
472
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:649
473
  msgid "Error 404 page"
474
  msgstr ""
475
 
476
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:656
477
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:670
478
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:672
479
  msgid "Archives"
480
  msgstr ""
481
 
482
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:674
483
  msgid "Unsupported post type archives"
484
  msgstr ""
485
 
486
- #: embedded/common/classes/class-toolset-admin-bar-menu.php:678
487
  msgid "Unsupported page"
488
  msgstr ""
489
 
490
- #: embedded/common/classes/class.toolset.promo.php:127
491
  msgid ""
492
  "Want to edit Views, CRED forms and Layouts? Get the full <em>Toolset</em> "
493
  "package!"
494
  msgstr ""
495
 
496
- #: embedded/common/classes/class.toolset.promo.php:130
497
  msgid ""
498
  "The full <em>Toolset</em> package allows you to develop and customize themes "
499
  "without touching PHP. You will be able to:"
500
  msgstr ""
501
 
502
- #: embedded/common/classes/class.toolset.promo.php:134
503
  msgid "Create templates"
504
  msgstr ""
505
 
506
- #: embedded/common/classes/class.toolset.promo.php:135
507
  msgid "Design page layouts using drag-and-drop"
508
  msgstr ""
509
 
510
- #: embedded/common/classes/class.toolset.promo.php:136
511
- #: embedded/includes/fields-post.php:1867
512
  msgid "Build parametric searches"
513
  msgstr ""
514
 
515
- #: embedded/common/classes/class.toolset.promo.php:139
516
  msgid "Display lists of content"
517
  msgstr ""
518
 
519
- #: embedded/common/classes/class.toolset.promo.php:140
520
  msgid "Create front-end content editing forms"
521
  msgstr ""
522
 
523
- #: embedded/common/classes/class.toolset.promo.php:141
524
  msgid "and more…"
525
  msgstr ""
526
 
527
- #: embedded/common/classes/class.toolset.promo.php:145
528
  msgid ""
529
  "Once you buy the full Toolset, you will be able to edit Views, CRED forms "
530
  "and Layouts in your site, as well as build new ones."
531
  msgstr ""
532
 
533
- #: embedded/common/classes/class.toolset.promo.php:148
534
  msgid "<em>Toolset</em> Package Options"
535
  msgstr ""
536
 
537
- #: embedded/common/classes/class.toolset.promo.php:150
538
  msgid "Learn more about <em>Toolset</em>"
539
  msgstr ""
540
 
541
- #: embedded/common/debug/debug-information.php:18
542
- #: embedded/common/debug/debug-information.php:21
543
  msgid "Debug information"
544
  msgstr ""
545
 
546
- #: embedded/common/debug/debug-information.php:23
547
  msgid ""
548
  "This information allows our support team to see the versions of WordPress, "
549
  "plugins and theme on your site. Provide this information if requested in our "
550
  "support forum. No passwords or other confidential information is included."
551
  msgstr ""
552
 
553
- #: embedded/common/debug/functions_debug_information.php:67
554
  msgid "n/a"
555
  msgstr ""
556
 
@@ -570,23 +529,23 @@ msgstr ""
570
  msgid "Don't show this message again"
571
  msgstr ""
572
 
573
- #: embedded/common/toolset-forms/classes/class.audio.php:33
574
  msgid "You can add only audio."
575
  msgstr ""
576
 
577
- #: embedded/common/toolset-forms/classes/class.colorpicker.php:38
578
- #: embedded/common/toolset-forms/classes/class.credfile.php:114
579
  #: embedded/common/toolset-forms/classes/class.date.php:233
580
  #: embedded/common/visual-editor/editor-addon.class.php:699
581
  msgid "Clear"
582
  msgstr ""
583
 
584
- #: embedded/common/toolset-forms/classes/class.colorpicker.php:39
585
- #: includes/fields/radio.php:208 includes/fields/select.php:136
586
  msgid "Default"
587
  msgstr ""
588
 
589
- #: embedded/common/toolset-forms/classes/class.colorpicker.php:40
590
  #: embedded/common/toolset-forms/classes/class.date.php:129
591
  #: embedded/common/toolset-forms/classes/class.date.php:197
592
  #: embedded/includes/fields/select.php:10
@@ -594,27 +553,27 @@ msgstr ""
594
  msgid "Select"
595
  msgstr ""
596
 
597
- #: embedded/common/toolset-forms/classes/class.colorpicker.php:69
598
  msgid "You can add valid hexadecimal."
599
  msgstr ""
600
 
601
- #: embedded/common/toolset-forms/classes/class.credfile.php:66
602
  msgid "Featured Image"
603
  msgstr ""
604
 
605
- #: embedded/common/toolset-forms/classes/class.credfile.php:110
606
  msgid "Restore original"
607
  msgstr ""
608
 
609
  #: embedded/common/toolset-forms/classes/class.date.php:192
610
  #: embedded/includes/fields/date.php:232
611
- #: embedded/includes/usermeta-post.php:646
612
  msgid "Hour"
613
  msgstr ""
614
 
615
  #: embedded/common/toolset-forms/classes/class.date.php:215
616
  #: embedded/includes/fields/date.php:254
617
- #: embedded/includes/usermeta-post.php:646
618
  msgid "Minute"
619
  msgstr ""
620
 
@@ -622,108 +581,144 @@ msgstr ""
622
  msgid "Select minute"
623
  msgstr ""
624
 
625
- #: embedded/common/toolset-forms/classes/class.date.scripts.php:126
626
- #: embedded/includes/fields/date/js.php:31
627
  msgid "Select date"
628
  msgstr ""
629
 
630
- #: embedded/common/toolset-forms/classes/class.date.scripts.php:129
631
  #: embedded/includes/fields/date/js.php:12
632
  msgid "Input format: %s"
633
  msgstr ""
634
 
635
- #: embedded/common/toolset-forms/classes/class.date.scripts.php:133
636
  msgid "This is a read-only date input"
637
  msgstr ""
638
 
639
- #: embedded/common/toolset-forms/classes/class.eforms.php:393
640
- #: embedded/includes/fields-post.php:1410
641
- #: embedded/includes/fields-post.php:1412
642
  msgid ""
643
  "This field is locked for editing because WPML will copy its value from the "
644
  "original language."
645
  msgstr ""
646
 
647
- #: embedded/common/toolset-forms/classes/class.file.php:104
648
  msgid "audio"
649
  msgstr ""
650
 
651
- #: embedded/common/toolset-forms/classes/class.file.php:107
652
  msgid "image"
653
  msgstr ""
654
 
655
- #: embedded/common/toolset-forms/classes/class.file.php:110
656
  msgid "video"
657
  msgstr ""
658
 
659
- #: embedded/common/toolset-forms/classes/class.file.php:113
660
  msgid "file"
661
  msgstr ""
662
 
663
- #: embedded/common/toolset-forms/classes/class.file.php:119
664
- #: embedded/includes/fields/file.php:33
665
  msgid "Select %s"
666
  msgstr ""
667
 
668
- #: embedded/common/toolset-forms/classes/class.form_factory.php:248
669
  msgid "There is a problem rendering field <strong>%s (%s)</strong>."
670
  msgstr ""
671
 
672
- #: embedded/common/toolset-forms/classes/class.image.php:42
673
  msgid "You can add only images."
674
  msgstr ""
675
 
676
- #: embedded/common/toolset-forms/classes/class.skype.php:31
677
- #: embedded/includes/fields/skype.php:95 embedded/includes/fields/skype.php:97
678
  msgid "Edit Skype button"
679
  msgstr ""
680
 
681
- #: embedded/common/toolset-forms/classes/class.skype.php:93
682
- #: embedded/includes/fields/skype.php:211
683
- msgid "Enter your Skype Name"
684
  msgstr ""
685
 
686
- #: embedded/common/toolset-forms/classes/class.skype.php:95
687
- #: embedded/views/templates/skype-select-button.tpl.php:18
688
- msgid "Select a button from below"
689
  msgstr ""
690
 
691
- #: embedded/common/toolset-forms/classes/class.skype.php:98
692
- #: embedded/views/templates/skype-select-button.tpl.php:56
693
- msgid "Skype buttons with status"
694
  msgstr ""
695
 
696
- #: embedded/common/toolset-forms/classes/class.skype.php:99
697
- #: embedded/views/templates/skype-select-button.tpl.php:57
 
 
 
698
  msgid ""
699
- "If you choose to show your Skype status, your Skype button will always "
700
- "reflect your availability on Skype. This status will be shown to everyone, "
701
- "whether they’re in your contact list or not."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
702
  msgstr ""
703
 
704
- #: embedded/common/toolset-forms/classes/class.skype.php:108
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
705
  #: embedded/includes/relationship/child-table-row.php:31
706
- #: includes/common-functions.php:51 includes/fields-form.php:270
707
- #: includes/fields-form.php:876 includes/post-relationship.php:251
708
- #: includes/usermeta-form.php:238 includes/usermeta-form.php:630
709
- #: plus/types-access/includes/admin-edit-access.php:910
710
  msgid "Save"
711
  msgstr ""
712
 
713
- #: embedded/common/toolset-forms/classes/class.taxonomyhierarchical.php:100
714
- #: embedded/views/editor-modal-window.php:90 includes/fields-form.php:1426
715
- #: includes/fields-form.php:1535 includes/post-relationship.php:377
716
  #: includes/post-relationship.php:432
717
  #: plus/installer/templates/repository-listing.php:27
718
- #: plus/types-access/includes/admin-edit-access.php:615
719
- #: plus/types-access/includes/admin-edit-access.php:672
720
- #: plus/types-access/includes/admin-edit-access.php:840
721
- #: plus/types-access/includes/admin-edit-access.php:870
722
- #: plus/types-access/includes/admin-edit-access.php:916
723
  msgid "Cancel"
724
  msgstr ""
725
 
726
- #: embedded/common/toolset-forms/classes/class.video.php:69
727
  msgid "You can add only video."
728
  msgstr ""
729
 
@@ -738,32 +733,52 @@ msgid ""
738
  "You must define a regular expression for WPToolset_Cake_Validation::custom()"
739
  msgstr ""
740
 
741
- #: embedded/common/toolset-forms/templates/metaform-item.php:17
742
  #: embedded/includes/repetitive-fields-ordering.php:93
743
  #: embedded/includes/repetitive-usermetafields-ordering.php:93
744
  msgid "Delete %s"
745
  msgstr ""
746
 
747
- #: embedded/common/toolset-forms/templates/metaform-item.php:37
748
- #: embedded/includes/relationship/child-table-row.php:50
749
- #: includes/classes/class.wpcf.custom.fields.list.table.php:157
750
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:164
751
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:163
752
- #: includes/classes/class.wpcf.user.fields.list.table.php:147
753
- #: includes/fields-control.php:249 includes/usermeta-control.php:238
754
- #: plus/types-access/includes/admin-edit-access.php:912
 
 
 
 
755
  msgid "Delete"
756
  msgstr ""
757
 
758
- #: embedded/common/toolset-forms/templates/metaform.php:22
759
- #: embedded/common/toolset-forms/templates/metaform.php:63
760
  msgid "Add new %s"
761
  msgstr ""
762
 
 
 
 
 
763
  #: embedded/common/visual-editor/editor-addon-generic.class.php:43
 
 
 
 
764
  msgid "You can only use an image file here"
765
  msgstr ""
766
 
 
 
 
 
 
 
 
 
767
  #: embedded/common/visual-editor/editor-addon.class.php:74
768
  #: embedded/common/visual-editor/editor-addon.class.php:83
769
  #: embedded/common/visual-editor/editor-addon.class.php:305
@@ -775,8 +790,8 @@ msgstr ""
775
  #: embedded/common/visual-editor/editor-addon.class.php:734
776
  #: embedded/common/visual-editor/editor-addon.class.php:739
777
  #: embedded/common/visual-editor/editor-addon.class.php:745
778
- #: embedded/common/visual-editor/views-editor-addon.class.php:209
779
- #: embedded/common/visual-editor/views-editor-addon.class.php:230
780
  msgid "Post View"
781
  msgstr ""
782
 
@@ -790,8 +805,8 @@ msgstr ""
790
  #: embedded/common/visual-editor/editor-addon.class.php:737
791
  #: embedded/common/visual-editor/editor-addon.class.php:745
792
  #: embedded/common/visual-editor/editor-addon.class.php:749
793
- #: embedded/common/visual-editor/views-editor-addon.class.php:208
794
- #: embedded/common/visual-editor/views-editor-addon.class.php:231
795
  msgid "Taxonomy View"
796
  msgstr ""
797
 
@@ -805,8 +820,8 @@ msgstr ""
805
  #: embedded/common/visual-editor/editor-addon.class.php:739
806
  #: embedded/common/visual-editor/editor-addon.class.php:743
807
  #: embedded/common/visual-editor/editor-addon.class.php:749
808
- #: embedded/common/visual-editor/views-editor-addon.class.php:207
809
- #: embedded/common/visual-editor/views-editor-addon.class.php:232
810
  msgid "User View"
811
  msgstr ""
812
 
@@ -814,8 +829,8 @@ msgstr ""
814
  #: embedded/common/visual-editor/editor-addon.class.php:132
815
  #: embedded/common/visual-editor/editor-addon.class.php:348
816
  #: embedded/common/visual-editor/editor-addon.class.php:363
817
- #: embedded/common/visual-editor/views-editor-addon.class.php:155
818
- #: embedded/common/visual-editor/views-editor-addon.class.php:160
819
  msgid "Fields and Views"
820
  msgstr ""
821
 
@@ -846,8 +861,8 @@ msgstr ""
846
  #: embedded/common/visual-editor/editor-addon.class.php:221
847
  #: embedded/common/visual-editor/editor-addon.class.php:538
848
  #: embedded/common/visual-editor/editor-addon.class.php:663
849
- #: embedded/common/visual-editor/views-editor-addon.class.php:214
850
- #: embedded/common/visual-editor/views-editor-addon.class.php:222
851
  msgid "Basic"
852
  msgstr ""
853
 
@@ -876,14 +891,14 @@ msgid "Display Name"
876
  msgstr ""
877
 
878
  #: embedded/common/visual-editor/editor-addon.class.php:206
879
- #: includes/classes/class.wpcf.custom.fields.list.table.php:206
880
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:213
881
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:212
882
- #: includes/classes/class.wpcf.user.fields.list.table.php:196
883
- #: includes/custom-taxonomies-form.php:181 includes/custom-types-form.php:199
884
- #: includes/fields/checkbox.php:49 includes/fields/checkboxes.php:44
885
- #: includes/fields/date.php:45 includes/fields/radio.php:38
886
- #: includes/fields/select.php:38
887
  msgid "Description"
888
  msgstr ""
889
 
@@ -924,7 +939,7 @@ msgstr ""
924
  msgid "Users fields"
925
  msgstr ""
926
 
927
- #: embedded/common/visual-editor/editor-addon.class.php:251
928
  msgid "User fields"
929
  msgstr ""
930
 
@@ -937,15 +952,20 @@ msgid "Field"
937
  msgstr ""
938
 
939
  #: embedded/common/visual-editor/editor-addon.class.php:660
940
- #: embedded/common/visual-editor/views-editor-addon.class.php:210
941
- #: embedded/common/visual-editor/views-editor-addon.class.php:229
 
 
 
 
 
942
  msgid "View"
943
  msgstr ""
944
 
945
  #: embedded/common/visual-editor/editor-addon.class.php:662
946
- #: embedded/common/visual-editor/views-editor-addon.class.php:213
947
- #: embedded/common/visual-editor/views-editor-addon.class.php:223
948
- #: plus/types-access/includes/admin-edit-access.php:162
949
  msgid "Taxonomy"
950
  msgstr ""
951
 
@@ -954,38 +974,44 @@ msgid "Other Fields"
954
  msgstr ""
955
 
956
  #: embedded/common/visual-editor/editor-addon.class.php:697
957
- #: embedded/common/visual-editor/views-editor-addon.class.php:288
958
  msgid "Search"
959
  msgstr ""
960
 
961
- #: embedded/common/visual-editor/views-editor-addon.class.php:179
 
 
 
 
 
 
962
  msgid "Jump to:"
963
  msgstr ""
964
 
965
- #: embedded/common/visual-editor/views-editor-addon.class.php:206
966
- #: embedded/common/visual-editor/views-editor-addon.class.php:233
967
  msgid "WPML"
968
  msgstr ""
969
 
970
- #: embedded/common/visual-editor/views-editor-addon.class.php:211
971
- #: embedded/common/visual-editor/views-editor-addon.class.php:228
972
- msgid "Post field"
973
  msgstr ""
974
 
975
  #: embedded/common/wp-pointer.php:156
976
  msgid "Some pointer hints have been hidden on this page. %sShow them again%s"
977
  msgstr ""
978
 
979
- #: embedded/functions.php:137
980
- msgid ""
981
- "You have Types import pending. %sClick here to import.%s %sDismiss message.%s"
982
  msgstr ""
983
 
984
- #: embedded/functions.php:160
985
- msgid "settings.xml file missing"
 
986
  msgstr ""
987
 
988
- #: embedded/functions.php:487
989
  msgid "Close"
990
  msgstr ""
991
 
@@ -1074,63 +1100,61 @@ msgstr ""
1074
  msgid "Your input should look something like \"41.934146,12.455821\""
1075
  msgstr ""
1076
 
1077
- #: embedded/includes/examples/google_map.php:165
1078
  #: embedded/views/templates/editor-modal-embed.tpl.php:27
1079
- #: embedded/views/templates/editor-modal-image.tpl.php:93
1080
  #: embedded/views/templates/editor-modal-video.tpl.php:31
1081
  msgid "Width"
1082
  msgstr ""
1083
 
1084
- #: embedded/includes/examples/google_map.php:168
1085
  #: embedded/views/templates/editor-modal-embed.tpl.php:31
1086
- #: embedded/views/templates/editor-modal-image.tpl.php:97
1087
  #: embedded/views/templates/editor-modal-video.tpl.php:35
1088
  msgid "Height"
1089
  msgstr ""
1090
 
1091
- #: embedded/includes/examples/google_map.php:223
1092
  msgid "View Larger Map"
1093
  msgstr ""
1094
 
1095
- #: embedded/includes/fields/audio.php:19 embedded/includes/fields/audio.php:20
1096
  msgid "Audio"
1097
  msgstr ""
1098
 
1099
- #: embedded/includes/fields/audio.php:72
1100
- #: embedded/includes/fields/checkbox.php:95
1101
  #: embedded/includes/fields/checkboxes.php:77
1102
  #: embedded/includes/fields/date.php:474 embedded/includes/fields/email.php:51
1103
- #: embedded/includes/fields/embed.php:99 embedded/includes/fields/file.php:207
1104
- #: embedded/includes/fields/image.php:152
1105
  #: embedded/includes/fields/numeric.php:88
1106
- #: embedded/includes/fields/radio.php:92
1107
- #: embedded/includes/fields/skype.php:133 embedded/includes/fields/url.php:72
1108
- #: embedded/includes/fields/video.php:105
1109
  msgid "Display options"
1110
  msgstr ""
1111
 
1112
- #: embedded/includes/fields/audio.php:73
1113
- #: embedded/includes/fields/checkbox.php:96
1114
  #: embedded/includes/fields/checkboxes.php:78
1115
  #: embedded/includes/fields/date.php:475 embedded/includes/fields/email.php:52
1116
  #: embedded/includes/fields/embed.php:100
1117
- #: embedded/includes/fields/file.php:208
1118
- #: embedded/includes/fields/image.php:153
1119
  #: embedded/includes/fields/numeric.php:89
1120
- #: embedded/includes/fields/radio.php:93
1121
- #: embedded/includes/fields/skype.php:132 embedded/includes/fields/url.php:73
1122
- #: embedded/includes/fields/video.php:106
1123
  msgid "Display options for this field:"
1124
  msgstr ""
1125
 
1126
- #: embedded/includes/fields/checkbox.php:23
1127
- #: embedded/includes/fields/checkbox.php:24
1128
  msgid "Checkbox"
1129
  msgstr ""
1130
 
1131
  #: embedded/includes/fields/checkboxes.php:13
1132
  #: embedded/includes/fields/checkboxes.php:14
1133
- #: includes/fields/checkboxes.php:74
1134
  msgid "Checkboxes"
1135
  msgstr ""
1136
 
@@ -1140,12 +1164,12 @@ msgid "Colorpicker"
1140
  msgstr ""
1141
 
1142
  #: embedded/includes/fields/colorpicker.php:39
 
1143
  #: embedded/includes/fields/colorpicker.php:126
1144
- #: embedded/includes/fields/colorpicker.php:127
1145
  msgid "Pick color"
1146
  msgstr ""
1147
 
1148
- #: embedded/includes/fields/colorpicker.php:127
1149
  msgid "Done"
1150
  msgstr ""
1151
 
@@ -1171,100 +1195,100 @@ msgstr ""
1171
  msgid "Embedded Media"
1172
  msgstr ""
1173
 
1174
- #: embedded/includes/fields/file.php:18 embedded/includes/fields/file.php:19
1175
  msgid "File"
1176
  msgstr ""
1177
 
1178
- #: embedded/includes/fields/file.php:132
1179
  msgid "Use as field value"
1180
  msgstr ""
1181
 
1182
- #: embedded/includes/fields/image.php:24 embedded/includes/fields/image.php:25
1183
  msgid "Image"
1184
  msgstr ""
1185
 
1186
- #: embedded/includes/fields/image.php:111
1187
  #: includes/classes/class.wpcf.custom.fields.list.table.php:94
1188
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:97
1189
  #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:97
1190
- #: includes/fields-control.php:50 includes/fields-control.php:73
1191
- #: includes/fields-control.php:87 includes/fields-control.php:100
1192
- #: includes/fields-control.php:216 includes/usermeta-control.php:37
1193
- #: includes/usermeta-control.php:62 includes/usermeta-control.php:76
1194
- #: includes/usermeta-control.php:89 includes/usermeta-control.php:204
1195
  msgid "None"
1196
  msgstr ""
1197
 
1198
- #: embedded/includes/fields/image.php:112
1199
  msgid "Left"
1200
  msgstr ""
1201
 
1202
- #: embedded/includes/fields/image.php:113
1203
  msgid "Center"
1204
  msgstr ""
1205
 
1206
- #: embedded/includes/fields/image.php:114
1207
  msgid "Right"
1208
  msgstr ""
1209
 
1210
- #: embedded/includes/fields/image.php:127
1211
  msgid "Thumbnail - %s"
1212
  msgstr ""
1213
 
1214
- #: embedded/includes/fields/image.php:129
1215
  msgid "Medium - %s"
1216
  msgstr ""
1217
 
1218
- #: embedded/includes/fields/image.php:131
1219
  msgid "Large - %s"
1220
  msgstr ""
1221
 
1222
- #: embedded/includes/fields/image.php:133
1223
  msgid "Original image"
1224
  msgstr ""
1225
 
1226
- #: embedded/includes/fields/image.php:142
1227
  msgid "Custom size..."
1228
  msgstr ""
1229
 
1230
- #: embedded/includes/fields/image.php:565
1231
- #: embedded/includes/fields/image.php:572
1232
- #: embedded/includes/fields/image.php:692
1233
  msgid "Image %s not valid"
1234
  msgstr ""
1235
 
1236
- #: embedded/includes/fields/image.php:659
1237
  msgid "Image cache directory %s could not be created"
1238
  msgstr ""
1239
 
1240
- #: embedded/includes/fields/image.php:725
1241
- #: embedded/includes/fields/image.php:737
1242
  msgid "Remote server returned error response %1$d %2$s"
1243
  msgstr ""
1244
 
1245
- #: embedded/includes/fields/image.php:744
1246
  msgid "Remote file is incorrect size"
1247
  msgstr ""
1248
 
1249
- #: embedded/includes/fields/image.php:750
1250
  msgid "Could not create cache file"
1251
  msgstr ""
1252
 
1253
- #: embedded/includes/fields/image.php:761
1254
  msgid "Remote file is too large, limit is %s"
1255
  msgstr ""
1256
 
1257
- #: embedded/includes/fields/image.php:891
1258
  msgid "Could not read image size"
1259
  msgstr ""
1260
 
1261
- #: embedded/includes/fields/image.php:896
1262
  msgid "Could not calculate resized image dimensions"
1263
  msgstr ""
1264
 
1265
- #: embedded/includes/fields/image.php:926
1266
- #: embedded/includes/fields/image.php:929
1267
- #: embedded/includes/fields/image.php:937 embedded/views/image.php:296
1268
  msgid "Resize path invalid"
1269
  msgstr ""
1270
 
@@ -1276,24 +1300,24 @@ msgstr ""
1276
  msgid "Radio"
1277
  msgstr ""
1278
 
1279
- #: embedded/includes/fields/skype.php:19 embedded/includes/fields/skype.php:20
1280
  msgid "Skype"
1281
  msgstr ""
1282
 
1283
- #: embedded/includes/fields/skype.php:57
1284
  msgid "Skype name"
1285
  msgstr ""
1286
 
1287
- #: embedded/includes/fields/skype.php:206
1288
- #: embedded/includes/fields/skype.php:227
1289
  msgid "Insert skype button"
1290
  msgstr ""
1291
 
1292
- #: embedded/includes/fields/textarea.php:19
1293
  msgid "Multiple lines"
1294
  msgstr ""
1295
 
1296
- #: embedded/includes/fields/textarea.php:20
1297
  msgid "Textarea"
1298
  msgstr ""
1299
 
@@ -1313,23 +1337,23 @@ msgstr ""
1313
  msgid "_self: Opens in the same frame as it was clicked"
1314
  msgstr ""
1315
 
1316
- #: embedded/includes/fields/url.php:64
1317
  msgid "_parent: Opens in the parent frame"
1318
  msgstr ""
1319
 
1320
- #: embedded/includes/fields/url.php:65
1321
  msgid "_top: Opens in the full body of the window"
1322
  msgstr ""
1323
 
1324
- #: embedded/includes/fields/url.php:66
1325
  msgid "framename: Opens in a named frame"
1326
  msgstr ""
1327
 
1328
- #: embedded/includes/fields/url.php:78 embedded/includes/fields/url.php:79
1329
  msgid "Target"
1330
  msgstr ""
1331
 
1332
- #: embedded/includes/fields/video.php:19 embedded/includes/fields/video.php:20
1333
  msgid "Video"
1334
  msgstr ""
1335
 
@@ -1341,70 +1365,70 @@ msgstr ""
1341
  msgid "WYSIWYG editor"
1342
  msgstr ""
1343
 
1344
- #: embedded/includes/fields-post.php:77
1345
  msgid "Display Custom Content"
1346
  msgstr ""
1347
 
1348
- #: embedded/includes/fields-post.php:655
1349
- #: embedded/includes/usermeta-post.php:390
1350
  msgid "Field \"%s\" not updated:"
1351
  msgstr ""
1352
 
1353
- #: embedded/includes/fields-post.php:814
1354
- #: embedded/includes/usermeta-post.php:496
1355
  msgid "Please check your input data"
1356
  msgstr ""
1357
 
1358
- #: embedded/includes/fields-post.php:1307
1359
  msgid "If you change slug, new field will be created"
1360
  msgstr ""
1361
 
1362
- #: embedded/includes/fields-post.php:1698
1363
  msgid "Insert Types Shortcode"
1364
  msgstr ""
1365
 
1366
- #: embedded/includes/fields-post.php:1850
1367
  msgid "Build this site with %sViews%s"
1368
  msgstr ""
1369
 
1370
- #: embedded/includes/fields-post.php:1854
1371
- msgid "Create <strong>View Templates</strong> for single pages &raquo;"
1372
  msgstr ""
1373
 
1374
- #: embedded/includes/fields-post.php:1856
1375
  msgid "Create <strong>Views</strong> for content lists &raquo;"
1376
  msgstr ""
1377
 
1378
- #: embedded/includes/fields-post.php:1859
1379
  msgid "%sViews%s lets you build complete websites without coding."
1380
  msgstr ""
1381
 
1382
- #: embedded/includes/fields-post.php:1865
1383
- #: marketing/congrats-post-types/index.php:112
1384
  msgid "Design templates for single pages"
1385
  msgstr ""
1386
 
1387
- #: embedded/includes/fields-post.php:1866
1388
  msgid "Query content and display anywhere"
1389
  msgstr ""
1390
 
1391
- #: embedded/includes/fields-post.php:1868
1392
  msgid "Create your own widgets"
1393
  msgstr ""
1394
 
1395
- #: embedded/includes/fields-post.php:1869
1396
  msgid "No coding necessary"
1397
  msgstr ""
1398
 
1399
- #: embedded/includes/fields-post.php:1872
1400
  msgid "Get Views"
1401
  msgstr ""
1402
 
1403
- #: embedded/includes/fields-post.php:1900
1404
  msgid "Preview warning"
1405
  msgstr ""
1406
 
1407
- #: embedded/includes/fields-post.php:1903
1408
  msgid "Custom field changes cannot be previewed until %s is updated"
1409
  msgstr ""
1410
 
@@ -1412,435 +1436,442 @@ msgstr ""
1412
  msgid "Functionality enhanced using %sWordPress Custom Fields%s"
1413
  msgstr ""
1414
 
1415
- #: embedded/includes/footer-credit.php:51
1416
  msgid "Functionality enhanced using %sWordPress Custom Post Types%s"
1417
  msgstr ""
1418
 
1419
- #: embedded/includes/footer-credit.php:55
1420
  msgid "Functionality enhanced using %sWordPress Custom Taxonomy%s"
1421
  msgstr ""
1422
 
1423
- #: embedded/includes/footer-credit.php:111
1424
  msgid ""
1425
  "You too can support Types! Would you like to add a small credit link, saying "
1426
  "that you're using Types for custom fields or custom post types?"
1427
  msgstr ""
1428
 
1429
- #: embedded/includes/footer-credit.php:116
1430
  #: includes/classes/class.wpcf.custom.fields.list.table.php:107
1431
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:99
1432
  #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:99
1433
  #: includes/classes/class.wpcf.user.fields.list.table.php:97
1434
  msgid "Yes"
1435
  msgstr ""
1436
 
1437
- #: embedded/includes/footer-credit.php:121
1438
  msgid "No, thanks"
1439
  msgstr ""
1440
 
1441
- #: embedded/includes/import-export.php:26
1442
- #: embedded/includes/module-manager.php:801
1443
- #: embedded/includes/module-manager.php:803 includes/import-export.php:363
1444
  msgid "Error parsing XML"
1445
  msgstr ""
1446
 
1447
- #: embedded/includes/import-export.php:66
1448
  msgid "Settings are updated."
1449
  msgstr ""
1450
 
1451
- #: embedded/includes/import-export.php:125
1452
- #: embedded/includes/import-export.php:134
1453
- #: embedded/includes/module-manager.php:870
1454
- #: embedded/includes/module-manager.php:884
1455
  msgid "Group \"%s\" update failed"
1456
  msgstr ""
1457
 
1458
- #: embedded/includes/import-export.php:129
1459
  msgid "Group \"%s\" updated"
1460
  msgstr ""
1461
 
1462
- #: embedded/includes/import-export.php:141
1463
- #: embedded/includes/module-manager.php:891
1464
  msgid "Group \"%s\" insert failed"
1465
  msgstr ""
1466
 
1467
- #: embedded/includes/import-export.php:145
1468
  msgid "Group \"%s\" added"
1469
  msgstr ""
1470
 
1471
- #: embedded/includes/import-export.php:159
1472
  msgid ""
1473
  "The Types settings were not fully imported because it contained unsecured "
1474
  "data. You should re-export your Types settings using the latest version of "
1475
  "Types"
1476
  msgstr ""
1477
 
1478
- #: embedded/includes/import-export.php:189
1479
- #: embedded/includes/import-export.php:208
1480
- #: embedded/includes/import-export.php:218
1481
  msgid "Group \"%s\" delete failed"
1482
  msgstr ""
1483
 
1484
- #: embedded/includes/import-export.php:194
1485
- #: embedded/includes/import-export.php:213
1486
  msgid "Group \"%s\" deleted"
1487
  msgstr ""
1488
 
1489
- #: embedded/includes/import-export.php:283
1490
  msgid "Field \"%s\" added/updated"
1491
  msgstr ""
1492
 
1493
- #: embedded/includes/import-export.php:294
1494
- #: embedded/includes/import-export.php:303
1495
  msgid "Field \"%s\" deleted"
1496
  msgstr ""
1497
 
1498
- #: embedded/includes/import-export.php:362
1499
- #: embedded/includes/import-export.php:371
1500
  msgid "User group \"%s\" update failed"
1501
  msgstr ""
1502
 
1503
- #: embedded/includes/import-export.php:366
1504
  msgid "User group \"%s\" updated"
1505
  msgstr ""
1506
 
1507
- #: embedded/includes/import-export.php:378
1508
  msgid "User group \"%s\" insert failed"
1509
  msgstr ""
1510
 
1511
- #: embedded/includes/import-export.php:382
1512
  msgid "User group \"%s\" added"
1513
  msgstr ""
1514
 
1515
- #: embedded/includes/import-export.php:413
1516
- #: embedded/includes/import-export.php:433
1517
- #: embedded/includes/import-export.php:443
1518
  msgid "User group \"%s\" delete failed"
1519
  msgstr ""
1520
 
1521
- #: embedded/includes/import-export.php:418
1522
- #: embedded/includes/import-export.php:438
1523
  msgid "User group \"%s\" deleted"
1524
  msgstr ""
1525
 
1526
- #: embedded/includes/import-export.php:504
1527
  msgid "User field \"%s\" added/updated"
1528
  msgstr ""
1529
 
1530
- #: embedded/includes/import-export.php:515
1531
- #: embedded/includes/import-export.php:525
1532
  msgid "User field \"%s\" deleted"
1533
  msgstr ""
1534
 
1535
- #: embedded/includes/import-export.php:570
1536
  msgid "Custom post type \"%s\" added/updated"
1537
  msgstr ""
1538
 
1539
- #: embedded/includes/import-export.php:579
1540
- #: embedded/includes/import-export.php:586
1541
  msgid "Custom post type \"%s\" deleted"
1542
  msgstr ""
1543
 
1544
- #: embedded/includes/import-export.php:631
1545
  msgid "Custom taxonomy \"%s\" added/updated"
1546
  msgstr ""
1547
 
1548
- #: embedded/includes/import-export.php:649
1549
- #: embedded/includes/import-export.php:656
1550
  msgid "Custom taxonomy \"%s\" deleted"
1551
  msgstr ""
1552
 
1553
- #: embedded/includes/import-export.php:677
1554
  msgid "Post relationships created"
1555
  msgstr ""
1556
 
1557
- #: embedded/includes/import-export.php:679
1558
  msgid ""
1559
  "Post relationships settings were not imported because it contained unsecured "
1560
  "data. You should re-export your Types settings using the latest version of "
1561
  "Types"
1562
  msgstr ""
1563
 
1564
- #: embedded/includes/module-manager.php:45
1565
- #: embedded/includes/module-manager.php:66
1566
- #: embedded/includes/module-manager.php:86
1567
  msgid "Module Manager"
1568
  msgstr ""
1569
 
1570
- #: embedded/includes/module-manager.php:159
1571
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:214
1572
- msgid "Post Types"
1573
  msgstr ""
1574
 
1575
- #: embedded/includes/module-manager.php:164
1576
  msgid "Field Groups"
1577
  msgstr ""
1578
 
1579
- #: embedded/includes/module-manager.php:174
1580
- #: includes/classes/class.wpcf.custom.fields.list.table.php:209
1581
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:215
1582
  msgid "Taxonomies"
1583
  msgstr ""
1584
 
1585
- #: embedded/includes/module-manager.php:185
1586
  msgid "%s custom post type: %s"
1587
  msgstr ""
1588
 
1589
- #: embedded/includes/module-manager.php:216
1590
  msgid "Error during Post Types import"
1591
  msgstr ""
1592
 
1593
- #: embedded/includes/module-manager.php:225
1594
- #: embedded/includes/module-manager.php:264
1595
  msgid "Fields group: %s"
1596
  msgstr ""
1597
 
1598
- #: embedded/includes/module-manager.php:254
1599
  msgid "Error during Field Groups import"
1600
  msgstr ""
1601
 
1602
- #: embedded/includes/module-manager.php:295
1603
  msgid "Error during Taxonomies import"
1604
  msgstr ""
1605
 
1606
- #: embedded/includes/module-manager.php:721
1607
  msgid "There is a problem with temporary directory."
1608
  msgstr ""
1609
 
1610
- #: embedded/includes/module-manager.php:873
1611
  msgid "Group %s update failed"
1612
  msgstr ""
1613
 
1614
- #: embedded/includes/module-manager.php:894
1615
  msgid "Group %s insert failed"
1616
  msgstr ""
1617
 
1618
- #: embedded/includes/module-manager.php:1159
1619
  msgid "Field: %s"
1620
  msgstr ""
1621
 
1622
- #: embedded/includes/post-relationship.php:36
1623
- msgid "Fields table"
 
1624
  msgstr ""
1625
 
1626
- #: embedded/includes/post-relationship.php:61
1627
  msgid "Are you sure about deleting this post?"
1628
  msgstr ""
1629
 
1630
- #: embedded/includes/post-relationship.php:63
1631
  msgid "If you continue without saving your changes, they might get lost."
1632
  msgstr ""
1633
 
1634
- #: embedded/includes/post-relationship.php:137
1635
  msgid "You will be able to manage child posts after saving this post."
1636
  msgstr ""
1637
 
1638
- #: embedded/includes/post-relationship.php:139
1639
  msgid "You will be able to add parent posts after saving this post."
1640
  msgstr ""
1641
 
1642
- #: embedded/includes/post-relationship.php:157
1643
  msgid "Go back"
1644
  msgstr ""
1645
 
1646
- #: embedded/includes/post-relationship.php:174
1647
  msgid ""
1648
  "You will be able to add child posts after saving at least one <b>%s</b>."
1649
  msgstr ""
1650
 
1651
- #: embedded/includes/post-relationship.php:179
1652
  msgid ""
1653
  "You will be able to edit child posts after saving at least one <b>%s</b>."
1654
  msgstr ""
1655
 
1656
- #: embedded/includes/post-relationship.php:242
1657
- msgid "This <i>%s</i> belongs to:"
1658
  msgstr ""
1659
 
1660
- #: embedded/includes/post-relationship.php:263
1661
  msgid "Post deleted"
1662
  msgstr ""
1663
 
1664
- #: embedded/includes/post-relationship.php:300
1665
- msgid "Not selected"
1666
  msgstr ""
1667
 
1668
- #: embedded/includes/post-relationship.php:385 includes/ajax.php:721
1669
- #: includes/import-export.php:402 includes/import-export.php:511
1670
- msgid "Update"
 
 
 
1671
  msgstr ""
1672
 
1673
- #: embedded/includes/post-relationship.php:406
1674
  msgid "Missing child post ID %d"
1675
  msgstr ""
1676
 
1677
- #: embedded/includes/post-relationship.php:416
1678
  msgid "Relationship do not exist %s -> %s"
1679
  msgstr ""
1680
 
1681
- #: embedded/includes/post-relationship.php:429
1682
  msgid "Missing parent post ID %d"
1683
  msgstr ""
1684
 
1685
- #: embedded/includes/post-relationship.php:435
1686
  msgid "Parent post ID %d is not type of %s"
1687
  msgstr ""
1688
 
1689
- #: embedded/includes/post-relationship.php:448
1690
  msgid "Post updated"
1691
  msgstr ""
1692
 
1693
- #: embedded/includes/post-relationship.php:502
1694
  msgid "Prev"
1695
  msgstr ""
1696
 
1697
- #: embedded/includes/post-relationship.php:529
1698
  msgid "Next"
1699
  msgstr ""
1700
 
1701
- #: embedded/includes/promo-tabs.php:45
 
 
 
 
 
1702
  msgid "Types is part of the entire toolbox"
1703
  msgstr ""
1704
 
1705
- #: embedded/includes/promo-tabs.php:51
1706
  msgid "Discover what you can build with WordPress"
1707
  msgstr ""
1708
 
1709
- #: embedded/includes/promo-tabs.php:58
1710
  msgid "Learn how to make your sites interactive"
1711
  msgstr ""
1712
 
1713
- #: embedded/includes/promo-tabs.php:65
1714
  msgid "Learn how to display custom content anyway you choose"
1715
  msgstr ""
1716
 
1717
- #: embedded/includes/promo-tabs.php:76
1718
  msgid ""
1719
  "Types lets you customize the WordPress admin, but you can do a lot more with "
1720
  "the entire package."
1721
  msgstr ""
1722
 
1723
- #: embedded/includes/promo-tabs.php:82
1724
  msgid "Views - display custom content anyway and anywhere you like"
1725
  msgstr ""
1726
 
1727
- #: embedded/includes/promo-tabs.php:87
1728
  msgid "CRED - build forms that create and edit WordPress content"
1729
  msgstr ""
1730
 
1731
- #: embedded/includes/promo-tabs.php:92
1732
  msgid "Access - control who can access different parts of the site"
1733
  msgstr ""
1734
 
1735
- #: embedded/includes/promo-tabs.php:100
1736
  msgid ""
1737
  "The complete framework lets you build powerful, flexible and interactive "
1738
  "WordPress sites."
1739
  msgstr ""
1740
 
1741
- #: embedded/includes/promo-tabs.php:106 embedded/includes/promo-tabs.php:108
1742
  msgid "Learn more"
1743
  msgstr ""
1744
 
1745
- #: embedded/includes/promo-tabs.php:109 embedded/includes/promo-tabs.php:172
1746
- #: embedded/includes/promo-tabs.php:197
1747
  msgid "Free Trial"
1748
  msgstr ""
1749
 
1750
- #: embedded/includes/promo-tabs.php:112 embedded/includes/promo-tabs.php:114
1751
- #: embedded/includes/promo-tabs.php:175 embedded/includes/promo-tabs.php:177
1752
- #: embedded/includes/promo-tabs.php:200 embedded/includes/promo-tabs.php:202
1753
  msgid "Pricing"
1754
  msgstr ""
1755
 
1756
- #: embedded/includes/promo-tabs.php:119
1757
  msgid ""
1758
  "You already know that WordPress can build a lot more than blogs, but just "
1759
  "how much more?"
1760
  msgstr ""
1761
 
1762
- #: embedded/includes/promo-tabs.php:125
1763
  msgid ""
1764
  "Learn how to build your own magazine designs, classifieds, listing, e-"
1765
  "commerce sites and more."
1766
  msgstr ""
1767
 
1768
- #: embedded/includes/promo-tabs.php:131
1769
  msgid ""
1770
  "Discover WP is a free online learning resource, where you can launch fully-"
1771
  "functional test sites and experiment with complete sites."
1772
  msgstr ""
1773
 
1774
- #: embedded/includes/promo-tabs.php:137 embedded/includes/promo-tabs.php:139
1775
  msgid "Get you FREE learning site"
1776
  msgstr ""
1777
 
1778
- #: embedded/includes/promo-tabs.php:146
1779
  msgid "Need to build sites, where visitors can create and edit content?"
1780
  msgstr ""
1781
 
1782
- #: embedded/includes/promo-tabs.php:152
1783
  msgid "Meet CRED, our content-forms editor!"
1784
  msgstr ""
1785
 
1786
- #: embedded/includes/promo-tabs.php:157
1787
  msgid ""
1788
  "CRED lets you build forms that work directly on WordPress content. CRED "
1789
  "forms include fields for standard fields, custom fields and taxonomy. "
1790
  "Everything that you can build with Types, CRED can edit."
1791
  msgstr ""
1792
 
1793
- #: embedded/includes/promo-tabs.php:163
1794
  msgid ""
1795
  "CRED is a lot more than a pretty forms plugin. It's a complete development "
1796
  "framework that lets you build powerful web applications with WordPress."
1797
  msgstr ""
1798
 
1799
- #: embedded/includes/promo-tabs.php:169 embedded/includes/promo-tabs.php:171
1800
  msgid "Meet CRED"
1801
  msgstr ""
1802
 
1803
- #: embedded/includes/promo-tabs.php:182
1804
  msgid ""
1805
  "Views is a powerful display engine, which lets you build WordPress sites "
1806
  "from within the admin dashboard."
1807
  msgstr ""
1808
 
1809
- #: embedded/includes/promo-tabs.php:188
1810
  msgid ""
1811
  "You can create templates for single pages, query content from the database "
1812
  "and display it with your design."
1813
  msgstr ""
1814
 
1815
- #: embedded/includes/promo-tabs.php:194 embedded/includes/promo-tabs.php:196
1816
  msgid "Meet Views"
1817
  msgstr ""
1818
 
1819
- #: embedded/includes/promo-tabs.php:213
1820
  msgid ""
1821
  "Already purchased our Toolset package? %sLog-in to wp-types.com%s to remove "
1822
  "this information box."
1823
  msgstr ""
1824
 
1825
- #: embedded/includes/promo-tabs.php:216
1826
  msgid ""
1827
  "Already purchased our Toolset package? Install our Installer plugin and "
1828
  "login to wp-types to remove this information box. %sInstructions &raquo;%s"
1829
  msgstr ""
1830
 
1831
- #: embedded/includes/relationship/child-table.php:35
1832
  msgid "Save All %s"
1833
  msgstr ""
1834
 
1835
- #: embedded/includes/relationship/child-table.php:57
1836
- #: includes/post-relationship.php:120
1837
  msgid ""
1838
  "Repeating fields should not be used in child posts. Types will update all "
1839
  "field values."
1840
  msgstr ""
1841
 
1842
- #: embedded/includes/relationship/child-table.php:86
1843
- #: plus/types-access/includes/admin-edit-access.php:717
1844
  msgid "Action"
1845
  msgstr ""
1846
 
@@ -1851,13 +1882,13 @@ msgstr ""
1851
 
1852
  #: embedded/includes/repetitive-fields-ordering.php:89
1853
  #: embedded/includes/repetitive-usermetafields-ordering.php:89
1854
- #: includes/classes/class.wpcf.custom.fields.list.table.php:152
1855
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:159
1856
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:158
1857
- #: includes/classes/class.wpcf.user.fields.list.table.php:142
1858
- #: includes/fields/checkboxes.php:152 includes/fields/radio.php:183
1859
- #: includes/fields/select.php:114 includes/fields-form.php:988
1860
- #: includes/fields-form.php:994
1861
  msgid "Are you sure?"
1862
  msgstr ""
1863
 
@@ -1866,94 +1897,85 @@ msgstr ""
1866
  msgid "Delete Field"
1867
  msgstr ""
1868
 
1869
- #: embedded/includes/usermeta-post.php:652
1870
  msgid "Time"
1871
  msgstr ""
1872
 
1873
- #: embedded/includes/wpml.php:1258 embedded/includes/wpml.php:1292
1874
  msgid ""
1875
  "<a href=\"%s\" target=\"_blank\">How to translate strings when default "
1876
  "language is not English</a>"
1877
  msgstr ""
1878
 
1879
- #: embedded/plugin.php:58
1880
  msgid ""
1881
- "WP Types Embedded was <strong>deactivated</strong>! You are already running "
1882
- "the complete WP Types plugin, so this one is not needed anymore."
1883
  msgstr ""
1884
 
1885
- #: embedded/usermeta-init.php:97
1886
- msgid "Edit Usermeta Group"
1887
- msgstr ""
1888
-
1889
- #: embedded/usermeta-init.php:99 embedded/usermeta-init.php:187
1890
- #: includes/classes/class.wpcf.user.fields.list.table.php:470
1891
- msgid "Add New Usermeta Group"
1892
- msgstr ""
1893
-
1894
- #: embedded/usermeta-init.php:105 includes/fields-form.php:384
1895
- #: includes/usermeta-form.php:353
1896
  msgid "Enter group title"
1897
  msgstr ""
1898
 
1899
- #: embedded/usermeta-init.php:107 includes/fields-form.php:398
1900
- #: includes/usermeta-form.php:367
1901
  msgid "Enter a description for this group"
1902
  msgstr ""
1903
 
1904
- #: embedded/usermeta-init.php:110 includes/fields-form.php:1058
1905
  msgid "Enter field name"
1906
  msgstr ""
1907
 
1908
- #: embedded/usermeta-init.php:114 includes/fields-form.php:1070
1909
  msgid "Enter field slug"
1910
  msgstr ""
1911
 
1912
- #: embedded/usermeta-init.php:118 includes/fields-form.php:1095
1913
  msgid "Describe this field"
1914
  msgstr ""
1915
 
1916
- #: embedded/usermeta-init.php:156
1917
  msgid "User Field"
1918
  msgstr ""
1919
 
1920
- #: embedded/usermeta-init.php:303
1921
  msgid "%s (Usermeta fields)"
1922
  msgstr ""
1923
 
1924
- #: embedded/usermeta-init.php:809 embedded/usermeta-init.php:851
1925
  msgid "User Meta Fields Frontend Access"
1926
  msgstr ""
1927
 
1928
- #: embedded/usermeta-init.php:819
1929
  msgid "View own fields in profile"
1930
  msgstr ""
1931
 
1932
- #: embedded/usermeta-init.php:821
1933
  msgid "Modify own fields"
1934
  msgstr ""
1935
 
1936
- #: embedded/usermeta-init.php:873
1937
  msgid "User Meta Fields Access"
1938
  msgstr ""
1939
 
1940
- #: embedded/usermeta-init.php:925
1941
  msgid "Post Custom Fields Frontend Access"
1942
  msgstr ""
1943
 
1944
- #: embedded/usermeta-init.php:933
1945
  msgid "View Fields In Edit Page"
1946
  msgstr ""
1947
 
1948
- #: embedded/usermeta-init.php:935
1949
  msgid "Modify Fields In Edit Page"
1950
  msgstr ""
1951
 
1952
- #: embedded/usermeta-init.php:963
1953
  msgid "Post Fields Frontend Access"
1954
  msgstr ""
1955
 
1956
- #: embedded/usermeta-init.php:983
1957
  msgid "Post Meta Fields Access"
1958
  msgstr ""
1959
 
@@ -1966,137 +1988,137 @@ msgid "Insert shortcode"
1966
  msgstr ""
1967
 
1968
  #: embedded/views/editor-modal-window.php:45
1969
- #: embedded/views/editor-modal-window.php:102
1970
  msgid "Styling"
1971
  msgstr ""
1972
 
1973
- #: embedded/views/editor-modal-window.php:47
1974
- #: embedded/views/editor-modal-window.php:125
1975
  msgid "Separator"
1976
  msgstr ""
1977
 
1978
- #: embedded/views/editor-modal-window.php:48
1979
  msgid "User"
1980
  msgstr ""
1981
 
1982
- #: embedded/views/editor-modal-window.php:49
1983
- #: embedded/views/editor-modal-window.php:209
1984
  msgid "Post selection"
1985
  msgstr ""
1986
 
1987
- #: embedded/views/editor-modal-window.php:53
1988
  msgid "Display this field without any formatting"
1989
  msgstr ""
1990
 
1991
- #: embedded/views/editor-modal-window.php:54
1992
  msgid "RAW mode"
1993
  msgstr ""
1994
 
1995
- #: embedded/views/editor-modal-window.php:54
1996
  msgid "When checked, displays raw data stored in database."
1997
  msgstr ""
1998
 
1999
- #: embedded/views/editor-modal-window.php:69
2000
  msgid ""
2001
  "RAW mode is selected. The field value will be displayed, without any "
2002
  "formatting."
2003
  msgstr ""
2004
 
2005
- #: embedded/views/editor-modal-window.php:80
2006
  msgid "Display the field for this user"
2007
  msgstr ""
2008
 
2009
- #: embedded/views/editor-modal-window.php:103
2010
  msgid ""
2011
  "You can style this field by applying a CSS class to it, or by entering the "
2012
  "CSS attributes that would appear with the HTML."
2013
  msgstr ""
2014
 
2015
- #: embedded/views/editor-modal-window.php:106
2016
  msgid "CSS class:"
2017
  msgstr ""
2018
 
2019
- #: embedded/views/editor-modal-window.php:108
2020
  msgid "enter your class names separated by a space (e.g. myclass1 myclass2)"
2021
  msgstr ""
2022
 
2023
- #: embedded/views/editor-modal-window.php:111
2024
  msgid "CSS style:"
2025
  msgstr ""
2026
 
2027
- #: embedded/views/editor-modal-window.php:114
2028
  msgid "Warning"
2029
  msgstr ""
2030
 
2031
- #: embedded/views/editor-modal-window.php:114
2032
  msgid "Style is not available for %s field"
2033
  msgstr ""
2034
 
2035
- #: embedded/views/editor-modal-window.php:116
2036
  msgid "enter the css for your inline style (e.g. color:red;font-weight:bold)"
2037
  msgstr ""
2038
 
2039
- #: embedded/views/editor-modal-window.php:127
2040
  msgid ""
2041
  "The separator will be displayed between each of your repeating field values"
2042
  msgstr ""
2043
 
2044
- #: embedded/views/editor-modal-window.php:133
2045
  msgid "Comma"
2046
  msgstr ""
2047
 
2048
- #: embedded/views/editor-modal-window.php:137
2049
  msgid "Space"
2050
  msgstr ""
2051
 
2052
- #: embedded/views/editor-modal-window.php:141
2053
  msgid "Non-breaking space"
2054
  msgstr ""
2055
 
2056
- #: embedded/views/editor-modal-window.php:145
2057
  msgid "Semicolon"
2058
  msgstr ""
2059
 
2060
- #: embedded/views/editor-modal-window.php:149
2061
  #: embedded/views/templates/editor-modal-date.tpl.php:47
2062
  msgid "Custom"
2063
  msgstr ""
2064
 
2065
- #: embedded/views/editor-modal-window.php:160
2066
  msgid "Display this field for:"
2067
  msgstr ""
2068
 
2069
- #: embedded/views/editor-modal-window.php:164
2070
  msgid "The current post being displayed either directly or in a View loop"
2071
  msgstr ""
2072
 
2073
- #: embedded/views/editor-modal-window.php:169
2074
  msgid "The parent of the current post (WordPress parent)"
2075
  msgstr ""
2076
 
2077
- #: embedded/views/editor-modal-window.php:175
2078
- #: embedded/views/editor-modal-window.php:188
2079
  msgid "The parent of this post, set by Types (parent/child relationship)"
2080
  msgstr ""
2081
 
2082
- #: embedded/views/editor-modal-window.php:193
2083
  msgid "Post type"
2084
  msgstr ""
2085
 
2086
- #: embedded/views/editor-modal-window.php:205
2087
  msgid "A specific post"
2088
  msgstr ""
2089
 
2090
- #: embedded/views/editor-modal-window.php:218
2091
  msgid "Output HTML"
2092
  msgstr ""
2093
 
2094
- #: embedded/views/editor-modal-window.php:222
2095
  msgid "Show name"
2096
  msgstr ""
2097
 
2098
  #: embedded/views/templates/child-tax-category.tpl.php:14
2099
- #: includes/custom-taxonomies-form.php:596
2100
  msgid "Most Used"
2101
  msgstr ""
2102
 
@@ -2105,12 +2127,12 @@ msgstr ""
2105
  msgid "+ %s"
2106
  msgstr ""
2107
 
2108
- #: embedded/views/templates/child-tax-tag.tpl.php:10
2109
  msgctxt "tag delimiter"
2110
  msgid ","
2111
  msgstr ""
2112
 
2113
- #: embedded/views/templates/child-tax-tag.tpl.php:28
2114
  #: plus/installer/templates/products-compact.php:77
2115
  msgid "Add"
2116
  msgstr ""
@@ -2144,8 +2166,8 @@ msgstr ""
2144
  #: embedded/views/templates/editor-modal-checkbox.tpl.php:28
2145
  #: embedded/views/templates/editor-modal-checkboxes.tpl.php:27
2146
  #: embedded/views/templates/editor-modal-radio.tpl.php:28
2147
- #: includes/fields/checkbox.php:101 includes/fields/checkboxes.php:202
2148
- #: includes/fields/radio.php:117
2149
  msgid "Display the value of this field from the database"
2150
  msgstr ""
2151
 
@@ -2156,25 +2178,25 @@ msgstr ""
2156
 
2157
  #: embedded/views/templates/editor-modal-checkbox.tpl.php:36
2158
  #: embedded/views/templates/editor-modal-checkboxes.tpl.php:44
2159
- #: includes/fields/checkbox.php:128 includes/fields/checkboxes.php:229
2160
  msgid "Selected:"
2161
  msgstr ""
2162
 
2163
  #: embedded/views/templates/editor-modal-checkbox.tpl.php:37
2164
  #: embedded/views/templates/editor-modal-checkboxes.tpl.php:45
2165
- #: includes/fields/checkbox.php:132 includes/fields/checkboxes.php:233
2166
  msgid "Enter selected value"
2167
  msgstr ""
2168
 
2169
  #: embedded/views/templates/editor-modal-checkbox.tpl.php:40
2170
  #: embedded/views/templates/editor-modal-checkboxes.tpl.php:48
2171
- #: includes/fields/checkbox.php:118 includes/fields/checkboxes.php:219
2172
  msgid "Not selected:"
2173
  msgstr ""
2174
 
2175
  #: embedded/views/templates/editor-modal-checkbox.tpl.php:41
2176
  #: embedded/views/templates/editor-modal-checkboxes.tpl.php:49
2177
- #: includes/fields/checkbox.php:123 includes/fields/checkboxes.php:224
2178
  msgid "Enter not selected value"
2179
  msgstr ""
2180
 
@@ -2196,8 +2218,8 @@ msgstr ""
2196
 
2197
  #: embedded/views/templates/editor-modal-email.tpl.php:26
2198
  #: embedded/views/templates/editor-modal-url.tpl.php:28
2199
- #: includes/custom-types-form.php:983 includes/fields/checkboxes.php:165
2200
- #: includes/fields/radio.php:175 includes/fields/select.php:106
2201
  msgid "Title"
2202
  msgstr ""
2203
 
@@ -2222,69 +2244,69 @@ msgid ""
2222
  "that you upload. To change, go to the %sTypes settings page%s."
2223
  msgstr ""
2224
 
2225
- #: embedded/views/templates/editor-modal-image.tpl.php:49
2226
  msgid "Image title"
2227
  msgstr ""
2228
 
2229
- #: embedded/views/templates/editor-modal-image.tpl.php:53
2230
  msgid "Alternative text"
2231
  msgstr ""
2232
 
2233
- #: embedded/views/templates/editor-modal-image.tpl.php:59
2234
  msgid "Position and size"
2235
  msgstr ""
2236
 
 
2237
  #: embedded/views/templates/editor-modal-image.tpl.php:61
2238
- #: embedded/views/templates/editor-modal-image.tpl.php:62
2239
  msgid "Alignment"
2240
  msgstr ""
2241
 
 
2242
  #: embedded/views/templates/editor-modal-image.tpl.php:74
2243
- #: embedded/views/templates/editor-modal-image.tpl.php:75
2244
  msgid "Pre-defined sizes"
2245
  msgstr ""
2246
 
2247
- #: embedded/views/templates/editor-modal-image.tpl.php:86
2248
  msgid "Image resize disabled"
2249
  msgstr ""
2250
 
2251
- #: embedded/views/templates/editor-modal-image.tpl.php:104
2252
  msgid ""
2253
  "If images have a different aspect ratio than the display size, what would "
2254
  "you like to do?"
2255
  msgstr ""
2256
 
2257
- #: embedded/views/templates/editor-modal-image.tpl.php:106
2258
  msgid "Keep proportional"
2259
  msgstr ""
2260
 
2261
- #: embedded/views/templates/editor-modal-image.tpl.php:112
2262
  msgid ""
2263
  "Resize images to fit inside the new size. Width or height might be smaller "
2264
  "than the specified dimensions."
2265
  msgstr ""
2266
 
2267
- #: embedded/views/templates/editor-modal-image.tpl.php:116
2268
  msgid "Pad images, so that they fill the specified dimensions exactly."
2269
  msgstr ""
2270
 
2271
- #: embedded/views/templates/editor-modal-image.tpl.php:119
2272
  msgid "Transparent"
2273
  msgstr ""
2274
 
2275
- #: embedded/views/templates/editor-modal-image.tpl.php:123
2276
  msgid "Padding color"
2277
  msgstr ""
2278
 
2279
- #: embedded/views/templates/editor-modal-image.tpl.php:128
2280
  msgid "Crop images, so that they fill the specified dimensions exactly."
2281
  msgstr ""
2282
 
2283
- #: embedded/views/templates/editor-modal-image.tpl.php:135
2284
  msgid "Output only the URL of the re-sized image instead of the img tag"
2285
  msgstr ""
2286
 
2287
- #: embedded/views/templates/editor-modal-image.tpl.php:139
2288
  msgid "Onload callback"
2289
  msgstr ""
2290
 
@@ -2301,7 +2323,7 @@ msgid "e.g. Value of FIELD_NAME is FIELD_VALUE"
2301
  msgstr ""
2302
 
2303
  #: embedded/views/templates/editor-modal-radio.tpl.php:32
2304
- #: includes/fields/radio.php:125
2305
  msgid "Show one of these values:"
2306
  msgstr ""
2307
 
@@ -2327,184 +2349,314 @@ msgid ""
2327
  "media plays."
2328
  msgstr ""
2329
 
2330
- #: help.php:25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2331
  msgid ""
2332
  "Types plugin organizes custom fields in groups. Once you create a group, you "
2333
  "can add the fields to it and control to what content it belongs."
2334
  msgstr ""
2335
 
2336
- #: help.php:28
2337
  msgid "You can read more about Custom Fields in this tutorial: %s."
2338
  msgstr ""
2339
 
2340
- #: help.php:32
2341
  msgid ""
2342
  "On this page you can see your current custom field groups, as well as "
2343
  "information about which post types and taxonomies they are attached to, and "
2344
  "whether they are active or not."
2345
  msgstr ""
2346
 
2347
- #: help.php:35
2348
  msgid "You have the following options:"
2349
  msgstr ""
2350
 
2351
- #: help.php:37
2352
  msgid ""
2353
- "<strong>Add a Custom Fields Group:</strong> Use this to add a new custom "
2354
- "fields group which can be attached to a post type"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2355
  msgstr ""
2356
 
2357
  #: help.php:40
2358
- msgid "<strong>Edit:</strong> Click to edit the custom field group"
2359
  msgstr ""
2360
 
2361
- #: help.php:43
2362
- msgid ""
2363
- "<strong>Deactivate:</strong> Click to deactivate a custom field group (this "
2364
- "can be re-activated at a later date)"
 
 
 
 
2365
  msgstr ""
2366
 
2367
- #: help.php:46
2368
  msgid ""
2369
- "<strong>Delete Permanently:</strong> Click to delete a custom field group. "
2370
- "<strong>Warning: This cannot be undone.</strong>"
2371
  msgstr ""
2372
 
2373
- #: help.php:53 includes/custom-types-taxonomies-list.php:13
2374
- msgid ""
2375
- "Custom Post Types are user-defined content types. Custom Taxonomies are used "
2376
- "to categorize your content."
 
 
 
 
 
 
 
 
 
 
2377
  msgstr ""
2378
 
2379
- #: help.php:55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2380
  msgid ""
2381
- "You can read more about Custom Post Types and Taxonomies in this tutorial. %s"
 
2382
  msgstr ""
2383
 
2384
- #: help.php:58 help.php:85
2385
  msgid ""
2386
- "This is the main admin page for your Custom Post Types and Taxonomies. It "
2387
- "provides you with an overview of your data."
2388
  msgstr ""
2389
 
2390
- #: help.php:61 help.php:88
2391
  msgid "On this page you have the following options:"
2392
  msgstr ""
2393
 
2394
- #: help.php:63
2395
- msgid ""
2396
- "<strong>Add Custom Post Type:</strong> Use to create a new Custom Post Type"
2397
  msgstr ""
2398
 
2399
- #: help.php:66
2400
- msgid ""
2401
- "<strong>Add Custom Taxonomy:</strong> Use to create a new Custom Taxonomy"
2402
  msgstr ""
2403
 
2404
- #: help.php:69
2405
  msgid ""
2406
- "<strong>Edit:</strong> Click to edit the settings of a Custom Post Type or "
2407
- "Taxonomy"
 
 
 
 
 
 
 
 
 
 
2408
  msgstr ""
2409
 
2410
- #: help.php:72
 
 
 
 
2411
  msgid ""
2412
- "<strong>Deactivate:</strong> Click to deactivate a Custom Post Type or "
2413
- "Taxonomy (this can be reactivated at a later date)"
 
 
 
 
 
 
 
 
 
 
 
 
2414
  msgstr ""
2415
 
2416
- #: help.php:75
2417
  msgid ""
2418
- "<strong>Delete:</strong> Click to delete a Custom Post Type or Taxonomy. "
2419
- "<strong> Warning: This cannot be undone</strong> "
 
 
 
 
2420
  msgstr ""
2421
 
2422
- #: help.php:82
 
 
 
 
2423
  msgid ""
2424
  "Use this page to import and export custom post types, taxonomies and custom "
2425
  "fields to and from Types."
2426
  msgstr ""
2427
 
2428
- #: help.php:89 includes/import-export.php:188
2429
- msgid "Import"
2430
  msgstr ""
2431
 
2432
- #: help.php:91
2433
- msgid ""
2434
- "<strong>Step 1:</strong> Upload an XML file or paste XML content directly "
2435
- "into the text area."
 
 
 
 
 
 
2436
  msgstr ""
2437
 
2438
- #: help.php:94
2439
  msgid ""
2440
- "<strong>Step 2:</strong> Select which custom post types, taxonomies and "
2441
- "custom fields should be imported."
 
 
 
 
2442
  msgstr ""
2443
 
2444
- #: help.php:97 includes/import-export.php:213
 
 
 
 
2445
  msgid "Export"
2446
  msgstr ""
2447
 
2448
- #: help.php:98
2449
  msgid "Click Export to export data from Types as an XML file."
2450
  msgstr ""
2451
 
2452
- #: help.php:104
2453
  msgid "This is the edit page for your Custom Fields Groups."
2454
  msgstr ""
2455
 
2456
- #: help.php:107
2457
  msgid "You can read more about creating a Custom Fields Group here: %s"
2458
  msgstr ""
2459
 
2460
- #: help.php:110
2461
  msgid ""
2462
  "On this page you can create and edit your groups. To create a group, do the "
2463
  "following:"
2464
  msgstr ""
2465
 
2466
- #: help.php:113
2467
  msgid "Add a Title"
2468
  msgstr ""
2469
 
2470
- #: help.php:115
2471
  msgid ""
2472
  "Choose where to display your group. You can attach this to both default "
2473
  "WordPress post types and Custom Post Types. (nb: you can also associate "
2474
  "taxonomy terms with Custom Field Groups)"
2475
  msgstr ""
2476
 
2477
- #: help.php:118
2478
  msgid ""
2479
  "To add a field click on the field you desire under “Available Fields” on the "
2480
- "right hand side of your screen. This will be added to your Custom Field Group"
2481
  msgstr ""
2482
 
2483
- #: help.php:121
2484
  msgid "Add information about your Custom Field"
2485
  msgstr ""
2486
 
2487
- #: help.php:123
2488
  msgid "Tips"
2489
  msgstr ""
2490
 
2491
- #: help.php:125
2492
  msgid ""
2493
  "To ensure a user completes a field, check the box for validation required"
2494
  msgstr ""
2495
 
2496
- #: help.php:128
2497
  msgid ""
2498
  "Once you have created a field it will be saved for future use under \"User "
2499
  "created fields\""
2500
  msgstr ""
2501
 
2502
- #: help.php:131
2503
  msgid ""
2504
  "You can drag and drop the order of your custom fields using the blue icon"
2505
  msgstr ""
2506
 
2507
- #: help.php:138
2508
  msgid ""
2509
  "Use this page to create a WordPress post type. If you’d like to learn more "
2510
  "about Custom Post Types you can read our detailed guide: <a href=\"http://wp-"
@@ -2515,28 +2667,28 @@ msgid ""
2515
  "type/ &raquo;</a>"
2516
  msgstr ""
2517
 
2518
- #: help.php:141 help.php:183
2519
  msgid "Name and Description"
2520
  msgstr ""
2521
 
2522
- #: help.php:143
2523
  msgid ""
2524
  "Add a singular and plural name for your post type. You should also add a "
2525
  "slug. This will be created from the post type name if none is added."
2526
  msgstr ""
2527
 
2528
- #: help.php:146 help.php:188 includes/custom-taxonomies-form.php:472
2529
- #: includes/custom-types-form.php:811
2530
  msgid "Visibility"
2531
  msgstr ""
2532
 
2533
- #: help.php:148 help.php:190
2534
  msgid ""
2535
  "Determine whether your post type will be visible on the admin menu to your "
2536
  "users."
2537
  msgstr ""
2538
 
2539
- #: help.php:151
2540
  msgid ""
2541
  "You can also adjust the menu position. The default position is 20, which "
2542
  "means your post type will appear under “Pages”. You can find more "
@@ -2546,26 +2698,26 @@ msgid ""
2546
  "register_post_type#Parameters</a>"
2547
  msgstr ""
2548
 
2549
- #: help.php:154
2550
  msgid ""
2551
  "The default post type icon is the pushpin icon that appears beside WordPress "
2552
  "posts. You can change this by adding your own icon of 16px x 16px."
2553
  msgstr ""
2554
 
2555
- #: help.php:157 includes/custom-types-form.php:883
2556
  msgid "Select Taxonomies"
2557
  msgstr ""
2558
 
2559
- #: help.php:159
2560
  msgid "Choose which taxonomies are to be associated with this post type."
2561
  msgstr ""
2562
 
2563
- #: help.php:162 help.php:198 includes/custom-taxonomies-form.php:606
2564
- #: includes/custom-types-form.php:903
2565
  msgid "Labels"
2566
  msgstr ""
2567
 
2568
- #: help.php:164 help.php:200
2569
  msgid ""
2570
  "Labels are the text that is attached to your custom post type name. Examples "
2571
  "of them in use are “Add New Post” (where “Add New” is the label”) and “Edit "
@@ -2573,25 +2725,25 @@ msgid ""
2573
  "suffice."
2574
  msgstr ""
2575
 
2576
- #: help.php:167 includes/custom-types-form.php:978
2577
  msgid "Custom Post Properites"
2578
  msgstr ""
2579
 
2580
- #: help.php:169 help.php:205
2581
  msgid "Choose which sections to display on your “Add New” page."
2582
  msgstr ""
2583
 
2584
- #: help.php:172 help.php:208
2585
  msgid "Advanced Settings"
2586
  msgstr ""
2587
 
2588
- #: help.php:174 help.php:210
2589
  msgid ""
2590
  "Advanced settings give you even more control over your custom post type. You "
2591
  "can read in detail what all of these settings do on our tutorial."
2592
  msgstr ""
2593
 
2594
- #: help.php:180
2595
  msgid ""
2596
  "You can use Custom Taxonomies to categorize your content. Read more about "
2597
  "what they are on our website: <a href=\"http://wp-types.com/learn/custom-"
@@ -2601,195 +2753,417 @@ msgid ""
2601
  "\">http://wp-types.com/user-guides/create-custom-taxonomies/</a>"
2602
  msgstr ""
2603
 
2604
- #: help.php:185
2605
  msgid ""
2606
  "Add a singular and plural name for your taxonomy. You should also add a "
2607
  "slug. This will be created from the taxonomy name if none is added."
2608
  msgstr ""
2609
 
2610
- #: help.php:193 includes/custom-taxonomies-form.php:516
 
 
 
 
 
 
2611
  msgid "Select Post Types"
2612
  msgstr ""
2613
 
2614
- #: help.php:195
2615
  msgid "Choose which post types this taxonomy should be associated with."
2616
  msgstr ""
2617
 
2618
- #: help.php:203
2619
- msgid "Display Sections"
 
 
 
 
2620
  msgstr ""
2621
 
2622
- #: includes/ajax.php:60 includes/ajax.php:138
2623
- msgid "Group deactivated"
 
 
2624
  msgstr ""
2625
 
2626
- #: includes/ajax.php:66 includes/ajax.php:84 includes/ajax.php:144
2627
- #: includes/ajax.php:161 includes/ajax.php:196 includes/ajax.php:219
2628
- #: includes/ajax.php:341 includes/ajax.php:412 includes/ajax.php:435
2629
- #: includes/ajax.php:458 includes/ajax.php:652 includes/ajax.php:658
2630
- #: includes/ajax.php:738
2631
- msgid "Error occured"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2632
  msgstr ""
2633
 
2634
- #: includes/ajax.php:78 includes/ajax.php:155
 
 
 
 
2635
  msgid "Group activated"
2636
  msgstr ""
2637
 
2638
- #: includes/ajax.php:190
2639
  msgid "Post type deactivated"
2640
  msgstr ""
2641
 
2642
- #: includes/ajax.php:213
2643
  msgid "Post type activated"
2644
  msgstr ""
2645
 
2646
- #: includes/ajax.php:429
2647
  msgid "Taxonomy deactivated"
2648
  msgstr ""
2649
 
2650
- #: includes/ajax.php:452
2651
  msgid "Taxonomy activated"
2652
  msgstr ""
2653
 
2654
- #: includes/ajax.php:551 includes/ajax.php:555
2655
- msgid "No post types associated"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2656
  msgstr ""
2657
 
2658
- #: includes/ajax.php:586 includes/ajax.php:590
2659
- msgid "No taxonomies associated"
2660
  msgstr ""
2661
 
2662
- #: includes/ajax.php:686
2663
- msgid ""
2664
- "Migration process is not yet finished - please save group first, then change "
2665
- "settings of this field."
2666
  msgstr ""
2667
 
2668
- #: includes/ajax.php:695
2669
- msgid "%d users require update"
2670
  msgstr ""
2671
 
2672
- #: includes/ajax.php:696
2673
- msgid "%d posts require update"
2674
  msgstr ""
2675
 
2676
- #: includes/ajax.php:697
2677
- msgid "No users require update"
2678
  msgstr ""
2679
 
2680
- #: includes/ajax.php:697
2681
- msgid "No posts require update"
2682
  msgstr ""
2683
 
2684
- #: includes/ajax.php:698
2685
- msgid "Users updated"
2686
  msgstr ""
2687
 
2688
- #: includes/ajax.php:698
2689
- msgid "Posts updated"
2690
  msgstr ""
2691
 
2692
- #: includes/classes/class.wpcf.custom.fields.list.table.php:88
2693
- msgid "All post types"
2694
  msgstr ""
2695
 
2696
- #: includes/classes/class.wpcf.custom.fields.list.table.php:107
2697
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:99
2698
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:99
2699
- #: includes/classes/class.wpcf.user.fields.list.table.php:97
2700
- msgid "No"
2701
  msgstr ""
2702
 
2703
- #: includes/classes/class.wpcf.custom.fields.list.table.php:205
2704
- #: includes/classes/class.wpcf.user.fields.list.table.php:195
2705
- msgid "Group Name"
2706
  msgstr ""
2707
 
2708
- #: includes/classes/class.wpcf.custom.fields.list.table.php:207
2709
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:214
2710
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:213
2711
- #: includes/classes/class.wpcf.user.fields.list.table.php:197
2712
- msgid "Active"
2713
  msgstr ""
2714
 
2715
- #: includes/classes/class.wpcf.custom.fields.list.table.php:208
2716
- #: plus/types-access/includes/admin-edit-access.php:55
2717
- msgid "Post types"
2718
  msgstr ""
2719
 
2720
- #: includes/classes/class.wpcf.custom.fields.list.table.php:255
2721
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:261
2722
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:260
2723
- #: includes/classes/class.wpcf.user.fields.list.table.php:244
2724
- #: includes/custom-taxonomies.php:21 includes/custom-types.php:21
2725
- #: includes/fields.php:669 includes/usermeta.php:19
2726
- #: plus/installer/templates/downloads-list-compact.php:12
2727
- msgid "Activate"
2728
  msgstr ""
2729
 
2730
- #: includes/classes/class.wpcf.custom.fields.list.table.php:256
2731
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:262
2732
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:261
2733
- #: includes/classes/class.wpcf.user.fields.list.table.php:245
2734
- #: includes/custom-taxonomies.php:38 includes/custom-types.php:37
2735
- #: includes/fields.php:684 includes/usermeta.php:33
2736
- msgid "Deactivate"
2737
  msgstr ""
2738
 
2739
- #: includes/classes/class.wpcf.custom.fields.list.table.php:257
2740
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:263
2741
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:262
2742
- msgid "Delete permanently"
2743
  msgstr ""
2744
 
2745
- #: includes/classes/class.wpcf.custom.fields.list.table.php:482
2746
- msgid "No custom field groups found."
2747
  msgstr ""
2748
 
2749
- #: includes/classes/class.wpcf.custom.fields.list.table.php:487
2750
- msgid "To use custom fields, please create a group to hold them."
2751
  msgstr ""
2752
 
2753
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:148
2754
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:147
2755
- msgid "Duplicate"
2756
  msgstr ""
2757
 
2758
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:212
2759
- msgid "Post Type Name"
2760
  msgstr ""
2761
 
2762
- #: includes/classes/class.wpcf.custom.post.types.list.table.php:501
2763
- msgid "No custom post types found."
2764
  msgstr ""
2765
 
2766
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:211
2767
- msgid "Taxonomy Name"
2768
  msgstr ""
2769
 
2770
- #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:498
2771
- msgid "No custom taxonomies found."
2772
  msgstr ""
2773
 
2774
  #: includes/classes/class.wpcf.user.fields.list.table.php:89
2775
- #: includes/usermeta-form.php:422
2776
  msgid "This groups visibility is also controlled by the Access plugin."
2777
  msgstr ""
2778
 
2779
  #: includes/classes/class.wpcf.user.fields.list.table.php:93
2780
- #: includes/usermeta-form.php:393 includes/usermeta-form.php:414
2781
  msgid "Displayed for all users roles"
2782
  msgstr ""
2783
 
2784
- #: includes/classes/class.wpcf.user.fields.list.table.php:198
2785
  msgid "Available for"
2786
  msgstr ""
2787
 
2788
- #: includes/classes/class.wpcf.user.fields.list.table.php:455
2789
  msgid "No user field groups found."
2790
  msgstr ""
2791
 
2792
- #: includes/classes/class.wpcf.user.fields.list.table.php:460
2793
  msgid ""
2794
  "User Fields, also known as user-meta, are additional fields that belong to "
2795
  "user profiles."
@@ -2799,907 +3173,942 @@ msgstr ""
2799
  msgid "Click to toggle"
2800
  msgstr ""
2801
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2802
  #: includes/conditional-display.php:40
2803
  msgid ""
2804
  "You will be able to set conditional field display once this group is saved."
2805
  msgstr ""
2806
 
2807
- #: includes/conditional-display.php:151
2808
  msgid "Conditional display"
2809
  msgstr ""
2810
 
2811
- #: includes/conditional-display.php:159 includes/conditional-display.php:160
2812
  msgid "custom logic"
2813
  msgstr ""
2814
 
2815
- #: includes/conditional-display.php:164
2816
  msgid "Data-dependent display filters %s"
2817
  msgstr ""
2818
 
2819
- #: includes/conditional-display.php:166
2820
  msgid ""
2821
  "Specify additional filters that control this group's display, based on "
2822
  "values of custom fields."
2823
  msgstr ""
2824
 
2825
- #: includes/conditional-display.php:187
2826
  msgid "Conditional display is not supported yet for Usermeta fields."
2827
  msgstr ""
2828
 
2829
- #: includes/conditional-display.php:210
2830
  msgid "Add condition"
2831
  msgstr ""
2832
 
2833
- #: includes/conditional-display.php:270
2834
  msgid "Go back to simple logic"
2835
  msgstr ""
2836
 
2837
- #: includes/conditional-display.php:271
2838
  msgid "Customize the display logic"
2839
  msgstr ""
2840
 
2841
- #: includes/conditional-display.php:286
2842
  msgid "Customize conditions"
2843
  msgstr ""
2844
 
2845
- #: includes/conditional-display.php:294
2846
  msgid "%sDates can be entered using the date filters &raquo;%s"
2847
  msgstr ""
2848
 
2849
- #: includes/conditional-display.php:319 includes/fields-form.php:1422
2850
- #: includes/fields-form.php:1522
2851
  #: plus/installer/templates/repository-listing.php:26
2852
- #: plus/types-access/includes/admin-edit-access.php:838
2853
- #: plus/types-access/includes/admin-edit-access.php:868
2854
  msgid "OK"
2855
  msgstr ""
2856
 
2857
- #: includes/conditional-display.php:439
2858
  msgid ""
2859
  "Conditional display is only working based on non-repeating fields. All "
2860
  "fields in this group are repeating, so you cannot set their display based on "
2861
  "other fields."
2862
  msgstr ""
2863
 
2864
- #: includes/conditional-display.php:448
2865
  msgid ""
2866
  "You will be able to set conditional field display when you save more fields."
2867
  msgstr ""
2868
 
2869
- #: includes/conditional-display.php:511
2870
  msgid "Remove condition"
2871
  msgstr ""
2872
 
2873
- #: includes/conditional-display.php:609
2874
  msgid "%1$s%2$s, %3$s"
2875
  msgstr ""
2876
 
2877
- #: includes/conditional-display.php:611
2878
  msgid "Please enter a valid date here"
2879
  msgstr ""
2880
 
2881
- #: includes/custom-taxonomies-form.php:42
2882
  msgid "Wrong custom taxonomy specified"
2883
  msgstr ""
2884
 
2885
- #: includes/custom-taxonomies-form.php:98 includes/custom-types-form.php:118
2886
  msgid "Name and description"
2887
  msgstr ""
2888
 
2889
- #: includes/custom-taxonomies-form.php:106
2890
  msgid "Custom taxonomy name plural"
2891
  msgstr ""
2892
 
2893
- #: includes/custom-taxonomies-form.php:106
2894
- #: includes/custom-taxonomies-form.php:123
2895
- #: includes/custom-taxonomies-form.php:159 includes/custom-types-form.php:125
2896
- #: includes/custom-types-form.php:145 includes/custom-types-form.php:180
2897
  msgid "required"
2898
  msgstr ""
2899
 
2900
- #: includes/custom-taxonomies-form.php:107 includes/custom-types-form.php:127
2901
  msgid "Enter in plural!"
2902
  msgstr ""
2903
 
2904
- #: includes/custom-taxonomies-form.php:117
2905
  msgid "Enter custom taxonomy name plural"
2906
  msgstr ""
2907
 
2908
- #: includes/custom-taxonomies-form.php:123
2909
  msgid "Custom taxonomy name singular"
2910
  msgstr ""
2911
 
2912
- #: includes/custom-taxonomies-form.php:125
2913
- #: includes/custom-taxonomies-form.php:160 includes/custom-types-form.php:147
2914
  msgid "Enter in singular!"
2915
  msgstr ""
2916
 
2917
- #: includes/custom-taxonomies-form.php:136
2918
  msgid "Enter custom taxonomy name singular"
2919
  msgstr ""
2920
 
2921
- #: includes/custom-taxonomies-form.php:159 includes/custom-types-form.php:180
2922
- msgid "Slug"
2923
- msgstr ""
2924
-
2925
- #: includes/custom-taxonomies-form.php:161
2926
  msgid "Machine readable name."
2927
  msgstr ""
2928
 
2929
- #: includes/custom-taxonomies-form.php:162
2930
  msgid "If not provided - will be created from singular name."
2931
  msgstr ""
2932
 
2933
- #: includes/custom-taxonomies-form.php:174
2934
  msgid "Enter custom taxonomy slug"
2935
  msgstr ""
2936
 
2937
- #: includes/custom-taxonomies-form.php:186
2938
  msgid "Enter custom taxonomy description"
2939
  msgstr ""
2940
 
2941
- #: includes/custom-taxonomies-form.php:350
2942
  msgid "Please set taxonomy name"
2943
  msgstr ""
2944
 
2945
- #: includes/custom-taxonomies-form.php:370
2946
  msgid "Custom taxonomy do not exist"
2947
  msgstr ""
2948
 
2949
- #: includes/custom-taxonomies-form.php:376
2950
  msgid "Custom taxonomy already exists"
2951
  msgstr ""
2952
 
2953
- #: includes/custom-taxonomies-form.php:383
2954
  msgid "Taxonomy already exists"
2955
  msgstr ""
2956
 
2957
- #: includes/custom-taxonomies-form.php:432
2958
  msgid "Custom taxonomy saved"
2959
  msgstr ""
2960
 
2961
- #: includes/custom-taxonomies-form.php:462
2962
  msgid "Save Custom Taxonomy"
2963
  msgstr ""
2964
 
2965
- #: includes/custom-taxonomies-form.php:477
2966
  msgid "Make this taxonomy public (will appear in the WordPress Admin menu)"
2967
  msgstr ""
2968
 
2969
- #: includes/custom-taxonomies-form.php:478
2970
  msgid "Hidden - users cannot directly edit data in this taxonomy"
2971
  msgstr ""
2972
 
2973
- #: includes/custom-taxonomies-form.php:520
2974
  msgid "Registered post types that will be used with this taxonomy."
2975
  msgstr ""
2976
 
2977
- #: includes/custom-taxonomies-form.php:539 includes/custom-types-form.php:932
2978
  msgid "Search %s"
2979
  msgstr ""
2980
 
2981
- #: includes/custom-taxonomies-form.php:540
2982
  msgid ""
2983
  "The search items text. Default is __( 'Search Tags' ) or __( 'Search "
2984
  "Categories' )."
2985
  msgstr ""
2986
 
2987
- #: includes/custom-taxonomies-form.php:541 includes/custom-types-form.php:934
2988
  msgid "Search Items"
2989
  msgstr ""
2990
 
2991
- #: includes/custom-taxonomies-form.php:544
2992
  msgid "Popular %s"
2993
  msgstr ""
2994
 
2995
- #: includes/custom-taxonomies-form.php:545
2996
  msgid "The popular items text. Default is __( 'Popular Tags' ) or null."
2997
  msgstr ""
2998
 
2999
- #: includes/custom-taxonomies-form.php:546
3000
  msgid "Popular Items"
3001
  msgstr ""
3002
 
3003
- #: includes/custom-taxonomies-form.php:549
3004
  msgid "All %s"
3005
  msgstr ""
3006
 
3007
- #: includes/custom-taxonomies-form.php:550
3008
  msgid ""
3009
  "The all items text. Default is __( 'All Tags' ) or __( 'All Categories' )."
3010
  msgstr ""
3011
 
3012
- #: includes/custom-taxonomies-form.php:551 includes/custom-types-form.php:954
3013
  msgid "All Items"
3014
  msgstr ""
3015
 
3016
- #: includes/custom-taxonomies-form.php:554
3017
  msgid "Parent %s"
3018
  msgstr ""
3019
 
3020
- #: includes/custom-taxonomies-form.php:555
3021
  msgid ""
3022
  "The parent item text. This string is not used on non-hierarchical taxonomies "
3023
  "such as post tags. Default is null or __( 'Parent Category' )."
3024
  msgstr ""
3025
 
3026
- #: includes/custom-taxonomies-form.php:556
3027
  msgid "Parent Item"
3028
  msgstr ""
3029
 
3030
- #: includes/custom-taxonomies-form.php:559
3031
  msgid "Parent %s:"
3032
  msgstr ""
3033
 
3034
- #: includes/custom-taxonomies-form.php:560
3035
  msgid ""
3036
  "The same as parent_item, but with colon : in the end null, __( 'Parent "
3037
  "Category:' )."
3038
  msgstr ""
3039
 
3040
- #: includes/custom-taxonomies-form.php:561
3041
  msgid "Parent Item with colon"
3042
  msgstr ""
3043
 
3044
- #: includes/custom-taxonomies-form.php:564 includes/custom-types-form.php:916
3045
  msgid "Edit %s"
3046
  msgstr ""
3047
 
3048
- #: includes/custom-taxonomies-form.php:565
3049
  msgid ""
3050
  "The edit item text. Default is __( 'Edit Tag' ) or __( 'Edit Category' )."
3051
  msgstr ""
3052
 
3053
- #: includes/custom-taxonomies-form.php:566 includes/custom-types-form.php:919
3054
  msgid "Edit Item"
3055
  msgstr ""
3056
 
3057
- #: includes/custom-taxonomies-form.php:570
3058
  msgid ""
3059
  "The update item text. Default is __( 'Update Tag' ) or __( 'Update "
3060
  "Category' )."
3061
  msgstr ""
3062
 
3063
- #: includes/custom-taxonomies-form.php:571
3064
  msgid "Update Item"
3065
  msgstr ""
3066
 
3067
- #: includes/custom-taxonomies-form.php:574 includes/custom-types-form.php:911
3068
  msgid "Add New %s"
3069
  msgstr ""
3070
 
3071
- #: includes/custom-taxonomies-form.php:575
3072
  msgid ""
3073
  "The add new item text. Default is __( 'Add New Tag' ) or __( 'Add New "
3074
  "Category' )."
3075
  msgstr ""
3076
 
3077
- #: includes/custom-taxonomies-form.php:576 includes/custom-types-form.php:913
3078
  msgid "Add New Item"
3079
  msgstr ""
3080
 
3081
- #: includes/custom-taxonomies-form.php:579
3082
  msgid "New %s Name"
3083
  msgstr ""
3084
 
3085
- #: includes/custom-taxonomies-form.php:580
3086
  msgid ""
3087
  "The new item name text. Default is __( 'New Tag Name' ) or __( 'New Category "
3088
  "Name' )."
3089
  msgstr ""
3090
 
3091
- #: includes/custom-taxonomies-form.php:581
3092
  msgid "New Item Name"
3093
  msgstr ""
3094
 
3095
- #: includes/custom-taxonomies-form.php:584
3096
  msgid "Separate %s with commas"
3097
  msgstr ""
3098
 
3099
- #: includes/custom-taxonomies-form.php:585
3100
  msgid ""
3101
  "The separate item with commas text used in the taxonomy meta box. This "
3102
  "string isn't used on hierarchical taxonomies. Default is __( 'Separate tags "
3103
  "with commas' ), or null."
3104
  msgstr ""
3105
 
3106
- #: includes/custom-taxonomies-form.php:586
3107
  msgid "Separate Items"
3108
  msgstr ""
3109
 
3110
- #: includes/custom-taxonomies-form.php:589
3111
  msgid "Add or remove %s"
3112
  msgstr ""
3113
 
3114
- #: includes/custom-taxonomies-form.php:590
3115
  msgid ""
3116
  "the add or remove items text used in the meta box when JavaScript is "
3117
  "disabled. This string isn't used on hierarchical taxonomies. Default is "
3118
  "__( 'Add or remove tags' ) or null."
3119
  msgstr ""
3120
 
3121
- #: includes/custom-taxonomies-form.php:591
3122
  msgid "Add or remove"
3123
  msgstr ""
3124
 
3125
- #: includes/custom-taxonomies-form.php:594
3126
  msgid "Choose from the most used %s"
3127
  msgstr ""
3128
 
3129
- #: includes/custom-taxonomies-form.php:595
3130
  msgid ""
3131
  "The choose from most used text used in the taxonomy meta box. This string "
3132
  "isn't used on hierarchical taxonomies. Default is __( 'Choose from the most "
3133
  "used tags' ) or null."
3134
  msgstr ""
3135
 
3136
- #: includes/custom-taxonomies-form.php:599
3137
- #: includes/custom-taxonomies-form.php:601
3138
  msgid "Menu Name"
3139
  msgstr ""
3140
 
3141
- #: includes/custom-taxonomies-form.php:600
3142
  msgid ""
3143
  "The menu name text. This string is the name to give menu items. Defaults to "
3144
  "value of name."
3145
  msgstr ""
3146
 
3147
- #: includes/custom-taxonomies-form.php:628 includes/custom-types-form.php:1086
3148
- #: includes/fields/radio.php:45 includes/fields/select.php:45
3149
- msgid "Options"
3150
- msgstr ""
3151
-
3152
- #: includes/custom-taxonomies-form.php:638
3153
  msgid ""
3154
  "Hierarchical - like post categories, with parent / children relationship and "
3155
  "checkboxes to select taxonomy"
3156
  msgstr ""
3157
 
3158
- #: includes/custom-taxonomies-form.php:639
3159
  msgid "Flat - like post tags, with a text input to enter terms"
3160
  msgstr ""
3161
 
3162
- #: includes/custom-taxonomies-form.php:646 includes/custom-types-form.php:1089
3163
  msgid "Rewrite"
3164
  msgstr ""
3165
 
3166
- #: includes/custom-taxonomies-form.php:648
3167
  msgid ""
3168
  "Rewrite permalinks with this format. Default will use $taxonomy as query var."
3169
  msgstr ""
3170
 
3171
- #: includes/custom-taxonomies-form.php:656
3172
  msgid "Prepend posts with this slug"
3173
  msgstr ""
3174
 
3175
- #: includes/custom-taxonomies-form.php:657
3176
- #: includes/custom-taxonomies-form.php:726 includes/custom-types-form.php:1241
3177
  msgid "Optional"
3178
  msgstr ""
3179
 
3180
- #: includes/custom-taxonomies-form.php:657
3181
  msgid "Prepend posts with this slug - defaults to taxonomy's name."
3182
  msgstr ""
3183
 
3184
- #: includes/custom-taxonomies-form.php:667 includes/custom-types-form.php:1121
3185
  msgid "Allow permalinks to be prepended with front base"
3186
  msgstr ""
3187
 
3188
- #: includes/custom-taxonomies-form.php:669 includes/custom-types-form.php:1125
3189
- #: includes/custom-types-form.php:1142
3190
  msgid "Defaults to true."
3191
  msgstr ""
3192
 
3193
- #: includes/custom-taxonomies-form.php:676
3194
  msgid "Hierarchical URLs"
3195
  msgstr ""
3196
 
3197
- #: includes/custom-taxonomies-form.php:677
3198
  msgid "True or false allow hierarchical urls (implemented in %sVersion 3.1%s)."
3199
  msgstr ""
3200
 
3201
- #: includes/custom-taxonomies-form.php:689 includes/custom-types-form.php:1180
3202
  msgid "show_ui"
3203
  msgstr ""
3204
 
3205
- #: includes/custom-taxonomies-form.php:690
3206
  msgid "Whether to generate a default UI for managing this taxonomy."
3207
  msgstr ""
3208
 
3209
- #: includes/custom-taxonomies-form.php:690
3210
- #: includes/custom-taxonomies-form.php:697
3211
  msgid "Default: if not set, defaults to value of public argument."
3212
  msgstr ""
3213
 
3214
- #: includes/custom-taxonomies-form.php:696 includes/custom-types-form.php:1223
3215
  msgid "show_in_nav_menus"
3216
  msgstr ""
3217
 
3218
- #: includes/custom-taxonomies-form.php:697
3219
  msgid "True makes this taxonomy available for selection in navigation menus."
3220
  msgstr ""
3221
 
3222
- #: includes/custom-taxonomies-form.php:703
3223
  msgid "show_tagcloud"
3224
  msgstr ""
3225
 
3226
- #: includes/custom-taxonomies-form.php:704
3227
  msgid "Whether to allow the Tag Cloud widget to use this taxonomy."
3228
  msgstr ""
3229
 
3230
- #: includes/custom-taxonomies-form.php:704
3231
  msgid "Default: if not set, defaults to value of show_ui argument."
3232
  msgstr ""
3233
 
3234
- #: includes/custom-taxonomies-form.php:713
3235
  msgid "show_admin_column"
3236
  msgstr ""
3237
 
3238
- #: includes/custom-taxonomies-form.php:714
3239
  msgid ""
3240
  "Whether to allow automatic creation of taxonomy columns on associated post-"
3241
  "types."
3242
  msgstr ""
3243
 
3244
- #: includes/custom-taxonomies-form.php:714 includes/custom-types-form.php:1209
3245
  msgid "Default: false."
3246
  msgstr ""
3247
 
3248
- #: includes/custom-taxonomies-form.php:724
3249
  msgid ""
3250
  "False to prevent queries, or string to customize query var. Default will use "
3251
  "$taxonomy as query var."
3252
  msgstr ""
3253
 
3254
- #: includes/custom-taxonomies-form.php:724
3255
  msgid "Default: $taxonomy."
3256
  msgstr ""
3257
 
3258
- #: includes/custom-taxonomies-form.php:726 includes/custom-types-form.php:1242
3259
  msgid "String to customize query var"
3260
  msgstr ""
3261
 
3262
- #: includes/custom-taxonomies-form.php:733
3263
  msgid ""
3264
  "Function name that will be called to update the count of an associated "
3265
  "$object_type, such as post, is updated."
3266
  msgstr ""
3267
 
3268
- #: includes/custom-taxonomies-form.php:733
3269
- #: includes/custom-taxonomies-form.php:756
3270
  msgid "Default: None."
3271
  msgstr ""
3272
 
3273
- #: includes/custom-taxonomies-form.php:740
3274
  msgid "Meta box callback function"
3275
  msgstr ""
3276
 
3277
- #: includes/custom-taxonomies-form.php:745
3278
  msgid "Hide taxonomy meta box."
3279
  msgstr ""
3280
 
3281
- #: includes/custom-taxonomies-form.php:749
3282
  msgid "If you disable this, there will be no metabox on entry edit screen."
3283
  msgstr ""
3284
 
3285
- #: includes/custom-taxonomies-form.php:755
3286
  msgid "meta_box_cb"
3287
  msgstr ""
3288
 
3289
- #: includes/custom-taxonomies-form.php:756
3290
  msgid "Provide a callback function name for the meta box display."
3291
  msgstr ""
3292
 
3293
- #: includes/custom-types-form.php:43
3294
  msgid "Wrong custom post type specified"
3295
  msgstr ""
3296
 
3297
- #: includes/custom-types-form.php:125
3298
  msgid "Custom post type name plural"
3299
  msgstr ""
3300
 
3301
- #: includes/custom-types-form.php:139
3302
  msgid "Enter post type name plural"
3303
  msgstr ""
3304
 
3305
- #: includes/custom-types-form.php:145
3306
  msgid "Custom post type name singular"
3307
  msgstr ""
3308
 
3309
- #: includes/custom-types-form.php:158
3310
  msgid "Enter post type name singular"
3311
  msgstr ""
3312
 
3313
- #: includes/custom-types-form.php:191
3314
  msgid "Enter post type slug"
3315
  msgstr ""
3316
 
3317
- #: includes/custom-types-form.php:204
3318
  msgid "Enter post type description"
3319
  msgstr ""
3320
 
3321
- #: includes/custom-types-form.php:217
3322
  msgid "Icon"
3323
  msgstr ""
3324
 
3325
- #: includes/custom-types-form.php:599
3326
  msgid "Please set post type name"
3327
  msgstr ""
3328
 
3329
- #: includes/custom-types-form.php:615
3330
  msgid "Custom post type already exists"
3331
  msgstr ""
3332
 
3333
- #: includes/custom-types-form.php:768
3334
  msgid "Custom post type saved"
3335
  msgstr ""
3336
 
3337
- #: includes/custom-types-form.php:801
3338
- msgid "Save Custom Post"
 
 
 
 
3339
  msgstr ""
3340
 
3341
- #: includes/custom-types-form.php:816
3342
  msgid "Make this type public (will appear in the WordPress Admin menu)"
3343
  msgstr ""
3344
 
3345
- #: includes/custom-types-form.php:817
3346
  msgid "Hidden - users cannot directly edit data in this type"
3347
  msgstr ""
3348
 
3349
- #: includes/custom-types-form.php:826
3350
  msgid "Menu position"
3351
  msgstr ""
3352
 
3353
- #: includes/custom-types-form.php:836
3354
  msgid "Menu icon"
3355
  msgstr ""
3356
 
3357
- #: includes/custom-types-form.php:837
3358
  msgid ""
3359
  "The url to the icon to be used for this menu. Default: null - defaults to "
3360
  "the posts icon."
3361
  msgstr ""
3362
 
3363
- #: includes/custom-types-form.php:848
3364
  msgid "Show on \"At a Glance\""
3365
  msgstr ""
3366
 
3367
- #: includes/custom-types-form.php:850
3368
  msgid "Show number of entries on \"At a Glance\" admin widget."
3369
  msgstr ""
3370
 
3371
- #: includes/custom-types-form.php:887
3372
  msgid "Registered taxonomies that will be used with this post type."
3373
  msgstr ""
3374
 
3375
- #: includes/custom-types-form.php:907
3376
  msgid ""
3377
  "The add new text. The default is Add New for both hierarchical and non-"
3378
  "hierarchical types."
3379
  msgstr ""
3380
 
3381
- #: includes/custom-types-form.php:912
3382
  msgid "The add new item text. Default is Add New Post/Add New Page."
3383
  msgstr ""
3384
 
3385
- #: includes/custom-types-form.php:917
3386
  msgid "The edit item text. Default is Edit Post/Edit Page."
3387
  msgstr ""
3388
 
3389
- #: includes/custom-types-form.php:922
3390
  msgid "New %s"
3391
  msgstr ""
3392
 
3393
- #: includes/custom-types-form.php:923 includes/custom-types-form.php:928
3394
- msgid "The view item text. Default is View Post/View Page."
3395
  msgstr ""
3396
 
3397
- #: includes/custom-types-form.php:924
3398
  msgid "New Item"
3399
  msgstr ""
3400
 
3401
- #: includes/custom-types-form.php:927
3402
  msgid "View %s"
3403
  msgstr ""
3404
 
3405
- #: includes/custom-types-form.php:929
 
 
 
 
3406
  msgid "View Item"
3407
  msgstr ""
3408
 
3409
- #: includes/custom-types-form.php:933
3410
  msgid "The search items text. Default is Search Posts/Search Pages."
3411
  msgstr ""
3412
 
3413
- #: includes/custom-types-form.php:937
3414
  msgid "No %s found"
3415
  msgstr ""
3416
 
3417
- #: includes/custom-types-form.php:938
3418
  msgid "The not found text. Default is No posts found/No pages found."
3419
  msgstr ""
3420
 
3421
- #: includes/custom-types-form.php:939
3422
  msgid "Not Found"
3423
  msgstr ""
3424
 
3425
- #: includes/custom-types-form.php:942
3426
  msgid "No %s found in Trash"
3427
  msgstr ""
3428
 
3429
- #: includes/custom-types-form.php:943
3430
  msgid ""
3431
  "The not found in trash text. Default is No posts found in Trash/No pages "
3432
  "found in Trash."
3433
  msgstr ""
3434
 
3435
- #: includes/custom-types-form.php:944
3436
  msgid "Not Found In Trash"
3437
  msgstr ""
3438
 
3439
- #: includes/custom-types-form.php:947
3440
  msgid "Parent text"
3441
  msgstr ""
3442
 
3443
- #: includes/custom-types-form.php:948
3444
  msgid ""
3445
  "The parent text. This string isn't used on non-hierarchical types. In "
3446
  "hierarchical ones the default is Parent Page."
3447
  msgstr ""
3448
 
3449
- #: includes/custom-types-form.php:949
3450
  msgid "Parent Description"
3451
  msgstr ""
3452
 
3453
- #: includes/custom-types-form.php:952
3454
  msgid "All items"
3455
  msgstr ""
3456
 
3457
- #: includes/custom-types-form.php:953
3458
  msgid "The all items text used in the menu. Default is the Name label."
3459
  msgstr ""
3460
 
3461
- #: includes/custom-types-form.php:984
3462
  msgid "Text input field to create a post title."
3463
  msgstr ""
3464
 
3465
- #: includes/custom-types-form.php:992
3466
  msgid "Editor"
3467
  msgstr ""
3468
 
3469
- #: includes/custom-types-form.php:993
3470
  msgid "Content input box for writing."
3471
  msgstr ""
3472
 
3473
- #: includes/custom-types-form.php:1000
3474
  msgid "Comments"
3475
  msgstr ""
3476
 
3477
- #: includes/custom-types-form.php:1001
3478
  msgid "Ability to turn comments on/off."
3479
  msgstr ""
3480
 
3481
- #: includes/custom-types-form.php:1007
3482
  msgid "Trackbacks"
3483
  msgstr ""
3484
 
3485
- #: includes/custom-types-form.php:1008
3486
  msgid "Ability to turn trackbacks and pingbacks on/off."
3487
  msgstr ""
3488
 
3489
- #: includes/custom-types-form.php:1015
3490
  msgid "Revisions"
3491
  msgstr ""
3492
 
3493
- #: includes/custom-types-form.php:1016
3494
  msgid "Allows revisions to be made of your post."
3495
  msgstr ""
3496
 
3497
- #: includes/custom-types-form.php:1023
3498
  msgid "Author"
3499
  msgstr ""
3500
 
3501
- #: includes/custom-types-form.php:1024
3502
  msgid "Displays a dropdown menu for changing the post author."
3503
  msgstr ""
3504
 
3505
- #: includes/custom-types-form.php:1031
3506
  msgid "Excerpt"
3507
  msgstr ""
3508
 
3509
- #: includes/custom-types-form.php:1032
3510
  msgid "A text area for writing a custom excerpt."
3511
  msgstr ""
3512
 
3513
- #: includes/custom-types-form.php:1039
3514
  msgid "Thumbnail"
3515
  msgstr ""
3516
 
3517
- #: includes/custom-types-form.php:1040
3518
  msgid "Add a box for uploading a featured image."
3519
  msgstr ""
3520
 
3521
- #: includes/custom-types-form.php:1047
3522
  msgid "custom-fields"
3523
  msgstr ""
3524
 
3525
- #: includes/custom-types-form.php:1048
3526
  msgid "Custom fields input area."
3527
  msgstr ""
3528
 
3529
- #: includes/custom-types-form.php:1054
3530
  msgid "page-attributes"
3531
  msgstr ""
3532
 
3533
- #: includes/custom-types-form.php:1055
3534
  msgid "Menu order, hierarchical must be true to show Parent option"
3535
  msgstr ""
3536
 
3537
- #: includes/custom-types-form.php:1062
3538
  msgid "post-formats"
3539
  msgstr ""
3540
 
3541
- #: includes/custom-types-form.php:1063
3542
  msgid "Add post formats, see %sPost Formats%s"
3543
  msgstr ""
3544
 
3545
- #: includes/custom-types-form.php:1091
3546
  msgid ""
3547
  "Rewrite permalinks with this format. False to prevent rewrite. Default: true "
3548
  "and use post type as slug."
3549
  msgstr ""
3550
 
3551
- #: includes/custom-types-form.php:1100
3552
  msgid "Use the normal WordPress URL logic"
3553
  msgstr ""
3554
 
3555
- #: includes/custom-types-form.php:1101
3556
  msgid "Use a custom URL format"
3557
  msgstr ""
3558
 
3559
- #: includes/custom-types-form.php:1111 includes/custom-types-form.php:1164
3560
- #: includes/custom-types-form.php:1172
3561
  msgid "Optional."
3562
  msgstr ""
3563
 
3564
- #: includes/custom-types-form.php:1111
3565
  msgid "Prepend posts with this slug - defaults to post type's name."
3566
  msgstr ""
3567
 
3568
- #: includes/custom-types-form.php:1124
3569
  msgid ""
3570
  "Example: if your permalink structure is /blog/, then your links will be: "
3571
  "false->/news/, true->/blog/news/."
3572
  msgstr ""
3573
 
3574
- #: includes/custom-types-form.php:1132
3575
  msgid "Feeds"
3576
  msgstr ""
3577
 
3578
- #: includes/custom-types-form.php:1133
3579
  msgid "Defaults to has_archive value."
3580
  msgstr ""
3581
 
3582
- #: includes/custom-types-form.php:1141
3583
  msgid "Pages"
3584
  msgstr ""
3585
 
3586
- #: includes/custom-types-form.php:1161
3587
  msgid "has_archive"
3588
  msgstr ""
3589
 
3590
- #: includes/custom-types-form.php:1162
3591
  msgid "Allow to have custom archive slug for CPT."
3592
  msgstr ""
3593
 
3594
- #: includes/custom-types-form.php:1162
3595
  msgid "Default: not set."
3596
  msgstr ""
3597
 
3598
- #: includes/custom-types-form.php:1164
3599
  msgid "Default is value of rewrite or CPT slug."
3600
  msgstr ""
3601
 
3602
- #: includes/custom-types-form.php:1169
3603
  msgid "show_in_menu"
3604
  msgstr ""
3605
 
3606
- #: includes/custom-types-form.php:1170
3607
  msgid ""
3608
  "Whether to show the post type in the admin menu and where to show that menu. "
3609
  "Note that show_ui must be true."
3610
  msgstr ""
3611
 
3612
- #: includes/custom-types-form.php:1171
3613
  msgid "Default: null."
3614
  msgstr ""
3615
 
3616
- #: includes/custom-types-form.php:1173
3617
  msgid "Top level page like 'tools.php' or 'edit.php?post_type=page'"
3618
  msgstr ""
3619
 
3620
- #: includes/custom-types-form.php:1181
3621
  msgid "Generate a default UI for managing this post type."
3622
  msgstr ""
3623
 
3624
- #: includes/custom-types-form.php:1182 includes/custom-types-form.php:1191
3625
- #: includes/custom-types-form.php:1225
3626
  msgid "Default: value of public argument."
3627
  msgstr ""
3628
 
3629
- #: includes/custom-types-form.php:1189
3630
  msgid "publicly_queryable"
3631
  msgstr ""
3632
 
3633
- #: includes/custom-types-form.php:1190
3634
  msgid "Whether post_type queries can be performed from the front end."
3635
  msgstr ""
3636
 
3637
- #: includes/custom-types-form.php:1198
3638
  msgid "exclude_from_search"
3639
  msgstr ""
3640
 
3641
- #: includes/custom-types-form.php:1199
3642
  msgid "Whether to exclude posts with this post type from search results."
3643
  msgstr ""
3644
 
3645
- #: includes/custom-types-form.php:1200
3646
  msgid "Default: value of the opposite of the public argument."
3647
  msgstr ""
3648
 
3649
- #: includes/custom-types-form.php:1207
3650
  msgid "hierarchical"
3651
  msgstr ""
3652
 
3653
- #: includes/custom-types-form.php:1208
3654
  msgid "Whether the post type is hierarchical. Allows Parent to be specified."
3655
  msgstr ""
3656
 
3657
- #: includes/custom-types-form.php:1215
3658
  msgid "can_export"
3659
  msgstr ""
3660
 
3661
- #: includes/custom-types-form.php:1216
3662
  msgid "Can this post_type be exported."
3663
  msgstr ""
3664
 
3665
- #: includes/custom-types-form.php:1216
3666
  msgid "Default: true."
3667
  msgstr ""
3668
 
3669
- #: includes/custom-types-form.php:1224
3670
  msgid "Whether post_type is available for selection in navigation menus."
3671
  msgstr ""
3672
 
3673
- #: includes/custom-types-form.php:1237
3674
  msgid ""
3675
  "False to prevent queries, or string value of the query var to use for this "
3676
  "post type."
3677
  msgstr ""
3678
 
3679
- #: includes/custom-types-form.php:1238
3680
  msgid "Default: true - set to $post_type."
3681
  msgstr ""
3682
 
3683
- #: includes/custom-types-form.php:1248
3684
  msgid "Permalink epmask"
3685
  msgstr ""
3686
 
3687
- #: includes/custom-types-form.php:1249
3688
  msgid "Default value EP_PERMALINK. More info here %s."
3689
  msgstr ""
3690
 
3691
- #: includes/custom-types-taxonomies-list.php:15
 
 
 
 
 
 
3692
  msgid ""
3693
  "You can read more about Custom Post Types and Taxonomies in this tutorial. "
3694
  "<a href=\"http://wp-types.com/learn/custom-post-types/\" target=\"_blank"
3695
  "\">http://wp-types.com/learn/custom-post-types/ &raquo;</a>"
3696
  msgstr ""
3697
 
3698
- #: includes/custom-types-taxonomies-list.php:33
3699
  msgid "Search custom posts"
3700
  msgstr ""
3701
 
3702
- #: includes/custom-types-taxonomies-list.php:52
3703
  msgid "Search custom taxonomies"
3704
  msgstr ""
3705
 
@@ -3715,783 +4124,777 @@ msgstr ""
3715
  msgid "Under this name field will be stored in DB (sanitized)"
3716
  msgstr ""
3717
 
3718
- #: includes/fields/checkbox.php:50 includes/fields/checkboxes.php:45
3719
- #: includes/fields/date.php:46 includes/fields/radio.php:39
3720
- #: includes/fields/select.php:39
3721
  msgid "Text that describes function to user"
3722
  msgstr ""
3723
 
3724
- #: includes/fields/checkbox.php:56 includes/fields/checkboxes.php:177
3725
  msgid "Value to store"
3726
  msgstr ""
3727
 
3728
- #: includes/fields/checkbox.php:61 includes/fields/checkboxes.php:182
3729
  msgid "This value can't be zero"
3730
  msgstr ""
3731
 
3732
- #: includes/fields/checkbox.php:62 includes/fields/checkboxes.php:183
3733
  msgid "Please enter a value"
3734
  msgstr ""
3735
 
3736
- #: includes/fields/checkbox.php:74
3737
  msgid "save 0 to the database"
3738
  msgstr ""
3739
 
3740
- #: includes/fields/checkbox.php:79
3741
  msgid "don't save anything to the database"
3742
  msgstr ""
3743
 
3744
- #: includes/fields/checkbox.php:84
3745
  msgid "When unchecked:"
3746
  msgstr ""
3747
 
3748
- #: includes/fields/checkbox.php:90 includes/fields/checkboxes.php:191
3749
  msgid "Set checked by default (on new post)?"
3750
  msgstr ""
3751
 
3752
- #: includes/fields/checkbox.php:109 includes/fields/checkboxes.php:210
3753
  msgid "Show one of these two values:"
3754
  msgstr ""
3755
 
3756
- #: includes/fields/checkbox.php:137
3757
  msgid "Checkbox help"
3758
  msgstr ""
3759
 
3760
- #: includes/fields/checkboxes.php:59
3761
  msgid "When unchecked, save 0 to the database"
3762
  msgstr ""
3763
 
3764
- #: includes/fields/checkboxes.php:64
3765
  msgid "When unchecked, don't save anything to the database"
3766
  msgstr ""
3767
 
3768
- #: includes/fields/checkboxes.php:119 includes/fields/radio.php:105
3769
- #: includes/fields/select.php:83
3770
  msgid "Add option"
3771
  msgstr ""
3772
 
3773
- #: includes/fields/checkboxes.php:140 includes/fields/checkboxes.php:253
3774
  msgid "Checkbox title"
3775
  msgstr ""
3776
 
3777
- #: includes/fields/checkboxes.php:149 includes/fields/radio.php:180
3778
- #: includes/fields/select.php:111
3779
  msgid "Move this option"
3780
  msgstr ""
3781
 
3782
- #: includes/fields/checkboxes.php:155
3783
  msgid "Delete this checkbox"
3784
  msgstr ""
3785
 
3786
- #: includes/fields/date.php:56
3787
  msgid "Input only the date"
3788
  msgstr ""
3789
 
3790
- #: includes/fields/date.php:60
3791
  msgid "Input date and time"
3792
  msgstr ""
3793
 
3794
- #: includes/fields/radio.php:48 includes/fields/select.php:48
3795
  msgid "Display text"
3796
  msgstr ""
3797
 
3798
- #: includes/fields/radio.php:50 includes/fields/select.php:50
3799
  msgid "Custom field content"
3800
  msgstr ""
3801
 
3802
- #: includes/fields/radio.php:83
3803
  msgid "No Default"
3804
  msgstr ""
3805
 
3806
- #: includes/fields/radio.php:163 includes/fields/radio.php:227
3807
- #: includes/fields/select.php:96
3808
  msgid "Option title"
3809
  msgstr ""
3810
 
3811
- #: includes/fields/radio.php:188 includes/fields/select.php:116
3812
  msgid "Delete this option"
3813
  msgstr ""
3814
 
3815
- #: includes/fields/radio.php:201 includes/fields/select.php:129
3816
  msgid "Value"
3817
  msgstr ""
3818
 
3819
- #: includes/fields/radio.php:243
3820
  msgid "Value to display"
3821
  msgstr ""
3822
 
3823
- #: includes/fields-control.php:18
3824
  msgid "Search fields"
3825
  msgstr ""
3826
 
3827
- #: includes/fields-control.php:187
3828
  msgid "Custom Field Name"
3829
  msgstr ""
3830
 
3831
- #: includes/fields-control.php:188 includes/usermeta-control.php:176
3832
  msgid "Group"
3833
  msgstr ""
3834
 
3835
- #: includes/fields-control.php:189 includes/usermeta-control.php:177
3836
  msgid "Types Name"
3837
  msgstr ""
3838
 
3839
- #: includes/fields-control.php:190 includes/usermeta-control.php:178
3840
- msgid "Type"
3841
- msgstr ""
3842
-
3843
- #: includes/fields-control.php:225 includes/usermeta-control.php:213
3844
  msgid "Not under Types control"
3845
  msgstr ""
3846
 
3847
- #: includes/fields-control.php:229 includes/usermeta-control.php:217
3848
  msgid "disabled"
3849
  msgstr ""
3850
 
3851
- #: includes/fields-control.php:232 includes/usermeta-control.php:220
3852
  msgid ""
3853
  "This field was disabled during conversion. You need to set some further "
3854
  "settings in the group editor."
3855
  msgstr ""
3856
 
3857
- #: includes/fields-control.php:244 includes/usermeta-control.php:233
3858
  msgid "Add to group"
3859
  msgstr ""
3860
 
3861
- #: includes/fields-control.php:245 includes/usermeta-control.php:234
3862
  msgid "Remove from group"
3863
  msgstr ""
3864
 
3865
- #: includes/fields-control.php:246 includes/usermeta-control.php:235
3866
  msgid "Change type"
3867
  msgstr ""
3868
 
3869
- #: includes/fields-control.php:247 includes/usermeta-control.php:236
3870
  msgid "Add to Types control"
3871
  msgstr ""
3872
 
3873
- #: includes/fields-control.php:248 includes/usermeta-control.php:237
3874
  msgid "Stop controlling with Types"
3875
  msgstr ""
3876
 
3877
- #: includes/fields-control.php:256 includes/usermeta-control.php:245
3878
  msgid "Show pagination"
3879
  msgstr ""
3880
 
3881
- #: includes/fields-control.php:259 includes/usermeta-control.php:248
3882
  msgid "Display all items"
3883
  msgstr ""
3884
 
3885
- #: includes/fields-control.php:319 includes/usermeta-control.php:374
3886
  msgid ""
3887
  "Deleting fields will remove fields from groups and delete post meta. "
3888
  "Continue?"
3889
  msgstr ""
3890
 
3891
- #: includes/fields-control.php:352 includes/usermeta-control.php:288
3892
  msgid "Removed from Types control: %s"
3893
  msgstr ""
3894
 
3895
- #: includes/fields-control.php:365 includes/usermeta-control.php:301
3896
  msgid "Added to Types control: %s"
3897
  msgstr ""
3898
 
3899
- #: includes/fields-control.php:384 includes/usermeta-control.php:318
3900
  msgid "Fields %s have been deleted."
3901
  msgstr ""
3902
 
3903
- #: includes/fields-control.php:390 includes/usermeta-control.php:323
3904
  msgid "Fields %s are not Types fields. Types wont delete these fields."
3905
  msgstr ""
3906
 
3907
- #: includes/fields-control.php:413 includes/usermeta-control.php:395
3908
  msgid "Please select fields"
3909
  msgstr ""
3910
 
3911
- #: includes/fields-control.php:475 includes/settings.php:77
3912
- #: includes/settings.php:140 includes/usermeta-control.php:461
3913
- #: plus/types-access/includes/admin-edit-access.php:526
3914
- #: plus/types-access/includes/admin-edit-access.php:529
3915
  msgid "Save Changes"
3916
  msgstr ""
3917
 
3918
- #: includes/fields-form.php:47 includes/usermeta-form.php:47
3919
  msgid "Group name can not be empty."
3920
  msgstr ""
3921
 
3922
- #: includes/fields-form.php:67 includes/fields-form.php:92
3923
- #: includes/usermeta-form.php:69 includes/usermeta-form.php:93
3924
  msgid ""
3925
  "A group by name <em>%s</em> already exists. Please use a different name and "
3926
  "save again."
3927
  msgstr ""
3928
 
3929
- #: includes/fields-form.php:78 includes/usermeta-form.php:79
3930
  msgid "Wrong group ID %d"
3931
  msgstr ""
3932
 
3933
- #: includes/fields-form.php:111 includes/usermeta-form.php:112
3934
  msgid ""
3935
  "Field slugs cannot contain non-English characters. Please edit this field "
3936
  "name %s and save again."
3937
  msgstr ""
3938
 
3939
- #: includes/fields-form.php:118
3940
  msgid "Field names or slugs cannot contain only numbers."
3941
  msgstr ""
3942
 
3943
- #: includes/fields-form.php:131 includes/usermeta-form.php:125
3944
  msgid "Field with name \"%s\" already exists"
3945
  msgstr ""
3946
 
3947
- #: includes/fields-form.php:138 includes/usermeta-form.php:132
3948
  msgid "Field with slug \"%s\" already exists"
3949
  msgstr ""
3950
 
3951
- #: includes/fields-form.php:209 includes/usermeta-form.php:179
3952
  msgid "Group saved"
3953
  msgstr ""
3954
 
3955
- #: includes/fields-form.php:215 includes/usermeta-form.php:184
3956
  msgid "Error saving group"
3957
  msgstr ""
3958
 
3959
- #: includes/fields-form.php:240 includes/usermeta-form.php:211
3960
  msgid "Group with ID %d do not exist"
3961
  msgstr ""
3962
 
3963
- #: includes/fields-form.php:265
3964
  msgid "Custom fields help"
3965
  msgstr ""
3966
 
3967
- #: includes/fields-form.php:275 includes/usermeta-form.php:243
3968
  msgid "Available fields"
3969
  msgstr ""
3970
 
3971
- #: includes/fields-form.php:324 includes/usermeta-form.php:293
3972
  msgid "User created fields"
3973
  msgstr ""
3974
 
3975
- #: includes/fields-form.php:351 includes/usermeta-form.php:320
3976
  msgid "Are you sure that you want to remove field %s from history?"
3977
  msgstr ""
3978
 
3979
- #: includes/fields-form.php:356 includes/usermeta-form.php:325
3980
  msgid "Remove field %s"
3981
  msgstr ""
3982
 
3983
- #: includes/fields-form.php:434 includes/fields-form.php:454
3984
  msgid "Displayed on all content types"
3985
  msgstr ""
3986
 
3987
- #: includes/fields-form.php:452
3988
  msgid "Post Types:"
3989
  msgstr ""
3990
 
3991
- #: includes/fields-form.php:516 includes/fields-form.php:524
3992
- #: includes/fields-form.php:581 includes/fields-form.php:603
3993
  msgid "Not Selected"
3994
  msgstr ""
3995
 
3996
- #: includes/fields-form.php:522
3997
  msgid "Terms:"
3998
  msgstr ""
3999
 
4000
- #: includes/fields-form.php:537 includes/fields-form.php:571
4001
  msgid "Default Template"
4002
  msgstr ""
4003
 
4004
- #: includes/fields-form.php:601
4005
  msgid "Templates:"
4006
  msgstr ""
4007
 
4008
- #: includes/fields-form.php:613 includes/usermeta-form.php:428
4009
  msgid "Where to display this group"
4010
  msgstr ""
4011
 
4012
- #: includes/fields-form.php:616
4013
  msgid ""
4014
  "Each custom fields group can display on different content types or different "
4015
  "taxonomy."
4016
  msgstr ""
4017
 
4018
- #: includes/fields-form.php:663
4019
  msgid "Display this group when ANY of the above conditions is met"
4020
  msgstr ""
4021
 
4022
- #: includes/fields-form.php:665
4023
  msgid "Display this group when ALL the above conditions is met"
4024
  msgstr ""
4025
 
4026
- #: includes/fields-form.php:674 includes/usermeta-form.php:642
4027
  msgid ""
4028
  "This group will appear on %pt% edit pages where content belongs to taxonomy: "
4029
- "%tx% or View Template is: %vt%"
4030
  msgstr ""
4031
 
4032
- #: includes/fields-form.php:677 includes/usermeta-form.php:645
4033
  msgid ""
4034
  "This group will appear on %pt% edit pages where content belongs to taxonomy: "
4035
- "%tx% and View Template is: %vt%"
4036
  msgstr ""
4037
 
4038
- #: includes/fields-form.php:680 includes/usermeta-form.php:648
4039
  msgid "all"
4040
  msgstr ""
4041
 
4042
- #: includes/fields-form.php:682 includes/fields-form.php:684
4043
- #: includes/usermeta-form.php:650 includes/usermeta-form.php:652
4044
  msgid "any"
4045
  msgstr ""
4046
 
4047
- #: includes/fields-form.php:698 includes/usermeta-form.php:459
4048
  msgid "Styling Editor"
4049
  msgstr ""
4050
 
4051
- #: includes/fields-form.php:701 includes/usermeta-form.php:462
4052
  msgid "Customize Fields for admin panel."
4053
  msgstr ""
4054
 
4055
- #: includes/fields-form.php:767 includes/usermeta-form.php:523
4056
  msgid "Field group preview"
4057
  msgstr ""
4058
 
4059
- #: includes/fields-form.php:775 includes/usermeta-form.php:531
4060
  msgid "Your CSS"
4061
  msgstr ""
4062
 
4063
- #: includes/fields-form.php:779 includes/usermeta-form.php:534
4064
  msgid "Admin styles for fields:"
4065
  msgstr ""
4066
 
4067
- #: includes/fields-form.php:780 includes/usermeta-form.php:534
4068
  msgid "Open style editor"
4069
  msgstr ""
4070
 
4071
- #: includes/fields-form.php:795 includes/usermeta-form.php:551
4072
  msgid "Fields"
4073
  msgstr ""
4074
 
4075
- #: includes/fields-form.php:858 includes/usermeta-form.php:612
4076
  msgid ""
4077
  "There are no fields in this group. To add a field, click on the field "
4078
  "buttons at the right."
4079
  msgstr ""
4080
 
4081
- #: includes/fields-form.php:890 includes/usermeta-form.php:655
4082
  msgid "Warning: same values selected"
4083
  msgstr ""
4084
 
4085
- #: includes/fields-form.php:892 includes/usermeta-form.php:657
4086
  msgid "Warning: field name already used"
4087
  msgstr ""
4088
 
4089
- #: includes/fields-form.php:894 includes/usermeta-form.php:659
4090
  msgid "Warning: field slug already used"
4091
  msgstr ""
4092
 
4093
- #: includes/fields-form.php:896
4094
  msgid "Sorry, but this is only preview!"
4095
  msgstr ""
4096
 
4097
- #: includes/fields-form.php:920 includes/usermeta-form.php:676
4098
  msgid "Requested field don't exist"
4099
  msgstr ""
4100
 
4101
- #: includes/fields-form.php:957
4102
  msgid "Wrong field requested"
4103
  msgstr ""
4104
 
4105
- #: includes/fields-form.php:1003
4106
  msgid "Move this field"
4107
  msgstr ""
4108
 
4109
- #: includes/fields-form.php:1007
4110
  msgid "Delete this field"
4111
  msgstr ""
4112
 
4113
- #: includes/fields-form.php:1017
4114
  msgid "Untitled"
4115
  msgstr ""
4116
 
4117
- #: includes/fields-form.php:1020
4118
  msgid "%s field"
4119
  msgstr ""
4120
 
4121
- #: includes/fields-form.php:1025
4122
  msgid "(conditional)"
4123
  msgstr ""
4124
 
4125
- #: includes/fields-form.php:1123
4126
  msgid "Placeholder"
4127
  msgstr ""
4128
 
4129
- #: includes/fields-form.php:1126
4130
  msgid "Enter placeholder"
4131
  msgstr ""
4132
 
4133
- #: includes/fields-form.php:1137
4134
- msgid "Single or repeating field?"
4135
  msgstr ""
4136
 
4137
- #: includes/fields-form.php:1140
4138
- msgid "Allow multiple-instances of this field"
4139
  msgstr ""
4140
 
4141
- #: includes/fields-form.php:1146
4142
- msgid "This field can have only one value"
4143
  msgstr ""
4144
 
4145
- #: includes/fields-form.php:1153
4146
  msgid ""
4147
  "There may be multiple instances of this field already. When you switch back "
4148
  "to single-field mode, all values of this field will be updated when it's "
4149
  "edited."
4150
  msgstr ""
4151
 
4152
- #: includes/fields-form.php:1216
4153
  msgid "Translation preferences"
4154
  msgstr ""
4155
 
4156
- #: includes/fields-form.php:1264
4157
  msgid "Validation"
4158
  msgstr ""
4159
 
4160
- #: includes/fields-form.php:1264
4161
  msgid "Error message"
4162
  msgstr ""
4163
 
4164
- #: includes/fields-list.php:27
4165
  msgid "Search custom fields"
4166
  msgstr ""
4167
 
4168
- #: includes/fields.php:300
 
 
 
 
 
 
 
 
 
 
4169
  msgid "Error saving field"
4170
  msgstr ""
4171
 
4172
- #: includes/fields.php:306
4173
  msgid "Please set name for field"
4174
  msgstr ""
4175
 
4176
- #: includes/fields.php:555
4177
  msgid ""
4178
  "Field \"%s\" type was converted from %s to %s. You need to set some further "
4179
  "settings in the group editor."
4180
  msgstr ""
4181
 
4182
- #: includes/fields.php:1356
 
 
 
 
 
 
 
 
4183
  msgid "Check which fields should be shown on custom post list as a column."
4184
  msgstr ""
4185
 
4186
- #: includes/fields.php:1357
4187
  msgid "Drag and drop ticked custom fields to reorder."
4188
  msgstr ""
4189
 
4190
- #: includes/import-export.php:47 includes/import-export.php:121
4191
  msgid "Unable to open zip file"
4192
  msgstr ""
4193
 
4194
- #: includes/import-export.php:61 includes/import-export.php:67
4195
  msgid "Unable to process file"
4196
  msgstr ""
4197
 
4198
- #: includes/import-export.php:90
4199
  msgid "Error uploading file"
4200
  msgstr ""
4201
 
4202
- #: includes/import-export.php:100
4203
  msgid "Error moving uploaded file"
4204
  msgstr ""
4205
 
4206
- #: includes/import-export.php:163 includes/import-export.php:170
4207
  msgid "Data not valid"
4208
  msgstr ""
4209
 
4210
- #: includes/import-export.php:200
4211
- msgid "When importing to theme:"
4212
- msgstr ""
4213
-
4214
- #: includes/import-export.php:202
4215
- msgid "ask user for approval"
4216
- msgstr ""
4217
-
4218
- #: includes/import-export.php:203
4219
- msgid "import automatically"
4220
  msgstr ""
4221
 
4222
- #: includes/import-export.php:206
4223
  msgid "Export Types data"
4224
  msgstr ""
4225
 
4226
- #: includes/import-export.php:207
4227
  msgid ""
4228
  "Download all custom fields, custom post types and taxonomies created by "
4229
  "Types plugin."
4230
  msgstr ""
4231
 
4232
- #: includes/import-export.php:226
4233
- msgid "Temporary directory is not found or there is not enough disk space."
4234
- msgstr ""
4235
-
4236
- #: includes/import-export.php:227
4237
- msgid "Please check server settings or contact your server administrator."
4238
- msgstr ""
4239
-
4240
- #: includes/import-export.php:236
4241
  msgid "Upload XML file"
4242
  msgstr ""
4243
 
4244
- #: includes/import-export.php:237
4245
- msgid "Import Types data file"
4246
- msgstr ""
4247
-
4248
- #: includes/import-export.php:244
4249
  msgid "Import file"
4250
  msgstr ""
4251
 
4252
- #: includes/import-export.php:257
4253
  msgid "Paste code here"
4254
  msgstr ""
4255
 
4256
- #: includes/import-export.php:260
4257
- msgid "Import Types data text input"
4258
- msgstr ""
4259
-
4260
- #: includes/import-export.php:264
4261
  msgid "Encoding"
4262
  msgstr ""
4263
 
4264
- #: includes/import-export.php:267
4265
  msgid "If encoding is set in text input, it will override this setting."
4266
  msgstr ""
4267
 
4268
- #: includes/import-export.php:273
4269
  msgid "Import text"
4270
  msgstr ""
4271
 
4272
- #: includes/import-export.php:283
4273
  msgid "PHP SimpleXML extension not loaded: Importing not available"
4274
  msgstr ""
4275
 
4276
- #: includes/import-export.php:320
 
 
 
 
4277
  msgid "Overwrite settings"
4278
  msgstr ""
4279
 
4280
- #: includes/import-export.php:327
4281
  msgid "Bulk overwrite groups if exist"
4282
  msgstr ""
4283
 
4284
- #: includes/import-export.php:334
4285
  msgid "Delete group if don't exist"
4286
  msgstr ""
4287
 
4288
- #: includes/import-export.php:341
4289
  msgid "Delete field if don't exist"
4290
  msgstr ""
4291
 
4292
- #: includes/import-export.php:348
4293
  msgid "Delete custom post type if don't exist"
4294
  msgstr ""
4295
 
4296
- #: includes/import-export.php:355
4297
  msgid "Delete custom taxonomy if don't exist"
4298
  msgstr ""
4299
 
4300
- #: includes/import-export.php:375
4301
  msgid "Groups to be added/updated"
4302
  msgstr ""
4303
 
4304
- #: includes/import-export.php:403 includes/import-export.php:512
4305
  msgid "Create new"
4306
  msgstr ""
4307
 
4308
- #: includes/import-export.php:425 includes/import-export.php:534
4309
  msgid "Groups to be deleted"
4310
  msgstr ""
4311
 
4312
- #: includes/import-export.php:440
4313
  msgid "Fields to be added/updated"
4314
  msgstr ""
4315
 
4316
- #: includes/import-export.php:470 includes/import-export.php:579
4317
  msgid "Fields to be deleted"
4318
  msgstr ""
4319
 
4320
- #: includes/import-export.php:484
4321
  msgid "User Groups to be added/updated"
4322
  msgstr ""
4323
 
4324
- #: includes/import-export.php:549
4325
  msgid "User fields to be added/updated"
4326
  msgstr ""
4327
 
4328
- #: includes/import-export.php:593
4329
  msgid "Custom post types to be added/updated"
4330
  msgstr ""
4331
 
4332
- #: includes/import-export.php:621
4333
  msgid "Custom post types to be deleted"
4334
  msgstr ""
4335
 
4336
- #: includes/import-export.php:636
4337
  msgid "Custom taxonomies to be added/updated"
4338
  msgstr ""
4339
 
4340
- #: includes/import-export.php:664
4341
  msgid "Custom taxonomies to be deleted"
4342
  msgstr ""
4343
 
4344
- #: includes/import-export.php:679
4345
  msgid "Post relationship"
4346
  msgstr ""
4347
 
4348
- #: includes/import-export.php:685
4349
  msgid "Create relationships"
4350
  msgstr ""
4351
 
4352
- #: includes/migration.php:39
4353
  msgid "Custom Types UI Post Types"
4354
  msgstr ""
4355
 
4356
- #: includes/migration.php:47 includes/migration.php:78
4357
  msgid "(exists)"
4358
  msgstr ""
4359
 
4360
- #: includes/migration.php:69
4361
  msgid "Custom Types UI Taxonomies"
4362
  msgstr ""
4363
 
4364
- #: includes/migration.php:103
4365
  msgid ""
4366
  "Disable Custom Types UI after importing the configuration (leave this "
4367
  "checked to avoid defining custom types twice)"
4368
  msgstr ""
4369
 
4370
- #: includes/migration.php:141
4371
  msgid "Advanced Custom Fields"
4372
  msgstr ""
4373
 
4374
- #: includes/migration.php:153
4375
  msgid "Group will be created"
4376
  msgstr ""
4377
 
4378
- #: includes/migration.php:155
4379
  msgid "Group will be updated"
4380
  msgstr ""
4381
 
4382
- #: includes/migration.php:196
4383
  msgid "Field conversion not supported by Types"
4384
  msgstr ""
4385
 
4386
- #: includes/migration.php:200
4387
  msgid "Field with same name is already controlled by Types"
4388
  msgstr ""
4389
 
4390
- #: includes/migration.php:204
4391
  msgid "Field will be updated"
4392
  msgstr ""
4393
 
4394
- #: includes/migration.php:207
4395
  msgid "Field will be created"
4396
  msgstr ""
4397
 
4398
- #: includes/migration.php:301
4399
  msgid "Import custom field settings"
4400
  msgstr ""
4401
 
4402
- #: includes/migration.php:328
4403
  msgid "Post Type %s added"
4404
  msgstr ""
4405
 
4406
- #: includes/migration.php:346
4407
  msgid "Taxonomy %s added"
4408
  msgstr ""
4409
 
4410
- #: includes/migration.php:394
4411
  msgid "Group %s added"
4412
  msgstr ""
4413
 
4414
- #: includes/migration.php:398
4415
  msgid "Group %s updated"
4416
  msgstr ""
4417
 
4418
- #: includes/migration.php:416
4419
  msgid "Field %s added"
4420
  msgstr ""
4421
 
4422
- #: includes/post-relationship.php:91
4423
  msgid "Wrong post types"
4424
  msgstr ""
4425
 
4426
- #: includes/post-relationship.php:95
4427
  msgid "Relationship do not exist"
4428
  msgstr ""
4429
 
4430
- #: includes/post-relationship.php:155
4431
  msgid "Title, all custom fields and parents"
4432
  msgstr ""
4433
 
4434
- #: includes/post-relationship.php:156
4435
  msgid "Do not show management options for this post type"
4436
  msgstr ""
4437
 
4438
- #: includes/post-relationship.php:157
4439
  msgid "All fields, including the standard post fields"
4440
  msgstr ""
4441
 
4442
- #: includes/post-relationship.php:158 includes/post-relationship.php:224
4443
  msgid "Specific fields"
4444
  msgstr ""
4445
 
4446
- #: includes/post-relationship.php:178
4447
  msgid "Post title"
4448
  msgstr ""
4449
 
4450
- #: includes/post-relationship.php:182
4451
  msgid "Post body"
4452
  msgstr ""
4453
 
4454
- #: includes/post-relationship.php:235
4455
- msgid "Taxonomy - %s"
4456
  msgstr ""
4457
 
4458
- #: includes/post-relationship.php:293
4459
- msgid "Post Relationship"
4460
  msgstr ""
4461
 
4462
- #: includes/post-relationship.php:302 includes/post-relationship.php:455
4463
  msgid "Children: None"
4464
  msgstr ""
4465
 
4466
- #: includes/post-relationship.php:308 includes/post-relationship.php:456
4467
  msgid "Children: %s"
4468
  msgstr ""
4469
 
4470
- #: includes/post-relationship.php:315 includes/post-relationship.php:326
4471
- #: includes/post-relationship.php:458
4472
  msgid "Parent: %s"
4473
  msgstr ""
4474
 
4475
- #: includes/post-relationship.php:318 includes/post-relationship.php:329
4476
- #: includes/post-relationship.php:457
4477
  msgid "Parent: None"
4478
  msgstr ""
4479
 
4480
- #: includes/post-relationship.php:376 includes/post-relationship.php:431
4481
- #: plus/types-access/includes/admin-edit-access.php:613
4482
- #: plus/types-access/includes/admin-edit-access.php:670
4483
  msgid "Apply"
4484
  msgstr ""
4485
 
4486
- #: includes/post-relationship.php:414
4487
  msgid "Select child fields to be displayed"
4488
  msgstr ""
4489
 
4490
- #: includes/post-relationship.php:415 includes/post-relationship.php:419
4491
  msgid "Edit fields"
4492
  msgstr ""
4493
 
4494
- #: includes/post-relationship.php:417
4495
  msgid "Please save the page first, before you can edit the child items"
4496
  msgstr ""
4497
 
@@ -4499,89 +4902,153 @@ msgstr ""
4499
  msgid "You can choose which fields will show when editing parent pages."
4500
  msgstr ""
4501
 
4502
- #: includes/post-relationship.php:440
4503
  msgid "Click on the 'edit' button to select them for each parent."
4504
  msgstr ""
4505
 
4506
- #: includes/post-relationship.php:443
4507
  msgid "Learn about %sPost Type Relationships%s"
4508
  msgstr ""
4509
 
4510
- #: includes/settings.php:19
 
 
 
 
4511
  msgid "Add resized images to the media library"
4512
  msgstr ""
4513
 
4514
- #: includes/settings.php:20
4515
  msgid ""
4516
  "Types will automatically add the resized images as attachments to the media "
4517
  "library. Choose this to automatically upload resized images to a CDN."
4518
  msgstr ""
4519
 
4520
- #: includes/settings.php:29
4521
  msgid "Allow resizing of remote images"
4522
  msgstr ""
4523
 
4524
- #: includes/settings.php:40
 
 
 
 
 
 
 
 
4525
  msgid "Invalidate cached images that are more than <ELEMENT> hours old."
4526
  msgstr ""
4527
 
4528
- #: includes/settings.php:43
4529
  msgid "Never"
4530
  msgstr ""
4531
 
4532
- #: includes/settings.php:59
4533
  msgid "Clear Cached Images"
4534
  msgstr ""
4535
 
4536
- #: includes/settings.php:68
4537
  msgid "Clear Outdated Cached Images"
4538
  msgstr ""
4539
 
4540
- #: includes/settings.php:92
4541
- msgid "When importing, add texts to WPML's String Translation table"
4542
  msgstr ""
4543
 
4544
- #: includes/settings.php:115
4545
- msgid "Help Box"
4546
  msgstr ""
4547
 
4548
- #: includes/settings.php:119
4549
  msgid "Show help box on all custom post editing screens"
4550
  msgstr ""
4551
 
4552
- #: includes/settings.php:124
4553
  msgid "Show help box only on custom post types that were created by Types"
4554
  msgstr ""
4555
 
4556
- #: includes/settings.php:129
4557
  msgid "Don't show help box on any custom post type editing screen"
4558
  msgstr ""
4559
 
4560
- #: includes/settings.php:154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4561
  msgid "Disable all messages about other Toolset components"
4562
  msgstr ""
4563
 
4564
- #: includes/settings.php:180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4565
  msgid "Images cache cleared"
4566
  msgstr ""
4567
 
4568
- #: includes/settings.php:196 includes/settings.php:213
4569
- msgid "Settings saved"
4570
  msgstr ""
4571
 
4572
- #: includes/usermeta-control.php:175
4573
  msgid "User Field Name"
4574
  msgstr ""
4575
 
4576
- #: includes/usermeta-form.php:233
4577
  msgid "Usermeta help"
4578
  msgstr ""
4579
 
4580
- #: includes/usermeta-form.php:412
4581
  msgid "Show For:"
4582
  msgstr ""
4583
 
4584
- #: includes/usermeta-form.php:431
4585
  msgid "Each usermeta group can display different fields for user roles."
4586
  msgstr ""
4587
 
@@ -4589,6 +5056,12 @@ msgstr ""
4589
  msgid "Search user fields"
4590
  msgstr ""
4591
 
 
 
 
 
 
 
4592
  #: marketing/congrats-post-types/index.php:17
4593
  msgid "Congratulations! Your custom post type %s was successfully updated."
4594
  msgstr ""
@@ -4635,43 +5108,43 @@ msgid "Enrich content using <strong>custom fields</strong>"
4635
  msgstr ""
4636
 
4637
  #: marketing/congrats-post-types/index.php:60
4638
- #: marketing/congrats-post-types/index.php:78
4639
  msgid "Organize content using <strong>taxonomy</strong>"
4640
  msgstr ""
4641
 
4642
- #: marketing/congrats-post-types/index.php:65
4643
  msgid "Connect post types as <strong>parents and children</strong>"
4644
  msgstr ""
4645
 
4646
- #: marketing/congrats-post-types/index.php:70
4647
  msgid "Display custom post <strong>archives</strong>"
4648
  msgstr ""
4649
 
4650
- #: marketing/congrats-post-types/index.php:82
4651
  msgid "Display custom taxonomy <strong>archives</strong>"
4652
  msgstr ""
4653
 
4654
- #: marketing/congrats-post-types/index.php:90
4655
  msgid "Display user fields"
4656
  msgstr ""
4657
 
4658
- #: marketing/congrats-post-types/index.php:97
4659
  msgid "Display custom fields"
4660
  msgstr ""
4661
 
4662
- #: marketing/congrats-post-types/index.php:101
4663
  msgid "Create groups of repeating fields"
4664
  msgstr ""
4665
 
4666
- #: marketing/congrats-post-types/index.php:109
4667
  msgid "Build complete sites without coding:"
4668
  msgstr ""
4669
 
4670
- #: marketing/congrats-post-types/index.php:116
4671
  msgid "Load and display custom content"
4672
  msgstr ""
4673
 
4674
- #: marketing/congrats-post-types/index.php:121
4675
  msgid "Hide notifications"
4676
  msgstr ""
4677
 
@@ -4684,7 +5157,7 @@ msgid "static content displayed in different ways"
4684
  msgstr ""
4685
 
4686
  #: marketing/etc/types-site-kinds.php:7
4687
- msgid "http://wp-types.com/develop-brochure-site-wordpress/"
4688
  msgstr ""
4689
 
4690
  #: marketing/etc/types-site-kinds.php:20
@@ -4806,70 +5279,57 @@ msgstr ""
4806
  msgid "Continue"
4807
  msgstr ""
4808
 
4809
- #: marketing/helpful-links.php:9
4810
- msgid "Need Help?"
4811
- msgstr ""
4812
-
4813
- #: marketing/helpful-links.php:15
4814
- msgid "Adding custom fields to content"
4815
- msgstr ""
4816
-
4817
- #: marketing/helpful-links.php:16
4818
- msgid "Displaying custom fields on front-end"
4819
- msgstr ""
4820
-
4821
- #: marketing/helpful-links.php:22
4822
- msgid "Adding user fields to user profiles"
4823
  msgstr ""
4824
 
4825
- #: marketing/helpful-links.php:23
4826
- msgid "Displaying user fields on front-end"
4827
  msgstr ""
4828
 
4829
- #: marketing/helpful-links.php:29
4830
- msgid "Creating and using custom post types"
4831
  msgstr ""
4832
 
4833
- #: marketing/helpful-links.php:30
4834
- msgid "Arranging content with taxonomy"
4835
  msgstr ""
4836
 
4837
- #: marketing/helpful-links.php:31
4838
- msgid "Creating parent / child relationships"
4839
  msgstr ""
4840
 
4841
- #: marketing/helpful-links.php:37
4842
- msgid "Controlling which users can view and edit different fields"
4843
  msgstr ""
4844
 
4845
- #: marketing/helpful-links.php:38
4846
- msgid "Controlling which users can access different post types"
4847
  msgstr ""
4848
 
4849
- #: plus/installer/includes/installer.class.php:169
4850
- #: plus/installer/includes/installer.class.php:568 wpcf.php:154 wpcf.php:155
4851
- msgid "Installer"
4852
  msgstr ""
4853
 
4854
- #: plus/installer/includes/installer.class.php:277
4855
  msgid "Registered"
4856
  msgstr ""
4857
 
4858
- #: plus/installer/includes/installer.class.php:282
4859
  msgid "Register"
4860
  msgstr ""
4861
 
4862
- #: plus/installer/includes/installer.class.php:405
4863
  msgid ""
4864
  "To get automatic updates, you need to register %s for this site. %sRegister "
4865
  "%s%s"
4866
  msgstr ""
4867
 
4868
- #: plus/installer/includes/installer.class.php:430
4869
  msgid "Commercial"
4870
  msgstr ""
4871
 
4872
- #: plus/installer/includes/installer.class.php:524
4873
  msgid ""
4874
  "Installer cannot contact our updates server to get information about the "
4875
  "available products and check for new versions. If you are seeing this "
@@ -4879,11 +5339,11 @@ msgid ""
4879
  "line to your wp-config.php file:"
4880
  msgstr ""
4881
 
4882
- #: plus/installer/includes/installer.class.php:604
4883
  msgid "No repositories defined."
4884
  msgstr ""
4885
 
4886
- #: plus/installer/includes/installer.class.php:773
4887
  msgid ""
4888
  "%s cannot access %s to register. Try again to see if it's a temporary "
4889
  "problem. If the problem continues, make sure that this site has access to "
@@ -4891,53 +5351,53 @@ msgid ""
4891
  "will not receive automated updates."
4892
  msgstr ""
4893
 
4894
- #: plus/installer/includes/installer.class.php:783
4895
- #: plus/installer/includes/installer.class.php:865
4896
  msgid "Invalid site key for the current site."
4897
  msgstr ""
4898
 
4899
- #: plus/installer/includes/installer.class.php:995
4900
- #: plus/installer/includes/installer.class.php:1057
4901
  msgid ""
4902
  "You will have to renew your subscription in order to continue getting the "
4903
  "updates and support."
4904
  msgstr ""
4905
 
4906
- #: plus/installer/includes/installer.class.php:1009
4907
- #: plus/installer/includes/installer.class.php:1064
4908
  msgid "Your subscription expires in %d day."
4909
  msgid_plural "Your subscription expires in %d days."
4910
  msgstr[0] ""
4911
  msgstr[1] ""
4912
 
4913
- #: plus/installer/includes/installer.class.php:1140
4914
  msgid "%sRenew here%s."
4915
  msgstr ""
4916
 
4917
- #: plus/installer/includes/installer.class.php:1471
4918
  msgid ""
4919
  "Your subscription appears to no longer be valid. Please try to register "
4920
  "again using a valid site key."
4921
  msgstr ""
4922
 
4923
- #: plus/installer/includes/installer.class.php:1746
4924
  msgid ""
4925
  "You need to have a valid subscription in order to get upgrades or support "
4926
  "for this plugin. %sPurchase a subscription or enter an existing site key%s."
4927
  msgstr ""
4928
 
4929
- #: plus/installer/includes/installer.class.php:2118
4930
- #: plus/installer/includes/installer.class.php:2179
4931
  msgid ""
4932
  "%s cannot update because your site's registration is not valid. Please "
4933
  "%sregister %s%s again for this site first."
4934
  msgstr ""
4935
 
4936
- #: plus/installer/includes/installer.class.php:2203
4937
  msgid "Update Plugin"
4938
  msgstr ""
4939
 
4940
- #: plus/installer/includes/installer.class.php:2204
4941
  msgid "Return to the plugins page"
4942
  msgstr ""
4943
 
@@ -4958,53 +5418,53 @@ msgstr ""
4958
  msgid "Downloading"
4959
  msgstr ""
4960
 
4961
- #: plus/installer/templates/downloads-list-compact.php:51
4962
  msgid "downloading..."
4963
  msgstr ""
4964
 
4965
- #: plus/installer/templates/downloads-list-compact.php:52
4966
- #: plus/installer/templates/downloads-list.php:51
4967
  #: plus/installer/templates/downloads-list.php:52
 
4968
  msgid "failed!"
4969
  msgstr ""
4970
 
4971
- #: plus/installer/templates/downloads-list-compact.php:52
4972
  msgid "downloaded"
4973
  msgstr ""
4974
 
4975
- #: plus/installer/templates/downloads-list-compact.php:55
4976
- #: plus/installer/templates/downloads-list.php:55
4977
  msgid "activating"
4978
  msgstr ""
4979
 
4980
- #: plus/installer/templates/downloads-list-compact.php:56
4981
- #: plus/installer/templates/downloads-list.php:56
4982
  msgid "activated"
4983
  msgstr ""
4984
 
4985
- #: plus/installer/templates/downloads-list-compact.php:64
4986
- #: plus/installer/templates/downloads-list.php:69
4987
  msgid ""
4988
  "Downloading is not possible because WordPress cannot write into the plugins "
4989
  "folder. %sHow to fix%s."
4990
  msgstr ""
4991
 
4992
- #: plus/installer/templates/downloads-list-compact.php:68
4993
- #: plus/installer/templates/downloads-list.php:74
4994
  msgid "Download"
4995
  msgstr ""
4996
 
4997
- #: plus/installer/templates/downloads-list-compact.php:70
4998
- #: plus/installer/templates/downloads-list.php:76
4999
  msgid "Activate after download"
5000
  msgstr ""
5001
 
5002
- #: plus/installer/templates/downloads-list-compact.php:72
5003
- #: plus/installer/templates/downloads-list.php:78
5004
  msgid "Operation complete!"
5005
  msgstr ""
5006
 
5007
- #: plus/installer/templates/downloads-list-compact.php:74
5008
  msgid ""
5009
  "Download failed!\n"
5010
  "\n"
@@ -5027,27 +5487,27 @@ msgstr ""
5027
  msgid "Installed version"
5028
  msgstr ""
5029
 
5030
- #: plus/installer/templates/downloads-list.php:45
5031
  msgid "(embedded)"
5032
  msgstr ""
5033
 
5034
- #: plus/installer/templates/downloads-list.php:49
5035
  msgid "installing..."
5036
  msgstr ""
5037
 
5038
- #: plus/installer/templates/downloads-list.php:50
5039
  msgid "updating..."
5040
  msgstr ""
5041
 
5042
- #: plus/installer/templates/downloads-list.php:51
5043
  msgid "installed"
5044
  msgstr ""
5045
 
5046
- #: plus/installer/templates/downloads-list.php:52
5047
  msgid "updated"
5048
  msgstr ""
5049
 
5050
- #: plus/installer/templates/downloads-list.php:80
5051
  msgid ""
5052
  "Download failed!\n"
5053
  "\n"
@@ -5263,7 +5723,7 @@ msgid "Custom Types"
5263
  msgstr ""
5264
 
5265
  #: plus/types-access/includes/admin-edit-access.php:68
5266
- #: plus/types-access/includes/admin-edit-access.php:193
5267
  msgid "Managed by Access"
5268
  msgstr ""
5269
 
@@ -5273,121 +5733,107 @@ msgid ""
5273
  "Post when not Managed by Access."
5274
  msgstr ""
5275
 
5276
- #: plus/types-access/includes/admin-edit-access.php:177
5277
  msgid ""
5278
  "You need to manually set the access rules for taxonomy %s. That taxonomy is "
5279
  "shared between several post types that have different access rules."
5280
  msgstr ""
5281
 
5282
- #: plus/types-access/includes/admin-edit-access.php:207
5283
  msgid "Same as Parent"
5284
  msgstr ""
5285
 
5286
- #: plus/types-access/includes/admin-edit-access.php:281
5287
  msgid "Custom Roles"
5288
  msgstr ""
5289
 
5290
- #: plus/types-access/includes/admin-edit-access.php:291
5291
  msgid "On this page"
5292
  msgstr ""
5293
 
5294
- #: plus/types-access/includes/admin-edit-access.php:355
5295
- #: plus/types-access/includes/admin-edit-access.php:729
5296
  msgid "Guest"
5297
  msgstr ""
5298
 
5299
- #: plus/types-access/includes/admin-edit-access.php:431
5300
  msgid "Set all capabilities to users of type:"
5301
  msgstr ""
5302
 
5303
- #: plus/types-access/includes/admin-edit-access.php:434
5304
  msgid "Choose user type"
5305
  msgstr ""
5306
 
5307
- #: plus/types-access/includes/admin-edit-access.php:508
5308
  msgid ""
5309
  "Are you sure? All permission settings for this type will change to their "
5310
  "default values."
5311
  msgstr ""
5312
 
5313
- #: plus/types-access/includes/admin-edit-access.php:512
5314
  msgid "Reset to defaults"
5315
  msgstr ""
5316
 
5317
- #: plus/types-access/includes/admin-edit-access.php:574
5318
  msgid "No custom roles defined"
5319
  msgstr ""
5320
 
5321
- #: plus/types-access/includes/admin-edit-access.php:577
5322
  msgid ""
5323
  "The user level determines which admin actions WordPress allows different "
5324
  "kinds of users to perform."
5325
  msgstr ""
5326
 
5327
- #: plus/types-access/includes/admin-edit-access.php:584
5328
- #: plus/types-access/includes/admin-edit-access.php:607
5329
- #: plus/types-access/includes/admin-edit-access.php:665
5330
  msgid "Level %d"
5331
  msgstr ""
5332
 
5333
- #: plus/types-access/includes/admin-edit-access.php:623
5334
- #: plus/types-access/includes/admin-edit-access.php:680
5335
  msgid "Change level"
5336
  msgstr ""
5337
 
5338
- #: plus/types-access/includes/admin-edit-access.php:635
5339
- #: plus/types-access/includes/admin-edit-access.php:691
5340
  msgid "Delete role"
5341
  msgstr ""
5342
 
5343
- #: plus/types-access/includes/admin-edit-access.php:651
5344
  msgid "Undefined"
5345
  msgstr ""
5346
 
5347
- #: plus/types-access/includes/admin-edit-access.php:730
5348
  msgid "Specific user"
5349
  msgstr ""
5350
 
5351
- #: plus/types-access/includes/admin-edit-access.php:830
5352
  msgid "search"
5353
  msgstr ""
5354
 
5355
- #: plus/types-access/includes/admin-edit-access.php:863
5356
  msgid "New role"
5357
  msgstr ""
5358
 
5359
- #: plus/types-access/includes/admin-edit-access.php:894
5360
  msgid "Choose what role to change current %s users to:"
5361
  msgstr ""
5362
 
5363
- #: plus/types-access/includes/admin-edit-access.php:898
5364
  msgid "--- choose role ---"
5365
  msgstr ""
5366
 
5367
- #: plus/types-access/includes/admin-edit-access.php:901
5368
  msgid "Do you really want to remove this role?"
5369
  msgstr ""
5370
 
5371
- #: plus/types-access.php:44 plus/types-access.php:45
5372
- msgid "Access Control and User Roles"
5373
- msgstr ""
5374
-
5375
- #: plus/types-access.php:83
5376
- msgid "Access"
5377
- msgstr ""
5378
-
5379
  #: plus/types-access.php:85
5380
  msgid ""
5381
  "This screen shows a preview of %sAccess%s - the access control and roles "
5382
  "management addon for Types."
5383
  msgstr ""
5384
 
5385
- #: plus/types-access.php:88
5386
- msgid ""
5387
- "Access lets you control what content types different users can read, edit "
5388
- "and publish on your site and create custom roles."
5389
- msgstr ""
5390
-
5391
  #: plus/types-access.php:89
5392
  msgid ""
5393
  "%sBuy Access%s to unlock this screen and add access control management to "
2
  # This file is distributed under the same license as the Types package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Types 1.8\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/support/plugin/types\n"
7
+ "POT-Creation-Date: 2015-08-10 10:05:17+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
+ #. #-#-#-#-# wp_types.pot (Types 1.8) #-#-#-#-#
16
  #. Plugin Name of the plugin/theme
17
+ #: admin.php:63 admin.php:64
18
  #: embedded/common/visual-editor/editor-addon.class.php:104
19
  #: embedded/common/visual-editor/editor-addon.class.php:350
20
+ #: embedded/includes/fields/file.php:122 help.php:336
21
  msgid "Types"
22
  msgstr ""
23
 
24
+ #: admin.php:75 admin.php:469 admin.php:478
25
+ #: embedded/includes/module-manager.php:220 help.php:345
26
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:238
27
+ msgid "Post Types"
28
  msgstr ""
29
 
30
+ #: admin.php:83 admin.php:497 admin.php:505 help.php:349
31
+ #: plus/types-access/includes/admin-edit-access.php:138
32
  msgid "Custom Taxonomies"
33
  msgstr ""
34
 
35
+ #: admin.php:91 admin.php:664 help.php:357 includes/fields.php:1350
 
36
  msgid "Custom Fields"
37
  msgstr ""
38
 
39
+ #: admin.php:99 embedded/usermeta-init.php:154
40
+ msgid "User Fields"
41
  msgstr ""
42
 
43
+ #: admin.php:107 admin.php:728
44
+ msgid "Settings"
 
45
  msgstr ""
46
 
47
+ #: admin.php:124 admin.php:758 embedded/usermeta-init.php:164
48
+ #: includes/usermeta-list.php:49 includes/usermeta-list.php:69
49
  msgid "User Fields Control"
50
  msgstr ""
51
 
52
+ #: admin.php:138 admin.php:675 admin.php:753 includes/fields-list.php:51
53
+ msgid "Custom Fields Control"
54
  msgstr ""
55
 
56
+ #: admin.php:151 admin.php:632 admin.php:763 help.php:373
57
+ msgid "Import/Export"
58
  msgstr ""
59
 
60
+ #: admin.php:164 admin.php:778
61
  msgid "Debug Information"
62
  msgstr ""
63
 
64
+ #: admin.php:174
65
  msgid "Edit Group"
66
  msgstr ""
67
 
68
+ #: admin.php:174 admin.php:431
69
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:560
70
+ msgid "Add New Custom Fields Group"
71
  msgstr ""
72
 
73
+ #: admin.php:190 admin.php:425
74
+ msgid "View Custom Fields Group"
75
  msgstr ""
76
 
77
+ #: admin.php:202 admin.php:558
78
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:612
79
  msgid "Add New Custom Post Type"
80
  msgstr ""
81
 
82
+ #: admin.php:204 admin.php:545
83
+ msgid "Edit Custom Post Type"
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  msgstr ""
85
 
86
+ #: admin.php:206 admin.php:547
87
+ msgid "Edit Post Type"
88
  msgstr ""
89
 
90
+ #: admin.php:224 admin.php:542
91
+ msgid "View Custom Post Type"
 
92
  msgstr ""
93
 
94
+ #: admin.php:235 admin.php:600
95
+ msgid "Edit Custom Taxonomy"
96
  msgstr ""
97
 
98
+ #: admin.php:235 admin.php:598
99
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:550
100
+ msgid "Add New Custom Taxonomy"
101
  msgstr ""
102
 
103
+ #: admin.php:251 admin.php:596
104
+ msgid "View Custom Taxonomy"
105
  msgstr ""
106
 
107
+ #: admin.php:265 embedded/usermeta-init.php:97
108
+ msgid "Edit User Fields Group"
 
 
 
 
109
  msgstr ""
110
 
111
+ #: admin.php:265 embedded/usermeta-init.php:100
112
+ #: includes/classes/class.wpcf.user.fields.list.table.php:542
113
+ msgid "Add New User Fields Group"
 
114
  msgstr ""
115
 
116
+ #: admin.php:280 embedded/usermeta-init.php:93
117
+ msgid "View User Fields Group"
118
  msgstr ""
119
 
120
+ #: admin.php:296 admin.php:297 admin.php:702
121
+ msgid "Migration"
 
122
  msgstr ""
123
 
124
+ #: admin.php:324 embedded/usermeta-init.php:182 help.php:365
125
+ msgid "User Fields Groups"
126
  msgstr ""
127
 
128
+ #: admin.php:334 admin.php:342
129
+ msgid "Custom Fields Groups"
 
 
 
130
  msgstr ""
131
 
132
+ #: admin.php:428
133
+ msgid "Edit Custom Fields Group"
134
  msgstr ""
135
 
136
+ #: admin.php:480 admin.php:555 admin.php:829 embedded/usermeta-init.php:184
137
+ #: help.php:35 help.php:119 help.php:151 help.php:280
138
+ #: includes/custom-types-form.php:1046 includes/custom-types-form.php:1048
139
+ msgid "Add New"
140
  msgstr ""
141
 
142
+ #: admin.php:663
143
+ msgid "Custom Field"
144
  msgstr ""
145
 
146
+ #: admin.php:742
147
+ msgid "Types tools"
148
  msgstr ""
149
 
150
+ #: admin.php:754
151
+ msgid "Allow to control custom fields."
152
  msgstr ""
153
 
154
+ #: admin.php:759
155
+ msgid "Allow to control user meta fields."
156
  msgstr ""
157
 
158
+ #: admin.php:764
159
+ msgid "For import or export data from Types."
160
  msgstr ""
161
 
162
+ #: admin.php:768 plus/types-access.php:44 plus/types-access.php:83
163
+ msgid "Access"
164
  msgstr ""
165
 
166
+ #: admin.php:769 plus/types-access.php:88
167
  msgid ""
168
+ "Access lets you control what content types different users can read, edit "
169
+ "and publish on your site and create custom roles."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
170
  msgstr ""
171
 
172
+ #: admin.php:773 plus/installer/includes/installer.class.php:189
173
+ #: plus/installer/includes/installer.class.php:634 wpcf.php:154
174
+ msgid "Installer"
175
  msgstr ""
176
 
177
+ #: admin.php:774
178
+ msgid "This page lets you install plugins and update existing plugins."
179
  msgstr ""
180
 
181
+ #: admin.php:779
182
+ msgid "For retrieving debug information if asked by a support person."
183
  msgstr ""
184
 
185
+ #: admin.php:889
186
+ msgid "No results"
 
 
187
  msgstr ""
188
 
189
+ #: embedded/admin.php:284
190
+ msgid "This field is required."
191
  msgstr ""
192
 
193
+ #: embedded/admin.php:285
194
+ msgid "Please enter a valid email address."
195
  msgstr ""
196
 
197
+ #: embedded/admin.php:286
198
+ msgid "Please enter a valid URL address."
199
  msgstr ""
200
 
201
+ #: embedded/admin.php:287
202
+ msgid "Please enter a valid date."
203
  msgstr ""
204
 
205
+ #: embedded/admin.php:288 embedded/admin.php:289
206
+ msgid "Please enter numeric data."
 
 
 
 
207
  msgstr ""
208
 
209
  #: embedded/admin.php:290
210
+ msgid "Letters, numbers, spaces or underscores only please."
211
  msgstr ""
212
 
213
  #: embedded/admin.php:291
214
+ msgid "Letters, numbers, spaces, underscores and dashes only please."
 
 
 
 
215
  msgstr ""
216
 
217
+ #: embedded/admin.php:292
218
+ msgid "Letters, numbers, slashes, underscores and dashes only please."
219
  msgstr ""
220
 
221
+ #: embedded/admin.php:293
 
 
 
 
 
 
 
 
222
  msgid "Please enter a date after 1 January 1970."
223
  msgstr ""
224
 
225
+ #: embedded/admin.php:294
226
  msgid "Maximum of %s characters exceeded."
227
  msgstr ""
228
 
229
+ #: embedded/admin.php:295
230
  msgid "Minimum of %s characters has not been reached."
231
  msgstr ""
232
 
233
+ #: embedded/admin.php:300
234
  msgid "Letters, numbers, dashes, underscores, commas and periods only please."
235
  msgstr ""
236
 
237
+ #: embedded/admin.php:425
238
+ #: includes/classes/class.wpcf.marketing.messages.php:326
239
+ #: plus/installer/includes/installer.class.php:470
240
+ msgid "Dismiss"
241
+ msgstr ""
242
+
243
+ #: embedded/classes/class.wpcf-post-types.php:302
244
  msgid "Archive for %s"
245
  msgstr ""
246
 
247
+ #: embedded/classes/editor.php:133 includes/custom-taxonomies-form.php:597
248
  msgid "Update %s"
249
  msgstr ""
250
 
253
  msgstr ""
254
 
255
  #: embedded/classes/editor.php:169 embedded/classes/editor.php:170
256
+ #: embedded/includes/examples/google_map.php:173
257
+ #: embedded/includes/examples/google_map.php:174
258
  msgid "Display"
259
  msgstr ""
260
 
262
  msgid "There are no additional display options for the %s field."
263
  msgstr ""
264
 
265
+ #: embedded/classes/editor.php:312
266
  msgid "Shortcode generation failed"
267
  msgstr ""
268
 
269
+ #: embedded/classes/forms.php:883
270
+ msgid "[no title]"
271
+ msgstr ""
272
+
273
+ #: embedded/classes/forms.php:965 embedded/classes/forms.php:968
274
+ msgid "Set featured image"
275
+ msgstr ""
276
+
277
+ #: embedded/classes/forms.php:966 embedded/classes/forms.php:968
278
+ msgid "Remove featured image"
279
+ msgstr ""
280
+
281
+ #: embedded/classes/post-types/messages.php:9
282
  msgid ""
283
  "It is not recommended to have same plural and singular name for a post type. "
284
  "Please use a different name for the singular and plural names."
285
  msgstr ""
286
 
287
+ #: embedded/classes/post-types/messages.php:10
288
  msgid "Ignore this warning."
289
  msgstr ""
290
 
296
  msgid "Show"
297
  msgstr ""
298
 
299
+ #: embedded/classes/relationship/form-child.php:558
300
+ #: embedded/classes/relationship/form-child.php:569
301
  msgid "No %s"
302
  msgstr ""
303
 
304
+ #: embedded/classes/relationship/form-child.php:725
305
+ #: embedded/classes/relationship/form-child.php:739
306
  msgid "No parents available"
307
  msgstr ""
308
 
309
+ #: embedded/classes/relationship/form-child.php:794
310
  msgid "Post Title"
311
  msgstr ""
312
 
313
+ #: embedded/classes/relationship/form-child.php:805
314
  msgid "Post Body"
315
  msgstr ""
316
 
317
+ #: embedded/classes/relationship/form-child.php:866
318
+ msgid "Feature Image"
319
+ msgstr ""
320
+
321
+ #: embedded/classes/relationship/form-child.php:869
322
+ #: includes/post-relationship.php:189
323
  msgid "Post excerpt"
324
  msgstr ""
325
 
326
+ #: embedded/classes/relationship.php:373
327
  msgid "Child post \"%s\" field \"%s\" not updated:"
328
  msgstr ""
329
 
330
+ #: embedded/classes/relationship.php:425
331
+ msgid "New Child"
332
  msgstr ""
333
 
334
  #: embedded/classes/repeater.php:70 embedded/classes/usermeta_repeater.php:42
339
  msgid "Required"
340
  msgstr ""
341
 
342
+ #: embedded/classes/validate.php:266 embedded/common/classes/validate.php:264
343
  #: embedded/includes/fields/email.php:11 embedded/includes/fields/email.php:12
344
  msgid "Email"
345
  msgstr ""
346
 
347
+ #: embedded/classes/validate.php:317 embedded/common/classes/validate.php:312
348
  #: embedded/includes/fields/date.php:97 embedded/includes/fields/date.php:98
349
  msgid "Date"
350
  msgstr ""
351
 
352
+ #: embedded/classes/validate.php:352 embedded/common/classes/validate.php:347
353
  msgid "Digits"
354
  msgstr ""
355
 
356
+ #: embedded/classes/validate.php:381 embedded/common/classes/validate.php:375
357
  #: embedded/includes/fields/numeric.php:22
358
  #: embedded/includes/fields/numeric.php:23
359
  msgid "Numeric"
366
  "comparison()"
367
  msgstr ""
368
 
369
+ #: embedded/classes/validation-cakephp.php:423
370
  #: embedded/common/classes/validation-cakephp.php:400
371
  msgid "You must define a regular expression for Wpcf_Cake_Validation::custom()"
372
  msgstr ""
373
 
374
+ #: embedded/classes/validation-cakephp.php:1005
375
  #: embedded/common/classes/validation-cakephp.php:1002
376
  #: embedded/common/toolset-forms/lib/CakePHP-Validation.php:1010
377
  msgid "Could not find %s class, unable to complete validation."
378
  msgstr ""
379
 
380
+ #: embedded/classes/validation-cakephp.php:1009
381
  #: embedded/common/classes/validation-cakephp.php:1006
382
  #: embedded/common/toolset-forms/lib/CakePHP-Validation.php:1014
383
  msgid "Method %s does not exist on %s unable to complete validation."
384
  msgstr ""
385
 
386
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:107
387
  msgid "Design with Toolset"
388
  msgstr ""
389
 
390
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:125
391
+ msgid "Remove this menu"
392
+ msgstr ""
393
+
394
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:637
395
  msgid "Create a new"
396
  msgstr ""
397
 
398
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:648
399
+ #: embedded/includes/relationship/child-table-row.php:39 help.php:37
400
+ #: help.php:121 help.php:153 help.php:282
401
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:144
402
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:148
403
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:136
404
+ #: includes/classes/class.wpcf.user.fields.list.table.php:134
405
+ #: includes/conditional-display.php:166 includes/fields-control.php:230
406
+ #: includes/fields-form.php:1515 includes/fields-form.php:1585
407
+ #: includes/post-relationship.php:336 includes/post-relationship.php:385
408
+ #: includes/usermeta-control.php:219
409
  msgid "Edit"
410
  msgstr ""
411
 
412
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:651
413
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:686
414
  msgid "Layout"
415
  msgstr ""
416
 
417
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:652
418
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:687
419
+ msgid "Archive"
 
 
 
 
 
 
 
 
420
  msgstr ""
421
 
422
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:652
423
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:687
424
  msgid "Template"
425
  msgstr ""
426
 
427
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:691
428
  msgid "for"
429
  msgstr ""
430
 
431
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:697
432
  msgid "Error 404 page"
433
  msgstr ""
434
 
435
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:704
436
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:718
437
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:720
438
  msgid "Archives"
439
  msgstr ""
440
 
441
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:722
442
  msgid "Unsupported post type archives"
443
  msgstr ""
444
 
445
+ #: embedded/common/classes/class-toolset-admin-bar-menu.php:726
446
  msgid "Unsupported page"
447
  msgstr ""
448
 
449
+ #: embedded/common/classes/class.toolset.promo.php:123
450
  msgid ""
451
  "Want to edit Views, CRED forms and Layouts? Get the full <em>Toolset</em> "
452
  "package!"
453
  msgstr ""
454
 
455
+ #: embedded/common/classes/class.toolset.promo.php:126
456
  msgid ""
457
  "The full <em>Toolset</em> package allows you to develop and customize themes "
458
  "without touching PHP. You will be able to:"
459
  msgstr ""
460
 
461
+ #: embedded/common/classes/class.toolset.promo.php:130
462
  msgid "Create templates"
463
  msgstr ""
464
 
465
+ #: embedded/common/classes/class.toolset.promo.php:131
466
  msgid "Design page layouts using drag-and-drop"
467
  msgstr ""
468
 
469
+ #: embedded/common/classes/class.toolset.promo.php:132
470
+ #: embedded/includes/fields-post.php:1841
471
  msgid "Build parametric searches"
472
  msgstr ""
473
 
474
+ #: embedded/common/classes/class.toolset.promo.php:135
475
  msgid "Display lists of content"
476
  msgstr ""
477
 
478
+ #: embedded/common/classes/class.toolset.promo.php:136
479
  msgid "Create front-end content editing forms"
480
  msgstr ""
481
 
482
+ #: embedded/common/classes/class.toolset.promo.php:137
483
  msgid "and more…"
484
  msgstr ""
485
 
486
+ #: embedded/common/classes/class.toolset.promo.php:141
487
  msgid ""
488
  "Once you buy the full Toolset, you will be able to edit Views, CRED forms "
489
  "and Layouts in your site, as well as build new ones."
490
  msgstr ""
491
 
492
+ #: embedded/common/classes/class.toolset.promo.php:144
493
  msgid "<em>Toolset</em> Package Options"
494
  msgstr ""
495
 
496
+ #: embedded/common/classes/class.toolset.promo.php:146
497
  msgid "Learn more about <em>Toolset</em>"
498
  msgstr ""
499
 
500
+ #: embedded/common/debug/debug-information.php:14
501
+ #: embedded/common/debug/debug-information.php:17
502
  msgid "Debug information"
503
  msgstr ""
504
 
505
+ #: embedded/common/debug/debug-information.php:19
506
  msgid ""
507
  "This information allows our support team to see the versions of WordPress, "
508
  "plugins and theme on your site. Provide this information if requested in our "
509
  "support forum. No passwords or other confidential information is included."
510
  msgstr ""
511
 
512
+ #: embedded/common/debug/functions_debug_information.php:63
513
  msgid "n/a"
514
  msgstr ""
515
 
529
  msgid "Don't show this message again"
530
  msgstr ""
531
 
532
+ #: embedded/common/toolset-forms/classes/class.audio.php:29
533
  msgid "You can add only audio."
534
  msgstr ""
535
 
536
+ #: embedded/common/toolset-forms/classes/class.colorpicker.php:34
537
+ #: embedded/common/toolset-forms/classes/class.credfile.php:143
538
  #: embedded/common/toolset-forms/classes/class.date.php:233
539
  #: embedded/common/visual-editor/editor-addon.class.php:699
540
  msgid "Clear"
541
  msgstr ""
542
 
543
+ #: embedded/common/toolset-forms/classes/class.colorpicker.php:35
544
+ #: includes/fields/radio.php:206 includes/fields/select.php:135
545
  msgid "Default"
546
  msgstr ""
547
 
548
+ #: embedded/common/toolset-forms/classes/class.colorpicker.php:36
549
  #: embedded/common/toolset-forms/classes/class.date.php:129
550
  #: embedded/common/toolset-forms/classes/class.date.php:197
551
  #: embedded/includes/fields/select.php:10
553
  msgid "Select"
554
  msgstr ""
555
 
556
+ #: embedded/common/toolset-forms/classes/class.colorpicker.php:65
557
  msgid "You can add valid hexadecimal."
558
  msgstr ""
559
 
560
+ #: embedded/common/toolset-forms/classes/class.credfile.php:94
561
  msgid "Featured Image"
562
  msgstr ""
563
 
564
+ #: embedded/common/toolset-forms/classes/class.credfile.php:139
565
  msgid "Restore original"
566
  msgstr ""
567
 
568
  #: embedded/common/toolset-forms/classes/class.date.php:192
569
  #: embedded/includes/fields/date.php:232
570
+ #: embedded/includes/usermeta-post.php:645
571
  msgid "Hour"
572
  msgstr ""
573
 
574
  #: embedded/common/toolset-forms/classes/class.date.php:215
575
  #: embedded/includes/fields/date.php:254
576
+ #: embedded/includes/usermeta-post.php:645
577
  msgid "Minute"
578
  msgstr ""
579
 
581
  msgid "Select minute"
582
  msgstr ""
583
 
584
+ #: embedded/common/toolset-forms/classes/class.date.scripts.php:134
585
+ #: embedded/includes/fields/date/js.php:30
586
  msgid "Select date"
587
  msgstr ""
588
 
589
+ #: embedded/common/toolset-forms/classes/class.date.scripts.php:137
590
  #: embedded/includes/fields/date/js.php:12
591
  msgid "Input format: %s"
592
  msgstr ""
593
 
594
+ #: embedded/common/toolset-forms/classes/class.date.scripts.php:141
595
  msgid "This is a read-only date input"
596
  msgstr ""
597
 
598
+ #: embedded/common/toolset-forms/classes/class.eforms.php:389
599
+ #: embedded/includes/fields-post.php:1424
600
+ #: embedded/includes/fields-post.php:1425
601
  msgid ""
602
  "This field is locked for editing because WPML will copy its value from the "
603
  "original language."
604
  msgstr ""
605
 
606
+ #: embedded/common/toolset-forms/classes/class.file.php:111
607
  msgid "audio"
608
  msgstr ""
609
 
610
+ #: embedded/common/toolset-forms/classes/class.file.php:114
611
  msgid "image"
612
  msgstr ""
613
 
614
+ #: embedded/common/toolset-forms/classes/class.file.php:117
615
  msgid "video"
616
  msgstr ""
617
 
618
+ #: embedded/common/toolset-forms/classes/class.file.php:120
619
  msgid "file"
620
  msgstr ""
621
 
622
+ #: embedded/common/toolset-forms/classes/class.file.php:126
623
+ #: embedded/includes/fields/file.php:29
624
  msgid "Select %s"
625
  msgstr ""
626
 
627
+ #: embedded/common/toolset-forms/classes/class.form_factory.php:269
628
  msgid "There is a problem rendering field <strong>%s (%s)</strong>."
629
  msgstr ""
630
 
631
+ #: embedded/common/toolset-forms/classes/class.image.php:39
632
  msgid "You can add only images."
633
  msgstr ""
634
 
635
+ #: embedded/common/toolset-forms/classes/class.skype.php:36
636
+ #: embedded/includes/fields/skype.php:90 embedded/includes/fields/skype.php:92
637
  msgid "Edit Skype button"
638
  msgstr ""
639
 
640
+ #: embedded/common/toolset-forms/classes/class.skype.php:103
641
+ msgid "Edit Skype"
 
642
  msgstr ""
643
 
644
+ #: embedded/common/toolset-forms/classes/class.skype.php:135
645
+ msgid "Preview of your Skype button"
 
646
  msgstr ""
647
 
648
+ #: embedded/common/toolset-forms/classes/class.skype.php:136
649
+ msgid "*Hover over to see the menu"
 
650
  msgstr ""
651
 
652
+ #: embedded/common/toolset-forms/classes/class.skype.php:137
653
+ msgid "Note"
654
+ msgstr ""
655
+
656
+ #: embedded/common/toolset-forms/classes/class.skype.php:138
657
  msgid ""
658
+ "Skype button background is transparent and will work on any colour "
659
+ "backgrounds."
660
+ msgstr ""
661
+
662
+ #: embedded/common/toolset-forms/classes/class.skype.php:152
663
+ #: embedded/includes/fields/skype.php:198
664
+ msgid "Enter your Skype Name"
665
+ msgstr ""
666
+
667
+ #: embedded/common/toolset-forms/classes/class.skype.php:161
668
+ msgid "Call"
669
+ msgstr ""
670
+
671
+ #: embedded/common/toolset-forms/classes/class.skype.php:162
672
+ msgid "Start a call with just a click."
673
+ msgstr ""
674
+
675
+ #: embedded/common/toolset-forms/classes/class.skype.php:171
676
+ msgid "Chat"
677
+ msgstr ""
678
+
679
+ #: embedded/common/toolset-forms/classes/class.skype.php:173
680
+ msgid "Start the conversation with an instant message."
681
  msgstr ""
682
 
683
+ #: embedded/common/toolset-forms/classes/class.skype.php:180
684
+ msgid "Choose what you'd like your button to do"
685
+ msgstr ""
686
+
687
+ #: embedded/common/toolset-forms/classes/class.skype.php:185
688
+ msgid "Choose how you want your button to look"
689
+ msgstr ""
690
+
691
+ #: embedded/common/toolset-forms/classes/class.skype.php:194
692
+ msgid "Blue"
693
+ msgstr ""
694
+
695
+ #: embedded/common/toolset-forms/classes/class.skype.php:202
696
+ msgid "White"
697
+ msgstr ""
698
+
699
+ #: embedded/common/toolset-forms/classes/class.skype.php:246
700
  #: embedded/includes/relationship/child-table-row.php:31
701
+ #: includes/common-functions.php:56 includes/fields-form.php:295
702
+ #: includes/fields-form.php:903 includes/post-relationship.php:252
703
+ #: includes/usermeta-form.php:249 includes/usermeta-form.php:642
704
+ #: plus/types-access/includes/admin-edit-access.php:909
705
  msgid "Save"
706
  msgstr ""
707
 
708
+ #: embedded/common/toolset-forms/classes/class.taxonomyhierarchical.php:96
709
+ #: embedded/views/editor-modal-window.php:89 includes/fields-form.php:1524
710
+ #: includes/fields-form.php:1639 includes/post-relationship.php:378
711
  #: includes/post-relationship.php:432
712
  #: plus/installer/templates/repository-listing.php:27
713
+ #: plus/types-access/includes/admin-edit-access.php:614
714
+ #: plus/types-access/includes/admin-edit-access.php:671
715
+ #: plus/types-access/includes/admin-edit-access.php:839
716
+ #: plus/types-access/includes/admin-edit-access.php:869
717
+ #: plus/types-access/includes/admin-edit-access.php:915
718
  msgid "Cancel"
719
  msgstr ""
720
 
721
+ #: embedded/common/toolset-forms/classes/class.video.php:65
722
  msgid "You can add only video."
723
  msgstr ""
724
 
733
  "You must define a regular expression for WPToolset_Cake_Validation::custom()"
734
  msgstr ""
735
 
736
+ #: embedded/common/toolset-forms/templates/metaform-item.php:13
737
  #: embedded/includes/repetitive-fields-ordering.php:93
738
  #: embedded/includes/repetitive-usermetafields-ordering.php:93
739
  msgid "Delete %s"
740
  msgstr ""
741
 
742
+ #: embedded/common/toolset-forms/templates/metaform-item.php:33
743
+ #: embedded/includes/relationship/child-table-row.php:50 help.php:43
744
+ #: help.php:127 help.php:159 help.php:288
745
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:162
746
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:284
747
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:185
748
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:299
749
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:170
750
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:291
751
+ #: includes/classes/class.wpcf.user.fields.list.table.php:152
752
+ #: includes/fields-control.php:244 includes/usermeta-control.php:233
753
+ #: plus/types-access/includes/admin-edit-access.php:911
754
  msgid "Delete"
755
  msgstr ""
756
 
757
+ #: embedded/common/toolset-forms/templates/metaform.php:18
758
+ #: embedded/common/toolset-forms/templates/metaform.php:59
759
  msgid "Add new %s"
760
  msgstr ""
761
 
762
+ #: embedded/common/visual-editor/editor-addon-generic.class.php:42
763
+ msgid "Insert conditional shortcode"
764
+ msgstr ""
765
+
766
  #: embedded/common/visual-editor/editor-addon-generic.class.php:43
767
+ msgid "conditional output"
768
+ msgstr ""
769
+
770
+ #: embedded/common/visual-editor/editor-addon-generic.class.php:49
771
  msgid "You can only use an image file here"
772
  msgstr ""
773
 
774
+ #: embedded/common/visual-editor/editor-addon.class.php:72
775
+ #: embedded/common/visual-editor/editor-addon.class.php:543
776
+ #: embedded/common/visual-editor/editor-addon.class.php:661
777
+ #: embedded/common/visual-editor/views-editor-addon.class.php:203
778
+ #: embedded/common/visual-editor/views-editor-addon.class.php:215
779
+ msgid "Content Template"
780
+ msgstr ""
781
+
782
  #: embedded/common/visual-editor/editor-addon.class.php:74
783
  #: embedded/common/visual-editor/editor-addon.class.php:83
784
  #: embedded/common/visual-editor/editor-addon.class.php:305
790
  #: embedded/common/visual-editor/editor-addon.class.php:734
791
  #: embedded/common/visual-editor/editor-addon.class.php:739
792
  #: embedded/common/visual-editor/editor-addon.class.php:745
793
+ #: embedded/common/visual-editor/views-editor-addon.class.php:199
794
+ #: embedded/common/visual-editor/views-editor-addon.class.php:222
795
  msgid "Post View"
796
  msgstr ""
797
 
805
  #: embedded/common/visual-editor/editor-addon.class.php:737
806
  #: embedded/common/visual-editor/editor-addon.class.php:745
807
  #: embedded/common/visual-editor/editor-addon.class.php:749
808
+ #: embedded/common/visual-editor/views-editor-addon.class.php:198
809
+ #: embedded/common/visual-editor/views-editor-addon.class.php:223
810
  msgid "Taxonomy View"
811
  msgstr ""
812
 
820
  #: embedded/common/visual-editor/editor-addon.class.php:739
821
  #: embedded/common/visual-editor/editor-addon.class.php:743
822
  #: embedded/common/visual-editor/editor-addon.class.php:749
823
+ #: embedded/common/visual-editor/views-editor-addon.class.php:197
824
+ #: embedded/common/visual-editor/views-editor-addon.class.php:224
825
  msgid "User View"
826
  msgstr ""
827
 
829
  #: embedded/common/visual-editor/editor-addon.class.php:132
830
  #: embedded/common/visual-editor/editor-addon.class.php:348
831
  #: embedded/common/visual-editor/editor-addon.class.php:363
832
+ #: embedded/common/visual-editor/views-editor-addon.class.php:145
833
+ #: embedded/common/visual-editor/views-editor-addon.class.php:150
834
  msgid "Fields and Views"
835
  msgstr ""
836
 
861
  #: embedded/common/visual-editor/editor-addon.class.php:221
862
  #: embedded/common/visual-editor/editor-addon.class.php:538
863
  #: embedded/common/visual-editor/editor-addon.class.php:663
864
+ #: embedded/common/visual-editor/views-editor-addon.class.php:205
865
+ #: embedded/common/visual-editor/views-editor-addon.class.php:213
866
  msgid "Basic"
867
  msgstr ""
868
 
891
  msgstr ""
892
 
893
  #: embedded/common/visual-editor/editor-addon.class.php:206
894
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:228
895
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:249
896
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:236
897
+ #: includes/classes/class.wpcf.user.fields.list.table.php:218
898
+ #: includes/common-functions.php:159 includes/custom-taxonomies-form.php:175
899
+ #: includes/custom-types-form.php:235 includes/fields/checkbox.php:48
900
+ #: includes/fields/checkboxes.php:43 includes/fields/date.php:44
901
+ #: includes/fields/radio.php:37 includes/fields/select.php:37
902
  msgid "Description"
903
  msgstr ""
904
 
939
  msgid "Users fields"
940
  msgstr ""
941
 
942
+ #: embedded/common/visual-editor/editor-addon.class.php:251 help.php:65
943
  msgid "User fields"
944
  msgstr ""
945
 
952
  msgstr ""
953
 
954
  #: embedded/common/visual-editor/editor-addon.class.php:660
955
+ #: embedded/common/visual-editor/views-editor-addon.class.php:200
956
+ #: embedded/common/visual-editor/views-editor-addon.class.php:221
957
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:176
958
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:191
959
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:184
960
+ #: includes/classes/class.wpcf.user.fields.list.table.php:166
961
+ #: includes/fields-form.php:1583
962
  msgid "View"
963
  msgstr ""
964
 
965
  #: embedded/common/visual-editor/editor-addon.class.php:662
966
+ #: embedded/common/visual-editor/views-editor-addon.class.php:204
967
+ #: embedded/common/visual-editor/views-editor-addon.class.php:214 help.php:353
968
+ #: plus/types-access/includes/admin-edit-access.php:161
969
  msgid "Taxonomy"
970
  msgstr ""
971
 
974
  msgstr ""
975
 
976
  #: embedded/common/visual-editor/editor-addon.class.php:697
977
+ #: embedded/common/visual-editor/views-editor-addon.class.php:250
978
  msgid "Search"
979
  msgstr ""
980
 
981
+ #: embedded/common/visual-editor/views-editor-addon.class.php:112
982
+ #: embedded/common/visual-editor/views-editor-addon.class.php:201
983
+ #: embedded/common/visual-editor/views-editor-addon.class.php:220
984
+ msgid "Post field"
985
+ msgstr ""
986
+
987
+ #: embedded/common/visual-editor/views-editor-addon.class.php:169
988
  msgid "Jump to:"
989
  msgstr ""
990
 
991
+ #: embedded/common/visual-editor/views-editor-addon.class.php:196
992
+ #: embedded/common/visual-editor/views-editor-addon.class.php:225
993
  msgid "WPML"
994
  msgstr ""
995
 
996
+ #: embedded/common/visual-editor/views-editor-addon.class.php:202
997
+ #: embedded/common/visual-editor/views-editor-addon.class.php:216
998
+ msgid "User basic data"
999
  msgstr ""
1000
 
1001
  #: embedded/common/wp-pointer.php:156
1002
  msgid "Some pointer hints have been hidden on this page. %sShow them again%s"
1003
  msgstr ""
1004
 
1005
+ #: embedded/functions.php:149
1006
+ msgid "settings.xml file missing"
 
1007
  msgstr ""
1008
 
1009
+ #: embedded/functions.php:155
1010
+ msgid ""
1011
+ "You have Types import pending. %sClick here to import.%s %sDismiss message.%s"
1012
  msgstr ""
1013
 
1014
+ #: embedded/functions.php:488 includes/fields-form.php:1637
1015
  msgid "Close"
1016
  msgstr ""
1017
 
1100
  msgid "Your input should look something like \"41.934146,12.455821\""
1101
  msgstr ""
1102
 
1103
+ #: embedded/includes/examples/google_map.php:164
1104
  #: embedded/views/templates/editor-modal-embed.tpl.php:27
1105
+ #: embedded/views/templates/editor-modal-image.tpl.php:92
1106
  #: embedded/views/templates/editor-modal-video.tpl.php:31
1107
  msgid "Width"
1108
  msgstr ""
1109
 
1110
+ #: embedded/includes/examples/google_map.php:166
1111
  #: embedded/views/templates/editor-modal-embed.tpl.php:31
1112
+ #: embedded/views/templates/editor-modal-image.tpl.php:96
1113
  #: embedded/views/templates/editor-modal-video.tpl.php:35
1114
  msgid "Height"
1115
  msgstr ""
1116
 
1117
+ #: embedded/includes/examples/google_map.php:220
1118
  msgid "View Larger Map"
1119
  msgstr ""
1120
 
1121
+ #: embedded/includes/fields/audio.php:15 embedded/includes/fields/audio.php:16
1122
  msgid "Audio"
1123
  msgstr ""
1124
 
1125
+ #: embedded/includes/fields/audio.php:68
1126
+ #: embedded/includes/fields/checkbox.php:91
1127
  #: embedded/includes/fields/checkboxes.php:77
1128
  #: embedded/includes/fields/date.php:474 embedded/includes/fields/email.php:51
1129
+ #: embedded/includes/fields/embed.php:99 embedded/includes/fields/file.php:203
1130
+ #: embedded/includes/fields/image.php:148
1131
  #: embedded/includes/fields/numeric.php:88
1132
+ #: embedded/includes/fields/radio.php:92 embedded/includes/fields/url.php:71
1133
+ #: embedded/includes/fields/video.php:101
 
1134
  msgid "Display options"
1135
  msgstr ""
1136
 
1137
+ #: embedded/includes/fields/audio.php:69
1138
+ #: embedded/includes/fields/checkbox.php:92
1139
  #: embedded/includes/fields/checkboxes.php:78
1140
  #: embedded/includes/fields/date.php:475 embedded/includes/fields/email.php:52
1141
  #: embedded/includes/fields/embed.php:100
1142
+ #: embedded/includes/fields/file.php:204
1143
+ #: embedded/includes/fields/image.php:149
1144
  #: embedded/includes/fields/numeric.php:89
1145
+ #: embedded/includes/fields/radio.php:93 embedded/includes/fields/url.php:72
1146
+ #: embedded/includes/fields/video.php:102
 
1147
  msgid "Display options for this field:"
1148
  msgstr ""
1149
 
1150
+ #: embedded/includes/fields/checkbox.php:19
1151
+ #: embedded/includes/fields/checkbox.php:20
1152
  msgid "Checkbox"
1153
  msgstr ""
1154
 
1155
  #: embedded/includes/fields/checkboxes.php:13
1156
  #: embedded/includes/fields/checkboxes.php:14
1157
+ #: includes/fields/checkboxes.php:72
1158
  msgid "Checkboxes"
1159
  msgstr ""
1160
 
1164
  msgstr ""
1165
 
1166
  #: embedded/includes/fields/colorpicker.php:39
1167
+ #: embedded/includes/fields/colorpicker.php:125
1168
  #: embedded/includes/fields/colorpicker.php:126
 
1169
  msgid "Pick color"
1170
  msgstr ""
1171
 
1172
+ #: embedded/includes/fields/colorpicker.php:126
1173
  msgid "Done"
1174
  msgstr ""
1175
 
1195
  msgid "Embedded Media"
1196
  msgstr ""
1197
 
1198
+ #: embedded/includes/fields/file.php:14 embedded/includes/fields/file.php:15
1199
  msgid "File"
1200
  msgstr ""
1201
 
1202
+ #: embedded/includes/fields/file.php:128
1203
  msgid "Use as field value"
1204
  msgstr ""
1205
 
1206
+ #: embedded/includes/fields/image.php:20 embedded/includes/fields/image.php:21
1207
  msgid "Image"
1208
  msgstr ""
1209
 
1210
+ #: embedded/includes/fields/image.php:107
1211
  #: includes/classes/class.wpcf.custom.fields.list.table.php:94
1212
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:99
1213
  #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:97
1214
+ #: includes/fields-control.php:46 includes/fields-control.php:69
1215
+ #: includes/fields-control.php:83 includes/fields-control.php:96
1216
+ #: includes/fields-control.php:212 includes/usermeta-control.php:33
1217
+ #: includes/usermeta-control.php:58 includes/usermeta-control.php:72
1218
+ #: includes/usermeta-control.php:85 includes/usermeta-control.php:200
1219
  msgid "None"
1220
  msgstr ""
1221
 
1222
+ #: embedded/includes/fields/image.php:108
1223
  msgid "Left"
1224
  msgstr ""
1225
 
1226
+ #: embedded/includes/fields/image.php:109
1227
  msgid "Center"
1228
  msgstr ""
1229
 
1230
+ #: embedded/includes/fields/image.php:110
1231
  msgid "Right"
1232
  msgstr ""
1233
 
1234
+ #: embedded/includes/fields/image.php:123
1235
  msgid "Thumbnail - %s"
1236
  msgstr ""
1237
 
1238
+ #: embedded/includes/fields/image.php:125
1239
  msgid "Medium - %s"
1240
  msgstr ""
1241
 
1242
+ #: embedded/includes/fields/image.php:127
1243
  msgid "Large - %s"
1244
  msgstr ""
1245
 
1246
+ #: embedded/includes/fields/image.php:129
1247
  msgid "Original image"
1248
  msgstr ""
1249
 
1250
+ #: embedded/includes/fields/image.php:138
1251
  msgid "Custom size..."
1252
  msgstr ""
1253
 
1254
+ #: embedded/includes/fields/image.php:560
1255
+ #: embedded/includes/fields/image.php:567
1256
+ #: embedded/includes/fields/image.php:690
1257
  msgid "Image %s not valid"
1258
  msgstr ""
1259
 
1260
+ #: embedded/includes/fields/image.php:656
1261
  msgid "Image cache directory %s could not be created"
1262
  msgstr ""
1263
 
1264
+ #: embedded/includes/fields/image.php:722
1265
+ #: embedded/includes/fields/image.php:735
1266
  msgid "Remote server returned error response %1$d %2$s"
1267
  msgstr ""
1268
 
1269
+ #: embedded/includes/fields/image.php:743
1270
  msgid "Remote file is incorrect size"
1271
  msgstr ""
1272
 
1273
+ #: embedded/includes/fields/image.php:748
1274
  msgid "Could not create cache file"
1275
  msgstr ""
1276
 
1277
+ #: embedded/includes/fields/image.php:758
1278
  msgid "Remote file is too large, limit is %s"
1279
  msgstr ""
1280
 
1281
+ #: embedded/includes/fields/image.php:887
1282
  msgid "Could not read image size"
1283
  msgstr ""
1284
 
1285
+ #: embedded/includes/fields/image.php:892
1286
  msgid "Could not calculate resized image dimensions"
1287
  msgstr ""
1288
 
1289
+ #: embedded/includes/fields/image.php:922
1290
+ #: embedded/includes/fields/image.php:925
1291
+ #: embedded/includes/fields/image.php:933 embedded/views/image.php:296
1292
  msgid "Resize path invalid"
1293
  msgstr ""
1294
 
1300
  msgid "Radio"
1301
  msgstr ""
1302
 
1303
+ #: embedded/includes/fields/skype.php:15 embedded/includes/fields/skype.php:16
1304
  msgid "Skype"
1305
  msgstr ""
1306
 
1307
+ #: embedded/includes/fields/skype.php:53
1308
  msgid "Skype name"
1309
  msgstr ""
1310
 
1311
+ #: embedded/includes/fields/skype.php:193
1312
+ #: embedded/includes/fields/skype.php:214
1313
  msgid "Insert skype button"
1314
  msgstr ""
1315
 
1316
+ #: embedded/includes/fields/textarea.php:15
1317
  msgid "Multiple lines"
1318
  msgstr ""
1319
 
1320
+ #: embedded/includes/fields/textarea.php:16
1321
  msgid "Textarea"
1322
  msgstr ""
1323
 
1337
  msgid "_self: Opens in the same frame as it was clicked"
1338
  msgstr ""
1339
 
1340
+ #: embedded/includes/fields/url.php:63
1341
  msgid "_parent: Opens in the parent frame"
1342
  msgstr ""
1343
 
1344
+ #: embedded/includes/fields/url.php:64
1345
  msgid "_top: Opens in the full body of the window"
1346
  msgstr ""
1347
 
1348
+ #: embedded/includes/fields/url.php:65
1349
  msgid "framename: Opens in a named frame"
1350
  msgstr ""
1351
 
1352
+ #: embedded/includes/fields/url.php:77 embedded/includes/fields/url.php:78
1353
  msgid "Target"
1354
  msgstr ""
1355
 
1356
+ #: embedded/includes/fields/video.php:15 embedded/includes/fields/video.php:16
1357
  msgid "Video"
1358
  msgstr ""
1359
 
1365
  msgid "WYSIWYG editor"
1366
  msgstr ""
1367
 
1368
+ #: embedded/includes/fields-post.php:82
1369
  msgid "Display Custom Content"
1370
  msgstr ""
1371
 
1372
+ #: embedded/includes/fields-post.php:668
1373
+ #: embedded/includes/usermeta-post.php:389
1374
  msgid "Field \"%s\" not updated:"
1375
  msgstr ""
1376
 
1377
+ #: embedded/includes/fields-post.php:828
1378
+ #: embedded/includes/usermeta-post.php:495
1379
  msgid "Please check your input data"
1380
  msgstr ""
1381
 
1382
+ #: embedded/includes/fields-post.php:1321
1383
  msgid "If you change slug, new field will be created"
1384
  msgstr ""
1385
 
1386
+ #: embedded/includes/fields-post.php:1713
1387
  msgid "Insert Types Shortcode"
1388
  msgstr ""
1389
 
1390
+ #: embedded/includes/fields-post.php:1828
1391
  msgid "Build this site with %sViews%s"
1392
  msgstr ""
1393
 
1394
+ #: embedded/includes/fields-post.php:1831
1395
+ msgid "Create <strong>Content Templates</strong> for single pages &raquo;"
1396
  msgstr ""
1397
 
1398
+ #: embedded/includes/fields-post.php:1832
1399
  msgid "Create <strong>Views</strong> for content lists &raquo;"
1400
  msgstr ""
1401
 
1402
+ #: embedded/includes/fields-post.php:1834
1403
  msgid "%sViews%s lets you build complete websites without coding."
1404
  msgstr ""
1405
 
1406
+ #: embedded/includes/fields-post.php:1839
1407
+ #: marketing/congrats-post-types/index.php:107
1408
  msgid "Design templates for single pages"
1409
  msgstr ""
1410
 
1411
+ #: embedded/includes/fields-post.php:1840
1412
  msgid "Query content and display anywhere"
1413
  msgstr ""
1414
 
1415
+ #: embedded/includes/fields-post.php:1842
1416
  msgid "Create your own widgets"
1417
  msgstr ""
1418
 
1419
+ #: embedded/includes/fields-post.php:1843
1420
  msgid "No coding necessary"
1421
  msgstr ""
1422
 
1423
+ #: embedded/includes/fields-post.php:1846
1424
  msgid "Get Views"
1425
  msgstr ""
1426
 
1427
+ #: embedded/includes/fields-post.php:1864
1428
  msgid "Preview warning"
1429
  msgstr ""
1430
 
1431
+ #: embedded/includes/fields-post.php:1865
1432
  msgid "Custom field changes cannot be previewed until %s is updated"
1433
  msgstr ""
1434
 
1436
  msgid "Functionality enhanced using %sWordPress Custom Fields%s"
1437
  msgstr ""
1438
 
1439
+ #: embedded/includes/footer-credit.php:50
1440
  msgid "Functionality enhanced using %sWordPress Custom Post Types%s"
1441
  msgstr ""
1442
 
1443
+ #: embedded/includes/footer-credit.php:53
1444
  msgid "Functionality enhanced using %sWordPress Custom Taxonomy%s"
1445
  msgstr ""
1446
 
1447
+ #: embedded/includes/footer-credit.php:108
1448
  msgid ""
1449
  "You too can support Types! Would you like to add a small credit link, saying "
1450
  "that you're using Types for custom fields or custom post types?"
1451
  msgstr ""
1452
 
1453
+ #: embedded/includes/footer-credit.php:112
1454
  #: includes/classes/class.wpcf.custom.fields.list.table.php:107
1455
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:101
1456
  #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:99
1457
  #: includes/classes/class.wpcf.user.fields.list.table.php:97
1458
  msgid "Yes"
1459
  msgstr ""
1460
 
1461
+ #: embedded/includes/footer-credit.php:116
1462
  msgid "No, thanks"
1463
  msgstr ""
1464
 
1465
+ #: embedded/includes/import-export.php:22
1466
+ #: embedded/includes/module-manager.php:867
1467
+ #: embedded/includes/module-manager.php:869 includes/import-export.php:339
1468
  msgid "Error parsing XML"
1469
  msgstr ""
1470
 
1471
+ #: embedded/includes/import-export.php:62
1472
  msgid "Settings are updated."
1473
  msgstr ""
1474
 
1475
+ #: embedded/includes/import-export.php:121
1476
+ #: embedded/includes/import-export.php:130
1477
+ #: embedded/includes/module-manager.php:935
1478
+ #: embedded/includes/module-manager.php:947
1479
  msgid "Group \"%s\" update failed"
1480
  msgstr ""
1481
 
1482
+ #: embedded/includes/import-export.php:125
1483
  msgid "Group \"%s\" updated"
1484
  msgstr ""
1485
 
1486
+ #: embedded/includes/import-export.php:137
1487
+ #: embedded/includes/module-manager.php:953
1488
  msgid "Group \"%s\" insert failed"
1489
  msgstr ""
1490
 
1491
+ #: embedded/includes/import-export.php:141
1492
  msgid "Group \"%s\" added"
1493
  msgstr ""
1494
 
1495
+ #: embedded/includes/import-export.php:155
1496
  msgid ""
1497
  "The Types settings were not fully imported because it contained unsecured "
1498
  "data. You should re-export your Types settings using the latest version of "
1499
  "Types"
1500
  msgstr ""
1501
 
1502
+ #: embedded/includes/import-export.php:185
1503
+ #: embedded/includes/import-export.php:204
1504
+ #: embedded/includes/import-export.php:214
1505
  msgid "Group \"%s\" delete failed"
1506
  msgstr ""
1507
 
1508
+ #: embedded/includes/import-export.php:190
1509
+ #: embedded/includes/import-export.php:209
1510
  msgid "Group \"%s\" deleted"
1511
  msgstr ""
1512
 
1513
+ #: embedded/includes/import-export.php:279
1514
  msgid "Field \"%s\" added/updated"
1515
  msgstr ""
1516
 
1517
+ #: embedded/includes/import-export.php:290
1518
+ #: embedded/includes/import-export.php:299
1519
  msgid "Field \"%s\" deleted"
1520
  msgstr ""
1521
 
1522
+ #: embedded/includes/import-export.php:358
1523
+ #: embedded/includes/import-export.php:367
1524
  msgid "User group \"%s\" update failed"
1525
  msgstr ""
1526
 
1527
+ #: embedded/includes/import-export.php:362
1528
  msgid "User group \"%s\" updated"
1529
  msgstr ""
1530
 
1531
+ #: embedded/includes/import-export.php:374
1532
  msgid "User group \"%s\" insert failed"
1533
  msgstr ""
1534
 
1535
+ #: embedded/includes/import-export.php:378
1536
  msgid "User group \"%s\" added"
1537
  msgstr ""
1538
 
1539
+ #: embedded/includes/import-export.php:409
1540
+ #: embedded/includes/import-export.php:429
1541
+ #: embedded/includes/import-export.php:439
1542
  msgid "User group \"%s\" delete failed"
1543
  msgstr ""
1544
 
1545
+ #: embedded/includes/import-export.php:414
1546
+ #: embedded/includes/import-export.php:434
1547
  msgid "User group \"%s\" deleted"
1548
  msgstr ""
1549
 
1550
+ #: embedded/includes/import-export.php:500
1551
  msgid "User field \"%s\" added/updated"
1552
  msgstr ""
1553
 
1554
+ #: embedded/includes/import-export.php:511
1555
+ #: embedded/includes/import-export.php:521
1556
  msgid "User field \"%s\" deleted"
1557
  msgstr ""
1558
 
1559
+ #: embedded/includes/import-export.php:566
1560
  msgid "Custom post type \"%s\" added/updated"
1561
  msgstr ""
1562
 
1563
+ #: embedded/includes/import-export.php:575
1564
+ #: embedded/includes/import-export.php:582
1565
  msgid "Custom post type \"%s\" deleted"
1566
  msgstr ""
1567
 
1568
+ #: embedded/includes/import-export.php:627
1569
  msgid "Custom taxonomy \"%s\" added/updated"
1570
  msgstr ""
1571
 
1572
+ #: embedded/includes/import-export.php:645
1573
+ #: embedded/includes/import-export.php:652
1574
  msgid "Custom taxonomy \"%s\" deleted"
1575
  msgstr ""
1576
 
1577
+ #: embedded/includes/import-export.php:673
1578
  msgid "Post relationships created"
1579
  msgstr ""
1580
 
1581
+ #: embedded/includes/import-export.php:675
1582
  msgid ""
1583
  "Post relationships settings were not imported because it contained unsecured "
1584
  "data. You should re-export your Types settings using the latest version of "
1585
  "Types"
1586
  msgstr ""
1587
 
1588
+ #: embedded/includes/module-manager.php:35
1589
+ #: embedded/includes/module-manager.php:93
 
1590
  msgid "Module Manager"
1591
  msgstr ""
1592
 
1593
+ #: embedded/includes/module-manager.php:106
1594
+ msgid "Wrong type!"
 
1595
  msgstr ""
1596
 
1597
+ #: embedded/includes/module-manager.php:225
1598
  msgid "Field Groups"
1599
  msgstr ""
1600
 
1601
+ #: embedded/includes/module-manager.php:235
1602
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:231
1603
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:251
1604
  msgid "Taxonomies"
1605
  msgstr ""
1606
 
1607
+ #: embedded/includes/module-manager.php:252
1608
  msgid "%s custom post type: %s"
1609
  msgstr ""
1610
 
1611
+ #: embedded/includes/module-manager.php:282
1612
  msgid "Error during Post Types import"
1613
  msgstr ""
1614
 
1615
+ #: embedded/includes/module-manager.php:290
1616
+ #: embedded/includes/module-manager.php:328
1617
  msgid "Fields group: %s"
1618
  msgstr ""
1619
 
1620
+ #: embedded/includes/module-manager.php:319
1621
  msgid "Error during Field Groups import"
1622
  msgstr ""
1623
 
1624
+ #: embedded/includes/module-manager.php:359
1625
  msgid "Error during Taxonomies import"
1626
  msgstr ""
1627
 
1628
+ #: embedded/includes/module-manager.php:787
1629
  msgid "There is a problem with temporary directory."
1630
  msgstr ""
1631
 
1632
+ #: embedded/includes/module-manager.php:937
1633
  msgid "Group %s update failed"
1634
  msgstr ""
1635
 
1636
+ #: embedded/includes/module-manager.php:955
1637
  msgid "Group %s insert failed"
1638
  msgstr ""
1639
 
1640
+ #: embedded/includes/module-manager.php:1219
1641
  msgid "Field: %s"
1642
  msgstr ""
1643
 
1644
+ #: embedded/includes/post-relationship.php:40
1645
+ #: includes/post-relationship.php:294
1646
+ msgid "Post Relationship"
1647
  msgstr ""
1648
 
1649
+ #: embedded/includes/post-relationship.php:72
1650
  msgid "Are you sure about deleting this post?"
1651
  msgstr ""
1652
 
1653
+ #: embedded/includes/post-relationship.php:74
1654
  msgid "If you continue without saving your changes, they might get lost."
1655
  msgstr ""
1656
 
1657
+ #: embedded/includes/post-relationship.php:147
1658
  msgid "You will be able to manage child posts after saving this post."
1659
  msgstr ""
1660
 
1661
+ #: embedded/includes/post-relationship.php:149
1662
  msgid "You will be able to add parent posts after saving this post."
1663
  msgstr ""
1664
 
1665
+ #: embedded/includes/post-relationship.php:167
1666
  msgid "Go back"
1667
  msgstr ""
1668
 
1669
+ #: embedded/includes/post-relationship.php:184
1670
  msgid ""
1671
  "You will be able to add child posts after saving at least one <b>%s</b>."
1672
  msgstr ""
1673
 
1674
+ #: embedded/includes/post-relationship.php:189
1675
  msgid ""
1676
  "You will be able to edit child posts after saving at least one <b>%s</b>."
1677
  msgstr ""
1678
 
1679
+ #: embedded/includes/post-relationship.php:255
1680
+ msgid "This <em>%s</em> belongs to <em>%s</em>"
1681
  msgstr ""
1682
 
1683
+ #: embedded/includes/post-relationship.php:286
1684
  msgid "Post deleted"
1685
  msgstr ""
1686
 
1687
+ #: embedded/includes/post-relationship.php:329
1688
+ msgid "Loading..."
1689
  msgstr ""
1690
 
1691
+ #: embedded/includes/post-relationship.php:331
1692
+ msgid "Search for a entries"
1693
+ msgstr ""
1694
+
1695
+ #: embedded/includes/post-relationship.php:334
1696
+ msgid "Please enter 1 or more character."
1697
  msgstr ""
1698
 
1699
+ #: embedded/includes/post-relationship.php:355
1700
  msgid "Missing child post ID %d"
1701
  msgstr ""
1702
 
1703
+ #: embedded/includes/post-relationship.php:365
1704
  msgid "Relationship do not exist %s -> %s"
1705
  msgstr ""
1706
 
1707
+ #: embedded/includes/post-relationship.php:378
1708
  msgid "Missing parent post ID %d"
1709
  msgstr ""
1710
 
1711
+ #: embedded/includes/post-relationship.php:384
1712
  msgid "Parent post ID %d is not type of %s"
1713
  msgstr ""
1714
 
1715
+ #: embedded/includes/post-relationship.php:397
1716
  msgid "Post updated"
1717
  msgstr ""
1718
 
1719
+ #: embedded/includes/post-relationship.php:451
1720
  msgid "Prev"
1721
  msgstr ""
1722
 
1723
+ #: embedded/includes/post-relationship.php:478
1724
  msgid "Next"
1725
  msgstr ""
1726
 
1727
+ #: embedded/includes/post-relationship.php:560
1728
+ #: embedded/includes/post-relationship.php:565
1729
+ msgid "Sorry, something went wrong. The requested can not be completed."
1730
+ msgstr ""
1731
+
1732
+ #: embedded/includes/promo-tabs.php:44
1733
  msgid "Types is part of the entire toolbox"
1734
  msgstr ""
1735
 
1736
+ #: embedded/includes/promo-tabs.php:47
1737
  msgid "Discover what you can build with WordPress"
1738
  msgstr ""
1739
 
1740
+ #: embedded/includes/promo-tabs.php:50
1741
  msgid "Learn how to make your sites interactive"
1742
  msgstr ""
1743
 
1744
+ #: embedded/includes/promo-tabs.php:53
1745
  msgid "Learn how to display custom content anyway you choose"
1746
  msgstr ""
1747
 
1748
+ #: embedded/includes/promo-tabs.php:61
1749
  msgid ""
1750
  "Types lets you customize the WordPress admin, but you can do a lot more with "
1751
  "the entire package."
1752
  msgstr ""
1753
 
1754
+ #: embedded/includes/promo-tabs.php:66
1755
  msgid "Views - display custom content anyway and anywhere you like"
1756
  msgstr ""
1757
 
1758
+ #: embedded/includes/promo-tabs.php:70
1759
  msgid "CRED - build forms that create and edit WordPress content"
1760
  msgstr ""
1761
 
1762
+ #: embedded/includes/promo-tabs.php:74
1763
  msgid "Access - control who can access different parts of the site"
1764
  msgstr ""
1765
 
1766
+ #: embedded/includes/promo-tabs.php:81
1767
  msgid ""
1768
  "The complete framework lets you build powerful, flexible and interactive "
1769
  "WordPress sites."
1770
  msgstr ""
1771
 
1772
+ #: embedded/includes/promo-tabs.php:86 embedded/includes/promo-tabs.php:88
1773
  msgid "Learn more"
1774
  msgstr ""
1775
 
1776
+ #: embedded/includes/promo-tabs.php:89 embedded/includes/promo-tabs.php:146
1777
+ #: embedded/includes/promo-tabs.php:169
1778
  msgid "Free Trial"
1779
  msgstr ""
1780
 
1781
+ #: embedded/includes/promo-tabs.php:92 embedded/includes/promo-tabs.php:94
1782
+ #: embedded/includes/promo-tabs.php:149 embedded/includes/promo-tabs.php:151
1783
+ #: embedded/includes/promo-tabs.php:172 embedded/includes/promo-tabs.php:174
1784
  msgid "Pricing"
1785
  msgstr ""
1786
 
1787
+ #: embedded/includes/promo-tabs.php:99
1788
  msgid ""
1789
  "You already know that WordPress can build a lot more than blogs, but just "
1790
  "how much more?"
1791
  msgstr ""
1792
 
1793
+ #: embedded/includes/promo-tabs.php:104
1794
  msgid ""
1795
  "Learn how to build your own magazine designs, classifieds, listing, e-"
1796
  "commerce sites and more."
1797
  msgstr ""
1798
 
1799
+ #: embedded/includes/promo-tabs.php:109
1800
  msgid ""
1801
  "Discover WP is a free online learning resource, where you can launch fully-"
1802
  "functional test sites and experiment with complete sites."
1803
  msgstr ""
1804
 
1805
+ #: embedded/includes/promo-tabs.php:114 embedded/includes/promo-tabs.php:116
1806
  msgid "Get you FREE learning site"
1807
  msgstr ""
1808
 
1809
+ #: embedded/includes/promo-tabs.php:123
1810
  msgid "Need to build sites, where visitors can create and edit content?"
1811
  msgstr ""
1812
 
1813
+ #: embedded/includes/promo-tabs.php:128
1814
  msgid "Meet CRED, our content-forms editor!"
1815
  msgstr ""
1816
 
1817
+ #: embedded/includes/promo-tabs.php:133
1818
  msgid ""
1819
  "CRED lets you build forms that work directly on WordPress content. CRED "
1820
  "forms include fields for standard fields, custom fields and taxonomy. "
1821
  "Everything that you can build with Types, CRED can edit."
1822
  msgstr ""
1823
 
1824
+ #: embedded/includes/promo-tabs.php:138
1825
  msgid ""
1826
  "CRED is a lot more than a pretty forms plugin. It's a complete development "
1827
  "framework that lets you build powerful web applications with WordPress."
1828
  msgstr ""
1829
 
1830
+ #: embedded/includes/promo-tabs.php:143 embedded/includes/promo-tabs.php:145
1831
  msgid "Meet CRED"
1832
  msgstr ""
1833
 
1834
+ #: embedded/includes/promo-tabs.php:156
1835
  msgid ""
1836
  "Views is a powerful display engine, which lets you build WordPress sites "
1837
  "from within the admin dashboard."
1838
  msgstr ""
1839
 
1840
+ #: embedded/includes/promo-tabs.php:161
1841
  msgid ""
1842
  "You can create templates for single pages, query content from the database "
1843
  "and display it with your design."
1844
  msgstr ""
1845
 
1846
+ #: embedded/includes/promo-tabs.php:166 embedded/includes/promo-tabs.php:168
1847
  msgid "Meet Views"
1848
  msgstr ""
1849
 
1850
+ #: embedded/includes/promo-tabs.php:185
1851
  msgid ""
1852
  "Already purchased our Toolset package? %sLog-in to wp-types.com%s to remove "
1853
  "this information box."
1854
  msgstr ""
1855
 
1856
+ #: embedded/includes/promo-tabs.php:188
1857
  msgid ""
1858
  "Already purchased our Toolset package? Install our Installer plugin and "
1859
  "login to wp-types to remove this information box. %sInstructions &raquo;%s"
1860
  msgstr ""
1861
 
1862
+ #: embedded/includes/relationship/child-table.php:34
1863
  msgid "Save All %s"
1864
  msgstr ""
1865
 
1866
+ #: embedded/includes/relationship/child-table.php:56
1867
+ #: includes/post-relationship.php:123
1868
  msgid ""
1869
  "Repeating fields should not be used in child posts. Types will update all "
1870
  "field values."
1871
  msgstr ""
1872
 
1873
+ #: embedded/includes/relationship/child-table.php:83
1874
+ #: plus/types-access/includes/admin-edit-access.php:716
1875
  msgid "Action"
1876
  msgstr ""
1877
 
1882
 
1883
  #: embedded/includes/repetitive-fields-ordering.php:89
1884
  #: embedded/includes/repetitive-usermetafields-ordering.php:89
1885
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:156
1886
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:179
1887
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:164
1888
+ #: includes/classes/class.wpcf.user.fields.list.table.php:146
1889
+ #: includes/fields/checkboxes.php:149 includes/fields/radio.php:181
1890
+ #: includes/fields/select.php:113 includes/fields-form.php:1027
1891
+ #: includes/fields-form.php:1033
1892
  msgid "Are you sure?"
1893
  msgstr ""
1894
 
1897
  msgid "Delete Field"
1898
  msgstr ""
1899
 
1900
+ #: embedded/includes/usermeta-post.php:651
1901
  msgid "Time"
1902
  msgstr ""
1903
 
1904
+ #: embedded/includes/wpml.php:1254 embedded/includes/wpml.php:1288
1905
  msgid ""
1906
  "<a href=\"%s\" target=\"_blank\">How to translate strings when default "
1907
  "language is not English</a>"
1908
  msgstr ""
1909
 
1910
+ #: embedded/plugin.php:54
1911
  msgid ""
1912
+ "Types Embedded was <strong>deactivated</strong>! You are already running the "
1913
+ "complete Types plugin, so this one is not needed anymore."
1914
  msgstr ""
1915
 
1916
+ #: embedded/usermeta-init.php:107 includes/fields-form.php:409
1917
+ #: includes/usermeta-form.php:364
 
 
 
 
 
 
 
 
 
1918
  msgid "Enter group title"
1919
  msgstr ""
1920
 
1921
+ #: embedded/usermeta-init.php:108 includes/fields-form.php:423
1922
+ #: includes/usermeta-form.php:378
1923
  msgid "Enter a description for this group"
1924
  msgstr ""
1925
 
1926
+ #: embedded/usermeta-init.php:110 includes/fields-form.php:1098
1927
  msgid "Enter field name"
1928
  msgstr ""
1929
 
1930
+ #: embedded/usermeta-init.php:113 includes/fields-form.php:1110
1931
  msgid "Enter field slug"
1932
  msgstr ""
1933
 
1934
+ #: embedded/usermeta-init.php:116 includes/fields-form.php:1135
1935
  msgid "Describe this field"
1936
  msgstr ""
1937
 
1938
+ #: embedded/usermeta-init.php:153
1939
  msgid "User Field"
1940
  msgstr ""
1941
 
1942
+ #: embedded/usermeta-init.php:300
1943
  msgid "%s (Usermeta fields)"
1944
  msgstr ""
1945
 
1946
+ #: embedded/usermeta-init.php:804 embedded/usermeta-init.php:842
1947
  msgid "User Meta Fields Frontend Access"
1948
  msgstr ""
1949
 
1950
+ #: embedded/usermeta-init.php:811
1951
  msgid "View own fields in profile"
1952
  msgstr ""
1953
 
1954
+ #: embedded/usermeta-init.php:812
1955
  msgid "Modify own fields"
1956
  msgstr ""
1957
 
1958
+ #: embedded/usermeta-init.php:863
1959
  msgid "User Meta Fields Access"
1960
  msgstr ""
1961
 
1962
+ #: embedded/usermeta-init.php:915
1963
  msgid "Post Custom Fields Frontend Access"
1964
  msgstr ""
1965
 
1966
+ #: embedded/usermeta-init.php:921
1967
  msgid "View Fields In Edit Page"
1968
  msgstr ""
1969
 
1970
+ #: embedded/usermeta-init.php:922
1971
  msgid "Modify Fields In Edit Page"
1972
  msgstr ""
1973
 
1974
+ #: embedded/usermeta-init.php:949
1975
  msgid "Post Fields Frontend Access"
1976
  msgstr ""
1977
 
1978
+ #: embedded/usermeta-init.php:969
1979
  msgid "Post Meta Fields Access"
1980
  msgstr ""
1981
 
1988
  msgstr ""
1989
 
1990
  #: embedded/views/editor-modal-window.php:45
1991
+ #: embedded/views/editor-modal-window.php:101
1992
  msgid "Styling"
1993
  msgstr ""
1994
 
1995
+ #: embedded/views/editor-modal-window.php:46
1996
+ #: embedded/views/editor-modal-window.php:124
1997
  msgid "Separator"
1998
  msgstr ""
1999
 
2000
+ #: embedded/views/editor-modal-window.php:47
2001
  msgid "User"
2002
  msgstr ""
2003
 
2004
+ #: embedded/views/editor-modal-window.php:48
2005
+ #: embedded/views/editor-modal-window.php:207
2006
  msgid "Post selection"
2007
  msgstr ""
2008
 
2009
+ #: embedded/views/editor-modal-window.php:52
2010
  msgid "Display this field without any formatting"
2011
  msgstr ""
2012
 
2013
+ #: embedded/views/editor-modal-window.php:53
2014
  msgid "RAW mode"
2015
  msgstr ""
2016
 
2017
+ #: embedded/views/editor-modal-window.php:53
2018
  msgid "When checked, displays raw data stored in database."
2019
  msgstr ""
2020
 
2021
+ #: embedded/views/editor-modal-window.php:68
2022
  msgid ""
2023
  "RAW mode is selected. The field value will be displayed, without any "
2024
  "formatting."
2025
  msgstr ""
2026
 
2027
+ #: embedded/views/editor-modal-window.php:79
2028
  msgid "Display the field for this user"
2029
  msgstr ""
2030
 
2031
+ #: embedded/views/editor-modal-window.php:102
2032
  msgid ""
2033
  "You can style this field by applying a CSS class to it, or by entering the "
2034
  "CSS attributes that would appear with the HTML."
2035
  msgstr ""
2036
 
2037
+ #: embedded/views/editor-modal-window.php:105
2038
  msgid "CSS class:"
2039
  msgstr ""
2040
 
2041
+ #: embedded/views/editor-modal-window.php:107
2042
  msgid "enter your class names separated by a space (e.g. myclass1 myclass2)"
2043
  msgstr ""
2044
 
2045
+ #: embedded/views/editor-modal-window.php:110
2046
  msgid "CSS style:"
2047
  msgstr ""
2048
 
2049
+ #: embedded/views/editor-modal-window.php:113
2050
  msgid "Warning"
2051
  msgstr ""
2052
 
2053
+ #: embedded/views/editor-modal-window.php:113
2054
  msgid "Style is not available for %s field"
2055
  msgstr ""
2056
 
2057
+ #: embedded/views/editor-modal-window.php:115
2058
  msgid "enter the css for your inline style (e.g. color:red;font-weight:bold)"
2059
  msgstr ""
2060
 
2061
+ #: embedded/views/editor-modal-window.php:126
2062
  msgid ""
2063
  "The separator will be displayed between each of your repeating field values"
2064
  msgstr ""
2065
 
2066
+ #: embedded/views/editor-modal-window.php:132
2067
  msgid "Comma"
2068
  msgstr ""
2069
 
2070
+ #: embedded/views/editor-modal-window.php:136
2071
  msgid "Space"
2072
  msgstr ""
2073
 
2074
+ #: embedded/views/editor-modal-window.php:140
2075
  msgid "Non-breaking space"
2076
  msgstr ""
2077
 
2078
+ #: embedded/views/editor-modal-window.php:144
2079
  msgid "Semicolon"
2080
  msgstr ""
2081
 
2082
+ #: embedded/views/editor-modal-window.php:148
2083
  #: embedded/views/templates/editor-modal-date.tpl.php:47
2084
  msgid "Custom"
2085
  msgstr ""
2086
 
2087
+ #: embedded/views/editor-modal-window.php:159
2088
  msgid "Display this field for:"
2089
  msgstr ""
2090
 
2091
+ #: embedded/views/editor-modal-window.php:163
2092
  msgid "The current post being displayed either directly or in a View loop"
2093
  msgstr ""
2094
 
2095
+ #: embedded/views/editor-modal-window.php:168
2096
  msgid "The parent of the current post (WordPress parent)"
2097
  msgstr ""
2098
 
2099
+ #: embedded/views/editor-modal-window.php:174
2100
+ #: embedded/views/editor-modal-window.php:187
2101
  msgid "The parent of this post, set by Types (parent/child relationship)"
2102
  msgstr ""
2103
 
2104
+ #: embedded/views/editor-modal-window.php:191
2105
  msgid "Post type"
2106
  msgstr ""
2107
 
2108
+ #: embedded/views/editor-modal-window.php:203
2109
  msgid "A specific post"
2110
  msgstr ""
2111
 
2112
+ #: embedded/views/editor-modal-window.php:216
2113
  msgid "Output HTML"
2114
  msgstr ""
2115
 
2116
+ #: embedded/views/editor-modal-window.php:220
2117
  msgid "Show name"
2118
  msgstr ""
2119
 
2120
  #: embedded/views/templates/child-tax-category.tpl.php:14
2121
+ #: includes/custom-taxonomies-form.php:624
2122
  msgid "Most Used"
2123
  msgstr ""
2124
 
2127
  msgid "+ %s"
2128
  msgstr ""
2129
 
2130
+ #: embedded/views/templates/child-tax-tag.tpl.php:11
2131
  msgctxt "tag delimiter"
2132
  msgid ","
2133
  msgstr ""
2134
 
2135
+ #: embedded/views/templates/child-tax-tag.tpl.php:23
2136
  #: plus/installer/templates/products-compact.php:77
2137
  msgid "Add"
2138
  msgstr ""
2166
  #: embedded/views/templates/editor-modal-checkbox.tpl.php:28
2167
  #: embedded/views/templates/editor-modal-checkboxes.tpl.php:27
2168
  #: embedded/views/templates/editor-modal-radio.tpl.php:28
2169
+ #: includes/fields/checkbox.php:100 includes/fields/checkboxes.php:199
2170
+ #: includes/fields/radio.php:116
2171
  msgid "Display the value of this field from the database"
2172
  msgstr ""
2173
 
2178
 
2179
  #: embedded/views/templates/editor-modal-checkbox.tpl.php:36
2180
  #: embedded/views/templates/editor-modal-checkboxes.tpl.php:44
2181
+ #: includes/fields/checkbox.php:126 includes/fields/checkboxes.php:225
2182
  msgid "Selected:"
2183
  msgstr ""
2184
 
2185
  #: embedded/views/templates/editor-modal-checkbox.tpl.php:37
2186
  #: embedded/views/templates/editor-modal-checkboxes.tpl.php:45
2187
+ #: includes/fields/checkbox.php:130 includes/fields/checkboxes.php:229
2188
  msgid "Enter selected value"
2189
  msgstr ""
2190
 
2191
  #: embedded/views/templates/editor-modal-checkbox.tpl.php:40
2192
  #: embedded/views/templates/editor-modal-checkboxes.tpl.php:48
2193
+ #: includes/fields/checkbox.php:116 includes/fields/checkboxes.php:215
2194
  msgid "Not selected:"
2195
  msgstr ""
2196
 
2197
  #: embedded/views/templates/editor-modal-checkbox.tpl.php:41
2198
  #: embedded/views/templates/editor-modal-checkboxes.tpl.php:49
2199
+ #: includes/fields/checkbox.php:121 includes/fields/checkboxes.php:220
2200
  msgid "Enter not selected value"
2201
  msgstr ""
2202
 
2218
 
2219
  #: embedded/views/templates/editor-modal-email.tpl.php:26
2220
  #: embedded/views/templates/editor-modal-url.tpl.php:28
2221
+ #: includes/custom-types-form.php:1122 includes/fields/checkboxes.php:162
2222
+ #: includes/fields/radio.php:173 includes/fields/select.php:105
2223
  msgid "Title"
2224
  msgstr ""
2225
 
2244
  "that you upload. To change, go to the %sTypes settings page%s."
2245
  msgstr ""
2246
 
2247
+ #: embedded/views/templates/editor-modal-image.tpl.php:48
2248
  msgid "Image title"
2249
  msgstr ""
2250
 
2251
+ #: embedded/views/templates/editor-modal-image.tpl.php:52
2252
  msgid "Alternative text"
2253
  msgstr ""
2254
 
2255
+ #: embedded/views/templates/editor-modal-image.tpl.php:58
2256
  msgid "Position and size"
2257
  msgstr ""
2258
 
2259
+ #: embedded/views/templates/editor-modal-image.tpl.php:60
2260
  #: embedded/views/templates/editor-modal-image.tpl.php:61
 
2261
  msgid "Alignment"
2262
  msgstr ""
2263
 
2264
+ #: embedded/views/templates/editor-modal-image.tpl.php:73
2265
  #: embedded/views/templates/editor-modal-image.tpl.php:74
 
2266
  msgid "Pre-defined sizes"
2267
  msgstr ""
2268
 
2269
+ #: embedded/views/templates/editor-modal-image.tpl.php:85
2270
  msgid "Image resize disabled"
2271
  msgstr ""
2272
 
2273
+ #: embedded/views/templates/editor-modal-image.tpl.php:103
2274
  msgid ""
2275
  "If images have a different aspect ratio than the display size, what would "
2276
  "you like to do?"
2277
  msgstr ""
2278
 
2279
+ #: embedded/views/templates/editor-modal-image.tpl.php:105
2280
  msgid "Keep proportional"
2281
  msgstr ""
2282
 
2283
+ #: embedded/views/templates/editor-modal-image.tpl.php:111
2284
  msgid ""
2285
  "Resize images to fit inside the new size. Width or height might be smaller "
2286
  "than the specified dimensions."
2287
  msgstr ""
2288
 
2289
+ #: embedded/views/templates/editor-modal-image.tpl.php:115
2290
  msgid "Pad images, so that they fill the specified dimensions exactly."
2291
  msgstr ""
2292
 
2293
+ #: embedded/views/templates/editor-modal-image.tpl.php:118
2294
  msgid "Transparent"
2295
  msgstr ""
2296
 
2297
+ #: embedded/views/templates/editor-modal-image.tpl.php:122
2298
  msgid "Padding color"
2299
  msgstr ""
2300
 
2301
+ #: embedded/views/templates/editor-modal-image.tpl.php:127
2302
  msgid "Crop images, so that they fill the specified dimensions exactly."
2303
  msgstr ""
2304
 
2305
+ #: embedded/views/templates/editor-modal-image.tpl.php:134
2306
  msgid "Output only the URL of the re-sized image instead of the img tag"
2307
  msgstr ""
2308
 
2309
+ #: embedded/views/templates/editor-modal-image.tpl.php:138
2310
  msgid "Onload callback"
2311
  msgstr ""
2312
 
2323
  msgstr ""
2324
 
2325
  #: embedded/views/templates/editor-modal-radio.tpl.php:32
2326
+ #: includes/fields/radio.php:123
2327
  msgid "Show one of these values:"
2328
  msgstr ""
2329
 
2349
  "media plays."
2350
  msgstr ""
2351
 
2352
+ #: embedded/views/templates/skype-select-button.tpl.php:21
2353
+ msgid "Select a button from below"
2354
+ msgstr ""
2355
+
2356
+ #: embedded/views/templates/skype-select-button.tpl.php:59
2357
+ msgid "Skype buttons with status"
2358
+ msgstr ""
2359
+
2360
+ #: embedded/views/templates/skype-select-button.tpl.php:60
2361
+ msgid ""
2362
+ "If you choose to show your Skype status, your Skype button will always "
2363
+ "reflect your availability on Skype. This status will be shown to everyone, "
2364
+ "whether they’re in your contact list or not."
2365
+ msgstr ""
2366
+
2367
+ #: help.php:21
2368
  msgid ""
2369
  "Types plugin organizes custom fields in groups. Once you create a group, you "
2370
  "can add the fields to it and control to what content it belongs."
2371
  msgstr ""
2372
 
2373
+ #: help.php:25
2374
  msgid "You can read more about Custom Fields in this tutorial: %s."
2375
  msgstr ""
2376
 
2377
+ #: help.php:30
2378
  msgid ""
2379
  "On this page you can see your current custom field groups, as well as "
2380
  "information about which post types and taxonomies they are attached to, and "
2381
  "whether they are active or not."
2382
  msgstr ""
2383
 
2384
+ #: help.php:33 help.php:278
2385
  msgid "You have the following options:"
2386
  msgstr ""
2387
 
2388
+ #: help.php:36
2389
  msgid ""
2390
+ "Use this to add a new custom fields group which can be attached to a post "
2391
+ "type"
2392
+ msgstr ""
2393
+
2394
+ #: help.php:38
2395
+ msgid "Click to edit the custom field group"
2396
+ msgstr ""
2397
+
2398
+ #: help.php:39 help.php:284
2399
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:282
2400
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:297
2401
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:289
2402
+ #: includes/classes/class.wpcf.user.fields.list.table.php:271
2403
+ #: includes/custom-taxonomies.php:21 includes/custom-types.php:21
2404
+ #: includes/fields.php:648 includes/usermeta.php:19
2405
+ #: plus/installer/templates/downloads-list-compact.php:12
2406
+ msgid "Activate"
2407
  msgstr ""
2408
 
2409
  #: help.php:40
2410
+ msgid "Click to activate a custom field group"
2411
  msgstr ""
2412
 
2413
+ #: help.php:41 help.php:123 help.php:155 help.php:286
2414
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:283
2415
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:298
2416
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:290
2417
+ #: includes/classes/class.wpcf.user.fields.list.table.php:272
2418
+ #: includes/custom-taxonomies.php:38 includes/custom-types.php:37
2419
+ #: includes/fields.php:663 includes/usermeta.php:33
2420
+ msgid "Deactivate"
2421
  msgstr ""
2422
 
2423
+ #: help.php:42
2424
  msgid ""
2425
+ "Click to deactivate a custom field group (this can be re-activated at a "
2426
+ "later date)"
2427
  msgstr ""
2428
 
2429
+ #: help.php:44
2430
+ msgid "Click to delete a custom field group."
2431
+ msgstr ""
2432
+
2433
+ #: help.php:46 help.php:130 help.php:162 help.php:291
2434
+ msgid "Warning: This cannot be undone."
2435
+ msgstr ""
2436
+
2437
+ #: help.php:53
2438
+ msgid "Custom fields"
2439
+ msgstr ""
2440
+
2441
+ #: help.php:57
2442
+ msgid "Adding custom fields to content"
2443
  msgstr ""
2444
 
2445
+ #: help.php:61
2446
+ msgid "Displaying custom fields on front-end"
2447
+ msgstr ""
2448
+
2449
+ #: help.php:69
2450
+ msgid "Adding user fields to user profiles"
2451
+ msgstr ""
2452
+
2453
+ #: help.php:73
2454
+ msgid "Displaying user fields on front-end"
2455
+ msgstr ""
2456
+
2457
+ #: help.php:77
2458
+ msgid "Custom post types and taxonomy"
2459
+ msgstr ""
2460
+
2461
+ #: help.php:81
2462
+ msgid "Creating and using custom post types"
2463
+ msgstr ""
2464
+
2465
+ #: help.php:85
2466
+ msgid "Arranging content with taxonomy"
2467
+ msgstr ""
2468
+
2469
+ #: help.php:89
2470
+ msgid "Creating parent / child relationships"
2471
+ msgstr ""
2472
+
2473
+ #: help.php:93
2474
+ msgid "Access control"
2475
+ msgstr ""
2476
+
2477
+ #: help.php:97
2478
+ msgid "Controlling which users can view and edit different fields"
2479
+ msgstr ""
2480
+
2481
+ #: help.php:101
2482
+ msgid "Controlling which users can access different post types"
2483
+ msgstr ""
2484
+
2485
+ #: help.php:108
2486
  msgid ""
2487
+ "This is the your Custom Taxonomies list. It provides you with an overview of "
2488
+ "your data."
2489
  msgstr ""
2490
 
2491
+ #: help.php:112 help.php:144
2492
  msgid ""
2493
+ "You can read more about Custom Post Types and Taxonomies in this tutorial. %s"
 
2494
  msgstr ""
2495
 
2496
+ #: help.php:117 help.php:149 help.php:174
2497
  msgid "On this page you have the following options:"
2498
  msgstr ""
2499
 
2500
+ #: help.php:120
2501
+ msgid "Use to create a new Custom Taxonomy"
 
2502
  msgstr ""
2503
 
2504
+ #: help.php:122
2505
+ msgid "Click to edit the settings of a Custom Taxonomy"
 
2506
  msgstr ""
2507
 
2508
+ #: help.php:124
2509
  msgid ""
2510
+ "Click to deactivate a Custom Taxonomy (this can be reactivated at a later "
2511
+ "date)"
2512
+ msgstr ""
2513
+
2514
+ #: help.php:125 help.php:157
2515
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:167
2516
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:152
2517
+ msgid "Duplicate"
2518
+ msgstr ""
2519
+
2520
+ #: help.php:126
2521
+ msgid "Click to duplicate a Custom Taxonomy"
2522
  msgstr ""
2523
 
2524
+ #: help.php:128
2525
+ msgid "Click to delete a Custom Taxonomy."
2526
+ msgstr ""
2527
+
2528
+ #: help.php:137
2529
  msgid ""
2530
+ "This is the main admin page for built-in Post Types and your Custom Post "
2531
+ "Types. It provides you with an overview of your data."
2532
+ msgstr ""
2533
+
2534
+ #: help.php:140
2535
+ msgid "Post Types are built-in and user-defined content types."
2536
+ msgstr ""
2537
+
2538
+ #: help.php:152
2539
+ msgid "Use to create a new Custom Post Type"
2540
+ msgstr ""
2541
+
2542
+ #: help.php:154
2543
+ msgid "Click to edit the settings of a Post Type"
2544
  msgstr ""
2545
 
2546
+ #: help.php:156
2547
  msgid ""
2548
+ "Click to deactivate a Custom Post Type (this can be reactivated at a later "
2549
+ "date)"
2550
+ msgstr ""
2551
+
2552
+ #: help.php:158
2553
+ msgid "Click to duplicate a Custom Post Type"
2554
  msgstr ""
2555
 
2556
+ #: help.php:160
2557
+ msgid "Click to delete a Custom Post Type."
2558
+ msgstr ""
2559
+
2560
+ #: help.php:171
2561
  msgid ""
2562
  "Use this page to import and export custom post types, taxonomies and custom "
2563
  "fields to and from Types."
2564
  msgstr ""
2565
 
2566
+ #: help.php:176 includes/import-export.php:215
2567
+ msgid "Import Types data file"
2568
  msgstr ""
2569
 
2570
+ #: help.php:178 help.php:186
2571
+ msgid "Step 1:"
2572
+ msgstr ""
2573
+
2574
+ #: help.php:179
2575
+ msgid "Choose and upload an XML file."
2576
+ msgstr ""
2577
+
2578
+ #: help.php:180 help.php:188
2579
+ msgid "Step 2:"
2580
  msgstr ""
2581
 
2582
+ #: help.php:181 help.php:189
2583
  msgid ""
2584
+ "Select which custom post types, taxonomies and custom fields should be "
2585
+ "imported."
2586
+ msgstr ""
2587
+
2588
+ #: help.php:184 includes/import-export.php:238
2589
+ msgid "Import Types data text input"
2590
  msgstr ""
2591
 
2592
+ #: help.php:187
2593
+ msgid "Paste XML content directly into the text area."
2594
+ msgstr ""
2595
+
2596
+ #: help.php:192 includes/import-export.php:196
2597
  msgid "Export"
2598
  msgstr ""
2599
 
2600
+ #: help.php:193
2601
  msgid "Click Export to export data from Types as an XML file."
2602
  msgstr ""
2603
 
2604
+ #: help.php:200
2605
  msgid "This is the edit page for your Custom Fields Groups."
2606
  msgstr ""
2607
 
2608
+ #: help.php:204
2609
  msgid "You can read more about creating a Custom Fields Group here: %s"
2610
  msgstr ""
2611
 
2612
+ #: help.php:209
2613
  msgid ""
2614
  "On this page you can create and edit your groups. To create a group, do the "
2615
  "following:"
2616
  msgstr ""
2617
 
2618
+ #: help.php:211 help.php:304
2619
  msgid "Add a Title"
2620
  msgstr ""
2621
 
2622
+ #: help.php:213
2623
  msgid ""
2624
  "Choose where to display your group. You can attach this to both default "
2625
  "WordPress post types and Custom Post Types. (nb: you can also associate "
2626
  "taxonomy terms with Custom Field Groups)"
2627
  msgstr ""
2628
 
2629
+ #: help.php:215
2630
  msgid ""
2631
  "To add a field click on the field you desire under “Available Fields” on the "
2632
+ "right hand side of your screen.This will be added to your Custom Field Group"
2633
  msgstr ""
2634
 
2635
+ #: help.php:217
2636
  msgid "Add information about your Custom Field"
2637
  msgstr ""
2638
 
2639
+ #: help.php:219 help.php:312
2640
  msgid "Tips"
2641
  msgstr ""
2642
 
2643
+ #: help.php:221 help.php:314
2644
  msgid ""
2645
  "To ensure a user completes a field, check the box for validation required"
2646
  msgstr ""
2647
 
2648
+ #: help.php:223 help.php:316
2649
  msgid ""
2650
  "Once you have created a field it will be saved for future use under \"User "
2651
  "created fields\""
2652
  msgstr ""
2653
 
2654
+ #: help.php:225 help.php:318
2655
  msgid ""
2656
  "You can drag and drop the order of your custom fields using the blue icon"
2657
  msgstr ""
2658
 
2659
+ #: help.php:232
2660
  msgid ""
2661
  "Use this page to create a WordPress post type. If you’d like to learn more "
2662
  "about Custom Post Types you can read our detailed guide: <a href=\"http://wp-"
2667
  "type/ &raquo;</a>"
2668
  msgstr ""
2669
 
2670
+ #: help.php:235 help.php:258
2671
  msgid "Name and Description"
2672
  msgstr ""
2673
 
2674
+ #: help.php:236
2675
  msgid ""
2676
  "Add a singular and plural name for your post type. You should also add a "
2677
  "slug. This will be created from the post type name if none is added."
2678
  msgstr ""
2679
 
2680
+ #: help.php:237 help.php:260 includes/custom-taxonomies-form.php:500
2681
+ #: includes/custom-types-form.php:944
2682
  msgid "Visibility"
2683
  msgstr ""
2684
 
2685
+ #: help.php:238
2686
  msgid ""
2687
  "Determine whether your post type will be visible on the admin menu to your "
2688
  "users."
2689
  msgstr ""
2690
 
2691
+ #: help.php:239
2692
  msgid ""
2693
  "You can also adjust the menu position. The default position is 20, which "
2694
  "means your post type will appear under “Pages”. You can find more "
2698
  "register_post_type#Parameters</a>"
2699
  msgstr ""
2700
 
2701
+ #: help.php:240
2702
  msgid ""
2703
  "The default post type icon is the pushpin icon that appears beside WordPress "
2704
  "posts. You can change this by adding your own icon of 16px x 16px."
2705
  msgstr ""
2706
 
2707
+ #: help.php:241 includes/custom-types-form.php:1022
2708
  msgid "Select Taxonomies"
2709
  msgstr ""
2710
 
2711
+ #: help.php:242
2712
  msgid "Choose which taxonomies are to be associated with this post type."
2713
  msgstr ""
2714
 
2715
+ #: help.php:243 help.php:264 includes/custom-taxonomies-form.php:634
2716
+ #: includes/custom-types-form.php:1043
2717
  msgid "Labels"
2718
  msgstr ""
2719
 
2720
+ #: help.php:244
2721
  msgid ""
2722
  "Labels are the text that is attached to your custom post type name. Examples "
2723
  "of them in use are “Add New Post” (where “Add New” is the label”) and “Edit "
2725
  "suffice."
2726
  msgstr ""
2727
 
2728
+ #: help.php:245 includes/custom-types-form.php:1117
2729
  msgid "Custom Post Properites"
2730
  msgstr ""
2731
 
2732
+ #: help.php:246
2733
  msgid "Choose which sections to display on your “Add New” page."
2734
  msgstr ""
2735
 
2736
+ #: help.php:247
2737
  msgid "Advanced Settings"
2738
  msgstr ""
2739
 
2740
+ #: help.php:248
2741
  msgid ""
2742
  "Advanced settings give you even more control over your custom post type. You "
2743
  "can read in detail what all of these settings do on our tutorial."
2744
  msgstr ""
2745
 
2746
+ #: help.php:256
2747
  msgid ""
2748
  "You can use Custom Taxonomies to categorize your content. Read more about "
2749
  "what they are on our website: <a href=\"http://wp-types.com/learn/custom-"
2753
  "\">http://wp-types.com/user-guides/create-custom-taxonomies/</a>"
2754
  msgstr ""
2755
 
2756
+ #: help.php:259
2757
  msgid ""
2758
  "Add a singular and plural name for your taxonomy. You should also add a "
2759
  "slug. This will be created from the taxonomy name if none is added."
2760
  msgstr ""
2761
 
2762
+ #: help.php:261
2763
+ msgid ""
2764
+ "Determine whether your taxonomy will be visible on the admin menu to your "
2765
+ "users."
2766
+ msgstr ""
2767
+
2768
+ #: help.php:262 includes/custom-taxonomies-form.php:544
2769
  msgid "Select Post Types"
2770
  msgstr ""
2771
 
2772
+ #: help.php:263
2773
  msgid "Choose which post types this taxonomy should be associated with."
2774
  msgstr ""
2775
 
2776
+ #: help.php:265
2777
+ msgid ""
2778
+ "Labels are the text that is attached to your custom taxonomy name. Examples "
2779
+ "of them in use are “Add New Taxonomy” (where “Add New” is the label”) and "
2780
+ "“Edit Taxonomy” (where “Edit” is the label). In normal circumstances the "
2781
+ "defaults will suffice."
2782
  msgstr ""
2783
 
2784
+ #: help.php:266 includes/custom-taxonomies-form.php:656
2785
+ #: includes/custom-types-form.php:1217 includes/fields/radio.php:44
2786
+ #: includes/fields/select.php:44
2787
+ msgid "Options"
2788
  msgstr ""
2789
 
2790
+ #: help.php:267
2791
+ msgid ""
2792
+ "Advanced settings give you even more control over your custom taxonomy. You "
2793
+ "can read in detail what all of these settings do on our tutorial."
2794
+ msgstr ""
2795
+
2796
+ #: help.php:274
2797
+ msgid ""
2798
+ "Types plugin organizes User Fields in groups. Once you create a group, you "
2799
+ "can add the fields to it and control to what content it belongs."
2800
+ msgstr ""
2801
+
2802
+ #: help.php:277
2803
+ msgid ""
2804
+ "On this page you can see your current User Fields groups, as well as "
2805
+ "information about which user role they are attached to, and whether they are "
2806
+ "active or not."
2807
+ msgstr ""
2808
+
2809
+ #: help.php:281
2810
+ msgid "Use this to add a new User Fields Group"
2811
+ msgstr ""
2812
+
2813
+ #: help.php:283
2814
+ msgid "Click to edit the User Fields Group"
2815
+ msgstr ""
2816
+
2817
+ #: help.php:285
2818
+ msgid "Click to activate a User Fields Group"
2819
+ msgstr ""
2820
+
2821
+ #: help.php:287
2822
+ msgid ""
2823
+ "Click to deactivate a User Fields Group (this can be re-activated at a later "
2824
+ "date)"
2825
+ msgstr ""
2826
+
2827
+ #: help.php:289
2828
+ msgid "Click to delete a User Fields Group."
2829
+ msgstr ""
2830
+
2831
+ #: help.php:299
2832
+ msgid "This is the edit page for your User Fields Group."
2833
+ msgstr ""
2834
+
2835
+ #: help.php:302
2836
+ msgid ""
2837
+ "On this page you can create and edit your group. To create a group, do the "
2838
+ "following:"
2839
+ msgstr ""
2840
+
2841
+ #: help.php:306
2842
+ msgid ""
2843
+ "Choose where to display your group. You can attach this to both default "
2844
+ "WordPress post types and User Post Types. (nb: you can also associate "
2845
+ "taxonomy terms with User Field Groups)"
2846
+ msgstr ""
2847
+
2848
+ #: help.php:308
2849
+ msgid ""
2850
+ "To add a field click on the field you desire under “Available Fields” on the "
2851
+ "right hand side of your screen. This will be added to your User Field Group"
2852
+ msgstr ""
2853
+
2854
+ #: help.php:310
2855
+ msgid "Add information about your User Field"
2856
+ msgstr ""
2857
+
2858
+ #: help.php:341
2859
+ msgid "Post Type"
2860
+ msgstr ""
2861
+
2862
+ #: help.php:361
2863
+ msgid "Custom Fields Group"
2864
+ msgstr ""
2865
+
2866
+ #: help.php:369
2867
+ msgid "User Fields Group"
2868
+ msgstr ""
2869
+
2870
+ #: help.php:390
2871
+ msgid "Need More Help?"
2872
+ msgstr ""
2873
+
2874
+ #: includes/ajax.php:34 includes/ajax.php:63 includes/ajax.php:83
2875
+ #: includes/ajax.php:836
2876
+ msgid "Missing required data."
2877
+ msgstr ""
2878
+
2879
+ #: includes/ajax.php:51 includes/ajax.php:71 includes/ajax.php:91
2880
+ #: includes/ajax.php:125
2881
+ msgid "Verification failed."
2882
  msgstr ""
2883
 
2884
+ #: includes/ajax.php:180 includes/ajax.php:259
2885
+ msgid "Group deactivated"
2886
+ msgstr ""
2887
+
2888
+ #: includes/ajax.php:198 includes/ajax.php:275
2889
  msgid "Group activated"
2890
  msgstr ""
2891
 
2892
+ #: includes/ajax.php:308
2893
  msgid "Post type deactivated"
2894
  msgstr ""
2895
 
2896
+ #: includes/ajax.php:326
2897
  msgid "Post type activated"
2898
  msgstr ""
2899
 
2900
+ #: includes/ajax.php:528
2901
  msgid "Taxonomy deactivated"
2902
  msgstr ""
2903
 
2904
+ #: includes/ajax.php:550
2905
  msgid "Taxonomy activated"
2906
  msgstr ""
2907
 
2908
+ #: includes/ajax.php:719
2909
+ msgid ""
2910
+ "Migration process is not yet finished - please save group first, then change "
2911
+ "settings of this field."
2912
+ msgstr ""
2913
+
2914
+ #: includes/ajax.php:728
2915
+ msgid "%d users require update"
2916
+ msgstr ""
2917
+
2918
+ #: includes/ajax.php:728
2919
+ msgid "%d posts require update"
2920
+ msgstr ""
2921
+
2922
+ #: includes/ajax.php:729
2923
+ msgid "No users require update"
2924
+ msgstr ""
2925
+
2926
+ #: includes/ajax.php:729
2927
+ msgid "No posts require update"
2928
+ msgstr ""
2929
+
2930
+ #: includes/ajax.php:730
2931
+ msgid "Users updated"
2932
+ msgstr ""
2933
+
2934
+ #: includes/ajax.php:730
2935
+ msgid "Posts updated"
2936
+ msgstr ""
2937
+
2938
+ #: includes/ajax.php:753 includes/import-export.php:378
2939
+ #: includes/import-export.php:487
2940
+ msgid "Update"
2941
+ msgstr ""
2942
+
2943
+ #: includes/ajax.php:769
2944
+ msgid "Error occured"
2945
+ msgstr ""
2946
+
2947
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:88
2948
+ msgid "All post types"
2949
+ msgstr ""
2950
+
2951
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:107
2952
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:101
2953
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:99
2954
+ #: includes/classes/class.wpcf.user.fields.list.table.php:97
2955
+ msgid "No"
2956
+ msgstr ""
2957
+
2958
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:227
2959
+ #: includes/classes/class.wpcf.user.fields.list.table.php:217
2960
+ msgid "Group Name"
2961
+ msgstr ""
2962
+
2963
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:229
2964
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:250
2965
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:237
2966
+ #: includes/classes/class.wpcf.user.fields.list.table.php:219
2967
+ msgid "Active"
2968
+ msgstr ""
2969
+
2970
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:230
2971
+ #: plus/types-access/includes/admin-edit-access.php:55
2972
+ msgid "Post types"
2973
+ msgstr ""
2974
+
2975
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:543
2976
+ msgid "No custom field groups found."
2977
+ msgstr ""
2978
+
2979
+ #: includes/classes/class.wpcf.custom.fields.list.table.php:548
2980
+ msgid "To use custom fields, please create a group to hold them."
2981
+ msgstr ""
2982
+
2983
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:248
2984
+ msgid "Post Type Name"
2985
+ msgstr ""
2986
+
2987
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:509
2988
+ msgid "This is build-in WordPress post type."
2989
+ msgstr ""
2990
+
2991
+ #: includes/classes/class.wpcf.custom.post.types.list.table.php:598
2992
+ msgid "No custom post types found."
2993
+ msgstr ""
2994
+
2995
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:235
2996
+ msgid "Taxonomy Name"
2997
+ msgstr ""
2998
+
2999
+ #: includes/classes/class.wpcf.custom.taxonomies.list.table.php:536
3000
+ msgid "No custom taxonomies found."
3001
+ msgstr ""
3002
+
3003
+ #: includes/classes/class.wpcf.marketing.messages.php:153
3004
+ msgid "Posts"
3005
+ msgstr ""
3006
+
3007
+ #: includes/classes/class.wpcf.marketing.messages.php:154
3008
+ msgid "Tags"
3009
+ msgstr ""
3010
+
3011
+ #: includes/classes/class.wpcf.marketing.messages.php:169
3012
+ msgid "Saving your changes"
3013
+ msgstr ""
3014
+
3015
+ #: includes/classes/class.wpcf.marketing.messages.php:171
3016
+ msgid "Did you know?"
3017
+ msgstr ""
3018
+
3019
+ #: includes/classes/class.wpcf.marketing.messages.php:269
3020
+ msgid "Updated!"
3021
+ msgstr ""
3022
+
3023
+ #: includes/classes/class.wpcf.marketing.messages.php:269
3024
+ msgid "Created!"
3025
+ msgstr ""
3026
+
3027
+ #: includes/classes/class.wpcf.marketing.messages.php:321
3028
+ msgid "Need help with <em>Types</em>?"
3029
+ msgstr ""
3030
+
3031
+ #: includes/classes/class.wpcf.marketing.messages.php:322
3032
+ msgid ""
3033
+ "Types plugin includes a lot of options. Tell us what kind of site you are "
3034
+ "building and we'll show you how to use Types in the best way."
3035
+ msgstr ""
3036
+
3037
+ #: includes/classes/class.wpcf.marketing.messages.php:324
3038
+ msgid "Get Started"
3039
+ msgstr ""
3040
+
3041
+ #: includes/classes/class.wpcf.marketing.php:69
3042
+ msgid "Want to create templates with fields?"
3043
+ msgstr ""
3044
+
3045
+ #: includes/classes/class.wpcf.marketing.php:73
3046
+ msgid ""
3047
+ "The full Toolset package allows you to design templates for content and "
3048
+ "insert fields using the WordPress editor."
3049
+ msgstr ""
3050
+
3051
+ #: includes/classes/class.wpcf.marketing.php:88
3052
+ msgid "Meet Toolset"
3053
  msgstr ""
3054
 
3055
+ #: includes/classes/class.wpcf.marketing.php:100
3056
+ msgid "Creating Templates for Content"
3057
  msgstr ""
3058
 
3059
+ #: includes/classes/class.wpcf.marketing.php:218
3060
+ #: marketing/getting-started/index.php:18
3061
+ msgid "What kind of site are you building?"
 
3062
  msgstr ""
3063
 
3064
+ #: includes/classes/class.wpcf.marketing.php:219
3065
+ msgid "Getting Started"
3066
  msgstr ""
3067
 
3068
+ #: includes/classes/class.wpcf.marketing.tutorial.php:34
3069
+ msgid "Tutorial error"
3070
  msgstr ""
3071
 
3072
+ #: includes/classes/class.wpcf.marketing.tutorial.php:39
3073
+ msgid "Wrong tutorial id."
3074
  msgstr ""
3075
 
3076
+ #: includes/classes/class.wpcf.marketing.tutorial.php:44
3077
+ msgid "There is a problem with tutorial url."
3078
  msgstr ""
3079
 
3080
+ #: includes/classes/class.wpcf.marketing.tutorial.php:47
3081
+ msgid "Selected tutorial is empty."
3082
  msgstr ""
3083
 
3084
+ #: includes/classes/class.wpcf.marketing.tutorial.php:55
3085
+ msgid "Some error occured."
3086
  msgstr ""
3087
 
3088
+ #: includes/classes/class.wpcf.marketing.tutorial.php:142
3089
+ msgid "Select instructions for other kinds of sites"
3090
  msgstr ""
3091
 
3092
+ #: includes/classes/class.wpcf.marketing.tutorial.php:150
3093
+ msgid "Reload"
 
 
 
3094
  msgstr ""
3095
 
3096
+ #: includes/classes/class.wpcf.roles.php:59
3097
+ msgid "Types capabilities"
 
3098
  msgstr ""
3099
 
3100
+ #: includes/classes/class.wpcf.roles.php:69
3101
+ msgid "View Custom Post Types"
 
 
 
3102
  msgstr ""
3103
 
3104
+ #: includes/classes/class.wpcf.roles.php:70
3105
+ msgid "Create and edit my Custom Post Types"
 
3106
  msgstr ""
3107
 
3108
+ #: includes/classes/class.wpcf.roles.php:71
3109
+ msgid "Edit others Custom Post Types"
 
 
 
 
 
 
3110
  msgstr ""
3111
 
3112
+ #: includes/classes/class.wpcf.roles.php:73
3113
+ msgid "View Custom Taxonomies"
 
 
 
 
 
3114
  msgstr ""
3115
 
3116
+ #: includes/classes/class.wpcf.roles.php:74
3117
+ msgid "Create and edit my Custom Taxonomies"
 
 
3118
  msgstr ""
3119
 
3120
+ #: includes/classes/class.wpcf.roles.php:75
3121
+ msgid "Edit others Custom Taxonomies"
3122
  msgstr ""
3123
 
3124
+ #: includes/classes/class.wpcf.roles.php:77
3125
+ msgid "View Custom Fields"
3126
  msgstr ""
3127
 
3128
+ #: includes/classes/class.wpcf.roles.php:78
3129
+ msgid "Create and edit my Custom Fields"
 
3130
  msgstr ""
3131
 
3132
+ #: includes/classes/class.wpcf.roles.php:79
3133
+ msgid "Edit others Custom Fields"
3134
  msgstr ""
3135
 
3136
+ #: includes/classes/class.wpcf.roles.php:81
3137
+ msgid "View User Meta Fields"
3138
  msgstr ""
3139
 
3140
+ #: includes/classes/class.wpcf.roles.php:82
3141
+ msgid "Create and edit my User Meta Fields"
3142
  msgstr ""
3143
 
3144
+ #: includes/classes/class.wpcf.roles.php:83
3145
+ msgid "Edit others User Meta Fields"
3146
  msgstr ""
3147
 
3148
  #: includes/classes/class.wpcf.user.fields.list.table.php:89
3149
+ #: includes/usermeta-form.php:432
3150
  msgid "This groups visibility is also controlled by the Access plugin."
3151
  msgstr ""
3152
 
3153
  #: includes/classes/class.wpcf.user.fields.list.table.php:93
3154
+ #: includes/usermeta-form.php:404 includes/usermeta-form.php:424
3155
  msgid "Displayed for all users roles"
3156
  msgstr ""
3157
 
3158
+ #: includes/classes/class.wpcf.user.fields.list.table.php:220
3159
  msgid "Available for"
3160
  msgstr ""
3161
 
3162
+ #: includes/classes/class.wpcf.user.fields.list.table.php:525
3163
  msgid "No user field groups found."
3164
  msgstr ""
3165
 
3166
+ #: includes/classes/class.wpcf.user.fields.list.table.php:530
3167
  msgid ""
3168
  "User Fields, also known as user-meta, are additional fields that belong to "
3169
  "user profiles."
3173
  msgid "Click to toggle"
3174
  msgstr ""
3175
 
3176
+ #: includes/common-functions.php:133 includes/common-functions.php:158
3177
+ msgid "[empty]"
3178
+ msgstr ""
3179
+
3180
+ #: includes/common-functions.php:147 includes/fields-control.php:186
3181
+ #: includes/usermeta-control.php:174
3182
+ msgid "Type"
3183
+ msgstr ""
3184
+
3185
+ #: includes/common-functions.php:151
3186
+ msgid "Name"
3187
+ msgstr ""
3188
+
3189
+ #: includes/common-functions.php:155 includes/custom-taxonomies-form.php:154
3190
+ #: includes/custom-types-form.php:215
3191
+ msgid "Slug"
3192
+ msgstr ""
3193
+
3194
+ #: includes/common-functions.php:162 includes/fields-form.php:1238
3195
+ msgid "Allow multiple-instances of this field"
3196
+ msgstr ""
3197
+
3198
+ #: includes/common-functions.php:162 includes/fields-form.php:1243
3199
+ msgid "This field can have only one value"
3200
+ msgstr ""
3201
+
3202
+ #: includes/common-functions.php:163
3203
+ msgid "Repetitive"
3204
+ msgstr ""
3205
+
3206
  #: includes/conditional-display.php:40
3207
  msgid ""
3208
  "You will be able to set conditional field display once this group is saved."
3209
  msgstr ""
3210
 
3211
+ #: includes/conditional-display.php:150
3212
  msgid "Conditional display"
3213
  msgstr ""
3214
 
3215
+ #: includes/conditional-display.php:158 includes/conditional-display.php:159
3216
  msgid "custom logic"
3217
  msgstr ""
3218
 
3219
+ #: includes/conditional-display.php:163
3220
  msgid "Data-dependent display filters %s"
3221
  msgstr ""
3222
 
3223
+ #: includes/conditional-display.php:164
3224
  msgid ""
3225
  "Specify additional filters that control this group's display, based on "
3226
  "values of custom fields."
3227
  msgstr ""
3228
 
3229
+ #: includes/conditional-display.php:184
3230
  msgid "Conditional display is not supported yet for Usermeta fields."
3231
  msgstr ""
3232
 
3233
+ #: includes/conditional-display.php:206
3234
  msgid "Add condition"
3235
  msgstr ""
3236
 
3237
+ #: includes/conditional-display.php:266
3238
  msgid "Go back to simple logic"
3239
  msgstr ""
3240
 
3241
+ #: includes/conditional-display.php:267
3242
  msgid "Customize the display logic"
3243
  msgstr ""
3244
 
3245
+ #: includes/conditional-display.php:282
3246
  msgid "Customize conditions"
3247
  msgstr ""
3248
 
3249
+ #: includes/conditional-display.php:290
3250
  msgid "%sDates can be entered using the date filters &raquo;%s"
3251
  msgstr ""
3252
 
3253
+ #: includes/conditional-display.php:314 includes/fields-form.php:1520
3254
+ #: includes/fields-form.php:1630
3255
  #: plus/installer/templates/repository-listing.php:26
3256
+ #: plus/types-access/includes/admin-edit-access.php:837
3257
+ #: plus/types-access/includes/admin-edit-access.php:867
3258
  msgid "OK"
3259
  msgstr ""
3260
 
3261
+ #: includes/conditional-display.php:434
3262
  msgid ""
3263
  "Conditional display is only working based on non-repeating fields. All "
3264
  "fields in this group are repeating, so you cannot set their display based on "
3265
  "other fields."
3266
  msgstr ""
3267
 
3268
+ #: includes/conditional-display.php:442
3269
  msgid ""
3270
  "You will be able to set conditional field display when you save more fields."
3271
  msgstr ""
3272
 
3273
+ #: includes/conditional-display.php:504
3274
  msgid "Remove condition"
3275
  msgstr ""
3276
 
3277
+ #: includes/conditional-display.php:602
3278
  msgid "%1$s%2$s, %3$s"
3279
  msgstr ""
3280
 
3281
+ #: includes/conditional-display.php:604
3282
  msgid "Please enter a valid date here"
3283
  msgstr ""
3284
 
3285
+ #: includes/custom-taxonomies-form.php:38
3286
  msgid "Wrong custom taxonomy specified"
3287
  msgstr ""
3288
 
3289
+ #: includes/custom-taxonomies-form.php:98 includes/custom-types-form.php:153
3290
  msgid "Name and description"
3291
  msgstr ""
3292
 
3293
+ #: includes/custom-taxonomies-form.php:105
3294
  msgid "Custom taxonomy name plural"
3295
  msgstr ""
3296
 
3297
+ #: includes/custom-taxonomies-form.php:105
3298
+ #: includes/custom-taxonomies-form.php:121
3299
+ #: includes/custom-taxonomies-form.php:154 includes/custom-types-form.php:160
3300
+ #: includes/custom-types-form.php:180 includes/custom-types-form.php:215
3301
  msgid "required"
3302
  msgstr ""
3303
 
3304
+ #: includes/custom-taxonomies-form.php:106 includes/custom-types-form.php:161
3305
  msgid "Enter in plural!"
3306
  msgstr ""
3307
 
3308
+ #: includes/custom-taxonomies-form.php:115
3309
  msgid "Enter custom taxonomy name plural"
3310
  msgstr ""
3311
 
3312
+ #: includes/custom-taxonomies-form.php:121
3313
  msgid "Custom taxonomy name singular"
3314
  msgstr ""
3315
 
3316
+ #: includes/custom-taxonomies-form.php:122
3317
+ #: includes/custom-taxonomies-form.php:155 includes/custom-types-form.php:181
3318
  msgid "Enter in singular!"
3319
  msgstr ""
3320
 
3321
+ #: includes/custom-taxonomies-form.php:131
3322
  msgid "Enter custom taxonomy name singular"
3323
  msgstr ""
3324
 
3325
+ #: includes/custom-taxonomies-form.php:156
 
 
 
 
3326
  msgid "Machine readable name."
3327
  msgstr ""
3328
 
3329
+ #: includes/custom-taxonomies-form.php:157
3330
  msgid "If not provided - will be created from singular name."
3331
  msgstr ""
3332
 
3333
+ #: includes/custom-taxonomies-form.php:168
3334
  msgid "Enter custom taxonomy slug"
3335
  msgstr ""
3336
 
3337
+ #: includes/custom-taxonomies-form.php:180
3338
  msgid "Enter custom taxonomy description"
3339
  msgstr ""
3340
 
3341
+ #: includes/custom-taxonomies-form.php:354
3342
  msgid "Please set taxonomy name"
3343
  msgstr ""
3344
 
3345
+ #: includes/custom-taxonomies-form.php:374
3346
  msgid "Custom taxonomy do not exist"
3347
  msgstr ""
3348
 
3349
+ #: includes/custom-taxonomies-form.php:386
3350
  msgid "Custom taxonomy already exists"
3351
  msgstr ""
3352
 
3353
+ #: includes/custom-taxonomies-form.php:393
3354
  msgid "Taxonomy already exists"
3355
  msgstr ""
3356
 
3357
+ #: includes/custom-taxonomies-form.php:459
3358
  msgid "Custom taxonomy saved"
3359
  msgstr ""
3360
 
3361
+ #: includes/custom-taxonomies-form.php:490
3362
  msgid "Save Custom Taxonomy"
3363
  msgstr ""
3364
 
3365
+ #: includes/custom-taxonomies-form.php:505
3366
  msgid "Make this taxonomy public (will appear in the WordPress Admin menu)"
3367
  msgstr ""
3368
 
3369
+ #: includes/custom-taxonomies-form.php:506
3370
  msgid "Hidden - users cannot directly edit data in this taxonomy"
3371
  msgstr ""
3372
 
3373
+ #: includes/custom-taxonomies-form.php:548
3374
  msgid "Registered post types that will be used with this taxonomy."
3375
  msgstr ""
3376
 
3377
+ #: includes/custom-taxonomies-form.php:567 includes/custom-types-form.php:1071
3378
  msgid "Search %s"
3379
  msgstr ""
3380
 
3381
+ #: includes/custom-taxonomies-form.php:568
3382
  msgid ""
3383
  "The search items text. Default is __( 'Search Tags' ) or __( 'Search "
3384
  "Categories' )."
3385
  msgstr ""
3386
 
3387
+ #: includes/custom-taxonomies-form.php:569 includes/custom-types-form.php:1073
3388
  msgid "Search Items"
3389
  msgstr ""
3390
 
3391
+ #: includes/custom-taxonomies-form.php:572
3392
  msgid "Popular %s"
3393
  msgstr ""
3394
 
3395
+ #: includes/custom-taxonomies-form.php:573
3396
  msgid "The popular items text. Default is __( 'Popular Tags' ) or null."
3397
  msgstr ""
3398
 
3399
+ #: includes/custom-taxonomies-form.php:574
3400
  msgid "Popular Items"
3401
  msgstr ""
3402
 
3403
+ #: includes/custom-taxonomies-form.php:577
3404
  msgid "All %s"
3405
  msgstr ""
3406
 
3407
+ #: includes/custom-taxonomies-form.php:578
3408
  msgid ""
3409
  "The all items text. Default is __( 'All Tags' ) or __( 'All Categories' )."
3410
  msgstr ""
3411
 
3412
+ #: includes/custom-taxonomies-form.php:579 includes/custom-types-form.php:1093
3413
  msgid "All Items"
3414
  msgstr ""
3415
 
3416
+ #: includes/custom-taxonomies-form.php:582
3417
  msgid "Parent %s"
3418
  msgstr ""
3419
 
3420
+ #: includes/custom-taxonomies-form.php:583
3421
  msgid ""
3422
  "The parent item text. This string is not used on non-hierarchical taxonomies "
3423
  "such as post tags. Default is null or __( 'Parent Category' )."
3424
  msgstr ""
3425
 
3426
+ #: includes/custom-taxonomies-form.php:584
3427
  msgid "Parent Item"
3428
  msgstr ""
3429
 
3430
+ #: includes/custom-taxonomies-form.php:587
3431
  msgid "Parent %s:"
3432
  msgstr ""
3433
 
3434
+ #: includes/custom-taxonomies-form.php:588
3435
  msgid ""
3436
  "The same as parent_item, but with colon : in the end null, __( 'Parent "
3437
  "Category:' )."
3438
  msgstr ""
3439
 
3440
+ #: includes/custom-taxonomies-form.php:589
3441
  msgid "Parent Item with colon"
3442
  msgstr ""
3443
 
3444
+ #: includes/custom-taxonomies-form.php:592 includes/custom-types-form.php:1056
3445
  msgid "Edit %s"
3446
  msgstr ""
3447
 
3448
+ #: includes/custom-taxonomies-form.php:593
3449
  msgid ""
3450
  "The edit item text. Default is __( 'Edit Tag' ) or __( 'Edit Category' )."
3451
  msgstr ""
3452
 
3453
+ #: includes/custom-taxonomies-form.php:594 includes/custom-types-form.php:1058
3454
  msgid "Edit Item"
3455
  msgstr ""
3456
 
3457
+ #: includes/custom-taxonomies-form.php:598
3458
  msgid ""
3459
  "The update item text. Default is __( 'Update Tag' ) or __( 'Update "
3460
  "Category' )."
3461
  msgstr ""
3462
 
3463
+ #: includes/custom-taxonomies-form.php:599
3464
  msgid "Update Item"
3465
  msgstr ""
3466
 
3467
+ #: includes/custom-taxonomies-form.php:602 includes/custom-types-form.php:1051
3468
  msgid "Add New %s"
3469
  msgstr ""
3470
 
3471
+ #: includes/custom-taxonomies-form.php:603
3472
  msgid ""
3473
  "The add new item text. Default is __( 'Add New Tag' ) or __( 'Add New "
3474
  "Category' )."
3475
  msgstr ""
3476
 
3477
+ #: includes/custom-taxonomies-form.php:604 includes/custom-types-form.php:1053
3478
  msgid "Add New Item"
3479
  msgstr ""
3480
 
3481
+ #: includes/custom-taxonomies-form.php:607
3482
  msgid "New %s Name"
3483
  msgstr ""
3484
 
3485
+ #: includes/custom-taxonomies-form.php:608
3486
  msgid ""
3487
  "The new item name text. Default is __( 'New Tag Name' ) or __( 'New Category "
3488
  "Name' )."
3489
  msgstr ""
3490
 
3491
+ #: includes/custom-taxonomies-form.php:609
3492
  msgid "New Item Name"
3493
  msgstr ""
3494
 
3495
+ #: includes/custom-taxonomies-form.php:612
3496
  msgid "Separate %s with commas"
3497
  msgstr ""
3498
 
3499
+ #: includes/custom-taxonomies-form.php:613
3500
  msgid ""
3501
  "The separate item with commas text used in the taxonomy meta box. This "
3502
  "string isn't used on hierarchical taxonomies. Default is __( 'Separate tags "
3503
  "with commas' ), or null."
3504
  msgstr ""
3505
 
3506
+ #: includes/custom-taxonomies-form.php:614
3507
  msgid "Separate Items"
3508
  msgstr ""
3509
 
3510
+ #: includes/custom-taxonomies-form.php:617
3511
  msgid "Add or remove %s"
3512
  msgstr ""
3513
 
3514
+ #: includes/custom-taxonomies-form.php:618
3515
  msgid ""
3516
  "the add or remove items text used in the meta box when JavaScript is "
3517
  "disabled. This string isn't used on hierarchical taxonomies. Default is "
3518
  "__( 'Add or remove tags' ) or null."
3519
  msgstr ""
3520
 
3521
+ #: includes/custom-taxonomies-form.php:619
3522
  msgid "Add or remove"
3523
  msgstr ""
3524
 
3525
+ #: includes/custom-taxonomies-form.php:622
3526
  msgid "Choose from the most used %s"
3527
  msgstr ""
3528
 
3529
+ #: includes/custom-taxonomies-form.php:623
3530
  msgid ""
3531
  "The choose from most used text used in the taxonomy meta box. This string "
3532
  "isn't used on hierarchical taxonomies. Default is __( 'Choose from the most "
3533
  "used tags' ) or null."
3534
  msgstr ""
3535
 
3536
+ #: includes/custom-taxonomies-form.php:627
3537
+ #: includes/custom-taxonomies-form.php:629
3538
  msgid "Menu Name"
3539
  msgstr ""
3540
 
3541
+ #: includes/custom-taxonomies-form.php:628
3542
  msgid ""
3543
  "The menu name text. This string is the name to give menu items. Defaults to "
3544
  "value of name."
3545
  msgstr ""
3546
 
3547
+ #: includes/custom-taxonomies-form.php:663
 
 
 
 
 
3548
  msgid ""
3549
  "Hierarchical - like post categories, with parent / children relationship and "
3550
  "checkboxes to select taxonomy"
3551
  msgstr ""
3552
 
3553
+ #: includes/custom-taxonomies-form.php:664
3554
  msgid "Flat - like post tags, with a text input to enter terms"
3555
  msgstr ""
3556
 
3557
+ #: includes/custom-taxonomies-form.php:671 includes/custom-types-form.php:1220
3558
  msgid "Rewrite"
3559
  msgstr ""
3560
 
3561
+ #: includes/custom-taxonomies-form.php:673
3562
  msgid ""
3563
  "Rewrite permalinks with this format. Default will use $taxonomy as query var."
3564
  msgstr ""
3565
 
3566
+ #: includes/custom-taxonomies-form.php:681
3567
  msgid "Prepend posts with this slug"
3568
  msgstr ""
3569
 
3570
+ #: includes/custom-taxonomies-form.php:682
3571
+ #: includes/custom-taxonomies-form.php:751 includes/custom-types-form.php:1353
3572
  msgid "Optional"
3573
  msgstr ""
3574
 
3575
+ #: includes/custom-taxonomies-form.php:682
3576
  msgid "Prepend posts with this slug - defaults to taxonomy's name."
3577
  msgstr ""
3578
 
3579
+ #: includes/custom-taxonomies-form.php:692 includes/custom-types-form.php:1250
3580
  msgid "Allow permalinks to be prepended with front base"
3581
  msgstr ""
3582
 
3583
+ #: includes/custom-taxonomies-form.php:694 includes/custom-types-form.php:1252
3584
+ #: includes/custom-types-form.php:1269
3585
  msgid "Defaults to true."
3586
  msgstr ""
3587
 
3588
+ #: includes/custom-taxonomies-form.php:701
3589
  msgid "Hierarchical URLs"
3590
  msgstr ""
3591
 
3592
+ #: includes/custom-taxonomies-form.php:702
3593
  msgid "True or false allow hierarchical urls (implemented in %sVersion 3.1%s)."
3594
  msgstr ""
3595
 
3596
+ #: includes/custom-taxonomies-form.php:714 includes/custom-types-form.php:1304
3597
  msgid "show_ui"
3598
  msgstr ""
3599
 
3600
+ #: includes/custom-taxonomies-form.php:715
3601
  msgid "Whether to generate a default UI for managing this taxonomy."
3602
  msgstr ""
3603
 
3604
+ #: includes/custom-taxonomies-form.php:715
3605
+ #: includes/custom-taxonomies-form.php:722
3606
  msgid "Default: if not set, defaults to value of public argument."
3607
  msgstr ""
3608
 
3609
+ #: includes/custom-taxonomies-form.php:721 includes/custom-types-form.php:1339
3610
  msgid "show_in_nav_menus"
3611
  msgstr ""
3612
 
3613
+ #: includes/custom-taxonomies-form.php:722
3614
  msgid "True makes this taxonomy available for selection in navigation menus."
3615
  msgstr ""
3616
 
3617
+ #: includes/custom-taxonomies-form.php:728
3618
  msgid "show_tagcloud"
3619
  msgstr ""
3620
 
3621
+ #: includes/custom-taxonomies-form.php:729
3622
  msgid "Whether to allow the Tag Cloud widget to use this taxonomy."
3623
  msgstr ""
3624
 
3625
+ #: includes/custom-taxonomies-form.php:729
3626
  msgid "Default: if not set, defaults to value of show_ui argument."
3627
  msgstr ""
3628
 
3629
+ #: includes/custom-taxonomies-form.php:738
3630
  msgid "show_admin_column"
3631
  msgstr ""
3632
 
3633
+ #: includes/custom-taxonomies-form.php:739
3634
  msgid ""
3635
  "Whether to allow automatic creation of taxonomy columns on associated post-"
3636
  "types."
3637
  msgstr ""
3638
 
3639
+ #: includes/custom-taxonomies-form.php:739 includes/custom-types-form.php:1326
3640
  msgid "Default: false."
3641
  msgstr ""
3642
 
3643
+ #: includes/custom-taxonomies-form.php:749
3644
  msgid ""
3645
  "False to prevent queries, or string to customize query var. Default will use "
3646
  "$taxonomy as query var."
3647
  msgstr ""
3648
 
3649
+ #: includes/custom-taxonomies-form.php:749
3650
  msgid "Default: $taxonomy."
3651
  msgstr ""
3652
 
3653
+ #: includes/custom-taxonomies-form.php:751 includes/custom-types-form.php:1353
3654
  msgid "String to customize query var"
3655
  msgstr ""
3656
 
3657
+ #: includes/custom-taxonomies-form.php:758
3658
  msgid ""
3659
  "Function name that will be called to update the count of an associated "
3660
  "$object_type, such as post, is updated."
3661
  msgstr ""
3662
 
3663
+ #: includes/custom-taxonomies-form.php:758
3664
+ #: includes/custom-taxonomies-form.php:781
3665
  msgid "Default: None."
3666
  msgstr ""
3667
 
3668
+ #: includes/custom-taxonomies-form.php:765
3669
  msgid "Meta box callback function"
3670
  msgstr ""
3671
 
3672
+ #: includes/custom-taxonomies-form.php:770
3673
  msgid "Hide taxonomy meta box."
3674
  msgstr ""
3675
 
3676
+ #: includes/custom-taxonomies-form.php:774
3677
  msgid "If you disable this, there will be no metabox on entry edit screen."
3678
  msgstr ""
3679
 
3680
+ #: includes/custom-taxonomies-form.php:780
3681
  msgid "meta_box_cb"
3682
  msgstr ""
3683
 
3684
+ #: includes/custom-taxonomies-form.php:781
3685
  msgid "Provide a callback function name for the meta box display."
3686
  msgstr ""
3687
 
3688
+ #: includes/custom-types-form.php:46
3689
  msgid "Wrong custom post type specified"
3690
  msgstr ""
3691
 
3692
+ #: includes/custom-types-form.php:160
3693
  msgid "Custom post type name plural"
3694
  msgstr ""
3695
 
3696
+ #: includes/custom-types-form.php:173
3697
  msgid "Enter post type name plural"
3698
  msgstr ""
3699
 
3700
+ #: includes/custom-types-form.php:180
3701
  msgid "Custom post type name singular"
3702
  msgstr ""
3703
 
3704
+ #: includes/custom-types-form.php:192
3705
  msgid "Enter post type name singular"
3706
  msgstr ""
3707
 
3708
+ #: includes/custom-types-form.php:226
3709
  msgid "Enter post type slug"
3710
  msgstr ""
3711
 
3712
+ #: includes/custom-types-form.php:240
3713
  msgid "Enter post type description"
3714
  msgstr ""
3715
 
3716
+ #: includes/custom-types-form.php:253
3717
  msgid "Icon"
3718
  msgstr ""
3719
 
3720
+ #: includes/custom-types-form.php:705
3721
  msgid "Please set post type name"
3722
  msgstr ""
3723
 
3724
+ #: includes/custom-types-form.php:725
3725
  msgid "Custom post type already exists"
3726
  msgstr ""
3727
 
3728
+ #: includes/custom-types-form.php:895
3729
  msgid "Custom post type saved"
3730
  msgstr ""
3731
 
3732
+ #: includes/custom-types-form.php:897
3733
+ msgid "Post type saved"
3734
+ msgstr ""
3735
+
3736
+ #: includes/custom-types-form.php:934
3737
+ msgid "Save Custom Post Type"
3738
  msgstr ""
3739
 
3740
+ #: includes/custom-types-form.php:949
3741
  msgid "Make this type public (will appear in the WordPress Admin menu)"
3742
  msgstr ""
3743
 
3744
+ #: includes/custom-types-form.php:950
3745
  msgid "Hidden - users cannot directly edit data in this type"
3746
  msgstr ""
3747
 
3748
+ #: includes/custom-types-form.php:959
3749
  msgid "Menu position"
3750
  msgstr ""
3751
 
3752
+ #: includes/custom-types-form.php:969
3753
  msgid "Menu icon"
3754
  msgstr ""
3755
 
3756
+ #: includes/custom-types-form.php:970
3757
  msgid ""
3758
  "The url to the icon to be used for this menu. Default: null - defaults to "
3759
  "the posts icon."
3760
  msgstr ""
3761
 
3762
+ #: includes/custom-types-form.php:981
3763
  msgid "Show on \"At a Glance\""
3764
  msgstr ""
3765
 
3766
+ #: includes/custom-types-form.php:983
3767
  msgid "Show number of entries on \"At a Glance\" admin widget."
3768
  msgstr ""
3769
 
3770
+ #: includes/custom-types-form.php:1026
3771
  msgid "Registered taxonomies that will be used with this post type."
3772
  msgstr ""
3773
 
3774
+ #: includes/custom-types-form.php:1047
3775
  msgid ""
3776
  "The add new text. The default is Add New for both hierarchical and non-"
3777
  "hierarchical types."
3778
  msgstr ""
3779
 
3780
+ #: includes/custom-types-form.php:1052
3781
  msgid "The add new item text. Default is Add New Post/Add New Page."
3782
  msgstr ""
3783
 
3784
+ #: includes/custom-types-form.php:1057
3785
  msgid "The edit item text. Default is Edit Post/Edit Page."
3786
  msgstr ""
3787
 
3788
+ #: includes/custom-types-form.php:1061
3789
  msgid "New %s"
3790
  msgstr ""
3791
 
3792
+ #: includes/custom-types-form.php:1062
3793
+ msgid "The new item text. Default is New Post/New Page."
3794
  msgstr ""
3795
 
3796
+ #: includes/custom-types-form.php:1063
3797
  msgid "New Item"
3798
  msgstr ""
3799
 
3800
+ #: includes/custom-types-form.php:1066
3801
  msgid "View %s"
3802
  msgstr ""
3803
 
3804
+ #: includes/custom-types-form.php:1067
3805
+ msgid "The view item text. Default is View Post/View Page."
3806
+ msgstr ""
3807
+
3808
+ #: includes/custom-types-form.php:1068
3809
  msgid "View Item"
3810
  msgstr ""
3811
 
3812
+ #: includes/custom-types-form.php:1072
3813
  msgid "The search items text. Default is Search Posts/Search Pages."
3814
  msgstr ""
3815
 
3816
+ #: includes/custom-types-form.php:1076
3817
  msgid "No %s found"
3818
  msgstr ""
3819
 
3820
+ #: includes/custom-types-form.php:1077
3821
  msgid "The not found text. Default is No posts found/No pages found."
3822
  msgstr ""
3823
 
3824
+ #: includes/custom-types-form.php:1078
3825
  msgid "Not Found"
3826
  msgstr ""
3827
 
3828
+ #: includes/custom-types-form.php:1081
3829
  msgid "No %s found in Trash"
3830
  msgstr ""
3831
 
3832
+ #: includes/custom-types-form.php:1082
3833
  msgid ""
3834
  "The not found in trash text. Default is No posts found in Trash/No pages "
3835
  "found in Trash."
3836
  msgstr ""
3837
 
3838
+ #: includes/custom-types-form.php:1083
3839
  msgid "Not Found In Trash"
3840
  msgstr ""
3841
 
3842
+ #: includes/custom-types-form.php:1086
3843
  msgid "Parent text"
3844
  msgstr ""
3845
 
3846
+ #: includes/custom-types-form.php:1087
3847
  msgid ""
3848
  "The parent text. This string isn't used on non-hierarchical types. In "
3849
  "hierarchical ones the default is Parent Page."
3850
  msgstr ""
3851
 
3852
+ #: includes/custom-types-form.php:1088
3853
  msgid "Parent Description"
3854
  msgstr ""
3855
 
3856
+ #: includes/custom-types-form.php:1091
3857
  msgid "All items"
3858
  msgstr ""
3859
 
3860
+ #: includes/custom-types-form.php:1092
3861
  msgid "The all items text used in the menu. Default is the Name label."
3862
  msgstr ""
3863
 
3864
+ #: includes/custom-types-form.php:1123
3865
  msgid "Text input field to create a post title."
3866
  msgstr ""
3867
 
3868
+ #: includes/custom-types-form.php:1130
3869
  msgid "Editor"
3870
  msgstr ""
3871
 
3872
+ #: includes/custom-types-form.php:1131
3873
  msgid "Content input box for writing."
3874
  msgstr ""
3875
 
3876
+ #: includes/custom-types-form.php:1138
3877
  msgid "Comments"
3878
  msgstr ""
3879
 
3880
+ #: includes/custom-types-form.php:1139
3881
  msgid "Ability to turn comments on/off."
3882
  msgstr ""
3883
 
3884
+ #: includes/custom-types-form.php:1145
3885
  msgid "Trackbacks"
3886
  msgstr ""
3887
 
3888
+ #: includes/custom-types-form.php:1146
3889
  msgid "Ability to turn trackbacks and pingbacks on/off."
3890
  msgstr ""
3891
 
3892
+ #: includes/custom-types-form.php:1152
3893
  msgid "Revisions"
3894
  msgstr ""
3895
 
3896
+ #: includes/custom-types-form.php:1153
3897
  msgid "Allows revisions to be made of your post."
3898
  msgstr ""
3899
 
3900
+ #: includes/custom-types-form.php:1159
3901
  msgid "Author"
3902
  msgstr ""
3903
 
3904
+ #: includes/custom-types-form.php:1160
3905
  msgid "Displays a dropdown menu for changing the post author."
3906
  msgstr ""
3907
 
3908
+ #: includes/custom-types-form.php:1166
3909
  msgid "Excerpt"
3910
  msgstr ""
3911
 
3912
+ #: includes/custom-types-form.php:1167
3913
  msgid "A text area for writing a custom excerpt."
3914
  msgstr ""
3915
 
3916
+ #: includes/custom-types-form.php:1173
3917
  msgid "Thumbnail"
3918
  msgstr ""
3919
 
3920
+ #: includes/custom-types-form.php:1174
3921
  msgid "Add a box for uploading a featured image."
3922
  msgstr ""
3923
 
3924
+ #: includes/custom-types-form.php:1180
3925
  msgid "custom-fields"
3926
  msgstr ""
3927
 
3928
+ #: includes/custom-types-form.php:1181
3929
  msgid "Custom fields input area."
3930
  msgstr ""
3931
 
3932
+ #: includes/custom-types-form.php:1187
3933
  msgid "page-attributes"
3934
  msgstr ""
3935
 
3936
+ #: includes/custom-types-form.php:1188
3937
  msgid "Menu order, hierarchical must be true to show Parent option"
3938
  msgstr ""
3939
 
3940
+ #: includes/custom-types-form.php:1194
3941
  msgid "post-formats"
3942
  msgstr ""
3943
 
3944
+ #: includes/custom-types-form.php:1195
3945
  msgid "Add post formats, see %sPost Formats%s"
3946
  msgstr ""
3947
 
3948
+ #: includes/custom-types-form.php:1222
3949
  msgid ""
3950
  "Rewrite permalinks with this format. False to prevent rewrite. Default: true "
3951
  "and use post type as slug."
3952
  msgstr ""
3953
 
3954
+ #: includes/custom-types-form.php:1230
3955
  msgid "Use the normal WordPress URL logic"
3956
  msgstr ""
3957
 
3958
+ #: includes/custom-types-form.php:1231
3959
  msgid "Use a custom URL format"
3960
  msgstr ""
3961
 
3962
+ #: includes/custom-types-form.php:1241 includes/custom-types-form.php:1291
3963
+ #: includes/custom-types-form.php:1298
3964
  msgid "Optional."
3965
  msgstr ""
3966
 
3967
+ #: includes/custom-types-form.php:1241
3968
  msgid "Prepend posts with this slug - defaults to post type's name."
3969
  msgstr ""
3970
 
3971
+ #: includes/custom-types-form.php:1252
3972
  msgid ""
3973
  "Example: if your permalink structure is /blog/, then your links will be: "
3974
  "false->/news/, true->/blog/news/."
3975
  msgstr ""
3976
 
3977
+ #: includes/custom-types-form.php:1259
3978
  msgid "Feeds"
3979
  msgstr ""
3980
 
3981
+ #: includes/custom-types-form.php:1260
3982
  msgid "Defaults to has_archive value."
3983
  msgstr ""
3984
 
3985
+ #: includes/custom-types-form.php:1268
3986
  msgid "Pages"
3987
  msgstr ""
3988
 
3989
+ #: includes/custom-types-form.php:1288
3990
  msgid "has_archive"
3991
  msgstr ""
3992
 
3993
+ #: includes/custom-types-form.php:1289
3994
  msgid "Allow to have custom archive slug for CPT."
3995
  msgstr ""
3996
 
3997
+ #: includes/custom-types-form.php:1289
3998
  msgid "Default: not set."
3999
  msgstr ""
4000
 
4001
+ #: includes/custom-types-form.php:1291
4002
  msgid "Default is value of rewrite or CPT slug."
4003
  msgstr ""
4004
 
4005
+ #: includes/custom-types-form.php:1296
4006
  msgid "show_in_menu"
4007
  msgstr ""
4008
 
4009
+ #: includes/custom-types-form.php:1297
4010
  msgid ""
4011
  "Whether to show the post type in the admin menu and where to show that menu. "
4012
  "Note that show_ui must be true."
4013
  msgstr ""
4014
 
4015
+ #: includes/custom-types-form.php:1297
4016
  msgid "Default: null."
4017
  msgstr ""
4018
 
4019
+ #: includes/custom-types-form.php:1298
4020
  msgid "Top level page like 'tools.php' or 'edit.php?post_type=page'"
4021
  msgstr ""
4022
 
4023
+ #: includes/custom-types-form.php:1305
4024
  msgid "Generate a default UI for managing this post type."
4025
  msgstr ""
4026
 
4027
+ #: includes/custom-types-form.php:1305 includes/custom-types-form.php:1312
4028
+ #: includes/custom-types-form.php:1340
4029
  msgid "Default: value of public argument."
4030
  msgstr ""
4031
 
4032
+ #: includes/custom-types-form.php:1311
4033
  msgid "publicly_queryable"
4034
  msgstr ""
4035
 
4036
+ #: includes/custom-types-form.php:1312
4037
  msgid "Whether post_type queries can be performed from the front end."
4038
  msgstr ""
4039
 
4040
+ #: includes/custom-types-form.php:1318
4041
  msgid "exclude_from_search"
4042
  msgstr ""
4043
 
4044
+ #: includes/custom-types-form.php:1319
4045
  msgid "Whether to exclude posts with this post type from search results."
4046
  msgstr ""
4047
 
4048
+ #: includes/custom-types-form.php:1319
4049
  msgid "Default: value of the opposite of the public argument."
4050
  msgstr ""
4051
 
4052
+ #: includes/custom-types-form.php:1325
4053
  msgid "hierarchical"
4054
  msgstr ""
4055
 
4056
+ #: includes/custom-types-form.php:1326
4057
  msgid "Whether the post type is hierarchical. Allows Parent to be specified."
4058
  msgstr ""
4059
 
4060
+ #: includes/custom-types-form.php:1332
4061
  msgid "can_export"
4062
  msgstr ""
4063
 
4064
+ #: includes/custom-types-form.php:1333
4065
  msgid "Can this post_type be exported."
4066
  msgstr ""
4067
 
4068
+ #: includes/custom-types-form.php:1333
4069
  msgid "Default: true."
4070
  msgstr ""
4071
 
4072
+ #: includes/custom-types-form.php:1340
4073
  msgid "Whether post_type is available for selection in navigation menus."
4074
  msgstr ""
4075
 
4076
+ #: includes/custom-types-form.php:1351
4077
  msgid ""
4078
  "False to prevent queries, or string value of the query var to use for this "
4079
  "post type."
4080
  msgstr ""
4081
 
4082
+ #: includes/custom-types-form.php:1351
4083
  msgid "Default: true - set to $post_type."
4084
  msgstr ""
4085
 
4086
+ #: includes/custom-types-form.php:1359
4087
  msgid "Permalink epmask"
4088
  msgstr ""
4089
 
4090
+ #: includes/custom-types-form.php:1360
4091
  msgid "Default value EP_PERMALINK. More info here %s."
4092
  msgstr ""
4093
 
4094
+ #: includes/custom-types-taxonomies-list.php:13
4095
+ msgid ""
4096
+ "Custom Post Types are user-defined content types. Custom Taxonomies are used "
4097
+ "to categorize your content."
4098
+ msgstr ""
4099
+
4100
+ #: includes/custom-types-taxonomies-list.php:14
4101
  msgid ""
4102
  "You can read more about Custom Post Types and Taxonomies in this tutorial. "
4103
  "<a href=\"http://wp-types.com/learn/custom-post-types/\" target=\"_blank"
4104
  "\">http://wp-types.com/learn/custom-post-types/ &raquo;</a>"
4105
  msgstr ""
4106
 
4107
+ #: includes/custom-types-taxonomies-list.php:31
4108
  msgid "Search custom posts"
4109
  msgstr ""
4110
 
4111
+ #: includes/custom-types-taxonomies-list.php:50
4112
  msgid "Search custom taxonomies"
4113
  msgstr ""
4114
 
4124
  msgid "Under this name field will be stored in DB (sanitized)"
4125
  msgstr ""
4126
 
4127
+ #: includes/fields/checkbox.php:49 includes/fields/checkboxes.php:44
4128
+ #: includes/fields/date.php:45 includes/fields/radio.php:38
4129
+ #: includes/fields/select.php:38
4130
  msgid "Text that describes function to user"
4131
  msgstr ""
4132
 
4133
+ #: includes/fields/checkbox.php:55 includes/fields/checkboxes.php:174
4134
  msgid "Value to store"
4135
  msgstr ""
4136
 
4137
+ #: includes/fields/checkbox.php:60 includes/fields/checkboxes.php:179
4138
  msgid "This value can't be zero"
4139
  msgstr ""
4140
 
4141
+ #: includes/fields/checkbox.php:61 includes/fields/checkboxes.php:180
4142
  msgid "Please enter a value"
4143
  msgstr ""
4144
 
4145
+ #: includes/fields/checkbox.php:73
4146
  msgid "save 0 to the database"
4147
  msgstr ""
4148
 
4149
+ #: includes/fields/checkbox.php:78
4150
  msgid "don't save anything to the database"
4151
  msgstr ""
4152
 
4153
+ #: includes/fields/checkbox.php:83
4154
  msgid "When unchecked:"
4155
  msgstr ""
4156
 
4157
+ #: includes/fields/checkbox.php:89 includes/fields/checkboxes.php:188
4158
  msgid "Set checked by default (on new post)?"
4159
  msgstr ""
4160
 
4161
+ #: includes/fields/checkbox.php:107 includes/fields/checkboxes.php:206
4162
  msgid "Show one of these two values:"
4163
  msgstr ""
4164
 
4165
+ #: includes/fields/checkbox.php:135
4166
  msgid "Checkbox help"
4167
  msgstr ""
4168
 
4169
+ #: includes/fields/checkboxes.php:58
4170
  msgid "When unchecked, save 0 to the database"
4171
  msgstr ""
4172
 
4173
+ #: includes/fields/checkboxes.php:63
4174
  msgid "When unchecked, don't save anything to the database"
4175
  msgstr ""
4176
 
4177
+ #: includes/fields/checkboxes.php:117 includes/fields/radio.php:104
4178
+ #: includes/fields/select.php:82
4179
  msgid "Add option"
4180
  msgstr ""
4181
 
4182
+ #: includes/fields/checkboxes.php:138 includes/fields/checkboxes.php:249
4183
  msgid "Checkbox title"
4184
  msgstr ""
4185
 
4186
+ #: includes/fields/checkboxes.php:146 includes/fields/radio.php:178
4187
+ #: includes/fields/select.php:110
4188
  msgid "Move this option"
4189
  msgstr ""
4190
 
4191
+ #: includes/fields/checkboxes.php:152
4192
  msgid "Delete this checkbox"
4193
  msgstr ""
4194
 
4195
+ #: includes/fields/date.php:55
4196
  msgid "Input only the date"
4197
  msgstr ""
4198
 
4199
+ #: includes/fields/date.php:59
4200
  msgid "Input date and time"
4201
  msgstr ""
4202
 
4203
+ #: includes/fields/radio.php:47 includes/fields/select.php:47
4204
  msgid "Display text"
4205
  msgstr ""
4206
 
4207
+ #: includes/fields/radio.php:49 includes/fields/select.php:49
4208
  msgid "Custom field content"
4209
  msgstr ""
4210
 
4211
+ #: includes/fields/radio.php:82
4212
  msgid "No Default"
4213
  msgstr ""
4214
 
4215
+ #: includes/fields/radio.php:161 includes/fields/radio.php:225
4216
+ #: includes/fields/select.php:95
4217
  msgid "Option title"
4218
  msgstr ""
4219
 
4220
+ #: includes/fields/radio.php:186 includes/fields/select.php:115
4221
  msgid "Delete this option"
4222
  msgstr ""
4223
 
4224
+ #: includes/fields/radio.php:199 includes/fields/select.php:128
4225
  msgid "Value"
4226
  msgstr ""
4227
 
4228
+ #: includes/fields/radio.php:240
4229
  msgid "Value to display"
4230
  msgstr ""
4231
 
4232
+ #: includes/fields-control.php:14
4233
  msgid "Search fields"
4234
  msgstr ""
4235
 
4236
+ #: includes/fields-control.php:183
4237
  msgid "Custom Field Name"
4238
  msgstr ""
4239
 
4240
+ #: includes/fields-control.php:184 includes/usermeta-control.php:172
4241
  msgid "Group"
4242
  msgstr ""
4243
 
4244
+ #: includes/fields-control.php:185 includes/usermeta-control.php:173
4245
  msgid "Types Name"
4246
  msgstr ""
4247
 
4248
+ #: includes/fields-control.php:221 includes/usermeta-control.php:209
 
 
 
 
4249
  msgid "Not under Types control"
4250
  msgstr ""
4251
 
4252
+ #: includes/fields-control.php:225 includes/usermeta-control.php:213
4253
  msgid "disabled"
4254
  msgstr ""
4255
 
4256
+ #: includes/fields-control.php:228 includes/usermeta-control.php:216
4257
  msgid ""
4258
  "This field was disabled during conversion. You need to set some further "
4259
  "settings in the group editor."
4260
  msgstr ""
4261
 
4262
+ #: includes/fields-control.php:239 includes/usermeta-control.php:228
4263
  msgid "Add to group"
4264
  msgstr ""
4265
 
4266
+ #: includes/fields-control.php:240 includes/usermeta-control.php:229
4267
  msgid "Remove from group"
4268
  msgstr ""
4269
 
4270
+ #: includes/fields-control.php:241 includes/usermeta-control.php:230
4271
  msgid "Change type"
4272
  msgstr ""
4273
 
4274
+ #: includes/fields-control.php:242 includes/usermeta-control.php:231
4275
  msgid "Add to Types control"
4276
  msgstr ""
4277
 
4278
+ #: includes/fields-control.php:243 includes/usermeta-control.php:232
4279
  msgid "Stop controlling with Types"
4280
  msgstr ""
4281
 
4282
+ #: includes/fields-control.php:251 includes/usermeta-control.php:240
4283
  msgid "Show pagination"
4284
  msgstr ""
4285
 
4286
+ #: includes/fields-control.php:254 includes/usermeta-control.php:243
4287
  msgid "Display all items"
4288
  msgstr ""
4289
 
4290
+ #: includes/fields-control.php:316 includes/usermeta-control.php:372
4291
  msgid ""
4292
  "Deleting fields will remove fields from groups and delete post meta. "
4293
  "Continue?"
4294
  msgstr ""
4295
 
4296
+ #: includes/fields-control.php:348 includes/usermeta-control.php:285
4297
  msgid "Removed from Types control: %s"
4298
  msgstr ""
4299
 
4300
+ #: includes/fields-control.php:361 includes/usermeta-control.php:298
4301
  msgid "Added to Types control: %s"
4302
  msgstr ""
4303
 
4304
+ #: includes/fields-control.php:380 includes/usermeta-control.php:315
4305
  msgid "Fields %s have been deleted."
4306
  msgstr ""
4307
 
4308
+ #: includes/fields-control.php:386 includes/usermeta-control.php:320
4309
  msgid "Fields %s are not Types fields. Types wont delete these fields."
4310
  msgstr ""
4311
 
4312
+ #: includes/fields-control.php:412 includes/usermeta-control.php:392
4313
  msgid "Please select fields"
4314
  msgstr ""
4315
 
4316
+ #: includes/fields-control.php:474 includes/settings.php:202
4317
+ #: includes/usermeta-control.php:458
4318
+ #: plus/types-access/includes/admin-edit-access.php:525
4319
+ #: plus/types-access/includes/admin-edit-access.php:528
4320
  msgid "Save Changes"
4321
  msgstr ""
4322
 
4323
+ #: includes/fields-form.php:43 includes/usermeta-form.php:36
4324
  msgid "Group name can not be empty."
4325
  msgstr ""
4326
 
4327
+ #: includes/fields-form.php:63 includes/fields-form.php:88
4328
+ #: includes/usermeta-form.php:58 includes/usermeta-form.php:81
4329
  msgid ""
4330
  "A group by name <em>%s</em> already exists. Please use a different name and "
4331
  "save again."
4332
  msgstr ""
4333
 
4334
+ #: includes/fields-form.php:74 includes/usermeta-form.php:68
4335
  msgid "Wrong group ID %d"
4336
  msgstr ""
4337
 
4338
+ #: includes/fields-form.php:104 includes/usermeta-form.php:99
4339
  msgid ""
4340
  "Field slugs cannot contain non-English characters. Please edit this field "
4341
  "name %s and save again."
4342
  msgstr ""
4343
 
4344
+ #: includes/fields-form.php:110
4345
  msgid "Field names or slugs cannot contain only numbers."
4346
  msgstr ""
4347
 
4348
+ #: includes/fields-form.php:122 includes/usermeta-form.php:112
4349
  msgid "Field with name \"%s\" already exists"
4350
  msgstr ""
4351
 
4352
+ #: includes/fields-form.php:128 includes/usermeta-form.php:119
4353
  msgid "Field with slug \"%s\" already exists"
4354
  msgstr ""
4355
 
4356
+ #: includes/fields-form.php:210 includes/usermeta-form.php:176
4357
  msgid "Group saved"
4358
  msgstr ""
4359
 
4360
+ #: includes/fields-form.php:216 includes/usermeta-form.php:182
4361
  msgid "Error saving group"
4362
  msgstr ""
4363
 
4364
+ #: includes/fields-form.php:250 includes/usermeta-form.php:213
4365
  msgid "Group with ID %d do not exist"
4366
  msgstr ""
4367
 
4368
+ #: includes/fields-form.php:290
4369
  msgid "Custom fields help"
4370
  msgstr ""
4371
 
4372
+ #: includes/fields-form.php:300 includes/usermeta-form.php:254
4373
  msgid "Available fields"
4374
  msgstr ""
4375
 
4376
+ #: includes/fields-form.php:349 includes/usermeta-form.php:304
4377
  msgid "User created fields"
4378
  msgstr ""
4379
 
4380
+ #: includes/fields-form.php:376 includes/usermeta-form.php:331
4381
  msgid "Are you sure that you want to remove field %s from history?"
4382
  msgstr ""
4383
 
4384
+ #: includes/fields-form.php:380 includes/usermeta-form.php:335
4385
  msgid "Remove field %s"
4386
  msgstr ""
4387
 
4388
+ #: includes/fields-form.php:459 includes/fields-form.php:479
4389
  msgid "Displayed on all content types"
4390
  msgstr ""
4391
 
4392
+ #: includes/fields-form.php:477
4393
  msgid "Post Types:"
4394
  msgstr ""
4395
 
4396
+ #: includes/fields-form.php:541 includes/fields-form.php:549
4397
+ #: includes/fields-form.php:606 includes/fields-form.php:628
4398
  msgid "Not Selected"
4399
  msgstr ""
4400
 
4401
+ #: includes/fields-form.php:547
4402
  msgid "Terms:"
4403
  msgstr ""
4404
 
4405
+ #: includes/fields-form.php:562 includes/fields-form.php:596
4406
  msgid "Default Template"
4407
  msgstr ""
4408
 
4409
+ #: includes/fields-form.php:626
4410
  msgid "Templates:"
4411
  msgstr ""
4412
 
4413
+ #: includes/fields-form.php:638 includes/usermeta-form.php:437
4414
  msgid "Where to display this group"
4415
  msgstr ""
4416
 
4417
+ #: includes/fields-form.php:641
4418
  msgid ""
4419
  "Each custom fields group can display on different content types or different "
4420
  "taxonomy."
4421
  msgstr ""
4422
 
4423
+ #: includes/fields-form.php:688
4424
  msgid "Display this group when ANY of the above conditions is met"
4425
  msgstr ""
4426
 
4427
+ #: includes/fields-form.php:689
4428
  msgid "Display this group when ALL the above conditions is met"
4429
  msgstr ""
4430
 
4431
+ #: includes/fields-form.php:697 includes/usermeta-form.php:654
4432
  msgid ""
4433
  "This group will appear on %pt% edit pages where content belongs to taxonomy: "
4434
+ "%tx% or Content Template is: %vt%"
4435
  msgstr ""
4436
 
4437
+ #: includes/fields-form.php:699 includes/usermeta-form.php:656
4438
  msgid ""
4439
  "This group will appear on %pt% edit pages where content belongs to taxonomy: "
4440
+ "%tx% and Content Template is: %vt%"
4441
  msgstr ""
4442
 
4443
+ #: includes/fields-form.php:701 includes/usermeta-form.php:658
4444
  msgid "all"
4445
  msgstr ""
4446
 
4447
+ #: includes/fields-form.php:703 includes/fields-form.php:705
4448
+ #: includes/usermeta-form.php:660 includes/usermeta-form.php:662
4449
  msgid "any"
4450
  msgstr ""
4451
 
4452
+ #: includes/fields-form.php:725 includes/usermeta-form.php:471
4453
  msgid "Styling Editor"
4454
  msgstr ""
4455
 
4456
+ #: includes/fields-form.php:728 includes/usermeta-form.php:474
4457
  msgid "Customize Fields for admin panel."
4458
  msgstr ""
4459
 
4460
+ #: includes/fields-form.php:794 includes/usermeta-form.php:535
4461
  msgid "Field group preview"
4462
  msgstr ""
4463
 
4464
+ #: includes/fields-form.php:802 includes/usermeta-form.php:543
4465
  msgid "Your CSS"
4466
  msgstr ""
4467
 
4468
+ #: includes/fields-form.php:806 includes/usermeta-form.php:546
4469
  msgid "Admin styles for fields:"
4470
  msgstr ""
4471
 
4472
+ #: includes/fields-form.php:807 includes/usermeta-form.php:546
4473
  msgid "Open style editor"
4474
  msgstr ""
4475
 
4476
+ #: includes/fields-form.php:823 includes/usermeta-form.php:564
4477
  msgid "Fields"
4478
  msgstr ""
4479
 
4480
+ #: includes/fields-form.php:886 includes/usermeta-form.php:625
4481
  msgid ""
4482
  "There are no fields in this group. To add a field, click on the field "
4483
  "buttons at the right."
4484
  msgstr ""
4485
 
4486
+ #: includes/fields-form.php:917 includes/usermeta-form.php:665
4487
  msgid "Warning: same values selected"
4488
  msgstr ""
4489
 
4490
+ #: includes/fields-form.php:919 includes/usermeta-form.php:667
4491
  msgid "Warning: field name already used"
4492
  msgstr ""
4493
 
4494
+ #: includes/fields-form.php:921 includes/usermeta-form.php:669
4495
  msgid "Warning: field slug already used"
4496
  msgstr ""
4497
 
4498
+ #: includes/fields-form.php:923
4499
  msgid "Sorry, but this is only preview!"
4500
  msgstr ""
4501
 
4502
+ #: includes/fields-form.php:959 includes/usermeta-form.php:701
4503
  msgid "Requested field don't exist"
4504
  msgstr ""
4505
 
4506
+ #: includes/fields-form.php:996
4507
  msgid "Wrong field requested"
4508
  msgstr ""
4509
 
4510
+ #: includes/fields-form.php:1044
4511
  msgid "Move this field"
4512
  msgstr ""
4513
 
4514
+ #: includes/fields-form.php:1048
4515
  msgid "Delete this field"
4516
  msgstr ""
4517
 
4518
+ #: includes/fields-form.php:1058
4519
  msgid "Untitled"
4520
  msgstr ""
4521
 
4522
+ #: includes/fields-form.php:1060
4523
  msgid "%s field"
4524
  msgstr ""
4525
 
4526
+ #: includes/fields-form.php:1065
4527
  msgid "(conditional)"
4528
  msgstr ""
4529
 
4530
+ #: includes/fields-form.php:1163
4531
  msgid "Placeholder"
4532
  msgstr ""
4533
 
4534
+ #: includes/fields-form.php:1166
4535
  msgid "Enter placeholder"
4536
  msgstr ""
4537
 
4538
+ #: includes/fields-form.php:1191 includes/fields-form.php:1204
4539
+ msgid "Default Value"
4540
  msgstr ""
4541
 
4542
+ #: includes/fields-form.php:1194 includes/fields-form.php:1207
4543
+ msgid "Enter default value"
4544
  msgstr ""
4545
 
4546
+ #: includes/fields-form.php:1235
4547
+ msgid "Single or repeating field?"
4548
  msgstr ""
4549
 
4550
+ #: includes/fields-form.php:1249
4551
  msgid ""
4552
  "There may be multiple instances of this field already. When you switch back "
4553
  "to single-field mode, all values of this field will be updated when it's "
4554
  "edited."
4555
  msgstr ""
4556
 
4557
+ #: includes/fields-form.php:1315
4558
  msgid "Translation preferences"
4559
  msgstr ""
4560
 
4561
+ #: includes/fields-form.php:1363
4562
  msgid "Validation"
4563
  msgstr ""
4564
 
4565
+ #: includes/fields-form.php:1363
4566
  msgid "Error message"
4567
  msgstr ""
4568
 
4569
+ #: includes/fields-list.php:23
4570
  msgid "Search custom fields"
4571
  msgstr ""
4572
 
4573
+ #: includes/fields-list.php:62
4574
+ msgid ""
4575
+ "You can control Custom Fields by removing them from the groups, changing "
4576
+ "type or just deleting."
4577
+ msgstr ""
4578
+
4579
+ #: includes/fields-list.php:71
4580
+ msgid "Control Custom Fields"
4581
+ msgstr ""
4582
+
4583
+ #: includes/fields.php:280
4584
  msgid "Error saving field"
4585
  msgstr ""
4586
 
4587
+ #: includes/fields.php:286
4588
  msgid "Please set name for field"
4589
  msgstr ""
4590
 
4591
+ #: includes/fields.php:535
4592
  msgid ""
4593
  "Field \"%s\" type was converted from %s to %s. You need to set some further "
4594
  "settings in the group editor."
4595
  msgstr ""
4596
 
4597
+ #: includes/fields.php:546
4598
+ msgid "Please enter numeric data"
4599
+ msgstr ""
4600
+
4601
+ #: includes/fields.php:1361
4602
+ msgid "There is no custom fields assign to this post type."
4603
+ msgstr ""
4604
+
4605
+ #: includes/fields.php:1365
4606
  msgid "Check which fields should be shown on custom post list as a column."
4607
  msgstr ""
4608
 
4609
+ #: includes/fields.php:1369
4610
  msgid "Drag and drop ticked custom fields to reorder."
4611
  msgstr ""
4612
 
4613
+ #: includes/import-export.php:43 includes/import-export.php:117
4614
  msgid "Unable to open zip file"
4615
  msgstr ""
4616
 
4617
+ #: includes/import-export.php:57 includes/import-export.php:63
4618
  msgid "Unable to process file"
4619
  msgstr ""
4620
 
4621
+ #: includes/import-export.php:86
4622
  msgid "Error uploading file"
4623
  msgstr ""
4624
 
4625
+ #: includes/import-export.php:96
4626
  msgid "Error moving uploaded file"
4627
  msgstr ""
4628
 
4629
+ #: includes/import-export.php:159 includes/import-export.php:166
4630
  msgid "Data not valid"
4631
  msgstr ""
4632
 
4633
+ #: includes/import-export.php:184
4634
+ msgid "Import"
 
 
 
 
 
 
 
 
4635
  msgstr ""
4636
 
4637
+ #: includes/import-export.php:199
4638
  msgid "Export Types data"
4639
  msgstr ""
4640
 
4641
+ #: includes/import-export.php:200
4642
  msgid ""
4643
  "Download all custom fields, custom post types and taxonomies created by "
4644
  "Types plugin."
4645
  msgstr ""
4646
 
4647
+ #: includes/import-export.php:214
 
 
 
 
 
 
 
 
4648
  msgid "Upload XML file"
4649
  msgstr ""
4650
 
4651
+ #: includes/import-export.php:222
 
 
 
 
4652
  msgid "Import file"
4653
  msgstr ""
4654
 
4655
+ #: includes/import-export.php:235
4656
  msgid "Paste code here"
4657
  msgstr ""
4658
 
4659
+ #: includes/import-export.php:242
 
 
 
 
4660
  msgid "Encoding"
4661
  msgstr ""
4662
 
4663
+ #: includes/import-export.php:245
4664
  msgid "If encoding is set in text input, it will override this setting."
4665
  msgstr ""
4666
 
4667
+ #: includes/import-export.php:250
4668
  msgid "Import text"
4669
  msgstr ""
4670
 
4671
+ #: includes/import-export.php:260
4672
  msgid "PHP SimpleXML extension not loaded: Importing not available"
4673
  msgstr ""
4674
 
4675
+ #: includes/import-export.php:292
4676
+ msgid "General Settings"
4677
+ msgstr ""
4678
+
4679
+ #: includes/import-export.php:296
4680
  msgid "Overwrite settings"
4681
  msgstr ""
4682
 
4683
+ #: includes/import-export.php:303
4684
  msgid "Bulk overwrite groups if exist"
4685
  msgstr ""
4686
 
4687
+ #: includes/import-export.php:310
4688
  msgid "Delete group if don't exist"
4689
  msgstr ""
4690
 
4691
+ #: includes/import-export.php:317
4692
  msgid "Delete field if don't exist"
4693
  msgstr ""
4694
 
4695
+ #: includes/import-export.php:324
4696
  msgid "Delete custom post type if don't exist"
4697
  msgstr ""
4698
 
4699
+ #: includes/import-export.php:331
4700
  msgid "Delete custom taxonomy if don't exist"
4701
  msgstr ""
4702
 
4703
+ #: includes/import-export.php:351
4704
  msgid "Groups to be added/updated"
4705
  msgstr ""
4706
 
4707
+ #: includes/import-export.php:379 includes/import-export.php:488
4708
  msgid "Create new"
4709
  msgstr ""
4710
 
4711
+ #: includes/import-export.php:401 includes/import-export.php:510
4712
  msgid "Groups to be deleted"
4713
  msgstr ""
4714
 
4715
+ #: includes/import-export.php:416
4716
  msgid "Fields to be added/updated"
4717
  msgstr ""
4718
 
4719
+ #: includes/import-export.php:446 includes/import-export.php:555
4720
  msgid "Fields to be deleted"
4721
  msgstr ""
4722
 
4723
+ #: includes/import-export.php:460
4724
  msgid "User Groups to be added/updated"
4725
  msgstr ""
4726
 
4727
+ #: includes/import-export.php:525
4728
  msgid "User fields to be added/updated"
4729
  msgstr ""
4730
 
4731
+ #: includes/import-export.php:569
4732
  msgid "Custom post types to be added/updated"
4733
  msgstr ""
4734
 
4735
+ #: includes/import-export.php:596
4736
  msgid "Custom post types to be deleted"
4737
  msgstr ""
4738
 
4739
+ #: includes/import-export.php:610
4740
  msgid "Custom taxonomies to be added/updated"
4741
  msgstr ""
4742
 
4743
+ #: includes/import-export.php:637
4744
  msgid "Custom taxonomies to be deleted"
4745
  msgstr ""
4746
 
4747
+ #: includes/import-export.php:651
4748
  msgid "Post relationship"
4749
  msgstr ""
4750
 
4751
+ #: includes/import-export.php:657
4752
  msgid "Create relationships"
4753
  msgstr ""
4754
 
4755
+ #: includes/migration.php:35
4756
  msgid "Custom Types UI Post Types"
4757
  msgstr ""
4758
 
4759
+ #: includes/migration.php:43 includes/migration.php:74
4760
  msgid "(exists)"
4761
  msgstr ""
4762
 
4763
+ #: includes/migration.php:65
4764
  msgid "Custom Types UI Taxonomies"
4765
  msgstr ""
4766
 
4767
+ #: includes/migration.php:99
4768
  msgid ""
4769
  "Disable Custom Types UI after importing the configuration (leave this "
4770
  "checked to avoid defining custom types twice)"
4771
  msgstr ""
4772
 
4773
+ #: includes/migration.php:138
4774
  msgid "Advanced Custom Fields"
4775
  msgstr ""
4776
 
4777
+ #: includes/migration.php:150
4778
  msgid "Group will be created"
4779
  msgstr ""
4780
 
4781
+ #: includes/migration.php:152
4782
  msgid "Group will be updated"
4783
  msgstr ""
4784
 
4785
+ #: includes/migration.php:190
4786
  msgid "Field conversion not supported by Types"
4787
  msgstr ""
4788
 
4789
+ #: includes/migration.php:193
4790
  msgid "Field with same name is already controlled by Types"
4791
  msgstr ""
4792
 
4793
+ #: includes/migration.php:196
4794
  msgid "Field will be updated"
4795
  msgstr ""
4796
 
4797
+ #: includes/migration.php:199
4798
  msgid "Field will be created"
4799
  msgstr ""
4800
 
4801
+ #: includes/migration.php:294
4802
  msgid "Import custom field settings"
4803
  msgstr ""
4804
 
4805
+ #: includes/migration.php:321
4806
  msgid "Post Type %s added"
4807
  msgstr ""
4808
 
4809
+ #: includes/migration.php:339
4810
  msgid "Taxonomy %s added"
4811
  msgstr ""
4812
 
4813
+ #: includes/migration.php:387
4814
  msgid "Group %s added"
4815
  msgstr ""
4816
 
4817
+ #: includes/migration.php:391
4818
  msgid "Group %s updated"
4819
  msgstr ""
4820
 
4821
+ #: includes/migration.php:409
4822
  msgid "Field %s added"
4823
  msgstr ""
4824
 
4825
+ #: includes/post-relationship.php:94
4826
  msgid "Wrong post types"
4827
  msgstr ""
4828
 
4829
+ #: includes/post-relationship.php:98
4830
  msgid "Relationship do not exist"
4831
  msgstr ""
4832
 
4833
+ #: includes/post-relationship.php:158
4834
  msgid "Title, all custom fields and parents"
4835
  msgstr ""
4836
 
4837
+ #: includes/post-relationship.php:159
4838
  msgid "Do not show management options for this post type"
4839
  msgstr ""
4840
 
4841
+ #: includes/post-relationship.php:160
4842
  msgid "All fields, including the standard post fields"
4843
  msgstr ""
4844
 
4845
+ #: includes/post-relationship.php:161 includes/post-relationship.php:225
4846
  msgid "Specific fields"
4847
  msgstr ""
4848
 
4849
+ #: includes/post-relationship.php:181
4850
  msgid "Post title"
4851
  msgstr ""
4852
 
4853
+ #: includes/post-relationship.php:185
4854
  msgid "Post body"
4855
  msgstr ""
4856
 
4857
+ #: includes/post-relationship.php:193
4858
+ msgid "Post featured image"
4859
  msgstr ""
4860
 
4861
+ #: includes/post-relationship.php:236
4862
+ msgid "Taxonomy - %s"
4863
  msgstr ""
4864
 
4865
+ #: includes/post-relationship.php:303 includes/post-relationship.php:453
4866
  msgid "Children: None"
4867
  msgstr ""
4868
 
4869
+ #: includes/post-relationship.php:309 includes/post-relationship.php:454
4870
  msgid "Children: %s"
4871
  msgstr ""
4872
 
4873
+ #: includes/post-relationship.php:316 includes/post-relationship.php:327
4874
+ #: includes/post-relationship.php:456
4875
  msgid "Parent: %s"
4876
  msgstr ""
4877
 
4878
+ #: includes/post-relationship.php:319 includes/post-relationship.php:330
4879
+ #: includes/post-relationship.php:455
4880
  msgid "Parent: None"
4881
  msgstr ""
4882
 
4883
+ #: includes/post-relationship.php:377 includes/post-relationship.php:431
4884
+ #: plus/types-access/includes/admin-edit-access.php:612
4885
+ #: plus/types-access/includes/admin-edit-access.php:669
4886
  msgid "Apply"
4887
  msgstr ""
4888
 
4889
+ #: includes/post-relationship.php:415
4890
  msgid "Select child fields to be displayed"
4891
  msgstr ""
4892
 
4893
+ #: includes/post-relationship.php:416 includes/post-relationship.php:419
4894
  msgid "Edit fields"
4895
  msgstr ""
4896
 
4897
+ #: includes/post-relationship.php:418
4898
  msgid "Please save the page first, before you can edit the child items"
4899
  msgstr ""
4900
 
4902
  msgid "You can choose which fields will show when editing parent pages."
4903
  msgstr ""
4904
 
4905
+ #: includes/post-relationship.php:439
4906
  msgid "Click on the 'edit' button to select them for each parent."
4907
  msgstr ""
4908
 
4909
+ #: includes/post-relationship.php:441
4910
  msgid "Learn about %sPost Type Relationships%s"
4911
  msgstr ""
4912
 
4913
+ #: includes/settings.php:26
4914
+ msgid "Remote Images"
4915
+ msgstr ""
4916
+
4917
+ #: includes/settings.php:28
4918
  msgid "Add resized images to the media library"
4919
  msgstr ""
4920
 
4921
+ #: includes/settings.php:29
4922
  msgid ""
4923
  "Types will automatically add the resized images as attachments to the media "
4924
  "library. Choose this to automatically upload resized images to a CDN."
4925
  msgstr ""
4926
 
4927
+ #: includes/settings.php:38
4928
  msgid "Allow resizing of remote images"
4929
  msgstr ""
4930
 
4931
+ #: includes/settings.php:39
4932
+ msgid "Types will try to scale remote images."
4933
+ msgstr ""
4934
+
4935
+ #: includes/settings.php:48
4936
+ msgid "Images cache"
4937
+ msgstr ""
4938
+
4939
+ #: includes/settings.php:51
4940
  msgid "Invalidate cached images that are more than <ELEMENT> hours old."
4941
  msgstr ""
4942
 
4943
+ #: includes/settings.php:54
4944
  msgid "Never"
4945
  msgstr ""
4946
 
4947
+ #: includes/settings.php:68
4948
  msgid "Clear Cached Images"
4949
  msgstr ""
4950
 
4951
+ #: includes/settings.php:77
4952
  msgid "Clear Outdated Cached Images"
4953
  msgstr ""
4954
 
4955
+ #: includes/settings.php:88
4956
+ msgid "WPML Integration"
4957
  msgstr ""
4958
 
4959
+ #: includes/settings.php:89
4960
+ msgid "When importing, add texts to WPML's String Translation table"
4961
  msgstr ""
4962
 
4963
+ #: includes/settings.php:103
4964
  msgid "Show help box on all custom post editing screens"
4965
  msgstr ""
4966
 
4967
+ #: includes/settings.php:107
4968
  msgid "Show help box only on custom post types that were created by Types"
4969
  msgstr ""
4970
 
4971
+ #: includes/settings.php:111
4972
  msgid "Don't show help box on any custom post type editing screen"
4973
  msgstr ""
4974
 
4975
+ #: includes/settings.php:117
4976
+ msgid "Help Box"
4977
+ msgstr ""
4978
+
4979
+ #: includes/settings.php:124
4980
+ msgid "This setting allow to hide standard WordPress Custom Field Metabox."
4981
+ msgstr ""
4982
+
4983
+ #: includes/settings.php:128
4984
+ msgid "Show standard WordPress Custom Field Metabox"
4985
+ msgstr ""
4986
+
4987
+ #: includes/settings.php:132
4988
+ msgid "Hide standard WordPress Custom Field Metabox"
4989
+ msgstr ""
4990
+
4991
+ #: includes/settings.php:137
4992
+ msgid "Custom Field Metabox"
4993
+ msgstr ""
4994
+
4995
+ #: includes/settings.php:146
4996
  msgid "Disable all messages about other Toolset components"
4997
  msgstr ""
4998
 
4999
+ #: includes/settings.php:148
5000
+ msgid "Toolset Messages"
5001
+ msgstr ""
5002
+
5003
+ #: includes/settings.php:158
5004
+ msgid "Custom fields - unfiltered HTML"
5005
+ msgstr ""
5006
+
5007
+ #: includes/settings.php:162
5008
+ msgid ""
5009
+ "Enable saving unfiltered HTML in Types custom fields for users with higher "
5010
+ "roles"
5011
+ msgstr ""
5012
+
5013
+ #: includes/settings.php:166
5014
+ msgid "Disable saving unfiltered HTML in Types custom fields for all users"
5015
+ msgstr ""
5016
+
5017
+ #: includes/settings.php:177
5018
+ msgid "Usermeta fields - unfiltered HTML"
5019
+ msgstr ""
5020
+
5021
+ #: includes/settings.php:181
5022
+ msgid ""
5023
+ "Enable saving unfiltered HTML in Types usermeta fields for users with higher "
5024
+ "roles"
5025
+ msgstr ""
5026
+
5027
+ #: includes/settings.php:185
5028
+ msgid "Disable saving unfiltered HTML in Types usermeta fields for all users"
5029
+ msgstr ""
5030
+
5031
+ #: includes/settings.php:225
5032
  msgid "Images cache cleared"
5033
  msgstr ""
5034
 
5035
+ #: includes/settings.php:280
5036
+ msgid "Settings saved."
5037
  msgstr ""
5038
 
5039
+ #: includes/usermeta-control.php:171
5040
  msgid "User Field Name"
5041
  msgstr ""
5042
 
5043
+ #: includes/usermeta-form.php:244
5044
  msgid "Usermeta help"
5045
  msgstr ""
5046
 
5047
+ #: includes/usermeta-form.php:422
5048
  msgid "Show For:"
5049
  msgstr ""
5050
 
5051
+ #: includes/usermeta-form.php:440
5052
  msgid "Each usermeta group can display different fields for user roles."
5053
  msgstr ""
5054
 
5056
  msgid "Search user fields"
5057
  msgstr ""
5058
 
5059
+ #: includes/usermeta-list.php:60
5060
+ msgid ""
5061
+ "You can control User Fields by removing them from the groups, changing type "
5062
+ "or just deleting."
5063
+ msgstr ""
5064
+
5065
  #: marketing/congrats-post-types/index.php:17
5066
  msgid "Congratulations! Your custom post type %s was successfully updated."
5067
  msgstr ""
5108
  msgstr ""
5109
 
5110
  #: marketing/congrats-post-types/index.php:60
5111
+ #: marketing/congrats-post-types/index.php:74
5112
  msgid "Organize content using <strong>taxonomy</strong>"
5113
  msgstr ""
5114
 
5115
+ #: marketing/congrats-post-types/index.php:64
5116
  msgid "Connect post types as <strong>parents and children</strong>"
5117
  msgstr ""
5118
 
5119
+ #: marketing/congrats-post-types/index.php:67
5120
  msgid "Display custom post <strong>archives</strong>"
5121
  msgstr ""
5122
 
5123
+ #: marketing/congrats-post-types/index.php:78
5124
  msgid "Display custom taxonomy <strong>archives</strong>"
5125
  msgstr ""
5126
 
5127
+ #: marketing/congrats-post-types/index.php:85
5128
  msgid "Display user fields"
5129
  msgstr ""
5130
 
5131
+ #: marketing/congrats-post-types/index.php:92
5132
  msgid "Display custom fields"
5133
  msgstr ""
5134
 
5135
+ #: marketing/congrats-post-types/index.php:96
5136
  msgid "Create groups of repeating fields"
5137
  msgstr ""
5138
 
5139
+ #: marketing/congrats-post-types/index.php:104
5140
  msgid "Build complete sites without coding:"
5141
  msgstr ""
5142
 
5143
+ #: marketing/congrats-post-types/index.php:111
5144
  msgid "Load and display custom content"
5145
  msgstr ""
5146
 
5147
+ #: marketing/congrats-post-types/index.php:116
5148
  msgid "Hide notifications"
5149
  msgstr ""
5150
 
5157
  msgstr ""
5158
 
5159
  #: marketing/etc/types-site-kinds.php:7
5160
+ msgid "http://wp-types.com/how-to/develop-brochure-site-wordpress/"
5161
  msgstr ""
5162
 
5163
  #: marketing/etc/types-site-kinds.php:20
5279
  msgid "Continue"
5280
  msgstr ""
5281
 
5282
+ #: plus/installer/includes/class-installer-theme.php:869
5283
+ msgid "To install and update"
 
 
 
 
 
 
 
 
 
 
 
 
5284
  msgstr ""
5285
 
5286
+ #: plus/installer/includes/class-installer-theme.php:869
5287
+ msgid "themes"
5288
  msgstr ""
5289
 
5290
+ #: plus/installer/includes/class-installer-theme.php:870
5291
+ msgid "please"
5292
  msgstr ""
5293
 
5294
+ #: plus/installer/includes/class-installer-theme.php:870
5295
+ msgid "register"
5296
  msgstr ""
5297
 
5298
+ #: plus/installer/includes/class-installer-theme.php:870
5299
+ msgid "for this site."
5300
  msgstr ""
5301
 
5302
+ #: plus/installer/includes/installer.class.php:101
5303
+ msgid "Installing %s"
5304
  msgstr ""
5305
 
5306
+ #: plus/installer/includes/installer.class.php:102
5307
+ msgid "Updating %s"
5308
  msgstr ""
5309
 
5310
+ #: plus/installer/includes/installer.class.php:103
5311
+ msgid "Activating %s"
 
5312
  msgstr ""
5313
 
5314
+ #: plus/installer/includes/installer.class.php:304
5315
  msgid "Registered"
5316
  msgstr ""
5317
 
5318
+ #: plus/installer/includes/installer.class.php:309
5319
  msgid "Register"
5320
  msgstr ""
5321
 
5322
+ #: plus/installer/includes/installer.class.php:467
5323
  msgid ""
5324
  "To get automatic updates, you need to register %s for this site. %sRegister "
5325
  "%s%s"
5326
  msgstr ""
5327
 
5328
+ #: plus/installer/includes/installer.class.php:492
5329
  msgid "Commercial"
5330
  msgstr ""
5331
 
5332
+ #: plus/installer/includes/installer.class.php:589
5333
  msgid ""
5334
  "Installer cannot contact our updates server to get information about the "
5335
  "available products and check for new versions. If you are seeing this "
5339
  "line to your wp-config.php file:"
5340
  msgstr ""
5341
 
5342
+ #: plus/installer/includes/installer.class.php:670
5343
  msgid "No repositories defined."
5344
  msgstr ""
5345
 
5346
+ #: plus/installer/includes/installer.class.php:843
5347
  msgid ""
5348
  "%s cannot access %s to register. Try again to see if it's a temporary "
5349
  "problem. If the problem continues, make sure that this site has access to "
5351
  "will not receive automated updates."
5352
  msgstr ""
5353
 
5354
+ #: plus/installer/includes/installer.class.php:853
5355
+ #: plus/installer/includes/installer.class.php:935
5356
  msgid "Invalid site key for the current site."
5357
  msgstr ""
5358
 
5359
+ #: plus/installer/includes/installer.class.php:1071
5360
+ #: plus/installer/includes/installer.class.php:1133
5361
  msgid ""
5362
  "You will have to renew your subscription in order to continue getting the "
5363
  "updates and support."
5364
  msgstr ""
5365
 
5366
+ #: plus/installer/includes/installer.class.php:1085
5367
+ #: plus/installer/includes/installer.class.php:1140
5368
  msgid "Your subscription expires in %d day."
5369
  msgid_plural "Your subscription expires in %d days."
5370
  msgstr[0] ""
5371
  msgstr[1] ""
5372
 
5373
+ #: plus/installer/includes/installer.class.php:1215
5374
  msgid "%sRenew here%s."
5375
  msgstr ""
5376
 
5377
+ #: plus/installer/includes/installer.class.php:1562
5378
  msgid ""
5379
  "Your subscription appears to no longer be valid. Please try to register "
5380
  "again using a valid site key."
5381
  msgstr ""
5382
 
5383
+ #: plus/installer/includes/installer.class.php:1843
5384
  msgid ""
5385
  "You need to have a valid subscription in order to get upgrades or support "
5386
  "for this plugin. %sPurchase a subscription or enter an existing site key%s."
5387
  msgstr ""
5388
 
5389
+ #: plus/installer/includes/installer.class.php:2255
5390
+ #: plus/installer/includes/installer.class.php:2318
5391
  msgid ""
5392
  "%s cannot update because your site's registration is not valid. Please "
5393
  "%sregister %s%s again for this site first."
5394
  msgstr ""
5395
 
5396
+ #: plus/installer/includes/installer.class.php:2342
5397
  msgid "Update Plugin"
5398
  msgstr ""
5399
 
5400
+ #: plus/installer/includes/installer.class.php:2343
5401
  msgid "Return to the plugins page"
5402
  msgstr ""
5403
 
5418
  msgid "Downloading"
5419
  msgstr ""
5420
 
5421
+ #: plus/installer/templates/downloads-list-compact.php:52
5422
  msgid "downloading..."
5423
  msgstr ""
5424
 
5425
+ #: plus/installer/templates/downloads-list-compact.php:53
 
5426
  #: plus/installer/templates/downloads-list.php:52
5427
+ #: plus/installer/templates/downloads-list.php:53
5428
  msgid "failed!"
5429
  msgstr ""
5430
 
5431
+ #: plus/installer/templates/downloads-list-compact.php:53
5432
  msgid "downloaded"
5433
  msgstr ""
5434
 
5435
+ #: plus/installer/templates/downloads-list-compact.php:56
5436
+ #: plus/installer/templates/downloads-list.php:56
5437
  msgid "activating"
5438
  msgstr ""
5439
 
5440
+ #: plus/installer/templates/downloads-list-compact.php:57
5441
+ #: plus/installer/templates/downloads-list.php:57
5442
  msgid "activated"
5443
  msgstr ""
5444
 
5445
+ #: plus/installer/templates/downloads-list-compact.php:65
5446
+ #: plus/installer/templates/downloads-list.php:70
5447
  msgid ""
5448
  "Downloading is not possible because WordPress cannot write into the plugins "
5449
  "folder. %sHow to fix%s."
5450
  msgstr ""
5451
 
5452
+ #: plus/installer/templates/downloads-list-compact.php:69
5453
+ #: plus/installer/templates/downloads-list.php:75
5454
  msgid "Download"
5455
  msgstr ""
5456
 
5457
+ #: plus/installer/templates/downloads-list-compact.php:71
5458
+ #: plus/installer/templates/downloads-list.php:77
5459
  msgid "Activate after download"
5460
  msgstr ""
5461
 
5462
+ #: plus/installer/templates/downloads-list-compact.php:74
5463
+ #: plus/installer/templates/downloads-list.php:81
5464
  msgid "Operation complete!"
5465
  msgstr ""
5466
 
5467
+ #: plus/installer/templates/downloads-list-compact.php:76
5468
  msgid ""
5469
  "Download failed!\n"
5470
  "\n"
5487
  msgid "Installed version"
5488
  msgstr ""
5489
 
5490
+ #: plus/installer/templates/downloads-list.php:46
5491
  msgid "(embedded)"
5492
  msgstr ""
5493
 
5494
+ #: plus/installer/templates/downloads-list.php:50
5495
  msgid "installing..."
5496
  msgstr ""
5497
 
5498
+ #: plus/installer/templates/downloads-list.php:51
5499
  msgid "updating..."
5500
  msgstr ""
5501
 
5502
+ #: plus/installer/templates/downloads-list.php:52
5503
  msgid "installed"
5504
  msgstr ""
5505
 
5506
+ #: plus/installer/templates/downloads-list.php:53
5507
  msgid "updated"
5508
  msgstr ""
5509
 
5510
+ #: plus/installer/templates/downloads-list.php:83
5511
  msgid ""
5512
  "Download failed!\n"
5513
  "\n"
5723
  msgstr ""
5724
 
5725
  #: plus/types-access/includes/admin-edit-access.php:68
5726
+ #: plus/types-access/includes/admin-edit-access.php:192
5727
  msgid "Managed by Access"
5728
  msgstr ""
5729
 
5733
  "Post when not Managed by Access."
5734
  msgstr ""
5735
 
5736
+ #: plus/types-access/includes/admin-edit-access.php:176
5737
  msgid ""
5738
  "You need to manually set the access rules for taxonomy %s. That taxonomy is "
5739
  "shared between several post types that have different access rules."
5740
  msgstr ""
5741
 
5742
+ #: plus/types-access/includes/admin-edit-access.php:206
5743
  msgid "Same as Parent"
5744
  msgstr ""
5745
 
5746
+ #: plus/types-access/includes/admin-edit-access.php:280
5747
  msgid "Custom Roles"
5748
  msgstr ""
5749
 
5750
+ #: plus/types-access/includes/admin-edit-access.php:290
5751
  msgid "On this page"
5752
  msgstr ""
5753
 
5754
+ #: plus/types-access/includes/admin-edit-access.php:354
5755
+ #: plus/types-access/includes/admin-edit-access.php:728
5756
  msgid "Guest"
5757
  msgstr ""
5758
 
5759
+ #: plus/types-access/includes/admin-edit-access.php:430
5760
  msgid "Set all capabilities to users of type:"
5761
  msgstr ""
5762
 
5763
+ #: plus/types-access/includes/admin-edit-access.php:433
5764
  msgid "Choose user type"
5765
  msgstr ""
5766
 
5767
+ #: plus/types-access/includes/admin-edit-access.php:507
5768
  msgid ""
5769
  "Are you sure? All permission settings for this type will change to their "
5770
  "default values."
5771
  msgstr ""
5772
 
5773
+ #: plus/types-access/includes/admin-edit-access.php:511
5774
  msgid "Reset to defaults"
5775
  msgstr ""
5776
 
5777
+ #: plus/types-access/includes/admin-edit-access.php:573
5778
  msgid "No custom roles defined"
5779
  msgstr ""
5780
 
5781
+ #: plus/types-access/includes/admin-edit-access.php:576
5782
  msgid ""
5783
  "The user level determines which admin actions WordPress allows different "
5784
  "kinds of users to perform."
5785
  msgstr ""
5786
 
5787
+ #: plus/types-access/includes/admin-edit-access.php:583
5788
+ #: plus/types-access/includes/admin-edit-access.php:606
5789
+ #: plus/types-access/includes/admin-edit-access.php:664
5790
  msgid "Level %d"
5791
  msgstr ""
5792
 
5793
+ #: plus/types-access/includes/admin-edit-access.php:622
5794
+ #: plus/types-access/includes/admin-edit-access.php:679
5795
  msgid "Change level"
5796
  msgstr ""
5797
 
5798
+ #: plus/types-access/includes/admin-edit-access.php:634
5799
+ #: plus/types-access/includes/admin-edit-access.php:690
5800
  msgid "Delete role"
5801
  msgstr ""
5802
 
5803
+ #: plus/types-access/includes/admin-edit-access.php:650
5804
  msgid "Undefined"
5805
  msgstr ""
5806
 
5807
+ #: plus/types-access/includes/admin-edit-access.php:729
5808
  msgid "Specific user"
5809
  msgstr ""
5810
 
5811
+ #: plus/types-access/includes/admin-edit-access.php:829
5812
  msgid "search"
5813
  msgstr ""
5814
 
5815
+ #: plus/types-access/includes/admin-edit-access.php:862
5816
  msgid "New role"
5817
  msgstr ""
5818
 
5819
+ #: plus/types-access/includes/admin-edit-access.php:893
5820
  msgid "Choose what role to change current %s users to:"
5821
  msgstr ""
5822
 
5823
+ #: plus/types-access/includes/admin-edit-access.php:897
5824
  msgid "--- choose role ---"
5825
  msgstr ""
5826
 
5827
+ #: plus/types-access/includes/admin-edit-access.php:900
5828
  msgid "Do you really want to remove this role?"
5829
  msgstr ""
5830
 
 
 
 
 
 
 
 
 
5831
  #: plus/types-access.php:85
5832
  msgid ""
5833
  "This screen shows a preview of %sAccess%s - the access control and roles "
5834
  "management addon for Types."
5835
  msgstr ""
5836
 
 
 
 
 
 
 
5837
  #: plus/types-access.php:89
5838
  msgid ""
5839
  "%sBuy Access%s to unlock this screen and add access control management to "
embedded/onthego-resources/onthegosystems-icons/.fontcustom-manifest.json CHANGED
@@ -1,13 +1,13 @@
1
  {
2
  "checksum": {
3
- "previous": "ea0d501b723f7b75d3147cf08210b5cf2c0c279dff82e74a178b3badd9bf0318",
4
- "current": "ea0d501b723f7b75d3147cf08210b5cf2c0c279dff82e74a178b3badd9bf0318"
5
  },
6
  "fonts": [
7
- "fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.ttf",
8
- "fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.svg",
9
- "fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.woff",
10
- "fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.eot"
11
  ],
12
  "glyphs": {
13
  "access": {
@@ -26,6 +26,14 @@
26
  "codepoint": 61715,
27
  "source": "vectors/bootstrap-logo.svg"
28
  },
 
 
 
 
 
 
 
 
29
  "cred": {
30
  "codepoint": 61716,
31
  "source": "vectors/cred.svg"
1
  {
2
  "checksum": {
3
+ "previous": "65c5f624e7b3a7731aeb86b34dab9f6546b6019d0e948635813de379e3a3ee8f",
4
+ "current": "65c5f624e7b3a7731aeb86b34dab9f6546b6019d0e948635813de379e3a3ee8f"
5
  },
6
  "fonts": [
7
+ "fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.ttf",
8
+ "fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.svg",
9
+ "fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.woff",
10
+ "fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.eot"
11
  ],
12
  "glyphs": {
13
  "access": {
26
  "codepoint": 61715,
27
  "source": "vectors/bootstrap-logo.svg"
28
  },
29
+ "conditional-alert": {
30
+ "codepoint": 61730,
31
+ "source": "vectors/conditional-alert.svg"
32
+ },
33
+ "conditional-if": {
34
+ "codepoint": 61731,
35
+ "source": "vectors/conditional-if.svg"
36
+ },
37
  "cred": {
38
  "codepoint": 61716,
39
  "source": "vectors/cred.svg"
embedded/onthego-resources/onthegosystems-icons/css/_onthegosystems-icons.scss CHANGED
@@ -4,11 +4,11 @@
4
 
5
  @font-face {
6
  font-family: "onthegosystems-icons";
7
- src: font-url("../fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.eot");
8
- src: font-url("../fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.eot?#iefix") format("embedded-opentype"),
9
- font-url("../fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.woff") format("woff"),
10
- font-url("../fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.ttf") format("truetype"),
11
- font-url("../fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.svg#onthegosystems-icons") format("svg");
12
  font-weight: normal;
13
  font-style: normal;
14
  }
@@ -16,7 +16,7 @@
16
  @media screen and (-webkit-min-device-pixel-ratio:0) {
17
  @font-face {
18
  font-family: "onthegosystems-icons";
19
- src: font-url("../fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.svg#onthegosystems-icons") format("svg");
20
  }
21
  }
22
 
@@ -27,6 +27,8 @@
27
  .icon-access-logo:before,
28
  .icon-bootstrap:before,
29
  .icon-bootstrap-logo:before,
 
 
30
  .icon-cred:before,
31
  .icon-cred-logo:before,
32
  .icon-layouts:before,
@@ -59,6 +61,8 @@
59
  .icon-access-logo:before { content: "\f111"; }
60
  .icon-bootstrap:before { content: "\f112"; }
61
  .icon-bootstrap-logo:before { content: "\f113"; }
 
 
62
  .icon-cred:before { content: "\f114"; }
63
  .icon-cred-logo:before { content: "\f115"; }
64
  .icon-layouts:before { content: "\f116"; }
4
 
5
  @font-face {
6
  font-family: "onthegosystems-icons";
7
+ src: font-url("../fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.eot");
8
+ src: font-url("../fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.eot?#iefix") format("embedded-opentype"),
9
+ font-url("../fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.woff") format("woff"),
10
+ font-url("../fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.ttf") format("truetype"),
11
+ font-url("../fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.svg#onthegosystems-icons") format("svg");
12
  font-weight: normal;
13
  font-style: normal;
14
  }
16
  @media screen and (-webkit-min-device-pixel-ratio:0) {
17
  @font-face {
18
  font-family: "onthegosystems-icons";
19
+ src: font-url("../fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.svg#onthegosystems-icons") format("svg");
20
  }
21
  }
22
 
27
  .icon-access-logo:before,
28
  .icon-bootstrap:before,
29
  .icon-bootstrap-logo:before,
30
+ .icon-conditional-alert:before,
31
+ .icon-conditional-if:before,
32
  .icon-cred:before,
33
  .icon-cred-logo:before,
34
  .icon-layouts:before,
61
  .icon-access-logo:before { content: "\f111"; }
62
  .icon-bootstrap:before { content: "\f112"; }
63
  .icon-bootstrap-logo:before { content: "\f113"; }
64
+ .icon-conditional-alert:before { content: "\f122"; }
65
+ .icon-conditional-if:before { content: "\f123"; }
66
  .icon-cred:before { content: "\f114"; }
67
  .icon-cred-logo:before { content: "\f115"; }
68
  .icon-layouts:before { content: "\f116"; }
embedded/onthego-resources/onthegosystems-icons/css/onthegosystems-icons.css CHANGED
@@ -4,11 +4,11 @@
4
 
5
  @font-face {
6
  font-family: "onthegosystems-icons";
7
- src: url("../fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.eot");
8
- src: url("../fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.eot?#iefix") format("embedded-opentype"),
9
- url("../fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.woff") format("woff"),
10
- url("../fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.ttf") format("truetype"),
11
- url("../fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.svg#onthegosystems-icons") format("svg");
12
  font-weight: normal;
13
  font-style: normal;
14
  }
@@ -16,7 +16,7 @@
16
  @media screen and (-webkit-min-device-pixel-ratio:0) {
17
  @font-face {
18
  font-family: "onthegosystems-icons";
19
- src: url("../fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.svg#onthegosystems-icons") format("svg");
20
  }
21
  }
22
 
@@ -27,6 +27,8 @@
27
  .icon-access-logo:before,
28
  .icon-bootstrap:before,
29
  .icon-bootstrap-logo:before,
 
 
30
  .icon-cred:before,
31
  .icon-cred-logo:before,
32
  .icon-layouts:before,
@@ -59,6 +61,8 @@
59
  .icon-access-logo:before { content: "\f111"; }
60
  .icon-bootstrap:before { content: "\f112"; }
61
  .icon-bootstrap-logo:before { content: "\f113"; }
 
 
62
  .icon-cred:before { content: "\f114"; }
63
  .icon-cred-logo:before { content: "\f115"; }
64
  .icon-layouts:before { content: "\f116"; }
4
 
5
  @font-face {
6
  font-family: "onthegosystems-icons";
7
+ src: url("../fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.eot");
8
+ src: url("../fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.eot?#iefix") format("embedded-opentype"),
9
+ url("../fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.woff") format("woff"),
10
+ url("../fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.ttf") format("truetype"),
11
+ url("../fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.svg#onthegosystems-icons") format("svg");
12
  font-weight: normal;
13
  font-style: normal;
14
  }
16
  @media screen and (-webkit-min-device-pixel-ratio:0) {
17
  @font-face {
18
  font-family: "onthegosystems-icons";
19
+ src: url("../fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.svg#onthegosystems-icons") format("svg");
20
  }
21
  }
22
 
27
  .icon-access-logo:before,
28
  .icon-bootstrap:before,
29
  .icon-bootstrap-logo:before,
30
+ .icon-conditional-alert:before,
31
+ .icon-conditional-if:before,
32
  .icon-cred:before,
33
  .icon-cred-logo:before,
34
  .icon-layouts:before,
61
  .icon-access-logo:before { content: "\f111"; }
62
  .icon-bootstrap:before { content: "\f112"; }
63
  .icon-bootstrap-logo:before { content: "\f113"; }
64
+ .icon-conditional-alert:before { content: "\f122"; }
65
+ .icon-conditional-if:before { content: "\f123"; }
66
  .icon-cred:before { content: "\f114"; }
67
  .icon-cred-logo:before { content: "\f115"; }
68
  .icon-layouts:before { content: "\f116"; }
embedded/onthego-resources/onthegosystems-icons/fonts/onthegosystems-icons-preview.html CHANGED
@@ -141,11 +141,11 @@
141
 
142
  @font-face {
143
  font-family: "onthegosystems-icons";
144
- src: url("./onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.eot");
145
- src: url("./onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.eot?#iefix") format("embedded-opentype"),
146
- url("./onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.woff") format("woff"),
147
- url("./onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.ttf") format("truetype"),
148
- url("./onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.svg#onthegosystems-icons") format("svg");
149
  font-weight: normal;
150
  font-style: normal;
151
  }
@@ -153,7 +153,7 @@
153
  @media screen and (-webkit-min-device-pixel-ratio:0) {
154
  @font-face {
155
  font-family: "onthegosystems-icons";
156
- src: url("./onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.svg#onthegosystems-icons") format("svg");
157
  }
158
  }
159
 
@@ -164,6 +164,8 @@
164
  .icon-access-logo:before,
165
  .icon-bootstrap:before,
166
  .icon-bootstrap-logo:before,
 
 
167
  .icon-cred:before,
168
  .icon-cred-logo:before,
169
  .icon-layouts:before,
@@ -196,6 +198,8 @@
196
  .icon-access-logo:before { content: "\f111"; }
197
  .icon-bootstrap:before { content: "\f112"; }
198
  .icon-bootstrap-logo:before { content: "\f113"; }
 
 
199
  .icon-cred:before { content: "\f114"; }
200
  .icon-cred-logo:before { content: "\f115"; }
201
  .icon-layouts:before { content: "\f116"; }
@@ -225,7 +229,7 @@
225
  <body class="characters-off">
226
  <div id="page" class="container">
227
  <header>
228
- <h1>onthegosystems-icons contains 18 glyphs:</h1>
229
  <a onclick="toggleCharacters(); return false;" href="#">Toggle Preview Characters</a>
230
  </header>
231
 
@@ -282,6 +286,32 @@
282
  </div>
283
  </div>
284
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
285
  <div class="glyph">
286
  <div class="preview-glyphs">
287
  <span class="step size-12"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-14"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-16"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-18"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-21"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-24"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-36"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-48"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-60"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-72"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span>
141
 
142
  @font-face {
143
  font-family: "onthegosystems-icons";
144
+ src: url("./onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.eot");
145
+ src: url("./onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.eot?#iefix") format("embedded-opentype"),
146
+ url("./onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.woff") format("woff"),
147
+ url("./onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.ttf") format("truetype"),
148
+ url("./onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.svg#onthegosystems-icons") format("svg");
149
  font-weight: normal;
150
  font-style: normal;
151
  }
153
  @media screen and (-webkit-min-device-pixel-ratio:0) {
154
  @font-face {
155
  font-family: "onthegosystems-icons";
156
+ src: url("./onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.svg#onthegosystems-icons") format("svg");
157
  }
158
  }
159
 
164
  .icon-access-logo:before,
165
  .icon-bootstrap:before,
166
  .icon-bootstrap-logo:before,
167
+ .icon-conditional-alert:before,
168
+ .icon-conditional-if:before,
169
  .icon-cred:before,
170
  .icon-cred-logo:before,
171
  .icon-layouts:before,
198
  .icon-access-logo:before { content: "\f111"; }
199
  .icon-bootstrap:before { content: "\f112"; }
200
  .icon-bootstrap-logo:before { content: "\f113"; }
201
+ .icon-conditional-alert:before { content: "\f122"; }
202
+ .icon-conditional-if:before { content: "\f123"; }
203
  .icon-cred:before { content: "\f114"; }
204
  .icon-cred-logo:before { content: "\f115"; }
205
  .icon-layouts:before { content: "\f116"; }
229
  <body class="characters-off">
230
  <div id="page" class="container">
231
  <header>
232
+ <h1>onthegosystems-icons contains 20 glyphs:</h1>
233
  <a onclick="toggleCharacters(); return false;" href="#">Toggle Preview Characters</a>
234
  </header>
235
 
286
  </div>
287
  </div>
288
 
289
+ <div class="glyph">
290
+ <div class="preview-glyphs">
291
+ <span class="step size-12"><span class="letters">Pp</span><i id="icon-conditional-alert" class="icon-conditional-alert"></i></span><span class="step size-14"><span class="letters">Pp</span><i id="icon-conditional-alert" class="icon-conditional-alert"></i></span><span class="step size-16"><span class="letters">Pp</span><i id="icon-conditional-alert" class="icon-conditional-alert"></i></span><span class="step size-18"><span class="letters">Pp</span><i id="icon-conditional-alert" class="icon-conditional-alert"></i></span><span class="step size-21"><span class="letters">Pp</span><i id="icon-conditional-alert" class="icon-conditional-alert"></i></span><span class="step size-24"><span class="letters">Pp</span><i id="icon-conditional-alert" class="icon-conditional-alert"></i></span><span class="step size-36"><span class="letters">Pp</span><i id="icon-conditional-alert" class="icon-conditional-alert"></i></span><span class="step size-48"><span class="letters">Pp</span><i id="icon-conditional-alert" class="icon-conditional-alert"></i></span><span class="step size-60"><span class="letters">Pp</span><i id="icon-conditional-alert" class="icon-conditional-alert"></i></span><span class="step size-72"><span class="letters">Pp</span><i id="icon-conditional-alert" class="icon-conditional-alert"></i></span>
292
+ </div>
293
+ <div class="preview-scale">
294
+ <span class="step">12</span><span class="step">14</span><span class="step">16</span><span class="step">18</span><span class="step">21</span><span class="step">24</span><span class="step">36</span><span class="step">48</span><span class="step">60</span><span class="step">72</span>
295
+ </div>
296
+ <div class="usage">
297
+ <input class="class" type="text" readonly="readonly" onClick="this.select();" value=".icon-conditional-alert" />
298
+ <input class="point" type="text" readonly="readonly" onClick="this.select();" value="&amp;#xf122;" />
299
+ </div>
300
+ </div>
301
+
302
+ <div class="glyph">
303
+ <div class="preview-glyphs">
304
+ <span class="step size-12"><span class="letters">Pp</span><i id="icon-conditional-if" class="icon-conditional-if"></i></span><span class="step size-14"><span class="letters">Pp</span><i id="icon-conditional-if" class="icon-conditional-if"></i></span><span class="step size-16"><span class="letters">Pp</span><i id="icon-conditional-if" class="icon-conditional-if"></i></span><span class="step size-18"><span class="letters">Pp</span><i id="icon-conditional-if" class="icon-conditional-if"></i></span><span class="step size-21"><span class="letters">Pp</span><i id="icon-conditional-if" class="icon-conditional-if"></i></span><span class="step size-24"><span class="letters">Pp</span><i id="icon-conditional-if" class="icon-conditional-if"></i></span><span class="step size-36"><span class="letters">Pp</span><i id="icon-conditional-if" class="icon-conditional-if"></i></span><span class="step size-48"><span class="letters">Pp</span><i id="icon-conditional-if" class="icon-conditional-if"></i></span><span class="step size-60"><span class="letters">Pp</span><i id="icon-conditional-if" class="icon-conditional-if"></i></span><span class="step size-72"><span class="letters">Pp</span><i id="icon-conditional-if" class="icon-conditional-if"></i></span>
305
+ </div>
306
+ <div class="preview-scale">
307
+ <span class="step">12</span><span class="step">14</span><span class="step">16</span><span class="step">18</span><span class="step">21</span><span class="step">24</span><span class="step">36</span><span class="step">48</span><span class="step">60</span><span class="step">72</span>
308
+ </div>
309
+ <div class="usage">
310
+ <input class="class" type="text" readonly="readonly" onClick="this.select();" value=".icon-conditional-if" />
311
+ <input class="point" type="text" readonly="readonly" onClick="this.select();" value="&amp;#xf123;" />
312
+ </div>
313
+ </div>
314
+
315
  <div class="glyph">
316
  <div class="preview-glyphs">
317
  <span class="step size-12"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-14"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-16"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-18"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-21"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-24"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-36"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-48"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-60"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span><span class="step size-72"><span class="letters">Pp</span><i id="icon-cred" class="icon-cred"></i></span>
embedded/onthego-resources/onthegosystems-icons/fonts/{onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.eot → onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.eot} RENAMED
Binary file
embedded/onthego-resources/onthegosystems-icons/fonts/{onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.svg → onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.svg} RENAMED
@@ -1,11 +1,11 @@
1
  <?xml version="1.0" standalone="no"?>
2
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
  <!--
4
- 2015-3-4: Created with FontForge (http://fontforge.org)
5
  -->
6
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
7
  <metadata>
8
- Created by FontForge 20141127 at Wed Mar 4 12:40:05 2015
9
  By Riccardo Strobbia
10
  Copyright (c) 2015, Riccardo Strobbia
11
  </metadata>
@@ -19,10 +19,10 @@ Copyright (c) 2015, Riccardo Strobbia
19
  panose-1="2 0 5 9 0 0 0 0 0 0"
20
  ascent="448"
21
  descent="-64"
22
- bbox="53.2423 -38.4004 460.8 422.4"
23
  underline-thickness="25.6"
24
  underline-position="-51.2"
25
- unicode-range="U+F110-F121"
26
  />
27
  <missing-glyph />
28
  <glyph glyph-name="uniF11F" unicode="&#xf11f;"
@@ -31,6 +31,20 @@ c20.3506 4.65527 35.7539 23.7031 69.207 18.4502c52.8691 -8.29688 57.0664 -86.647
31
  c0.962891 14.2598 10.0381 25.2607 20.2705 24.5752c4.15039 -0.273438 7.83887 -2.45508 10.709 -5.86914c3.64551 -3.00781 6.39258 -7.75293 7.72363 -13.4102c6.13281 -13.9424 4.26855 -35.9004 16.9492 -43.3105c67.0361 3.93066 41.5225 113.459 -18.457 87.6562
32
  c-138.73 -59.6406 -268.003 29.2598 -281.441 143.039c-15.0859 127.578 89.6006 208.035 161.485 216.851c132.461 16.2393 243.918 -94.3057 216.851 -239.923c-6.51562 -34.9307 -27.2803 -78.3857 -73.8223 -78.4297
33
  c-34.4258 -0.0498047 -66.7617 27.042 -69.2061 64.5918z" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  <glyph glyph-name="uniF119" unicode="&#xf119;"
35
  d="M371.2 345.6h76.7998v-384h-384v384h76.7998v76.8008h76.7998v-76.8008h76.8008v76.8008h76.7998v-76.8008zM243.782 3.33398v122.164l-117.459 69.5742v-123.917zM384.007 71.1553v121.439l-116.979 -70.0088v-118.977zM384.007 219.667v0.268555l-128.846 74.3877
36
  l-127.008 -73.3311l129.689 -76.8193z" />
@@ -38,10 +52,78 @@ l-127.008 -73.3311l129.689 -76.8193z" />
38
  d="M119.507 152.666c0 0 123.872 168.55 276.192 0c0 0 -123.872 -172.615 -276.192 0zM257.594 99.7119c28.7549 0 52.0576 23.3154 52.0576 52.0381c0 28.749 -23.2959 52.0576 -52.0576 52.0576c-28.7295 0 -52.0322 -23.3086 -52.0322 -52.0576
39
  c0 -28.7227 23.3027 -52.0381 52.0322 -52.0381zM257.594 117.453c-18.9316 0 -34.2979 15.3594 -34.2979 34.2969c0 18.957 15.3662 34.3105 34.2979 34.3105c18.957 0 34.3164 -15.3535 34.3164 -34.3105c0 -18.9375 -15.3594 -34.2969 -34.3164 -34.2969z
40
  M257.594 186.061c18.957 0 34.3164 -15.3535 34.3164 -34.3105c0 -18.9375 -15.3594 -34.2969 -34.3164 -34.2969c-18.9316 0 -34.2979 15.3594 -34.2979 34.2969c0 18.957 15.3662 34.3105 34.2979 34.3105z" />
41
- <glyph glyph-name="uniF113" unicode="&#xf113;"
42
- d="M318.489 170.215v16.1211l30.0742 -30.0859l-30.0742 -30.0742v16.1094h-120.902v-16.1094l-30.0732 30.0742l30.0732 30.0859v-16.1211h120.902zM371.2 345.6h76.7998v-384h-384v384h76.7998v76.8008h76.7998v-76.8008h76.8008v76.8008h76.7998v-76.8008z
43
- M388.448 76.8252v0v157.606c0 11.2256 -9.08789 20.3135 -20.3008 20.3135h-225.376c-11.2197 0 -20.3076 -9.09375 -20.3076 -20.3135v-157.606c0 -11.2256 9.08789 -20.3193 20.3076 -20.3193h97.3633c-1.27441 -7.69922 -7.61035 -28.666 -39.002 -28.666v-10.0479
44
- h50.4316h10.7461h50.4258v10.0479c-31.3984 0 -37.7471 20.9727 -39.002 28.666h94.4004c11.2256 0 20.3135 9.09375 20.3135 20.3193z" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
  <glyph glyph-name="uniF112" unicode="&#xf112;"
46
  d="M368.135 254.745c11.2256 0 20.3135 -9.09375 20.3135 -20.3135v-157.606c0 -11.2256 -9.08789 -20.3193 -20.3008 -20.3193h-94.4131c1.27344 -7.69922 7.61621 -28.666 39.0078 -28.666v-10.0479h-50.4316h-10.7393h-50.4316v10.0479
47
  c31.3984 0 37.7275 20.9727 39.001 28.666h-97.3691c-11.2197 0 -20.3076 9.09375 -20.3076 20.3193v157.606c0 11.2256 9.08789 20.3135 20.3076 20.3135h225.363zM318.489 126.176l30.0742 30.0742l-30.0742 30.0859v-16.1279h-120.902v16.1279l-30.0732 -30.0859
@@ -263,74 +345,10 @@ v-67.9395h100.396v67.9395zM118.291 310.896h277.263l-31.5557 32.5283h-213.188z" /
263
  <glyph glyph-name="uniF121" unicode="&#xf121;"
264
  d="M170.238 102.4l85.7617 68.4805l85.1191 -68.4805h-51.8389v-45.4375h-67.1992v45.4375h-51.8428zM371.2 345.6h76.7998v-384h-384v384h76.7998v76.8008h76.7998v-76.8008h76.8008v76.8008h76.7998v-76.8008zM383.357 37.1221v162.558l-49.2754 49.2793h-157.442
265
  l-49.2783 -49.2793v-162.558c0 -7.68066 6.39746 -14.0781 14.0781 -14.0781h228.479c7.67676 0 14.082 6.39746 13.4395 14.0781zM184.959 224.641h142.721l21.123 -21.7617h-185.602z" />
266
- <glyph glyph-name="uniF114" unicode="&#xf114;"
267
- d="M342.15 99.4111l0.0898438 1.29883l0.43457 -50.0029l-0.0380859 -1.03027l-0.0507812 -0.262695c-0.0644531 -0.799805 -0.199219 -1.58691 -0.397461 -2.37402v-0.0322266l-0.0761719 -0.172852c-0.154297 -0.68457 -0.416016 -1.36914 -0.691406 -2.03516
268
- l-0.115234 -0.293945l-0.134766 -0.269531c-0.319336 -0.671875 -0.671875 -1.35645 -1.0752 -2.02148l-0.0703125 -0.102539l-0.0253906 -0.0263672c-0.428711 -0.709961 -0.94043 -1.40137 -1.50391 -2.08594l-0.15332 -0.217773l-0.275391 -0.306641
269
- c-0.505859 -0.595703 -1.05664 -1.18457 -1.64453 -1.76074l-0.224609 -0.261719l-0.102539 -0.0898438c-0.722656 -0.68457 -1.50977 -1.37598 -2.34863 -2.04785l-0.249023 -0.211914l-0.352539 -0.249023c-0.93457 -0.716797 -1.90723 -1.44043 -2.96289 -2.1123
270
- l-0.0771484 -0.0634766l-0.217773 -0.12793c-1.29297 -0.826172 -2.6748 -1.66406 -4.15332 -2.44531l-0.0507812 -0.0322266l-0.262695 -0.133789c-0.826172 -0.428711 -1.68359 -0.864258 -2.56055 -1.26758l-0.959961 -0.435547
271
- c-0.68457 -0.306641 -1.40137 -0.620117 -2.11816 -0.933594l-0.40332 -0.185547l-0.383789 -0.134766c-1.62598 -0.68457 -3.32129 -1.33105 -5.09473 -1.94531l-0.760742 -0.25c-1.76074 -0.601562 -3.59082 -1.19043 -5.48535 -1.71484l-0.313477 -0.109375
272
- l-0.435547 -0.108398c-2.18848 -0.614258 -4.4668 -1.19043 -6.80273 -1.70215l-0.851562 -0.185547c-2.36133 -0.512695 -4.78711 -0.979492 -7.27637 -1.38965l-0.473633 -0.0888672l-0.410156 -0.0644531c-2.03516 -0.338867 -4.1084 -0.626953 -6.21387 -0.889648
273
- l-1.08789 -0.133789c-2.1123 -0.25 -4.2627 -0.473633 -6.46387 -0.65332l-0.486328 -0.0507812l-0.544922 -0.0390625c-2.55957 -0.198242 -5.15137 -0.345703 -7.80762 -0.447266l-0.518555 -0.0263672l-0.665039 -0.0126953
274
- c-2.15723 -0.0761719 -4.32715 -0.121094 -6.53516 -0.133789l-0.389648 -0.00683594c-1.13965 0 -2.27832 0.00683594 -3.4375 0.0322266c-1.1709 0.0195312 -2.3418 0.0380859 -3.51367 0.0898438l-0.396484 0.0126953
275
- c-1.8623 0.0634766 -3.71191 0.140625 -5.53613 0.261719l-0.499023 0.0263672l-1.00488 0.0761719c-1.39551 0.102539 -2.77734 0.198242 -4.14746 0.327148l-0.959961 0.0761719l-0.53125 0.0644531c-1.7207 0.160156 -3.41699 0.338867 -5.10059 0.549805
276
- l-0.268555 0.0263672l-0.825195 0.121094c-1.41504 0.185547 -2.80371 0.383789 -4.17969 0.588867l-0.793945 0.108398l-0.652344 0.115234c-1.70215 0.262695 -3.3916 0.550781 -5.05566 0.876953h-0.0771484l-0.300781 0.0771484
277
- c-1.65723 0.313477 -3.26367 0.646484 -4.87012 0.998047l-0.716797 0.134766l-0.5 0.12793c-1.77832 0.421875 -3.53223 0.851562 -5.23438 1.31152l-0.40332 0.0898438l-0.505859 0.160156c-2.02246 0.543945 -3.98047 1.12012 -5.86914 1.73438l-0.28125 0.0957031
278
- l-0.896484 0.307617c-0.792969 0.275391 -1.56152 0.537109 -2.3418 0.8125l-1.36328 0.505859c-0.736328 0.268555 -1.44629 0.556641 -2.17578 0.844727l-0.844727 0.326172l-0.460938 0.211914l-1.38281 0.587891l-1.50977 0.666016l-1.3252 0.639648l-1.40137 0.666016
279
- l-1.30566 0.678711l-1.29297 0.677734l-1.22852 0.704102l-1.20312 0.710938l-1.16504 0.722656l-1.10742 0.723633l-1.10742 0.774414l-0.998047 0.722656l-1.03711 0.826172l-0.895508 0.722656l-0.947266 0.851562l-0.806641 0.729492l-0.864258 0.882812
280
- l-0.697266 0.736328l-0.787109 0.927734l-0.608398 0.736328l-0.65918 0.947266l-0.518555 0.736328l-0.569336 0.985352l-0.40332 0.729492l-0.473633 1.0498l-0.300781 0.697266l-0.351562 1.11328l-0.210938 0.666016l-0.25 1.24121l-0.102539 0.543945
281
- c-0.0830078 0.615234 -0.121094 1.19727 -0.121094 1.81836l-0.435547 50.0029c0 -0.601562 0.0380859 -1.20312 0.12207 -1.81152l0.146484 -0.767578l0.198242 -1.02441l0.269531 -0.870117l0.293945 -0.902344l0.37793 -0.876953l0.383789 -0.889648l0.499023 -0.850586
282
- l0.511719 -0.876953l0.576172 -0.832031l0.601562 -0.851562l0.671875 -0.8125l0.691406 -0.871094l0.761719 -0.787109l0.8125 -0.825195l0.845703 -0.754883l0.915039 -0.832031l0.93457 -0.743164l1.00391 -0.799805l1.01172 -0.729492l1.08789 -0.774414
283
- l1.08203 -0.697266l1.18359 -0.761719l1.17773 -0.671875l1.26074 -0.736328l1.26074 -0.665039l1.33105 -0.685547l1.33789 -0.65918l1.4209 -0.665039l1.40723 -0.640625l1.47266 -0.639648l1.26074 -0.499023c0.722656 -0.300781 1.45312 -0.588867 2.20117 -0.864258
284
- l1.35742 -0.505859c0.754883 -0.261719 1.5293 -0.537109 2.31641 -0.799805l1.20312 -0.40332c1.90137 -0.607422 3.86621 -1.19043 5.8877 -1.74023l0.858398 -0.237305c1.72168 -0.460938 3.4873 -0.902344 5.2793 -1.31152l1.17188 -0.262695
285
- c1.59961 -0.345703 3.22559 -0.697266 4.87695 -1.01074l0.40918 -0.102539c1.66406 -0.313477 3.36621 -0.601562 5.08789 -0.876953l1.37598 -0.210938c1.4082 -0.199219 2.81641 -0.416016 4.25586 -0.588867l1.03711 -0.134766
286
- c1.68945 -0.205078 3.39844 -0.390625 5.13867 -0.537109l1.43359 -0.134766c1.39551 -0.12793 2.79688 -0.223633 4.21777 -0.333008l1.46582 -0.0957031c1.83008 -0.115234 3.68652 -0.198242 5.54883 -0.262695c1.29297 -0.0380859 2.5918 -0.0761719 3.91016 -0.102539
287
- c1.28027 -0.0126953 2.55371 -0.0126953 3.81445 -0.0126953c2.19531 0 4.38379 0.0517578 6.53418 0.115234l1.2041 0.0449219c2.63672 0.102539 5.24707 0.268555 7.80762 0.454102l1.02441 0.0898438c2.18848 0.192383 4.33887 0.40332 6.46387 0.666016
288
- l1.10059 0.133789c2.09863 0.262695 4.17871 0.556641 6.21387 0.896484l0.774414 0.12793c2.53516 0.428711 4.98633 0.902344 7.37305 1.41406l0.826172 0.185547c2.36133 0.512695 4.63965 1.08203 6.83496 1.69629l0.704102 0.185547
289
- c1.91309 0.550781 3.75684 1.13281 5.54199 1.73438l0.710938 0.237305c1.75293 0.614258 3.44922 1.26074 5.0752 1.92578l0.875977 0.37793c0.698242 0.293945 1.37012 0.588867 2.03516 0.895508l0.986328 0.448242c0.959961 0.473633 1.90039 0.93457 2.80957 1.41406
290
- c1.52246 0.806641 2.96289 1.6582 4.28809 2.52246l0.198242 0.12793c1.08789 0.697266 2.08008 1.42676 3.02734 2.16309l0.537109 0.416016c0.851562 0.68457 1.6582 1.37598 2.3877 2.08594l0.300781 0.300781c0.594727 0.595703 1.13867 1.19043 1.66406 1.79883
291
- l0.441406 0.524414c0.53125 0.678711 1.06836 1.37598 1.49121 2.06738l0.115234 0.15332c0.396484 0.666016 0.735352 1.33789 1.0625 2.00391l0.236328 0.575195c0.288086 0.65332 0.525391 1.33789 0.710938 2.02246l0.0761719 0.230469
292
- c0.192383 0.78125 0.313477 1.57422 0.390625 2.36816zM342.15 171.053l0.0898438 1.33105l0.43457 -50.0029l-0.0380859 -1.03027l-0.0507812 -0.275391c-0.0644531 -0.787109 -0.199219 -1.58105 -0.397461 -2.36133v-0.0449219l-0.0761719 -0.185547
293
- c-0.154297 -0.68457 -0.416016 -1.35742 -0.691406 -2.02246l-0.115234 -0.300781l-0.134766 -0.262695c-0.319336 -0.68457 -0.671875 -1.35645 -1.0752 -2.02246l-0.0703125 -0.115234l-0.0253906 -0.0253906c-0.428711 -0.697266 -0.94043 -1.40137 -1.50391 -2.08594
294
- l-0.15332 -0.211914l-0.275391 -0.300781c-0.505859 -0.594727 -1.05664 -1.19629 -1.64453 -1.77246l-0.224609 -0.255859l-0.102539 -0.0830078c-0.722656 -0.704102 -1.50977 -1.37598 -2.34863 -2.04883l-0.249023 -0.223633l-0.352539 -0.236328
295
- c-0.93457 -0.723633 -1.90723 -1.44727 -2.96289 -2.125l-0.0771484 -0.0644531l-0.217773 -0.115234c-1.29297 -0.837891 -2.6748 -1.66406 -4.15332 -2.45117l-0.0507812 -0.0380859l-0.262695 -0.12793c-0.826172 -0.435547 -1.68359 -0.864258 -2.56055 -1.28027
296
- l-0.959961 -0.428711c-0.68457 -0.326172 -1.40137 -0.633789 -2.11816 -0.93457l-0.40332 -0.178711l-0.383789 -0.134766c-1.62598 -0.697266 -3.32129 -1.3252 -5.09473 -1.95215l-0.760742 -0.249023c-1.76074 -0.601562 -3.59082 -1.18457 -5.48535 -1.70898
297
- l-0.313477 -0.12207l-0.435547 -0.102539c-2.18848 -0.614258 -4.4668 -1.17676 -6.80273 -1.69531l-0.851562 -0.179688c-2.36133 -0.511719 -4.78711 -0.992188 -7.27637 -1.40137l-0.473633 -0.0898438l-0.410156 -0.0507812
298
- c-2.03516 -0.339844 -4.1084 -0.633789 -6.21387 -0.902344l-1.08789 -0.134766c-2.1123 -0.249023 -4.2627 -0.473633 -6.46387 -0.652344l-0.486328 -0.0517578l-0.544922 -0.0322266c-2.55957 -0.204102 -5.15137 -0.351562 -7.80762 -0.454102l-0.518555 -0.0380859
299
- l-0.665039 -0.0126953c-2.15723 -0.0644531 -4.32715 -0.12793 -6.53516 -0.12793h-0.389648c-1.13965 0 -2.27832 0 -3.4375 0.0126953c-1.1709 0.0253906 -2.3418 0.0576172 -3.51367 0.0898438l-0.396484 0.0253906
300
- c-1.8623 0.0634766 -3.71191 0.146484 -5.53613 0.255859l-0.499023 0.0322266l-1.00488 0.0761719c-1.39551 0.0898438 -2.77734 0.198242 -4.14746 0.327148l-0.959961 0.0703125l-0.53125 0.0634766c-1.7207 0.15332 -3.41699 0.345703 -5.10059 0.550781
301
- l-0.268555 0.0322266l-0.825195 0.115234c-1.41504 0.185547 -2.80371 0.376953 -4.17969 0.587891l-0.793945 0.115234l-0.652344 0.115234c-1.70215 0.262695 -3.3916 0.557617 -5.05566 0.871094l-0.0771484 0.0126953l-0.300781 0.0703125
302
- c-1.65723 0.313477 -3.26367 0.633789 -4.87012 1.00488l-0.716797 0.133789l-0.5 0.134766c-1.77832 0.40332 -3.53223 0.838867 -5.23438 1.29883l-0.40332 0.109375l-0.505859 0.140625c-2.02246 0.550781 -3.98047 1.12012 -5.86914 1.75391l-0.28125 0.0761719
303
- l-0.896484 0.307617c-0.792969 0.275391 -1.56152 0.543945 -2.3418 0.825195l-1.36328 0.499023c-0.736328 0.275391 -1.44629 0.557617 -2.17578 0.838867l-0.844727 0.345703l-0.460938 0.192383l-1.38281 0.587891l-1.50977 0.666016l-1.3252 0.639648
304
- l-1.40137 0.685547l-1.30566 0.665039l-1.29297 0.68457l-1.22852 0.710938l-1.20312 0.697266l-1.16504 0.736328l-1.10742 0.722656l-1.10742 0.761719l-0.998047 0.729492l-1.03711 0.819336l-0.895508 0.723633l-0.947266 0.850586l-0.806641 0.736328
305
- l-0.864258 0.889648l-0.697266 0.723633l-0.787109 0.927734l-0.608398 0.736328l-0.65918 0.947266l-0.518555 0.735352l-0.569336 0.992188l-0.40332 0.723633l-0.473633 1.04883l-0.300781 0.704102l-0.351562 1.11426l-0.210938 0.665039l-0.25 1.24219
306
- l-0.102539 0.549805c-0.0830078 0.614258 -0.121094 1.20312 -0.121094 1.81738l-0.435547 50.0098c0 -0.614258 0.0380859 -1.22266 0.12207 -1.82422l0.146484 -0.774414l0.198242 -1.01074l0.269531 -0.864258l0.293945 -0.915039l0.37793 -0.864258l0.383789 -0.889648
307
- l0.499023 -0.850586l0.511719 -0.883789l0.576172 -0.837891l0.601562 -0.857422l0.671875 -0.813477l0.691406 -0.850586l0.761719 -0.787109l0.8125 -0.838867l0.845703 -0.761719l0.915039 -0.825195l0.93457 -0.736328l1.00391 -0.8125l1.01172 -0.710938
308
- l1.08789 -0.780273l1.08203 -0.704102l1.18359 -0.749023l1.17773 -0.678711l1.26074 -0.729492l1.26074 -0.665039l1.33105 -0.698242l1.33789 -0.652344l1.4209 -0.671875l1.40723 -0.621094l1.47266 -0.633789l1.26074 -0.511719
309
- c0.722656 -0.288086 1.45312 -0.576172 2.20117 -0.864258l1.36328 -0.492188c0.755859 -0.288086 1.53027 -0.550781 2.31738 -0.813477l1.20312 -0.402344c1.90039 -0.602539 3.86523 -1.2041 5.8877 -1.75391l0.857422 -0.237305
310
- c1.72168 -0.459961 3.48828 -0.895508 5.28027 -1.31152l1.1709 -0.25c1.60059 -0.358398 3.22559 -0.697266 4.87695 -1.02344l0.40332 -0.0771484c1.66406 -0.320312 3.36621 -0.594727 5.08789 -0.870117l1.37598 -0.205078
311
- c1.4082 -0.210938 2.81641 -0.421875 4.25586 -0.608398l1.03711 -0.133789c1.68945 -0.192383 3.39844 -0.390625 5.13867 -0.550781l1.43359 -0.12793c1.39551 -0.12793 2.79688 -0.236328 4.21777 -0.338867l1.46582 -0.0898438
312
- c1.83008 -0.121094 3.68652 -0.210938 5.54883 -0.275391c1.29297 -0.0380859 2.5918 -0.0830078 3.91016 -0.0957031c1.28027 -0.0253906 2.55371 -0.0253906 3.81445 -0.0253906c2.19531 0 4.38379 0.0507812 6.53418 0.121094l1.2041 0.0644531
313
- c2.63672 0.0898438 5.24707 0.249023 7.80762 0.448242l1.02441 0.0888672c2.18848 0.192383 4.33887 0.40332 6.46387 0.65332l1.10059 0.133789c2.09863 0.262695 4.17871 0.550781 6.21387 0.883789l0.774414 0.133789c2.53516 0.442383 4.98633 0.902344 7.37305 1.4209
314
- l0.826172 0.179688c2.36133 0.524414 4.63965 1.10059 6.83496 1.70898l0.704102 0.191406c1.91309 0.538086 3.75684 1.11426 5.54199 1.72852l0.710938 0.243164c1.75293 0.607422 3.44922 1.24805 5.0752 1.91992l0.875977 0.351562
315
- c0.698242 0.300781 1.37012 0.621094 2.03516 0.915039l0.986328 0.448242c0.959961 0.467773 1.90039 0.93457 2.80957 1.4209c1.52246 0.799805 2.96289 1.64453 4.28809 2.50879l0.198242 0.134766c1.08789 0.704102 2.08008 1.42676 3.02734 2.16895l0.537109 0.410156
316
- c0.851562 0.665039 1.6582 1.37598 2.3877 2.07324l0.300781 0.313477c0.594727 0.588867 1.13867 1.17773 1.66406 1.79199l0.441406 0.518555c0.53125 0.671875 1.06836 1.38867 1.49121 2.07422l0.115234 0.15918c0.396484 0.666016 0.735352 1.33203 1.0625 2.00391
317
- l0.236328 0.5625c0.288086 0.671875 0.525391 1.35059 0.710938 2.02246l0.0761719 0.237305c0.192383 0.787109 0.313477 1.57422 0.390625 2.36133zM342.15 242.694l0.0703125 1.31836l0.441406 -50.0156l-0.0380859 -1.03027l-0.0576172 -0.256836
318
- c-0.0644531 -0.805664 -0.192383 -1.59277 -0.390625 -2.37402v-0.0253906l-0.0761719 -0.185547c-0.160156 -0.68457 -0.410156 -1.35059 -0.698242 -2.0166l-0.108398 -0.306641l-0.140625 -0.275391c-0.313477 -0.678711 -0.671875 -1.35059 -1.0752 -2.01562
319
- l-0.0644531 -0.109375l-0.0253906 -0.0253906c-0.435547 -0.704102 -0.947266 -1.40137 -1.51074 -2.08008l-0.146484 -0.223633l-0.275391 -0.288086c-0.505859 -0.608398 -1.0625 -1.19727 -1.63867 -1.78613l-0.236328 -0.249023l-0.102539 -0.0898438
320
- c-0.723633 -0.691406 -1.51074 -1.36914 -2.34961 -2.03516l-0.249023 -0.223633l-0.352539 -0.25c-0.927734 -0.723633 -1.90039 -1.44043 -2.95605 -2.125l-0.0771484 -0.0507812l-0.217773 -0.12793c-1.29297 -0.844727 -2.6748 -1.6582 -4.16016 -2.44531
321
- l-0.0507812 -0.0380859l-0.262695 -0.134766c-0.825195 -0.428711 -1.67676 -0.850586 -2.55957 -1.28613l-0.954102 -0.416016c-0.69043 -0.320312 -1.40137 -0.633789 -2.11816 -0.93457l-0.40332 -0.185547l-0.390625 -0.133789
322
- c-1.625 -0.678711 -3.32715 -1.3125 -5.09375 -1.93945l-0.761719 -0.25c-1.75391 -0.601562 -3.59082 -1.17773 -5.49121 -1.71484l-0.300781 -0.102539l-0.441406 -0.115234c-2.18945 -0.614258 -4.46094 -1.19043 -6.80371 -1.71484l-0.844727 -0.154297
323
- c-2.35547 -0.511719 -4.78711 -0.998047 -7.27637 -1.40137l-0.473633 -0.108398l-0.40332 -0.0517578c-2.04199 -0.326172 -4.11523 -0.620117 -6.2207 -0.889648l-1.08789 -0.12793c-2.1123 -0.261719 -4.2627 -0.486328 -6.46484 -0.665039l-0.486328 -0.0576172
324
- l-0.543945 -0.0263672c-2.56641 -0.191406 -5.15137 -0.344727 -7.80762 -0.454102l-0.518555 -0.0449219h-0.671875c-2.15723 -0.0761719 -4.32617 -0.115234 -6.53418 -0.12793l-0.383789 -0.00585938c-1.14648 0 -2.28516 0.00585938 -3.44336 0.03125
325
- c-1.17188 0 -2.34277 0.0390625 -3.51367 0.0771484l-0.397461 0.0253906c-1.8623 0.0644531 -3.71191 0.134766 -5.53516 0.262695l-0.5 0.0253906l-1.00391 0.0703125c-1.39551 0.109375 -2.77832 0.205078 -4.14746 0.333008l-0.959961 0.0771484l-0.53125 0.0634766
326
- c-1.72168 0.160156 -3.41797 0.339844 -5.10059 0.538086l-0.269531 0.0380859l-0.825195 0.115234c-1.41406 0.179688 -2.80371 0.383789 -4.17969 0.576172l-0.792969 0.121094l-0.65332 0.12207c-1.70215 0.262695 -3.3916 0.550781 -5.05566 0.864258
327
- l-0.0771484 0.0126953l-0.300781 0.0703125c-1.65723 0.320312 -3.26367 0.652344 -4.87012 1.00488l-0.716797 0.147461l-0.499023 0.114258c-1.7793 0.410156 -3.5332 0.845703 -5.23535 1.3125l-0.40332 0.0957031l-0.505859 0.154297
328
- c-2.02246 0.537109 -3.98047 1.11328 -5.86816 1.74023l-0.282227 0.0830078l-0.895508 0.313477c-0.793945 0.262695 -1.56152 0.538086 -2.34277 0.813477l-1.36328 0.499023c-0.735352 0.275391 -1.44629 0.563477 -2.17578 0.837891l-0.844727 0.345703
329
- l-0.460938 0.192383l-1.38184 0.588867l-1.51074 0.671875l-1.3252 0.633789l-1.40137 0.678711l-1.30566 0.665039l-1.29297 0.678711l-1.22852 0.704102l-1.20312 0.704102l-1.16504 0.735352l-1.10742 0.716797l-1.10645 0.774414l-0.999023 0.716797l-1.03613 0.832031
330
- l-0.896484 0.716797l-0.947266 0.851562l-0.806641 0.735352l-0.863281 0.896484l-0.698242 0.716797l-0.787109 0.93457l-0.607422 0.742188l-0.65918 0.93457l-0.518555 0.736328l-0.569336 0.998047l-0.40332 0.729492l-0.473633 1.04297l-0.300781 0.698242
331
- l-0.352539 1.11914l-0.210938 0.65332l-0.25 1.24805l-0.102539 0.549805c-0.0830078 0.602539 -0.121094 1.2041 -0.121094 1.81836l-0.37793 43.5645c-0.00585938 0.147461 -0.0576172 0.294922 -0.0576172 0.441406c0 0.134766 0.0517578 0.269531 0.0517578 0.40332
332
- l-0.0517578 5.60059c0 -0.608398 0.0390625 -1.2168 0.12207 -1.82422l0.147461 -0.774414l0.0888672 -0.448242c3.63574 17.875 40.4102 31.3916 85.3701 30.7012c44.998 -0.691406 81.9131 -15.3857 85.5742 -33.4082c0.12793 0.607422 0.243164 1.20898 0.300781 1.81738
333
- z" />
334
  <glyph glyph-name="uniF11B" unicode="&#xf11b;"
335
  d="M404.666 185.6c4.95996 0 7.57715 -1.06836 7.8457 -2.82227c0 -0.524414 -0.93457 -2.98828 -2.79688 -7.0459l-56.0508 -111.731h-226.374l57.3184 112.378c1.94531 3.87207 3.83984 5.97754 5.69531 7.07812c1.8623 1.08789 5.22949 2.14355 10.1318 2.14355h204.23z
336
  M175.584 203.872c-2.18848 -1.24805 -6.8418 -5.22852 -10.8027 -12.9092l-55.9814 -105.549v133.626c0 3.96191 2.21484 7.41113 3.52637 8.64648c1.31836 1.22266 5.55566 2.71387 9.60645 2.71387h7.85254c5.65137 0 9.29297 -0.179688 10.9385 0.920898
1
  <?xml version="1.0" standalone="no"?>
2
  <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
  <!--
4
+ 2015-7-1: Created with FontForge (http://fontforge.org)
5
  -->
6
  <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
7
  <metadata>
8
+ Created by FontForge 20150302 at Wed Jul 1 13:23:39 2015
9
  By Riccardo Strobbia
10
  Copyright (c) 2015, Riccardo Strobbia
11
  </metadata>
19
  panose-1="2 0 5 9 0 0 0 0 0 0"
20
  ascent="448"
21
  descent="-64"
22
+ bbox="50.7344 -38.4004 470.594 422.4"
23
  underline-thickness="25.6"
24
  underline-position="-51.2"
25
+ unicode-range="U+F110-F123"
26
  />
27
  <missing-glyph />
28
  <glyph glyph-name="uniF11F" unicode="&#xf11f;"
31
  c0.962891 14.2598 10.0381 25.2607 20.2705 24.5752c4.15039 -0.273438 7.83887 -2.45508 10.709 -5.86914c3.64551 -3.00781 6.39258 -7.75293 7.72363 -13.4102c6.13281 -13.9424 4.26855 -35.9004 16.9492 -43.3105c67.0361 3.93066 41.5225 113.459 -18.457 87.6562
32
  c-138.73 -59.6406 -268.003 29.2598 -281.441 143.039c-15.0859 127.578 89.6006 208.035 161.485 216.851c132.461 16.2393 243.918 -94.3057 216.851 -239.923c-6.51562 -34.9307 -27.2803 -78.3857 -73.8223 -78.4297
33
  c-34.4258 -0.0498047 -66.7617 27.042 -69.2061 64.5918z" />
34
+ <glyph glyph-name="uniF123" unicode="&#xf123;"
35
+ d="M56.5742 204.729c0 112.482 91.1855 203.668 203.669 203.668s203.668 -91.1855 203.668 -203.668c0 -112.483 -91.1846 -203.669 -203.668 -203.669s-203.669 91.1855 -203.669 203.669zM230.004 260.54v0l-8.29395 -0.00585938l-47.2627 -7.61426l-1.73047 -5.53906
36
+ c1.84375 0.113281 3.51855 0.175781 5.01758 0.175781c2.99902 0 5.39746 -0.81543 7.18555 -2.42773c1.78711 -1.61816 2.68164 -3.46191 2.68164 -5.53809c0 -3.23047 -0.922852 -8.02246 -2.7666 -14.3643l-19.3887 -66.6455
37
+ c-1.62305 -5.30078 -2.42676 -9.69043 -2.42676 -13.1533c0 -5.19922 1.78809 -9.49316 5.36328 -12.8936c3.5752 -3.40527 8.3623 -5.1084 14.3643 -5.1084c15.8125 0 30.7598 12.2314 44.8359 36.7002l-4.84277 2.7666
38
+ c-5.77148 -9.00098 -10.7949 -15.2305 -15.0605 -18.6924c-1.49316 -1.38672 -3.06055 -2.07617 -4.67285 -2.07617c-0.922852 0 -1.78809 0.458008 -2.59668 1.38574c-0.80957 0.921875 -1.21094 1.84473 -1.21094 2.77246c0 1.84375 0.741211 5.59473 2.24609 11.252z
39
+ M221.348 324.758c-5.65723 0 -10.4375 -2.01953 -14.3584 -6.05859c-3.9209 -4.04004 -5.88379 -8.88867 -5.88379 -14.54c0 -5.65723 1.99121 -10.4717 5.96875 -14.4551c3.9834 -3.97656 8.74121 -5.96875 14.2793 -5.96875c5.65234 0 10.5 1.99219 14.54 5.96875
40
+ c4.03906 3.9834 6.05371 8.79785 6.05371 14.4551c0 5.65137 -1.99219 10.5 -5.97461 14.54c-3.97754 4.03906 -8.84863 6.05859 -14.625 6.05859zM311.183 240.462v0.00585938h19.7451l4.83691 16.2705h-20.2539c5.77051 23.4219 13.3857 40.6152 22.8506 51.5791
41
+ c5.76465 6.6875 11.4219 10.0361 16.9609 10.0361c1.1543 0 2.08203 -0.316406 2.77246 -0.950195c0.695312 -0.639648 1.04688 -1.4707 1.04688 -2.51172c0 -0.922852 -0.787109 -2.6875 -2.33691 -5.27832c-1.55566 -2.5918 -2.33691 -5.04688 -2.33691 -7.35547
42
+ c0 -3.23047 1.20508 -5.99609 3.63281 -8.30469c2.42676 -2.30859 5.48145 -3.46289 9.17578 -3.46289c4.02832 0 7.37207 1.41504 10.0361 4.24316c2.64844 2.8291 3.97754 6.6084 3.97754 11.3379c0 5.54395 -2.02539 10.042 -6.05957 13.5049
43
+ c-4.03906 3.46191 -10.5059 5.19336 -19.3936 5.19336c-13.9619 0 -26.5898 -4.09668 -37.8994 -12.2881c-11.3145 -8.19238 -22.1094 -21.7529 -32.377 -40.6777c-3.45703 -6.46582 -6.77246 -10.6182 -9.95215 -12.4629
44
+ c-3.17383 -1.84961 -8.21973 -2.71582 -15.1445 -2.59668l-4.67285 -16.2715h19.3877l-28.3887 -111.469c-4.73047 -18.2393 -7.95996 -29.4805 -9.69141 -33.7578c-2.42188 -6.22852 -6.06543 -11.5352 -10.9082 -15.9199
45
+ c-1.96289 -1.73145 -4.32715 -2.59668 -7.09961 -2.59668c-0.797852 0 -1.49316 0.231445 -2.07031 0.69043l-0.69043 0.865234c0 0.463867 0.69043 1.41406 2.07031 2.85742c1.38574 1.44238 2.07617 3.66602 2.07617 6.66406c0 3.23047 -1.08594 5.91797 -3.28711 8.05078
46
+ c-2.18945 2.13867 -5.36816 3.20215 -9.52148 3.20215c-5.07422 0 -9.14258 -1.38672 -12.2031 -4.1582c-3.05469 -2.77246 -4.58789 -6.05957 -4.58789 -9.86719c0 -4.03906 1.84961 -7.58594 5.53906 -10.6475c3.69434 -3.05469 9.52637 -4.58789 17.4814 -4.58789
47
+ c12.4629 0 23.5684 3.28125 33.3281 9.86133c9.74707 6.5791 18.2275 16.6719 25.4414 30.29c7.21289 13.6172 14.6299 35.6533 22.2451 66.124z" />
48
  <glyph glyph-name="uniF119" unicode="&#xf119;"
49
  d="M371.2 345.6h76.7998v-384h-384v384h76.7998v76.8008h76.7998v-76.8008h76.8008v76.8008h76.7998v-76.8008zM243.782 3.33398v122.164l-117.459 69.5742v-123.917zM384.007 71.1553v121.439l-116.979 -70.0088v-118.977zM384.007 219.667v0.268555l-128.846 74.3877
50
  l-127.008 -73.3311l129.689 -76.8193z" />
52
  d="M119.507 152.666c0 0 123.872 168.55 276.192 0c0 0 -123.872 -172.615 -276.192 0zM257.594 99.7119c28.7549 0 52.0576 23.3154 52.0576 52.0381c0 28.749 -23.2959 52.0576 -52.0576 52.0576c-28.7295 0 -52.0322 -23.3086 -52.0322 -52.0576
53
  c0 -28.7227 23.3027 -52.0381 52.0322 -52.0381zM257.594 117.453c-18.9316 0 -34.2979 15.3594 -34.2979 34.2969c0 18.957 15.3662 34.3105 34.2979 34.3105c18.957 0 34.3164 -15.3535 34.3164 -34.3105c0 -18.9375 -15.3594 -34.2969 -34.3164 -34.2969z
54
  M257.594 186.061c18.957 0 34.3164 -15.3535 34.3164 -34.3105c0 -18.9375 -15.3594 -34.2969 -34.3164 -34.2969c-18.9316 0 -34.2979 15.3594 -34.2979 34.2969c0 18.957 15.3662 34.3105 34.2979 34.3105z" />
55
+ <glyph glyph-name="uniF122" unicode="&#xf122;"
56
+ d="M260.664 55.4453h-209.93l104.963 176.74l104.967 176.025l104.968 -176.378l104.962 -176.388h-209.93zM284.613 161.191l7.23633 129.573h-61.3564l7.24609 -129.573h46.874zM231.062 113.25c0 -8.2168 2.65039 -14.6348 7.95215 -19.2402
57
+ c5.30566 -4.61523 12.6455 -6.91797 22.0186 -6.91797c9.2793 0 16.4961 2.30762 21.6602 6.91797c5.16406 4.60547 7.74121 11.0234 7.74121 19.2402c0 8.31445 -2.48828 14.7725 -7.45703 19.3877c-4.96777 4.61523 -12.2832 6.91797 -21.9443 6.91797
58
+ c-9.75488 0 -17.1875 -2.30762 -22.2979 -6.91797c-5.11523 -4.62012 -7.67285 -11.0781 -7.67285 -19.3877z" />
59
+ <glyph glyph-name="uniF114" unicode="&#xf114;"
60
+ d="M342.15 99.4111l0.0898438 1.29883l0.43457 -50.0029l-0.0380859 -1.03027l-0.0507812 -0.262695c-0.0644531 -0.799805 -0.199219 -1.58691 -0.397461 -2.37402v-0.0322266l-0.0761719 -0.172852c-0.154297 -0.68457 -0.416016 -1.36914 -0.691406 -2.03516
61
+ l-0.115234 -0.293945l-0.134766 -0.269531c-0.319336 -0.671875 -0.671875 -1.35645 -1.0752 -2.02148l-0.0703125 -0.102539l-0.0253906 -0.0263672c-0.428711 -0.709961 -0.94043 -1.40137 -1.50391 -2.08594l-0.15332 -0.217773l-0.275391 -0.306641
62
+ c-0.505859 -0.595703 -1.05664 -1.18457 -1.64453 -1.76074l-0.224609 -0.261719l-0.102539 -0.0898438c-0.722656 -0.68457 -1.50977 -1.37598 -2.34863 -2.04785l-0.249023 -0.211914l-0.352539 -0.249023c-0.93457 -0.716797 -1.90723 -1.44043 -2.96289 -2.1123
63
+ l-0.0771484 -0.0634766l-0.217773 -0.12793c-1.29297 -0.826172 -2.6748 -1.66406 -4.15332 -2.44531l-0.0507812 -0.0322266l-0.262695 -0.133789c-0.826172 -0.428711 -1.68359 -0.864258 -2.56055 -1.26758l-0.959961 -0.435547
64
+ c-0.68457 -0.306641 -1.40137 -0.620117 -2.11816 -0.933594l-0.40332 -0.185547l-0.383789 -0.134766c-1.62598 -0.68457 -3.32129 -1.33105 -5.09473 -1.94531l-0.760742 -0.25c-1.76074 -0.601562 -3.59082 -1.19043 -5.48535 -1.71484l-0.313477 -0.109375
65
+ l-0.435547 -0.108398c-2.18848 -0.614258 -4.4668 -1.19043 -6.80273 -1.70215l-0.851562 -0.185547c-2.36133 -0.512695 -4.78711 -0.979492 -7.27637 -1.38965l-0.473633 -0.0888672l-0.410156 -0.0644531c-2.03516 -0.338867 -4.1084 -0.626953 -6.21387 -0.889648
66
+ l-1.08789 -0.133789c-2.1123 -0.25 -4.2627 -0.473633 -6.46387 -0.65332l-0.486328 -0.0507812l-0.544922 -0.0390625c-2.55957 -0.198242 -5.15137 -0.345703 -7.80762 -0.447266l-0.518555 -0.0263672l-0.665039 -0.0126953
67
+ c-2.15723 -0.0761719 -4.32715 -0.121094 -6.53516 -0.133789l-0.389648 -0.00683594c-1.13965 0 -2.27832 0.00683594 -3.4375 0.0322266c-1.1709 0.0195312 -2.3418 0.0380859 -3.51367 0.0898438l-0.396484 0.0126953
68
+ c-1.8623 0.0634766 -3.71191 0.140625 -5.53613 0.261719l-0.499023 0.0263672l-1.00488 0.0761719c-1.39551 0.102539 -2.77734 0.198242 -4.14746 0.327148l-0.959961 0.0761719l-0.53125 0.0644531c-1.7207 0.160156 -3.41699 0.338867 -5.10059 0.549805
69
+ l-0.268555 0.0263672l-0.825195 0.121094c-1.41504 0.185547 -2.80371 0.383789 -4.17969 0.588867l-0.793945 0.108398l-0.652344 0.115234c-1.70215 0.262695 -3.3916 0.550781 -5.05566 0.876953h-0.0771484l-0.300781 0.0771484
70
+ c-1.65723 0.313477 -3.26367 0.646484 -4.87012 0.998047l-0.716797 0.134766l-0.5 0.12793c-1.77832 0.421875 -3.53223 0.851562 -5.23438 1.31152l-0.40332 0.0898438l-0.505859 0.160156c-2.02246 0.543945 -3.98047 1.12012 -5.86914 1.73438l-0.28125 0.0957031
71
+ l-0.896484 0.307617c-0.792969 0.275391 -1.56152 0.537109 -2.3418 0.8125l-1.36328 0.505859c-0.736328 0.268555 -1.44629 0.556641 -2.17578 0.844727l-0.844727 0.326172l-0.460938 0.211914l-1.38281 0.587891l-1.50977 0.666016l-1.3252 0.639648l-1.40137 0.666016
72
+ l-1.30566 0.678711l-1.29297 0.677734l-1.22852 0.704102l-1.20312 0.710938l-1.16504 0.722656l-1.10742 0.723633l-1.10742 0.774414l-0.998047 0.722656l-1.03711 0.826172l-0.895508 0.722656l-0.947266 0.851562l-0.806641 0.729492l-0.864258 0.882812
73
+ l-0.697266 0.736328l-0.787109 0.927734l-0.608398 0.736328l-0.65918 0.947266l-0.518555 0.736328l-0.569336 0.985352l-0.40332 0.729492l-0.473633 1.0498l-0.300781 0.697266l-0.351562 1.11328l-0.210938 0.666016l-0.25 1.24121l-0.102539 0.543945
74
+ c-0.0830078 0.615234 -0.121094 1.19727 -0.121094 1.81836l-0.435547 50.0029c0 -0.601562 0.0380859 -1.20312 0.12207 -1.81152l0.146484 -0.767578l0.198242 -1.02441l0.269531 -0.870117l0.293945 -0.902344l0.37793 -0.876953l0.383789 -0.889648l0.499023 -0.850586
75
+ l0.511719 -0.876953l0.576172 -0.832031l0.601562 -0.851562l0.671875 -0.8125l0.691406 -0.871094l0.761719 -0.787109l0.8125 -0.825195l0.845703 -0.754883l0.915039 -0.832031l0.93457 -0.743164l1.00391 -0.799805l1.01172 -0.729492l1.08789 -0.774414
76
+ l1.08203 -0.697266l1.18359 -0.761719l1.17773 -0.671875l1.26074 -0.736328l1.26074 -0.665039l1.33105 -0.685547l1.33789 -0.65918l1.4209 -0.665039l1.40723 -0.640625l1.47266 -0.639648l1.26074 -0.499023c0.722656 -0.300781 1.45312 -0.588867 2.20117 -0.864258
77
+ l1.35742 -0.505859c0.754883 -0.261719 1.5293 -0.537109 2.31641 -0.799805l1.20312 -0.40332c1.90137 -0.607422 3.86621 -1.19043 5.8877 -1.74023l0.858398 -0.237305c1.72168 -0.460938 3.4873 -0.902344 5.2793 -1.31152l1.17188 -0.262695
78
+ c1.59961 -0.345703 3.22559 -0.697266 4.87695 -1.01074l0.40918 -0.102539c1.66406 -0.313477 3.36621 -0.601562 5.08789 -0.876953l1.37598 -0.210938c1.4082 -0.199219 2.81641 -0.416016 4.25586 -0.588867l1.03711 -0.134766
79
+ c1.68945 -0.205078 3.39844 -0.390625 5.13867 -0.537109l1.43359 -0.134766c1.39551 -0.12793 2.79688 -0.223633 4.21777 -0.333008l1.46582 -0.0957031c1.83008 -0.115234 3.68652 -0.198242 5.54883 -0.262695c1.29297 -0.0380859 2.5918 -0.0761719 3.91016 -0.102539
80
+ c1.28027 -0.0126953 2.55371 -0.0126953 3.81445 -0.0126953c2.19531 0 4.38379 0.0517578 6.53418 0.115234l1.2041 0.0449219c2.63672 0.102539 5.24707 0.268555 7.80762 0.454102l1.02441 0.0898438c2.18848 0.192383 4.33887 0.40332 6.46387 0.666016
81
+ l1.10059 0.133789c2.09863 0.262695 4.17871 0.556641 6.21387 0.896484l0.774414 0.12793c2.53516 0.428711 4.98633 0.902344 7.37305 1.41406l0.826172 0.185547c2.36133 0.512695 4.63965 1.08203 6.83496 1.69629l0.704102 0.185547
82
+ c1.91309 0.550781 3.75684 1.13281 5.54199 1.73438l0.710938 0.237305c1.75293 0.614258 3.44922 1.26074 5.0752 1.92578l0.875977 0.37793c0.698242 0.293945 1.37012 0.588867 2.03516 0.895508l0.986328 0.448242c0.959961 0.473633 1.90039 0.93457 2.80957 1.41406
83
+ c1.52246 0.806641 2.96289 1.6582 4.28809 2.52246l0.198242 0.12793c1.08789 0.697266 2.08008 1.42676 3.02734 2.16309l0.537109 0.416016c0.851562 0.68457 1.6582 1.37598 2.3877 2.08594l0.300781 0.300781c0.594727 0.595703 1.13867 1.19043 1.66406 1.79883
84
+ l0.441406 0.524414c0.53125 0.678711 1.06836 1.37598 1.49121 2.06738l0.115234 0.15332c0.396484 0.666016 0.735352 1.33789 1.0625 2.00391l0.236328 0.575195c0.288086 0.65332 0.525391 1.33789 0.710938 2.02246l0.0761719 0.230469
85
+ c0.192383 0.78125 0.313477 1.57422 0.390625 2.36816zM342.15 171.053l0.0898438 1.33105l0.43457 -50.0029l-0.0380859 -1.03027l-0.0507812 -0.275391c-0.0644531 -0.787109 -0.199219 -1.58105 -0.397461 -2.36133v-0.0449219l-0.0761719 -0.185547
86
+ c-0.154297 -0.68457 -0.416016 -1.35742 -0.691406 -2.02246l-0.115234 -0.300781l-0.134766 -0.262695c-0.319336 -0.68457 -0.671875 -1.35645 -1.0752 -2.02246l-0.0703125 -0.115234l-0.0253906 -0.0253906c-0.428711 -0.697266 -0.94043 -1.40137 -1.50391 -2.08594
87
+ l-0.15332 -0.211914l-0.275391 -0.300781c-0.505859 -0.594727 -1.05664 -1.19629 -1.64453 -1.77246l-0.224609 -0.255859l-0.102539 -0.0830078c-0.722656 -0.704102 -1.50977 -1.37598 -2.34863 -2.04883l-0.249023 -0.223633l-0.352539 -0.236328
88
+ c-0.93457 -0.723633 -1.90723 -1.44727 -2.96289 -2.125l-0.0771484 -0.0644531l-0.217773 -0.115234c-1.29297 -0.837891 -2.6748 -1.66406 -4.15332 -2.45117l-0.0507812 -0.0380859l-0.262695 -0.12793c-0.826172 -0.435547 -1.68359 -0.864258 -2.56055 -1.28027
89
+ l-0.959961 -0.428711c-0.68457 -0.326172 -1.40137 -0.633789 -2.11816 -0.93457l-0.40332 -0.178711l-0.383789 -0.134766c-1.62598 -0.697266 -3.32129 -1.3252 -5.09473 -1.95215l-0.760742 -0.249023c-1.76074 -0.601562 -3.59082 -1.18457 -5.48535 -1.70898
90
+ l-0.313477 -0.12207l-0.435547 -0.102539c-2.18848 -0.614258 -4.4668 -1.17676 -6.80273 -1.69531l-0.851562 -0.179688c-2.36133 -0.511719 -4.78711 -0.992188 -7.27637 -1.40137l-0.473633 -0.0898438l-0.410156 -0.0507812
91
+ c-2.03516 -0.339844 -4.1084 -0.633789 -6.21387 -0.902344l-1.08789 -0.134766c-2.1123 -0.249023 -4.2627 -0.473633 -6.46387 -0.652344l-0.486328 -0.0517578l-0.544922 -0.0322266c-2.55957 -0.204102 -5.15137 -0.351562 -7.80762 -0.454102l-0.518555 -0.0380859
92
+ l-0.665039 -0.0126953c-2.15723 -0.0644531 -4.32715 -0.12793 -6.53516 -0.12793h-0.389648c-1.13965 0 -2.27832 0 -3.4375 0.0126953c-1.1709 0.0253906 -2.3418 0.0576172 -3.51367 0.0898438l-0.396484 0.0253906
93
+ c-1.8623 0.0634766 -3.71191 0.146484 -5.53613 0.255859l-0.499023 0.0322266l-1.00488 0.0761719c-1.39551 0.0898438 -2.77734 0.198242 -4.14746 0.327148l-0.959961 0.0703125l-0.53125 0.0634766c-1.7207 0.15332 -3.41699 0.345703 -5.10059 0.550781
94
+ l-0.268555 0.0322266l-0.825195 0.115234c-1.41504 0.185547 -2.80371 0.376953 -4.17969 0.587891l-0.793945 0.115234l-0.652344 0.115234c-1.70215 0.262695 -3.3916 0.557617 -5.05566 0.871094l-0.0771484 0.0126953l-0.300781 0.0703125
95
+ c-1.65723 0.313477 -3.26367 0.633789 -4.87012 1.00488l-0.716797 0.133789l-0.5 0.134766c-1.77832 0.40332 -3.53223 0.838867 -5.23438 1.29883l-0.40332 0.109375l-0.505859 0.140625c-2.02246 0.550781 -3.98047 1.12012 -5.86914 1.75391l-0.28125 0.0761719
96
+ l-0.896484 0.307617c-0.792969 0.275391 -1.56152 0.543945 -2.3418 0.825195l-1.36328 0.499023c-0.736328 0.275391 -1.44629 0.557617 -2.17578 0.838867l-0.844727 0.345703l-0.460938 0.192383l-1.38281 0.587891l-1.50977 0.666016l-1.3252 0.639648
97
+ l-1.40137 0.685547l-1.30566 0.665039l-1.29297 0.68457l-1.22852 0.710938l-1.20312 0.697266l-1.16504 0.736328l-1.10742 0.722656l-1.10742 0.761719l-0.998047 0.729492l-1.03711 0.819336l-0.895508 0.723633l-0.947266 0.850586l-0.806641 0.736328
98
+ l-0.864258 0.889648l-0.697266 0.723633l-0.787109 0.927734l-0.608398 0.736328l-0.65918 0.947266l-0.518555 0.735352l-0.569336 0.992188l-0.40332 0.723633l-0.473633 1.04883l-0.300781 0.704102l-0.351562 1.11426l-0.210938 0.665039l-0.25 1.24219
99
+ l-0.102539 0.549805c-0.0830078 0.614258 -0.121094 1.20312 -0.121094 1.81738l-0.435547 50.0098c0 -0.614258 0.0380859 -1.22266 0.12207 -1.82422l0.146484 -0.774414l0.198242 -1.01074l0.269531 -0.864258l0.293945 -0.915039l0.37793 -0.864258l0.383789 -0.889648
100
+ l0.499023 -0.850586l0.511719 -0.883789l0.576172 -0.837891l0.601562 -0.857422l0.671875 -0.813477l0.691406 -0.850586l0.761719 -0.787109l0.8125 -0.838867l0.845703 -0.761719l0.915039 -0.825195l0.93457 -0.736328l1.00391 -0.8125l1.01172 -0.710938
101
+ l1.08789 -0.780273l1.08203 -0.704102l1.18359 -0.749023l1.17773 -0.678711l1.26074 -0.729492l1.26074 -0.665039l1.33105 -0.698242l1.33789 -0.652344l1.4209 -0.671875l1.40723 -0.621094l1.47266 -0.633789l1.26074 -0.511719
102
+ c0.722656 -0.288086 1.45312 -0.576172 2.20117 -0.864258l1.36328 -0.492188c0.755859 -0.288086 1.53027 -0.550781 2.31738 -0.813477l1.20312 -0.402344c1.90039 -0.602539 3.86523 -1.2041 5.8877 -1.75391l0.857422 -0.237305
103
+ c1.72168 -0.459961 3.48828 -0.895508 5.28027 -1.31152l1.1709 -0.25c1.60059 -0.358398 3.22559 -0.697266 4.87695 -1.02344l0.40332 -0.0771484c1.66406 -0.320312 3.36621 -0.594727 5.08789 -0.870117l1.37598 -0.205078
104
+ c1.4082 -0.210938 2.81641 -0.421875 4.25586 -0.608398l1.03711 -0.133789c1.68945 -0.192383 3.39844 -0.390625 5.13867 -0.550781l1.43359 -0.12793c1.39551 -0.12793 2.79688 -0.236328 4.21777 -0.338867l1.46582 -0.0898438
105
+ c1.83008 -0.121094 3.68652 -0.210938 5.54883 -0.275391c1.29297 -0.0380859 2.5918 -0.0830078 3.91016 -0.0957031c1.28027 -0.0253906 2.55371 -0.0253906 3.81445 -0.0253906c2.19531 0 4.38379 0.0507812 6.53418 0.121094l1.2041 0.0644531
106
+ c2.63672 0.0898438 5.24707 0.249023 7.80762 0.448242l1.02441 0.0888672c2.18848 0.192383 4.33887 0.40332 6.46387 0.65332l1.10059 0.133789c2.09863 0.262695 4.17871 0.550781 6.21387 0.883789l0.774414 0.133789c2.53516 0.442383 4.98633 0.902344 7.37305 1.4209
107
+ l0.826172 0.179688c2.36133 0.524414 4.63965 1.10059 6.83496 1.70898l0.704102 0.191406c1.91309 0.538086 3.75684 1.11426 5.54199 1.72852l0.710938 0.243164c1.75293 0.607422 3.44922 1.24805 5.0752 1.91992l0.875977 0.351562
108
+ c0.698242 0.300781 1.37012 0.621094 2.03516 0.915039l0.986328 0.448242c0.959961 0.467773 1.90039 0.93457 2.80957 1.4209c1.52246 0.799805 2.96289 1.64453 4.28809 2.50879l0.198242 0.134766c1.08789 0.704102 2.08008 1.42676 3.02734 2.16895l0.537109 0.410156
109
+ c0.851562 0.665039 1.6582 1.37598 2.3877 2.07324l0.300781 0.313477c0.594727 0.588867 1.13867 1.17773 1.66406 1.79199l0.441406 0.518555c0.53125 0.671875 1.06836 1.38867 1.49121 2.07422l0.115234 0.15918c0.396484 0.666016 0.735352 1.33203 1.0625 2.00391
110
+ l0.236328 0.5625c0.288086 0.671875 0.525391 1.35059 0.710938 2.02246l0.0761719 0.237305c0.192383 0.787109 0.313477 1.57422 0.390625 2.36133zM342.15 242.694l0.0703125 1.31836l0.441406 -50.0156l-0.0380859 -1.03027l-0.0576172 -0.256836
111
+ c-0.0644531 -0.805664 -0.192383 -1.59277 -0.390625 -2.37402v-0.0253906l-0.0761719 -0.185547c-0.160156 -0.68457 -0.410156 -1.35059 -0.698242 -2.0166l-0.108398 -0.306641l-0.140625 -0.275391c-0.313477 -0.678711 -0.671875 -1.35059 -1.0752 -2.01562
112
+ l-0.0644531 -0.109375l-0.0253906 -0.0253906c-0.435547 -0.704102 -0.947266 -1.40137 -1.51074 -2.08008l-0.146484 -0.223633l-0.275391 -0.288086c-0.505859 -0.608398 -1.0625 -1.19727 -1.63867 -1.78613l-0.236328 -0.249023l-0.102539 -0.0898438
113
+ c-0.723633 -0.691406 -1.51074 -1.36914 -2.34961 -2.03516l-0.249023 -0.223633l-0.352539 -0.25c-0.927734 -0.723633 -1.90039 -1.44043 -2.95605 -2.125l-0.0771484 -0.0507812l-0.217773 -0.12793c-1.29297 -0.844727 -2.6748 -1.6582 -4.16016 -2.44531
114
+ l-0.0507812 -0.0380859l-0.262695 -0.134766c-0.825195 -0.428711 -1.67676 -0.850586 -2.55957 -1.28613l-0.954102 -0.416016c-0.69043 -0.320312 -1.40137 -0.633789 -2.11816 -0.93457l-0.40332 -0.185547l-0.390625 -0.133789
115
+ c-1.625 -0.678711 -3.32715 -1.3125 -5.09375 -1.93945l-0.761719 -0.25c-1.75391 -0.601562 -3.59082 -1.17773 -5.49121 -1.71484l-0.300781 -0.102539l-0.441406 -0.115234c-2.18945 -0.614258 -4.46094 -1.19043 -6.80371 -1.71484l-0.844727 -0.154297
116
+ c-2.35547 -0.511719 -4.78711 -0.998047 -7.27637 -1.40137l-0.473633 -0.108398l-0.40332 -0.0517578c-2.04199 -0.326172 -4.11523 -0.620117 -6.2207 -0.889648l-1.08789 -0.12793c-2.1123 -0.261719 -4.2627 -0.486328 -6.46484 -0.665039l-0.486328 -0.0576172
117
+ l-0.543945 -0.0263672c-2.56641 -0.191406 -5.15137 -0.344727 -7.80762 -0.454102l-0.518555 -0.0449219h-0.671875c-2.15723 -0.0761719 -4.32617 -0.115234 -6.53418 -0.12793l-0.383789 -0.00585938c-1.14648 0 -2.28516 0.00585938 -3.44336 0.03125
118
+ c-1.17188 0 -2.34277 0.0390625 -3.51367 0.0771484l-0.397461 0.0253906c-1.8623 0.0644531 -3.71191 0.134766 -5.53516 0.262695l-0.5 0.0253906l-1.00391 0.0703125c-1.39551 0.109375 -2.77832 0.205078 -4.14746 0.333008l-0.959961 0.0771484l-0.53125 0.0634766
119
+ c-1.72168 0.160156 -3.41797 0.339844 -5.10059 0.538086l-0.269531 0.0380859l-0.825195 0.115234c-1.41406 0.179688 -2.80371 0.383789 -4.17969 0.576172l-0.792969 0.121094l-0.65332 0.12207c-1.70215 0.262695 -3.3916 0.550781 -5.05566 0.864258
120
+ l-0.0771484 0.0126953l-0.300781 0.0703125c-1.65723 0.320312 -3.26367 0.652344 -4.87012 1.00488l-0.716797 0.147461l-0.499023 0.114258c-1.7793 0.410156 -3.5332 0.845703 -5.23535 1.3125l-0.40332 0.0957031l-0.505859 0.154297
121
+ c-2.02246 0.537109 -3.98047 1.11328 -5.86816 1.74023l-0.282227 0.0830078l-0.895508 0.313477c-0.793945 0.262695 -1.56152 0.538086 -2.34277 0.813477l-1.36328 0.499023c-0.735352 0.275391 -1.44629 0.563477 -2.17578 0.837891l-0.844727 0.345703
122
+ l-0.460938 0.192383l-1.38184 0.588867l-1.51074 0.671875l-1.3252 0.633789l-1.40137 0.678711l-1.30566 0.665039l-1.29297 0.678711l-1.22852 0.704102l-1.20312 0.704102l-1.16504 0.735352l-1.10742 0.716797l-1.10645 0.774414l-0.999023 0.716797l-1.03613 0.832031
123
+ l-0.896484 0.716797l-0.947266 0.851562l-0.806641 0.735352l-0.863281 0.896484l-0.698242 0.716797l-0.787109 0.93457l-0.607422 0.742188l-0.65918 0.93457l-0.518555 0.736328l-0.569336 0.998047l-0.40332 0.729492l-0.473633 1.04297l-0.300781 0.698242
124
+ l-0.352539 1.11914l-0.210938 0.65332l-0.25 1.24805l-0.102539 0.549805c-0.0830078 0.602539 -0.121094 1.2041 -0.121094 1.81836l-0.37793 43.5645c-0.00585938 0.147461 -0.0576172 0.294922 -0.0576172 0.441406c0 0.134766 0.0517578 0.269531 0.0517578 0.40332
125
+ l-0.0517578 5.60059c0 -0.608398 0.0390625 -1.2168 0.12207 -1.82422l0.147461 -0.774414l0.0888672 -0.448242c3.63574 17.875 40.4102 31.3916 85.3701 30.7012c44.998 -0.691406 81.9131 -15.3857 85.5742 -33.4082c0.12793 0.607422 0.243164 1.20898 0.300781 1.81738
126
+ z" />
127
  <glyph glyph-name="uniF112" unicode="&#xf112;"
128
  d="M368.135 254.745c11.2256 0 20.3135 -9.09375 20.3135 -20.3135v-157.606c0 -11.2256 -9.08789 -20.3193 -20.3008 -20.3193h-94.4131c1.27344 -7.69922 7.61621 -28.666 39.0078 -28.666v-10.0479h-50.4316h-10.7393h-50.4316v10.0479
129
  c31.3984 0 37.7275 20.9727 39.001 28.666h-97.3691c-11.2197 0 -20.3076 9.09375 -20.3076 20.3193v157.606c0 11.2256 9.08789 20.3135 20.3076 20.3135h225.363zM318.489 126.176l30.0742 30.0742l-30.0742 30.0859v-16.1279h-120.902v16.1279l-30.0732 -30.0859
345
  <glyph glyph-name="uniF121" unicode="&#xf121;"
346
  d="M170.238 102.4l85.7617 68.4805l85.1191 -68.4805h-51.8389v-45.4375h-67.1992v45.4375h-51.8428zM371.2 345.6h76.7998v-384h-384v384h76.7998v76.8008h76.7998v-76.8008h76.8008v76.8008h76.7998v-76.8008zM383.357 37.1221v162.558l-49.2754 49.2793h-157.442
347
  l-49.2783 -49.2793v-162.558c0 -7.68066 6.39746 -14.0781 14.0781 -14.0781h228.479c7.67676 0 14.082 6.39746 13.4395 14.0781zM184.959 224.641h142.721l21.123 -21.7617h-185.602z" />
348
+ <glyph glyph-name="uniF113" unicode="&#xf113;"
349
+ d="M318.489 170.215v16.1211l30.0742 -30.0859l-30.0742 -30.0742v16.1094h-120.902v-16.1094l-30.0732 30.0742l30.0732 30.0859v-16.1211h120.902zM371.2 345.6h76.7998v-384h-384v384h76.7998v76.8008h76.7998v-76.8008h76.8008v76.8008h76.7998v-76.8008z
350
+ M388.448 76.8252v0v157.606c0 11.2256 -9.08789 20.3135 -20.3008 20.3135h-225.376c-11.2197 0 -20.3076 -9.09375 -20.3076 -20.3135v-157.606c0 -11.2256 9.08789 -20.3193 20.3076 -20.3193h97.3633c-1.27441 -7.69922 -7.61035 -28.666 -39.002 -28.666v-10.0479
351
+ h50.4316h10.7461h50.4258v10.0479c-31.3984 0 -37.7471 20.9727 -39.002 28.666h94.4004c11.2256 0 20.3135 9.09375 20.3135 20.3193z" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
352
  <glyph glyph-name="uniF11B" unicode="&#xf11b;"
353
  d="M404.666 185.6c4.95996 0 7.57715 -1.06836 7.8457 -2.82227c0 -0.524414 -0.93457 -2.98828 -2.79688 -7.0459l-56.0508 -111.731h-226.374l57.3184 112.378c1.94531 3.87207 3.83984 5.97754 5.69531 7.07812c1.8623 1.08789 5.22949 2.14355 10.1318 2.14355h204.23z
354
  M175.584 203.872c-2.18848 -1.24805 -6.8418 -5.22852 -10.8027 -12.9092l-55.9814 -105.549v133.626c0 3.96191 2.21484 7.41113 3.52637 8.64648c1.31836 1.22266 5.55566 2.71387 9.60645 2.71387h7.85254c5.65137 0 9.29297 -0.179688 10.9385 0.920898
embedded/onthego-resources/onthegosystems-icons/fonts/{onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.ttf → onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.ttf} RENAMED
Binary file
embedded/onthego-resources/onthegosystems-icons/fonts/onthegosystems-icons_65c5f624e7b3a7731aeb86b34dab9f65.woff ADDED
Binary file
embedded/onthego-resources/onthegosystems-icons/fonts/onthegosystems-icons_ea0d501b723f7b75d3147cf08210b5cf.woff DELETED
Binary file
embedded/onthego-resources/onthegosystems-icons/vectors/conditional-alert.svg ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
4
+ <svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
5
+ x="0px" y="0px" width="104.5px" height="91.5px" viewBox="0 0 104.5 91.5" xml:space="preserve">
6
+ <g>
7
+ <polygon fill="#939393" points="53.202,80.121 10.355,80.121 31.778,44.048 53.202,8.121 74.626,44.12 96.049,80.121 "/>
8
+ <g>
9
+ <path fill="#FFFFFF" d="M58.09,58.538h-9.567l-1.479-26.446h12.523L58.09,58.538z M47.16,68.323c0-1.696,0.522-3.014,1.566-3.957
10
+ c1.043-0.941,2.56-1.412,4.551-1.412c1.972,0,3.465,0.47,4.479,1.412s1.522,2.26,1.522,3.957c0,1.677-0.526,2.987-1.58,3.927
11
+ c-1.054,0.941-2.527,1.412-4.421,1.412c-1.913,0-3.411-0.47-4.494-1.412C47.701,71.31,47.16,70,47.16,68.323z"/>
12
+ </g>
13
+ </g>
14
+ </svg>
embedded/onthego-resources/onthegosystems-icons/vectors/conditional-if.svg ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
4
+ <svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
5
+ x="0px" y="0px" width="90.5px" height="85.5px" viewBox="0 0 90.5 85.5" xml:space="preserve">
6
+ <g>
7
+ <circle fill="#939393" cx="46" cy="43" r="36"/>
8
+ <g>
9
+ <path fill="#FFFFFF" d="M40.655,33.135l-5.048,17.5c-0.266,1-0.397,1.663-0.397,1.989c0,0.164,0.071,0.327,0.214,0.49
10
+ c0.143,0.164,0.296,0.245,0.459,0.245c0.285,0,0.562-0.122,0.826-0.367c0.754-0.612,1.642-1.713,2.662-3.304l0.856,0.489
11
+ c-2.488,4.325-5.13,6.487-7.925,6.487c-1.061,0-1.907-0.301-2.539-0.903c-0.632-0.601-0.948-1.36-0.948-2.279
12
+ c0-0.612,0.142-1.388,0.429-2.325l3.427-11.78c0.326-1.121,0.489-1.968,0.489-2.539c0-0.367-0.158-0.693-0.474-0.979
13
+ c-0.316-0.285-0.74-0.429-1.27-0.429c-0.265,0-0.561,0.011-0.887,0.031l0.306-0.979l8.354-1.346L40.655,33.135L40.655,33.135z
14
+ M39.125,21.784c1.021,0,1.882,0.357,2.585,1.071c0.704,0.714,1.056,1.571,1.056,2.57c0,1-0.356,1.851-1.07,2.555
15
+ c-0.714,0.703-1.571,1.055-2.57,1.055c-0.979,0-1.82-0.352-2.524-1.055c-0.703-0.704-1.055-1.555-1.055-2.555
16
+ c0-0.999,0.347-1.856,1.04-2.57S38.125,21.784,39.125,21.784z"/>
17
+ <path fill="#FFFFFF" d="M55.004,36.684l-2.876,11.381c-1.346,5.386-2.657,9.281-3.932,11.688
18
+ c-1.275,2.407-2.774,4.191-4.497,5.354c-1.725,1.163-3.688,1.743-5.891,1.743c-1.406,0-2.437-0.271-3.09-0.811
19
+ c-0.652-0.541-0.979-1.168-0.979-1.882c0-0.673,0.271-1.254,0.811-1.744c0.541-0.49,1.26-0.735,2.157-0.735
20
+ c0.734,0,1.296,0.188,1.683,0.566c0.389,0.377,0.581,0.852,0.581,1.423c0,0.53-0.122,0.923-0.367,1.178
21
+ c-0.244,0.255-0.366,0.423-0.366,0.505l0.122,0.153c0.102,0.081,0.225,0.122,0.366,0.122c0.49,0,0.908-0.153,1.255-0.459
22
+ c0.856-0.775,1.5-1.713,1.928-2.814c0.306-0.756,0.877-2.743,1.713-5.967l5.018-19.703h-3.427l0.826-2.876
23
+ c1.224,0.021,2.116-0.132,2.677-0.459c0.562-0.326,1.148-1.06,1.759-2.203c1.815-3.345,3.723-5.742,5.723-7.19
24
+ c1.999-1.448,4.231-2.172,6.699-2.172c1.571,0,2.714,0.306,3.428,0.918c0.713,0.612,1.071,1.407,1.071,2.387
25
+ c0,0.836-0.235,1.504-0.703,2.004c-0.471,0.5-1.062,0.75-1.774,0.75c-0.653,0-1.193-0.204-1.622-0.612
26
+ c-0.429-0.408-0.642-0.897-0.642-1.468c0-0.408,0.138-0.842,0.413-1.3c0.274-0.458,0.413-0.77,0.413-0.933
27
+ c0-0.184-0.062-0.331-0.185-0.444c-0.122-0.112-0.286-0.168-0.49-0.168c-0.979,0-1.979,0.592-2.998,1.774
28
+ c-1.673,1.938-3.019,4.977-4.039,9.117h3.58l-0.855,2.876H55.004L55.004,36.684z"/>
29
+ </g>
30
+ </g>
31
+ </svg>
embedded/plugin.php CHANGED
@@ -5,7 +5,7 @@
5
  Description: Define custom post types, custom taxonomies and custom fields.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com
8
- Version: 1.7.11
9
  */
10
  /**
11
  *
5
  Description: Define custom post types, custom taxonomies and custom fields.
6
  Author: OnTheGoSystems
7
  Author URI: http://www.onthegosystems.com
8
+ Version: 1.8
9
  */
10
  /**
11
  *
embedded/readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: CMS, custom field, custom fields, custom post type, custom post types, fie
5
  License: GPLv2
6
  Requires at least: 3.4
7
  Tested up to: 4.2.4
8
- Stable tag: 1.7.11
9
 
10
  The Embedded version lets you create custom types, taxonomies and fields for your theme or plugin, without requiring any plugin.
11
 
5
  License: GPLv2
6
  Requires at least: 3.4
7
  Tested up to: 4.2.4
8
+ Stable tag: 1.8
9
 
10
  The Embedded version lets you create custom types, taxonomies and fields for your theme or plugin, without requiring any plugin.
11
 
embedded/resources/css/basic.css CHANGED
@@ -59,9 +59,14 @@ NO DUPLICATES
59
  .wpcf-form-fieldset .collapsed {
60
  display: none;
61
  }
62
- .wpcf-form-item {
 
63
  margin-bottom: 25px;
64
  }
 
 
 
 
65
  .wpcf-form-fieldset .wpcf-form-item:first-child {
66
  margin-top: 5px;
67
  }
@@ -183,7 +188,8 @@ input.wpcf-form-error {
183
  #wpcf-table-group_taxonomies {
184
  width: 200px;
185
  }
186
- #wpcf-form-fields-main {
 
187
  width: 400px;
188
  }
189
 
@@ -249,6 +255,27 @@ input.wpcf-form-error {
249
  #wpcf-types-form-name-table tbody tr td:first-child {
250
  text-align: right;
251
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
252
  #wpcf-types-form-name-table tbody tr:first-child td {
253
  padding-top: 10px;
254
  }
@@ -421,7 +448,8 @@ input.wpcf-form-error {
421
  border: 0 !important;
422
  }
423
 
424
- .modman-inline-table {
 
425
  margin-top: 20px;
426
  }
427
  .wpcf-pagination-top {
@@ -626,3 +654,46 @@ input.wpcf-form-error {
626
  font-size: 1.5em;
627
  }
628
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  .wpcf-form-fieldset .collapsed {
60
  display: none;
61
  }
62
+ .wpcf-form-item
63
+ {
64
  margin-bottom: 25px;
65
  }
66
+ .form-table .wpcf-form-item
67
+ {
68
+ margin-bottom: .25em;
69
+ }
70
  .wpcf-form-fieldset .wpcf-form-item:first-child {
71
  margin-top: 5px;
72
  }
188
  #wpcf-table-group_taxonomies {
189
  width: 200px;
190
  }
191
+ .wpcf-form-fields-main
192
+ {
193
  width: 400px;
194
  }
195
 
255
  #wpcf-types-form-name-table tbody tr td:first-child {
256
  text-align: right;
257
  }
258
+ #wpcf-types-form-name-table tbody tr:first-child td
259
+ {
260
+ padding-top: 10px;
261
+ }
262
+ #wpcf-types-form-name-table tbody td:first-child
263
+ {
264
+ min-width: 200px;
265
+ width: 20%;
266
+ }
267
+ .wpcf-types-form-table td:first-child
268
+ {
269
+ width: 20%;
270
+ max-width: 300px;
271
+ min-width: 100px;
272
+ }
273
+
274
+ .wpcf-types-form #custom_fields .menu-item-handle
275
+ {
276
+ padding: 10px 15px;
277
+ }
278
+
279
  #wpcf-types-form-name-table tbody tr:first-child td {
280
  padding-top: 10px;
281
  }
448
  border: 0 !important;
449
  }
450
 
451
+ .modman
452
+ {
453
  margin-top: 20px;
454
  }
455
  .wpcf-pagination-top {
654
  font-size: 1.5em;
655
  }
656
 
657
+ #poststuff .dashicons-no:before
658
+ {
659
+ color: #f20;
660
+ }
661
+
662
+ #poststuff .dashicons-yes:before
663
+ {
664
+ color: green;
665
+ }
666
+
667
+ .wpcf-types-read-only #relationship p
668
+ ,.wpcf-types-read-only #relationship a
669
+ ,.wpcf-types-read-only .ui-draggable
670
+ ,.wpcf-types-read-only .wpcf-fields-checkboxes-draggable
671
+ ,.wpcf-types-read-only .wpcf-fields-form-move-field
672
+ ,.wpcf-types-read-only .wpcf-form-fields-delete
673
+ ,.wpcf-types-read-only #conditional-logic-button-open
674
+ {
675
+ display: none;
676
+ }
677
+
678
+ .wpcf-types-read-only dl
679
+ {
680
+ border: 1px solid #e5e5e5;
681
+ background-color: #fff;
682
+ padding: 10px;
683
+ }
684
+
685
+ #types-tools
686
+ {
687
+ margin-top: 3em;
688
+ }
689
+
690
+ #cf-filter
691
+ ,#usermeta-filter
692
+ {
693
+ margin-bottom: 3em;
694
+ }
695
+
696
+ #tab-panel-wpcf dt
697
+ {
698
+ font-weight: bold;
699
+ }
embedded/resources/css/post-relationship.css CHANGED
@@ -21,6 +21,23 @@
21
  #wpcf-post-relationship .wpcf-pr-has-entries {
22
  margin: 0;
23
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  .wpcf-pr-sort-DESC,
25
  .wpcf-pr-sort-ASC {
26
  width: 7px;
21
  #wpcf-post-relationship .wpcf-pr-has-entries {
22
  margin: 0;
23
  }
24
+
25
+ #wpcf-post-relationship .belongs p
26
+ {
27
+ margin-bottom: 5px;
28
+ }
29
+
30
+ #wpcf-post-relationship .belongs .wpcf-form-item
31
+ {
32
+ margin-bottom: .5em;
33
+ }
34
+
35
+ #wpcf-post-relationship .belongs .form-item
36
+ {
37
+ padding-top: .5em;
38
+ max-width: 300px;
39
+ }
40
+
41
  .wpcf-pr-sort-DESC,
42
  .wpcf-pr-sort-ASC {
43
  width: 7px;
embedded/resources/js/basic.js CHANGED
@@ -122,7 +122,14 @@ jQuery(document).ready(function(){
122
  });
123
  });
124
  jQuery('.wpcf-forms-set-legend').live('keyup', function(){
125
- jQuery(this).parents('fieldset').find('.wpcf-legend-update').html(jQuery(this).val());
 
 
 
 
 
 
 
126
  });
127
  jQuery('.wpcf-form-groups-radio-update-title-display-value').live('keyup', function(){
128
  jQuery('#'+jQuery(this).attr('id')+'-display-value').prev('label').html(jQuery(this).val());
@@ -292,15 +299,9 @@ jQuery(document).ready(function(){
292
  jQuery('#'+updateAdd).append(data.output);
293
  }
294
  }
295
- if (typeof data.execute != 'undefined'
296
- && (typeof data.wpcf_nonce_ajax_callback != 'undefined'
297
- && data.wpcf_nonce_ajax_callback == wpcf_nonce_ajax_callback)) {
298
- eval(data.execute);
299
- }
300
  if (typeof data.status != 'undefined' ) {
301
  if ( 'inactive' == data.status ) {
302
  thisObjectTR.addClass('status-inactive');
303
-
304
  } else {
305
  thisObjectTR.removeClass('status-inactive');
306
  }
@@ -308,8 +309,26 @@ jQuery(document).ready(function(){
308
  if (typeof data.status_label != 'undefined' ) {
309
  jQuery('td.status', thisObjectTR).html(data.status_label);
310
  }
311
- if (typeof data.execute != 'undefined') {
312
- eval(data.execute);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
  }
314
  }
315
  if (callback != false) {
122
  });
123
  });
124
  jQuery('.wpcf-forms-set-legend').live('keyup', function(){
125
+ var val = jQuery(this).val();
126
+ if ( val ) {
127
+ val = val.replace(/</, '&lt;');
128
+ val = val.replace(/>/, '&gt;');
129
+ val = val.replace(/'/, '&#39;');
130
+ val = val.replace(/"/, '&quot;');
131
+ }
132
+ jQuery(this).parents('fieldset').find('.wpcf-legend-update').html(val);
133
  });
134
  jQuery('.wpcf-form-groups-radio-update-title-display-value').live('keyup', function(){
135
  jQuery('#'+jQuery(this).attr('id')+'-display-value').prev('label').html(jQuery(this).val());
299
  jQuery('#'+updateAdd).append(data.output);
300
  }
301
  }
 
 
 
 
 
302
  if (typeof data.status != 'undefined' ) {
303
  if ( 'inactive' == data.status ) {
304
  thisObjectTR.addClass('status-inactive');
 
305
  } else {
306
  thisObjectTR.removeClass('status-inactive');
307
  }
309
  if (typeof data.status_label != 'undefined' ) {
310
  jQuery('td.status', thisObjectTR).html(data.status_label);
311
  }
312
+ if (
313
+ typeof data.execute != 'undefined'
314
+ && (
315
+ typeof data.wpcf_nonce_ajax_callback != 'undefined'
316
+ && data.wpcf_nonce_ajax_callback == wpcf_nonce_ajax_callback
317
+ )
318
+ ) {
319
+ switch(data.execute) {
320
+ case 'reload':
321
+ location.reload();
322
+ break;
323
+ case 'append':
324
+ if (
325
+ typeof data.append_target != 'undefined'
326
+ && typeof data.append_value != 'undefined'
327
+ ) {
328
+ jQuery(data.append_target).append(data.append_value);
329
+ }
330
+ break;
331
+ }
332
  }
333
  }
334
  if (callback != false) {
embedded/resources/js/conditional.js CHANGED
@@ -3,52 +3,6 @@
3
  * (marked with .wpcf-conditional-trigger
4
  */
5
  function wpcfConditionalInit(selector) {
6
- selector = typeof selector !== 'undefined' ? selector+' ' : '';
7
- var triggered = false;
8
- jQuery(selector+'.wpcf-conditional-check-trigger').each(function(){
9
-
10
- // If triggered from relationship table send just row
11
- if (jQuery(this).parents('.wpcf-pr-table-wrapper').length > -1) {
12
- var inputs = jQuery(this).parents('tr').find(':input');
13
- } else {
14
- var inputs = jQuery(this).parents('.inside').find(':input');
15
- }
16
-
17
- // Already binded!
18
- if (jQuery(this).hasClass('wpcf-cd-binded')) {
19
- return false;
20
- }
21
-
22
- // Mark as binded
23
- jQuery(this).addClass('wpcf-cd-binded');
24
-
25
- // Bind actions according to form element type
26
- if (jQuery(this).hasClass('radio')
27
- || jQuery(this).hasClass('checkbox')) {
28
- jQuery(this).bind('click', function(){
29
- wpcfConditionalVerify(jQuery(this), jQuery(this).attr('name'), jQuery(this).val());
30
- });
31
- } else if (jQuery(this).hasClass('select')) {
32
- jQuery(this).bind('change', function(){
33
- wpcfConditionalVerify(jQuery(this), jQuery(this).attr('name'), jQuery(this).val());
34
- });
35
- } else if (jQuery(this).hasClass('wpcf-datepicker')) {
36
- jQuery(this).bind('wpcfDateBlur', function(){
37
- wpcfConditionalVerify(jQuery(this), jQuery(this).attr('name'), jQuery(this).val());
38
- });
39
- } else {
40
- jQuery(this).bind('blur', function(){
41
- wpcfConditionalVerify(jQuery(this), jQuery(this).attr('name'), jQuery(this).val());
42
- });
43
- }
44
- /*
45
- * Trigger initial check only once
46
- */
47
- if (triggered == false) {
48
- wpcfConditionalVerify(jQuery(this), jQuery(this).attr('name'), jQuery(this).val());
49
- triggered = true;
50
- }
51
- });
52
  /**
53
  * and bind to logic switcher
54
  */
@@ -84,74 +38,6 @@ function wpcfConditionalLogicButton(button, changeState)
84
  wpcfConditionalLogic(el);
85
  }
86
 
87
- function wpcfConditionalVerify(object, name, value) {
88
-
89
- /*
90
- *
91
- * Skip post relationship entries
92
- * TODO Obsolete - all fields on screen processed
93
- */
94
- if (object.hasClass('wpcf-pr-binded')) {
95
- return false;
96
- }
97
-
98
- /*
99
- * Define Form
100
- *
101
- * Fields can depend on fields from other meta-groups.
102
- * So we should submit whole #post form without #_wpnonce
103
- */
104
- // var form = object.parents('.postbox').find(':input');
105
- var form = jQuery('#post').find(':input').not('#_wpnonce');
106
-
107
- // Get group slug
108
- var group = object.parents('.postbox').attr('id').substr(11);
109
-
110
- // If triggered from relationship table send just row
111
- if (object.parents('.wpcf-pr-table-wrapper').length > 0) {
112
- form = object.parents('tr').find(':input');
113
- group = 'relationship';
114
- }
115
-
116
- // Check if form is found
117
- if (form.length > 0) {
118
-
119
- // Do AJAX call
120
- /*
121
- *
122
- *
123
- * AJAX should return JSON.execute JS script.
124
- * TODO Review safety
125
- */
126
- jQuery.ajax({
127
- url: ajaxurl,
128
- type: 'post',
129
- dataType: 'json',
130
- data: form.serialize()+'&wpcf_group='+group+'&wpcf_main_post_id='+jQuery('#post_ID').val()+'&action=wpcf_ajax&wpcf_action=cd_verify&_wpnonce='+wpcfConditionalVerify_nonce,
131
- cache: false,
132
- beforeSend: function() {
133
- typesSpinner.show(object);
134
- },
135
- success: function(data) {
136
- if (data != null) {
137
-
138
- // See if data.execute exists and eval() it
139
- // TODO Review safety
140
- if (typeof data.execute != 'undefined'
141
- && (typeof data.wpcf_nonce_ajax_callback != 'undefined'
142
- && data.wpcf_nonce_ajax_callback == wpcf_nonce_ajax_callback)) {
143
- eval(data.execute);
144
- }
145
- }
146
- typesSpinner.hide(object);
147
- if (typeof typesValidation != 'undefined') {
148
- typesValidation.setRules();
149
- }
150
- }
151
- });
152
- }
153
- }
154
-
155
  /**
156
  * Disables 'Add Condition' field.
157
  */
@@ -161,36 +47,6 @@ function wpcfDisableAddCondition(id) {
161
  .removeClass('wpcf-ajax-link').attr('onclick', '');
162
  }
163
 
164
- /**
165
- * Checks if group is valid
166
- */
167
- function wpcfCdGroupVerify(object, group_id) {
168
- var form = jQuery('#post');
169
- jQuery.ajax({
170
- url: ajaxurl,
171
- type: 'post',
172
- dataType: 'json',
173
- data: form.serialize()+'&group_id='+group_id+'&action=wpcf_ajax&wpcf_action=cd_group_verify&_wpnonce='+window.wpcfConditionalVerifyGroup,
174
- cache: false,
175
- beforeSend: function() {
176
- typesSpinner.show(object);
177
- },
178
- success: function(data) {
179
- if (data != null) {
180
- if (typeof data.execute != 'undefined'
181
- && (typeof data.wpcf_nonce_ajax_callback != 'undefined'
182
- && data.wpcf_nonce_ajax_callback == wpcf_nonce_ajax_callback)) {
183
- eval(data.execute);
184
- }
185
- }
186
- typesSpinner.hide(object);
187
- if (typeof typesValidation != 'undefined') {
188
- typesValidation.setRules();
189
- }
190
- }
191
- });
192
- }
193
-
194
  /**
195
  * Trigger JS
196
  * TODO Check if obsolete
3
  * (marked with .wpcf-conditional-trigger
4
  */
5
  function wpcfConditionalInit(selector) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  /**
7
  * and bind to logic switcher
8
  */
38
  wpcfConditionalLogic(el);
39
  }
40
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
  /**
42
  * Disables 'Add Condition' field.
43
  */
47
  .removeClass('wpcf-ajax-link').attr('onclick', '');
48
  }
49
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  /**
51
  * Trigger JS
52
  * TODO Check if obsolete
embedded/resources/js/custom-fields-form-filter.js CHANGED
@@ -130,7 +130,7 @@ function wpcfFilterEditClick(object, edit, title, title_not_empty, title_empty)
130
 
131
  if (CSSLayoutEditor == ''){
132
  jQuery("#wpcf-update-preview-div").resizable({});
133
- document.getElementById("wpcf-form-groups-admin-html-preview").innerHTML = wpcfEditMode;
134
  CSSLayoutEditor = CodeMirror.fromTextArea(document.getElementById("wpcf-form-groups-css-fields-editor"), {mode: "css", tabMode: "indent",
135
  lineWrapping: true, lineNumbers: true});
136
  HTMMLLayoutEditor = CodeMirror.fromTextArea(document.getElementById("wpcf-form-groups-admin-html-preview"), {mode: "text/html", tabMode: "indent",
@@ -166,10 +166,10 @@ function wpcfFilterEditClick(object, edit, title, title_not_empty, title_empty)
166
 
167
  function changePreviewHtml(mode){
168
  if (mode == 'readonly'){
169
- HTMMLLayoutEditor.setValue(wpcfReadOnly);
170
  }
171
  else{
172
- HTMMLLayoutEditor.setValue(wpcfEditMode);
173
  }
174
  HTMMLLayoutEditor.refresh();
175
  wpcfPreviewHtml();
@@ -436,7 +436,7 @@ function wpcfFilterCancelClick(object, edit, title, title_not_empty, title_empty
436
  else if (edit == 'admin_styles') {
437
  jQuery("#wpcf-admin-styles-box").css({width:'400px','border-color':'#dfdfdf','box-shadow':'none','z-index':'0'});
438
  jQuery('html, body').animate({scrollTop:jQuery('#wpcf-admin-styles-box').position().top}, 'fast');
439
- CSSLayoutEditor.setValue(wpcfDefaultCss);
440
  toggle.slideUp();
441
  }
442
 
130
 
131
  if (CSSLayoutEditor == ''){
132
  jQuery("#wpcf-update-preview-div").resizable({});
133
+ document.getElementById("wpcf-form-groups-admin-html-preview").innerHTML = typesBase64.decode( wpcfEditMode );
134
  CSSLayoutEditor = CodeMirror.fromTextArea(document.getElementById("wpcf-form-groups-css-fields-editor"), {mode: "css", tabMode: "indent",
135
  lineWrapping: true, lineNumbers: true});
136
  HTMMLLayoutEditor = CodeMirror.fromTextArea(document.getElementById("wpcf-form-groups-admin-html-preview"), {mode: "text/html", tabMode: "indent",
166
 
167
  function changePreviewHtml(mode){
168
  if (mode == 'readonly'){
169
+ HTMMLLayoutEditor.setValue( typesBase64.decode( wpcfReadOnly) );
170
  }
171
  else{
172
+ HTMMLLayoutEditor.setValue( typesBase64.decode( wpcfEditMode ) );
173
  }
174
  HTMMLLayoutEditor.refresh();
175
  wpcfPreviewHtml();
436
  else if (edit == 'admin_styles') {
437
  jQuery("#wpcf-admin-styles-box").css({width:'400px','border-color':'#dfdfdf','box-shadow':'none','z-index':'0'});
438
  jQuery('html, body').animate({scrollTop:jQuery('#wpcf-admin-styles-box').position().top}, 'fast');
439
+ CSSLayoutEditor.setValue( typesBase64.decode(wpcfDefaultCss) );
440
  toggle.slideUp();
441
  }
442
 
embedded/resources/js/post-relationship.js CHANGED
@@ -60,26 +60,6 @@ var tChildTable = (function($) {
60
  var this_id = $(this).attr('id'), catAddBefore, catAddAfter, taxonomy, settingName, typesID;
61
  taxonomy = $(this).data('types-reltax');
62
  typesID = $(this).attr('id');
63
- // settingName = taxonomy + '_tab';
64
- // if (taxonomy == 'category')
65
- // settingName = 'cats';
66
-
67
- // Types: TABS (disabled)
68
- // TODO: move to jQuery 1.3+, support for multiple hierarchical taxonomies, see wp-lists.js
69
- // $('a', '#' + taxonomy + '-tabs').click(function() {
70
- // var t = $(this).attr('href');
71
- // $(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
72
- // $('#' + taxonomy + '-tabs').siblings('.tabs-panel').hide();
73
- // $(t).show();
74
- // if ('#' + taxonomy + '-all' == t)
75
- // deleteUserSetting(settingName);
76
- // else
77
- // setUserSetting(settingName, 'pop');
78
- // return false;
79
- // });
80
-
81
- // if (getUserSetting(settingName))
82
- // $('a[href="#' + taxonomy + '-pop"]', '#' + taxonomy + '-tabs').click();
83
 
84
  // Ajax Cat
85
  $('#new' + typesID).one('focus', function() {
@@ -140,8 +120,6 @@ var tChildTable = (function($) {
140
  }
141
  }(jQuery));
142
 
143
-
144
-
145
  /*
146
  * Non-hierarchical taxonomies form handling on post edit screen.
147
  */
@@ -180,10 +158,11 @@ var tChildTable = (function($) {
180
  tagchecklist = $('.tagchecklist', el),
181
  id = $(el).attr('id'),
182
  current_tags, disabled,
183
- comma = postL10n.comma || window.tagsBoxL10n.tagDelimiter;
184
 
185
- if (!thetags.length)
186
  return;
 
187
 
188
  disabled = thetags.prop('disabled');
189
 
@@ -195,8 +174,9 @@ var tChildTable = (function($) {
195
 
196
  val = $.trim(val);
197
 
198
- if (!val)
199
  return;
 
200
 
201
  // Create a new span, and ensure the text is properly escaped.
202
  span = $('<span />').text(val);
@@ -230,20 +210,23 @@ var tChildTable = (function($) {
230
  tags.val(newtags);
231
  this.quickClicks(el);
232
 
233
- if (!a)
234
  newtag.val('');
235
- if ('undefined' == typeof(f))
 
 
236
  newtag.focus();
 
237
 
238
  return false;
239
  },
240
  get: function(id) {
241
- // var tax = id.substr(id.indexOf('-')+1);
242
  var tax = $('#' + id).data('types-tax');
243
 
244
  $.post(ajaxurl, {'action': 'get-tagcloud', 'tax': tax}, function(r, stat) {
245
- if (0 == r || 'success' != stat)
246
  r = wpAjax.broken;
 
247
 
248
  r = $('<p id="tagcloud-' + id + '" class="the-tagcloud">' + r + '</p>');
249
  $('a', r).click(function() {
@@ -286,9 +269,8 @@ var tChildTable = (function($) {
286
  return false;
287
  }
288
  }).each(function() {
289
- // var tax = $(this).closest('div.tagsdiv').attr('id');
290
  var tax = $(this).data('types-tax'),
291
- comma = postL10n.comma || window.tagsBoxL10n.tagDelimiter;
292
  $(this).suggest(ajaxurl + '?action=ajax-tag-search&tax=' + tax, {delay: 500, minchars: 2, multiple: true, multipleSep: comma + ' '});
293
  });
294
 
@@ -316,12 +298,8 @@ jQuery(document).ready(function($) {
316
  tChildTable.init();
317
  });
318
 
319
-
320
-
321
-
322
-
323
  jQuery(document).ready(function($) {
324
-
325
  window.wpcf_pr_edited = false;
326
  // Mark as edited field
327
  $('#wpcf-post-relationship table').on('click', ':input', function() {
@@ -389,9 +367,8 @@ jQuery(document).ready(function($) {
389
  }
390
  jQuery(this).fadeOut().next().slideDown();
391
  });
392
- /*
393
- *
394
- *
395
  * POST EDIT SCREEN
396
  */
397
  $('#wpcf-post-relationship').on('click', '.js-types-add-child', function() {
@@ -673,6 +650,13 @@ jQuery(document).ready(function($) {
673
  if ( 'function' == typeof bind_colorbox_to_thumbnail_preview ) {
674
  bind_colorbox_to_thumbnail_preview();
675
  }
 
 
 
 
 
 
 
676
  }
677
  }
678
  });
@@ -743,12 +727,71 @@ jQuery(document).ready(function($) {
743
  if ( 'function' == typeof bind_colorbox_to_thumbnail_preview ) {
744
  bind_colorbox_to_thumbnail_preview();
745
  }
 
 
 
 
 
 
 
746
  }
747
  }
748
  });
749
  return false;
750
  });
751
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
752
  // We need to hide the _wpcf_belongs_xxxx_id field for WPML.
753
 
754
  jQuery('#icl_mcs_details table tbody tr').each(function() {
@@ -838,3 +881,92 @@ function wpcfRelationshipInit(selector, context) {
838
  });
839
  });
840
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
60
  var this_id = $(this).attr('id'), catAddBefore, catAddAfter, taxonomy, settingName, typesID;
61
  taxonomy = $(this).data('types-reltax');
62
  typesID = $(this).attr('id');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
64
  // Ajax Cat
65
  $('#new' + typesID).one('focus', function() {
120
  }
121
  }(jQuery));
122
 
 
 
123
  /*
124
  * Non-hierarchical taxonomies form handling on post edit screen.
125
  */
158
  tagchecklist = $('.tagchecklist', el),
159
  id = $(el).attr('id'),
160
  current_tags, disabled,
161
+ comma = postL10n.comma || window.tagsBoxL10n.tagDelimiter;
162
 
163
+ if (!thetags.length) {
164
  return;
165
+ }
166
 
167
  disabled = thetags.prop('disabled');
168
 
174
 
175
  val = $.trim(val);
176
 
177
+ if (!val) {
178
  return;
179
+ }
180
 
181
  // Create a new span, and ensure the text is properly escaped.
182
  span = $('<span />').text(val);
210
  tags.val(newtags);
211
  this.quickClicks(el);
212
 
213
+ if (!a) {
214
  newtag.val('');
215
+ }
216
+
217
+ if ('undefined' == typeof(f)) {
218
  newtag.focus();
219
+ }
220
 
221
  return false;
222
  },
223
  get: function(id) {
 
224
  var tax = $('#' + id).data('types-tax');
225
 
226
  $.post(ajaxurl, {'action': 'get-tagcloud', 'tax': tax}, function(r, stat) {
227
+ if (0 == r || 'success' != stat) {
228
  r = wpAjax.broken;
229
+ }
230
 
231
  r = $('<p id="tagcloud-' + id + '" class="the-tagcloud">' + r + '</p>');
232
  $('a', r).click(function() {
269
  return false;
270
  }
271
  }).each(function() {
 
272
  var tax = $(this).data('types-tax'),
273
+ comma = postL10n.comma || window.tagsBoxL10n.tagDelimiter;
274
  $(this).suggest(ajaxurl + '?action=ajax-tag-search&tax=' + tax, {delay: 500, minchars: 2, multiple: true, multipleSep: comma + ' '});
275
  });
276
 
298
  tChildTable.init();
299
  });
300
 
 
 
 
 
301
  jQuery(document).ready(function($) {
302
+ var frame_relationship = [];
303
  window.wpcf_pr_edited = false;
304
  // Mark as edited field
305
  $('#wpcf-post-relationship table').on('click', ':input', function() {
367
  }
368
  jQuery(this).fadeOut().next().slideDown();
369
  });
370
+
371
+ /**
 
372
  * POST EDIT SCREEN
373
  */
374
  $('#wpcf-post-relationship').on('click', '.js-types-add-child', function() {
650
  if ( 'function' == typeof bind_colorbox_to_thumbnail_preview ) {
651
  bind_colorbox_to_thumbnail_preview();
652
  }
653
+ /**
654
+ * show errors
655
+ */
656
+ $('#wpcf-post-relationship div.message').detach();
657
+ if ('undefined' != typeof data.errors && 0 < data.errors.length ) {
658
+ $('#wpcf-post-relationship h3.hndle').after(data.errors);
659
+ }
660
  }
661
  }
662
  });
727
  if ( 'function' == typeof bind_colorbox_to_thumbnail_preview ) {
728
  bind_colorbox_to_thumbnail_preview();
729
  }
730
+ /**
731
+ * show errors
732
+ */
733
+ $('#wpcf-post-relationship div.message').detach();
734
+ if ('undefined' != typeof data.errors && 0 < data.errors.length ) {
735
+ $('#wpcf-post-relationship h3.hndle').after(data.errors);
736
+ }
737
  }
738
  }
739
  });
740
  return false;
741
  });
742
 
743
+ /**
744
+ * feature image
745
+ */
746
+ $('#wpcf-post-relationship').on('click', '.feature-image', function(event) {
747
+ var $el = $(this);
748
+ var $data = $el.data();
749
+ var $id = $el.attr('id');
750
+ if ( 0 == $data.value ) {
751
+ if ( event ) {
752
+ event.preventDefault();
753
+ }
754
+ // If the media frame already exists, reopen it.
755
+ if ( frame_relationship[$id] ) {
756
+ frame_relationship[$id].open();
757
+ return;
758
+ }
759
+ // Create the media frame.
760
+ frame_relationship[$id] = wp.media.frames.customHeader = wp.media({
761
+ // Set the title of the modal.
762
+ title: $el.html(),
763
+ // Tell the modal to show only images.
764
+ library: {
765
+ type: "image"
766
+ },
767
+ });
768
+ // When an image is selected, run a callback.
769
+ frame_relationship[$id].on( 'select', function() {
770
+ // Grab the selected attachment.
771
+ var attachment = frame_relationship[$id].state().get('selection').first();
772
+
773
+ var $parent = $el.parent();
774
+ if ( 0 == $('.wpt-file-preview img', $parent).length) {
775
+ $('.wpt-file-preview', $parent).append('<img src="">');
776
+ }
777
+ if ( 'undefined' != typeof attachment.id ) {
778
+ $('.feature-image-id', $el.parent()).val(attachment.id);
779
+ $el.html($data.remove);
780
+ }
781
+ if ( 'undefined' != typeof attachment.attributes.sizes.thumbnail ) {
782
+ $('.wpt-file-preview img', $parent).attr('src', attachment.attributes.sizes.thumbnail.url);
783
+ }
784
+ frame_relationship[$id].close();
785
+ });
786
+ frame_relationship[$id].open();
787
+ } else {
788
+ $('.feature-image-id', $el.parent()).val(0);
789
+ $('.wpt-file-preview', $el.parent()).html('');
790
+
791
+ $(this).html($data.set);
792
+ }
793
+ return false;
794
+ });
795
  // We need to hide the _wpcf_belongs_xxxx_id field for WPML.
796
 
797
  jQuery('#icl_mcs_details table tbody tr').each(function() {
881
  });
882
  });
883
  }
884
+
885
+ /**
886
+ * select2
887
+ */
888
+ jQuery(document).ready(function($) {
889
+ $('.wpcf-pr-belongs').select2({
890
+ id: function(item){
891
+ return item.ID;
892
+ },
893
+ allowClear: true,
894
+ placeholder: $(this).data('placeholder'),
895
+ minimumInputLength: 1,
896
+ formatInputTooShort: $(this).data('input-too-short'),
897
+ ajax: {
898
+ url: ajaxurl,
899
+ dataType: 'json',
900
+ quietMillis: 100,
901
+ data: function (term, page) {
902
+ return {
903
+ nounce: $(this).data('nounce'),
904
+ post_id: $(this).data('post-id'),
905
+ post_type: $(this).data('post-type'),
906
+ action: 'wpcf_relationship_search',
907
+ page: page || 1,
908
+ s: term, // search term
909
+ };
910
+ },
911
+ results: function (data, page) {
912
+ return { results: data.items };
913
+ },
914
+ cache: true
915
+ },
916
+ initSelection: function(element, callback) {
917
+ var id = $(element).val();
918
+ if (0 < parseInt(id)) {
919
+ $(element).select2("data", { ID: 0, post_title: $(element).data('loading') });
920
+ $(element).select2("enable", false);
921
+ $.ajax({
922
+ url: ajaxurl,
923
+ dataType: "json",
924
+ data: {
925
+ nounce: element.data('nounce'),
926
+ p: id,
927
+ post_id: element.data('post-id'),
928
+ post_type: element.data('post-type'),
929
+ action: 'wpcf_relationship_entry'
930
+ }
931
+ }).done(function(data) {
932
+ $(element).select2("enable", true);
933
+ callback(data);
934
+ });
935
+ }
936
+ },
937
+ formatResult: function(item) {
938
+ return '<div data-id="'+item.ID+'" class="item">' + item.post_title + '</div>';
939
+ },
940
+ formatSelection: function(item) {
941
+ var target = $('#wpcf_pr_belongs_'+item.parent_id+'_'+item.post_type);
942
+ $.ajax({
943
+ url: ajaxurl,
944
+ dataType: "json",
945
+ data: {
946
+ action: 'wpcf_relationship_save',
947
+ nounce: target.data('nounce'),
948
+ post_id: item.parent_id,
949
+ post_type: item.post_type,
950
+ p: item.ID
951
+ }
952
+ });
953
+ target.val(item.ID);
954
+ $('a.button', target.closest('.form-item')).attr('href', item.edit_link).removeClass('disabled');
955
+ return item.post_title;
956
+ },
957
+ }).on('select2-clearing', function() {
958
+ $.ajax({
959
+ url: ajaxurl,
960
+ dataType: "json",
961
+ data: {
962
+ nounce: $(this).data('nounce'),
963
+ post_id: $(this).data('post-id'),
964
+ post_type: $(this).data('post-type'),
965
+ action: 'wpcf_relationship_delete'
966
+ }
967
+ }).done(function(data) {
968
+ $('a.button', $(data.target)).addClass('disabled').attr('href', '#');
969
+ });
970
+ });
971
+ });
972
+
embedded/usermeta-init.php CHANGED
@@ -88,31 +88,32 @@ function wpcf_admin_menu_edit_user_fields_hook() {
88
  * @author Gen gen.i@icanlocalize.com
89
  * @since Types 1.3
90
  */
91
- function wpcf_admin_menu_edit_user_fields() {
 
 
92
  if ( isset( $_GET['group_id'] ) ) {
93
- $title = __( 'Edit Usermeta Group', 'wpcf' );
94
- } else {
95
- $title = __( 'Add New Usermeta Group', 'wpcf' );
 
 
 
96
  }
97
  wpcf_add_admin_header( $title );
 
98
  $form = wpcf_form( 'wpcf_form_fields' );
99
  echo '<br /><form method="post" action="" class="wpcf-fields-form '
100
  . 'wpcf-form-validate" onsubmit="';
101
- echo 'if (jQuery(\'#wpcf-group-name\').val() == \'' . __( 'Enter group title',
102
- 'wpcf' ) . '\') { jQuery(\'#wpcf-group-name\').val(\'\'); }';
103
- echo 'if (jQuery(\'#wpcf-group-description\').val() == \'' . __( 'Enter a description for this group',
104
- 'wpcf' ) . '\') { jQuery(\'#wpcf-group-description\').val(\'\'); }';
105
  echo 'jQuery(\'.wpcf-forms-set-legend\').each(function(){
106
- if (jQuery(this).val() == \'' . __( 'Enter field name',
107
- 'wpcf' ) . '\') {
108
  jQuery(this).val(\'\');
109
  }
110
- if (jQuery(this).next().val() == \'' . __( 'Enter field slug',
111
- 'wpcf' ) . '\') {
112
  jQuery(this).next().val(\'\');
113
  }
114
- if (jQuery(this).next().next().val() == \'' . __( 'Describe this field',
115
- 'wpcf' ) . '\') {
116
  jQuery(this).next().next().val(\'\');
117
  }
118
  });';
@@ -161,7 +162,7 @@ function wpcf_admin_menu_user_fields_control_hook() {
161
  function wpcf_admin_menu_user_fields_control() {
162
  global $wpcf_control_table;
163
  wpcf_add_admin_header( __( 'User Fields Control', 'wpcf' ) );
164
- echo '<br /><form method="post" action="" id="wpcf-custom-fields-control-form" class="wpcf-custom-fields-control-form '
165
  . 'wpcf-form-validate" enctype="multipart/form-data">';
166
  echo wpcf_admin_custom_fields_control_form( $wpcf_control_table );
167
  wp_nonce_field( 'user_fields_control_bulk' );
@@ -228,7 +229,7 @@ function __wpcf_usermeta_test()
228
  if ( ( $here[0] == ('index.php' || 'wp-admin')) && ( $here[1] != 'index.php') ) {
229
  if (
230
  isset( $post_type )
231
- && in_array( $post_type, array('view', 'view-template', 'cred-form') )
232
  ) {
233
  return;
234
  }
@@ -251,7 +252,7 @@ if ( !isset( $_GET['post_type'] ) && isset( $_GET['post'] ) ) {
251
  * Kept for compatibility with older versions
252
  */
253
  if ( isset( $post_type ) && in_array( $post_type,
254
- array('view', 'view-template', 'cred-form') ) ) {
255
  add_filter( 'editor_addon_menus_wpv-views',
256
  'wpcf_admin_post_add_usermeta_to_editor_js', 20 );
257
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields-post.php';
@@ -288,7 +289,7 @@ function wpcf_admin_post_add_usermeta_to_editor_js( $menu, $views_callback = fal
288
  $post = (object) array('ID' => -1);
289
  }
290
 
291
- $groups = wpcf_admin_fields_get_groups( 'wp-types-user-group' );
292
  $user_id = wpcf_usermeta_get_user();
293
  if ( !empty( $groups ) ) {
294
  $item_styles = array();
@@ -298,7 +299,7 @@ function wpcf_admin_post_add_usermeta_to_editor_js( $menu, $views_callback = fal
298
  }
299
  $group_name = sprintf( __( '%s (Usermeta fields)', 'wpcf' ) , $group['name'] );
300
  $fields = wpcf_admin_fields_get_fields_by_group( $group['id'],
301
- 'slug', true, false, true, 'wp-types-user-group',
302
  'wpcf-usermeta' );
303
 
304
  if ( !empty( $fields ) ) {
@@ -323,7 +324,7 @@ function wpcf_admin_post_add_usermeta_to_editor_js( $menu, $views_callback = fal
323
  . '\', \'views-usermeta\', ' . $post->ID . ')';
324
  }
325
 
326
- $menu[$group_name][stripslashes( $field['name'] )] = array(stripslashes( $field['name'] ), trim( wpcf_usermeta_get_shortcode( $field ),
327
  '[]' ), $group_name, $callback);
328
  }
329
  /*
@@ -713,7 +714,7 @@ function wpcf_admin_fields_usermeta_styles(){
713
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/usermeta.php';
714
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields-post.php';
715
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/usermeta-post.php';
716
- $groups = wpcf_admin_fields_get_groups( 'wp-types-user-group' );
717
  $content = '';
718
 
719
  if ( !empty( $groups ) ) {
@@ -776,7 +777,7 @@ class Usermeta_Access
776
  */
777
  public function __construct() {
778
  // setup custom capabilities
779
- self::$user_groups = wpcf_admin_fields_get_groups('wp-types-user-group');
780
  //If access plugin installed
781
  if ( function_exists( 'wpcf_access_register_caps' ) ) { // integrate with Types Access
782
  if ( !empty( self::$user_groups ) ) {
@@ -800,25 +801,21 @@ class Usermeta_Access
800
  public static function register_access_usermeta_caps( $caps, $area_id,
801
  $group_id )
802
  {
803
- $USERMETA_ACCESS_AREA_NAME = __( 'User Meta Fields Frontend Access',
804
- 'wpcf' );
805
  $USERMETA_ACCESS_AREA_ID = '__USERMETA_FIELDS';
806
  $default_role = 'guest'; //'administrator';
807
  //List of caps with default permissions
808
  $usermeta_caps = array(
809
- /* array('view_own_on_site', $default_role, __( 'View own fields on site',
810
- 'wpcf' )),
811
- array('view_others_on_site', $default_role, __( 'View others fields on site',
812
- 'wpcf' )),*/
813
- array('view_own_in_profile', $default_role, __( 'View own fields in profile',
814
- 'wpcf' )),
815
  array('modify_own', $default_role, __( 'Modify own fields', 'wpcf' )),
816
  /*
817
  array('view_others_in_profile',$default_role,__('View others fields in profile','wpcf')),
818
  array('modify_others_','administrator',__('Modify others fields','wpcf')), */
819
  );
820
  if ( $area_id == $USERMETA_ACCESS_AREA_ID ) {
821
- $fields_groups = wpcf_admin_fields_get_groups( 'wp-types-user-group' );
822
  if ( !empty( $fields_groups ) ) {
823
  foreach ( $fields_groups as $group ) {
824
  $USERMETA_ACCESS_GROUP_NAME = $group['name'] . ' Access Group';
@@ -842,12 +839,11 @@ class Usermeta_Access
842
  // register a new Types Access Group within Area for Usermeta Fields Groups Frontend capabilities
843
  public static function register_access_usermeta_groups( $groups, $id )
844
  {
845
- $USERMETA_ACCESS_AREA_NAME = __( 'User Meta Fields Frontend Access',
846
- 'wpcf' );
847
  $USERMETA_ACCESS_AREA_ID = '__USERMETA_FIELDS';
848
 
849
  if ( $id == $USERMETA_ACCESS_AREA_ID ) {
850
- $fields_groups = wpcf_admin_fields_get_groups( 'wp-types-user-group' );
851
  if ( !empty( $fields_groups ) ) {
852
  foreach ( $fields_groups as $group ) {
853
  $USERMETA_ACCESS_GROUP_NAME = $group['name'];
@@ -916,18 +912,14 @@ class Post_Fields_Access
916
  public static function register_access_fields_caps( $caps, $area_id,
917
  $group_id )
918
  {
919
- $FIELDS_ACCESS_AREA_NAME = __( 'Post Custom Fields Frontend Access',
920
- 'wpcf' );
921
  $FIELDS_ACCESS_AREA_ID = '__FIELDS';
922
  $default_role = 'guest'; //'administrator';
923
  //List of caps with default permissions
924
  $fields_caps = array(
925
- /*array('view_fields_on_site', $default_role, __( 'View Fields On Site',
926
- 'wpcf' )),*/
927
- array('view_fields_in_edit_page', $default_role, __( 'View Fields In Edit Page',
928
- 'wpcf' )),
929
- array('modify_fields_in_edit_page', 'author', __( 'Modify Fields In Edit Page',
930
- 'wpcf' )),
931
  );
932
  if ( $area_id == $FIELDS_ACCESS_AREA_ID ) {
933
 
@@ -1135,3 +1127,33 @@ function wpcf_usermeta_add_user_screen() {
1135
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/usermeta-add-user.php';
1136
  wpcf_usermeta_add_user_screen_init();
1137
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  * @author Gen gen.i@icanlocalize.com
89
  * @since Types 1.3
90
  */
91
+ function wpcf_admin_menu_edit_user_fields()
92
+ {
93
+ $title = __('View User Fields Group', 'wpcf');
94
  if ( isset( $_GET['group_id'] ) ) {
95
+ $item = wpcf_admin_get_user_field_group_by_id($_GET['group_id']);
96
+ if ( WPCF_Roles::user_can_edit('user-meta-field', $item) ) {
97
+ $title = __( 'Edit User Fields Group', 'wpcf' );
98
+ }
99
+ } else if ( WPCF_Roles::user_can_create('user-meta-field')) {
100
+ $title = __( 'Add New User Fields Group', 'wpcf' );
101
  }
102
  wpcf_add_admin_header( $title );
103
+
104
  $form = wpcf_form( 'wpcf_form_fields' );
105
  echo '<br /><form method="post" action="" class="wpcf-fields-form '
106
  . 'wpcf-form-validate" onsubmit="';
107
+ echo 'if (jQuery(\'#wpcf-group-name\').val() == \'' . __( 'Enter group title', 'wpcf' ) . '\') { jQuery(\'#wpcf-group-name\').val(\'\'); }';
108
+ echo 'if (jQuery(\'#wpcf-group-description\').val() == \'' . __( 'Enter a description for this group', 'wpcf' ) . '\') { jQuery(\'#wpcf-group-description\').val(\'\'); }';
 
 
109
  echo 'jQuery(\'.wpcf-forms-set-legend\').each(function(){
110
+ if (jQuery(this).val() == \'' . __( 'Enter field name', 'wpcf' ) . '\') {
 
111
  jQuery(this).val(\'\');
112
  }
113
+ if (jQuery(this).next().val() == \'' . __( 'Enter field slug', 'wpcf' ) . '\') {
 
114
  jQuery(this).next().val(\'\');
115
  }
116
+ if (jQuery(this).next().next().val() == \'' . __( 'Describe this field', 'wpcf' ) . '\') {
 
117
  jQuery(this).next().next().val(\'\');
118
  }
119
  });';
162
  function wpcf_admin_menu_user_fields_control() {
163
  global $wpcf_control_table;
164
  wpcf_add_admin_header( __( 'User Fields Control', 'wpcf' ) );
165
+ echo '<form method="post" action="" id="wpcf-custom-fields-control-form" class="wpcf-custom-fields-control-form '
166
  . 'wpcf-form-validate" enctype="multipart/form-data">';
167
  echo wpcf_admin_custom_fields_control_form( $wpcf_control_table );
168
  wp_nonce_field( 'user_fields_control_bulk' );
229
  if ( ( $here[0] == ('index.php' || 'wp-admin')) && ( $here[1] != 'index.php') ) {
230
  if (
231
  isset( $post_type )
232
+ && in_array( $post_type, array('view', 'view-template', 'cred-form', 'cred-user-form') )
233
  ) {
234
  return;
235
  }
252
  * Kept for compatibility with older versions
253
  */
254
  if ( isset( $post_type ) && in_array( $post_type,
255
+ array('view', 'view-template', 'cred-form', 'cred-user-form') ) ) {
256
  add_filter( 'editor_addon_menus_wpv-views',
257
  'wpcf_admin_post_add_usermeta_to_editor_js', 20 );
258
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields-post.php';
289
  $post = (object) array('ID' => -1);
290
  }
291
 
292
+ $groups = wpcf_admin_fields_get_groups( TYPES_USER_META_FIELD_GROUP_CPT_NAME );
293
  $user_id = wpcf_usermeta_get_user();
294
  if ( !empty( $groups ) ) {
295
  $item_styles = array();
299
  }
300
  $group_name = sprintf( __( '%s (Usermeta fields)', 'wpcf' ) , $group['name'] );
301
  $fields = wpcf_admin_fields_get_fields_by_group( $group['id'],
302
+ 'slug', true, false, true, TYPES_USER_META_FIELD_GROUP_CPT_NAME,
303
  'wpcf-usermeta' );
304
 
305
  if ( !empty( $fields ) ) {
324
  . '\', \'views-usermeta\', ' . $post->ID . ')';
325
  }
326
 
327
+ $menu[$group_name][stripslashes( $field['name'] )] = array(stripslashes(wp_kses_post($field['name'])), trim( wpcf_usermeta_get_shortcode( $field ),
328
  '[]' ), $group_name, $callback);
329
  }
330
  /*
714
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/usermeta.php';
715
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields-post.php';
716
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/usermeta-post.php';
717
+ $groups = wpcf_admin_fields_get_groups( TYPES_USER_META_FIELD_GROUP_CPT_NAME );
718
  $content = '';
719
 
720
  if ( !empty( $groups ) ) {
777
  */
778
  public function __construct() {
779
  // setup custom capabilities
780
+ self::$user_groups = wpcf_admin_fields_get_groups(TYPES_USER_META_FIELD_GROUP_CPT_NAME);
781
  //If access plugin installed
782
  if ( function_exists( 'wpcf_access_register_caps' ) ) { // integrate with Types Access
783
  if ( !empty( self::$user_groups ) ) {
801
  public static function register_access_usermeta_caps( $caps, $area_id,
802
  $group_id )
803
  {
804
+ $USERMETA_ACCESS_AREA_NAME = __( 'User Meta Fields Frontend Access', 'wpcf' );
 
805
  $USERMETA_ACCESS_AREA_ID = '__USERMETA_FIELDS';
806
  $default_role = 'guest'; //'administrator';
807
  //List of caps with default permissions
808
  $usermeta_caps = array(
809
+ /* array('view_own_on_site', $default_role, __( 'View own fields on site', 'wpcf' )),
810
+ array('view_others_on_site', $default_role, __( 'View others fields on site', 'wpcf' )),*/
811
+ array('view_own_in_profile', $default_role, __( 'View own fields in profile', 'wpcf' )),
 
 
 
812
  array('modify_own', $default_role, __( 'Modify own fields', 'wpcf' )),
813
  /*
814
  array('view_others_in_profile',$default_role,__('View others fields in profile','wpcf')),
815
  array('modify_others_','administrator',__('Modify others fields','wpcf')), */
816
  );
817
  if ( $area_id == $USERMETA_ACCESS_AREA_ID ) {
818
+ $fields_groups = wpcf_admin_fields_get_groups( TYPES_USER_META_FIELD_GROUP_CPT_NAME );
819
  if ( !empty( $fields_groups ) ) {
820
  foreach ( $fields_groups as $group ) {
821
  $USERMETA_ACCESS_GROUP_NAME = $group['name'] . ' Access Group';
839
  // register a new Types Access Group within Area for Usermeta Fields Groups Frontend capabilities
840
  public static function register_access_usermeta_groups( $groups, $id )
841
  {
842
+ $USERMETA_ACCESS_AREA_NAME = __( 'User Meta Fields Frontend Access', 'wpcf' );
 
843
  $USERMETA_ACCESS_AREA_ID = '__USERMETA_FIELDS';
844
 
845
  if ( $id == $USERMETA_ACCESS_AREA_ID ) {
846
+ $fields_groups = wpcf_admin_fields_get_groups( TYPES_USER_META_FIELD_GROUP_CPT_NAME );
847
  if ( !empty( $fields_groups ) ) {
848
  foreach ( $fields_groups as $group ) {
849
  $USERMETA_ACCESS_GROUP_NAME = $group['name'];
912
  public static function register_access_fields_caps( $caps, $area_id,
913
  $group_id )
914
  {
915
+ $FIELDS_ACCESS_AREA_NAME = __( 'Post Custom Fields Frontend Access', 'wpcf' );
 
916
  $FIELDS_ACCESS_AREA_ID = '__FIELDS';
917
  $default_role = 'guest'; //'administrator';
918
  //List of caps with default permissions
919
  $fields_caps = array(
920
+ /*array('view_fields_on_site', $default_role, __( 'View Fields On Site', 'wpcf' )),*/
921
+ array('view_fields_in_edit_page', $default_role, __( 'View Fields In Edit Page', 'wpcf' )),
922
+ array('modify_fields_in_edit_page', 'author', __( 'Modify Fields In Edit Page', 'wpcf' )),
 
 
 
923
  );
924
  if ( $area_id == $FIELDS_ACCESS_AREA_ID ) {
925
 
1127
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/usermeta-add-user.php';
1128
  wpcf_usermeta_add_user_screen_init();
1129
  }
1130
+
1131
+ /**
1132
+ * Return very simple data of group
1133
+ *
1134
+ * @since 1.8.0
1135
+ *
1136
+ * @param string $group_id Group id
1137
+ * @return mixed Array if this is proper $group_id or $group_id
1138
+ */
1139
+ function wpcf_admin_get_user_field_group_by_id($group_id)
1140
+ {
1141
+ $args = array(
1142
+ 'post__in' => array($group_id),
1143
+ 'post_type' => 'wp-types-user-group',
1144
+ );
1145
+ $query = new WP_Query($args);
1146
+ if ( $query->have_posts() ) {
1147
+ while ( $query->have_posts() ) {
1148
+ $query->the_post();
1149
+ $data = array(
1150
+ 'id' => get_the_ID(),
1151
+ WPCF_AUTHOR => get_the_author_meta('ID'),
1152
+ );
1153
+ wp_reset_postdata();
1154
+ return $data;
1155
+ }
1156
+ }
1157
+ return $group_id;
1158
+ }
1159
+
embedded/views/editor-modal-window.php CHANGED
@@ -15,7 +15,7 @@ if ( !isset( $data ) ) {
15
  $data = array_merge(
16
  array(
17
  'field_name' => $data['field_type_data']['title'],
18
- 'title' => sprintf('%s %s', $data['field']['name'], __('field', 'wpcf')),
19
  'submit_button_title' => __('Insert shortcode', 'wpcf'),
20
  'tabs' => array(),
21
  'supports' => array(),
@@ -42,8 +42,7 @@ $data = array_merge(
42
  <?php foreach ( $data['tabs'] as $tab ): ?>
43
  <a class="types-media-menu-item js-raw-disable" href="#"><?php echo $tab['menu_title']; ?></a>
44
  <?php endforeach; ?>
45
- <a id="menu-item-styling" class="types-media-menu-item js-raw-disable" href="#" data-bind="visible: showMenuStyling(), tedSupports: 'styling'"><?php _e( 'Styling',
46
- 'wpcf' ); ?></a>
47
  <a class="types-media-menu-item" data-bind="tedSupports: 'separator'" href="#"><?php _e( 'Separator', 'wpcf' ); ?></a>
48
  <a class="types-media-menu-item" data-bind="tedSupports: 'user_id'" href="#"><?php _e( 'User','wpcf' ); ?></a>
49
  <a class="types-media-menu-item" data-bind="tedSupports: 'post_id'" href="#"><?php _e( 'Post selection', 'wpcf' ); ?></a>
@@ -51,7 +50,7 @@ $data = array_merge(
51
  <p class="form-inline">
52
  <input type="checkbox" id="types-modal-raw" name="raw_mode" value="1" data-bind="checked: raw, click: rawDisableAll" />
53
  <label for="types-modal-raw"><?php _e( 'Display this field without any formatting', 'wpcf' ); ?></label>
54
- <i class="icon-question-sign js-show-tooltip" data-header="<?php _e( 'RAW mode', 'wpv-views' ) ?>" data-content="<?php _e( 'When checked, displays raw data stored in database.', 'wpv-views' ) ?>"></i>
55
  </p>
56
  </div>
57
  </div>
@@ -185,8 +184,7 @@ $data = array_merge(
185
  <?php if ( empty( $data['parents'] ) ): ?>
186
  <p class="form-inline">
187
  <input type="radio" id="post-id-related" name="post_id" value="related" data-bind="checked: relatedPost" />
188
- <label for="post-id-related"><?php _e( 'The parent of this post, set by Types (parent/child relationship)',
189
- 'wpcf' ); ?></label>
190
  </p>
191
  <div class="group-nested">
192
  <p class="form-inline">
15
  $data = array_merge(
16
  array(
17
  'field_name' => $data['field_type_data']['title'],
18
+ 'title' => stripcslashes(sprintf('%s %s', wp_kses_post($data['field']['name']), __('field', 'wpcf'))),
19
  'submit_button_title' => __('Insert shortcode', 'wpcf'),
20
  'tabs' => array(),
21
  'supports' => array(),
42
  <?php foreach ( $data['tabs'] as $tab ): ?>
43
  <a class="types-media-menu-item js-raw-disable" href="#"><?php echo $tab['menu_title']; ?></a>
44
  <?php endforeach; ?>
45
+ <a id="menu-item-styling" class="types-media-menu-item js-raw-disable" href="#" data-bind="visible: showMenuStyling(), tedSupports: 'styling'"><?php _e( 'Styling', 'wpcf' ); ?></a>
 
46
  <a class="types-media-menu-item" data-bind="tedSupports: 'separator'" href="#"><?php _e( 'Separator', 'wpcf' ); ?></a>
47
  <a class="types-media-menu-item" data-bind="tedSupports: 'user_id'" href="#"><?php _e( 'User','wpcf' ); ?></a>
48
  <a class="types-media-menu-item" data-bind="tedSupports: 'post_id'" href="#"><?php _e( 'Post selection', 'wpcf' ); ?></a>
50
  <p class="form-inline">
51
  <input type="checkbox" id="types-modal-raw" name="raw_mode" value="1" data-bind="checked: raw, click: rawDisableAll" />
52
  <label for="types-modal-raw"><?php _e( 'Display this field without any formatting', 'wpcf' ); ?></label>
53
+ <i class="icon-question-sign js-show-tooltip" data-header="<?php _e( 'RAW mode', 'wpv-views' ) ?>" data-content="<?php _e( 'When checked, displays raw data stored in database.', 'wpcf' ) ?>"></i>
54
  </p>
55
  </div>
56
  </div>
184
  <?php if ( empty( $data['parents'] ) ): ?>
185
  <p class="form-inline">
186
  <input type="radio" id="post-id-related" name="post_id" value="related" data-bind="checked: relatedPost" />
187
+ <label for="post-id-related"><?php _e( 'The parent of this post, set by Types (parent/child relationship)', 'wpcf' ); ?></label>
 
188
  </p>
189
  <div class="group-nested">
190
  <p class="form-inline">
embedded/views/image.php CHANGED
@@ -293,7 +293,7 @@ class Types_Image_View
293
  } catch ( Exception $e ) {
294
  imagedestroy( $new_image );
295
  return new WP_Error( __CLASS__ . '::' . __METHOD__,
296
- __( 'Resize path invalid' ), $croppedImg );
297
  }
298
 
299
  imagedestroy( $new_image );
293
  } catch ( Exception $e ) {
294
  imagedestroy( $new_image );
295
  return new WP_Error( __CLASS__ . '::' . __METHOD__,
296
+ __( 'Resize path invalid', 'wpcf' ), $croppedImg );
297
  }
298
 
299
  imagedestroy( $new_image );
embedded/views/templates/child-tax-category.tpl.php CHANGED
@@ -11,7 +11,7 @@ $html_id = "wpcf-reltax-{$taxonomy}-" . wpcf_unique_id( $taxonomy );
11
  <div id="<?php echo $html_id; ?>" class="js-types-child-categorydiv types-child-categorydiv" data-types-reltax="<?php echo $taxonomy; ?>">
12
  <!--<ul id="<?php echo $html_id; ?>-tabs" class="category-tabs">
13
  <li class="tabs"><a href="#<?php echo $taxonomy; ?>-all"><?php echo $tax->labels->all_items; ?></a></li>
14
- <li class="hide-if-no-js"><a href="#<?php echo $taxonomy; ?>-pop"><?php _e( 'Most Used' ); ?></a></li>
15
  </ul>
16
 
17
  <div id="<?php echo $taxonomy; ?>-pop" class="tabs-panel" style="display: none;">
@@ -35,7 +35,7 @@ $html_id = "wpcf-reltax-{$taxonomy}-" . wpcf_unique_id( $taxonomy );
35
  <a id="<?php echo $html_id; ?>-add-toggle" href="#<?php echo $html_id; ?>-add" class="hide-if-no-js">
36
  <?php
37
  /* translators: %s: add new taxonomy label */
38
- printf( __( '+ %s' ), $tax->labels->add_new_item );
39
  ?>
40
  </a>
41
  </h4>
11
  <div id="<?php echo $html_id; ?>" class="js-types-child-categorydiv types-child-categorydiv" data-types-reltax="<?php echo $taxonomy; ?>">
12
  <!--<ul id="<?php echo $html_id; ?>-tabs" class="category-tabs">
13
  <li class="tabs"><a href="#<?php echo $taxonomy; ?>-all"><?php echo $tax->labels->all_items; ?></a></li>
14
+ <li class="hide-if-no-js"><a href="#<?php echo $taxonomy; ?>-pop"><?php _e( 'Most Used', 'wpcf' ); ?></a></li>
15
  </ul>
16
 
17
  <div id="<?php echo $taxonomy; ?>-pop" class="tabs-panel" style="display: none;">
35
  <a id="<?php echo $html_id; ?>-add-toggle" href="#<?php echo $html_id; ?>-add" class="hide-if-no-js">
36
  <?php
37
  /* translators: %s: add new taxonomy label */
38
+ printf( __( '+ %s', 'wpcf' ), $tax->labels->add_new_item );
39
  ?>
40
  </a>
41
  </h4>
embedded/views/templates/child-tax-tag.tpl.php CHANGED
@@ -2,27 +2,22 @@
2
  /*
3
  * Child table taxonomy non-hierarchical form.
4
  */
 
5
  $defaults = array('taxonomy' => 'post_tag');
6
  extract( wp_parse_args($data, $defaults), EXTR_SKIP );
7
  $tax_name = esc_attr($taxonomy);
8
  $taxonomy = get_taxonomy($taxonomy);
9
  $user_can_assign_terms = current_user_can( $taxonomy->cap->assign_terms );
10
  $comma = _x( ',', 'tag delimiter' );
11
- $html_id = wpcf_unique_id( $tax_name );
12
-
13
- if ( !isset( $box ) || !array_key_exists( 'title', $box ) ) {
14
- $box['title'] = '';
15
- }
16
-
17
  ?>
18
  <div class="js-types-child-tagsdiv" id="<?php echo $html_id; ?>">
19
  <div class="jaxtag">
20
  <div class="nojs-tags hide-if-js">
21
  <p><?php echo $taxonomy->labels->add_or_remove_items; ?></p>
22
- <textarea name="<?php echo $_wpcf_name; ?>" rows="3" cols="20" class="the-tags" id="tax-input-<?php echo $html_id; ?>" <?php disabled( ! $user_can_assign_terms ); ?>><?php echo str_replace( ',', $comma . ' ', get_terms_to_edit( $post->ID, $tax_name ) ); // textarea_escaped by esc_attr() ?></textarea></div>
23
  <?php if ( $user_can_assign_terms ) : ?>
24
  <div class="ajaxtag hide-if-no-js">
25
- <label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label>
26
  <div class="taghint"><?php echo $taxonomy->labels->add_new_item; ?></div>
27
  <p><input type="text" id="new-tag-<?php echo $html_id; ?>" name="newtag<?php echo $html_id; ?>[<?php echo $tax_name; ?>]" class="js-types-newtag form-input-tip" size="16" autocomplete="off" value="" data-types-tax="<?php echo $tax_name; ?>" />
28
  <input type="button" class="button js-types-addtag" value="<?php esc_attr_e('Add'); ?>" /></p>
2
  /*
3
  * Child table taxonomy non-hierarchical form.
4
  */
5
+
6
  $defaults = array('taxonomy' => 'post_tag');
7
  extract( wp_parse_args($data, $defaults), EXTR_SKIP );
8
  $tax_name = esc_attr($taxonomy);
9
  $taxonomy = get_taxonomy($taxonomy);
10
  $user_can_assign_terms = current_user_can( $taxonomy->cap->assign_terms );
11
  $comma = _x( ',', 'tag delimiter' );
12
+ $html_id = esc_attr(wpcf_unique_id( $tax_name ));
 
 
 
 
 
13
  ?>
14
  <div class="js-types-child-tagsdiv" id="<?php echo $html_id; ?>">
15
  <div class="jaxtag">
16
  <div class="nojs-tags hide-if-js">
17
  <p><?php echo $taxonomy->labels->add_or_remove_items; ?></p>
18
+ <textarea name="<?php echo esc_attr($_wpcf_name); ?>" rows="3" cols="20" class="the-tags" id="tax-input-<?php echo $html_id; ?>" <?php disabled( ! $user_can_assign_terms ); ?>><?php echo str_replace( ',', $comma . ' ', get_terms_to_edit( $post->ID, $tax_name ) ); // textarea_escaped by esc_attr() ?></textarea></div>
19
  <?php if ( $user_can_assign_terms ) : ?>
20
  <div class="ajaxtag hide-if-no-js">
 
21
  <div class="taghint"><?php echo $taxonomy->labels->add_new_item; ?></div>
22
  <p><input type="text" id="new-tag-<?php echo $html_id; ?>" name="newtag<?php echo $html_id; ?>[<?php echo $tax_name; ?>]" class="js-types-newtag form-input-tip" size="16" autocomplete="off" value="" data-types-tax="<?php echo $tax_name; ?>" />
23
  <input type="button" class="button js-types-addtag" value="<?php esc_attr_e('Add'); ?>" /></p>
embedded/views/templates/editor-modal-email.tpl.php CHANGED
@@ -24,9 +24,9 @@ $data = array_merge( array(
24
  <div class="fieldset">
25
  <p>
26
  <label for="email-title" class="input-title"><?php _e( 'Title', 'wpcf' ); ?></label>
27
- <input id="email-title" type="text" name="title" value="<?php echo $data['title']; ?>" />
28
  <span class="help-text"><?php _e( 'If set, this text will be displayed instead of raw data', 'wpcf' ); ?></span>
29
  </p>
30
  </div>
31
 
32
- </script><!--END TYPES MODAL EMAIL-->
24
  <div class="fieldset">
25
  <p>
26
  <label for="email-title" class="input-title"><?php _e( 'Title', 'wpcf' ); ?></label>
27
+ <input id="email-title" type="text" name="title" value="<?php echo esc_attr($data['title']); ?>" />
28
  <span class="help-text"><?php _e( 'If set, this text will be displayed instead of raw data', 'wpcf' ); ?></span>
29
  </p>
30
  </div>
31
 
32
+ </script><!--END TYPES MODAL EMAIL-->
embedded/views/templates/editor-modal-file.tpl.php CHANGED
@@ -26,10 +26,10 @@ $data = array_merge( array(
26
  <div class="fieldset">
27
  <p>
28
  <label for="file-title" class="input-title"><?php _e( 'Link title', 'wpcf' ); ?></label>
29
- <input id="file-title" type="text" name="title" value="<?php echo $data['title']; ?>" />
30
  </p>
31
 
32
  </div>
33
 
34
 
35
- </script><!--END TYPES MODAL FILE-->
26
  <div class="fieldset">
27
  <p>
28
  <label for="file-title" class="input-title"><?php _e( 'Link title', 'wpcf' ); ?></label>
29
+ <input id="file-title" type="text" name="title" value="<?php echo esc_attr($data['title']); ?>" />
30
  </p>
31
 
32
  </div>
33
 
34
 
35
+ </script><!--END TYPES MODAL FILE-->
embedded/views/templates/editor-modal-image.tpl.php CHANGED
@@ -31,8 +31,7 @@ if ($data['warning_remote']) {
31
  if ( wpcf_is_embedded() ) {
32
  $warning_remote = __( 'Remote image resize is disabled, so Types will only resize images that you upload.', 'wpcf' );
33
  } else {
34
- $warning_remote = sprintf( __( 'Remote image resize is currently disabled, so Types will only resize images that you upload. To change, go to the %sTypes settings page%s.',
35
- 'wpcf' ),
36
  '<a href="' . admin_url( 'admin.php?page=wpcf-custom-settings#types-image-settings' ) . '" target="_blank">',
37
  '</a>' );
38
  }
@@ -83,7 +82,7 @@ if ($data['warning_remote']) {
83
 
84
  <?php if ( $data['warning_remote'] ) : ?>
85
  <!-- Conditional icon displaying for dismissed warning message -->
86
- <i class="icon-warning-sign js-show-tooltip" data-header="<?php _e( 'Image resize disabled', 'wpcf' ); ?>" data-content="<?php echo htmlspecialchars( $warning_remote ); ?>"></i>
87
  <?php endif; ?>
88
 
89
  </p>
@@ -145,4 +144,4 @@ if ($data['warning_remote']) {
145
  WPCF_Loader::loadInclude('fields/colorpicker');
146
  wpcf_fields_colorpicker_enqueue_scripts();
147
  wpcf_fields_colorpicker_render_js();
148
- ?>
31
  if ( wpcf_is_embedded() ) {
32
  $warning_remote = __( 'Remote image resize is disabled, so Types will only resize images that you upload.', 'wpcf' );
33
  } else {
34
+ $warning_remote = sprintf( __( 'Remote image resize is currently disabled, so Types will only resize images that you upload. To change, go to the %sTypes settings page%s.', 'wpcf' ),
 
35
  '<a href="' . admin_url( 'admin.php?page=wpcf-custom-settings#types-image-settings' ) . '" target="_blank">',
36
  '</a>' );
37
  }
82
 
83
  <?php if ( $data['warning_remote'] ) : ?>
84
  <!-- Conditional icon displaying for dismissed warning message -->
85
+ <i class="icon-warning-sign js-show-tooltip" data-header="<?php _e( 'Image resize disabled', 'wpcf' ); ?>" data-content="<?php echo esc_attr($warning_remote); ?>"></i>
86
  <?php endif; ?>
87
 
88
  </p>
144
  WPCF_Loader::loadInclude('fields/colorpicker');
145
  wpcf_fields_colorpicker_enqueue_scripts();
146
  wpcf_fields_colorpicker_render_js();
147
+ ?>
help.php CHANGED
@@ -7,207 +7,391 @@
7
 
8
  /**
9
  * Returns contextual help.
10
- *
11
  * @param type $page
12
- * @param type $contextual_help
13
  */
14
- function wpcf_admin_help($page, $contextual_help) {
 
15
  $help = '';
16
  switch ($page) {
17
  // Custom Fields (list)
18
  case 'custom_fields':
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  $help .= ''
20
- . ''
21
- . __("Types plugin organizes custom fields in groups. Once you create a group, you can add the fields to it and control to what content it belongs.",
22
- 'wpcf')
23
- . '<br /><br />'
24
- . sprintf(__('You can read more about Custom Fields in this tutorial: %s.',
25
- 'wpcf'),
26
- '<a href="http://wp-types.com/user-guides/using-custom-fields/" target="_blank">http://wp-types.com/user-guides/using-custom-fields/ &raquo;</a>')
27
- . '<br /><br />'
28
- . __("On this page you can see your current custom field groups, as well as information about which post types and taxonomies they are attached to, and whether they are active or not.",
29
- 'wpcf')
30
- . '<br /><br />'
31
- . __('You have the following options:', 'wpcf')
32
- . '<ul><li>'
33
- . __('<strong>Add a Custom Fields Group:</strong> Use this to add a new custom fields group which can be attached to a post type',
34
- 'wpcf')
35
- . '</li><li>'
36
- . __('<strong>Edit:</strong> Click to edit the custom field group',
37
- 'wpcf')
38
- . '</li><li>'
39
- . __('<strong>Deactivate:</strong> Click to deactivate a custom field group (this can be re-activated at a later date)',
40
- 'wpcf')
41
- . '</li><li>'
42
- . __('<strong>Delete Permanently:</strong> Click to delete a custom field group. <strong>Warning: This cannot be undone.</strong>',
43
- 'wpcf')
44
- . '</li></ul>';
45
  break;
46
 
47
- // Custom Types and Taxonomies (list)
48
- case 'custom_types_and_taxonomies':
49
- $help .= __('Custom Post Types are user-defined content types. Custom Taxonomies are used to categorize your content.',
50
- 'wpcf')
51
- . ' ' . sprintf(__('You can read more about Custom Post Types and Taxonomies in this tutorial. %s',
52
- 'wpcf'), '<a href="http://wp-types.com/learn/custom-post-types/" target="_blank">http://wp-types.com/learn/custom-post-types/ &raquo;</a>')
53
- . '<br /><br />'
54
- . __('This is the main admin page for your Custom Post Types and Taxonomies. It provides you with an overview of your data.',
55
- 'wpcf')
56
- . '<br />'
57
- . __('On this page you have the following options:', 'wpcf')
58
- . '<ul><li>'
59
- . __('<strong>Add Custom Post Type:</strong> Use to create a new Custom Post Type',
60
- 'wpcf')
61
- . '</li><li>'
62
- . __('<strong>Add Custom Taxonomy:</strong> Use to create a new Custom Taxonomy',
63
- 'wpcf')
64
- . '</li><li>'
65
- . __('<strong>Edit:</strong> Click to edit the settings of a Custom Post Type or Taxonomy',
66
- 'wpcf')
67
- . '</li><li>'
68
- . __('<strong>Deactivate:</strong> Click to deactivate a Custom Post Type or Taxonomy (this can be reactivated at a later date)',
69
- 'wpcf')
70
- . '</li><li>'
71
- . __('<strong>Delete:</strong> Click to delete a Custom Post Type or Taxonomy. <strong> Warning: This cannot be undone</strong> ',
72
- 'wpcf')
73
- . '</li></ul>';
 
 
 
 
74
  break;
75
 
76
  // Import/Export page
77
  case 'import_export':
78
- $help .= __('Use this page to import and export custom post types, taxonomies and custom fields to and from Types.',
79
- 'wpcf')
80
- . '<br /><br />'
81
- . __('This is the main admin page for your Custom Post Types and Taxonomies. It provides you with an overview of your data.',
82
- 'wpcf')
83
- . '<br />'
84
  . __('On this page you have the following options:', 'wpcf')
85
- . '<h3>' . __('Import', 'wpcf') . '</h3>'
86
- . '<ul style="list-style-type:none;"><li style="list-style-type:none;">'
87
- . __('<strong>Step 1:</strong> Upload an XML file or paste XML content directly into the text area.',
88
- 'wpcf')
89
- . '</li><li style="list-style-type:none;">'
90
- . __('<strong>Step 2:</strong> Select which custom post types, taxonomies and custom fields should be imported.',
91
- 'wpcf')
92
- . '</li></ul>'
93
- . '<h3>' . __('Export', 'wpcf') . '</h3>'
94
- . __('Click Export to export data from Types as an XML file.',
95
- 'wpcf');
 
 
 
 
 
 
 
 
 
96
  break;
97
 
98
  // Add/Edit group form page
99
  case 'edit_group':
100
- $help .= __('This is the edit page for your Custom Fields Groups.',
101
- 'wpcf')
102
- . '<br />'
103
- . sprintf(__('You can read more about creating a Custom Fields Group here: %s',
104
- 'wpcf'), '<a href="http://wp-types.com/user-guides/using-custom-fields/" target="_blank">http://wp-types.com/user-guides/using-custom-fields/ &raquo;</a>')
105
- . '<br /><br />'
106
- . __('On this page you can create and edit your groups. To create a group, do the following:',
107
- 'wpcf')
108
- . '<ol style="list-style-type:decimal;"><li style="list-style-type:decimal;">'
109
- . __('Add a Title', 'wpcf')
110
- . '</li><li style="list-style-type:decimal;">'
111
- . __('Choose where to display your group. You can attach this to both default WordPress post types and Custom Post Types. (nb: you can also associate taxonomy terms with Custom Field Groups)',
112
- 'wpcf')
113
- . '</li><li style="list-style-type:decimal;">'
114
- . __('To add a field click on the field you desire under “Available Fields” on the right hand side of your screen. This will be added to your Custom Field Group',
115
- 'wpcf')
116
- . '</li><li style="list-style-type:decimal;">'
117
- . __('Add information about your Custom Field', 'wpcf')
118
- . '</li></ol>'
119
- . '<h3>' . __('Tips', 'wpcf') . '</h3>'
120
- . '<ul><li>'
121
- . __('To ensure a user completes a field, check the box for validation required',
122
- 'wpcf')
123
- . '</li><li>'
124
- . __('Once you have created a field it will be saved for future use under "User created fields"',
125
- 'wpcf')
126
- . '</li><li>'
127
- . __('You can drag and drop the order of your custom fields using the blue icon',
128
- 'wpcf')
129
- . '</li></ul>';
130
  break;
131
 
132
- // Add/Edit custom type form page
133
  case 'edit_type':
134
- $help .= __('Use this page to create a WordPress post type. If you’d like to learn more about Custom Post Types you can read our detailed guide: <a href="http://wp-types.com/learn/custom-post-types/" target="_blank">http://wp-types.com/learn/custom-post-types/</a> or check out our tutorial on creating them with Types: <a href="http://wp-types.com/user-guides/create-a-custom-post-type/" target="_blank">http://wp-types.com/user-guides/create-a-custom-post-type/ &raquo;</a>',
135
- 'wpcf')
136
- . '<br /><br />'
137
- . '<strong>' . __('Name and Description', 'wpcf') . '</strong>'
138
- . '<br />'
139
- . __('Add a singular and plural name for your post type. You should also add a slug. This will be created from the post type name if none is added.',
140
- 'wpcf')
141
- . '<br /><br />'
142
- . '<strong>' . __('Visibility', 'wpcf') . '</strong>'
143
- . '<br /><br />'
144
- . __('Determine whether your post type will be visible on the admin menu to your users.',
145
- 'wpcf')
146
- . '<br /><br />'
147
- . __('You can also adjust the menu position. The default position is 20, which means your post type will appear underPages”. You can find more information about menu positioning in the WordPress Codex. <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Parameters" target="_blank">http://codex.wordpress.org/Function_Reference/register_post_type#Parameters</a>',
148
- 'wpcf')
149
- . '<br /><br />'
150
- . __('The default post type icon is the pushpin icon that appears beside WordPress posts. You can change this by adding your own icon of 16px x 16px.',
151
- 'wpcf')
152
- . '<br /><br />'
153
- . '<strong>' . __('Select Taxonomies', 'wpcf') . '</strong>'
154
- . '<br /><br />'
155
- . __('Choose which taxonomies are to be associated with this post type.',
156
- 'wpcf')
157
- . '<br /><br />'
158
- . '<strong>' . __('Labels', 'wpcf') . '</strong>'
159
- . '<br /><br />'
160
- . __('Labels are the text that is attached to your custom post type name. Examples of them in use are “Add New Post” (where “Add New” is the label”) and “Edit Post” (where “Edit” is the label). In normal circumstances the defaults will suffice.',
161
- 'wpcf')
162
- . '<br /><br />'
163
- . '<strong>' . __('Custom Post Properites', 'wpcf') . '</strong>'
164
- . '<br /><br />'
165
- . __('Choose which sections to display on your “Add New” page.',
166
- 'wpcf')
167
- . '<br /><br />'
168
- . '<strong>' . __('Advanced Settings', 'wpcf') . '</strong>'
169
- . '<br /><br />'
170
- . __('Advanced settings give you even more control over your custom post type. You can read in detail what all of these settings do on our tutorial.',
171
- 'wpcf');
172
  break;
173
 
174
  // Add/Edit custom taxonomy form page
175
  case 'edit_tax':
176
- $help .= __('You can use Custom Taxonomies to categorize your content. Read more about what they are on our website: <a href="http://wp-types.com/learn/custom-post-types/" target="_blank">http://wp-types.com/learn/custom-post-types/ &raquo;</a> or you can read our guide about how to set them up: <a href="http://wp-types.com/user-guides/create-custom-taxonomies/" target="_blank">http://wp-types.com/user-guides/create-custom-taxonomies/</a>',
177
- 'wpcf')
178
- . '<br /><br />'
179
- . '<strong>' . __('Name and Description', 'wpcf') . '</strong>'
180
- . '<br /><br />'
181
- . __('Add a singular and plural name for your taxonomy. You should also add a slug. This will be created from the taxonomy name if none is added.',
182
- 'wpcf')
183
- . '<br /><br />'
184
- . '<strong>' . __('Visibility', 'wpcf') . '</strong>'
185
- . '<br /><br />'
186
- . __('Determine whether your post type will be visible on the admin menu to your users.',
187
- 'wpcf')
188
- . '<br /><br />'
189
- . '<strong>' . __('Select Post Types', 'wpcf') . '</strong>'
190
- . '<br /><br />'
191
- . __('Choose which post types this taxonomy should be associated with.',
192
- 'wpcf')
193
- . '<br /><br />'
194
- . '<strong>' . __('Labels', 'wpcf') . '</strong>'
195
- . '<br /><br />'
196
- . __('Labels are the text that is attached to your custom post type name. Examples of them in use are “Add New Post” (where “Add New” is the label”) and “Edit Post” (where “Edit” is the label). In normal circumstances the defaults will suffice.',
197
- 'wpcf')
198
- . '<br /><br />'
199
- . '<strong>' . __('Display Sections', 'wpcf') . '</strong>'
200
- . '<br /><br />'
201
- . __('Choose which sections to display on your “Add New” page.',
202
- 'wpcf')
203
- . '<br /><br />'
204
- . '<strong>' . __('Advanced Settings', 'wpcf') . '</strong>'
205
- . '<br /><br />'
206
- . __('Advanced settings give you even more control over your custom post type. You can read in detail what all of these settings do on our tutorial.',
207
- 'wpcf')
208
 
209
- ;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
210
  break;
 
211
  }
 
212
  return wpautop($help);
213
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
  /**
9
  * Returns contextual help.
10
+ *
11
  * @param type $page
12
+ * @param type $contextual_help
13
  */
14
+ function wpcf_admin_help($page, $contextual_help)
15
+ {
16
  $help = '';
17
  switch ($page) {
18
  // Custom Fields (list)
19
  case 'custom_fields':
20
+ $help.= ''
21
+ .__("Types plugin organizes custom fields in groups. Once you create a group, you can add the fields to it and control to what content it belongs.", 'wpcf')
22
+ .PHP_EOL
23
+ .PHP_EOL
24
+ .sprintf(
25
+ __('You can read more about Custom Fields in this tutorial: %s.', 'wpcf'),
26
+ '<a href="http://wp-types.com/user-guides/using-custom-fields/" target="_blank">http://wp-types.com/user-guides/using-custom-fields/ &raquo;</a>'
27
+ )
28
+ .PHP_EOL
29
+ .PHP_EOL
30
+ .__("On this page you can see your current custom field groups, as well as information about which post types and taxonomies they are attached to, and whether they are active or not.", 'wpcf')
31
+ .PHP_EOL
32
+ .PHP_EOL
33
+ .sprintf('<h3>%s</h3>', __('You have the following options:', 'wpcf'))
34
+ .'<dl>'
35
+ .'<dt>'.__('Add New', 'wpcf').'</dt>'
36
+ .'<dd>'.__('Use this to add a new custom fields group which can be attached to a post type', 'wpcf').'</dd>'
37
+ .'<dt>'.__('Edit', 'wpcf').'</dt>'
38
+ .'<dd>'.__('Click to edit the custom field group', 'wpcf').'</dd>'
39
+ .'<dt>'.__('Activate', 'wpcf').'</dt>'
40
+ .'<dd>'.__('Click to activate a custom field group', 'wpcf').'</dd>'
41
+ .'<dt>'.__('Deactivate', 'wpcf').'</dt>'
42
+ .'<dd>'.__('Click to deactivate a custom field group (this can be re-activated at a later date)', 'wpcf').'</dd>'
43
+ .'<dt>'.__('Delete', 'wpcf').'</dt>'
44
+ .'<dd>'.__('Click to delete a custom field group.', 'wpcf')
45
+ .' '
46
+ .sprintf('<strong>%s</strong>', __('Warning: This cannot be undone.', 'wpcf'))
47
+ .'</dd>'
48
+ .'</dl>'
49
+ ;
50
+ break;
51
+
52
+ case 'need-more-help':
53
+ $help .= sprintf('<h4>%s</h4>', __('Custom fields', 'wpcf'));
54
+ $help .= '<ul>';
55
+ $help .= sprintf(
56
+ '<li><a target="_blank" href="http://wp-types.com/documentation/user-guides/using-custom-fields/#1?utm_source=typesplugin&utm_medium=help&utm_term=adding-fields&utm_campaign=types">%s &raquo;</a></li>',
57
+ __('Adding custom fields to content', 'wpcf')
58
+ );
59
+ $help .= sprintf(
60
+ '<li><a target="_blank" href="http://wp-types.com/documentation/user-guides/displaying-wordpress-custom-fields/?utm_source=typesplugin&utm_medium=help&utm_term=displaying-fields&utm_campaign=types">%s &raquo;</a></li>',
61
+ __('Displaying custom fields on front-end', 'wpcf')
62
+ );
63
+ $help .= '</ul>';
64
+
65
+ $help .= sprintf('<h4>%s</h4>', __('User fields', 'wpcf'));
66
+ $help .= '<ul>';
67
+ $help .= sprintf(
68
+ '<li><a target="_blank" href="http://wp-types.com/documentation/user-guides/user-fields/?utm_source=typesplugin&utm_medium=help&utm_term=adding-user-fields&utm_campaign=types">%s &raquo;</a></li>',
69
+ __('Adding user fields to user profiles', 'wpcf')
70
+ );
71
+ $help .= sprintf(
72
+ '<li><a target="_blank" href="http://wp-types.com/documentation/user-guides/displaying-wordpress-user-fields/?utm_source=typesplugin&utm_medium=help&utm_term=displaying-user-fields&utm_campaign=types">%s &raquo;</a></li>',
73
+ __('Displaying user fields on front-end', 'wpcf')
74
+ );
75
+ $help .= '</ul>';
76
+
77
+ $help .= sprintf('<h4>%s</h4>', __('Custom post types and taxonomy', 'wpcf'));
78
+ $help .= '<ul>';
79
+ $help .= sprintf(
80
+ '<li><a target="_blank" href="http://wp-types.com/documentation/user-guides/create-a-custom-post-type/?utm_source=typesplugin&utm_medium=help&utm_term=custom-post-types&utm_campaign=types">%s &raquo;</a></li>',
81
+ __('Creating and using custom post types', 'wpcf')
82
+ );
83
+ $help .= sprintf(
84
+ '<li><a target="_blank" href="http://wp-types.com/documentation/user-guides/create-custom-taxonomies/?utm_source=typesplugin&utm_medium=help&utm_term=custom-taxonomy&utm_campaign=types">%s &raquo;</a></li>',
85
+ __('Arranging content with taxonomy', 'wpcf')
86
+ );
87
+ $help .= sprintf(
88
+ '<li><a target="_blank" href="http://wp-types.com/documentation/user-guides/creating-post-type-relationships/?utm_source=typesplugin&utm_medium=help&utm_term=post-relationship&utm_campaign=types">%s &raquo;</a></li>',
89
+ __('Creating parent / child relationships', 'wpcf')
90
+ );
91
+ $help .= '</ul>';
92
+
93
+ $help .= sprintf('<h4>%s</h4>', __('Access control', 'wpcf'));
94
+ $help .= '<ul>';
95
+ $help .= sprintf(
96
+ '<li><a target="_blank" href="http://wp-types.com/documentation/user-guides/access-control-for-user-fields/?utm_source=typesplugin&utm_medium=help&utm_term=access-fields&utm_campaign=types">%s &raquo;</a></li>',
97
+ __('Controlling which users can view and edit different fields', 'wpcf')
98
+ );
99
+ $help .= sprintf(
100
+ '<li><a target="_blank" href="http://wp-types.com/documentation/user-guides/setting-access-control/?utm_source=typesplugin&utm_medium=help&utm_term=access-post-types&utm_campaign=types">%s &raquo;</a></li>',
101
+ __('Controlling which users can access different post types', 'wpcf')
102
+ );
103
+ $help .= '</ul>';
104
+ break;
105
+
106
+ case 'custom_taxonomies_list':
107
  $help .= ''
108
+ . __('This is the your Custom Taxonomies list. It provides you with an overview of your data.', 'wpcf')
109
+ .PHP_EOL
110
+ .PHP_EOL
111
+ .sprintf(
112
+ __('You can read more about Custom Post Types and Taxonomies in this tutorial. %s', 'wpcf'),
113
+ '<a href="http://wp-types.com/learn/custom-post-types/" target="_blank">http://wp-types.com/learn/custom-post-types/ &raquo;</a>'
114
+ )
115
+ .PHP_EOL
116
+ .PHP_EOL
117
+ .sprintf('<h3>%s</h3>', __('On this page you have the following options:', 'wpcf'))
118
+ .'<dl>'
119
+ .'<dt>'.__('Add New', 'wpcf')
120
+ .'<dd>'.__('Use to create a new Custom Taxonomy', 'wpcf')
121
+ .'<dt>'.__('Edit', 'wpcf')
122
+ .'<dd>'.__('Click to edit the settings of a Custom Taxonomy', 'wpcf').'</dd>'
123
+ .'<dt>'.__('Deactivate', 'wpcf')
124
+ .'<dd>'.__('Click to deactivate a Custom Taxonomy (this can be reactivated at a later date)', 'wpcf').'</dd>'
125
+ .'<dt>'.__('Duplicate', 'wpcf')
126
+ .'<dd>'.__('Click to duplicate a Custom Taxonomy', 'wpcf').'</dd>'
127
+ .'<dt>'.__('Delete', 'wpcf')
128
+ .'<dd>'.__('Click to delete a Custom Taxonomy.', 'wpcf')
129
+ .' '
130
+ .sprintf('<strong>%s</strong>', __('Warning: This cannot be undone.', 'wpcf'))
131
+ .'</dd>'
132
+ .'</dl>';
133
  break;
134
 
135
+ case 'post_types_list':
136
+ $help .= ''
137
+ . __('This is the main admin page for built-in Post Types and your Custom Post Types. It provides you with an overview of your data.', 'wpcf')
138
+ .PHP_EOL
139
+ .PHP_EOL
140
+ .__('Post Types are built-in and user-defined content types.', 'wpcf')
141
+ .PHP_EOL
142
+ .PHP_EOL
143
+ .sprintf(
144
+ __('You can read more about Custom Post Types and Taxonomies in this tutorial. %s', 'wpcf'),
145
+ '<a href="http://wp-types.com/learn/custom-post-types/" target="_blank">http://wp-types.com/learn/custom-post-types/ &raquo;</a>'
146
+ )
147
+ .PHP_EOL
148
+ .PHP_EOL
149
+ .sprintf('<h3>%s</h3>', __('On this page you have the following options:', 'wpcf'))
150
+ .'<dl>'
151
+ .'<dt>'.__('Add New', 'wpcf').'</dt>'
152
+ .'<dd>'.__('Use to create a new Custom Post Type', 'wpcf').'</dd>'
153
+ .'<dt>'.__('Edit', 'wpcf').'</dt>'
154
+ .'<dd>'.__('Click to edit the settings of a Post Type', 'wpcf').'</dd>'
155
+ .'<dt>'.__('Deactivate', 'wpcf').'</dt>'
156
+ .'<dd>'.__('Click to deactivate a Custom Post Type (this can be reactivated at a later date)', 'wpcf').'</dd>'
157
+ .'<dt>'.__('Duplicate', 'wpcf')
158
+ .'<dd>'.__('Click to duplicate a Custom Post Type', 'wpcf').'</dd>'
159
+ .'<dt>'.__('Delete', 'wpcf').'</dt>'
160
+ .'<dd>'.__('Click to delete a Custom Post Type.', 'wpcf')
161
+ .' '
162
+ .sprintf('<strong>%s</strong>', __('Warning: This cannot be undone.', 'wpcf'))
163
+ .'</dd>'
164
+ .'</dl>'
165
+ ;
166
  break;
167
 
168
  // Import/Export page
169
  case 'import_export':
170
+ $help .=
171
+ __('Use this page to import and export custom post types, taxonomies and custom fields to and from Types.', 'wpcf')
172
+ . PHP_EOL
173
+ . PHP_EOL
 
 
174
  . __('On this page you have the following options:', 'wpcf')
175
+
176
+ . '<h3>' . __('Import Types data file', 'wpcf') . '</h3>'
177
+ . '<dl>'
178
+ .'<dt>' .__('Step 1:', 'wpcf') .'</dt>'
179
+ .'<dd>' .__('Choose and upload an XML file.', 'wpcf') .'</dd>'
180
+ .'<dt>' .__('Step 2:', 'wpcf') .'</dt>'
181
+ .'<dd>' . __('Select which custom post types, taxonomies and custom fields should be imported.', 'wpcf') .'</dd>'
182
+ .'</dl>'
183
+
184
+ .'<h3>' . __('Import Types data text input', 'wpcf') . '</h3>'
185
+ . '<dl>'
186
+ .'<dt>' .__('Step 1:', 'wpcf') .'</dt>'
187
+ .'<dd>' .__('Paste XML content directly into the text area.', 'wpcf') .'</dd>'
188
+ .'<dt>' .__('Step 2:', 'wpcf') .'</dt>'
189
+ .'<dd>' .__('Select which custom post types, taxonomies and custom fields should be imported.', 'wpcf') .'</dd>'
190
+ .'</dl>'
191
+
192
+ .'<h3>' . __('Export', 'wpcf') . '</h3>'
193
+ .__('Click Export to export data from Types as an XML file.', 'wpcf')
194
+ ;
195
  break;
196
 
197
  // Add/Edit group form page
198
  case 'edit_group':
199
+ $help .= ''
200
+ .__('This is the edit page for your Custom Fields Groups.', 'wpcf')
201
+ . PHP_EOL
202
+ . PHP_EOL
203
+ .sprintf(
204
+ __('You can read more about creating a Custom Fields Group here: %s', 'wpcf'),
205
+ '<a href="http://wp-types.com/user-guides/using-custom-fields/" target="_blank">http://wp-types.com/user-guides/using-custom-fields/ &raquo;</a>'
206
+ )
207
+ . PHP_EOL
208
+ . PHP_EOL
209
+ .__('On this page you can create and edit your groups. To create a group, do the following:', 'wpcf')
210
+ .'<ol style="list-style-type:decimal;"><li style="list-style-type:decimal;">'
211
+ .__('Add a Title', 'wpcf')
212
+ .'</li><li style="list-style-type:decimal;">'
213
+ .__('Choose where to display your group. You can attach this to both default WordPress post types and Custom Post Types. (nb: you can also associate taxonomy terms with Custom Field Groups)', 'wpcf')
214
+ .'</li><li style="list-style-type:decimal;">'
215
+ .__('To add a field click on the field you desire under “Available Fields” on the right hand side of your screen.This will be added to your Custom Field Group', 'wpcf')
216
+ .'</li><li style="list-style-type:decimal;">'
217
+ .__('Add information about your Custom Field', 'wpcf')
218
+ .'</li></ol>'
219
+ .'<h3>' .__('Tips', 'wpcf') .'</h3>'
220
+ .'<ul><li>'
221
+ .__('To ensure a user completes a field, check the box for validation required', 'wpcf')
222
+ .'</li><li>'
223
+ .__('Once you have created a field it will be saved for future use under "User created fields"', 'wpcf')
224
+ .'</li><li>'
225
+ .__('You can drag and drop the order of your custom fields using the blue icon', 'wpcf')
226
+ .'</li></ul>';
 
 
227
  break;
228
 
229
+ // Add/Edit custom type form page
230
  case 'edit_type':
231
+ $help .= ''
232
+ .__('Use this page to create a WordPress post type. If you’d like to learn more about Custom Post Types you can read our detailed guide: <a href="http://wp-types.com/learn/custom-post-types/" target="_blank">http://wp-types.com/learn/custom-post-types/</a> or check out our tutorial on creating them with Types: <a href="http://wp-types.com/user-guides/create-a-custom-post-type/" target="_blank">http://wp-types.com/user-guides/create-a-custom-post-type/ &raquo;</a>', 'wpcf')
233
+ .PHP_EOL
234
+ .PHP_EOL
235
+ .'<dt>'.__('Name and Description', 'wpcf').'</dt>'
236
+ .'<dd>'.__('Add a singular and plural name for your post type. You should also add a slug. This will be created from the post type name if none is added.', 'wpcf').'</dd>'
237
+ .'<dt>'.__('Visibility', 'wpcf').'</dt>'
238
+ .'<dd>'.__('Determine whether your post type will be visible on the admin menu to your users.', 'wpcf').'</dd>'
239
+ .'<dd>'.__('You can also adjust the menu position. The default position is 20, which means your post type will appear under “Pages”. You can find more information about menu positioning in the WordPress Codex. <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Parameters" target="_blank">http://codex.wordpress.org/Function_Reference/register_post_type#Parameters</a>', 'wpcf').'</dd>'
240
+ .'<dd>'.__('The default post type icon is the pushpin icon that appears beside WordPress posts. You can change this by adding your own icon of 16px x 16px.', 'wpcf').'</dd>'
241
+ .'<dt>'.__('Select Taxonomies', 'wpcf').'</dt>'
242
+ .'<dd>'.__('Choose which taxonomies are to be associated with this post type.', 'wpcf').'</dd>'
243
+ .'<dt>'.__('Labels', 'wpcf').'</dt>'
244
+ .'<dd>'.__('Labels are the text that is attached to your custom post type name. Examples of them in use are “Add New Post” (where “Add New” is the label”) and Edit Post” (where “Edit” is the label). In normal circumstances the defaults will suffice.', 'wpcf').'</dd>'
245
+ .'<dt>'.__('Custom Post Properites', 'wpcf').'</dt>'
246
+ .'<dd>'.__('Choose which sections to display on your “Add New” page.', 'wpcf').'</dd>'
247
+ .'<dt>'.__('Advanced Settings', 'wpcf').'</dt>'
248
+ .'<dd>'.__('Advanced settings give you even more control over your custom post type. You can read in detail what all of these settings do on our tutorial.', 'wpcf').'</dd>'
249
+ .'</dl>'
250
+ ;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
251
  break;
252
 
253
  // Add/Edit custom taxonomy form page
254
  case 'edit_tax':
255
+ $help .= ''
256
+ .__('You can use Custom Taxonomies to categorize your content. Read more about what they are on our website: <a href="http://wp-types.com/learn/custom-post-types/" target="_blank">http://wp-types.com/learn/custom-post-types/ &raquo;</a> or you can read our guide about how to set them up: <a href="http://wp-types.com/user-guides/create-custom-taxonomies/" target="_blank">http://wp-types.com/user-guides/create-custom-taxonomies/</a>', 'wpcf')
257
+ .'<dl>'
258
+ .'<dt>'.__('Name and Description', 'wpcf') .'</dt>'
259
+ .'<dd>'.__('Add a singular and plural name for your taxonomy. You should also add a slug. This will be created from the taxonomy name if none is added.', 'wpcf').'</dd>'
260
+ .'<dt>'.__('Visibility', 'wpcf') .'</dt>'
261
+ .'<dd>'.__('Determine whether your taxonomy will be visible on the admin menu to your users.', 'wpcf').'</dd>'
262
+ .'<dt>'.__('Select Post Types', 'wpcf') .'</dt>'
263
+ .'<dd>'.__('Choose which post types this taxonomy should be associated with.', 'wpcf').'</dd>'
264
+ .'<dt>'.__('Labels', 'wpcf') .'</dt>'
265
+ .'<dd>'.__('Labels are the text that is attached to your custom taxonomy name. Examples of them in use are “Add New Taxonomy” (where “Add New” is the label”) and “Edit Taxonomy” (where “Edit” is the label). In normal circumstances the defaults will suffice.', 'wpcf').'</dd>'
266
+ .'<dt>'.__('Options', 'wpcf') .'</dt>'
267
+ .'<dd>'.__('Advanced settings give you even more control over your custom taxonomy. You can read in detail what all of these settings do on our tutorial.', 'wpcf').'</dd>'
268
+ .'</dl>'
269
+ ;
270
+ break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
271
 
272
+ case 'user_fields_list':
273
+ $help .= ''
274
+ .__("Types plugin organizes User Fields in groups. Once you create a group, you can add the fields to it and control to what content it belongs.", 'wpcf')
275
+ .PHP_EOL
276
+ .PHP_EOL
277
+ .__("On this page you can see your current User Fields groups, as well as information about which user role they are attached to, and whether they are active or not.", 'wpcf')
278
+ . sprintf('<h3>%s</h3>', __('You have the following options:', 'wpcf'))
279
+ .'<dl>'
280
+ .'<dt>'.__('Add New', 'wpcf').'</dt>'
281
+ .'<dd>'.__('Use this to add a new User Fields Group', 'wpcf').'</dd>'
282
+ .'<dt>'.__('Edit', 'wpcf').'</dt>'
283
+ .'<dd>'.__('Click to edit the User Fields Group', 'wpcf').'</dd>'
284
+ .'<dt>'.__('Activate', 'wpcf').'</dt>'
285
+ .'<dd>'.__('Click to activate a User Fields Group', 'wpcf').'</dd>'
286
+ .'<dt>'.__('Deactivate', 'wpcf').'</dt>'
287
+ .'<dd>'.__('Click to deactivate a User Fields Group (this can be re-activated at a later date)', 'wpcf').'</dd>'
288
+ .'<dt>'.__('Delete', 'wpcf').'</dt>'
289
+ .'<dd>'.__('Click to delete a User Fields Group.', 'wpcf')
290
+ .' '
291
+ .sprintf('<strong>%s</strong>', __('Warning: This cannot be undone.', 'wpcf'))
292
+ .'</dd>'
293
+ .'</dl>'
294
+ ;
295
+ break;
296
+
297
+ case 'user_fields_edit':
298
+ $help .= ''
299
+ .__('This is the edit page for your User Fields Group.', 'wpcf')
300
+ .PHP_EOL
301
+ .PHP_EOL
302
+ . __('On this page you can create and edit your group. To create a group, do the following:', 'wpcf')
303
+ .'<ol><li>'
304
+ . __('Add a Title', 'wpcf')
305
+ .'</li><li>'
306
+ . __('Choose where to display your group. You can attach this to both default WordPress post types and User Post Types. (nb: you can also associate taxonomy terms with User Field Groups)', 'wpcf')
307
+ .'</li><li>'
308
+ . __('To add a field click on the field you desire under “Available Fields” on the right hand side of your screen. This will be added to your User Field Group', 'wpcf')
309
+ .'</li><li>'
310
+ . __('Add information about your User Field', 'wpcf')
311
+ .'</li></ol>'
312
+ .'<h3>' . __('Tips', 'wpcf') .'</h3>'
313
+ .'<ul><li>'
314
+ . __('To ensure a user completes a field, check the box for validation required', 'wpcf')
315
+ .'</li><li>'
316
+ . __('Once you have created a field it will be saved for future use under "User created fields"', 'wpcf')
317
+ .'</li><li>'
318
+ . __('You can drag and drop the order of your custom fields using the blue icon', 'wpcf')
319
+ .'</li></ul>';
320
  break;
321
+
322
  }
323
+
324
  return wpautop($help);
325
  }
326
+
327
+ function wpcf_admin_help_add_tabs($call, $hook, $contextual_help = '')
328
+ {
329
+
330
+ set_current_screen( $hook );
331
+ $screen = get_current_screen();
332
+ if ( is_null( $screen ) ) {
333
+ return;
334
+ }
335
+
336
+ $title = __( 'Types', 'wpcf' );
337
+
338
+ switch($call) {
339
+
340
+ case 'edit_type':
341
+ $title = __( 'Post Type', 'wpcf' );
342
+ break;
343
+
344
+ case 'post_types_list':
345
+ $title = __( 'Post Types', 'wpcf' );
346
+ break;
347
+
348
+ case 'custom_taxonomies_list':
349
+ $title = __( 'Custom Taxonomies', 'wpcf' );
350
+ break;
351
+
352
+ case 'edit_tax':
353
+ $title = __( 'Taxonomy', 'wpcf' );
354
+ break;
355
+
356
+ case 'custom_fields':
357
+ $title = __('Custom Fields', 'wpcf');
358
+ break;
359
+
360
+ case 'edit_group':
361
+ $title = __('Custom Fields Group', 'wpcf');
362
+ break;
363
+
364
+ case 'user_fields_list':
365
+ $title = __('User Fields Groups', 'wpcf');
366
+ break;
367
+
368
+ case 'user_fields_edit':
369
+ $title = __('User Fields Group', 'wpcf');
370
+ break;
371
+
372
+ case 'import_export':
373
+ $title = __('Import/Export', 'wpcf');
374
+ break;
375
+
376
+ }
377
+
378
+ $args = array(
379
+ 'title' => $title,
380
+ 'id' => 'wpcf',
381
+ 'content' => wpcf_admin_help( $call, $contextual_help),
382
+ 'callback' => false,
383
+ );
384
+ $screen->add_help_tab( $args );
385
+
386
+ /**
387
+ * Need Help section for a bit advertising
388
+ */
389
+ $args = array(
390
+ 'title' => __( 'Need More Help?', 'wpcf' ),
391
+ 'id' => 'custom_fields_group-need-help',
392
+ 'content' => wpcf_admin_help( 'need-more-help', $contextual_help ),
393
+ 'callback' => false,
394
+ );
395
+ $screen->add_help_tab( $args );
396
+
397
+ }
includes/ajax.php CHANGED
@@ -6,12 +6,132 @@
6
  * @global object $wpdb
7
  *
8
  */
9
- function wpcf_ajax() {
10
- if (!current_user_can('manage_options')
11
- || (!isset($_REQUEST['_wpnonce'])
12
- || !wp_verify_nonce($_REQUEST['_wpnonce'], $_REQUEST['wpcf_action']))) {
13
- die();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  }
 
 
 
 
 
15
  switch ($_REQUEST['wpcf_action']) {
16
  /* User meta actions*/
17
  case 'user_fields_control_bulk':
@@ -27,11 +147,11 @@ function wpcf_ajax() {
27
  require_once WPCF_INC_ABSPATH . '/fields.php';
28
  if (isset($_GET['field_id'])) {
29
  $field_id = sanitize_text_field( $_GET['field_id'] );
30
- wpcf_admin_fields_delete_field($field_id,'wp-types-user-group','wpcf-usermeta');
31
  }
32
  if (isset($_GET['field'])) {
33
  $field = sanitize_text_field( $_GET['field'] );
34
- wpcf_admin_fields_delete_field($field,'wp-types-user-group','wpcf-usermeta');
35
  }
36
  echo json_encode(array(
37
  'output' => ''
@@ -53,47 +173,48 @@ function wpcf_ajax() {
53
  case 'deactivate_user_group':
54
  require_once WPCF_INC_ABSPATH . '/fields.php';
55
  require_once WPCF_INC_ABSPATH . '/usermeta.php';
56
- $success = wpcf_admin_fields_deactivate_group(intval($_GET['group_id']), 'wp-types-user-group');
57
  if ($success) {
58
  echo json_encode(
59
  array(
60
  'output' => __('Group deactivated', 'wpcf'),
61
- 'execute' => 'location.reload();',
 
62
  )
63
  );
64
  } else {
65
- echo json_encode(array(
66
- 'output' => __('Error occured', 'wpcf')
67
- ));
68
  }
69
  break;
70
 
71
  case 'activate_user_group':
72
  require_once WPCF_INC_ABSPATH . '/fields.php';
73
  require_once WPCF_INC_ABSPATH . '/usermeta.php';
74
- $success = wpcf_admin_fields_activate_group(intval($_GET['group_id']), 'wp-types-user-group');
75
  if ($success) {
76
  echo json_encode(
77
  array(
78
  'output' => __('Group activated', 'wpcf'),
79
- 'execute' => 'location.reload();',
 
80
  )
81
  );
82
  } else {
83
- echo json_encode(array(
84
- 'output' => __('Error occured', 'wpcf')
85
- ));
86
  }
87
  break;
88
 
89
  case 'delete_usermeta_group':
90
  require_once WPCF_INC_ABSPATH . '/fields.php';
91
  require_once WPCF_INC_ABSPATH . '/usermeta.php';
92
- wpcf_admin_fields_delete_group(intval($_GET['group_id']), 'wp-types-user-group');
93
  echo json_encode(
94
  array(
95
  'output' => '',
96
- 'execute' => 'location.reload();',
 
97
  )
98
  );
99
  break;
@@ -136,13 +257,12 @@ function wpcf_ajax() {
136
  echo json_encode(
137
  array(
138
  'output' => __('Group deactivated', 'wpcf'),
139
- 'execute' => 'location.reload();',
 
140
  )
141
  );
142
  } else {
143
- echo json_encode(array(
144
- 'output' => __('Error occured', 'wpcf')
145
- ));
146
  }
147
  break;
148
 
@@ -153,13 +273,12 @@ function wpcf_ajax() {
153
  echo json_encode(
154
  array(
155
  'output' => __('Group activated', 'wpcf'),
156
- 'execute' => 'location.reload();',
 
157
  )
158
  );
159
  } else {
160
- echo json_encode(array(
161
- 'output' => __('Error occured', 'wpcf')
162
- ));
163
  }
164
  break;
165
 
@@ -169,64 +288,54 @@ function wpcf_ajax() {
169
  echo json_encode(
170
  array(
171
  'output' => '',
172
- 'execute' => 'location.reload();',
 
173
  )
174
  );
175
  break;
176
 
177
  case 'deactivate_post_type':
178
- if (!isset($_GET['wpcf-post-type'])) {
179
- die();
 
180
  }
181
-
182
- require_once WPCF_INC_ABSPATH . '/custom-types.php';
183
  $custom_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
184
- if (isset($custom_types[$_GET['wpcf-post-type']])) {
185
- $custom_types[$_GET['wpcf-post-type']]['disabled'] = 1;
186
- $custom_types[$_GET['wpcf-post-type']][TOOLSET_EDIT_LAST] = time();
187
- update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $custom_types);
188
- echo json_encode(
189
- array(
190
- 'output' => __('Post type deactivated', 'wpcf'),
191
- 'execute' => 'location.reload();',
192
- )
193
- );
194
- } else {
195
- echo json_encode(array(
196
- 'output' => __('Error occured', 'wpcf')
197
- ));
198
- }
199
  break;
200
 
201
  case 'activate_post_type':
202
- if (!isset($_GET['wpcf-post-type'])) {
203
- die();
 
204
  }
205
- require_once WPCF_INC_ABSPATH . '/custom-types.php';
206
  $custom_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
207
- if (isset($custom_types[$_GET['wpcf-post-type']])) {
208
- unset($custom_types[$_GET['wpcf-post-type']]['disabled']);
209
- $custom_types[$_GET['wpcf-post-type']][TOOLSET_EDIT_LAST] = time();
210
- update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $custom_types);
211
- echo json_encode(
212
- array (
213
- 'output' => __('Post type activated', 'wpcf'),
214
- 'execute' => 'location.reload();',
215
- )
216
- );
217
- } else {
218
- echo json_encode(array(
219
- 'output' => __('Error occured', 'wpcf')
220
- ));
221
- }
222
  break;
223
 
224
  case 'delete_post_type':
225
- if (!isset($_GET['wpcf-post-type'])) {
226
- die();
 
227
  }
228
- $custom_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
229
- $custom_type = strval($_GET['wpcf-post-type']);
230
 
231
  /**
232
  * Delete relation between custom posts types
@@ -239,258 +348,247 @@ function wpcf_ajax() {
239
  * @param bool $delete True or false flag to delete relationships.
240
  * @param string $var Currently deleted custom post type.
241
  */
242
- if ( apply_filters('wpcf_delete_relation_meta', false, $custom_type) ) {
243
  global $wpdb;
244
  $wpdb->delete(
245
  $wpdb->postmeta,
246
- array( 'meta_key' => sprintf( '_wpcf_belongs_%s_id', $custom_type ) ),
247
  array( '%s' )
248
  );
249
  }
250
 
251
- unset($custom_types[$custom_type]);
252
  /**
253
  * remove post relation
254
  */
255
- foreach ( array_keys($custom_types) as $post_type ) {
256
- if ( array_key_exists( 'post_relationship', $custom_types[$post_type] ) ) {
257
  /**
258
  * remove "has" relation
259
  */
260
  if (
261
- array_key_exists( 'has', $custom_types[$post_type]['post_relationship'] )
262
- && array_key_exists( $custom_type, $custom_types[$post_type]['post_relationship']['has'] )
263
  ) {
264
- unset($custom_types[$post_type]['post_relationship']['has'][$custom_type]);
265
- $custom_types[$post_type][TOOLSET_EDIT_LAST] = time();
266
  }
267
  /**
268
  * remove "belongs" relation
269
  */
270
  if (
271
- array_key_exists( 'belongs', $custom_types[$post_type]['post_relationship'] )
272
- && array_key_exists( $custom_type, $custom_types[$post_type]['post_relationship']['belongs'] )
273
  ) {
274
- unset($custom_types[$post_type]['post_relationship']['belongs'][$custom_type]);
275
- $custom_types[$post_type][TOOLSET_EDIT_LAST] = time();
276
  }
277
  }
278
  }
279
- update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $custom_types);
280
- wpcf_admin_deactivate_content('post_type', $custom_type);
281
  echo json_encode(
282
  array(
283
  'output' => '',
284
- 'execute' => 'location.reload();',
 
285
  )
286
  );
287
  break;
288
 
289
  case 'duplicate_post_type':
290
- if (!isset($_GET['wpcf-post-type'])) {
291
- die();
292
- }
293
- $custom_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
294
- $custom_type = esc_html(strval($_GET['wpcf-post-type']));
295
-
296
-
297
- if ( isset($custom_types[$custom_type]) ) {
298
- $i = 0;
299
- $key = false;
300
- do {
301
- $key = sprintf($custom_type.'-%d',++$i);
302
- } while( isset($custom_types[$key]) );
303
- if ( $key ) {
304
- /**
305
- * duplicate custom post type
306
- */
307
- $custom_types[$key] = $custom_types[$custom_type];
308
- /**
309
- * update some options
310
- */
311
- $custom_types[$key]['labels']['name'] .= sprintf(' (%d)', $i);
312
- $custom_types[$key]['labels']['singular_name'] .= sprintf(' (%d)', $i);
313
- $custom_types[$key]['slug'] = $key;
314
- $custom_types[$key]['__types_id'] = $key;
315
-
316
- /**
317
- * update custom post types
318
- */
319
- update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $custom_types);
320
-
321
- /**
322
- * update custom taxonomies too
323
- */
324
- $custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
325
- foreach( $custom_taxonomies as $taxonomy_key => $taxonomy_data) {
326
- if (
327
- isset( $taxonomy_data['supports'])
328
- && isset( $taxonomy_data['supports'][$custom_type])
329
- ) {
330
- $custom_taxonomies[$taxonomy_key]['supports'][$key] = 1;
331
- }
332
  }
333
- update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $custom_taxonomies);
334
-
335
- echo json_encode(array(
336
- 'execute' => 'location.reload();',
337
- ));
338
  }
339
- } else {
 
340
  echo json_encode(array(
341
- 'output' => __('Error occured', 'wpcf')
 
342
  ));
343
  }
344
  break;
345
 
346
  case 'taxonomy_duplicate':
347
- if (!isset($_GET['wpcf-tax'])) {
348
- die();
 
349
  }
350
- $custom_taxonomy = esc_html(strval($_GET['wpcf-tax']));
351
- require_once WPCF_INC_ABSPATH . '/custom-taxonomies.php';
352
  $custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
353
- if (isset($custom_taxonomies[$custom_taxonomy])) {
354
- $i = 0;
355
- $key = false;
356
- do {
357
- $key = sprintf($custom_taxonomy.'-%d',++$i);
358
- } while( isset($custom_taxonomies[$key]) );
359
- if ( $key ) {
360
- /**
361
- * duplicate custom taxonomies
362
- */
363
- $custom_taxonomies[$key] = $custom_taxonomies[$custom_taxonomy];
364
-
365
- /**
366
- * update some options
367
- */
368
- $custom_taxonomies[$key]['labels']['name'] .= sprintf(' (%d)', $i);
369
- $custom_taxonomies[$key]['labels']['singular_name'] .= sprintf(' (%d)', $i);
370
- $custom_taxonomies[$key]['slug'] = $key;
371
- $custom_taxonomies[$key]['id'] = $key;
372
- $custom_taxonomies[$key]['__types_id'] = $key;
373
-
374
- /**
375
- * update custom taxonomies
376
- */
377
- update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $custom_taxonomies);
378
-
379
- /**
380
- * update post types
381
- */
382
- if (
383
- isset( $custom_taxonomies[$key]['supports'] )
384
- && is_array($custom_taxonomies[$key]['supports'])
385
- && !empty($custom_taxonomies[$key]['supports'])
386
- ) {
387
- $custom_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
388
- foreach( array_keys($custom_taxonomies[$key]['supports']) as $custom_type ) {
389
- /**
390
- * avoid to create fake CPT from old data
391
- */
392
- if ( !isset($custom_types[$custom_type])) {
393
- continue;
394
- }
395
- if ( !isset($custom_types[$custom_type]['taxonomies']) ) {
396
- $custom_types[$custom_type]['taxonomies'] = array();
397
- }
398
- $custom_types[$custom_type]['taxonomies'][$key] = 1;
399
- }
400
 
 
 
 
 
 
 
 
 
 
 
401
  /**
402
- * update custom post types
403
  */
404
- update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $custom_types);
 
 
 
 
 
 
405
  }
406
- echo json_encode(array(
407
- 'execute' => 'location.reload();',
408
- ));
 
 
409
  }
410
- } else {
411
  echo json_encode(array(
412
- 'output' => __('Error occured', 'wpcf')
 
413
  ));
414
  }
415
  break;
416
 
417
  case 'deactivate_taxonomy':
418
- if (!isset($_GET['wpcf-tax'])) {
419
- die();
 
420
  }
421
- require_once WPCF_INC_ABSPATH . '/custom-taxonomies.php';
422
  $custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
423
- if (isset($custom_taxonomies[$_GET['wpcf-tax']])) {
424
- $custom_taxonomies[$_GET['wpcf-tax']]['disabled'] = 1;
425
- $custom_taxonomies[$_GET['wpcf-tax']][TOOLSET_EDIT_LAST] = time();
426
  update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $custom_taxonomies);
427
  echo json_encode(
428
  array(
429
  'output' => __('Taxonomy deactivated', 'wpcf'),
430
- 'execute' => 'location.reload();',
 
431
  )
432
  );
433
  } else {
434
- echo json_encode(array(
435
- 'output' => __('Error occured', 'wpcf')
436
- ));
437
  }
438
  break;
439
 
440
  case 'activate_taxonomy':
441
- if (!isset($_GET['wpcf-tax'])) {
442
- die();
 
443
  }
444
- require_once WPCF_INC_ABSPATH . '/custom-taxonomies.php';
445
  $custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
446
- if (isset($custom_taxonomies[$_GET['wpcf-tax']])) {
447
- $custom_taxonomies[$_GET['wpcf-tax']]['disabled'] = 0;
448
- $custom_taxonomies[$_GET['wpcf-tax']][TOOLSET_EDIT_LAST] = time();
449
  update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $custom_taxonomies);
450
  echo json_encode(
451
  array (
452
  'output' => __('Taxonomy activated', 'wpcf'),
453
- 'execute' => 'location.reload();',
 
454
  )
455
  );
456
  } else {
457
- echo json_encode(array(
458
- 'output' => __('Error occured', 'wpcf')
459
- ));
460
  }
461
  break;
462
 
463
  case 'delete_taxonomy':
464
- if (!isset($_GET['wpcf-tax'])) {
465
- die();
 
466
  }
467
  $custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
468
- $custom_taxonomy = strval($_GET['wpcf-tax']);
469
  unset($custom_taxonomies[$custom_taxonomy]);
470
  update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $custom_taxonomies);
471
  wpcf_admin_deactivate_content('taxonomy', $custom_taxonomy);
472
  echo json_encode(
473
  array(
474
  'output' => '',
475
- 'execute' => 'location.reload();',
 
476
  )
477
  );
478
  break;
479
 
480
  case 'add_radio_option':
481
  require_once WPCF_INC_ABSPATH . '/fields/radio.php';
482
- $element = wpcf_fields_radio_get_option(
483
- urldecode($_GET['parent_name']));
484
  $id = array_shift($element);
485
- $element_txt = wpcf_fields_radio_get_option_alt_text($id,
486
- urldecode($_GET['parent_name']));
487
- echo json_encode(array(
488
- 'output' => wpcf_form_simple($element),
489
- 'execute' => 'jQuery("#wpcf-form-groups-radio-ajax-response-'
490
- . urldecode($_GET['wpcf_ajax_update_add']) . '").append(\''
491
- . trim(str_replace("\r\n", '', wpcf_form_simple($element_txt))) . '\');',
492
  'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
493
- ));
 
494
  break;
495
 
496
  case 'add_select_option':
@@ -533,67 +631,6 @@ function wpcf_ajax() {
533
  wpcf_admin_form_fieldset_save_toggle($action, $fieldset);
534
  break;
535
 
536
- case 'group_update_post_types':
537
- require_once WPCF_INC_ABSPATH . '/fields.php';
538
- // @todo Sanitize this $post_types
539
- $post_types = empty($_GET['wpcf']['group']['supports']) ? array() : $_GET['wpcf']['group']['supports'];
540
- if (!empty($_GET['group_id'])) {
541
- wpcf_admin_fields_save_group_post_types(sanitize_text_field($_GET['group_id']),
542
- $post_types);
543
- $output = array();
544
- foreach ($post_types as $post_type) {
545
- $post_type = get_post_type_object($post_type);
546
- if (!empty($post_type->label)) {
547
- $output[] = $post_type->label;
548
- }
549
- }
550
- if (empty($post_types)) {
551
- $output[] = __('No post types associated', 'wpcf');
552
- }
553
- $output = implode(', ', $output);
554
- } else {
555
- $output = __('No post types associated', 'wpcf');
556
- }
557
- echo json_encode(array(
558
- 'output' => $output
559
- ));
560
- break;
561
-
562
- case 'group_update_taxonomies':
563
- require_once WPCF_INC_ABSPATH . '/fields.php';
564
- $taxonomies_post = empty($_GET['wpcf']['group']['taxonomies']) ? array() : $_GET['wpcf']['group']['taxonomies'];
565
- $terms = array();
566
- foreach ($taxonomies_post as $taxonomy) {
567
- foreach ($taxonomy as $tax => $term) {
568
- $terms[] = $term;
569
- }
570
- }
571
- if (!empty($_GET['group_id'])) {
572
- wpcf_admin_fields_save_group_terms(sanitize_text_field($_GET['group_id']), $terms);
573
- $output = array();
574
- foreach ($taxonomies_post as $taxonomy => $terms) {
575
- $taxonomy = get_taxonomy($taxonomy);
576
- if (!empty($taxonomy)) {
577
- $title = $taxonomy->label . ': ';
578
- foreach ($terms as $term_id) {
579
- $term = get_term($term_id, $taxonomy->name);
580
- $output[] = $title . $term->name;
581
- $title = '';
582
- }
583
- }
584
- }
585
- if (empty($output)) {
586
- $output[] = __('No taxonomies associated', 'wpcf');
587
- }
588
- $output = implode(', ', $output);
589
- } else {
590
- $output = __('No taxonomies associated', 'wpcf');
591
- }
592
- echo json_encode(array(
593
- 'output' => $output
594
- ));
595
- break;
596
-
597
  case 'custom_fields_control_bulk':
598
  require_once WPCF_INC_ABSPATH . '/fields.php';
599
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields.php';
@@ -648,15 +685,11 @@ function wpcf_ajax() {
648
  'output' => $output,
649
  ));
650
  } else {
651
- echo json_encode(array(
652
- 'output' => __('Error occured', 'wpcf'),
653
- ));
654
  }
655
  }
656
  } else {
657
- echo json_encode(array(
658
- 'output' => __('Error occured', 'wpcf'),
659
- ));
660
  }
661
  break;
662
 
@@ -692,8 +725,7 @@ function wpcf_ajax() {
692
  $field = wpcf_admin_fields_get_field(sanitize_text_field($_GET['field']), false, false,
693
  false, $option);
694
 
695
- $_txt_updates = $meta_type == 'usermeta' ? __( '%d users require update',
696
- 'wpcf' ) : __( '%d posts require update', 'wpcf' );
697
  $_txt_no_updates = $meta_type == 'usermeta' ? __('No users require update', 'wpcf') : __('No posts require update', 'wpcf');
698
  $_txt_updated = $meta_type == 'usermeta' ? __('Users updated', 'wpcf') : __('Posts updated', 'wpcf');
699
 
@@ -718,7 +750,7 @@ function wpcf_ajax() {
718
  $output .= $_GET['subaction'] == 'save_check' ? 'save' : 'do_not_save';
719
  $output .= '\', \'' . $meta_type . '\');'
720
  . '">'
721
- . __('Update') . '</a>' . '</p></div>';
722
  } else {
723
  $output = '<div class="message updated"><p><em>'
724
  . $_txt_no_updates . '</em></p></div>';
@@ -734,8 +766,7 @@ function wpcf_ajax() {
734
  }
735
  if (isset($posts['offset'])) {
736
  if (!isset($_GET['total'])) {
737
- $output = '<span style="color:red;">'
738
- . __('Error occured', 'wpcf') . '</div>';
739
  } else {
740
  $output = '<script type="text/javascript">wpcfCbMigrateStep('
741
  . intval($_GET['total']) . ','
@@ -748,8 +779,10 @@ function wpcf_ajax() {
748
  . '<div class="wpcf-ajax-loading-small"></div>';
749
  }
750
  } else {
751
- $output = '<div class="message updated"><p>'
752
- . $_txt_updated . '</p></div>';
 
 
753
  }
754
  }
755
  }
@@ -764,3 +797,43 @@ function wpcf_ajax() {
764
  }
765
  die();
766
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  * @global object $wpdb
7
  *
8
  */
9
+ function wpcf_ajax()
10
+ {
11
+ /**
12
+ * check nounce
13
+ */
14
+ if ( !(isset($_REQUEST['_wpnonce']) && wp_verify_nonce($_REQUEST['_wpnonce'], $_REQUEST['wpcf_action']))) {
15
+ die();
16
+ }
17
+ require_once WPCF_INC_ABSPATH.'/classes/class.wpcf.roles.php';
18
+
19
+ /**
20
+ * check permissions
21
+ */
22
+ switch ($_REQUEST['wpcf_action']) {
23
+ case 'deactivate_post_type':
24
+ case 'activate_post_type':
25
+ case 'delete_post_type':
26
+ case 'duplicate_post_type':
27
+ $post_type = wpcf_ajax_helper_get_post_type();
28
+ if ( empty($post_type) ) {
29
+ wpcf_ajax_helper_print_error_and_die();
30
+ }
31
+ if ( !WPCF_Roles::user_can_edit_custom_post_by_slug($post_type)) {
32
+ echo json_encode(
33
+ array(
34
+ 'output' => __('Missing required data.', 'wpcf'),
35
+ )
36
+ );
37
+ die;
38
+ }
39
+ break;
40
+ case 'taxonomy_duplicate':
41
+ case 'deactivate_taxonomy':
42
+ case 'activate_taxonomy':
43
+ case 'delete_taxonomy':
44
+ $custom_taxonomy = wpcf_ajax_helper_get_taxonomy();
45
+ if ( empty($custom_taxonomy) ) {
46
+ wpcf_ajax_helper_print_error_and_die();
47
+ }
48
+ if ( !WPCF_Roles::user_can_edit_custom_taxonomy_by_slug($custom_taxonomy)) {
49
+ echo json_encode(
50
+ array(
51
+ 'output' => __('Verification failed.', 'wpcf'),
52
+ )
53
+ );
54
+ die;
55
+ }
56
+ break;
57
+ case 'deactivate_group':
58
+ case 'activate_group':
59
+ case 'delete_group':
60
+ if (!isset($_GET['group_id']) || empty($_GET['group_id'])) {
61
+ echo json_encode(
62
+ array(
63
+ 'output' => __('Missing required data.', 'wpcf'),
64
+ )
65
+ );
66
+ die;
67
+ }
68
+ if ( !WPCF_Roles::user_can_edit_custom_field_group_by_id($_GET['group_id'])) {
69
+ echo json_encode(
70
+ array(
71
+ 'output' => __('Verification failed.', 'wpcf'),
72
+ )
73
+ );
74
+ die;
75
+ }
76
+ break;
77
+ case 'deactivate_user_group':
78
+ case 'activate_user_group':
79
+ case 'delete_usermeta_group':
80
+ if (!isset($_GET['group_id']) || empty($_GET['group_id'])) {
81
+ echo json_encode(
82
+ array(
83
+ 'output' => __('Missing required data.', 'wpcf'),
84
+ )
85
+ );
86
+ die;
87
+ }
88
+ if ( !WPCF_Roles::user_can_edit_usermeta_field_group_by_id($_GET['group_id'])) {
89
+ echo json_encode(
90
+ array(
91
+ 'output' => __('Verification failed.', 'wpcf'),
92
+ )
93
+ );
94
+ die;
95
+ }
96
+ break;
97
+ break;
98
+ /*
99
+ case 'user_fields_control_bulk':
100
+ case 'usermeta_delete':
101
+ case 'delete_usermeta':
102
+ case 'remove_from_history2':
103
+ case 'usermeta_insert_existing':
104
+ case 'fields_insert':
105
+ case 'fields_insert_existing':
106
+ case 'remove_field_from_group':
107
+ case 'add_radio_option':
108
+ case 'add_select_option':
109
+ case 'add_checkboxes_option':
110
+ case 'group_form_collapsed':
111
+ case 'form_fieldset_toggle':
112
+ case 'custom_fields_control_bulk':
113
+ case 'fields_delete':
114
+ case 'delete_field':
115
+ case 'remove_from_history':
116
+ case 'add_condition':
117
+ case 'pt_edit_fields':
118
+ case 'toggle':
119
+ case 'cb_save_empty_migrate':
120
+ */
121
+ default:
122
+ if ( !current_user_can('manage_options') ) {
123
+ echo json_encode(
124
+ array(
125
+ 'output' => __('Verification failed.', 'wpcf'),
126
+ )
127
+ );
128
+ die;
129
  }
130
+ }
131
+
132
+ /**
133
+ * do actions
134
+ */
135
  switch ($_REQUEST['wpcf_action']) {
136
  /* User meta actions*/
137
  case 'user_fields_control_bulk':
147
  require_once WPCF_INC_ABSPATH . '/fields.php';
148
  if (isset($_GET['field_id'])) {
149
  $field_id = sanitize_text_field( $_GET['field_id'] );
150
+ wpcf_admin_fields_delete_field($field_id,TYPES_USER_META_FIELD_GROUP_CPT_NAME,'wpcf-usermeta');
151
  }
152
  if (isset($_GET['field'])) {
153
  $field = sanitize_text_field( $_GET['field'] );
154
+ wpcf_admin_fields_delete_field($field,TYPES_USER_META_FIELD_GROUP_CPT_NAME,'wpcf-usermeta');
155
  }
156
  echo json_encode(array(
157
  'output' => ''
173
  case 'deactivate_user_group':
174
  require_once WPCF_INC_ABSPATH . '/fields.php';
175
  require_once WPCF_INC_ABSPATH . '/usermeta.php';
176
+ $success = wpcf_admin_fields_deactivate_group(intval($_GET['group_id']), TYPES_USER_META_FIELD_GROUP_CPT_NAME);
177
  if ($success) {
178
  echo json_encode(
179
  array(
180
  'output' => __('Group deactivated', 'wpcf'),
181
+ 'execute' => 'reload',
182
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
183
  )
184
  );
185
  } else {
186
+ wpcf_ajax_helper_print_error_and_die();
187
+ die;
 
188
  }
189
  break;
190
 
191
  case 'activate_user_group':
192
  require_once WPCF_INC_ABSPATH . '/fields.php';
193
  require_once WPCF_INC_ABSPATH . '/usermeta.php';
194
+ $success = wpcf_admin_fields_activate_group(intval($_GET['group_id']), TYPES_USER_META_FIELD_GROUP_CPT_NAME);
195
  if ($success) {
196
  echo json_encode(
197
  array(
198
  'output' => __('Group activated', 'wpcf'),
199
+ 'execute' => 'reload',
200
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
201
  )
202
  );
203
  } else {
204
+ wpcf_ajax_helper_print_error_and_die();
205
+ die;
 
206
  }
207
  break;
208
 
209
  case 'delete_usermeta_group':
210
  require_once WPCF_INC_ABSPATH . '/fields.php';
211
  require_once WPCF_INC_ABSPATH . '/usermeta.php';
212
+ wpcf_admin_fields_delete_group(intval($_GET['group_id']), TYPES_USER_META_FIELD_GROUP_CPT_NAME);
213
  echo json_encode(
214
  array(
215
  'output' => '',
216
+ 'execute' => 'reload',
217
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
218
  )
219
  );
220
  break;
257
  echo json_encode(
258
  array(
259
  'output' => __('Group deactivated', 'wpcf'),
260
+ 'execute' => 'reload',
261
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
262
  )
263
  );
264
  } else {
265
+ wpcf_ajax_helper_print_error_and_die();
 
 
266
  }
267
  break;
268
 
273
  echo json_encode(
274
  array(
275
  'output' => __('Group activated', 'wpcf'),
276
+ 'execute' => 'reload',
277
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
278
  )
279
  );
280
  } else {
281
+ wpcf_ajax_helper_print_error_and_die();
 
 
282
  }
283
  break;
284
 
288
  echo json_encode(
289
  array(
290
  'output' => '',
291
+ 'execute' => 'reload',
292
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
293
  )
294
  );
295
  break;
296
 
297
  case 'deactivate_post_type':
298
+ $post_type = wpcf_ajax_helper_get_post_type();
299
+ if ( empty($post_type) ) {
300
+ wpcf_ajax_helper_print_error_and_die();
301
  }
 
 
302
  $custom_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
303
+ $custom_types[$post_type]['disabled'] = 1;
304
+ $custom_types[$post_type][TOOLSET_EDIT_LAST] = time();
305
+ update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $custom_types);
306
+ echo json_encode(
307
+ array(
308
+ 'output' => __('Post type deactivated', 'wpcf'),
309
+ 'execute' => 'reload',
310
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
311
+ )
312
+ );
 
 
 
 
 
313
  break;
314
 
315
  case 'activate_post_type':
316
+ $post_type = wpcf_ajax_helper_get_post_type();
317
+ if ( empty($post_type) ) {
318
+ wpcf_ajax_helper_print_error_and_die();
319
  }
 
320
  $custom_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
321
+ unset($custom_types[$post_type]['disabled']);
322
+ $custom_types[$post_type][TOOLSET_EDIT_LAST] = time();
323
+ update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $custom_types);
324
+ echo json_encode(
325
+ array (
326
+ 'output' => __('Post type activated', 'wpcf'),
327
+ 'execute' => 'reload',
328
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
329
+ )
330
+ );
 
 
 
 
 
331
  break;
332
 
333
  case 'delete_post_type':
334
+ $post_type = wpcf_ajax_helper_get_post_type();
335
+ if ( empty($post_type) ) {
336
+ wpcf_ajax_helper_print_error_and_die();
337
  }
338
+ $post_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
 
339
 
340
  /**
341
  * Delete relation between custom posts types
348
  * @param bool $delete True or false flag to delete relationships.
349
  * @param string $var Currently deleted custom post type.
350
  */
351
+ if ( apply_filters('wpcf_delete_relation_meta', false, $post_type) ) {
352
  global $wpdb;
353
  $wpdb->delete(
354
  $wpdb->postmeta,
355
+ array( 'meta_key' => sprintf( '_wpcf_belongs_%s_id', $post_type ) ),
356
  array( '%s' )
357
  );
358
  }
359
 
360
+ unset($post_types[$post_type]);
361
  /**
362
  * remove post relation
363
  */
364
+ foreach ( array_keys($post_types) as $post_type ) {
365
+ if ( array_key_exists( 'post_relationship', $post_types[$post_type] ) ) {
366
  /**
367
  * remove "has" relation
368
  */
369
  if (
370
+ array_key_exists( 'has', $post_types[$post_type]['post_relationship'] )
371
+ && array_key_exists( $post_type, $post_types[$post_type]['post_relationship']['has'] )
372
  ) {
373
+ unset($post_types[$post_type]['post_relationship']['has'][$post_type]);
374
+ $post_types[$post_type][TOOLSET_EDIT_LAST] = time();
375
  }
376
  /**
377
  * remove "belongs" relation
378
  */
379
  if (
380
+ array_key_exists( 'belongs', $post_types[$post_type]['post_relationship'] )
381
+ && array_key_exists( $post_type, $post_types[$post_type]['post_relationship']['belongs'] )
382
  ) {
383
+ unset($post_types[$post_type]['post_relationship']['belongs'][$post_type]);
384
+ $post_types[$post_type][TOOLSET_EDIT_LAST] = time();
385
  }
386
  }
387
  }
388
+ update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $post_types);
389
+ wpcf_admin_deactivate_content('post_type', $post_type);
390
  echo json_encode(
391
  array(
392
  'output' => '',
393
+ 'execute' => 'reload',
394
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
395
  )
396
  );
397
  break;
398
 
399
  case 'duplicate_post_type':
400
+ $post_type = wpcf_ajax_helper_get_post_type();
401
+ if ( empty($post_type) ) {
402
+ wpcf_ajax_helper_print_error_and_die();
403
+ }
404
+
405
+ $post_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
406
+
407
+ $i = 0;
408
+ $key = false;
409
+ do {
410
+ $key = sprintf($post_type.'-%d',++$i);
411
+ } while( isset($post_types[$key]) );
412
+ if ( $key ) {
413
+ /**
414
+ * duplicate custom post type
415
+ */
416
+ $post_types[$key] = $post_types[$post_type];
417
+ /**
418
+ * update some options
419
+ */
420
+ $post_types[$key]['labels']['name'] .= sprintf(' (%d)', $i);
421
+ $post_types[$key]['labels']['singular_name'] .= sprintf(' (%d)', $i);
422
+ $post_types[$key]['slug'] = $key;
423
+ $post_types[$key]['__types_id'] = $key;
424
+
425
+ /**
426
+ * update custom post types
427
+ */
428
+ update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $post_types);
429
+
430
+ /**
431
+ * update custom taxonomies too
432
+ */
433
+ $custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
434
+ foreach( $custom_taxonomies as $taxonomy_key => $taxonomy_data) {
435
+ if (
436
+ isset( $taxonomy_data['supports'])
437
+ && isset( $taxonomy_data['supports'][$post_type])
438
+ ) {
439
+ $custom_taxonomies[$taxonomy_key]['supports'][$key] = 1;
 
 
440
  }
 
 
 
 
 
441
  }
442
+ update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $custom_taxonomies);
443
+
444
  echo json_encode(array(
445
+ 'execute' => 'reload',
446
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
447
  ));
448
  }
449
  break;
450
 
451
  case 'taxonomy_duplicate':
452
+ $custom_taxonomy = wpcf_ajax_helper_get_taxonomy();
453
+ if ( empty($custom_taxonomy) ) {
454
+ wpcf_ajax_helper_print_error_and_die();
455
  }
 
 
456
  $custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
457
+ $i = 0;
458
+ $key = false;
459
+ do {
460
+ $key = sprintf($custom_taxonomy.'-%d',++$i);
461
+ } while( isset($custom_taxonomies[$key]) );
462
+ if ( $key ) {
463
+ /**
464
+ * duplicate custom taxonomies
465
+ */
466
+ $custom_taxonomies[$key] = $custom_taxonomies[$custom_taxonomy];
467
+
468
+ /**
469
+ * update some options
470
+ */
471
+ $custom_taxonomies[$key]['labels']['name'] .= sprintf(' (%d)', $i);
472
+ $custom_taxonomies[$key]['labels']['singular_name'] .= sprintf(' (%d)', $i);
473
+ $custom_taxonomies[$key]['slug'] = $key;
474
+ $custom_taxonomies[$key]['id'] = $key;
475
+ $custom_taxonomies[$key]['__types_id'] = $key;
476
+
477
+ /**
478
+ * update custom taxonomies
479
+ */
480
+ update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $custom_taxonomies);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
481
 
482
+ /**
483
+ * update post types
484
+ */
485
+ if (
486
+ isset( $custom_taxonomies[$key]['supports'] )
487
+ && is_array($custom_taxonomies[$key]['supports'])
488
+ && !empty($custom_taxonomies[$key]['supports'])
489
+ ) {
490
+ $custom_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
491
+ foreach( array_keys($custom_taxonomies[$key]['supports']) as $custom_type ) {
492
  /**
493
+ * avoid to create fake CPT from old data
494
  */
495
+ if ( !isset($custom_types[$custom_type])) {
496
+ continue;
497
+ }
498
+ if ( !isset($custom_types[$custom_type]['taxonomies']) ) {
499
+ $custom_types[$custom_type]['taxonomies'] = array();
500
+ }
501
+ $custom_types[$custom_type]['taxonomies'][$key] = 1;
502
  }
503
+
504
+ /**
505
+ * update custom post types
506
+ */
507
+ update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $custom_types);
508
  }
 
509
  echo json_encode(array(
510
+ 'execute' => 'reload',
511
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
512
  ));
513
  }
514
  break;
515
 
516
  case 'deactivate_taxonomy':
517
+ $custom_taxonomy = wpcf_ajax_helper_get_taxonomy();
518
+ if ( empty($custom_taxonomy) ) {
519
+ wpcf_ajax_helper_print_error_and_die();
520
  }
 
521
  $custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
522
+ if (isset($custom_taxonomies[$custom_taxonomy])) {
523
+ $custom_taxonomies[$custom_taxonomy]['disabled'] = 1;
524
+ $custom_taxonomies[$custom_taxonomy][TOOLSET_EDIT_LAST] = time();
525
  update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $custom_taxonomies);
526
  echo json_encode(
527
  array(
528
  'output' => __('Taxonomy deactivated', 'wpcf'),
529
+ 'execute' => 'reload',
530
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
531
  )
532
  );
533
  } else {
534
+ wpcf_ajax_helper_print_error_and_die();
 
 
535
  }
536
  break;
537
 
538
  case 'activate_taxonomy':
539
+ $custom_taxonomy = wpcf_ajax_helper_get_taxonomy();
540
+ if ( empty($custom_taxonomy) ) {
541
+ wpcf_ajax_helper_print_error_and_die();
542
  }
 
543
  $custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
544
+ if (isset($custom_taxonomies[$custom_taxonomy])) {
545
+ $custom_taxonomies[$custom_taxonomy]['disabled'] = 0;
546
+ $custom_taxonomies[$custom_taxonomy][TOOLSET_EDIT_LAST] = time();
547
  update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $custom_taxonomies);
548
  echo json_encode(
549
  array (
550
  'output' => __('Taxonomy activated', 'wpcf'),
551
+ 'execute' => 'reload',
552
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
553
  )
554
  );
555
  } else {
556
+ wpcf_ajax_helper_print_error_and_die();
 
 
557
  }
558
  break;
559
 
560
  case 'delete_taxonomy':
561
+ $custom_taxonomy = wpcf_ajax_helper_get_taxonomy();
562
+ if ( empty($custom_taxonomy) ) {
563
+ wpcf_ajax_helper_print_error_and_die();
564
  }
565
  $custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
 
566
  unset($custom_taxonomies[$custom_taxonomy]);
567
  update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $custom_taxonomies);
568
  wpcf_admin_deactivate_content('taxonomy', $custom_taxonomy);
569
  echo json_encode(
570
  array(
571
  'output' => '',
572
+ 'execute' => 'reload',
573
+ 'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
574
  )
575
  );
576
  break;
577
 
578
  case 'add_radio_option':
579
  require_once WPCF_INC_ABSPATH . '/fields/radio.php';
580
+ $element = wpcf_fields_radio_get_option( urldecode($_GET['parent_name']));
 
581
  $id = array_shift($element);
582
+ $element_txt = wpcf_fields_radio_get_option_alt_text($id, urldecode($_GET['parent_name']));
583
+ echo json_encode(
584
+ array(
585
+ 'output' => wpcf_form_simple($element),
586
+ 'execute' => 'append',
587
+ 'append_target' => '#wpcf-form-groups-radio-ajax-response-'. urldecode($_GET['wpcf_ajax_update_add']),
588
+ 'append_value' => trim(str_replace("\r\n", '', wpcf_form_simple($element_txt))),
589
  'wpcf_nonce_ajax_callback' => wp_create_nonce('execute'),
590
+ )
591
+ );
592
  break;
593
 
594
  case 'add_select_option':
631
  wpcf_admin_form_fieldset_save_toggle($action, $fieldset);
632
  break;
633
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
634
  case 'custom_fields_control_bulk':
635
  require_once WPCF_INC_ABSPATH . '/fields.php';
636
  require_once WPCF_EMBEDDED_INC_ABSPATH . '/fields.php';
685
  'output' => $output,
686
  ));
687
  } else {
688
+ wpcf_ajax_helper_print_error_and_die();
 
 
689
  }
690
  }
691
  } else {
692
+ wpcf_ajax_helper_print_error_and_die();
 
 
693
  }
694
  break;
695
 
725
  $field = wpcf_admin_fields_get_field(sanitize_text_field($_GET['field']), false, false,
726
  false, $option);
727
 
728
+ $_txt_updates = $meta_type == 'usermeta' ? __( '%d users require update', 'wpcf' ) : __( '%d posts require update', 'wpcf' );
 
729
  $_txt_no_updates = $meta_type == 'usermeta' ? __('No users require update', 'wpcf') : __('No posts require update', 'wpcf');
730
  $_txt_updated = $meta_type == 'usermeta' ? __('Users updated', 'wpcf') : __('Posts updated', 'wpcf');
731
 
750
  $output .= $_GET['subaction'] == 'save_check' ? 'save' : 'do_not_save';
751
  $output .= '\', \'' . $meta_type . '\');'
752
  . '">'
753
+ . __('Update', 'wpcf') . '</a>' . '</p></div>';
754
  } else {
755
  $output = '<div class="message updated"><p><em>'
756
  . $_txt_no_updates . '</em></p></div>';
766
  }
767
  if (isset($posts['offset'])) {
768
  if (!isset($_GET['total'])) {
769
+ $output = '<span style="color:red;">'.__('Error occured', 'wpcf').'</div>';
 
770
  } else {
771
  $output = '<script type="text/javascript">wpcfCbMigrateStep('
772
  . intval($_GET['total']) . ','
779
  . '<div class="wpcf-ajax-loading-small"></div>';
780
  }
781
  } else {
782
+ $output = sprintf(
783
+ '<div class="message updated"><p>%s</p></div>',
784
+ $_txt_updated
785
+ );
786
  }
787
  }
788
  }
797
  }
798
  die();
799
  }
800
+
801
+ function wpcf_ajax_helper_get_taxonomy()
802
+ {
803
+ if (!isset($_GET['wpcf-tax']) || empty($_GET['wpcf-tax'])) {
804
+ return false;
805
+ }
806
+ require_once WPCF_INC_ABSPATH . '/custom-taxonomies.php';
807
+ $custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
808
+ if (
809
+ isset($custom_taxonomies[$_GET['wpcf-tax']])
810
+ && isset($custom_taxonomies[$_GET['wpcf-tax']]['slug'])
811
+ ) {
812
+ return $custom_taxonomies[$_GET['wpcf-tax']]['slug'];
813
+ }
814
+ return false;
815
+ }
816
+
817
+ function wpcf_ajax_helper_get_post_type()
818
+ {
819
+ if (!isset($_GET['wpcf-post-type']) || empty($_GET['wpcf-post-type'])) {
820
+ return false;
821
+ }
822
+ require_once WPCF_INC_ABSPATH . '/custom-types.php';
823
+ $custom_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
824
+ if (
825
+ isset($custom_types[$_GET['wpcf-post-type']])
826
+ && isset($custom_types[$_GET['wpcf-post-type']]['slug'])
827
+ ) {
828
+ return $custom_types[$_GET['wpcf-post-type']]['slug'];
829
+ }
830
+ return false;
831
+ }
832
+
833
+ function wpcf_ajax_helper_print_error_and_die()
834
+ {
835
+ echo json_encode(array(
836
+ 'output' => __('Missing required data.', 'wpcf'),
837
+ ));
838
+ die;
839
+ }
includes/classes/class.wpcf.custom.fields.list.table.php CHANGED
@@ -128,35 +128,54 @@ class WPCF_Custom_Fields_List_Table extends WP_List_Table
128
  **************************************************************************/
129
  function column_title($item)
130
  {
131
- $edit_link = add_query_arg(
132
- array(
133
- 'page' => 'wpcf-edit',
134
- 'group_id' => $item['id']
135
- ),
136
- admin_url('admin.php')
 
 
137
  );
138
 
139
- //Build row actions
140
- $actions = array(
141
- 'edit' => sprintf('<a href="%s">%s</a>', $edit_link, __('Edit', 'wpcf')),
142
- 'status' => 'active' == $item['status']? wpcf_admin_fields_get_ajax_deactivation_link($item['id']):wpcf_admin_fields_get_ajax_activation_link($item['id']),
143
- 'delete' => sprintf(
144
- '<a href="%s" class="submitdelete wpcf-ajax-link" id="wpcf-list-delete-%d"">%s</a>',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  add_query_arg(
146
  array(
147
- 'action' => 'wpcf_ajax',
148
- 'wpcf_action' => 'delete_group',
149
  'group_id' => $item['id'],
150
- 'wpcf_ajax_update' => 'wpcf_list_ajax_response_'.$item['id'],
151
- '_wpnonce' => wp_create_nonce('delete_group'),
152
- 'wpcf_warning' => urlencode(__('Are you sure?', 'wpcf')),
153
- ),
154
- admin_url('admin-ajax.php')
155
  ),
156
- $item['id'],
157
- __('Delete', 'wpcf')
158
- ),
159
- );
 
 
160
 
161
  //Return the title contents
162
  return sprintf(
@@ -178,11 +197,14 @@ class WPCF_Custom_Fields_List_Table extends WP_List_Table
178
  **************************************************************************/
179
  function column_cb($item)
180
  {
181
- return sprintf(
182
- '<input type="checkbox" name="%s[]" value="%s" />',
183
- $this->bulk_action_field_name,
184
- $item['id']
185
- );
 
 
 
186
  }
187
 
188
  /** ************************************************************************
@@ -208,6 +230,9 @@ class WPCF_Custom_Fields_List_Table extends WP_List_Table
208
  'post_types' => __('Post types', 'wpcf'),
209
  'taxonomies' => __('Taxonomies', 'wpcf'),
210
  );
 
 
 
211
  return $columns;
212
  }
213
 
@@ -251,11 +276,14 @@ class WPCF_Custom_Fields_List_Table extends WP_List_Table
251
  **************************************************************************/
252
  function get_bulk_actions()
253
  {
254
- $actions = array(
255
- 'activate' => __('Activate', 'wpcf'),
256
- 'deactivate' => __('Deactivate', 'wpcf'),
257
- 'delete' => __('Delete permanently', 'wpcf'),
258
- );
 
 
 
259
  return $actions;
260
  }
261
 
@@ -272,47 +300,79 @@ class WPCF_Custom_Fields_List_Table extends WP_List_Table
272
  {
273
  global $wpdb;
274
  $action = $this->current_action();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
275
  //Detect when a bulk action is being triggered...
276
- switch($action) {
277
- case 'delete':
278
- if (
279
- true
280
- && isset($_POST[$this->bulk_action_field_name])
281
- && !empty($_POST[$this->bulk_action_field_name])
282
- ) {
283
- foreach( $_POST[$this->bulk_action_field_name] as $key ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  $wpdb->delete(
285
  $wpdb->posts,
286
- array( 'ID' => $key, 'post_type' => 'wp-types-group' ),
287
  array('%d', '%s')
288
  );
289
- }
290
- }
291
- break;
292
- case 'deactivate':
293
- if (
294
- true
295
- && isset($_POST[$this->bulk_action_field_name])
296
- && !empty($_POST[$this->bulk_action_field_name])
297
- ) {
298
- foreach( $_POST[$this->bulk_action_field_name] as $key ) {
299
  $wpdb->update(
300
  $wpdb->posts,
301
  array( 'post_status' => 'draft' ),
302
- array( 'ID' => $key, 'post_type' => 'wp-types-group' ),
303
  array('%s'),
304
  array('%d', '%s')
305
  );
306
- }
307
- }
308
- break;
309
- case 'activate':
310
- if (
311
- true
312
- && isset($_POST[$this->bulk_action_field_name])
313
- && !empty($_POST[$this->bulk_action_field_name])
314
- ) {
315
- foreach( $_POST[$this->bulk_action_field_name] as $key ) {
316
  $wpdb->update(
317
  $wpdb->posts,
318
  array( 'post_status' => 'publish' ),
@@ -320,11 +380,11 @@ class WPCF_Custom_Fields_List_Table extends WP_List_Table
320
  array('%s'),
321
  array('%d')
322
  );
 
323
  }
324
  }
325
- break;
326
  }
327
- wp_cache_delete(md5('group::_get_group'.'wp-types-group'),'types_cache_groups');
328
  }
329
 
330
  /** ************************************************************************
@@ -395,7 +455,8 @@ class WPCF_Custom_Fields_List_Table extends WP_List_Table
395
  'slug' => $group['slug'],
396
  'status' => (isset($group['is_active']) && $group['is_active'])? 'active':'inactive',
397
  'supports' => isset($group['supports'])? $group['supports']:array(),
398
- 'title' => stripslashes($group['name']),
 
399
  );
400
  $add_one = true;
401
  if ( $s ) {
@@ -488,11 +549,13 @@ class WPCF_Custom_Fields_List_Table extends WP_List_Table
488
  );
489
  printf(
490
  '<a class="button-primary" href="%s">%s</a>',
491
- add_query_arg(
492
- array(
493
- 'page' => 'wpcf-edit',
494
- ),
495
- admin_url('admin.php')
 
 
496
  ),
497
  __('Add New Group', 'wpcf')
498
  );
128
  **************************************************************************/
129
  function column_title($item)
130
  {
131
+ $edit_link = esc_url(
132
+ add_query_arg(
133
+ array(
134
+ 'page' => 'wpcf-edit',
135
+ 'group_id' => $item['id']
136
+ ),
137
+ admin_url('admin.php')
138
+ )
139
  );
140
 
141
+ if ( WPCF_Roles::user_can_edit('custom-field', $item ) ) {
142
+ //Build row actions
143
+ $actions = array(
144
+ 'edit' => sprintf('<a href="%s">%s</a>', $edit_link, __('Edit', 'wpcf')),
145
+ 'status' => 'active' == $item['status']? wpcf_admin_fields_get_ajax_deactivation_link($item['id']):wpcf_admin_fields_get_ajax_activation_link($item['id']),
146
+ 'delete' => sprintf(
147
+ '<a href="%s" class="submitdelete wpcf-ajax-link" id="wpcf-list-delete-%d"">%s</a>',
148
+ esc_url(
149
+ add_query_arg(
150
+ array(
151
+ 'action' => 'wpcf_ajax',
152
+ 'wpcf_action' => 'delete_group',
153
+ 'group_id' => $item['id'],
154
+ 'wpcf_ajax_update' => 'wpcf_list_ajax_response_'.$item['id'],
155
+ '_wpnonce' => wp_create_nonce('delete_group'),
156
+ 'wpcf_warning' => urlencode(__('Are you sure?', 'wpcf')),
157
+ ),
158
+ admin_url('admin-ajax.php')
159
+ )
160
+ ),
161
+ $item['id'],
162
+ __('Delete', 'wpcf')
163
+ ),
164
+ );
165
+ } else {
166
+ $edit_link = esc_url(
167
  add_query_arg(
168
  array(
169
+ 'page' => 'wpcf-view-custom-field',
 
170
  'group_id' => $item['id'],
171
+ )
 
 
 
 
172
  ),
173
+ admin_url('admin.php')
174
+ );
175
+ $actions = array(
176
+ 'view' => sprintf('<a href="%s">%s</a>', $edit_link, __('View', 'wpcf')),
177
+ );
178
+ }
179
 
180
  //Return the title contents
181
  return sprintf(
197
  **************************************************************************/
198
  function column_cb($item)
199
  {
200
+ if ( WPCF_Roles::user_can_edit('custom-field', $item ) ) {
201
+ return sprintf(
202
+ '<input type="checkbox" name="%s[]" value="%s" />',
203
+ $this->bulk_action_field_name,
204
+ $item['id']
205
+ );
206
+ }
207
+ return '';
208
  }
209
 
210
  /** ************************************************************************
230
  'post_types' => __('Post types', 'wpcf'),
231
  'taxonomies' => __('Taxonomies', 'wpcf'),
232
  );
233
+ if ( !WPCF_Roles::user_can_create('custom-field') ) {
234
+ unset($columns['cb']);
235
+ }
236
  return $columns;
237
  }
238
 
276
  **************************************************************************/
277
  function get_bulk_actions()
278
  {
279
+ $actions = array();
280
+ if ( WPCF_Roles::user_can_create('custom-field') ) {
281
+ $actions = array(
282
+ 'activate' => __('Activate', 'wpcf'),
283
+ 'deactivate' => __('Deactivate', 'wpcf'),
284
+ 'delete' => __('Delete', 'wpcf'),
285
+ );
286
+ }
287
  return $actions;
288
  }
289
 
300
  {
301
  global $wpdb;
302
  $action = $this->current_action();
303
+
304
+ /**
305
+ * check nounce
306
+ */
307
+ if (!empty($action)) {
308
+ $nonce = '';
309
+ if ( isset($_REQUEST['_wpnonce'] ) ) {
310
+ $nonce = $_REQUEST['_wpnonce'];
311
+ }
312
+ if ( !wp_verify_nonce($nonce, 'bulk-customfieldgroups')) {
313
+ die( 'Security check' );
314
+ }
315
+ }
316
+
317
  //Detect when a bulk action is being triggered...
318
+ if (
319
+ true
320
+ && isset($_POST[$this->bulk_action_field_name])
321
+ && !empty($_POST[$this->bulk_action_field_name])
322
+ ) {
323
+ $items = array();
324
+ $args = array(
325
+ 'nopaging' => true,
326
+ 'posts_per_page' => -1,
327
+ 'post_type' => 'wp-types-group',
328
+ 'post__in' => $_POST[$this->bulk_action_field_name],
329
+ 'update_post_term_cache' => false,
330
+ );
331
+ $query = new WP_Query($args);
332
+ if ( $query->have_posts() ) {
333
+ while ( $query->have_posts() ) {
334
+ $query->the_post();
335
+ $items[ get_the_ID()] = array(
336
+ 'id' => get_the_ID(),
337
+ WPCF_AUTHOR => get_the_author_meta('ID'),
338
+ );
339
+ wp_reset_postdata();
340
+ }
341
+ }
342
+ foreach( $_POST[$this->bulk_action_field_name] as $key ) {
343
+ /**
344
+ * do not process if there is no entry
345
+ */
346
+ if ( !isset($items[$key] ) ) {
347
+ continue;
348
+ }
349
+ /**
350
+ * check capability
351
+ */
352
+ if ( !WPCF_Roles::user_can_edit('custom-field', $items[$key]) ){
353
+ continue;
354
+ }
355
+ /**
356
+ * do it!
357
+ */
358
+ switch($action) {
359
+ case 'delete':
360
  $wpdb->delete(
361
  $wpdb->posts,
362
+ array( 'ID' => $key, 'post_type' => TYPES_CUSTOM_FIELD_GROUP_CPT_NAME ),
363
  array('%d', '%s')
364
  );
365
+ break;
366
+ case 'deactivate':
 
 
 
 
 
 
 
 
367
  $wpdb->update(
368
  $wpdb->posts,
369
  array( 'post_status' => 'draft' ),
370
+ array( 'ID' => $key, 'post_type' => TYPES_CUSTOM_FIELD_GROUP_CPT_NAME ),
371
  array('%s'),
372
  array('%d', '%s')
373
  );
374
+ break;
375
+ case 'activate':
 
 
 
 
 
 
 
 
376
  $wpdb->update(
377
  $wpdb->posts,
378
  array( 'post_status' => 'publish' ),
380
  array('%s'),
381
  array('%d')
382
  );
383
+ break;
384
  }
385
  }
386
+ wp_cache_delete(md5('group::_get_group'.TYPES_CUSTOM_FIELD_GROUP_CPT_NAME),'types_cache_groups');
387
  }
 
388
  }
389
 
390
  /** ************************************************************************
455
  'slug' => $group['slug'],
456
  'status' => (isset($group['is_active']) && $group['is_active'])? 'active':'inactive',
457
  'supports' => isset($group['supports'])? $group['supports']:array(),
458
+ 'title' => wp_kses_post($group['name']),
459
+ WPCF_AUTHOR => isset($group[WPCF_AUTHOR])? $group[WPCF_AUTHOR]:0,
460
  );
461
  $add_one = true;
462
  if ( $s ) {
549
  );
550
  printf(
551
  '<a class="button-primary" href="%s">%s</a>',
552
+ esc_url(
553
+ add_query_arg(
554
+ array(
555
+ 'page' => 'wpcf-edit',
556
+ ),
557
+ admin_url('admin.php')
558
+ )
559
  ),
560
  __('Add New Group', 'wpcf')
561
  );
includes/classes/class.wpcf.custom.post.types.list.table.php CHANGED
@@ -1,517 +1,616 @@
1
- <?php
2
-
3
- /*************************** LOAD THE BASE CLASS *******************************
4
- *******************************************************************************
5
- * The WP_List_Table class isn't automatically available to plugins, so we need
6
- * to check if it's available and load it if necessary. In this tutorial, we are
7
- * going to use the WP_List_Table class directly from WordPress core.
8
- *
9
- * IMPORTANT:
10
- * Please note that the WP_List_Table class technically isn't an official API,
11
- * and it could change at some point in the distant future. Should that happen,
12
- * I will update this plugin with the most current techniques for your reference
13
- * immediately.
14
- *
15
- * If you are really worried about future compatibility, you can make a copy of
16
- * the WP_List_Table class (file path is shown just below) to use and distribute
17
- * with your plugins. If you do that, just remember to change the name of the
18
- * class to avoid conflicts with core.
19
- *
20
- * Since I will be keeping this tutorial up-to-date for the foreseeable future,
21
- * I am going to work with the copy of the class provided in WordPress core.
22
- */
23
- if(!class_exists('WP_List_Table')){
24
- require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
25
- }
26
-
27
- /************************** CREATE A PACKAGE CLASS *****************************
28
- *******************************************************************************
29
- * Create a new list table package that extends the core WP_List_Table class.
30
- * WP_List_Table contains most of the framework for generating the table, but we
31
- * need to define and override some methods so that our data can be displayed
32
- * exactly the way we need it to be.
33
- *
34
- * To display this example on a page, you will first need to instantiate the class,
35
- * then call $yourInstance->prepare_items() to handle any data manipulation, then
36
- * finally call $yourInstance->display() to render the table to the page.
37
- *
38
- * Our theme for this list table is going to be movies.
39
- */
40
- class WPCF_Custom_Post_Types_List_Table extends WP_List_Table
41
- {
42
- var $custom_types;
43
- var $bulk_action_field_name = 'wpcf_cpt_ids';
44
-
45
- /** ************************************************************************
46
- * REQUIRED. Set up a constructor that references the parent constructor. We
47
- * use the parent reference to set some default configs.
48
- ***************************************************************************/
49
- function __construct()
50
- {
51
- global $status, $page;
52
-
53
- //Set parent defaults
54
- parent::__construct( array(
55
- 'singular' => 'custom post type', //singular name of the listed records
56
- 'plural' => 'custom post types', //plural name of the listed records
57
- 'ajax' => true //does this table support ajax?
58
- ) );
59
-
60
- $this->custom_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
61
- }
62
-
63
- /** ************************************************************************
64
- * Recommended. This method is called when the parent class can't find a method
65
- * specifically build for a given column. Generally, it's recommended to include
66
- * one method for each column you want to render, keeping your package class
67
- * neat and organized. For example, if the class needs to process a column
68
- * named 'title', it would first see if a method named $this->column_title()
69
- * exists - if it does, that method will be used. If it doesn't, this one will
70
- * be used. Generally, you should try to use custom column methods as much as
71
- * possible.
72
- *
73
- * Since we have defined a column_title() method later on, this method doesn't
74
- * need to concern itself with any column with a name of 'title'. Instead, it
75
- * needs to handle everything else.
76
- *
77
- * For more detailed insight into how columns are handled, take a look at
78
- * WP_List_Table::single_row_columns()
79
- *
80
- * @param array $item A singular item (one full row's worth of data)
81
- * @param array $column_name The name/slug of the column to be processed
82
- * @return string Text or HTML to be placed inside the column <td>
83
- **************************************************************************/
84
- function column_default($item, $column_name)
85
- {
86
- switch($column_name){
87
- case 'title':
88
- case 'description':
89
- return stripslashes($item[$column_name]);
90
- case 'taxonomies':
91
- $rows = array();
92
- if (!empty($item[$column_name])) {
93
- foreach ($item[$column_name] as $temp_tax => $true) {
94
- $rows[] = stripslashes(wpcf_translate($temp_tax . ' name', $temp_tax, 'Types-TAX'));
95
- }
96
- }
97
- return empty($rows)? __('None', 'wpcf'):implode(', ', $rows);
98
- case 'status':
99
- return 'active' == $item[$column_name]? __('Yes', 'wpcf'):__('No', 'wpcf');
100
- default:
101
- return print_r($item,true); //Show the whole array for troubleshooting purposes
102
- }
103
- }
104
-
105
- /** ************************************************************************
106
- * Recommended. This is a custom column method and is responsible for what
107
- * is rendered in any column with a name/slug of 'title'. Every time the class
108
- * needs to render a column, it first looks for a method named
109
- * column_{$column_title} - if it exists, that method is run. If it doesn't
110
- * exist, column_default() is called instead.
111
- *
112
- * This example also illustrates how to implement rollover actions. Actions
113
- * should be an associative array formatted as 'slug'=>'link html' - and you
114
- * will need to generate the URLs yourself. You could even ensure the links
115
- *
116
- *
117
- * @see WP_List_Table::::single_row_columns()
118
- * @param array $item A singular item (one full row's worth of data)
119
- * @return string Text to be placed inside the column <td> (movie title only)
120
- **************************************************************************/
121
- function column_title($item)
122
- {
123
- $edit_link = add_query_arg(
124
- array(
125
- 'page' => 'wpcf-edit-type',
126
- 'wpcf-post-type' => $item['slug']
127
- ),
128
- admin_url('admin.php')
129
- );
130
-
131
- //Build row actions
132
- $actions = array(
133
- 'edit' => sprintf('<a href="%s">%s</a>', $edit_link, __('Edit', 'wpcf')),
134
- 'status' => 'active' == $item['status'] ? wpcf_admin_custom_types_get_ajax_deactivation_link($item['slug']):wpcf_admin_custom_types_get_ajax_activation_link($item['slug']),
135
- 'duplicate' => sprintf(
136
- '<a href="%s" class="submitduplicate wpcf-ajax-link" id="wpcf-list-duplicate-%s">%s</a>',
137
- add_query_arg(
138
- array(
139
- 'action' => 'wpcf_ajax',
140
- 'wpcf_action' => 'duplicate_post_type',
141
- 'wpcf-post-type' => $item['slug'],
142
- 'wpcf_ajax_update' => 'wpcf_list_ajax_response_'.$item['slug'],
143
- '_wpnonce' => wp_create_nonce('duplicate_post_type'),
144
- ),
145
- admin_url('admin-ajax.php')
146
- ),
147
- $item['slug'],
148
- __('Duplicate', 'wpcf')
149
- ),
150
- 'delete' => sprintf(
151
- '<a href="%s" class="submitdelete wpcf-ajax-link" id="wpcf-list-delete-%s">%s</a>',
152
- add_query_arg(
153
- array(
154
- 'action' => 'wpcf_ajax',
155
- 'wpcf_action' => 'delete_post_type',
156
- 'wpcf-post-type' => $item['slug'],
157
- 'wpcf_ajax_update' => 'wpcf_list_ajax_response_'.$item['slug'],
158
- '_wpnonce' => wp_create_nonce('delete_post_type'),
159
- 'wpcf_warning' => urlencode(__('Are you sure?', 'wpcf')),
160
- ),
161
- admin_url('admin-ajax.php')
162
- ),
163
- $item['slug'],
164
- __('Delete', 'wpcf')
165
- ),
166
- );
167
-
168
- //Return the title contents
169
- return sprintf(
170
- '<strong><a href="%s" class="row-title">%s</strong>%s',
171
- $edit_link,
172
- $item['title'],
173
- $this->row_actions($actions)
174
- );
175
- }
176
-
177
- /** ************************************************************************
178
- * REQUIRED if displaying checkboxes or using bulk actions! The 'cb' column
179
- * is given special treatment when columns are processed. It ALWAYS needs to
180
- * have it's own method.
181
- *
182
- * @see WP_List_Table::::single_row_columns()
183
- * @param array $item A singular item (one full row's worth of data)
184
- * @return string Text to be placed inside the column <td> (movie title only)
185
- **************************************************************************/
186
- function column_cb($item)
187
- {
188
- return sprintf(
189
- '<input type="checkbox" name="%s[]" value="%s" />',
190
- $this->bulk_action_field_name,
191
- $item['slug']
192
- );
193
- }
194
-
195
- /** ************************************************************************
196
- * REQUIRED! This method dictates the table's columns and titles. This should
197
- * return an array where the key is the column slug (and class) and the value
198
- * is the column's title text. If you need a checkbox for bulk actions, refer
199
- * to the $columns array below.
200
- *
201
- * The 'cb' column is treated differently than the rest. If including a checkbox
202
- * column in your table you must create a column_cb() method. If you don't need
203
- * bulk actions or checkboxes, simply leave the 'cb' entry out of your array.
204
- *
205
- * @see WP_List_Table::::single_row_columns()
206
- * @return array An associative array containing column information: 'slugs'=>'Visible Titles'
207
- **************************************************************************/
208
- function get_columns()
209
- {
210
- $columns = array(
211
- 'cb' => '<input type="checkbox" />', //Render a checkbox instead of text
212
- 'title' => __('Post Type Name', 'wpcf'),
213
- 'description' => __('Description', 'wpcf'),
214
- 'status' => __('Active', 'wpcf'),
215
- 'taxonomies' => __('Taxonomies', 'wpcf'),
216
- );
217
- return $columns;
218
- }
219
-
220
- /** ************************************************************************
221
- * Optional. If you want one or more columns to be sortable (ASC/DESC toggle),
222
- * you will need to register it here. This should return an array where the
223
- * key is the column that needs to be sortable, and the value is db column to
224
- * sort by. Often, the key and value will be the same, but this is not always
225
- * the case (as the value is a column name from the database, not the list table).
226
- *
227
- * This method merely defines which columns should be sortable and makes them
228
- * clickable - it does not handle the actual sorting. You still need to detect
229
- * the ORDERBY and ORDER querystring variables within prepare_items() and sort
230
- * your data accordingly (usually by modifying your query).
231
- *
232
- * @return array An associative array containing all the columns that should be sortable: 'slugs'=>array('data_values',bool)
233
- **************************************************************************/
234
- function get_sortable_columns()
235
- {
236
- $sortable_columns = array(
237
- 'title' => array('title',true), //true means it's already sorted
238
- 'description' => array('description',false),
239
- 'status' => array('status',false)
240
- );
241
- return $sortable_columns;
242
- }
243
-
244
- /** ************************************************************************
245
- * Optional. If you need to include bulk actions in your list table, this is
246
- * the place to define them. Bulk actions are an associative array in the format
247
- * 'slug'=>'Visible Title'
248
- *
249
- * If this method returns an empty value, no bulk action will be rendered. If
250
- * you specify any bulk actions, the bulk actions box will be rendered with
251
- * the table automatically on display().
252
- *
253
- * Also note that list tables are not automatically wrapped in <form> elements,
254
- * so you will need to create those manually in order for bulk actions to function.
255
- *
256
- * @return array An associative array containing all the bulk actions: 'slugs'=>'Visible Titles'
257
- **************************************************************************/
258
- function get_bulk_actions()
259
- {
260
- $actions = array(
261
- 'activate' => __('Activate', 'wpcf'),
262
- 'deactivate' => __('Deactivate', 'wpcf'),
263
- 'delete' => __('Delete permanently', 'wpcf'),
264
- );
265
- return $actions;
266
- }
267
-
268
- /** ************************************************************************
269
- * Optional. You can handle your bulk actions anywhere or anyhow you prefer.
270
- * For this example package, we will handle it in the class to keep things
271
- * clean and organized.
272
- *
273
- * @see $this->prepare_items()
274
- **************************************************************************/
275
- function process_bulk_action()
276
- {
277
- $action = $this->current_action();
278
- //Detect when a bulk action is being triggered...
279
- switch($action) {
280
- case 'delete':
281
- if (
282
- !empty($this->custom_types)
283
- && isset($_POST[$this->bulk_action_field_name])
284
- && !empty($_POST[$this->bulk_action_field_name])
285
- ) {
286
- $slugs_to_delete = array();
287
- foreach( $_POST[$this->bulk_action_field_name] as $key ) {
288
- if ( !isset($this->custom_types[$key]) ) {
289
- continue;
290
- }
291
- unset($this->custom_types[$key]);
292
- $slugs_to_delete[] = $key;
293
- }
294
- update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $this->custom_types);
295
- /**
296
- * update custom taxonomies
297
- */
298
- $custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
299
- if ( !empty($custom_taxonomies) ) {
300
- foreach ( $slugs_to_delete as $slug ) {
301
- foreach ( $custom_taxonomies as $custom_key => $data ) {
302
- if ( !isset($data['supports'] ) ) {
303
- continue;
304
- }
305
- if ( isset($data['supports'][$slug]) ) {
306
- unset($custom_taxonomies[$custom_key]['supports'][$slug]);
307
- }
308
- }
309
- }
310
- update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $custom_taxonomies);
311
- }
312
- }
313
- break;
314
- case 'deactivate':
315
- if (
316
- !empty($this->custom_types)
317
- && isset($_POST[$this->bulk_action_field_name])
318
- && !empty($_POST[$this->bulk_action_field_name])
319
- ) {
320
- foreach( $_POST[$this->bulk_action_field_name] as $key ) {
321
- if ( !isset($this->custom_types[$key]) ) {
322
- continue;
323
- }
324
- $this->custom_types[$key]['disabled'] = 1;
325
- $this->custom_types[$key][TOOLSET_EDIT_LAST] = time();
326
- }
327
- update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $this->custom_types);
328
- }
329
- break;
330
- case 'activate':
331
- if (
332
- !empty($this->custom_types)
333
- && isset($_POST[$this->bulk_action_field_name])
334
- && !empty($_POST[$this->bulk_action_field_name])
335
- ) {
336
- foreach( $_POST[$this->bulk_action_field_name] as $key ) {
337
- if ( !isset($this->custom_types[$key]) ) {
338
- continue;
339
- }
340
- if ( isset($this->custom_types[$key]['disabled']) ) {
341
- unset($this->custom_types[$key]['disabled']);
342
- $this->custom_types[$key][TOOLSET_EDIT_LAST] = time();
343
- }
344
- }
345
- update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $this->custom_types);
346
- }
347
- break;
348
- }
349
- }
350
-
351
- /** ************************************************************************
352
- * REQUIRED! This is where you prepare your data for display. This method will
353
- * usually be used to query the database, sort and filter the data, and generally
354
- * get it ready to be displayed. At a minimum, we should set $this->items and
355
- * $this->set_pagination_args(), although the following properties and methods
356
- * are frequently interacted with here...
357
- *
358
- * @uses $this->_column_headers
359
- * @uses $this->items
360
- * @uses $this->get_columns()
361
- * @uses $this->get_sortable_columns()
362
- * @uses $this->get_pagenum()
363
- * @uses $this->set_pagination_args()
364
- **************************************************************************/
365
- function prepare_items()
366
- {
367
- /**
368
- * First, lets decide how many records per page to show
369
- */
370
- $per_page = $this->get_items_per_page('wpcf_cpt_per_page', 10);;
371
-
372
- /**
373
- * REQUIRED. Now we need to define our column headers. This includes a complete
374
- * array of columns to be displayed (slugs & titles), a list of columns
375
- * to keep hidden, and a list of columns that are sortable. Each of these
376
- * can be defined in another method (as we've done here) before being
377
- * used to build the value for our _column_headers property.
378
- */
379
- $columns = $this->get_columns();
380
- $hidden = array();
381
- $sortable = $this->get_sortable_columns();
382
-
383
- /**
384
- * REQUIRED. Finally, we build an array to be used by the class for column
385
- * headers. The $this->_column_headers property takes an array which contains
386
- * 3 other arrays. One for all columns, one for hidden columns, and one
387
- * for sortable columns.
388
- */
389
- $this->_column_headers = array($columns, $hidden, $sortable);
390
-
391
- /**
392
- * Optional. You can handle your bulk actions however you see fit. In this
393
- * case, we'll handle them within our package just to keep things clean.
394
- */
395
- $this->process_bulk_action();
396
-
397
- /**
398
- * Instead of querying a database, we're going to fetch the example data
399
- * property we created for use in this plugin. This makes this example
400
- * package slightly different than one you might build on your own. In
401
- * this example, we'll be using array manipulation to sort and paginate
402
- * our data. In a real-world implementation, you will probably want to
403
- * use sort and pagination data to build a custom query instead, as you'll
404
- * be able to use your precisely-queried data immediately.
405
- */
406
-
407
- $s = isset($_POST['s'])? mb_strtolower(trim($_POST['s'])):false;
408
-
409
- $data = array();
410
- if ( !empty($this->custom_types) ){
411
- foreach( array_values($this->custom_types) as $type ) {
412
- $one = array(
413
- 'description' => $type['description'],
414
- 'taxonomies' => isset($type['taxonomies'])? $type['taxonomies']:array(),
415
- 'slug' => $type['slug'],
416
- 'status' => isset($type['disabled'])? 'inactive':'active',
417
- 'title' => stripslashes($type['labels']['singular_name']),
418
- );
419
- $add_one = true;
420
- if ( $s ) {
421
- $add_one = false;
422
- foreach( array('description', 'slug', 'title' ) as $key ) {
423
- if ( $add_one || empty( $one[$key] ) ) {
424
- continue;
425
- }
426
- if ( is_numeric(strpos(mb_strtolower($one[$key]), $s))) {
427
- $add_one = true;
428
- }
429
- }
430
- }
431
- if ( $add_one ) {
432
- $data[] = $one;
433
- }
434
- }
435
- }
436
-
437
- /**
438
- * This checks for sorting input and sorts the data in our array accordingly.
439
- */
440
- usort($data, 'wpcf_usort_reorder');
441
-
442
- /**
443
- * REQUIRED for pagination. Let's figure out what page the user is currently
444
- * looking at. We'll need this later, so you should always include it in
445
- * your own package classes.
446
- */
447
- $current_page = $this->get_pagenum();
448
-
449
- /**
450
- * REQUIRED for pagination. Let's check how many items are in our data array.
451
- * In real-world use, this would be the total number of items in your database,
452
- * without filtering. We'll need this later, so you should always include it
453
- * in your own package classes.
454
- */
455
- $total_items = count($data);
456
-
457
- /**
458
- * The WP_List_Table class does not handle pagination for us, so we need
459
- * to ensure that the data is trimmed to only the current page. We can use
460
- * array_slice() to
461
- */
462
- $data = array_slice($data,(($current_page-1)*$per_page),$per_page);
463
-
464
- /**
465
- * REQUIRED. Now we can add our *sorted* data to the items property, where
466
- * it can be used by the rest of the class.
467
- */
468
- $this->items = $data;
469
-
470
- /**
471
- * REQUIRED. We also have to register our pagination options & calculations.
472
- */
473
- $this->set_pagination_args( array(
474
- 'total_items' => $total_items, //WE have to calculate the total number of items
475
- 'per_page' => $per_page, //WE have to determine how many items to show on a page
476
- 'total_pages' => ceil($total_items/$per_page) //WE have to calculate the total number of pages
477
- ) );
478
- }
479
-
480
- /**
481
- * Generates content for a single row of the table
482
- *
483
- * @since 3.1.0
484
- * @access public
485
- *
486
- * @param object $item The current item
487
- */
488
- public function single_row( $item )
489
- {
490
- static $row_class = '';
491
- $row_class = ( $row_class == '' ? 'alternate' : '' );
492
-
493
- printf('<tr class="%s status-%s">', $row_class, $item['status']);
494
- $this->single_row_columns( $item );
495
- echo '</tr>';
496
- }
497
-
498
- public function no_items()
499
- {
500
- if ( isset($_POST['s']) ) {
501
- _e('No custom post types found.','wpcf');
502
- return;
503
- }
504
- wpcf_admin_ctt_list_header();
505
- printf(
506
- '<a class="button-primary" href="%s">%s</a>',
507
- add_query_arg(
508
- array(
509
- 'page' => 'wpcf-edit-type',
510
- ),
511
- admin_url('admin.php')
512
- ),
513
- __('Add New Custom Post Type', 'wpcf')
514
- );
515
- }
516
-
517
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*************************** LOAD THE BASE CLASS *******************************
4
+ *******************************************************************************
5
+ * The WP_List_Table class isn't automatically available to plugins, so we need
6
+ * to check if it's available and load it if necessary. In this tutorial, we are
7
+ * going to use the WP_List_Table class directly from WordPress core.
8
+ *
9
+ * IMPORTANT:
10
+ * Please note that the WP_List_Table class technically isn't an official API,
11
+ * and it could change at some point in the distant future. Should that happen,
12
+ * I will update this plugin with the most current techniques for your reference
13
+ * immediately.
14
+ *
15
+ * If you are really worried about future compatibility, you can make a copy of
16
+ * the WP_List_Table class (file path is shown just below) to use and distribute
17
+ * with your plugins. If you do that, just remember to change the name of the
18
+ * class to avoid conflicts with core.
19
+ *
20
+ * Since I will be keeping this tutorial up-to-date for the foreseeable future,
21
+ * I am going to work with the copy of the class provided in WordPress core.
22
+ */
23
+ if(!class_exists('WP_List_Table')){
24
+ require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
25
+ }
26
+
27
+ /************************** CREATE A PACKAGE CLASS *****************************
28
+ *******************************************************************************
29
+ * Create a new list table package that extends the core WP_List_Table class.
30
+ * WP_List_Table contains most of the framework for generating the table, but we
31
+ * need to define and override some methods so that our data can be displayed
32
+ * exactly the way we need it to be.
33
+ *
34
+ * To display this example on a page, you will first need to instantiate the class,
35
+ * then call $yourInstance->prepare_items() to handle any data manipulation, then
36
+ * finally call $yourInstance->display() to render the table to the page.
37
+ *
38
+ * Our theme for this list table is going to be movies.
39
+ */
40
+ class WPCF_Custom_Post_Types_List_Table extends WP_List_Table
41
+ {
42
+ var $custom_types;
43
+ var $buildin_post_types;
44
+ var $bulk_action_field_name = 'wpcf_cpt_ids';
45
+
46
+ /** ************************************************************************
47
+ * REQUIRED. Set up a constructor that references the parent constructor. We
48
+ * use the parent reference to set some default configs.
49
+ ***************************************************************************/
50
+ function __construct()
51
+ {
52
+ global $status, $page;
53
+
54
+ //Set parent defaults
55
+ parent::__construct( array(
56
+ 'singular' => 'custom post type', //singular name of the listed records
57
+ 'plural' => 'custom post types', //plural name of the listed records
58
+ 'ajax' => true //does this table support ajax?
59
+ ) );
60
+
61
+ $this->custom_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
62
+ $this->buildin_post_types = wpcf_get_builtin_in_post_types();
63
+ }
64
+
65
+ /** ************************************************************************
66
+ * Recommended. This method is called when the parent class can't find a method
67
+ * specifically build for a given column. Generally, it's recommended to include
68
+ * one method for each column you want to render, keeping your package class
69
+ * neat and organized. For example, if the class needs to process a column
70
+ * named 'title', it would first see if a method named $this->column_title()
71
+ * exists - if it does, that method will be used. If it doesn't, this one will
72
+ * be used. Generally, you should try to use custom column methods as much as
73
+ * possible.
74
+ *
75
+ * Since we have defined a column_title() method later on, this method doesn't
76
+ * need to concern itself with any column with a name of 'title'. Instead, it
77
+ * needs to handle everything else.
78
+ *
79
+ * For more detailed insight into how columns are handled, take a look at
80
+ * WP_List_Table::single_row_columns()
81
+ *
82
+ * @param array $item A singular item (one full row's worth of data)
83
+ * @param array $column_name The name/slug of the column to be processed
84
+ * @return string Text or HTML to be placed inside the column <td>
85
+ **************************************************************************/
86
+ function column_default($item, $column_name)
87
+ {
88
+ switch($column_name){
89
+ case 'title':
90
+ case 'description':
91
+ return stripslashes($item[$column_name]);
92
+ case 'taxonomies':
93
+ $rows = array();
94
+ if (!empty($item[$column_name])) {
95
+ foreach ($item[$column_name] as $temp_tax => $true) {
96
+ $rows[] = stripslashes(wpcf_translate($temp_tax . ' name', $temp_tax, 'Types-TAX'));
97
+ }
98
+ }
99
+ return empty($rows)? __('None', 'wpcf'):implode(', ', $rows);
100
+ case 'status':
101
+ return 'active' == $item[$column_name]? __('Yes', 'wpcf'):__('No', 'wpcf');
102
+ default:
103
+ return print_r($item,true); //Show the whole array for troubleshooting purposes
104
+ }
105
+ }
106
+
107
+ /** ************************************************************************
108
+ * Recommended. This is a custom column method and is responsible for what
109
+ * is rendered in any column with a name/slug of 'title'. Every time the class
110
+ * needs to render a column, it first looks for a method named
111
+ * column_{$column_title} - if it exists, that method is run. If it doesn't
112
+ * exist, column_default() is called instead.
113
+ *
114
+ * This example also illustrates how to implement rollover actions. Actions
115
+ * should be an associative array formatted as 'slug'=>'link html' - and you
116
+ * will need to generate the URLs yourself. You could even ensure the links
117
+ *
118
+ *
119
+ * @see WP_List_Table::::single_row_columns()
120
+ * @param array $item A singular item (one full row's worth of data)
121
+ * @return string Text to be placed inside the column <td> (movie title only)
122
+ **************************************************************************/
123
+ function column_title($item)
124
+ {
125
+ $edit_link = esc_url(
126
+ add_query_arg(
127
+ array(
128
+ 'page' => 'wpcf-view-type',
129
+ 'wpcf-post-type' => $item['slug'],
130
+ ),
131
+ admin_url('admin.php')
132
+ )
133
+ );
134
+ if ( WPCF_Roles::user_can_edit('custom-post-type', $item ) ) {
135
+ $edit_link = esc_url(
136
+ add_query_arg(
137
+ array(
138
+ 'page' => 'wpcf-edit-type',
139
+ 'wpcf-post-type' => $item['slug'],
140
+ ),
141
+ admin_url('admin.php')
142
+ )
143
+ );
144
+ }
145
+
146
+ //Build row actions
147
+ $actions = array();
148
+ $actions['edit'] = sprintf('<a href="%s">%s</a>', $edit_link, __('Edit', 'wpcf'));
149
+ if ( 'cpt' == $item['type'] ) {
150
+ $a = array(
151
+ 'status' => 'active' == $item['status'] ? wpcf_admin_custom_types_get_ajax_deactivation_link($item['slug']):wpcf_admin_custom_types_get_ajax_activation_link($item['slug']),
152
+ 'duplicate' => sprintf(
153
+ '<a href="%s" class="submitduplicate wpcf-ajax-link" id="wpcf-list-duplicate-%s">%s</a>',
154
+ esc_url(
155
+ add_query_arg(
156
+ array(
157
+ 'action' => 'wpcf_ajax',
158
+ 'wpcf_action' => 'duplicate_post_type',
159
+ 'wpcf-post-type' => $item['slug'],
160
+ 'wpcf_ajax_update' => 'wpcf_list_ajax_response_'.$item['slug'],
161
+ '_wpnonce' => wp_create_nonce('duplicate_post_type'),
162
+ ),
163
+ admin_url('admin-ajax.php')
164
+ )
165
+ ),
166
+ $item['slug'],
167
+ __('Duplicate', 'wpcf')
168
+ ),
169
+ 'delete' => sprintf(
170
+ '<a href="%s" class="submitdelete wpcf-ajax-link" id="wpcf-list-delete-%s">%s</a>',
171
+ esc_url(
172
+ add_query_arg(
173
+ array(
174
+ 'action' => 'wpcf_ajax',
175
+ 'wpcf_action' => 'delete_post_type',
176
+ 'wpcf-post-type' => $item['slug'],
177
+ 'wpcf_ajax_update' => 'wpcf_list_ajax_response_'.$item['slug'],
178
+ '_wpnonce' => wp_create_nonce('delete_post_type'),
179
+ 'wpcf_warning' => urlencode(__('Are you sure?', 'wpcf')),
180
+ ),
181
+ admin_url('admin-ajax.php')
182
+ )
183
+ ),
184
+ $item['slug'],
185
+ __('Delete', 'wpcf')
186
+ ),
187
+ );
188
+ $actions += $a;
189
+ } elseif ( !wpcf_is_builtin_post_types( $item['slug'] ) ) {
190
+ $actions = array(
191
+ 'view' => sprintf('<a href="%s">%s</a>', $edit_link, __('View', 'wpcf')),
192
+ );
193
+ }
194
+
195
+ //Return the title contents
196
+ return sprintf(
197
+ '<strong><a href="%s" class="row-title">%s</strong>%s',
198
+ $edit_link,
199
+ $item['title'],
200
+ $this->row_actions($actions)
201
+ );
202
+ }
203
+
204
+ /** ************************************************************************
205
+ * REQUIRED if displaying checkboxes or using bulk actions! The 'cb' column
206
+ * is given special treatment when columns are processed. It ALWAYS needs to
207
+ * have it's own method.
208
+ *
209
+ * @see WP_List_Table::::single_row_columns()
210
+ * @param array $item A singular item (one full row's worth of data)
211
+ * @return string Text to be placed inside the column <td> (movie title only)
212
+ **************************************************************************/
213
+ function column_cb($item)
214
+ {
215
+ /**
216
+ * do not show checkbox for build-in post types
217
+ */
218
+ if ( isset($item['_builtin']) && $item['_builtin'] ) {
219
+ return '';
220
+ }
221
+ if ( WPCF_Roles::user_can_edit('custom-post-type', $item ) ) {
222
+ return sprintf(
223
+ '<input type="checkbox" name="%s[]" value="%s" />',
224
+ $this->bulk_action_field_name,
225
+ $item['slug']
226
+ );
227
+ }
228
+ return '';
229
+ }
230
+
231
+ /** ************************************************************************
232
+ * REQUIRED! This method dictates the table's columns and titles. This should
233
+ * return an array where the key is the column slug (and class) and the value
234
+ * is the column's title text. If you need a checkbox for bulk actions, refer
235
+ * to the $columns array below.
236
+ *
237
+ * The 'cb' column is treated differently than the rest. If including a checkbox
238
+ * column in your table you must create a column_cb() method. If you don't need
239
+ * bulk actions or checkboxes, simply leave the 'cb' entry out of your array.
240
+ *
241
+ * @see WP_List_Table::::single_row_columns()
242
+ * @return array An associative array containing column information: 'slugs'=>'Visible Titles'
243
+ **************************************************************************/
244
+ function get_columns()
245
+ {
246
+ $columns = array(
247
+ 'cb' => '<input type="checkbox" />', //Render a checkbox instead of text
248
+ 'title' => __('Post Type Name', 'wpcf'),
249
+ 'description' => __('Description', 'wpcf'),
250
+ 'status' => __('Active', 'wpcf'),
251
+ 'taxonomies' => __('Taxonomies', 'wpcf'),
252
+ );
253
+ return $columns;
254
+ }
255
+
256
+ /** ************************************************************************
257
+ * Optional. If you want one or more columns to be sortable (ASC/DESC toggle),
258
+ * you will need to register it here. This should return an array where the
259
+ * key is the column that needs to be sortable, and the value is db column to
260
+ * sort by. Often, the key and value will be the same, but this is not always
261
+ * the case (as the value is a column name from the database, not the list table).
262
+ *
263
+ * This method merely defines which columns should be sortable and makes them
264
+ * clickable - it does not handle the actual sorting. You still need to detect
265
+ * the ORDERBY and ORDER querystring variables within prepare_items() and sort
266
+ * your data accordingly (usually by modifying your query).
267
+ *
268
+ * @return array An associative array containing all the columns that should be sortable: 'slugs'=>array('data_values',bool)
269
+ **************************************************************************/
270
+ function get_sortable_columns()
271
+ {
272
+ $sortable_columns = array(
273
+ 'title' => array('title',true), //true means it's already sorted
274
+ 'description' => array('description',false),
275
+ 'status' => array('status',false)
276
+ );
277
+ return $sortable_columns;
278
+ }
279
+
280
+ /** ************************************************************************
281
+ * Optional. If you need to include bulk actions in your list table, this is
282
+ * the place to define them. Bulk actions are an associative array in the format
283
+ * 'slug'=>'Visible Title'
284
+ *
285
+ * If this method returns an empty value, no bulk action will be rendered. If
286
+ * you specify any bulk actions, the bulk actions box will be rendered with
287
+ * the table automatically on display().
288
+ *
289
+ * Also note that list tables are not automatically wrapped in <form> elements,
290
+ * so you will need to create those manually in order for bulk actions to function.
291
+ *
292
+ * @return array An associative array containing all the bulk actions: 'slugs'=>'Visible Titles'
293
+ **************************************************************************/
294
+ function get_bulk_actions()
295
+ {
296
+ $actions = array(
297
+ 'activate' => __('Activate', 'wpcf'),
298
+ 'deactivate' => __('Deactivate', 'wpcf'),
299
+ 'delete' => __('Delete', 'wpcf'),
300
+ );
301
+ return $actions;
302
+ }
303
+
304
+ /** ************************************************************************
305
+ * Optional. You can handle your bulk actions anywhere or anyhow you prefer.
306
+ * For this example package, we will handle it in the class to keep things
307
+ * clean and organized.
308
+ *
309
+ * @see $this->prepare_items()
310
+ **************************************************************************/
311
+ function process_bulk_action()
312
+ {
313
+ $action = $this->current_action();
314
+
315
+ /**
316
+ * check nounce
317
+ */
318
+ if (!empty($action)) {
319
+ $nonce = '';
320
+ if ( isset($_REQUEST['_wpnonce'] ) ) {
321
+ $nonce = $_REQUEST['_wpnonce'];
322
+ }
323
+ if ( !wp_verify_nonce($nonce, 'bulk-customposttypes')) {
324
+ die( 'Security check' );
325
+ }
326
+ }
327
+
328
+ //Detect when a bulk action is being triggered...
329
+ if (
330
+ !empty($this->custom_types)
331
+ && isset($_POST[$this->bulk_action_field_name])
332
+ && !empty($_POST[$this->bulk_action_field_name])
333
+ ) {
334
+ $slugs_to_delete = array();
335
+ foreach( $_POST[$this->bulk_action_field_name] as $key ) {
336
+ /**
337
+ * do not process if there is no entry
338
+ */
339
+ if ( !isset($this->custom_types[$key]) ) {
340
+ continue;
341
+ }
342
+ /**
343
+ * check capability
344
+ */
345
+ if ( !WPCF_Roles::user_can_edit('custom-post-type', $this->custom_types[$key]) ){
346
+ continue;
347
+ }
348
+ /**
349
+ * do it!
350
+ */
351
+ switch($action) {
352
+ case 'delete':
353
+ unset($this->custom_types[$key]);
354
+ $slugs_to_delete[] = $key;
355
+ break;
356
+ case 'deactivate':
357
+ $this->custom_types[$key]['disabled'] = 1;
358
+ $this->custom_types[$key][TOOLSET_EDIT_LAST] = time();
359
+ break;
360
+ case 'activate':
361
+ if ( isset($this->custom_types[$key]['disabled']) ) {
362
+ unset($this->custom_types[$key]['disabled']);
363
+ $this->custom_types[$key][TOOLSET_EDIT_LAST] = time();
364
+ }
365
+ break;
366
+ }
367
+ }
368
+ /**
369
+ * update custom post types
370
+ */
371
+ update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $this->custom_types);
372
+ /**
373
+ * update custom taxonomies
374
+ */
375
+ if ( count($slugs_to_delete) ) {
376
+ $custom_taxonomies = get_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, array());
377
+ if ( !empty($custom_taxonomies) ) {
378
+ foreach ( $slugs_to_delete as $slug ) {
379
+ foreach ( $custom_taxonomies as $custom_key => $data ) {
380
+ if ( !isset($data['supports'] ) ) {
381
+ continue;
382
+ }
383
+ if ( isset($data['supports'][$slug]) ) {
384
+ unset($custom_taxonomies[$custom_key]['supports'][$slug]);
385
+ }
386
+ }
387
+ }
388
+ update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $custom_taxonomies);
389
+ }
390
+ }
391
+ }
392
+ }
393
+
394
+ /** ************************************************************************
395
+ * REQUIRED! This is where you prepare your data for display. This method will
396
+ * usually be used to query the database, sort and filter the data, and generally
397
+ * get it ready to be displayed. At a minimum, we should set $this->items and
398
+ * $this->set_pagination_args(), although the following properties and methods
399
+ * are frequently interacted with here...
400
+ *
401
+ * @uses $this->_column_headers
402
+ * @uses $this->items
403
+ * @uses $this->get_columns()
404
+ * @uses $this->get_sortable_columns()
405
+ * @uses $this->get_pagenum()
406
+ * @uses $this->set_pagination_args()
407
+ **************************************************************************/
408
+ function prepare_items()
409
+ {
410
+ /**
411
+ * First, lets decide how many records per page to show
412
+ */
413
+ $per_page = $this->get_items_per_page('wpcf_cpt_per_page', 10);;
414
+
415
+ /**
416
+ * REQUIRED. Now we need to define our column headers. This includes a complete
417
+ * array of columns to be displayed (slugs & titles), a list of columns
418
+ * to keep hidden, and a list of columns that are sortable. Each of these
419
+ * can be defined in another method (as we've done here) before being
420
+ * used to build the value for our _column_headers property.
421
+ */
422
+ $columns = $this->get_columns();
423
+ $hidden = array();
424
+ $sortable = $this->get_sortable_columns();
425
+
426
+ /**
427
+ * REQUIRED. Finally, we build an array to be used by the class for column
428
+ * headers. The $this->_column_headers property takes an array which contains
429
+ * 3 other arrays. One for all columns, one for hidden columns, and one
430
+ * for sortable columns.
431
+ */
432
+ $this->_column_headers = array($columns, $hidden, $sortable);
433
+
434
+ /**
435
+ * Optional. You can handle your bulk actions however you see fit. In this
436
+ * case, we'll handle them within our package just to keep things clean.
437
+ */
438
+ $this->process_bulk_action();
439
+
440
+ /**
441
+ * map taxonomies to Post Types
442
+ */
443
+ $taxonomies = get_taxonomies(array('public'=>true),'objects');
444
+ $map_taxonomies_by_post_type = array();
445
+ foreach( $taxonomies as $slug => $data ) {
446
+ if ( isset($data->object_type) ) {
447
+ foreach( $data->object_type as $post_type ) {
448
+ if ( !isset($map_taxonomies_by_post_type[$post_type]) ) {
449
+ $map_taxonomies_by_post_type[$post_type] = array();
450
+ }
451
+ $map_taxonomies_by_post_type[$post_type][$slug] = 1;
452
+ }
453
+ }
454
+ }
455
+
456
+ /**
457
+ * Instead of querying a database, we're going to fetch the example data
458
+ * property we created for use in this plugin. This makes this example
459
+ * package slightly different than one you might build on your own. In
460
+ * this example, we'll be using array manipulation to sort and paginate
461
+ * our data. In a real-world implementation, you will probably want to
462
+ * use sort and pagination data to build a custom query instead, as you'll
463
+ * be able to use your precisely-queried data immediately.
464
+ */
465
+
466
+ $s = isset($_POST['s'])? mb_strtolower(trim($_POST['s'])):false;
467
+
468
+ $data = array();
469
+ if ( !empty($this->custom_types) ){
470
+ foreach( array_values($this->custom_types) as $type ) {
471
+ if (empty($type) || empty($type['slug'])) {
472
+ continue;
473
+ }
474
+ $one = array(
475
+ 'description' => isset($type['description'])? $type['description']:'',
476
+ 'taxonomies' => isset($map_taxonomies_by_post_type[$type['slug']])? $map_taxonomies_by_post_type[$type['slug']]:array(),
477
+ 'slug' => $type['slug'],
478
+ 'status' => isset($type['disabled'])? 'inactive':'active',
479
+ 'title' => stripslashes($type['labels']['singular_name']),
480
+ 'type' => 'cpt',
481
+ '_builtin' => false,
482
+ WPCF_AUTHOR => isset($type[WPCF_AUTHOR])? intval($type[WPCF_AUTHOR]):0,
483
+ );
484
+ $add_one = true;
485
+ if ( $s ) {
486
+ $add_one = false;
487
+ foreach( array('description', 'slug', 'title' ) as $key ) {
488
+ if ( $add_one || empty( $one[$key] ) ) {
489
+ continue;
490
+ }
491
+ if ( is_numeric(strpos(mb_strtolower($one[$key]), $s))) {
492
+ $add_one = true;
493
+ }
494
+ }
495
+ }
496
+ if ( $add_one ) {
497
+ $data[$one['slug']] = $one;
498
+ }
499
+ }
500
+ }
501
+
502
+
503
+ /**
504
+ * build-in post types
505
+ */
506
+ foreach( $this->buildin_post_types as $type ) {
507
+ $pt = get_post_type_object($type);
508
+ $one = array(
509
+ 'description' => __('This is build-in WordPress post type.', 'wpcf'),
510
+ 'taxonomies' => isset($map_taxonomies_by_post_type[$type])? $map_taxonomies_by_post_type[$type]:array(),
511
+ 'slug' => $type,
512
+ 'status' => 'active',
513
+ 'title' => $pt->labels->singular_name,
514
+ '_builtin' => true,
515
+ 'type' => '_builtin',
516
+ );
517
+ $add_one = true;
518
+ if ( $s ) {
519
+ $add_one = false;
520
+ foreach( array('description', 'slug', 'title' ) as $key ) {
521
+ if ( $add_one || empty( $one[$key] ) ) {
522
+ continue;
523
+ }
524
+ if ( is_numeric(strpos(mb_strtolower($one[$key]), $s))) {
525
+ $add_one = true;
526
+ }
527
+ }
528
+ }
529
+ if ( $add_one ) {
530
+ $data[$one['slug']] = $one;
531
+ }
532
+ }
533
+
534
+ /**
535
+ * This checks for sorting input and sorts the data in our array accordingly.
536
+ */
537
+ usort($data, 'wpcf_usort_reorder');
538
+
539
+ /**
540
+ * REQUIRED for pagination. Let's figure out what page the user is currently
541
+ * looking at. We'll need this later, so you should always include it in
542
+ * your own package classes.
543
+ */
544
+ $current_page = $this->get_pagenum();
545
+
546
+ /**
547
+ * REQUIRED for pagination. Let's check how many items are in our data array.
548
+ * In real-world use, this would be the total number of items in your database,
549
+ * without filtering. We'll need this later, so you should always include it
550
+ * in your own package classes.
551
+ */
552
+ $total_items = count($data);
553
+
554
+ /**
555
+ * The WP_List_Table class does not handle pagination for us, so we need
556
+ * to ensure that the data is trimmed to only the current page. We can use
557
+ * array_slice() to
558
+ */
559
+ $data = array_slice($data,(($current_page-1)*$per_page),$per_page);
560
+
561
+ /**
562
+ * REQUIRED. Now we can add our *sorted* data to the items property, where
563
+ * it can be used by the rest of the class.
564
+ */
565
+ $this->items = $data;
566
+
567
+ /**
568
+ * REQUIRED. We also have to register our pagination options & calculations.
569
+ */
570
+ $this->set_pagination_args( array(
571
+ 'total_items' => $total_items, //WE have to calculate the total number of items
572
+ 'per_page' => $per_page, //WE have to determine how many items to show on a page
573
+ 'total_pages' => ceil($total_items/$per_page) //WE have to calculate the total number of pages
574
+ ) );
575
+ }
576
+
577
+ /**
578
+ * Generates content for a single row of the table
579
+ *
580
+ * @since 3.1.0
581
+ * @access public
582
+ *
583
+ * @param object $item The current item
584
+ */
585
+ public function single_row($item)
586
+ {
587
+ static $row_class = '';
588
+ $row_class = ( $row_class == '' ? 'alternate' : '' );
589
+
590
+ printf('<tr class="%s status-%s">', $row_class, $item['status']);
591
+ $this->single_row_columns( $item );
592
+ echo '</tr>';
593
+ }
594
+
595
+ public function no_items()
596
+ {
597
+ if ( isset($_POST['s']) ) {
598
+ _e('No custom post types found.','wpcf');
599
+ return;
600
+ }
601
+ wpcf_admin_ctt_list_header();
602
+ printf(
603
+ '<a class="button-primary" href="%s">%s</a>',
604
+ esc_url(
605
+ add_query_arg(
606
+ array(
607
+ 'page' => 'wpcf-edit-type',
608
+ ),
609
+ admin_url('admin.php')
610
+ )
611
+ ),
612
+ __('Add New Custom Post Type', 'wpcf')
613
+ );
614
+ }
615
+
616
+ }
includes/classes/class.wpcf.custom.taxonomies.list.table.php CHANGED
@@ -120,49 +120,70 @@ class WPCF_Custom_Taxonomies_List_Table extends WP_List_Table
120
  **************************************************************************/
121
  function column_title($item)
122
  {
123
- $edit_link = add_query_arg(
124
- array(
125
- 'page' => 'wpcf-edit-tax',
126
- 'wpcf-tax' => $item['slug']
127
- ),
128
- admin_url('admin.php')
 
 
129
  );
130
 
131
- //Build row actions
132
- $actions = array(
133
- 'edit' => sprintf('<a href="%s">%s</a>', $edit_link, __('Edit', 'wpcf')),
134
- 'status' => 'active' == $item['status']? wpcf_admin_custom_taxonomies_get_ajax_deactivation_link($item['slug']):wpcf_admin_custom_taxonomies_get_ajax_activation_link($item['slug']),
135
- 'duplicate' => sprintf(
136
- '<a href="%s" class="wpcf-ajax-link">%s</a>',
137
- add_query_arg(
138
- array(
139
- 'action' => 'wpcf_ajax',
140
- 'wpcf_action' => 'taxonomy_duplicate',
141
- 'wpcf-tax' => $item['slug'],
142
- 'wpcf_ajax_update' => 'wpcf_list_ajax_response_'.$item['slug'],
143
- '_wpnonce' => wp_create_nonce('taxonomy_duplicate'),
 
 
 
 
 
144
  ),
145
- admin_url('admin-ajax.php')
146
  ),
147
- __('Duplicate', 'wpcf')
148
- ),
149
- 'delete' => sprintf(
150
- '<a href="%s" class="submitdelete wpcf-ajax-link" id="wpcf-list-delete-%s">%s</a>',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  add_query_arg(
152
  array(
153
- 'action' => 'wpcf_ajax',
154
- 'wpcf_action' => 'delete_taxonomy',
155
  'wpcf-tax' => $item['slug'],
156
- 'wpcf_ajax_update' => 'wpcf_list_ajax_response_'.$item['slug'],
157
- '_wpnonce' => wp_create_nonce('delete_taxonomy'),
158
- 'wpcf_warning' => urlencode(__('Are you sure?', 'wpcf')),
159
  ),
160
- admin_url('admin-ajax.php')
161
- ),
162
- $item['slug'],
163
- __('Delete', 'wpcf')
164
- ),
165
- );
 
166
 
167
  //Return the title contents
168
  return sprintf(
@@ -184,11 +205,14 @@ class WPCF_Custom_Taxonomies_List_Table extends WP_List_Table
184
  **************************************************************************/
185
  function column_cb($item)
186
  {
187
- return sprintf(
188
- '<input type="checkbox" name="%s[]" value="%s" />',
189
- $this->bulk_action_field_name,
190
- $item['slug']
191
- );
 
 
 
192
  }
193
 
194
  /** ************************************************************************
@@ -213,6 +237,9 @@ class WPCF_Custom_Taxonomies_List_Table extends WP_List_Table
213
  'status' => __('Active', 'wpcf'),
214
  'supports' => __('Post Types', 'wpcf'),
215
  );
 
 
 
216
  return $columns;
217
  }
218
 
@@ -256,11 +283,14 @@ class WPCF_Custom_Taxonomies_List_Table extends WP_List_Table
256
  **************************************************************************/
257
  function get_bulk_actions()
258
  {
259
- $actions = array(
260
- 'activate' => __('Activate', 'wpcf'),
261
- 'deactivate' => __('Deactivate', 'wpcf'),
262
- 'delete' => __('Delete permanently', 'wpcf'),
263
- );
 
 
 
264
  return $actions;
265
  }
266
 
@@ -274,26 +304,66 @@ class WPCF_Custom_Taxonomies_List_Table extends WP_List_Table
274
  function process_bulk_action()
275
  {
276
  $action = $this->current_action();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
277
  //Detect when a bulk action is being triggered...
278
- switch($action) {
279
- case 'delete':
280
- if (
281
- !empty($this->custom_taxonomies)
282
- && isset($_POST[$this->bulk_action_field_name])
283
- && !empty($_POST[$this->bulk_action_field_name])
284
- ) {
285
- $slugs_to_delete = array();
286
- foreach( $_POST[$this->bulk_action_field_name] as $key ) {
287
- if ( !isset($this->custom_taxonomies[$key]) ) {
288
- continue;
289
- }
290
- unset($this->custom_taxonomies[$key]);
291
- $slugs_to_delete[] = $key;
 
 
 
 
292
  }
293
  /**
294
- * update custom post types
295
  */
296
- update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $this->custom_taxonomies);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
297
  $custom_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
298
  if ( !empty($custom_types) ) {
299
  foreach ( $slugs_to_delete as $slug ) {
@@ -309,39 +379,6 @@ class WPCF_Custom_Taxonomies_List_Table extends WP_List_Table
309
  update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $custom_types);
310
  }
311
  }
312
- break;
313
- case 'deactivate':
314
- if (
315
- !empty($this->custom_taxonomies)
316
- && isset($_POST[$this->bulk_action_field_name])
317
- && !empty($_POST[$this->bulk_action_field_name])
318
- ) {
319
- foreach( $_POST[$this->bulk_action_field_name] as $key ) {
320
- if ( !isset($this->custom_taxonomies[$key]) ) {
321
- continue;
322
- }
323
- $this->custom_taxonomies[$key]['disabled'] = 1;
324
- }
325
- update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $this->custom_taxonomies);
326
- }
327
- break;
328
- case 'activate':
329
- if (
330
- !empty($this->custom_taxonomies)
331
- && isset($_POST[$this->bulk_action_field_name])
332
- && !empty($_POST[$this->bulk_action_field_name])
333
- ) {
334
- foreach( $_POST[$this->bulk_action_field_name] as $key ) {
335
- if ( !isset($this->custom_taxonomies[$key]) ) {
336
- continue;
337
- }
338
- if ( isset($this->custom_taxonomies[$key]['disabled']) ) {
339
- unset($this->custom_taxonomies[$key]['disabled']);
340
- }
341
- }
342
- update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $this->custom_taxonomies);
343
-
120
  **************************************************************************/
121
  function column_title($item)
122
  {
123
+ $edit_link = esc_url(
124
+ add_query_arg(
125
+ array(
126
+ 'page' => 'wpcf-edit-tax',
127
+ 'wpcf-tax' => $item['slug'],
128
+ ),
129
+ admin_url('admin.php')
130
+ )
131
  );
132
 
133
+ if ( WPCF_Roles::user_can_edit('custom-taxonomy', $item ) ) {
134
+ //Build row actions
135
+ $actions = array(
136
+ 'edit' => sprintf('<a href="%s">%s</a>', $edit_link, __('Edit', 'wpcf')),
137
+ 'status' => 'active' == $item['status']? wpcf_admin_custom_taxonomies_get_ajax_deactivation_link($item['slug']):wpcf_admin_custom_taxonomies_get_ajax_activation_link($item['slug']),
138
+ 'duplicate' => sprintf(
139
+ '<a href="%s" class="wpcf-ajax-link">%s</a>',
140
+ esc_url(
141
+ add_query_arg(
142
+ array(
143
+ 'action' => 'wpcf_ajax',
144
+ 'wpcf_action' => 'taxonomy_duplicate',
145
+ 'wpcf-tax' => $item['slug'],
146
+ 'wpcf_ajax_update' => 'wpcf_list_ajax_response_'.$item['slug'],
147
+ '_wpnonce' => wp_create_nonce('taxonomy_duplicate'),
148
+ ),
149
+ admin_url('admin-ajax.php')
150
+ )
151
  ),
152
+ __('Duplicate', 'wpcf')
153
  ),
154
+ 'delete' => sprintf(
155
+ '<a href="%s" class="submitdelete wpcf-ajax-link" id="wpcf-list-delete-%s">%s</a>',
156
+ esc_url(
157
+ add_query_arg(
158
+ array(
159
+ 'action' => 'wpcf_ajax',
160
+ 'wpcf_action' => 'delete_taxonomy',
161
+ 'wpcf-tax' => $item['slug'],
162
+ 'wpcf_ajax_update' => 'wpcf_list_ajax_response_'.$item['slug'],
163
+ '_wpnonce' => wp_create_nonce('delete_taxonomy'),
164
+ 'wpcf_warning' => urlencode(__('Are you sure?', 'wpcf')),
165
+ ),
166
+ admin_url('admin-ajax.php')
167
+ )
168
+ ),
169
+ $item['slug'],
170
+ __('Delete', 'wpcf')
171
+ ),
172
+ );
173
+ } else {
174
+ $edit_link = esc_url(
175
  add_query_arg(
176
  array(
177
+ 'page' => 'wpcf-view-tax',
 
178
  'wpcf-tax' => $item['slug'],
 
 
 
179
  ),
180
+ admin_url('admin.php')
181
+ )
182
+ );
183
+ $actions = array(
184
+ 'view' => sprintf('<a href="%s">%s</a>', $edit_link, __('View', 'wpcf')),
185
+ );
186
+ }
187
 
188
  //Return the title contents
189
  return sprintf(
205
  **************************************************************************/
206
  function column_cb($item)
207
  {
208
+ if ( WPCF_Roles::user_can_edit('custom-taxonomy', $item ) ) {
209
+ return sprintf(
210
+ '<input type="checkbox" name="%s[]" value="%s" />',
211
+ $this->bulk_action_field_name,
212
+ $item['slug']
213
+ );
214
+ }
215
+ return '';
216
  }
217
 
218
  /** ************************************************************************
237
  'status' => __('Active', 'wpcf'),
238
  'supports' => __('Post Types', 'wpcf'),
239
  );
240
+ if ( !WPCF_Roles::user_can_create('custom-taxonomy') ) {
241
+ unset($columns['cb']);
242
+ }
243
  return $columns;
244
  }
245
 
283
  **************************************************************************/
284
  function get_bulk_actions()
285
  {
286
+ $actions = array();
287
+ if ( WPCF_Roles::user_can_create('custom-taxonomy') ) {
288
+ $actions = array(
289
+ 'activate' => __('Activate', 'wpcf'),
290
+ 'deactivate' => __('Deactivate', 'wpcf'),
291
+ 'delete' => __('Delete', 'wpcf'),
292
+ );
293
+ }
294
  return $actions;
295
  }
296
 
304
  function process_bulk_action()
305
  {
306
  $action = $this->current_action();
307
+
308
+ /**
309
+ * check nounce
310
+ */
311
+ if (!empty($action)) {
312
+ $nonce = '';
313
+ if ( isset($_REQUEST['_wpnonce'] ) ) {
314
+ $nonce = $_REQUEST['_wpnonce'];
315
+ }
316
+ if ( !wp_verify_nonce($nonce, 'bulk-customtaxonomies')) {
317
+ die( 'Security check' );
318
+ }
319
+ }
320
+
321
  //Detect when a bulk action is being triggered...
322
+ if (
323
+ !empty($this->custom_taxonomies)
324
+ && isset($_POST[$this->bulk_action_field_name])
325
+ && !empty($_POST[$this->bulk_action_field_name])
326
+ ) {
327
+ $slugs_to_delete = array();
328
+ foreach( $_POST[$this->bulk_action_field_name] as $key ) {
329
+ /**
330
+ * do not process if there is no entry
331
+ */
332
+ if ( !isset($this->custom_taxonomies[$key]) ) {
333
+ continue;
334
+ }
335
+ /**
336
+ * check capability
337
+ */
338
+ if ( !WPCF_Roles::user_can_edit('custom-taxonomy', $this->custom_taxonomies[$key]) ){
339
+ continue;
340
  }
341
  /**
342
+ * do it!
343
  */
344
+ switch($action) {
345
+ case 'delete':
346
+ unset($this->custom_taxonomies[$key]);
347
+ $slugs_to_delete[] = $key;
348
+ break;
349
+ case 'deactivate':
350
+ $this->custom_taxonomies[$key]['disabled'] = 1;
351
+ break;
352
+ case 'activate':
353
+ if ( isset($this->custom_taxonomies[$key]['disabled']) ) {
354
+ unset($this->custom_taxonomies[$key]['disabled']);
355
+ }
356
+ break;
357
+ }
358
+ }
359
+ /**
360
+ * update custom taxonomies
361
+ */
362
+ update_option(WPCF_OPTION_NAME_CUSTOM_TAXONOMIES, $this->custom_taxonomies);
363
+ /**
364
+ * update custom post types
365
+ */
366
+ if ( count($slugs_to_delete) ) {
367
  $custom_types = get_option(WPCF_OPTION_NAME_CUSTOM_TYPES, array());
368
  if ( !empty($custom_types) ) {
369
  foreach ( $slugs_to_delete as $slug ) {
379
  update_option(WPCF_OPTION_NAME_CUSTOM_TYPES, $custom_types);
380
  }
381
  }