Custom Post Types and Custom Fields creator – WCK - Version 1.1.3

Version Description

  • Wysiwyg editor fields no longer strips html tags
  • Changes to WCK deactivate function so it doesn't throw notices
Download this release

Release Info

Developer reflectionmedia
Plugin Icon 128x128 Custom Post Types and Custom Fields creator – WCK
Version 1.1.3
Comparing to
See all releases

Code changes from version 1.1.2 to 1.1.3

readme.txt CHANGED
@@ -5,8 +5,8 @@ Donate link: http://www.cozmoslabs.com/wordpress-creation-kit/
5
  Tags: custom fields, custom field, wordpress custom fields, advanced custom fields, custom post type, custom post types, post types, cpt, post type, repeater fields, repeater, repeatable fields, meta box, metabox, taxonomy, taxonomies, custom taxonomy, custom taxonomies, custom, custom fields creator, post meta, meta, get_post_meta, post creator, cck, content types, types
6
 
7
  Requires at least: 3.1
8
- Tested up to: 4.0
9
- Stable tag: 1.1.2
10
 
11
  A must have tool for creating custom fields, custom post types and taxonomies, fast and without any programming knowledge.
12
 
@@ -141,6 +141,10 @@ Creating a taxonomy generally automatically creates a special query variable usi
141
  10. Taxonomy listing
142
 
143
  == Changelog ==
 
 
 
 
144
  = 1.1.2 =
145
  * Added filters which we can use to modify the text on metabox buttons in the backend (ex. Add Entry)
146
  * Fixed a bug that when we had unserialized fields enabled and we deleted some items in the metabox they still remained in the database
5
  Tags: custom fields, custom field, wordpress custom fields, advanced custom fields, custom post type, custom post types, post types, cpt, post type, repeater fields, repeater, repeatable fields, meta box, metabox, taxonomy, taxonomies, custom taxonomy, custom taxonomies, custom, custom fields creator, post meta, meta, get_post_meta, post creator, cck, content types, types
6
 
7
  Requires at least: 3.1
8
+ Tested up to: 4.0.1
9
+ Stable tag: 1.1.3
10
 
11
  A must have tool for creating custom fields, custom post types and taxonomies, fast and without any programming knowledge.
12
 
141
  10. Taxonomy listing
142
 
143
  == Changelog ==
144
+ = 1.1.3 =
145
+ * Wysiwyg editor fields no longer strips html tags
146
+ * Changes to WCK deactivate function so it doesn't throw notices
147
+
148
  = 1.1.2 =
149
  * Added filters which we can use to modify the text on metabox buttons in the backend (ex. Add Entry)
150
  * Fixed a bug that when we had unserialized fields enabled and we deleted some items in the metabox they still remained in the database
wck-sas.php CHANGED
@@ -1,217 +1,302 @@
1
- <?php
2
- /* Start and settings page */
3
-
4
- /* Add Scripts */
5
- add_action('admin_enqueue_scripts', 'wck_sas_print_scripts' );
6
- function wck_sas_print_scripts($hook){
7
- if( 'wck_page_sas-page' == $hook ){
8
- wp_register_style('wck-sas-css', plugins_url('/css/wck-sas.css', __FILE__));
9
- wp_enqueue_style('wck-sas-css');
10
- }
11
- }
12
-
13
- /* Create the WCK "Start & Settings" Page only for admins ( 'capability' => 'edit_theme_options' ) */
14
- $args = array(
15
- 'page_title' => __( 'Start Here & General Settings', 'wck' ),
16
- 'menu_title' => __( 'Start and Settings', 'wck' ),
17
- 'capability' => 'edit_theme_options',
18
- 'menu_slug' => 'sas-page',
19
- 'page_type' => 'submenu_page',
20
- 'parent_slug' => 'wck-page',
21
- 'priority' => 7,
22
- 'page_icon' => plugins_url('/images/wck-32x32.png', __FILE__)
23
- );
24
- $sas_page = new WCK_Page_Creator( $args );
25
-
26
- /* create the meta box only for admins ( 'capability' => 'edit_theme_options' ) */
27
- add_action( 'init', 'wck_sas_create_box', 11 );
28
- function wck_sas_create_box(){
29
-
30
- if( is_admin() && current_user_can( 'edit_theme_options' ) ){
31
-
32
- /* set up the fields array */
33
- $sas_serial_fields = array(
34
- array( 'type' => 'text', 'title' => __( 'Serial Number', 'wck' ), 'description' => __( 'Please enter your serial number. For example: (e.g. WCKPRO-11-SN-251r55baa4fbe7bf595b2aabb8d72985)', 'wck' ), 'required' => true )
35
- );
36
-
37
- /* set up the box arguments */
38
- $args = array(
39
- 'metabox_id' => 'option_page',
40
- 'metabox_title' => __( 'Register Your Version', 'wck' ),
41
- 'post_type' => 'sas-page',
42
- 'meta_name' => 'wck_serial',
43
- 'meta_array' => $sas_serial_fields,
44
- 'context' => 'option',
45
- 'single' => true,
46
- 'sortable' => false
47
- );
48
-
49
- /* create the box */
50
- $wck_premium_update = WCK_PLUGIN_DIR.'/update/';
51
- if (file_exists ($wck_premium_update . 'update-checker.php'))
52
- new Wordpress_Creation_Kit( $args );
53
-
54
- /* set up the tools array */
55
- $sas_tools_activate = array(
56
- array( 'type' => 'radio', 'title' => __( 'Custom Fields Creator', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' ),
57
- array( 'type' => 'radio', 'title' => __( 'Custom Post Type Creator', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' ),
58
- array( 'type' => 'radio', 'title' => __( 'Custom Taxonomy Creator', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' ),
59
- );
60
- if( file_exists( dirname(__FILE__).'/wck-fep.php' ) )
61
- $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Frontend Posting', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
62
- if( file_exists( dirname(__FILE__).'/wck-opc.php' ) )
63
- $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Option Pages Creator', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
64
- if( file_exists( dirname(__FILE__).'/wck-stp.php' ) )
65
- $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Swift Templates', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
66
- if( !file_exists( dirname(__FILE__).'/wck-stp.php' ) && !file_exists( dirname(__FILE__).'/wck-fep.php' ) )
67
- $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Swift Templates and Front End Posting', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
68
-
69
- /* set up the box arguments */
70
- $args = array(
71
- 'metabox_id' => 'wck_tools_activate',
72
- 'metabox_title' => __( 'WordPress Creation Kit Tools: enable or disable the tools you want', 'wck' ),
73
- 'post_type' => 'sas-page',
74
- 'meta_name' => 'wck_tools',
75
- 'meta_array' => $sas_tools_activate,
76
- 'context' => 'option',
77
- 'single' => true
78
- );
79
-
80
- /* create the box */
81
- new Wordpress_Creation_Kit( $args );
82
- }
83
- }
84
-
85
- /* Add the welcoming text on WCK Start and Settings Page */
86
- add_action( 'wck_before_meta_boxes', 'wck_sas_welcome');
87
- function wck_sas_welcome($hook){
88
- if('wck_page_sas-page' == $hook ){
89
- $plugin_path = dirname( __FILE__ ) . '/wck.php';
90
- $default_plugin_headers = get_plugin_data($plugin_path);
91
- $plugin_name = $default_plugin_headers['Name'];
92
- $plugin_version = $default_plugin_headers['Version'];
93
- ?>
94
- <div class="wrap about-wrap">
95
- <h1><?php printf( __( 'Welcome to %s', 'wck' ), $plugin_name ); ?></h1>
96
- <div class="about-text"><?php _e( 'WCK helps you create <strong>repeater custom fields, custom post types</strong> and <strong>taxonomies</strong> in just a couple of clicks, directly from the WordPress admin interface. WCK content types will improve the usability of the sites you build, making them easy to manage by your clients. ', 'wck' ); ?></div>
97
- <div class="wck-badge"><?php printf( __( 'Version %s', 'wck' ), $plugin_version ); ?></div>
98
- </div>
99
-
100
- <?php
101
- }
102
- }
103
-
104
- /* Add the Quick Start-Up Guide text on WCK Start and Settings Page */
105
- add_action( 'wck_after_meta_boxes', 'wck_sas_quickintro', 12);
106
- function wck_sas_quickintro($hook){
107
- if('wck_page_sas-page' == $hook ){
108
- ?>
109
- <div class="wrap about-wrap" style="clear:both;">
110
- <div class="changelog">
111
- <h2><?php _e( 'Quick Start-Up Guide', 'wck' ); ?></h2>
112
-
113
- <div class="feature-section">
114
-
115
- <h4><?php _e( 'Custom Fields Creator', 'wck' ); ?></h4>
116
- <p><?php _e( 'WordPress Creation Kit Pro has support for a wide list of custom fields: WYSIWYG Editor, Upload Field, Date, User, Country, Text Input, Textarea, Drop-Down, Select, Checkboxes, Radio Buttons', 'wck' ); ?></p>
117
- <p><?php _e( 'Access documentation <a href="http://www.cozmoslabs.com/docs/wordpress-creation-kit-documentation/#Custom_Fields_Creator" target="_blank">here</a> about how to display them in your templates.', 'wck' ); ?></p>
118
-
119
- <h4><?php _e( 'Post Type Creator', 'wck' ); ?></h4>
120
- <p><?php _e( 'Create & manage all your custom content types', 'wck' ); ?></p>
121
- <p><?php _e( 'Access documentation <a href="http://www.cozmoslabs.com/docs/wordpress-creation-kit-documentation/#Custom_Post_Type_Creator" target="_blank">here</a> about how to display them in your templates.', 'wck' ); ?></p>
122
-
123
- <h4><?php _e( 'Taxonomy Creator', 'wck' ); ?></h4>
124
- <p><?php _e( 'Create new taxonomies for filtering your content', 'wck' ); ?></p>
125
- <p><?php _e( 'Access documentation <a href="http://www.cozmoslabs.com/docs/wordpress-creation-kit-documentation/#Custom_Taxonomy_Creator" target="_blank">here</a> about how to display them in your templates.', 'wck' ); ?></p>
126
-
127
- <h4><?php _e( 'Swift Templates (available in the <a href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCKFree-SAS" target="_blank">PRO</a> version)', 'wck' ); ?></h4>
128
- <p><?php _e( 'Build your front-end templates directly from the WordPress admin UI, without writing any PHP code.', 'wck' ); ?></p>
129
- <p><?php _e( 'Access documentation <a href="http://www.cozmoslabs.com/docs/wordpress-creation-kit-documentation/#Swift_Templates" target="_blank">here</a> on how to easily display registered custom post types, custom fields and taxonomies in your theme.', 'wck' ); ?></p>
130
-
131
- <h4><?php _e( 'Front-End Posting (available in the <a href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCKFree-SAS" target="_blank">PRO</a> version)', 'wck' ); ?></h4>
132
- <p><?php _e( 'Create and edit posts/pages or custom posts directly from the front-end.', 'wck' ); ?></p>
133
- <p><?php _e( 'Available shortcodes:', 'wck' ); ?></p>
134
- <ul>
135
- <li><?php _e( '[fep form_name="front-end-post-name"] - displays your form in the front-end', 'wck' ); ?></li>
136
- <li><?php _e( '[fep-dashboard] - the quick-dashboard allows: simple profile updates, editing/deletion of posts, pages and custom post types.', 'wck' ); ?></li>
137
- <li><?php _e( '[fep-lilo] - login/logout/register widget with the simple usage of a shortcode. Can be added in a page or text widget.', 'wck' ); ?></li>
138
- </ul>
139
- <p><?php _e( 'Access documentation <a href="http://www.cozmoslabs.com/docs/wordpress-creation-kit-documentation/frontend-posting/" target="_blank">here</a> about how to display them in your templates.', 'wck' ); ?></p>
140
-
141
- <h4><?php _e( 'Option Pages (available in the <a href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCKFree-SAS" target="_blank">PRO</a> version)', 'wck' ); ?></h4>
142
- <p><?php _e( 'The Options Page Creator Allows you to create a new menu item called "Options"(for example) which can hold advanced custom field groups. Perfect for theme options or a simple UI for your custom plugin (like a simple testimonials section in the front-end).', 'wck' ); ?></p>
143
-
144
- </div>
145
- </div>
146
- </div>
147
-
148
- <?php
149
- }
150
- }
151
-
152
- /* add refresh to page. Needed to display the serial notification. Need to refactor in the future so it works via ajax. */
153
- add_action("wck_refresh_list_wck_serial", "wck_serial_after_refresh_list");
154
- add_action("wck_refresh_entry_wck_serial", "wck_serial_after_refresh_list");
155
- add_action("wck_refresh_list_wck_tools", "wck_serial_after_refresh_list");
156
- add_action("wck_refresh_entry_wck_tools", "wck_serial_after_refresh_list");
157
- function wck_serial_after_refresh_list(){
158
- echo '<script type="text/javascript">window.location="'. get_admin_url() . 'admin.php?page=sas-page&updated=true' .'";</script>';
159
- }
160
-
161
- /* Notify user of when he enters his serial number.
162
- * Also Check if serial is valid on meta_name creation and update
163
- */
164
- add_filter('wck_metabox_content_wck_serial', 'wck_sas_serial_notification', 10, 2);
165
- add_filter('wck_after_update_metabox_content_wck_serial', 'wck_sas_serial_notification', 10, 2);
166
- function wck_sas_serial_notification($list){
167
-
168
- wck_sas_check_serial_number();
169
- $status = get_option('wck_serial_status');
170
-
171
- if ( $status == 'noserial') $notif = '<p class="serial-notification red">' . __( 'Please enter your serial number to get access to automatic updates. If you do not have one, you can <a href="http://www.cozmoslabs.com/wordpress-creation-kit/" target="_blank">Get One Here</a>.', 'wck' ) . ' </p>';
172
-
173
- if ( $status == 'serverDown') $notif = '<p class="serial-notification yellow">' . __( 'Oups! Our serial verification server is down. Please try again later.', 'wck' ) . ' </p>';
174
-
175
- if ( $status == 'notFound') $notif = '<p class="serial-notification red">' . __( 'Oups! It seems the serial number you entered was not found in our database. To find out what\'s your serial number log-in to <a href="http://www.cozmoslabs.com/account/" target="_blank">your account page</a> over at Cozmoslabs.com', 'wck' ) . ' </p>';
176
-
177
- if ( $status == 'found') $notif = '<p class="serial-notification green">' . __( 'Wohoo! Your serial number is valid and you have access to automatic updates.', 'wck' ) . ' </p>';
178
-
179
- if ( $status == 'expired') $notif = '<p class="serial-notification yellow">' . __( 'It seems your serial number has <strong>expired</strong>. You\'ll continue to get automatic updates if update your serial number for another year from <a href="http://www.cozmoslabs.com/account/" target="_blank"><strong>your account page</strong></a>.', 'wck' ) . ' </p>';
180
-
181
- return $list . $notif;
182
- }
183
-
184
- /* Check if serial is valid on Start and Settings page load.
185
- * We're tieing to the admin_enque_scripts because it returns the current page $hook
186
- */
187
- add_action( 'admin_enqueue_scripts', 'wck_retest_serial_on_load');
188
- function wck_retest_serial_on_load($hook){
189
- if('wck_page_sas-page' == $hook )
190
- wck_sas_check_serial_number();
191
- }
192
-
193
- /* Checks local serial number against our serial-number database. */
194
- function wck_sas_check_serial_number(){
195
- // take into account the Free version doesn't need an update check and serial.
196
- $wck_premium_update = WCK_PLUGIN_DIR.'/update/';
197
- if (!file_exists($wck_premium_update . 'update-checker.php'))
198
- return;
199
-
200
- $serial = get_option('wck_serial');
201
- if( !empty( $serial[0] ) )
202
- $serial = urlencode( $serial[0]['serial-number'] );
203
- if(empty($serial) || $serial == '') {
204
- update_option( 'wck_serial_status', 'noserial' ); //server down
205
- } else {
206
- $response = wp_remote_get( 'http://updatemetadata.cozmoslabs.com/checkserial/?serialNumberSent='.$serial );
207
-
208
- if (is_wp_error($response)){
209
- update_option( 'wck_serial_status', 'serverDown' ); //server down
210
-
211
- }elseif((trim($response['body']) != 'notFound') && (trim($response['body']) != 'found') && (trim($response['body']) != 'expired')){
212
- update_option( 'wck_serial_status', 'serverDown' ); //unknown response parameter
213
- }else{
214
- update_option( 'wck_serial_status', trim($response['body']) ); //either found, notFound or expired
215
- }
216
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
217
  }
1
+ <?php
2
+ /* Start and settings page */
3
+
4
+ /* Add Scripts */
5
+ add_action('admin_enqueue_scripts', 'wck_sas_print_scripts' );
6
+ function wck_sas_print_scripts($hook){
7
+ if( 'wck_page_sas-page' == $hook ){
8
+ wp_register_style('wck-sas-css', plugins_url('/css/wck-sas.css', __FILE__));
9
+ wp_enqueue_style('wck-sas-css');
10
+ }
11
+ }
12
+
13
+ /* Create the WCK "Start & Settings" Page only for admins ( 'capability' => 'edit_theme_options' ) */
14
+ $args = array(
15
+ 'page_title' => __( 'Start Here & General Settings', 'wck' ),
16
+ 'menu_title' => __( 'Start and Settings', 'wck' ),
17
+ 'capability' => 'edit_theme_options',
18
+ 'menu_slug' => 'sas-page',
19
+ 'page_type' => 'submenu_page',
20
+ 'parent_slug' => 'wck-page',
21
+ 'priority' => 7,
22
+ 'page_icon' => plugins_url('/images/wck-32x32.png', __FILE__)
23
+ );
24
+ $sas_page = new WCK_Page_Creator( $args );
25
+
26
+ /* create the meta box only for admins ( 'capability' => 'edit_theme_options' ) */
27
+ add_action( 'init', 'wck_sas_create_box', 11 );
28
+ function wck_sas_create_box(){
29
+
30
+ if( is_admin() && current_user_can( 'edit_theme_options' ) ){
31
+
32
+ /* set up the fields array */
33
+ $sas_serial_fields = array(
34
+ array( 'type' => 'text', 'title' => __( 'Serial Number', 'wck' ), 'description' => __( 'Please enter your serial number. (e.g. WCKPRO-11-SN-251r55baa4fbe7bf595b2aabb8d72985)', 'wck' ), 'required' => true )
35
+ );
36
+
37
+ /* set up the box arguments */
38
+ $args = array(
39
+ 'metabox_id' => 'option_page',
40
+ 'metabox_title' => __( 'Register Your Version', 'wck' ),
41
+ 'post_type' => 'sas-page',
42
+ 'meta_name' => 'wck_serial',
43
+ 'meta_array' => $sas_serial_fields,
44
+ 'context' => 'option',
45
+ 'single' => true,
46
+ 'sortable' => false
47
+ );
48
+
49
+ /* create the box */
50
+ $wck_premium_update = WCK_PLUGIN_DIR.'/update/';
51
+ if (file_exists ($wck_premium_update . 'update-checker.php'))
52
+ new Wordpress_Creation_Kit( $args );
53
+
54
+ /* set up the tools array */
55
+ $sas_tools_activate = array(
56
+ array( 'type' => 'radio', 'title' => __( 'Custom Fields Creator', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' ),
57
+ array( 'type' => 'radio', 'title' => __( 'Custom Post Type Creator', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' ),
58
+ array( 'type' => 'radio', 'title' => __( 'Custom Taxonomy Creator', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' ),
59
+ );
60
+ if( file_exists( dirname(__FILE__).'/wck-fep.php' ) )
61
+ $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Frontend Posting', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
62
+ if( file_exists( dirname(__FILE__).'/wck-opc.php' ) )
63
+ $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Option Pages Creator', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
64
+ if( file_exists( dirname(__FILE__).'/wck-stp.php' ) )
65
+ $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Swift Templates', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
66
+ if( !file_exists( dirname(__FILE__).'/wck-stp.php' ) && !file_exists( dirname(__FILE__).'/wck-fep.php' ) )
67
+ $sas_tools_activate[] = array( 'type' => 'radio', 'title' => __( 'Swift Templates and Front End Posting', 'wck' ), 'options' => array( 'enabled', 'disabled' ), 'default' => 'enabled' );
68
+
69
+ /* set up the box arguments */
70
+ $args = array(
71
+ 'metabox_id' => 'wck_tools_activate',
72
+ 'metabox_title' => __( 'WordPress Creation Kit Tools: enable or disable the tools you want', 'wck' ),
73
+ 'post_type' => 'sas-page',
74
+ 'meta_name' => 'wck_tools',
75
+ 'meta_array' => $sas_tools_activate,
76
+ 'context' => 'option',
77
+ 'single' => true
78
+ );
79
+
80
+ /* create the box */
81
+ new Wordpress_Creation_Kit( $args );
82
+ }
83
+ }
84
+
85
+ /* Add the welcoming text on WCK Start and Settings Page */
86
+ add_action( 'wck_before_meta_boxes', 'wck_sas_welcome');
87
+ function wck_sas_welcome($hook){
88
+ if('wck_page_sas-page' == $hook ){
89
+ $plugin_path = dirname( __FILE__ ) . '/wck.php';
90
+ $default_plugin_headers = get_plugin_data($plugin_path);
91
+ $plugin_name = $default_plugin_headers['Name'];
92
+ $plugin_version = $default_plugin_headers['Version'];
93
+ ?>
94
+ <div class="wrap about-wrap">
95
+ <h1><?php printf( __( 'Welcome to %s', 'wck' ), $plugin_name ); ?></h1>
96
+ <div class="about-text"><?php _e( 'WCK helps you create <strong>repeater custom fields, custom post types</strong> and <strong>taxonomies</strong> in just a couple of clicks, directly from the WordPress admin interface. WCK content types will improve the usability of the sites you build, making them easy to manage by your clients. ', 'wck' ); ?></div>
97
+ <div class="wck-badge"><?php printf( __( 'Version %s', 'wck' ), $plugin_version ); ?></div>
98
+ </div>
99
+
100
+ <?php
101
+ }
102
+ }
103
+
104
+ /* Add the Quick Start-Up Guide text on WCK Start and Settings Page */
105
+ add_action( 'wck_after_meta_boxes', 'wck_sas_quickintro', 12);
106
+ function wck_sas_quickintro($hook){
107
+ if('wck_page_sas-page' == $hook ){
108
+ ?>
109
+ <div class="wrap about-wrap" style="clear:both;">
110
+ <div class="changelog">
111
+ <h2><?php _e( 'Quick Start-Up Guide', 'wck' ); ?></h2>
112
+
113
+ <div class="feature-section">
114
+
115
+ <h4><?php _e( 'Custom Fields Creator', 'wck' ); ?></h4>
116
+ <p><?php _e( 'WordPress Creation Kit Pro has support for a wide list of custom fields: WYSIWYG Editor, Upload Field, Date, User, Country, Text Input, Textarea, Drop-Down, Select, Checkboxes, Radio Buttons', 'wck' ); ?></p>
117
+ <p><?php _e( 'Access documentation <a href="http://www.cozmoslabs.com/docs/wordpress-creation-kit-documentation/#Custom_Fields_Creator" target="_blank">here</a> about how to display them in your templates.', 'wck' ); ?></p>
118
+
119
+ <h4><?php _e( 'Post Type Creator', 'wck' ); ?></h4>
120
+ <p><?php _e( 'Create & manage all your custom content types', 'wck' ); ?></p>
121
+ <p><?php _e( 'Access documentation <a href="http://www.cozmoslabs.com/docs/wordpress-creation-kit-documentation/#Custom_Post_Type_Creator" target="_blank">here</a> about how to display them in your templates.', 'wck' ); ?></p>
122
+
123
+ <h4><?php _e( 'Taxonomy Creator', 'wck' ); ?></h4>
124
+ <p><?php _e( 'Create new taxonomies for filtering your content', 'wck' ); ?></p>
125
+ <p><?php _e( 'Access documentation <a href="http://www.cozmoslabs.com/docs/wordpress-creation-kit-documentation/#Custom_Taxonomy_Creator" target="_blank">here</a> about how to display them in your templates.', 'wck' ); ?></p>
126
+
127
+ <h4><?php _e( 'Swift Templates (available in the <a href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCKFree-SAS" target="_blank">PRO</a> version)', 'wck' ); ?></h4>
128
+ <p><?php _e( 'Build your front-end templates directly from the WordPress admin UI, without writing any PHP code.', 'wck' ); ?></p>
129
+ <p><?php _e( 'Access documentation <a href="http://www.cozmoslabs.com/docs/wordpress-creation-kit-documentation/#Swift_Templates" target="_blank">here</a> on how to easily display registered custom post types, custom fields and taxonomies in your theme.', 'wck' ); ?></p>
130
+
131
+ <h4><?php _e( 'Front-End Posting (available in the <a href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCKFree-SAS" target="_blank">PRO</a> version)', 'wck' ); ?></h4>
132
+ <p><?php _e( 'Create and edit posts/pages or custom posts directly from the front-end.', 'wck' ); ?></p>
133
+ <p><?php _e( 'Available shortcodes:', 'wck' ); ?></p>
134
+ <ul>
135
+ <li><?php _e( '[fep form_name="front-end-post-name"] - displays your form in the front-end', 'wck' ); ?></li>
136
+ <li><?php _e( '[fep-dashboard] - the quick-dashboard allows: simple profile updates, editing/deletion of posts, pages and custom post types.', 'wck' ); ?></li>
137
+ <li><?php _e( '[fep-lilo] - login/logout/register widget with the simple usage of a shortcode. Can be added in a page or text widget.', 'wck' ); ?></li>
138
+ </ul>
139
+ <p><?php _e( 'Access documentation <a href="http://www.cozmoslabs.com/docs/wordpress-creation-kit-documentation/frontend-posting/" target="_blank">here</a> about how to display them in your templates.', 'wck' ); ?></p>
140
+
141
+ <h4><?php _e( 'Option Pages (available in the <a href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=wpbackend&utm_medium=clientsite&utm_campaign=WCKFree-SAS" target="_blank">PRO</a> version)', 'wck' ); ?></h4>
142
+ <p><?php _e( 'The Options Page Creator Allows you to create a new menu item called "Options"(for example) which can hold advanced custom field groups. Perfect for theme options or a simple UI for your custom plugin (like a simple testimonials section in the front-end).', 'wck' ); ?></p>
143
+
144
+ </div>
145
+ </div>
146
+ </div>
147
+
148
+ <?php
149
+ }
150
+ }
151
+
152
+ /* add refresh to page. Needed to display the serial notification. Need to refactor in the future so it works via ajax. */
153
+ add_action("wck_refresh_list_wck_serial", "wck_serial_after_refresh_list");
154
+ add_action("wck_refresh_entry_wck_serial", "wck_serial_after_refresh_list");
155
+ add_action("wck_refresh_list_wck_tools", "wck_serial_after_refresh_list");
156
+ add_action("wck_refresh_entry_wck_tools", "wck_serial_after_refresh_list");
157
+ function wck_serial_after_refresh_list(){
158
+ echo '<script type="text/javascript">window.location="'. get_admin_url() . 'admin.php?page=sas-page&updated=true' .'";</script>';
159
+ }
160
+
161
+ /* Notify user of when he enters his serial number.
162
+ * Also Check if serial is valid on meta_name creation and update
163
+ */
164
+ add_filter('wck_metabox_content_wck_serial', 'wck_sas_serial_notification', 10, 2);
165
+ add_filter('wck_after_update_metabox_content_wck_serial', 'wck_sas_serial_notification', 10, 2);
166
+ function wck_sas_serial_notification($list){
167
+
168
+ wck_sas_check_serial_number();
169
+ $status = get_option('wck_serial_status');
170
+
171
+ if ( $status == 'noserial') $notif = '<p class="serial-notification red">' . __( 'Please enter your serial number to receive access to automatic updates and support. Need a license key? <a href="http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=WCK-sas&utm_medium=dashboard&utm_campaign=WCK-SN-Purchase" target="_blank">Get One Here</a>.', 'wck' ) . ' </p>';
172
+
173
+ if ( $status == 'serverDown') $notif = '<p class="serial-notification yellow">' . __( 'Oops! Our serial verification server is down. Please try again later.', 'wck' ) . ' </p>';
174
+
175
+ if ( $status == 'notFound') $notif = '<p class="serial-notification red">' . __( 'Oops! It seems the serial number you entered was not found in our database. To find out what\'s your serial number log-in to <a href="http://www.cozmoslabs.com/account/?utm_source=WCK-sas&utm_medium=dashboard&utm_campaign=WCK-Renewal" target="_blank">your account page</a> over at Cozmoslabs.com', 'wck' ) . ' </p>';
176
+
177
+ if ( $status == 'found') $notif = '<p class="serial-notification green">' . __( 'Wohoo! Your serial number is valid and you have access to automatic updates.', 'wck' ) . ' </p>';
178
+
179
+ if ( $status == 'expired') $notif = '<p class="serial-notification red">' . __( 'It seems your serial number has <strong>expired</strong>. To continue receiving access to product downloads, automatic updates and support please update your serial number for another year from <a href="http://www.cozmoslabs.com/account/?utm_source=WCK-sas&utm_medium=dashboard&utm_campaign=WCK-Renewal" target="_blank"><strong>your account page</strong></a>.', 'wck' ) . ' </p>';
180
+
181
+ return $list . $notif;
182
+ }
183
+
184
+ /* Check if serial is valid on Start and Settings page load.
185
+ * We're tying to the admin_enque_scripts because it returns the current page $hook
186
+ */
187
+ add_action( 'admin_enqueue_scripts', 'wck_retest_serial_on_load');
188
+ function wck_retest_serial_on_load($hook){
189
+ if('wck_page_sas-page' == $hook )
190
+ wck_sas_check_serial_number();
191
+ }
192
+
193
+ /* Checks local serial number against our serial-number database. */
194
+ function wck_sas_check_serial_number(){
195
+ // take into account the Free version doesn't need an update check and serial.
196
+ $wck_premium_update = WCK_PLUGIN_DIR.'/update/';
197
+ if (!file_exists($wck_premium_update . 'update-checker.php'))
198
+ return;
199
+
200
+ $serial = get_option('wck_serial');
201
+ if( !empty( $serial[0] ) )
202
+ $serial = urlencode( $serial[0]['serial-number'] );
203
+ if(empty($serial) || $serial == '') {
204
+ update_option( 'wck_serial_status', 'noserial' ); //server down
205
+ } else {
206
+ $response = wp_remote_get( 'http://updatemetadata.cozmoslabs.com/checkserial/?serialNumberSent='.$serial );
207
+
208
+ if (is_wp_error($response)){
209
+ update_option( 'wck_serial_status', 'serverDown' ); //server down
210
+
211
+ }elseif((trim($response['body']) != 'notFound') && (trim($response['body']) != 'found') && (trim($response['body']) != 'expired')){
212
+ update_option( 'wck_serial_status', 'serverDown' ); //unknown response parameter
213
+ }else{
214
+ update_option( 'wck_serial_status', trim($response['body']) ); //either found, notFound or expired
215
+ }
216
+ }
217
+ }
218
+
219
+ /**
220
+ * Class that adds a notice when either the serial number wasn't found, or it has expired
221
+ *
222
+ * @since v.2.1.1
223
+ *
224
+ * @return void
225
+ */
226
+ class wck_add_serial_notices{
227
+ public $pluginPrefix = '';
228
+ public $notificaitonMessage = '';
229
+ public $pluginSerialStatus = '';
230
+
231
+ function __construct( $pluginPrefix, $notificaitonMessage, $pluginSerialStatus ){
232
+ $this->pluginPrefix = $pluginPrefix;
233
+ $this->notificaitonMessage = $notificaitonMessage;
234
+ $this->pluginSerialStatus = $pluginSerialStatus;
235
+
236
+ add_action( 'admin_notices', array( $this, 'add_admin_notice' ) );
237
+ add_action( 'admin_init', array( $this, 'dismiss_notification' ) );
238
+ }
239
+
240
+
241
+ // Display a notice that can be dismissed in case the serial number is inactive
242
+ function add_admin_notice() {
243
+ global $current_user ;
244
+ global $pagenow;
245
+
246
+ $user_id = $current_user->ID;
247
+
248
+ do_action( $this->pluginPrefix.'_before_notification_displayed', $current_user, $pagenow );
249
+
250
+ if ( current_user_can( 'manage_options' ) ){
251
+
252
+ $plugin_serial_status = get_option( $this->pluginSerialStatus );
253
+ if ( $plugin_serial_status != 'found' ){
254
+ // Check that the user hasn't already clicked to ignore the message
255
+ if ( ! get_user_meta($user_id, $this->pluginPrefix.'_dismiss_notification' ) ) {
256
+ echo $finalMessage = apply_filters($this->pluginPrefix.'_notification_message','<div class="error wck-serial-notification" >'.$this->notificaitonMessage.'</div>', $this->notificaitonMessage);
257
+ }
258
+ }
259
+
260
+ do_action( $this->pluginPrefix.'_notification_displayed', $current_user, $pagenow, $plugin_serial_status );
261
+
262
+ }
263
+
264
+ do_action( $this->pluginPrefix.'_after_notification_displayed', $current_user, $pagenow );
265
+
266
+ }
267
+
268
+ function dismiss_notification() {
269
+ global $current_user;
270
+
271
+ $user_id = $current_user->ID;
272
+
273
+ do_action( $this->pluginPrefix.'_before_notification_dismissed', $current_user );
274
+
275
+ // If user clicks to ignore the notice, add that to their user meta
276
+ if ( isset( $_GET[$this->pluginPrefix.'_dismiss_notification']) && '0' == $_GET[$this->pluginPrefix.'_dismiss_notification'] )
277
+ add_user_meta( $user_id, $this->pluginPrefix.'_dismiss_notification', 'true', true );
278
+
279
+ do_action( $this->pluginPrefix.'_after_notification_dismissed', $current_user );
280
+ }
281
+ }
282
+
283
+ // Verify if it's a premium version and display serial notifications
284
+ $wck_premium_update = WCK_PLUGIN_DIR.'/update/';
285
+ if (file_exists ($wck_premium_update . 'update-checker.php')) {
286
+ $wck_serial_status = get_option('wck_serial_status');
287
+
288
+ if (file_exists ( WCK_PLUGIN_DIR . '/wordpress-creation-kit-api/wck-fep/wck-fep.php' ))
289
+ $wck_version = 'pro';
290
+ else
291
+ $wck_version = 'hobbyist';
292
+
293
+ if ($wck_serial_status == 'notFound' || $wck_serial_status == 'noserial' || $wck_serial_status == '') {
294
+ new wck_add_serial_notices('wck', sprintf(__('<p>Your <strong>WordPress Creation Kit</strong> serial number is invalid or missing. <br/>Please %1$sregister your copy%2$s of WCK to receive access to automatic updates and support. Need a license key? %3$sPurchase one now%4$s</p>', 'wck'), "<a href='admin.php?page=sas-page'>", "</a>", "<a href='http://www.cozmoslabs.com/wck-custom-fields-custom-post-types-plugin/?utm_source=WCK&utm_medium=dashboard&utm_campaign=WCK-SN-Purchase' target='_blank' class='button-primary'>", "</a>"), 'wck_serial_status');
295
+ } elseif ($wck_serial_status == 'expired') {
296
+ new wck_add_serial_notices('wck_expired', sprintf(__('<p style="position:relative;">Your <strong>WordPress Creation Kit</strong> licence has expired. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now and get 50&#37; off %4$s %5$sDismiss%6$s</p>', 'wck'), "<a href='http://www.cozmoslabs.com/downloads/wordpress-creation-kit-".$wck_version."-yearly-renewal/?utm_source=WCK&utm_medium=dashboard&utm_campaign=WCK-Renewal' target='_blank'>", "</a>", "<a href='http://www.cozmoslabs.com/downloads/wordpress-creation-kit-".$wck_version."-yearly-renewal/?utm_source=WCK&utm_medium=dashboard&utm_campaign=WCK-Renewal' target='_blank' class='button-primary'>", "</a>", "<a href='" . add_query_arg('wck_expired_dismiss_notification', '0') . "' class='wck-dismiss-notification' style='position:absolute; right:0px; top:50%; margin-top:-7px;'>", "</a>"), 'wck_serial_status');
297
+ } elseif (strpos($wck_serial_status, 'aboutToExpire') === 0) {
298
+ $serial_status_parts = explode('#', $wppb_profile_builder_pro_hobbyist_serial_status);
299
+ $date = $serial_status_parts[1];
300
+ new wck_add_serial_notices('wck_about_to_expire', sprintf(__('<p style="position:relative;">Your <strong>WordPress Creation Kit</strong> serial number is about to expire on %5$s. <br/>Please %1$sRenew Your Licence%2$s to continue receiving access to product downloads, automatic updates and support. %3$sRenew now and get 50&#37; off %4$s %6$sDismiss%7$s</p>', 'wck'), "<a href='http://www.cozmoslabs.com/downloads/wordpress-creation-kit-".$wck_version."-yearly-renewal/?utm_source=WCK&utm_medium=dashboard&utm_campaign=WCK-Renewal'>", "</a>", "<a href='http://www.cozmoslabs.com/downloads/wordpress-creation-kit-".$wck_version."-yearly-renewal/?utm_source=WCK&utm_medium=dashboard&utm_campaign=WCK-Renewal' target='_blank' class='button-primary'>", "</a>", $date, "<a href='" . add_query_arg('wck_about_to_expire_dismiss_notification', '0') . "' class='wck-dismiss-notification' style='position:absolute; right:0px; top:50%; margin-top:-7px;'>", "</a>"), 'wck_serial_status');
301
+ }
302
  }
wck.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: WCK - Custom Fields and Custom Post Types Creator
4
  Description: WordPress Creation Kit consists of three tools that can help you create and maintain custom post types, custom taxonomies and most importantly, custom fields and metaboxes for your posts, pages or CPT's.
5
  Author: Cozmoslabs, Madalin Ungureanu, Cristian Antohe
6
- Version: 1.1.2
7
  Author URI: http://www.cozmoslabs.com
8
 
9
  License: GPL2
@@ -117,12 +117,13 @@ if( !file_exists( dirname(__FILE__).'/wck-fep.php' ) && !file_exists( dirname(__
117
 
118
  /* deactivation hook */
119
  register_deactivation_hook( __FILE__, 'wck_deactivate_function' );
120
- function wck_deactivate_function() {
121
-
122
  /* remove capabilities from subscriber that were added by FEP */
123
- $role = get_role( 'subscriber' );
124
- $role->remove_cap( 'upload_files' );
125
- $role->remove_cap( 'edit_posts' );
 
 
126
  }
127
 
128
  /* check for updates */
@@ -141,13 +142,6 @@ if (file_exists ($wck_premium_update . 'update-checker.php')){
141
  }
142
  }
143
 
144
- /* Add a halloween notice */
145
- new WCK_Add_Notices( 'wck_halloween',
146
- sprintf( __( '<p style="position:relative;">Halloween treat: 30&#37; OFF on all WordPress Creation Kit purchases 29 - 30 -31 October over at %1$swww.cozmslabs.com%2$s Get your discount code! %3$sDismiss%4$s</p>', 'wck'), "<a href='http://www.cozmoslabs.com/' target='_blank' class='button-primary'>", "</a>", "<a href='". add_query_arg( 'wck_halloween_dismiss_notification', '0' ) ."' class='wck-dismiss-notification' style='position: absolute;right: 0;top: 50%;margin-top: -7px;'>", "</a>" ),
147
- 'updated halloween',
148
- '28 October 2014',
149
- '1 November 2014' );
150
-
151
  /* include nested repeaters */
152
  /* if( file_exists( dirname(__FILE__).'/wordpress-creation-kit-api/wck-nested-repeaters/wck-nested-repeaters.php' ) )
153
  require_once('wordpress-creation-kit-api/wck-nested-repeaters/wck-nested-repeaters.php'); */
3
  Plugin Name: WCK - Custom Fields and Custom Post Types Creator
4
  Description: WordPress Creation Kit consists of three tools that can help you create and maintain custom post types, custom taxonomies and most importantly, custom fields and metaboxes for your posts, pages or CPT's.
5
  Author: Cozmoslabs, Madalin Ungureanu, Cristian Antohe
6
+ Version: 1.1.3
7
  Author URI: http://www.cozmoslabs.com
8
 
9
  License: GPL2
117
 
118
  /* deactivation hook */
119
  register_deactivation_hook( __FILE__, 'wck_deactivate_function' );
120
+ function wck_deactivate_function() {
 
121
  /* remove capabilities from subscriber that were added by FEP */
122
+ $role = get_role( 'subscriber' );
123
+ if( !empty( $role ) ){
124
+ $role->remove_cap('upload_files');
125
+ $role->remove_cap('edit_posts');
126
+ }
127
  }
128
 
129
  /* check for updates */
142
  }
143
  }
144
 
 
 
 
 
 
 
 
145
  /* include nested repeaters */
146
  /* if( file_exists( dirname(__FILE__).'/wordpress-creation-kit-api/wck-nested-repeaters/wck-nested-repeaters.php' ) )
147
  require_once('wordpress-creation-kit-api/wck-nested-repeaters/wck-nested-repeaters.php'); */
wordpress-creation-kit-api/fields/checkbox.php CHANGED
@@ -1,43 +1,43 @@
1
- <?php
2
- /* @param string $meta Meta name.
3
- * @param array $details Contains the details for the field.
4
- * @param string $value Contains input value;
5
- * @param string $context Context where the function is used. Depending on it some actions are preformed.;
6
- * @return string $element input element html string. */
7
-
8
- if( !empty( $details['options'] ) ){
9
- $element .= '<div class="wck-checkboxes">';
10
- foreach( $details['options'] as $option ){
11
- $found = false;
12
-
13
- if( !is_array( $value ) )
14
- $values = explode( ', ', $value );
15
- else
16
- $values = $value;
17
-
18
- if( strpos( $option, '%' ) === false ){
19
- $label = $option;
20
- $value_attr = $option;
21
- if ( in_array( $option, $values ) )
22
- $found = true;
23
- }
24
- else{
25
- $option_parts = explode( '%', $option );
26
- if( !empty( $option_parts ) ){
27
- if( empty( $option_parts[0] ) && count( $option_parts ) == 3 ){
28
- $label = $option_parts[1];
29
- $value_attr = $option_parts[2];
30
- if ( in_array( $option_parts[2], $values ) )
31
- $found = true;
32
- }
33
- }
34
- }
35
-
36
- $element .= '<div><label><input type="checkbox" name="'. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" id="';
37
- if( !empty( $frontend_prefix ) )
38
- $element .= $frontend_prefix;
39
- $element .= esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] . '_' . $value_attr ) ) .'" value="'. esc_attr( $value_attr ) .'" '. checked( $found, true, false ) .'class="mb-checkbox mb-field" />'. esc_html( $label ) .'</label></div>' ;
40
- }
41
- $element .= '</div>';
42
- }
43
  ?>
1
+ <?php
2
+ /* @param string $meta Meta name.
3
+ * @param array $details Contains the details for the field.
4
+ * @param string $value Contains input value;
5
+ * @param string $context Context where the function is used. Depending on it some actions are preformed.;
6
+ * @return string $element input element html string. */
7
+
8
+ if( !empty( $details['options'] ) ){
9
+ $element .= '<div class="wck-checkboxes">';
10
+ foreach( $details['options'] as $option ){
11
+ $found = false;
12
+
13
+ if( !is_array( $value ) )
14
+ $values = explode( ', ', $value );
15
+ else
16
+ $values = $value;
17
+
18
+ if( strpos( $option, '%' ) === false ){
19
+ $label = $option;
20
+ $value_attr = $option;
21
+ if ( in_array( $option, $values ) )
22
+ $found = true;
23
+ }
24
+ else{
25
+ $option_parts = explode( '%', $option );
26
+ if( !empty( $option_parts ) ){
27
+ if( empty( $option_parts[0] ) && count( $option_parts ) == 3 ){
28
+ $label = $option_parts[1];
29
+ $value_attr = $option_parts[2];
30
+ if ( in_array( $option_parts[2], $values ) )
31
+ $found = true;
32
+ }
33
+ }
34
+ }
35
+
36
+ $element .= '<div><label><input type="checkbox" name="'. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" id="';
37
+ if( !empty( $frontend_prefix ) )
38
+ $element .= $frontend_prefix;
39
+ $element .= esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] . '_' . $value_attr ) ) .'" value="'. esc_attr( $value_attr ) .'" '. checked( $found, true, false ) .'class="mb-checkbox mb-field" />'. esc_html( $label ) .'</label></div>' ;
40
+ }
41
+ $element .= '</div>';
42
+ }
43
  ?>
wordpress-creation-kit-api/fields/radio.php CHANGED
@@ -1,39 +1,39 @@
1
- <?php
2
- /* @param string $meta Meta name.
3
- * @param array $details Contains the details for the field.
4
- * @param string $value Contains input value;
5
- * @param string $context Context where the function is used. Depending on it some actions are preformed.;
6
- * @return string $element input element html string. */
7
-
8
- if( !empty( $details['options'] ) ){
9
- $element .= '<div class="wck-radiobuttons">';
10
- foreach( $details['options'] as $option ){
11
- $found = false;
12
-
13
- $values = explode( ', ', $value );
14
- if( strpos( $option, '%' ) === false ){
15
- $label = $option;
16
- $value_attr = $option;
17
- if ( in_array( $option, $values ) )
18
- $found = true;
19
- }
20
- else{
21
- $option_parts = explode( '%', $option );
22
- if( !empty( $option_parts ) ){
23
- if( empty( $option_parts[0] ) && count( $option_parts ) == 3 ){
24
- $label = $option_parts[1];
25
- $value_attr = $option_parts[2];
26
- if ( in_array( $option_parts[2], $values ) )
27
- $found = true;
28
- }
29
- }
30
- }
31
-
32
- $element .= '<div><label><input type="radio" name="'. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" id="';
33
- if( !empty( $frontend_prefix ) )
34
- $element .= $frontend_prefix;
35
- $element .= esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] . '_' . $value_attr ) ) .'" value="'. esc_attr( $value_attr ) .'" '. checked( $found, true, false ) .'class="mb-radio mb-field" />'. esc_html( $label ) .'</label></div>';
36
- }
37
- $element .= '</div>';
38
- }
39
  ?>
1
+ <?php
2
+ /* @param string $meta Meta name.
3
+ * @param array $details Contains the details for the field.
4
+ * @param string $value Contains input value;
5
+ * @param string $context Context where the function is used. Depending on it some actions are preformed.;
6
+ * @return string $element input element html string. */
7
+
8
+ if( !empty( $details['options'] ) ){
9
+ $element .= '<div class="wck-radiobuttons">';
10
+ foreach( $details['options'] as $option ){
11
+ $found = false;
12
+
13
+ $values = explode( ', ', $value );
14
+ if( strpos( $option, '%' ) === false ){
15
+ $label = $option;
16
+ $value_attr = $option;
17
+ if ( in_array( $option, $values ) )
18
+ $found = true;
19
+ }
20
+ else{
21
+ $option_parts = explode( '%', $option );
22
+ if( !empty( $option_parts ) ){
23
+ if( empty( $option_parts[0] ) && count( $option_parts ) == 3 ){
24
+ $label = $option_parts[1];
25
+ $value_attr = $option_parts[2];
26
+ if ( in_array( $option_parts[2], $values ) )
27
+ $found = true;
28
+ }
29
+ }
30
+ }
31
+
32
+ $element .= '<div><label><input type="radio" name="'. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" id="';
33
+ if( !empty( $frontend_prefix ) )
34
+ $element .= $frontend_prefix;
35
+ $element .= esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] . '_' . $value_attr ) ) .'" value="'. esc_attr( $value_attr ) .'" '. checked( $found, true, false ) .'class="mb-radio mb-field" />'. esc_html( $label ) .'</label></div>';
36
+ }
37
+ $element .= '</div>';
38
+ }
39
  ?>
wordpress-creation-kit-api/fields/text.php CHANGED
@@ -1,16 +1,16 @@
1
- <?php
2
- /* @param string $meta Meta name.
3
- * @param array $details Contains the details for the field.
4
- * @param string $value Contains input value;
5
- * @param string $context Context where the function is used. Depending on it some actions are preformed.;
6
- * @return string $element input element html string. */
7
-
8
-
9
- $element .= '<input type="text" name="'. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" id="';
10
- if( !empty( $frontend_prefix ) )
11
- $element .= $frontend_prefix;
12
- $element .= esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'"';
13
- if( !empty( $details['readonly'] ) && $details['readonly'] )
14
- $element .= 'readonly="readonly"';
15
- $element .= ' value="'. esc_attr( $value ) .'" class="mb-text-input mb-field"/>';
16
  ?>
1
+ <?php
2
+ /* @param string $meta Meta name.
3
+ * @param array $details Contains the details for the field.
4
+ * @param string $value Contains input value;
5
+ * @param string $context Context where the function is used. Depending on it some actions are preformed.;
6
+ * @return string $element input element html string. */
7
+
8
+
9
+ $element .= '<input type="text" name="'. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" id="';
10
+ if( !empty( $frontend_prefix ) )
11
+ $element .= $frontend_prefix;
12
+ $element .= esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'"';
13
+ if( !empty( $details['readonly'] ) && $details['readonly'] )
14
+ $element .= 'readonly="readonly"';
15
+ $element .= ' value="'. esc_attr( $value ) .'" class="mb-text-input mb-field"/>';
16
  ?>
wordpress-creation-kit-api/fields/textarea.php CHANGED
@@ -1,12 +1,12 @@
1
- <?php
2
- /* @param string $meta Meta name.
3
- * @param array $details Contains the details for the field.
4
- * @param string $value Contains input value;
5
- * @param string $context Context where the function is used. Depending on it some actions are preformed.;
6
- * @return string $element input element html string. */
7
-
8
- $element .= '<textarea name="'. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" id="';
9
- if( !empty( $frontend_prefix ) )
10
- $element .= $frontend_prefix;
11
- $element .= esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" style="vertical-align:top;" class="mb-textarea mb-field">'. esc_html( $value ) .'</textarea>';
12
  ?>
1
+ <?php
2
+ /* @param string $meta Meta name.
3
+ * @param array $details Contains the details for the field.
4
+ * @param string $value Contains input value;
5
+ * @param string $context Context where the function is used. Depending on it some actions are preformed.;
6
+ * @return string $element input element html string. */
7
+
8
+ $element .= '<textarea name="'. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" id="';
9
+ if( !empty( $frontend_prefix ) )
10
+ $element .= $frontend_prefix;
11
+ $element .= esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" style="vertical-align:top;" class="mb-textarea mb-field">'. esc_html( $value ) .'</textarea>';
12
  ?>
wordpress-creation-kit-api/fields/upload.php CHANGED
@@ -1,69 +1,69 @@
1
- <?php
2
- /* @param string $meta Meta name.
3
- * @param array $details Contains the details for the field.
4
- * @param string $value Contains input value;
5
- * @param string $context Context where the function is used. Depending on it some actions are preformed.;
6
- * @return string $element input element html string. */
7
-
8
- /* define id's for input and info div */
9
- $upload_input_id = str_replace( '-', '_', Wordpress_Creation_Kit::wck_generate_slug( $meta . $details['title'] ) );
10
- $upload_info_div_id = str_replace( '-', '_', Wordpress_Creation_Kit::wck_generate_slug( $meta .'_info_container_'. $details['title'] ) );
11
-
12
- /* hidden input that will hold the attachment id */
13
- $element.= '<input id="'. esc_attr( $upload_input_id ) .'" type="hidden" size="36" name="'. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" value="'. $value .'" class="mb-text-input mb-field"/>';
14
-
15
- /* container for the image preview (or file ico) and name and file type */
16
- if( !empty ( $value ) ){
17
- /* it can hold multiple attachments separated by comma */
18
- $values = explode( ',', $value );
19
- foreach( $values as $value ){
20
- $file_src = wp_get_attachment_url($value);
21
- $thumbnail = wp_get_attachment_image( $value, array( 80, 80 ), true );
22
- $file_name = get_the_title( $value );
23
- $file_type = get_post_mime_type( $value );
24
-
25
- $element.= '<div id="'.esc_attr( $upload_info_div_id ).'_info_container" class="upload-field-details" data-attachment_id="'. $value .'">';
26
- $element.= '<div class="file-thumb">';
27
- $element.= $thumbnail;
28
- $element.= '</div>';
29
-
30
- $element.= '<p><span class="file-name">';
31
- $element.= $file_name;
32
- $element.= '</span><span class="file-type">';
33
- $element.= $file_type;
34
- $element.= '</span>';
35
- if( !empty ( $value ) )
36
- $element.= '<span class="wck-remove-upload">'.__( 'Remove', 'core' ).'</span>';
37
- $element.= '</p></div>';
38
- }
39
- }
40
-
41
- $element.= '<a href="#" class="button wck_upload_button" id="upload_'. esc_attr(Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'_button" data-uploader_title="'. $details['title'] .'" data-uploader_button_text="Select Files" data-upload_input="'.esc_attr( $upload_input_id ).'" ';
42
- if( is_user_logged_in() )
43
- $element.= 'data-uploader_logged_in="true"';
44
-
45
- if( !empty( $post_id ) )
46
- $element.= ' data-post_id="'. $post_id .'"';
47
-
48
- if( !empty( $details['multiple_upload'] ) ){
49
- if( $details['multiple_upload'] == 'true' )
50
- $element.= ' data-multiple_upload="true"';
51
- else
52
- $element.= ' data-multiple_upload="false"';
53
- }
54
-
55
- if( !empty( $details['attach_to_post'] ) ){
56
- if( $details['attach_to_post'] == true )
57
- $element.= ' data-attach_to_post="true"';
58
- }
59
-
60
- if( $context != 'fep' )
61
- $element.= ' data-upload_in_backend="true"';
62
- else
63
- $element.= ' data-upload_in_backend="false"';
64
-
65
- if( !empty( $details['allowed_types'] ) )
66
- $element.= ' data-allowed_types="'. $details['allowed_types'] .'"';
67
-
68
- $element.= '>'. __( 'Upload ', 'wck' ) . $details['title'] .'</a>';
69
  ?>
1
+ <?php
2
+ /* @param string $meta Meta name.
3
+ * @param array $details Contains the details for the field.
4
+ * @param string $value Contains input value;
5
+ * @param string $context Context where the function is used. Depending on it some actions are preformed.;
6
+ * @return string $element input element html string. */
7
+
8
+ /* define id's for input and info div */
9
+ $upload_input_id = str_replace( '-', '_', Wordpress_Creation_Kit::wck_generate_slug( $meta . $details['title'] ) );
10
+ $upload_info_div_id = str_replace( '-', '_', Wordpress_Creation_Kit::wck_generate_slug( $meta .'_info_container_'. $details['title'] ) );
11
+
12
+ /* hidden input that will hold the attachment id */
13
+ $element.= '<input id="'. esc_attr( $upload_input_id ) .'" type="hidden" size="36" name="'. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" value="'. $value .'" class="mb-text-input mb-field"/>';
14
+
15
+ /* container for the image preview (or file ico) and name and file type */
16
+ if( !empty ( $value ) ){
17
+ /* it can hold multiple attachments separated by comma */
18
+ $values = explode( ',', $value );
19
+ foreach( $values as $value ){
20
+ $file_src = wp_get_attachment_url($value);
21
+ $thumbnail = wp_get_attachment_image( $value, array( 80, 80 ), true );
22
+ $file_name = get_the_title( $value );
23
+ $file_type = get_post_mime_type( $value );
24
+
25
+ $element.= '<div id="'.esc_attr( $upload_info_div_id ).'_info_container" class="upload-field-details" data-attachment_id="'. $value .'">';
26
+ $element.= '<div class="file-thumb">';
27
+ $element.= $thumbnail;
28
+ $element.= '</div>';
29
+
30
+ $element.= '<p><span class="file-name">';
31
+ $element.= $file_name;
32
+ $element.= '</span><span class="file-type">';
33
+ $element.= $file_type;
34
+ $element.= '</span>';
35
+ if( !empty ( $value ) )
36
+ $element.= '<span class="wck-remove-upload">'.__( 'Remove', 'core' ).'</span>';
37
+ $element.= '</p></div>';
38
+ }
39
+ }
40
+
41
+ $element.= '<a href="#" class="button wck_upload_button" id="upload_'. esc_attr(Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'_button" data-uploader_title="'. $details['title'] .'" data-uploader_button_text="Select Files" data-upload_input="'.esc_attr( $upload_input_id ).'" ';
42
+ if( is_user_logged_in() )
43
+ $element.= 'data-uploader_logged_in="true"';
44
+
45
+ if( !empty( $post_id ) )
46
+ $element.= ' data-post_id="'. $post_id .'"';
47
+
48
+ if( !empty( $details['multiple_upload'] ) ){
49
+ if( $details['multiple_upload'] == 'true' )
50
+ $element.= ' data-multiple_upload="true"';
51
+ else
52
+ $element.= ' data-multiple_upload="false"';
53
+ }
54
+
55
+ if( !empty( $details['attach_to_post'] ) ){
56
+ if( $details['attach_to_post'] == true )
57
+ $element.= ' data-attach_to_post="true"';
58
+ }
59
+
60
+ if( $context != 'fep' )
61
+ $element.= ' data-upload_in_backend="true"';
62
+ else
63
+ $element.= ' data-upload_in_backend="false"';
64
+
65
+ if( !empty( $details['allowed_types'] ) )
66
+ $element.= ' data-allowed_types="'. $details['allowed_types'] .'"';
67
+
68
+ $element.= '>'. __( 'Upload ', 'wck' ) . $details['title'] .'</a>';
69
  ?>
wordpress-creation-kit-api/fields/wysiwyg editor.php CHANGED
@@ -1,14 +1,15 @@
1
- <?php
2
- /* @param string $meta Meta name.
3
- * @param array $details Contains the details for the field.
4
- * @param string $value Contains input value;
5
- * @param string $context Context where the function is used. Depending on it some actions are preformed.;
6
- * @return string $element input element html string. */
7
-
8
- $random_id = "wck_wisi_editor_". time() . '-' . rand();
9
- $element .= '<textarea name="'. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" class="mb-textarea mb-field '. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" id="'. $random_id .'">'. esc_html( $value ) .'</textarea>';
10
- $element .= '<script type="text/javascript">jQuery( function(){
11
- CKEDITOR.replace("'. $random_id .'");
12
- });</script>';
13
- ?>
14
-
 
1
+ <?php
2
+ /* @param string $meta Meta name.
3
+ * @param array $details Contains the details for the field.
4
+ * @param string $value Contains input value;
5
+ * @param string $context Context where the function is used. Depending on it some actions are preformed.;
6
+ * @return string $element input element html string. */
7
+
8
+ $random_id = "wck_wisi_editor_". time() . '-' . rand();
9
+ $element .= '<textarea name="'. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" class="mb-textarea mb-field '. esc_attr( Wordpress_Creation_Kit::wck_generate_slug( $details['title'] ) ) .'" id="'. $random_id .'">'. esc_html( $value ) .'</textarea>';
10
+ $element .= '<script type="text/javascript">jQuery( function(){
11
+ CKEDITOR.replace("'. $random_id .'");
12
+ CKEDITOR.config.allowedContent = true;
13
+ });</script>';
14
+ ?>
15
+
wordpress-creation-kit-api/wck-fep/wck-fep.css CHANGED
@@ -1,603 +1,613 @@
1
- .single-cfc .add-entry-button{
2
- display:none;
3
- }
4
-
5
- .ui-tabs-hide{
6
- display:none;
7
- }
8
-
9
- .fep-container {
10
- margin: 0;
11
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
12
- font-size: 13px;
13
- line-height: 18px;
14
- color: #333333;
15
- position:relative;
16
- min-height:100px;
17
- }
18
-
19
- .fep-container button,
20
- .fep-container input,
21
- .fep-container select,
22
- .fep-container textarea {
23
- margin: 0;
24
- font-size: 100%;
25
- vertical-align: middle;
26
- }
27
-
28
- .fep-container button,
29
- .fep-container input {
30
- *overflow: visible;
31
- line-height: normal;
32
- }
33
-
34
- .fep-container button::-moz-focus-inner,
35
- .fep-container input::-moz-focus-inner {
36
- padding: 0;
37
- border: 0;
38
- }
39
-
40
- .fep-container button,
41
- .fep-container input[type="button"],
42
- .fep-container input[type="reset"],
43
- .fep-container input[type="submit"] {
44
- cursor: pointer;
45
- -webkit-appearance: button;
46
- }
47
-
48
- .fep-container input[type="search"] {
49
- -webkit-box-sizing: content-box;
50
- -moz-box-sizing: content-box;
51
- box-sizing: content-box;
52
- -webkit-appearance: textfield;
53
- }
54
-
55
- .fep-container input[type="search"]::-webkit-search-decoration,
56
- .fep-container input[type="search"]::-webkit-search-cancel-button {
57
- -webkit-appearance: none;
58
- }
59
-
60
- .fep-container textarea {
61
- overflow: auto;
62
- vertical-align: top;
63
- }
64
-
65
- .fep-container .clearfix {
66
- *zoom: 1;
67
- }
68
-
69
- .fep-container .clearfix:before,
70
- .fep-container .clearfix:after {
71
- display: table;
72
- content: "";
73
- }
74
-
75
- .fep-container .clearfix:after {
76
- clear: both;
77
- }
78
-
79
- .fep-container a {
80
- color: #0088cc;
81
- text-decoration: none;
82
- }
83
-
84
- .fep-container a:hover {
85
- color: #005580;
86
- text-decoration: underline;
87
- }
88
-
89
- .fep-container code,
90
- .fep-container pre {
91
- padding: 0 3px 2px;
92
- font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
93
- font-size: 12px;
94
- color: #333333;
95
- -webkit-border-radius: 3px;
96
- -moz-border-radius: 3px;
97
- border-radius: 3px;
98
- }
99
-
100
- .fep-container code {
101
- padding: 2px 4px;
102
- color: #d14;
103
- background-color: #f7f7f9;
104
- border: 1px solid #e1e1e8;
105
- }
106
-
107
- .fep-container pre {
108
- display: inline-block;
109
- margin: 0;
110
- word-break: break-all;
111
- word-wrap: break-word;
112
- white-space: pre;
113
- white-space: pre-wrap;
114
- vertical-align: top;
115
- background:none;
116
- }
117
-
118
- .fep-container pre code {
119
- padding: 0;
120
- color: inherit;
121
- background-color: transparent;
122
- border: 0;
123
- }
124
-
125
- .fep-container form {
126
- margin: 0 0 18px;
127
- }
128
-
129
- .fep-container fieldset {
130
- padding: 0;
131
- margin: 0;
132
- border: 0;
133
- }
134
-
135
- .fep-container legend {
136
- display: block;
137
- width: 100%;
138
- padding: 0;
139
- margin-bottom: 27px;
140
- font-size: 19.5px;
141
- line-height: 36px;
142
- color: #333333;
143
- border: 0;
144
- border-bottom: 1px solid #e5e5e5;
145
- }
146
-
147
- .fep-container legend small {
148
- font-size: 13.5px;
149
- color: #999999;
150
- }
151
-
152
- .fep-container label,
153
- .fep-container input,
154
- .fep-container button,
155
- .fep-container select,
156
- .fep-container textarea {
157
- font-size: 13px;
158
- font-weight: normal;
159
- line-height: 18px;
160
- }
161
-
162
- .fep-container input,
163
- .fep-container button,
164
- .fep-container select,
165
- .fep-container textarea {
166
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
167
- }
168
-
169
- .fep-container label {
170
- display: block;
171
- margin-bottom: 5px;
172
- }
173
-
174
- .fep-container select,
175
- .fep-container textarea,
176
- .fep-container input[type="text"],
177
- .fep-container input[type="password"],
178
- .fep-container input[type="datetime"],
179
- .fep-container input[type="datetime-local"],
180
- .fep-container input[type="date"],
181
- .fep-container input[type="month"],
182
- .fep-container input[type="time"],
183
- .fep-container input[type="week"],
184
- .fep-container input[type="number"],
185
- .fep-container input[type="email"],
186
- .fep-container input[type="url"],
187
- .fep-container input[type="search"],
188
- .fep-container input[type="tel"],
189
- .fep-container input[type="color"]
190
- {
191
- display: inline-block;
192
- height: 18px;
193
- padding: 4px;
194
- font-size: 13px;
195
- line-height: 18px;
196
- color: #555555;
197
- -moz-box-sizing: content-box;
198
- box-sizing: content-box;
199
- }
200
-
201
- .fep-container textarea {
202
- height: auto;
203
- }
204
-
205
- .fep-container textarea,
206
- .fep-container input[type="text"],
207
- .fep-container input[type="password"],
208
- .fep-container input[type="datetime"],
209
- .fep-container input[type="datetime-local"],
210
- .fep-container input[type="date"],
211
- .fep-container input[type="month"],
212
- .fep-container input[type="time"],
213
- .fep-container input[type="week"],
214
- .fep-container input[type="number"],
215
- .fep-container input[type="email"],
216
- .fep-container input[type="url"],
217
- .fep-container input[type="search"],
218
- .fep-container input[type="tel"],
219
- .fep-container input[type="color"]
220
- {
221
- background-color: #ffffff;
222
- border: 1px solid #cccccc;
223
- -webkit-border-radius: 3px;
224
- -moz-border-radius: 3px;
225
- border-radius: 3px;
226
- -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
227
- -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
228
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
229
- -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
230
- -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
231
- -ms-transition: border linear 0.2s, box-shadow linear 0.2s;
232
- -o-transition: border linear 0.2s, box-shadow linear 0.2s;
233
- transition: border linear 0.2s, box-shadow linear 0.2s;
234
- }
235
-
236
- .fep-container textarea:focus,
237
- .fep-container input[type="text"]:focus,
238
- .fep-container input[type="password"]:focus,
239
- .fep-container input[type="datetime"]:focus,
240
- .fep-container input[type="datetime-local"]:focus,
241
- .fep-container input[type="date"]:focus,
242
- .fep-container input[type="month"]:focus,
243
- .fep-container input[type="time"]:focus,
244
- .fep-container input[type="week"]:focus,
245
- .fep-container input[type="number"]:focus,
246
- .fep-container input[type="email"]:focus,
247
- .fep-container input[type="url"]:focus,
248
- .fep-container input[type="search"]:focus,
249
- .fep-container input[type="tel"]:focus,
250
- .fep-container input[type="color"]:focus {
251
- border-color: rgba(82, 168, 236, 0.8);
252
- outline: 0;
253
- outline: thin dotted \9;
254
- /* IE6-9 */
255
-
256
- -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
257
- -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
258
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
259
- }
260
-
261
- .fep-container input[type="radio"],
262
- .fep-container input[type="checkbox"] {
263
- margin: 3px 5px 3px 0;
264
- *margin-top: 0;
265
- /* IE7 */
266
-
267
- line-height: normal;
268
- cursor: pointer;
269
- }
270
-
271
- .fep-container input[type="submit"],
272
- .fep-container input[type="reset"],
273
- .fep-container input[type="button"],
274
- .fep-container input[type="radio"],
275
- .fep-container input[type="checkbox"] {
276
- width: auto;
277
- }
278
-
279
- .fep-container select,
280
- .fep-container input[type="file"] {
281
- height: 28px;
282
- /* In IE7, the height of the select element cannot be changed by height, only font-size */
283
-
284
- *margin-top: 4px;
285
- /* For IE7, add top margin to align select with labels */
286
-
287
- line-height: 28px;
288
- }
289
-
290
- .fep-container select {
291
- width: 220px;
292
- border: 1px solid #bbb;
293
- }
294
-
295
- .fep-container select[multiple],
296
- .fep-container select[size] {
297
- height: auto;
298
- }
299
-
300
- .fep-container select:focus,
301
- .fep-container input[type="file"]:focus,
302
- .fep-container input[type="radio"]:focus,
303
- .fep-container input[type="checkbox"]:focus {
304
- outline: thin dotted #333;
305
- outline: 5px auto -webkit-focus-ring-color;
306
- outline-offset: -2px;
307
- }
308
-
309
- .fep-container input[disabled],
310
- .fep-container select[disabled],
311
- .fep-container textarea[disabled],
312
- .fep-container input[readonly],
313
- .fep-container select[readonly],
314
- .fep-container textarea[readonly] {
315
- cursor: not-allowed;
316
- background-color: #eeeeee;
317
- border-color: #ddd;
318
- }
319
-
320
- .fep-container input[type="radio"][disabled],
321
- .fep-container input[type="checkbox"][disabled],
322
- .fep-container input[type="radio"][readonly],
323
- .fep-container input[type="checkbox"][readonly] {
324
- background-color: transparent;
325
- }
326
-
327
- #remember #label-remember-me{
328
- width:auto;
329
- }
330
-
331
- /* Layout */
332
-
333
- .fep-container label{
334
- font-weight:bold;
335
- width:17%;
336
- float:left;
337
- clear:left;
338
- }
339
-
340
- .fep-container input,
341
- .fep-container textarea {
342
- width: 95%;
343
- }
344
-
345
- .fep-container label .required{
346
- color:#ff0000;
347
- }
348
-
349
- .fep-container .mb-right-column{
350
- width:78%;
351
- float:right;
352
- }
353
-
354
- .fep-container .mb-right-column > div label{
355
- float:none;
356
- width:auto;
357
- font-weight:normal;
358
- }
359
-
360
- .mb-list-entry-fields{
361
- clear:both;
362
- margin:0;
363
- list-style:none;
364
- }
365
-
366
- .mb-list-entry-fields > li{
367
- overflow:hidden;
368
- margin-bottom:13px;
369
- }
370
-
371
- .fep-container .add-entry-button{
372
- text-align:right;
373
- }
374
-
375
- .fep-container .fep-element-wrap, .fep-container .fep-single-element-wrap{
376
- overflow:hidden;
377
- clear:both;
378
- margin-bottom:13px;
379
- }
380
-
381
- .fep-container .description{
382
- font-size:90%;
383
- font-style:italic;
384
- opacity:0.8;
385
- margin-top: 5px;
386
- margin-bottom:0;
387
- }
388
-
389
- .single-cfc{
390
- margin-bottom:-13px;
391
- }
392
-
393
- .fep-container a.button{
394
- cursor:pointer;
395
- }
396
-
397
- .mb-table-container{
398
- border-bottom: 1px solid #DDDDDD;
399
- border-top: 1px solid #DDDDDD;
400
- border-left: 1px solid #DDDDDD;
401
- width: 100%;
402
- border-collapse: separate;
403
- border-spacing: 0;
404
- }
405
-
406
- .mb-table-container td, .mb-table-container th{
407
- border-right: 1px solid #DDDDDD;
408
- padding: 5px;
409
- }
410
-
411
- .mb-table-container ul{
412
- list-style:none;
413
- margin:0;
414
- }
415
-
416
- .mb-table-container ul li{
417
- margin-bottom:5px;
418
- }
419
-
420
- .fep-container .upload-field-details {
421
- display: inline-block;
422
- min-height: 24px;
423
- padding: 2px 0;
424
- vertical-align: middle;
425
- }
426
-
427
- .fep-container .upload-field-details img {
428
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
429
- margin: 0 5px;
430
- }
431
-
432
- .fep-container .upload-field-details > * {
433
- float: left;
434
- }
435
-
436
- .fep-container .upload-field-details .file-name {
437
- color: #21759B;
438
- font-weight: bold;
439
- }
440
-
441
- .fep-container .upload-field-details span {
442
- display: block;
443
- }
444
-
445
- .fep-container .mbdelete, .fep-container .wck-remove-upload {
446
- color: #BC0B0B;
447
- cursor: pointer;
448
- }
449
-
450
- .wck-edit, .wck-delete, .wck-number {
451
- text-align: center !important;
452
- width: 50px;
453
- }
454
-
455
- .fep-container .button, .fep-container .button-secondary, .fep-container .button-primary{
456
- color: #464646;
457
-
458
- -webkit-border-radius: 11px;
459
- border-radius: 11px;
460
-
461
- border:1px solid #BBBBBB;
462
- cursor: pointer;
463
- font-size: 12px;
464
- text-decoration: none;
465
- line-height: 15px;
466
- padding: 3px 10px;
467
- white-space: nowrap;
468
-
469
- background: #ffffff; /* Old browsers */
470
- background: -moz-linear-gradient(top, #ffffff 0%, #ededed 100%); /* FF3.6+ */
471
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#ededed)); /* Chrome,Safari4+ */
472
- background: -webkit-linear-gradient(top, #ffffff 0%,#ededed 100%); /* Chrome10+,Safari5.1+ */
473
- background: -o-linear-gradient(top, #ffffff 0%,#ededed 100%); /* Opera 11.10+ */
474
- background: -ms-linear-gradient(top, #ffffff 0%,#ededed 100%); /* IE10+ */
475
- background: linear-gradient(to bottom, #ffffff 0%,#ededed 100%); /* W3C */
476
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
477
-
478
- text-shadow: 0 1px 0 #FFFFFF;
479
- display:inline;
480
- display:inline-block;
481
- }
482
-
483
- .fep-container .button-primary{
484
- background: #298cba; /* Old browsers */
485
- background: -moz-linear-gradient(top, #298cba 0%, #1d6385 100%); /* FF3.6+ */
486
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#298cba), color-stop(100%,#1d6385)); /* Chrome,Safari4+ */
487
- background: -webkit-linear-gradient(top, #298cba 0%,#1d6385 100%); /* Chrome10+,Safari5.1+ */
488
- background: -o-linear-gradient(top, #298cba 0%,#1d6385 100%); /* Opera 11.10+ */
489
- background: -ms-linear-gradient(top, #298cba 0%,#1d6385 100%); /* IE10+ */
490
- background: linear-gradient(to bottom, #298cba 0%,#1d6385 100%); /* W3C */
491
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#298cba', endColorstr='#1d6385',GradientType=0 ); /* IE6-9 */
492
-
493
- border-color: #298CBA;
494
- color: #FFFFFF;
495
- font-weight: bold;
496
- text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
497
-
498
- }
499
-
500
- .fep-container .button:hover, .fep-container .button-secondary:hover{
501
- border-color:#666;
502
- color:#000;
503
- text-decoration:none;
504
- }
505
-
506
- .fep-container .button-primary:hover{
507
- border-color:#13455B;
508
- color:#EAF2FA;
509
- text-decoration:none;
510
- }
511
-
512
- /* Lilo Form */
513
- #wck-fep-login-form ul, #wck-fep-register-form ul, #wck-fep-update-form ul{
514
- margin:0;
515
- list-style:none;
516
- }
517
-
518
- #wck-fep-login-form ul li, #wck-fep-register-form ul li, #wck-fep-update-form ul li{
519
- margin-bottom:10px;
520
- overflow:hidden;
521
- }
522
-
523
- #wck-fep-login-form label, #wck-fep-register-form label, #wck-fep-update-form label{
524
- margin-right:10px;
525
- width:20%;
526
- }
527
-
528
- #wck-fep-login-form ul li > *, #wck-fep-register-form ul li > *, #wck-fep-update-form ul li > *{
529
- float:left;
530
- }
531
-
532
- /* FEP Dashboard */
533
- #wck-fep-tabs{
534
- margin:0 0 10px;
535
- list-style:none;
536
- float:left;
537
- width:100%;
538
- border-bottom:1px solid #DDD;
539
- }
540
-
541
- #wck-fep-tabs li{
542
- float:left;
543
- margin:0 10px -1px 0;
544
- padding:5px 5px;
545
- border:1px solid #DDD;
546
- position:relative;
547
- z-index:2;
548
- }
549
-
550
- #wck-fep-tabs li a:hover, #wck-fep-tabs li a:active, #wck-fep-tabs li a:focus{
551
- text-decoration:none;
552
- color:#000;
553
- }
554
-
555
- #wck-fep-tabs .ui-state-active{
556
- border-bottom-color:#fff;
557
- }
558
-
559
- #wck-fep-tabs .ui-state-active a{
560
- color:#000;
561
- }
562
-
563
- #fep-dashboard .ui-tabs-panel li{
564
- padding-right:100px;
565
- position:relative;
566
- }
567
-
568
- #fep-dashboard .wck-edit-post, #fep-dashboard .wck-delete-post{
569
- position:absolute;
570
- font-size:12px;
571
- line-height:14px;
572
- font-family:Arial,sans-serif;
573
- padding:0;
574
- height:14px;
575
- top:50%;
576
- margin-top:-7px;
577
- }
578
-
579
- #fep-dashboard .wck-edit-post{
580
- right:43px;
581
- padding-right:7px;
582
- border-right:1px solid #ddd;
583
- }
584
-
585
- #fep-dashboard .wck-delete-post{
586
- color:#BC0B0B;
587
- right:0;
588
- width:36px;
589
- }
590
-
591
- body #TB_window{
592
- z-index:9999;
593
- }
594
-
595
-
596
- #fep-ajax-loading{
597
- position:absolute;
598
- top:0;
599
- left:0;
600
- width:100%;
601
- height:100%;
602
- background:url(../images/ajax-loader.gif) rgba(255, 255, 255, 0.5) center center no-repeat; z-index:999;
 
 
 
 
 
 
 
 
 
 
603
  }
1
+ .single-cfc .add-entry-button{
2
+ display:none;
3
+ }
4
+
5
+ .ui-tabs-hide{
6
+ display:none;
7
+ }
8
+
9
+ .fep-container {
10
+ margin: 0;
11
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
12
+ font-size: 13px;
13
+ line-height: 18px;
14
+ color: #333333;
15
+ position:relative;
16
+ min-height:100px;
17
+ }
18
+
19
+ .fep-container button,
20
+ .fep-container input,
21
+ .fep-container select,
22
+ .fep-container textarea {
23
+ margin: 0;
24
+ font-size: 100%;
25
+ vertical-align: middle;
26
+ }
27
+
28
+ .fep-container button,
29
+ .fep-container input {
30
+ *overflow: visible;
31
+ line-height: normal;
32
+ }
33
+
34
+ .fep-container button::-moz-focus-inner,
35
+ .fep-container input::-moz-focus-inner {
36
+ padding: 0;
37
+ border: 0;
38
+ }
39
+
40
+ .fep-container button,
41
+ .fep-container input[type="button"],
42
+ .fep-container input[type="reset"],
43
+ .fep-container input[type="submit"] {
44
+ cursor: pointer;
45
+ -webkit-appearance: button;
46
+ }
47
+
48
+ .fep-container input[type="search"] {
49
+ -webkit-box-sizing: content-box;
50
+ -moz-box-sizing: content-box;
51
+ box-sizing: content-box;
52
+ -webkit-appearance: textfield;
53
+ }
54
+
55
+ .fep-container input[type="search"]::-webkit-search-decoration,
56
+ .fep-container input[type="search"]::-webkit-search-cancel-button {
57
+ -webkit-appearance: none;
58
+ }
59
+
60
+ .fep-container textarea {
61
+ overflow: auto;
62
+ vertical-align: top;
63
+ }
64
+
65
+ .fep-container .clearfix {
66
+ *zoom: 1;
67
+ }
68
+
69
+ .fep-container .clearfix:before,
70
+ .fep-container .clearfix:after {
71
+ display: table;
72
+ content: "";
73
+ }
74
+
75
+ .fep-container .clearfix:after {
76
+ clear: both;
77
+ }
78
+
79
+ .fep-container a {
80
+ color: #0088cc;
81
+ text-decoration: none;
82
+ }
83
+
84
+ .fep-container a:hover {
85
+ color: #005580;
86
+ text-decoration: underline;
87
+ }
88
+
89
+ .fep-container code,
90
+ .fep-container pre {
91
+ padding: 0 3px 2px;
92
+ font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
93
+ font-size: 12px;
94
+ color: #333333;
95
+ -webkit-border-radius: 3px;
96
+ -moz-border-radius: 3px;
97
+ border-radius: 3px;
98
+ }
99
+
100
+ .fep-container code {
101
+ padding: 2px 4px;
102
+ color: #d14;
103
+ background-color: #f7f7f9;
104
+ border: 1px solid #e1e1e8;
105
+ }
106
+
107
+ .fep-container pre {
108
+ display: inline-block;
109
+ margin: 0;
110
+ word-break: break-all;
111
+ word-wrap: break-word;
112
+ white-space: pre;
113
+ white-space: pre-wrap;
114
+ vertical-align: top;
115
+ background:none;
116
+ }
117
+
118
+ .fep-container pre code {
119
+ padding: 0;
120
+ color: inherit;
121
+ background-color: transparent;
122
+ border: 0;
123
+ }
124
+
125
+ .fep-container form {
126
+ margin: 0 0 18px;
127
+ }
128
+
129
+ .fep-container fieldset {
130
+ padding: 0;
131
+ margin: 0;
132
+ border: 0;
133
+ }
134
+
135
+ .fep-container legend {
136
+ display: block;
137
+ width: 100%;
138
+ padding: 0;
139
+ margin-bottom: 27px;
140
+ font-size: 19.5px;
141
+ line-height: 36px;
142
+ color: #333333;
143
+ border: 0;
144
+ border-bottom: 1px solid #e5e5e5;
145
+ }
146
+
147
+ .fep-container legend small {
148
+ font-size: 13.5px;
149
+ color: #999999;
150
+ }
151
+
152
+ .fep-container label,
153
+ .fep-container input,
154
+ .fep-container button,
155
+ .fep-container select,
156
+ .fep-container textarea {
157
+ font-size: 13px;
158
+ font-weight: normal;
159
+ line-height: 18px;
160
+ }
161
+
162
+ .fep-container input,
163
+ .fep-container button,
164
+ .fep-container select,
165
+ .fep-container textarea {
166
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
167
+ }
168
+
169
+ .fep-container label {
170
+ display: block;
171
+ margin-bottom: 5px;
172
+ }
173
+
174
+ .fep-container select,
175
+ .fep-container textarea,
176
+ .fep-container input[type="text"],
177
+ .fep-container input[type="password"],
178
+ .fep-container input[type="datetime"],
179
+ .fep-container input[type="datetime-local"],
180
+ .fep-container input[type="date"],
181
+ .fep-container input[type="month"],
182
+ .fep-container input[type="time"],
183
+ .fep-container input[type="week"],
184
+ .fep-container input[type="number"],
185
+ .fep-container input[type="email"],
186
+ .fep-container input[type="url"],
187
+ .fep-container input[type="search"],
188
+ .fep-container input[type="tel"],
189
+ .fep-container input[type="color"]
190
+ {
191
+ display: inline-block;
192
+ height: 18px;
193
+ padding: 4px;
194
+ font-size: 13px;
195
+ line-height: 18px;
196
+ color: #555555;
197
+ -moz-box-sizing: content-box;
198
+ box-sizing: content-box;
199
+ }
200
+
201
+ .fep-container textarea {
202
+ height: auto;
203
+ }
204
+
205
+ .fep-container textarea,
206
+ .fep-container input[type="text"],
207
+ .fep-container input[type="password"],
208
+ .fep-container input[type="datetime"],
209
+ .fep-container input[type="datetime-local"],
210
+ .fep-container input[type="date"],
211
+ .fep-container input[type="month"],
212
+ .fep-container input[type="time"],
213
+ .fep-container input[type="week"],
214
+ .fep-container input[type="number"],
215
+ .fep-container input[type="email"],
216
+ .fep-container input[type="url"],
217
+ .fep-container input[type="search"],
218
+ .fep-container input[type="tel"],
219
+ .fep-container input[type="color"]
220
+ {
221
+ background-color: #ffffff;
222
+ border: 1px solid #cccccc;
223
+ -webkit-border-radius: 3px;
224
+ -moz-border-radius: 3px;
225
+ border-radius: 3px;
226
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
227
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
228
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
229
+ -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
230
+ -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
231
+ -ms-transition: border linear 0.2s, box-shadow linear 0.2s;
232
+ -o-transition: border linear 0.2s, box-shadow linear 0.2s;
233
+ transition: border linear 0.2s, box-shadow linear 0.2s;
234
+ }
235
+
236
+ .fep-container textarea:focus,
237
+ .fep-container input[type="text"]:focus,
238
+ .fep-container input[type="password"]:focus,
239
+ .fep-container input[type="datetime"]:focus,
240
+ .fep-container input[type="datetime-local"]:focus,
241
+ .fep-container input[type="date"]:focus,
242
+ .fep-container input[type="month"]:focus,
243
+ .fep-container input[type="time"]:focus,
244
+ .fep-container input[type="week"]:focus,
245
+ .fep-container input[type="number"]:focus,
246
+ .fep-container input[type="email"]:focus,
247
+ .fep-container input[type="url"]:focus,
248
+ .fep-container input[type="search"]:focus,
249
+ .fep-container input[type="tel"]:focus,
250
+ .fep-container input[type="color"]:focus {
251
+ border-color: rgba(82, 168, 236, 0.8);
252
+ outline: 0;
253
+ outline: thin dotted \9;
254
+ /* IE6-9 */
255
+
256
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
257
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
258
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
259
+ }
260
+
261
+ .fep-container input[type="radio"],
262
+ .fep-container input[type="checkbox"] {
263
+ margin: 3px 5px 3px 0;
264
+ *margin-top: 0;
265
+ /* IE7 */
266
+
267
+ line-height: normal;
268
+ cursor: pointer;
269
+ }
270
+
271
+ .fep-container input[type="submit"],
272
+ .fep-container input[type="reset"],
273
+ .fep-container input[type="button"],
274
+ .fep-container input[type="radio"],
275
+ .fep-container input[type="checkbox"] {
276
+ width: auto;
277
+ }
278
+
279
+ .fep-container select,
280
+ .fep-container input[type="file"] {
281
+ height: 28px;
282
+ /* In IE7, the height of the select element cannot be changed by height, only font-size */
283
+
284
+ *margin-top: 4px;
285
+ /* For IE7, add top margin to align select with labels */
286
+
287
+ line-height: 28px;
288
+ }
289
+
290
+ .fep-container select {
291
+ width: 220px;
292
+ border: 1px solid #bbb;
293
+ }
294
+
295
+ .fep-container select[multiple],
296
+ .fep-container select[size] {
297
+ height: auto;
298
+ }
299
+
300
+ .fep-container select:focus,
301
+ .fep-container input[type="file"]:focus,
302
+ .fep-container input[type="radio"]:focus,
303
+ .fep-container input[type="checkbox"]:focus {
304
+ outline: thin dotted #333;
305
+ outline: 5px auto -webkit-focus-ring-color;
306
+ outline-offset: -2px;
307
+ }
308
+
309
+ .fep-container input[disabled],
310
+ .fep-container select[disabled],
311
+ .fep-container textarea[disabled],
312
+ .fep-container input[readonly],
313
+ .fep-container select[readonly],
314
+ .fep-container textarea[readonly] {
315
+ cursor: not-allowed;
316
+ background-color: #eeeeee;
317
+ border-color: #ddd;
318
+ }
319
+
320
+ .fep-container input[type="radio"][disabled],
321
+ .fep-container input[type="checkbox"][disabled],
322
+ .fep-container input[type="radio"][readonly],
323
+ .fep-container input[type="checkbox"][readonly] {
324
+ background-color: transparent;
325
+ }
326
+
327
+ #remember #label-remember-me{
328
+ width:auto;
329
+ }
330
+
331
+ /* Layout */
332
+
333
+ .fep-container label{
334
+ font-weight:bold;
335
+ width:17%;
336
+ float:left;
337
+ clear:left;
338
+ }
339
+
340
+ .fep-container input,
341
+ .fep-container textarea {
342
+ width: 95%;
343
+ }
344
+
345
+ .fep-container label .required{
346
+ color:#ff0000;
347
+ }
348
+
349
+ .fep-container .mb-right-column{
350
+ width:78%;
351
+ float:right;
352
+ }
353
+
354
+ .fep-container .mb-right-column > div label{
355
+ float:none;
356
+ width:auto;
357
+ font-weight:normal;
358
+ }
359
+
360
+ .mb-list-entry-fields{
361
+ clear:both;
362
+ margin:0;
363
+ list-style:none;
364
+ }
365
+
366
+ .mb-list-entry-fields > li{
367
+ overflow:hidden;
368
+ margin-bottom:13px;
369
+ }
370
+
371
+ .fep-container .add-entry-button{
372
+ text-align:right;
373
+ }
374
+
375
+ .fep-container .fep-element-wrap, .fep-container .fep-single-element-wrap{
376
+ overflow:hidden;
377
+ clear:both;
378
+ margin-bottom:13px;
379
+ }
380
+
381
+ .fep-container .description{
382
+ font-size:90%;
383
+ font-style:italic;
384
+ opacity:0.8;
385
+ margin-top: 5px;
386
+ margin-bottom:0;
387
+ }
388
+
389
+ .single-cfc{
390
+ margin-bottom:-13px;
391
+ }
392
+
393
+ .fep-container a.button{
394
+ cursor:pointer;
395
+ }
396
+
397
+ .mb-table-container{
398
+ border-bottom: 1px solid #DDDDDD;
399
+ border-top: 1px solid #DDDDDD;
400
+ border-left: 1px solid #DDDDDD;
401
+ width: 100%;
402
+ border-collapse: separate;
403
+ border-spacing: 0;
404
+ }
405
+
406
+ .mb-table-container td, .mb-table-container th{
407
+ border-right: 1px solid #DDDDDD;
408
+ padding: 5px;
409
+ }
410
+
411
+ .mb-table-container ul{
412
+ list-style:none;
413
+ margin:0;
414
+ }
415
+
416
+ .mb-table-container ul li{
417
+ margin-bottom:5px;
418
+ }
419
+
420
+ .fep-container .upload-field-details {
421
+ display: inline-block;
422
+ min-height: 24px;
423
+ padding: 2px 0;
424
+ vertical-align: middle;
425
+ }
426
+
427
+ .fep-container .upload-field-details img {
428
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
429
+ margin: 0 5px;
430
+ }
431
+
432
+ .fep-container .upload-field-details > * {
433
+ float: left;
434
+ }
435
+
436
+ .fep-container .upload-field-details .file-name {
437
+ color: #21759B;
438
+ font-weight: bold;
439
+ }
440
+
441
+ .fep-container .upload-field-details span {
442
+ display: block;
443
+ }
444
+
445
+ .fep-container .mbdelete, .fep-container .wck-remove-upload {
446
+ color: #BC0B0B;
447
+ cursor: pointer;
448
+ }
449
+
450
+ .wck-edit, .wck-delete, .wck-number {
451
+ text-align: center !important;
452
+ width: 50px;
453
+ }
454
+
455
+ .fep-container .button, .fep-container .button-secondary, .fep-container .button-primary{
456
+ display:inline-block;
457
+
458
+ background: #f7f7f7;
459
+ border: 1px solid #ccc;
460
+ -webkit-border-radius: 3px;
461
+ border-radius: 3px;
462
+
463
+ color: #555;
464
+
465
+ font-size: 12px;
466
+ text-decoration: none;
467
+ line-height: 26px;
468
+
469
+ padding: 0 15px;
470
+ white-space: nowrap;
471
+
472
+ -webkit-box-shadow: inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);
473
+ box-shadow: inset 0 1px 0 #fff,0 1px 0 rgba(0,0,0,.08);
474
+
475
+ box-sizing: border-box;
476
+ -webkit-appearance: none;
477
+ cursor: pointer;
478
+ }
479
+
480
+ .fep-container .button-primary{
481
+ background: #2ea2cc;
482
+ border-color: #0074a2;
483
+ color: #fff;
484
+ text-decoration: none;
485
+ font-weight: bold;
486
+ -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);
487
+ box-shadow: inset 0 1px 0 rgba(120,200,230,.5),0 1px 0 rgba(0,0,0,.15);
488
+ }
489
+
490
+ .fep-container .button:hover, .fep-container .button-secondary:hover{
491
+ background: #fafafa;
492
+ border-color: #999;
493
+ color: #222;
494
+ text-decoration: none;
495
+ }
496
+
497
+ .fep-container .button-primary:hover {
498
+ background: #1e8cbe;
499
+ border-color: #0074a2;
500
+ color: #fff;
501
+ text-decoration: none;
502
+ -webkit-box-shadow: inset 0 1px 0 rgba(120,200,230,.6);
503
+ box-shadow: inset 0 1px 0 rgba(120,200,230,.6);
504
+ }
505
+
506
+ .fep-container .button:active, .fep-container .button-secondary:active {
507
+ background: #eee;
508
+ border-color: #999;
509
+ color: #333;
510
+ -webkit-box-shadow: inset 0 2px 5px -3px rgba(0,0,0,.5);
511
+ box-shadow: inset 0 2px 5px -3px rgba(0,0,0,.5);
512
+ }
513
+
514
+ .fep-container .button-primary:active {
515
+ background: #1b7aa6;
516
+ border-color: #005684;
517
+ color: rgba(255,255,255,.95);
518
+ -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
519
+ box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
520
+ }
521
+
522
+ /* Lilo Form */
523
+ #wck-fep-login-form ul, #wck-fep-register-form ul, #wck-fep-update-form ul{
524
+ margin:0;
525
+ list-style:none;
526
+ }
527
+
528
+ #wck-fep-login-form ul li, #wck-fep-register-form ul li, #wck-fep-update-form ul li{
529
+ margin-bottom:10px;
530
+ overflow:hidden;
531
+ }
532
+
533
+ #wck-fep-login-form label, #wck-fep-register-form label, #wck-fep-update-form label{
534
+ margin-right:10px;
535
+ width:20%;
536
+ }
537
+
538
+ #wck-fep-login-form ul li > *, #wck-fep-register-form ul li > *, #wck-fep-update-form ul li > *{
539
+ float:left;
540
+ }
541
+
542
+ /* FEP Dashboard */
543
+ #wck-fep-tabs{
544
+ margin:0 0 10px;
545
+ list-style:none;
546
+ float:left;
547
+ width:100%;
548
+ border-bottom:1px solid #DDD;
549
+ }
550
+
551
+ #wck-fep-tabs li{
552
+ float:left;
553
+ margin:0 10px -1px 0;
554
+ padding:5px 5px;
555
+ border:1px solid #DDD;
556
+ position:relative;
557
+ z-index:2;
558
+ }
559
+
560
+ #wck-fep-tabs li a:hover, #wck-fep-tabs li a:active, #wck-fep-tabs li a:focus{
561
+ text-decoration:none;
562
+ color:#000;
563
+ }
564
+
565
+ #wck-fep-tabs .ui-state-active{
566
+ border-bottom-color:#fff;
567
+ }
568
+
569
+ #wck-fep-tabs .ui-state-active a{
570
+ color:#000;
571
+ }
572
+
573
+ #fep-dashboard .ui-tabs-panel li{
574
+ padding-right:100px;
575
+ position:relative;
576
+ }
577
+
578
+ #fep-dashboard .wck-edit-post, #fep-dashboard .wck-delete-post{
579
+ position:absolute;
580
+ font-size:12px;
581
+ line-height:14px;
582
+ font-family:Arial,sans-serif;
583
+ padding:0;
584
+ height:14px;
585
+ top:50%;
586
+ margin-top:-7px;
587
+ }
588
+
589
+ #fep-dashboard .wck-edit-post{
590
+ right:43px;
591
+ padding-right:7px;
592
+ border-right:1px solid #ddd;
593
+ }
594
+
595
+ #fep-dashboard .wck-delete-post{
596
+ color:#BC0B0B;
597
+ right:0;
598
+ width:36px;
599
+ }
600
+
601
+ body #TB_window{
602
+ z-index:9999;
603
+ }
604
+
605
+
606
+ #fep-ajax-loading{
607
+ position:absolute;
608
+ top:0;
609
+ left:0;
610
+ width:100%;
611
+ height:100%;
612
+ background:url(../images/ajax-loader.gif) rgba(255, 255, 255, 0.5) center center no-repeat; z-index:999;
613
  }
wordpress-creation-kit-api/wordpress-creation-kit.php CHANGED
@@ -461,7 +461,7 @@ class Wordpress_Creation_Kit{
461
  $i++;
462
  }
463
  }
464
- $list .= apply_filters( 'wck_metabox_content_footer_'.$meta , '' );
465
  $list .= '</table>';
466
 
467
  $list = apply_filters('wck_metabox_content_'.$meta, $list, $id);
@@ -542,8 +542,8 @@ class Wordpress_Creation_Kit{
542
  }
543
 
544
  $list .= '</td>';
545
- $list .= '<td style="text-align:center;vertical-align:middle;" class="wck-edit"><a href="javascript:void(0)" class="button-secondary" onclick=\'showUpdateFormMeta("'.esc_js($meta).'", "'.esc_js($id).'", "'.esc_js($element_id).'", "'.esc_js($edit_nonce).'")\' title="'. __( 'Edit this item', 'wck' ) .'">'. __( 'Edit', 'wck' ) .'</a></td>';
546
- $list .= '<td style="text-align:center;vertical-align:middle;" class="wck-delete"><a href="javascript:void(0)" class="mbdelete" onclick=\'removeMeta("'.esc_js($meta).'", "'.esc_js($id).'", "'.esc_js($element_id).'", "'.esc_js($delete_nonce).'")\' title="'. __( 'Delete this item', 'wck' ) .'">'. __( 'Delete', 'wck' ) .'</a></td>';
547
 
548
  $list .= '</tr>';
549
 
@@ -635,8 +635,10 @@ class Wordpress_Creation_Kit{
635
 
636
  wp_enqueue_script( 'jquery-ui-draggable' );
637
  wp_enqueue_script( 'jquery-ui-droppable' );
638
- wp_enqueue_script( 'jquery-ui-sortable' );
639
-
 
 
640
  wp_enqueue_script('wordpress-creation-kit', plugins_url('/wordpress-creation-kit.js', __FILE__), array('jquery', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable' ) );
641
  wp_register_style('wordpress-creation-kit-css', plugins_url('/wordpress-creation-kit.css', __FILE__));
642
  wp_enqueue_style('wordpress-creation-kit-css');
461
  $i++;
462
  }
463
  }
464
+ $list .= apply_filters( 'wck_metabox_content_footer_'.$meta , '', $id );
465
  $list .= '</table>';
466
 
467
  $list = apply_filters('wck_metabox_content_'.$meta, $list, $id);
542
  }
543
 
544
  $list .= '</td>';
545
+ $list .= '<td style="text-align:center;vertical-align:middle;" class="wck-edit"><a href="javascript:void(0)" class="button-secondary" onclick=\'showUpdateFormMeta("'.esc_js($meta).'", "'.esc_js($id).'", "'.esc_js($element_id).'", "'.esc_js($edit_nonce).'")\' title="'. __( 'Edit this item', 'wck' ) .'">'. apply_filters( 'wck_edit_button', __('Edit','wck'), $meta ) .'</a></td>';
546
+ $list .= '<td style="text-align:center;vertical-align:middle;" class="wck-delete"><a href="javascript:void(0)" class="mbdelete" onclick=\'removeMeta("'.esc_js($meta).'", "'.esc_js($id).'", "'.esc_js($element_id).'", "'.esc_js($delete_nonce).'")\' title="'. __( 'Delete this item', 'wck' ) .'">'. apply_filters( 'wck_delete_button', __( 'Delete', 'wck' ), $meta) .'</a></td>';
547
 
548
  $list .= '</tr>';
549
 
635
 
636
  wp_enqueue_script( 'jquery-ui-draggable' );
637
  wp_enqueue_script( 'jquery-ui-droppable' );
638
+ wp_enqueue_script( 'jquery-ui-sortable' );
639
+ wp_enqueue_script( 'jquery-ui-dialog' );
640
+ wp_enqueue_style( 'wp-jquery-ui-dialog' );
641
+
642
  wp_enqueue_script('wordpress-creation-kit', plugins_url('/wordpress-creation-kit.js', __FILE__), array('jquery', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable' ) );
643
  wp_register_style('wordpress-creation-kit-css', plugins_url('/wordpress-creation-kit.css', __FILE__));
644
  wp_enqueue_style('wordpress-creation-kit-css');