From 4d11c111c8ba8f685b426ee4e79611a056a8b550 Mon Sep 17 00:00:00 2001 From: Justin Sternberg Date: Sat, 16 Aug 2014 18:57:19 -0400 Subject: [PATCH] overhaulin' --- CMB2.php | 840 +++++++++ Gruntfile.js | 16 +- css/cmb2.css | 1589 +++++++++++++++++ css/cmb2.min.css | 1 + css/{style.scss => cmb2.scss} | 136 +- css/style.css | 1589 ----------------- css/style.min.css | 1 - example-functions.php | 35 +- .../CMB2_Ajax.php | 24 +- .../CMB2_Field.php | 61 +- includes/CMB2_Options.php | 171 ++ .../CMB2_Sanitize.php | 22 +- .../CMB2_Show_Filters.php | 10 +- .../CMB2_Types.php | 107 +- includes/CMB2_Utils.php | 149 ++ includes/helper-functions.php | 160 ++ init.php | 1211 +------------ js/cmb.min.js | 1 - js/{cmb.js => cmb2.js} | 78 +- js/cmb2.min.js | 1 + tests/test-cmb-core.php | 6 +- 21 files changed, 3189 insertions(+), 3019 deletions(-) create mode 100644 CMB2.php create mode 100644 css/cmb2.css create mode 100644 css/cmb2.min.css rename css/{style.scss => cmb2.scss} (87%) delete mode 100644 css/style.css delete mode 100644 css/style.min.css rename helpers/cmb_Meta_Box_ajax.php => includes/CMB2_Ajax.php (87%) rename helpers/cmb_Meta_Box_field.php => includes/CMB2_Field.php (87%) create mode 100644 includes/CMB2_Options.php rename helpers/cmb_Meta_Box_Sanitize.php => includes/CMB2_Sanitize.php (93%) rename helpers/cmb_Meta_Box_Show_Filters.php => includes/CMB2_Show_Filters.php (89%) rename helpers/cmb_Meta_Box_types.php => includes/CMB2_Types.php (83%) create mode 100644 includes/CMB2_Utils.php create mode 100644 includes/helper-functions.php delete mode 100644 js/cmb.min.js rename js/{cmb.js => cmb2.js} (89%) create mode 100644 js/cmb2.min.js diff --git a/CMB2.php b/CMB2.php new file mode 100644 index 000000000..0a8c65d9e --- /dev/null +++ b/CMB2.php @@ -0,0 +1,840 @@ +hooks(); +} + +class CMB2_Base { + /** + * Metabox Config array + * @var array + * @since 0.9.0 + */ + protected $_meta_box; + + /** + * Metabox Defaults + * @var array + * @since 1.0.1 + */ + protected static $mb_defaults = array( + 'id' => '', + 'title' => '', + 'type' => '', + 'pages' => array(), // Post type + 'context' => 'normal', + 'priority' => 'high', + 'show_names' => true, // Show field names on the left + 'show_on' => array( 'key' => false, 'value' => false ), // Specific post IDs or page templates to display this metabox + 'cmb_styles' => true, // Include cmb bundled stylesheet + 'fields' => array(), + ); + + /** + * Array of all metabox objects + * @var array + * @since 2.0.0 + */ + protected static $meta_boxes = array(); + + /** + * Array of all hooks done (to be run once) + * @var array + * @since 2.0.0 + */ + protected static $done = array(); + + public static function get_metabox( $meta_box_id ) { + if ( empty( self::$meta_boxes ) || empty( self::$meta_boxes[ $meta_box_id ] ) ) { + return false; + } + + return self::$meta_boxes[ $meta_box_id ]; + } + + public function once( $action, $hook, $priority = 10, $accepted_args = 1 ) { + $key = md5( serialize( func_get_arg() ) ); + + if ( in_array( $key, self::$done ) ) { + return; + } + + self::$done[] = $key; + add_filter( $action, $hook, $priority, $accepted_args ); + } + +} + +/** + * Create meta boxes + */ +class CMB2 extends CMB2_Base { + + /** + * Metabox Form ID + * @var string + * @since 0.9.4 + */ + protected $form_id = 'post'; + + /** + * Current field config array + * @var array + * @since 1.0.0 + */ + public static $field = array(); + + /** + * Object ID for metabox meta retrieving/saving + * @var int + * @since 1.0.0 + */ + protected static $object_id = 0; + + /** + * Type of object being saved. (e.g., post, user, or comment) + * @var string + * @since 1.0.0 + */ + protected static $object_type = ''; + + /** + * List of fields that are changed/updated on save + * @var array + * @since 1.1.0 + */ + protected static $updated = array(); + + /** + * Get started + */ + function __construct( $meta_box ) { + $this->meta_box = $this->set_mb_defaults( $meta_box ); + $this->box_id = $meta_box['id']; + parent::$meta_boxes[ $meta_box['id'] ] = $this; + } + + public function once() { + + } + + public function hooks() { + $allow_frontend = apply_filters( 'cmb2_allow_frontend', true, $meta_box ); + + if ( ! is_admin() && ! $allow_frontend ) { + return; + } + + + foreach ( get_class_methods( 'CMB2_Show_Filters' ) as $filter ) { + add_filter( 'cmb2_show_on', array( 'CMB2_Show_Filters', $filter ), 10, 2 ); + } + + if ( is_admin() ) { + $this->admin_hooks(); + } + } + + public function admin_hooks() { + + $field_types = wp_list_pluck( $meta_box['fields'], 'type' ); + + $upload = in_array( 'file', $field_types ) || in_array( 'file_list', $field_types ); + + global $pagenow; + + // register our scripts and styles for cmb + $this->once( 'admin_enqueue_scripts', array( $this, 'register_scripts' ), 8 ); + + if ( self::get_object_type() == 'post' ) { + add_action( 'admin_menu', array( $this, 'add_metaboxes' ) ); + add_action( 'add_attachment', array( $this, 'save_post' ) ); + add_action( 'edit_attachment', array( $this, 'save_post' ) ); + add_action( 'save_post', array( $this, 'save_post' ), 10, 2 ); + + $this->once( 'admin_enqueue_scripts', array( $this, 'do_scripts' ) ); + + if ( $upload && in_array( $pagenow, array( 'page.php', 'page-new.php', 'post.php', 'post-new.php' ) ) ) { + $this->once( 'admin_head', array( $this, 'add_post_enctype' ) ); + } + + } + if ( self::get_object_type() == 'user' ) { + + $priority = isset( $meta_box['priority'] ) ? $meta_box['priority'] : 10; + + if ( ! is_numeric( $priority ) ) { + if ( $priority == 'high' ) { + $priority = 5; + } elseif ( $priority == 'low' ) { + $priority = 20; + } else { + $priority = 10; + } + } + + add_action( 'show_user_profile', array( $this, 'user_metabox' ), $priority ); + add_action( 'edit_user_profile', array( $this, 'user_metabox' ), $priority ); + add_action( 'user_new_form', array( $this, 'user_metabox' ), $priority ); + + add_action( 'personal_options_update', array( $this, 'save_user' ) ); + add_action( 'edit_user_profile_update', array( $this, 'save_user' ) ); + add_action( 'user_register', array( $this, 'save_user' ) ); + if ( $upload && in_array( $pagenow, array( 'profile.php', 'user-edit.php', 'user-add.php' ) ) ) { + $this->form_id = 'your-profile'; + $this->once( 'admin_head', array( $this, 'add_post_enctype' ) ); + } + } + } + + /** + * Registers scripts and styles for CMB + * @since 1.0.0 + */ + public function register_scripts() { + global $wp_version; + + // Only use minified files if SCRIPT_DEBUG is off + $min = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min'; + + // scripts required for cmb + $scripts = array( 'jquery', 'jquery-ui-core', 'cmb-datepicker', /*'media-upload', */'cmb-timepicker' ); + // styles required for cmb + $styles = array(); + + // if we're 3.5 or later, user wp-color-picker + if ( 3.5 <= $wp_version ) { + $scripts[] = 'wp-color-picker'; + $styles[] = 'wp-color-picker'; + if ( ! is_admin() ) { + // we need to register colorpicker on the front-end + wp_register_script( 'iris', admin_url( 'js/iris.min.js' ), array( 'jquery-ui-draggable', 'jquery-ui-slider', 'jquery-touch-punch' ), CMB2_VERSION ); + wp_register_script( 'wp-color-picker', admin_url( 'js/color-picker.min.js' ), array( 'iris' ), CMB2_VERSION ); + wp_localize_script( 'wp-color-picker', 'wpColorPickerL10n', array( + 'clear' => __( 'Clear' ), + 'defaultString' => __( 'Default' ), + 'pick' => __( 'Select Color' ), + 'current' => __( 'Current Color' ), + ) ); + } + } else { + // otherwise use the older 'farbtastic' + $scripts[] = 'farbtastic'; + $styles[] = 'farbtastic'; + } + wp_register_script( 'cmb-datepicker', cmb2_utils()->url( 'js/jquery.datePicker.min.js' ) ); + wp_register_script( 'cmb-timepicker', cmb2_utils()->url( 'js/jquery.timePicker.min.js' ) ); + wp_register_script( 'cmb-scripts', cmb2_utils()->url( "js/cmb{$min}.js" ), $scripts, CMB2_VERSION ); + + wp_enqueue_media(); + + wp_localize_script( 'cmb-scripts', 'cmb2_l10', apply_filters( 'cmb2_localized_data', array( + 'ajax_nonce' => wp_create_nonce( 'ajax_nonce' ), + 'ajaxurl' => admin_url( '/admin-ajax.php' ), + 'script_debug' => defined('SCRIPT_DEBUG') && SCRIPT_DEBUG, + 'new_admin_style' => version_compare( $wp_version, '3.7', '>' ), + 'object_type' => self::get_object_type(), + 'upload_file' => __( 'Use this file', 'cmb' ), + 'remove_image' => __( 'Remove Image', 'cmb' ), + 'remove_file' => __( 'Remove', 'cmb' ), + 'file' => __( 'File:', 'cmb' ), + 'download' => __( 'Download', 'cmb' ), + 'up_arrow' => __( '[ ↑ ] ', 'cmb' ), + 'down_arrow' => __( ' [ ↓ ]', 'cmb' ), + 'check_toggle' => __( 'Select / Deselect All', 'cmb' ), + 'defaults' => array( + 'date_picker' => false, + 'color_picker' => false, + 'time_picker' => array( + 'startTime' => '00:00', + 'endTime' => '23:59', + 'show24Hours' => false, + 'separator' => ':', + 'step' => 30 + ), + ), + ) ) ); + + wp_register_style( 'cmb-styles', cmb2_utils()->url( "css/style{$min}.css" ), $styles ); + + } + + /** + * Enqueues scripts and styles for CMB + * @since 1.0.0 + */ + public function do_scripts( $hook ) { + // only enqueue our scripts/styles on the proper pages + if ( $hook == 'post.php' || $hook == 'post-new.php' || $hook == 'page-new.php' || $hook == 'page.php' ) { + wp_enqueue_script( 'cmb-scripts' ); + + cmb2_utils()->enqueue_cmb_css( $this->meta_box ); + } + } + + /** + * Add encoding attribute + */ + public function add_post_enctype() { + echo ' + '; + } + + /** + * Add metaboxes (to 'post' object type) + */ + public function add_metaboxes() { + + foreach ( $this->meta_box['pages'] as $page ) { + if ( apply_filters( 'cmb2_show_on', true, $this->meta_box ) ) { + add_meta_box( $this->meta_box['id'], $this->meta_box['title'], array( $this, 'post_metabox' ), $page, $this->meta_box['context'], $this->meta_box['priority']) ; + } + } + } + + /** + * Display metaboxes for a post object + * @since 1.0.0 + */ + public function post_metabox() { + if ( ! $this->meta_box ) { + return; + } + + $this->show_form( get_the_ID(), 'post' ); + + } + + /** + * Display metaboxes for a user object + * @since 1.0.0 + */ + public function user_metabox() { + if ( ! $this->meta_box ) { + return; + } + + if ( 'user' != $this->mb_object_type() ) { + return; + } + + if ( ! apply_filters( 'cmb2_show_on', true, $this->meta_box ) ) + return; + + wp_enqueue_script( 'cmb-scripts' ); + + // default is to NOT show cmb styles on user profile page + cmb2_utils()->enqueue_cmb_css( $this->meta_box ); + + $this->show_form(); + + } + + /** + * Loops through and displays fields + * @since 1.0.0 + * @param array $meta_box Metabox config array + * @param int $object_id Object ID + * @param string $object_type Type of object being saved. (e.g., post, user, or comment) + */ + public function show_form( $object_id = 0, $object_type = '' ) { + $object_type = $this->set_object_type( $object_type ? $object_type : $this->mb_object_type() ); + // Set/get ID + $object_id = $this->get_object_id( $object_id ); + + wp_nonce_field( $this->nonce(), 'wp_meta_box_nonce', false, true ); + + echo "\n\n"; + /** + * Hook before form table begins + * + * @param array $meta_box Metabox config array + * @param int $object_id The ID of the current object + * @param string $object_type The type of object you are working with. + * Usually `post` (this applies to all post-types). + * Could also be `comment`, `user` or `options-page`. + */ + do_action( 'cmb2_before_table', $meta_box, $object_id, $object_type ); + echo ''; + + foreach ( $meta_box['fields'] as $field_args ) { + + $field_args['context'] = $meta_box['context']; + + if ( 'group' == $field_args['type'] ) { + + if ( ! isset( $field_args['show_names'] ) ) { + $field_args['show_names'] = $meta_box['show_names']; + } + $this->render_group( $field_args ); + } else { + + $field_args['show_names'] = $meta_box['show_names']; + // Render default fields + $field = new CMB2_field( $field_args ); + $field->render_field(); + } + } + echo '
'; + /** + * Hook after form table has been rendered + * + * @param array $meta_box Metabox config array + * @param int $object_id The ID of the current object + * @param string $object_type The type of object you are working with. + * Usually `post` (this applies to all post-types). + * Could also be `comment`, `user` or `options-page`. + */ + do_action( 'cmb2_after_table', $meta_box, $object_id, $object_type ); + echo "\n\n"; + + } + + /** + * Render a repeatable group + */ + public function render_group( $args ) { + if ( ! isset( $args['id'], $args['fields'] ) || ! is_array( $args['fields'] ) ) { + return; + } + + $args['count'] = 0; + $field_group = new CMB2_field( $args ); + $desc = $field_group->args( 'description' ); + $label = $field_group->args( 'name' ); + $sortable = $field_group->options( 'sortable' ) ? ' sortable' : ''; + $group_val = (array) $field_group->value(); + $nrows = count( $group_val ); + $remove_disabled = $nrows <= 1 ? 'disabled="disabled" ' : ''; + + echo ''; + if ( $desc || $label ) { + echo ''; + } + + if ( ! empty( $group_val ) ) { + + foreach ( $group_val as $iterator => $field_id ) { + $this->render_group_row( $field_group, $remove_disabled ); + } + } else { + $this->render_group_row( $field_group, $remove_disabled ); + } + + echo ''; + + echo '
'; + if ( $label ) + echo '

'. $label .'

'; + if ( $desc ) + echo '

'. $desc .'

'; + echo '

'; + + } + + public function render_group_row( $field_group, $remove_disabled ) { + + echo ' + + + '; + if ( $field_group->options( 'group_title' ) ) { + echo ' + + + + '; + } + // Render repeatable group fields + foreach ( array_values( $field_group->args( 'fields' ) ) as $field_args ) { + $field_args['show_names'] = $field_group->args( 'show_names' ); + $field_args['context'] = $field_group->args( 'context' ); + $field = new CMB2_field( $field_args, $field_group ); + $field->render_field(); + } + echo ' + + + +
+ ', sprintf( '

%1$s

', $field_group->replace_hash( $field_group->options( 'group_title' ) ) ), ' +
+ +
+ + + '; + + $field_group->args['count']++; + } + + /** + * Save data from metabox + */ + public function save_post( $post_id, $post = false ) { + + $post_type = $post ? $post->post_type : get_post_type( $post_id ); + + // check permissions + if ( + // check nonce + ! isset( $_POST['wp_meta_box_nonce'] ) + || ! wp_verify_nonce( $_POST['wp_meta_box_nonce'], $this->nonce() ) + // check if autosave + || defined('DOING_AUTOSAVE' ) && DOING_AUTOSAVE + // check user editing permissions + || ( 'page' == $post_type && ! current_user_can( 'edit_page', $post_id ) ) + || ! current_user_can( 'edit_post', $post_id ) + // get the metabox post_types & compare it to this post_type + || ! in_array( $post_type, $this->meta_box['pages'] ) + ) { + return $post_id; + } + + $this->save_fields( $post_id, 'post' ); + } + + /** + * Save data from metabox + */ + public function save_user( $user_id ) { + + // check permissions + // @todo more hardening? + if ( + // check nonce + ! isset( $_POST['wp_meta_box_nonce'] ) + || ! wp_verify_nonce( $_POST['wp_meta_box_nonce'], $this->nonce() ) + ) { + return $user_id; + } + + $this->save_fields( $user_id, 'user' ); + } + + /** + * Loops through and saves field data + * @since 1.0.0 + * @param array $meta_box Metabox config array + * @param int $object_id Object ID + * @param string $object_type Type of object being saved. (e.g., post, user, or comment) + */ + public function save_fields( $object_id = 0, $object_type = '' ) { + + $this->meta_box['show_on'] = empty( $this->meta_box['show_on'] ) ? array( 'key' => false, 'value' => false ) : $this->meta_box['show_on']; + + $this->object_id = $object_id ? $object_id : get_the_ID(); + // Set/get type + $object_type = $this->set_object_type( $object_type ? $object_type : $this->mb_object_type() ); + + if ( ! apply_filters( 'cmb2_show_on', true, $this->meta_box ) ) + return; + + // save field ids of those that are updated + $this->updated = array(); + + foreach ( $this->meta_box['fields'] as $field_args ) { + + if ( 'group' == $field_args['type'] ) { + $this->save_group( $field_args ); + } else { + // Save default fields + $field = new CMB2_field( $field_args ); + $this->save_field( $this->sanitize_field( $field ), $field ); + } + + } + + // If options page, save the updated options + if ( $object_type == 'options-page' ) { + cmb2_options( $object_id )->set(); + } + + /** + * Fires after all fields have been saved. + * + * The dynamic portion of the hook name, $object_type, refers to the metabox/form's object type + * Usually `post` (this applies to all post-types). + * Could also be `comment`, `user` or `options-page`. + * + * @param int $object_id The ID of the current object + * @param array $meta_box_id Metabox's id parameter + * @param string $updated All fields that were updated. + * Will only include fields that had values change. + * @param string $meta_box The metabox config array. + */ + do_action( "cmb2_save_{$object_type}_fields", $object_id, $this->meta_box['id'], $this->updated, $this->meta_box ); + + } + + /** + * Save a repeatable group + */ + public function save_group( $args ) { + if ( ! isset( $args['id'], $args['fields'], $_POST[ $args['id'] ] ) || ! is_array( $args['fields'] ) ) + return; + + $field_group = new CMB2_field( $args ); + $base_id = $field_group->id(); + $old = $field_group->get_data(); + $group_vals = $_POST[ $base_id ]; + $saved = array(); + $is_updated = false; + $field_group->index = 0; + + // $group_vals[0]['color'] = '333'; + foreach ( array_values( $field_group->fields() ) as $field_args ) { + $field = new CMB2_field( $field_args, $field_group ); + $sub_id = $field->id( true ); + + foreach ( (array) $group_vals as $field_group->index => $post_vals ) { + + // Get value + $new_val = isset( $group_vals[ $field_group->index ][ $sub_id ] ) + ? $group_vals[ $field_group->index ][ $sub_id ] + : false; + + // Sanitize + $new_val = $this->sanitize_field( $field, $new_val, $field_group->index ); + + if ( 'file' == $field->type() && is_array( $new_val ) ) { + // Add image ID to the array stack + $saved[ $field_group->index ][ $new_val['field_id'] ] = $new_val['attach_id']; + // Reset var to url string + $new_val = $new_val['url']; + } + + // Get old value + $old_val = is_array( $old ) && isset( $old[ $field_group->index ][ $sub_id ] ) + ? $old[ $field_group->index ][ $sub_id ] + : false; + + $is_updated = ( ! empty( $new_val ) && $new_val != $old_val ); + $is_removed = ( empty( $new_val ) && ! empty( $old_val ) ); + // Compare values and add to `$updated` array + if ( $is_updated || $is_removed ) + $this->updated[] = $base_id .'::'. $field_group->index .'::'. $sub_id; + + // Add to `$saved` array + $saved[ $field_group->index ][ $sub_id ] = $new_val; + + } + $saved[ $field_group->index ] = array_filter( $saved[ $field_group->index ] ); + } + $saved = array_filter( $saved ); + + $field_group->update_data( $saved, true ); + } + + public function sanitize_field( $field, $new_value = null ) { + + $new_value = null !== $new_value + ? $new_value + : ( isset( $_POST[ $field->id( true ) ] ) ? $_POST[ $field->id( true ) ] : null ); + + if ( $field->args( 'repeatable' ) && is_array( $new_value ) ) { + // Remove empties + $new_value = array_filter( $new_value ); + } + + // Check if this metabox field has a registered validation callback, or perform default sanitization + return $field->sanitization_cb( $new_value ); + } + + public function save_field( $new_value, $field ) { + $name = $field->id(); + $old = $field->get_data(); + + // if ( $field->args( 'multiple' ) && ! $field->args( 'repeatable' ) && ! $field->group ) { + // $field->remove_data(); + // if ( ! empty( $new_value ) ) { + // foreach ( $new_value as $add_new ) { + // $this->updated[] = $name; + // $field->update_data( $add_new, $name, false ); + // } + // } + // } else + if ( ! empty( $new_value ) && $new_value !== $old ) { + $this->updated[] = $name; + return $field->update_data( $new_value ); + } elseif ( empty( $new_value ) ) { + if ( ! empty( $old ) ) + $this->updated[] = $name; + return $field->remove_data(); + } + } + + /** + * Get object id from global space if no id is provided + * @since 1.0.0 + * @param integer $object_id Object ID + * @return integer $object_id Object ID + */ + public function get_object_id( $object_id = 0 ) { + + if ( $object_id ) { + $this->object_id = $object_id; + return $this->object_id; + } + + if ( isset( $this->object_id ) ) { + return $this->object_id; + } + + // Try to get our object ID from the global space + switch ( self::get_object_type() ) { + case 'user': + $object_id = isset( $GLOBALS['user_ID'] ) ? $GLOBALS['user_ID'] : $object_id; + $object_id = isset( $_REQUEST['user_id'] ) ? $_REQUEST['user_id'] : $object_id; + break; + + default: + $object_id = isset( $GLOBALS['post']->ID ) ? $GLOBALS['post']->ID : $object_id; + $object_id = isset( $_REQUEST['post'] ) ? $_REQUEST['post'] : $object_id; + break; + } + + // reset to id or 0 + $this->object_id = $object_id ? $object_id : 0; + + return $this->object_id; + } + + /** + * Sets the $object_type based on metabox settings + * @since 1.0.0 + * @param array|string $meta_box Metabox config array or explicit setting + * @return string Object type + */ + public static function mb_object_type( $meta_box ) { + + if ( isset( $this->mb_object_type ) ) { + return $this->mb_object_type; + } + if ( is_string( $this->meta_box ) ) { + $this->mb_object_type = $this->meta_box; + return $this->mb_object_type; + } + + if ( ! isset( $this->meta_box['pages'] ) ) { + return $this->mb_object_type; + } + + $type = false; + // check if 'pages' is a string + if ( $this->is_options_page_mb() ) + $type = 'options-page'; + // check if 'pages' is a string + elseif ( is_string( $this->meta_box['pages'] ) ) + $type = $this->meta_box['pages']; + // if it's an array of one, extract it + elseif ( is_array( $this->meta_box['pages'] ) && count( $this->meta_box['pages'] === 1 ) ) + $type = is_string( end( $this->meta_box['pages'] ) ) ? end( $this->meta_box['pages'] ) : false; + + if ( !$type ) { + return $this->mb_object_type; + } + + // Get our object type + if ( 'user' == $type ) + $this->mb_object_type = 'user'; + elseif ( 'comment' == $type ) + $this->mb_object_type = 'comment'; + elseif ( 'options-page' == $type ) + $this->mb_object_type = 'options-page'; + else + $this->mb_object_type = 'post'; + + return $this->mb_object_type; + } + + /** + * Determines if metabox is for an options page + * @since 1.0.1 + * @param array $meta_box Metabox config array + * @return boolean True/False + */ + public function is_options_page_mb() { + return ( isset( $this->meta_box['show_on']['key'] ) && 'options-page' === $this->meta_box['show_on']['key'] ); + } + + /** + * Returns the object type + * @since 1.0.0 + * @return string Object type + */ + public function type() { + if ( $this->object_type ) { + return $this->object_type; + } + + global $pagenow; + + if ( + $pagenow == 'user-edit.php' + || $pagenow == 'profile.php' + || $pagenow == 'user-new.php' + ) + $this->set_object_type( 'user' ); + + elseif ( + $pagenow == 'edit-comments.php' + || $pagenow == 'comment.php' + ) + $this->set_object_type( 'comment' ); + else + $this->set_object_type( 'post' ); + + return $this->object_type; + } + + /** + * Sets the object type + * @since 1.0.0 + * @return string Object type + */ + public function set_object_type( $object_type ) { + return $this->object_type = $object_type; + } + + /** + * Fills in empty metabox parameters with defaults + * @since 1.0.1 + * @param array $meta_box Metabox config array + * @return array Modified Metabox config array + */ + public function set_mb_defaults( $meta_box ) { + $this->meta_box = wp_parse_args( $meta_box, parent::$mb_defaults ); + $this->mb_object_type(); + } + + public function nonce() { + return md5( serialize( $this->metabox ) ); + } + +} + +// Handle oembed Ajax +add_action( 'wp_ajax_cmb2_oembed_handler', array( 'CMB2_ajax', 'oembed_handler' ) ); +add_action( 'wp_ajax_nopriv_cmb2_oembed_handler', array( 'CMB2_ajax', 'oembed_handler' ) ); + +// End. That's it, folks! // diff --git a/Gruntfile.js b/Gruntfile.js index 3a8751bd5..b13ee076b 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -24,8 +24,8 @@ module.exports = function(grunt) { // }, // '': { // src: [ - // 'js/cmb.js', - // 'js/cmb.js', + // 'js/cmb2.js', + // 'js/cmb2.js', // ], // dest: 'assets/js/{%= dir_name %}.js' // } @@ -41,7 +41,7 @@ module.exports = function(grunt) { }, minify: { expand: true, - src: ['css/style.css'], + src: ['css/cmb2.css'], // dest: '', ext: '.min.css' } @@ -54,7 +54,7 @@ module.exports = function(grunt) { lineNumbers: true }, files: { - 'css/style.css': 'css/style.scss', + 'css/cmb2.css': 'css/cmb2.scss', } } }, @@ -62,7 +62,7 @@ module.exports = function(grunt) { jshint: { all: [ 'Gruntfile.js', - 'js/cmb.js' + 'js/cmb2.js' ], options: { curly : true, @@ -80,7 +80,7 @@ module.exports = function(grunt) { exports : true, module : false }, - predef :['document','window','jQuery','cmb_l10','wp','tinyMCEPreInit','tinyMCE','console'] + predef :['document','window','jQuery','cmb2_l10','wp','tinyMCEPreInit','tinyMCE','console'] } }, @@ -97,7 +97,7 @@ module.exports = function(grunt) { uglify: { all: { files: { - 'js/cmb.min.js': ['js/cmb.js'] + 'js/cmb2.min.js': ['js/cmb2.js'] }, options: { // banner: '/*! <%= pkg.title %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' + @@ -116,7 +116,7 @@ module.exports = function(grunt) { tasks: ['sass', 'cssmin'] }, scripts: { - files: ['js/cmb.js'], + files: ['js/cmb2.js'], tasks: ['js'], options: { debounceDelay: 500 diff --git a/css/cmb2.css b/css/cmb2.css new file mode 100644 index 000000000..390bd27b9 --- /dev/null +++ b/css/cmb2.css @@ -0,0 +1,1589 @@ +/** + * CMB Styling + */ +/* line 5, cmb2.scss */ +table.cmb2_metabox { + clear: both; +} + +/* line 9, cmb2.scss */ +table.cmb2_metabox > tr:first-of-type > td, +table.cmb2_metabox > tr:first-of-type > th, +table.cmb2_metabox tbody > tr:first-of-type > td, +table.cmb2_metabox tbody > tr:first-of-type > th, +.post-php table.cmb2_metabox .cmb-nested-table td, +.post-new-php table.cmb2_metabox .cmb-nested-table td, +.post-php table.cmb2_metabox .repeatable-group th, +.post-new-php table.cmb2_metabox .repeatable-group th, +.post-php table.cmb2_metabox .repeatable-group:first-of-type, +.post-new-php table.cmb2_metabox .repeatable-group:first-of-type { + border: 0; +} + +/* line 22, cmb2.scss */ +.post-php table.cmb2_metabox td, +.post-new-php table.cmb2_metabox td, +.post-php table.cmb2_metabox th, +.post-new-php table.cmb2_metabox th, +.post-php table.cmb2_metabox .repeatable-group, +.post-new-php table.cmb2_metabox .repeatable-group, +.post-php table.cmb2_metabox .repeatable-group, +.post-new-php table.cmb2_metabox .repeatable-group { + border-top: 1px solid #E9E9E9; +} + +/* line 33, cmb2.scss */ +.empty-row.hidden { + display: none; +} + +/* line 39, cmb2.scss */ +.repeatable-group th { + padding: 5px; +} +/* line 43, cmb2.scss */ +.repeatable-group .shift-rows { + text-decoration: none; + margin-right: 5px; + font-size: 1.2em; +} +/* line 49, cmb2.scss */ +.repeatable-group .cmb2_upload_button { + float: right; +} + +/* line 54, cmb2.scss */ +#poststuff .repeatable-group h2 { + margin: 0; +} + +/* line 58, cmb2.scss */ +.cmb-group-title h4 { + font-size: 1.2em; + font-weight: 500; + border-bottom: 1px solid #ddd; +} + +/* line 64, cmb2.scss */ +.post-php table.cmb2_metabox th, .post-new-php table.cmb2_metabox th { + text-align: right; + font-weight: bold; +} + +/* line 69, cmb2.scss */ +.post-php table.cmb2_metabox table th, .post-new-php table.cmb2_metabox table th { + text-align: left; +} + +/* line 73, cmb2.scss */ +table.cmb2_metabox th label { + margin-top: 5px; + display: block; +} + +/* line 78, cmb2.scss */ +p.cmb2_metabox_description { + color: #AAA; + font-style: italic; + margin: 2px 0 !important; +} + +/* line 84, cmb2.scss */ +span.cmb2_metabox_description { + color: #AAA; + font-style: italic; +} + +/* line 91, cmb2.scss */ +table.cmb2_metabox input, table.cmb2_metabox textarea { + font-size: 14px; + padding: 5px; +} +/* line 96, cmb2.scss */ +table.cmb2_metabox input[type=text], table.cmb2_metabox textarea { + width: 97%; +} +/* line 100, cmb2.scss */ +table.cmb2_metabox textarea.cmb2_textarea_code { + font-family: Consolas,Monaco,monospace; + line-height: 16px; +} +/* line 105, cmb2.scss */ +table.cmb2_metabox input.cmb2_text_small { + width: 100px; + margin-right: 15px; +} +/* line 110, cmb2.scss */ +table.cmb2_metabox input.cmb2_timepicker { + width: 100px; + margin-right: 15px; +} +/* line 115, cmb2.scss */ +table.cmb2_metabox input.cmb2_text_money { + width: 90px; + margin-right: 15px; +} +/* line 120, cmb2.scss */ +table.cmb2_metabox input.cmb2_text_medium { + width: 230px; + margin-right: 15px; +} +/* line 125, cmb2.scss */ +table.cmb2_metabox input.cmb2_upload_file { + width: 65%; +} +/* line 129, cmb2.scss */ +table.cmb2_metabox input.ed_button { + padding: 2px 4px; +} +/* line 133, cmb2.scss */ +table.cmb2_metabox li { + font-size: 14px; + margin: 1px 0 5px 0; + line-height: 16px; +} +/* line 139, cmb2.scss */ +table.cmb2_metabox ul { + padding-top: 5px; + margin: 0; +} +/* line 144, cmb2.scss */ +table.cmb2_metabox select { + font-size: 14px; + margin-top: 3px; +} +/* line 149, cmb2.scss */ +table.cmb2_metabox input:focus, table.cmb2_metabox textarea:focus { + background: #fffff8; +} + +/* line 155, cmb2.scss */ +.cmb2_metabox_title { + margin: 0 0 5px 0; + padding: 5px 0 0 0; +} + +/* line 160, cmb2.scss */ +.edit-tags-php .cmb2_metabox_title, .profile-php .cmb2_metabox_title, .user-edit-php .cmb2_metabox_title { + margin-left: -10px; +} + +/* line 164, cmb2.scss */ +.cmb-inline ul { + padding: 4px 0 0 0; +} + +/* line 168, cmb2.scss */ +.cmb-inline li { + display: inline-block; + padding-right: 18px; +} + +/* line 172, cmb2.scss */ +table.cmb2_metabox input[type="radio"] { + margin: 0 5px 0 0; + padding: 0; +} + +/* line 177, cmb2.scss */ +table.cmb2_metabox input[type="checkbox"] { + margin: 0 5px 0 0; + padding: 0; +} + +/* line 182, cmb2.scss */ +table.cmb2_metabox .mceLayout { + border: 1px solid #dfdfdf !important; +} + +/* line 186, cmb2.scss */ +table.cmb2_metabox .mceIframeContainer { + background: white; +} + +/* line 190, cmb2.scss */ +table.cmb2_metabox .meta_mce { + width: 97%; +} + +/* line 194, cmb2.scss */ +table.cmb2_metabox .meta_mce textarea { + width: 100%; +} + +/* line 198, cmb2.scss */ +table.cmb2_metabox .cmb2_media_status { + margin: 10px 0 0 0; +} + +/* line 202, cmb2.scss */ +table.cmb2_metabox .cmb2_media_status .img_status { + clear: none; + float: left; + display: inline-block; + margin-right: 10px; + width: auto; +} + +/* line 210, cmb2.scss */ +table.cmb2_metabox .cmb-type-file_list .cmb2_media_status .img_status { + clear: none; + float: left; + margin-right: 10px; + width: auto; +} + +/* line 217, cmb2.scss */ +table.cmb2_metabox .cmb2_media_status .img_status, table.cmb2_metabox .cmb2_media_status .embed_status { + position: relative; +} + +/* line 221, cmb2.scss */ +table.cmb2_metabox .cmb2_media_status .img_status img, table.cmb2_metabox .cmb2_media_status .embed_status { + border: 1px solid #DFDFDF; + background: #FAFAFA; + max-width: 350px; + padding: 5px; + -moz-border-radius: 2px; + border-radius: 2px; +} + +/* line 230, cmb2.scss */ +table.cmb2_metabox .cmb2_media_status .embed_status { + float: left; + max-width: 800px; +} + +/* line 235, cmb2.scss */ +table.cmb2_metabox .cmb2_media_status .img_status .cmb2_remove_file_button, table.cmb2_metabox .cmb2_media_status .embed_status .cmb2_remove_file_button { + text-indent: -9999px; + background: url(../images/ico-delete.png); + width: 16px; + height: 16px; + position: absolute; + top: -5px; + left: -5px; +} + +/* line 245, cmb2.scss */ +table.cmb2_metabox .attach_list li { + clear: both; + display: inline-block; + margin-bottom: 25px; + width: 100%; +} + +/* line 252, cmb2.scss */ +table.cmb2_metabox .attach_list li img { + float: left; + margin-right: 10px; + cursor: move; +} + +/** + * Sidebar placement adjustments + */ +/* line 261, cmb2.scss */ +.inner-sidebar table.cmb2_metabox input[type=text], +#side-sortables table.cmb2_metabox input[type=text], +table.cmb2_metabox textarea { + width: 95%; +} + +/* line 267, cmb2.scss */ +.inner-sidebar table.cmb2_metabox .cmb2_media_status .img_status img, +#side-sortables table.cmb2_metabox .cmb2_media_status .img_status img, +.inner-sidebar table.cmb2_metabox .cmb2_media_status .embed_status img, +#side-sortables table.cmb2_metabox .cmb2_media_status .embed_status img { + width: 90%; +} + +/* line 274, cmb2.scss */ +.inner-sidebar table.cmb2_metabox label, +#side-sortables table.cmb2_metabox label { + display: block; + font-weight: bold; + padding: 0 0 5px; +} + +/* line 281, cmb2.scss */ +.inner-sidebar table.cmb2_metabox .cmb2_list label, +#side-sortables table.cmb2_metabox .cmb2_list label { + display: inline; + font-weight: normal; +} + +/* line 287, cmb2.scss */ +.inner-sidebar table.cmb2_metabox .cmb2_metabox_description, +#side-sortables table.cmb2_metabox .cmb2_metabox_description { + display: block; + padding: 7px 0 0; +} + +/* line 293, cmb2.scss */ +.inner-sidebar table.cmb2_metabox .cmb2_metabox_title, +#side-sortables table.cmb2_metabox .cmb2_metabox_title { + font-size: 1.2em; + font-style: italic; +} + +/* line 299, cmb2.scss */ +.postbox table.cmb2_metabox .cmb-spinner { + float: left; +} + +/** + * Color picker + */ +/* line 306, cmb2.scss */ +table.cmb2_metabox .wp-color-result, table.cmb2_metabox .wp-picker-input-wrap { + vertical-align: middle; +} + +/* line 310, cmb2.scss */ +table.cmb2_metabox .wp-color-result, table.cmb2_metabox .wp-picker-container { + margin: 0 10px 0 0; +} + +/** + * Timepicker + */ +/* line 318, cmb2.scss */ +div.time-picker { + position: absolute; + height: 191px; + width: 6em; + /* needed for IE */ + overflow: auto; + background: #fff; + border: 1px solid #aaa; + z-index: 99; + margin: 0; +} + +/* line 329, cmb2.scss */ +div.time-picker-12hours { + width: 8em; + /* needed for IE */ +} + +/* line 333, cmb2.scss */ +div.time-picker ul { + list-style-type: none; + margin: 0; + padding: 0; +} + +/* line 339, cmb2.scss */ +div.time-picker li { + cursor: pointer; + height: 10px; + font: 14px/1 Helvetica, Arial, sans-serif; + padding: 4px 3px; +} + +/* line 346, cmb2.scss */ +div.time-picker li.selected { + background: #0063CE; + color: #fff; +} + +/** + * jQuery UI CSS Framework 1.8.16 + * + * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * http://docs.jquery.com/UI/Theming/API + */ +/* line 361, cmb2.scss */ +.cmb2_element .ui-helper-hidden { + display: none; +} +/* line 362, cmb2.scss */ +.cmb2_element .ui-helper-hidden-accessible { + position: absolute !important; + clip: rect(1px 1px 1px 1px); + clip: rect(1px, 1px, 1px, 1px); +} +/* line 363, cmb2.scss */ +.cmb2_element .ui-helper-reset { + margin: 0; + padding: 0; + border: 0; + outline: 0; + line-height: 1.3; + text-decoration: none; + font-size: 100%; + list-style: none; +} +/* line 364, cmb2.scss */ +.cmb2_element .ui-helper-clearfix:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; +} +/* line 365, cmb2.scss */ +.cmb2_element .ui-helper-clearfix { + display: inline-block; +} +/* line 366, cmb2.scss */ +.cmb2_element * html .ui-helper-clearfix { + height: 1%; +} +/* line 367, cmb2.scss */ +.cmb2_element .ui-helper-clearfix { + display: block; +} +/* line 368, cmb2.scss */ +.cmb2_element .ui-helper-zfix { + width: 100%; + height: 100%; + top: 0; + left: 0; + position: absolute; + opacity: 0; + filter: Alpha(Opacity=0); +} +/* line 369, cmb2.scss */ +.cmb2_element .ui-state-disabled { + cursor: default !important; +} +/* line 370, cmb2.scss */ +.cmb2_element .ui-icon { + display: block; + text-indent: -99999px; + overflow: hidden; + background-repeat: no-repeat; +} +/* line 371, cmb2.scss */ +.cmb2_element .ui-widget-overlay { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; +} +/* line 372, cmb2.scss */ +.cmb2_element .ui-widget { + font-family: Verdana,Arial,sans-serif; + font-size: 1.1em; +} +/* line 374, cmb2.scss */ +.cmb2_element .ui-widget .ui-widget { + font-size: 1em; +} +/* line 375, cmb2.scss */ +.cmb2_element .ui-widget input, .cmb2_element .ui-widget select, .cmb2_element .ui-widget textarea, .cmb2_element .ui-widget button { + font-family: Verdana,Arial,sans-serif; + font-size: 1em; +} +/* line 377, cmb2.scss */ +.cmb2_element .ui-widget-content { + border: 1px solid #aaaaaa; + background: white url(../images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; + color: #222222; +} +/* line 378, cmb2.scss */ +.cmb2_element .ui-widget-content a { + color: #222222; +} +/* line 379, cmb2.scss */ +.cmb2_element .ui-widget-header { + border: 1px solid #aaaaaa; + background: #cccccc url(../images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; + color: #222222; + font-weight: bold; +} +/* line 380, cmb2.scss */ +.cmb2_element .ui-widget-header a { + color: #222222; +} +/* line 381, cmb2.scss */ +.cmb2_element .ui-state-default, .cmb2_element .ui-widget-content .ui-state-default, .cmb2_element .ui-widget-header .ui-state-default { + border: 1px solid #d3d3d3; + background: #e6e6e6 url(../images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; + font-weight: normal; + color: #555555; +} +/* line 382, cmb2.scss */ +.cmb2_element .ui-state-default a, .cmb2_element .ui-state-default a:link, .cmb2_element .ui-state-default a:visited { + color: #555555; + text-decoration: none; +} +/* line 383, cmb2.scss */ +.cmb2_element .ui-state-hover, .cmb2_element .ui-widget-content .ui-state-hover, .cmb2_element .ui-widget-header .ui-state-hover, .cmb2_element .ui-state-focus, .cmb2_element .ui-widget-content .ui-state-focus, .cmb2_element .ui-widget-header .ui-state-focus { + border: 1px solid #999999; + background: #dadada url(../images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; + font-weight: normal; + color: #212121; +} +/* line 384, cmb2.scss */ +.cmb2_element .ui-state-hover a, .cmb2_element .ui-state-hover a:hover { + color: #212121; + text-decoration: none; +} +/* line 385, cmb2.scss */ +.cmb2_element .ui-state-active, .cmb2_element .ui-widget-content .ui-state-active, .cmb2_element .ui-widget-header .ui-state-active { + border: 1px solid #aaaaaa; + background: white url(../images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; + font-weight: normal; + color: #212121; +} +/* line 386, cmb2.scss */ +.cmb2_element .ui-state-active a, .cmb2_element .ui-state-active a:link, .cmb2_element .ui-state-active a:visited { + color: #212121; + text-decoration: none; +} +/* line 387, cmb2.scss */ +.cmb2_element .ui-widget :active { + outline: none; +} +/* line 388, cmb2.scss */ +.cmb2_element .ui-state-highlight, .cmb2_element .ui-widget-content .ui-state-highlight, .cmb2_element .ui-widget-header .ui-state-highlight { + border: 1px solid #fcefa1; + background: #fbf9ee url(../images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; + color: #363636; +} +/* line 389, cmb2.scss */ +.cmb2_element .ui-state-highlight a, .cmb2_element .ui-widget-content .ui-state-highlight a, .cmb2_element .ui-widget-header .ui-state-highlight a { + color: #363636; +} +/* line 390, cmb2.scss */ +.cmb2_element .ui-state-error, .cmb2_element .ui-widget-content .ui-state-error, .cmb2_element .ui-widget-header .ui-state-error { + border: 1px solid #cd0a0a; + background: #fef1ec url(../images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; + color: #cd0a0a; +} +/* line 391, cmb2.scss */ +.cmb2_element .ui-state-error a, .cmb2_element .ui-widget-content .ui-state-error a, .cmb2_element .ui-widget-header .ui-state-error a { + color: #cd0a0a; +} +/* line 392, cmb2.scss */ +.cmb2_element .ui-state-error-text, .cmb2_element .ui-widget-content .ui-state-error-text, .cmb2_element .ui-widget-header .ui-state-error-text { + color: #cd0a0a; +} +/* line 393, cmb2.scss */ +.cmb2_element .ui-priority-primary, .cmb2_element .ui-widget-content .ui-priority-primary, .cmb2_element .ui-widget-header .ui-priority-primary { + font-weight: bold; +} +/* line 394, cmb2.scss */ +.cmb2_element .ui-priority-secondary, .cmb2_element .ui-widget-content .ui-priority-secondary, .cmb2_element .ui-widget-header .ui-priority-secondary { + opacity: .7; + filter: Alpha(Opacity=70); + font-weight: normal; +} +/* line 395, cmb2.scss */ +.cmb2_element .ui-state-disabled, .cmb2_element .ui-widget-content .ui-state-disabled, .cmb2_element .ui-widget-header .ui-state-disabled { + opacity: .35; + filter: Alpha(Opacity=35); + background-image: none; +} +/* line 396, cmb2.scss */ +.cmb2_element .ui-icon { + width: 16px; + height: 16px; + background-image: url(../images/ui-icons_222222_256x240.png); +} +/* line 397, cmb2.scss */ +.cmb2_element .ui-widget-content .ui-icon { + background-image: url(../images/ui-icons_222222_256x240.png); +} +/* line 398, cmb2.scss */ +.cmb2_element .ui-widget-header .ui-icon { + background-image: url(../images/ui-icons_222222_256x240.png); +} +/* line 399, cmb2.scss */ +.cmb2_element .ui-state-default .ui-icon { + background-image: url(../images/ui-icons_888888_256x240.png); +} +/* line 400, cmb2.scss */ +.cmb2_element .ui-state-hover .ui-icon, .cmb2_element .ui-state-focus .ui-icon { + background-image: url(../images/ui-icons_454545_256x240.png); +} +/* line 401, cmb2.scss */ +.cmb2_element .ui-state-active .ui-icon { + background-image: url(../images/ui-icons_454545_256x240.png); +} +/* line 402, cmb2.scss */ +.cmb2_element .ui-state-highlight .ui-icon { + background-image: url(../images/ui-icons_2e83ff_256x240.png); +} +/* line 403, cmb2.scss */ +.cmb2_element .ui-state-error .ui-icon, .cmb2_element .ui-state-error-text .ui-icon { + background-image: url(../images/ui-icons_cd0a0a_256x240.png); +} +/* line 404, cmb2.scss */ +.cmb2_element .ui-icon-carat-1-n { + background-position: 0 0; +} +/* line 405, cmb2.scss */ +.cmb2_element .ui-icon-carat-1-ne { + background-position: -16px 0; +} +/* line 406, cmb2.scss */ +.cmb2_element .ui-icon-carat-1-e { + background-position: -32px 0; +} +/* line 407, cmb2.scss */ +.cmb2_element .ui-icon-carat-1-se { + background-position: -48px 0; +} +/* line 408, cmb2.scss */ +.cmb2_element .ui-icon-carat-1-s { + background-position: -64px 0; +} +/* line 409, cmb2.scss */ +.cmb2_element .ui-icon-carat-1-sw { + background-position: -80px 0; +} +/* line 410, cmb2.scss */ +.cmb2_element .ui-icon-carat-1-w { + background-position: -96px 0; +} +/* line 411, cmb2.scss */ +.cmb2_element .ui-icon-carat-1-nw { + background-position: -112px 0; +} +/* line 412, cmb2.scss */ +.cmb2_element .ui-icon-carat-2-n-s { + background-position: -128px 0; +} +/* line 413, cmb2.scss */ +.cmb2_element .ui-icon-carat-2-e-w { + background-position: -144px 0; +} +/* line 414, cmb2.scss */ +.cmb2_element .ui-icon-triangle-1-n { + background-position: 0 -16px; +} +/* line 415, cmb2.scss */ +.cmb2_element .ui-icon-triangle-1-ne { + background-position: -16px -16px; +} +/* line 416, cmb2.scss */ +.cmb2_element .ui-icon-triangle-1-e { + background-position: -32px -16px; +} +/* line 417, cmb2.scss */ +.cmb2_element .ui-icon-triangle-1-se { + background-position: -48px -16px; +} +/* line 418, cmb2.scss */ +.cmb2_element .ui-icon-triangle-1-s { + background-position: -64px -16px; +} +/* line 419, cmb2.scss */ +.cmb2_element .ui-icon-triangle-1-sw { + background-position: -80px -16px; +} +/* line 420, cmb2.scss */ +.cmb2_element .ui-icon-triangle-1-w { + background-position: -96px -16px; +} +/* line 421, cmb2.scss */ +.cmb2_element .ui-icon-triangle-1-nw { + background-position: -112px -16px; +} +/* line 422, cmb2.scss */ +.cmb2_element .ui-icon-triangle-2-n-s { + background-position: -128px -16px; +} +/* line 423, cmb2.scss */ +.cmb2_element .ui-icon-triangle-2-e-w { + background-position: -144px -16px; +} +/* line 424, cmb2.scss */ +.cmb2_element .ui-icon-arrow-1-n { + background-position: 0 -32px; +} +/* line 425, cmb2.scss */ +.cmb2_element .ui-icon-arrow-1-ne { + background-position: -16px -32px; +} +/* line 426, cmb2.scss */ +.cmb2_element .ui-icon-arrow-1-e { + background-position: -32px -32px; +} +/* line 427, cmb2.scss */ +.cmb2_element .ui-icon-arrow-1-se { + background-position: -48px -32px; +} +/* line 428, cmb2.scss */ +.cmb2_element .ui-icon-arrow-1-s { + background-position: -64px -32px; +} +/* line 429, cmb2.scss */ +.cmb2_element .ui-icon-arrow-1-sw { + background-position: -80px -32px; +} +/* line 430, cmb2.scss */ +.cmb2_element .ui-icon-arrow-1-w { + background-position: -96px -32px; +} +/* line 431, cmb2.scss */ +.cmb2_element .ui-icon-arrow-1-nw { + background-position: -112px -32px; +} +/* line 432, cmb2.scss */ +.cmb2_element .ui-icon-arrow-2-n-s { + background-position: -128px -32px; +} +/* line 433, cmb2.scss */ +.cmb2_element .ui-icon-arrow-2-ne-sw { + background-position: -144px -32px; +} +/* line 434, cmb2.scss */ +.cmb2_element .ui-icon-arrow-2-e-w { + background-position: -160px -32px; +} +/* line 435, cmb2.scss */ +.cmb2_element .ui-icon-arrow-2-se-nw { + background-position: -176px -32px; +} +/* line 436, cmb2.scss */ +.cmb2_element .ui-icon-arrowstop-1-n { + background-position: -192px -32px; +} +/* line 437, cmb2.scss */ +.cmb2_element .ui-icon-arrowstop-1-e { + background-position: -208px -32px; +} +/* line 438, cmb2.scss */ +.cmb2_element .ui-icon-arrowstop-1-s { + background-position: -224px -32px; +} +/* line 439, cmb2.scss */ +.cmb2_element .ui-icon-arrowstop-1-w { + background-position: -240px -32px; +} +/* line 440, cmb2.scss */ +.cmb2_element .ui-icon-arrowthick-1-n { + background-position: 0 -48px; +} +/* line 441, cmb2.scss */ +.cmb2_element .ui-icon-arrowthick-1-ne { + background-position: -16px -48px; +} +/* line 442, cmb2.scss */ +.cmb2_element .ui-icon-arrowthick-1-e { + background-position: -32px -48px; +} +/* line 443, cmb2.scss */ +.cmb2_element .ui-icon-arrowthick-1-se { + background-position: -48px -48px; +} +/* line 444, cmb2.scss */ +.cmb2_element .ui-icon-arrowthick-1-s { + background-position: -64px -48px; +} +/* line 445, cmb2.scss */ +.cmb2_element .ui-icon-arrowthick-1-sw { + background-position: -80px -48px; +} +/* line 446, cmb2.scss */ +.cmb2_element .ui-icon-arrowthick-1-w { + background-position: -96px -48px; +} +/* line 447, cmb2.scss */ +.cmb2_element .ui-icon-arrowthick-1-nw { + background-position: -112px -48px; +} +/* line 448, cmb2.scss */ +.cmb2_element .ui-icon-arrowthick-2-n-s { + background-position: -128px -48px; +} +/* line 449, cmb2.scss */ +.cmb2_element .ui-icon-arrowthick-2-ne-sw { + background-position: -144px -48px; +} +/* line 450, cmb2.scss */ +.cmb2_element .ui-icon-arrowthick-2-e-w { + background-position: -160px -48px; +} +/* line 451, cmb2.scss */ +.cmb2_element .ui-icon-arrowthick-2-se-nw { + background-position: -176px -48px; +} +/* line 452, cmb2.scss */ +.cmb2_element .ui-icon-arrowthickstop-1-n { + background-position: -192px -48px; +} +/* line 453, cmb2.scss */ +.cmb2_element .ui-icon-arrowthickstop-1-e { + background-position: -208px -48px; +} +/* line 454, cmb2.scss */ +.cmb2_element .ui-icon-arrowthickstop-1-s { + background-position: -224px -48px; +} +/* line 455, cmb2.scss */ +.cmb2_element .ui-icon-arrowthickstop-1-w { + background-position: -240px -48px; +} +/* line 456, cmb2.scss */ +.cmb2_element .ui-icon-arrowreturnthick-1-w { + background-position: 0 -64px; +} +/* line 457, cmb2.scss */ +.cmb2_element .ui-icon-arrowreturnthick-1-n { + background-position: -16px -64px; +} +/* line 458, cmb2.scss */ +.cmb2_element .ui-icon-arrowreturnthick-1-e { + background-position: -32px -64px; +} +/* line 459, cmb2.scss */ +.cmb2_element .ui-icon-arrowreturnthick-1-s { + background-position: -48px -64px; +} +/* line 460, cmb2.scss */ +.cmb2_element .ui-icon-arrowreturn-1-w { + background-position: -64px -64px; +} +/* line 461, cmb2.scss */ +.cmb2_element .ui-icon-arrowreturn-1-n { + background-position: -80px -64px; +} +/* line 462, cmb2.scss */ +.cmb2_element .ui-icon-arrowreturn-1-e { + background-position: -96px -64px; +} +/* line 463, cmb2.scss */ +.cmb2_element .ui-icon-arrowreturn-1-s { + background-position: -112px -64px; +} +/* line 464, cmb2.scss */ +.cmb2_element .ui-icon-arrowrefresh-1-w { + background-position: -128px -64px; +} +/* line 465, cmb2.scss */ +.cmb2_element .ui-icon-arrowrefresh-1-n { + background-position: -144px -64px; +} +/* line 466, cmb2.scss */ +.cmb2_element .ui-icon-arrowrefresh-1-e { + background-position: -160px -64px; +} +/* line 467, cmb2.scss */ +.cmb2_element .ui-icon-arrowrefresh-1-s { + background-position: -176px -64px; +} +/* line 468, cmb2.scss */ +.cmb2_element .ui-icon-arrow-4 { + background-position: 0 -80px; +} +/* line 469, cmb2.scss */ +.cmb2_element .ui-icon-arrow-4-diag { + background-position: -16px -80px; +} +/* line 470, cmb2.scss */ +.cmb2_element .ui-icon-extlink { + background-position: -32px -80px; +} +/* line 471, cmb2.scss */ +.cmb2_element .ui-icon-newwin { + background-position: -48px -80px; +} +/* line 472, cmb2.scss */ +.cmb2_element .ui-icon-refresh { + background-position: -64px -80px; +} +/* line 473, cmb2.scss */ +.cmb2_element .ui-icon-shuffle { + background-position: -80px -80px; +} +/* line 474, cmb2.scss */ +.cmb2_element .ui-icon-transfer-e-w { + background-position: -96px -80px; +} +/* line 475, cmb2.scss */ +.cmb2_element .ui-icon-transferthick-e-w { + background-position: -112px -80px; +} +/* line 476, cmb2.scss */ +.cmb2_element .ui-icon-folder-collapsed { + background-position: 0 -96px; +} +/* line 477, cmb2.scss */ +.cmb2_element .ui-icon-folder-open { + background-position: -16px -96px; +} +/* line 478, cmb2.scss */ +.cmb2_element .ui-icon-document { + background-position: -32px -96px; +} +/* line 479, cmb2.scss */ +.cmb2_element .ui-icon-document-b { + background-position: -48px -96px; +} +/* line 480, cmb2.scss */ +.cmb2_element .ui-icon-note { + background-position: -64px -96px; +} +/* line 481, cmb2.scss */ +.cmb2_element .ui-icon-mail-closed { + background-position: -80px -96px; +} +/* line 482, cmb2.scss */ +.cmb2_element .ui-icon-mail-open { + background-position: -96px -96px; +} +/* line 483, cmb2.scss */ +.cmb2_element .ui-icon-suitcase { + background-position: -112px -96px; +} +/* line 484, cmb2.scss */ +.cmb2_element .ui-icon-comment { + background-position: -128px -96px; +} +/* line 485, cmb2.scss */ +.cmb2_element .ui-icon-person { + background-position: -144px -96px; +} +/* line 486, cmb2.scss */ +.cmb2_element .ui-icon-print { + background-position: -160px -96px; +} +/* line 487, cmb2.scss */ +.cmb2_element .ui-icon-trash { + background-position: -176px -96px; +} +/* line 488, cmb2.scss */ +.cmb2_element .ui-icon-locked { + background-position: -192px -96px; +} +/* line 489, cmb2.scss */ +.cmb2_element .ui-icon-unlocked { + background-position: -208px -96px; +} +/* line 490, cmb2.scss */ +.cmb2_element .ui-icon-bookmark { + background-position: -224px -96px; +} +/* line 491, cmb2.scss */ +.cmb2_element .ui-icon-tag { + background-position: -240px -96px; +} +/* line 492, cmb2.scss */ +.cmb2_element .ui-icon-home { + background-position: 0 -112px; +} +/* line 493, cmb2.scss */ +.cmb2_element .ui-icon-flag { + background-position: -16px -112px; +} +/* line 494, cmb2.scss */ +.cmb2_element .ui-icon-calendar { + background-position: -32px -112px; +} +/* line 495, cmb2.scss */ +.cmb2_element .ui-icon-cart { + background-position: -48px -112px; +} +/* line 496, cmb2.scss */ +.cmb2_element .ui-icon-pencil { + background-position: -64px -112px; +} +/* line 497, cmb2.scss */ +.cmb2_element .ui-icon-clock { + background-position: -80px -112px; +} +/* line 498, cmb2.scss */ +.cmb2_element .ui-icon-disk { + background-position: -96px -112px; +} +/* line 499, cmb2.scss */ +.cmb2_element .ui-icon-calculator { + background-position: -112px -112px; +} +/* line 500, cmb2.scss */ +.cmb2_element .ui-icon-zoomin { + background-position: -128px -112px; +} +/* line 501, cmb2.scss */ +.cmb2_element .ui-icon-zoomout { + background-position: -144px -112px; +} +/* line 502, cmb2.scss */ +.cmb2_element .ui-icon-search { + background-position: -160px -112px; +} +/* line 503, cmb2.scss */ +.cmb2_element .ui-icon-wrench { + background-position: -176px -112px; +} +/* line 504, cmb2.scss */ +.cmb2_element .ui-icon-gear { + background-position: -192px -112px; +} +/* line 505, cmb2.scss */ +.cmb2_element .ui-icon-heart { + background-position: -208px -112px; +} +/* line 506, cmb2.scss */ +.cmb2_element .ui-icon-star { + background-position: -224px -112px; +} +/* line 507, cmb2.scss */ +.cmb2_element .ui-icon-link { + background-position: -240px -112px; +} +/* line 508, cmb2.scss */ +.cmb2_element .ui-icon-cancel { + background-position: 0 -128px; +} +/* line 509, cmb2.scss */ +.cmb2_element .ui-icon-plus { + background-position: -16px -128px; +} +/* line 510, cmb2.scss */ +.cmb2_element .ui-icon-plusthick { + background-position: -32px -128px; +} +/* line 511, cmb2.scss */ +.cmb2_element .ui-icon-minus { + background-position: -48px -128px; +} +/* line 512, cmb2.scss */ +.cmb2_element .ui-icon-minusthick { + background-position: -64px -128px; +} +/* line 513, cmb2.scss */ +.cmb2_element .ui-icon-close { + background-position: -80px -128px; +} +/* line 514, cmb2.scss */ +.cmb2_element .ui-icon-closethick { + background-position: -96px -128px; +} +/* line 515, cmb2.scss */ +.cmb2_element .ui-icon-key { + background-position: -112px -128px; +} +/* line 516, cmb2.scss */ +.cmb2_element .ui-icon-lightbulb { + background-position: -128px -128px; +} +/* line 517, cmb2.scss */ +.cmb2_element .ui-icon-scissors { + background-position: -144px -128px; +} +/* line 518, cmb2.scss */ +.cmb2_element .ui-icon-clipboard { + background-position: -160px -128px; +} +/* line 519, cmb2.scss */ +.cmb2_element .ui-icon-copy { + background-position: -176px -128px; +} +/* line 520, cmb2.scss */ +.cmb2_element .ui-icon-contact { + background-position: -192px -128px; +} +/* line 521, cmb2.scss */ +.cmb2_element .ui-icon-image { + background-position: -208px -128px; +} +/* line 522, cmb2.scss */ +.cmb2_element .ui-icon-video { + background-position: -224px -128px; +} +/* line 523, cmb2.scss */ +.cmb2_element .ui-icon-script { + background-position: -240px -128px; +} +/* line 524, cmb2.scss */ +.cmb2_element .ui-icon-alert { + background-position: 0 -144px; +} +/* line 525, cmb2.scss */ +.cmb2_element .ui-icon-info { + background-position: -16px -144px; +} +/* line 526, cmb2.scss */ +.cmb2_element .ui-icon-notice { + background-position: -32px -144px; +} +/* line 527, cmb2.scss */ +.cmb2_element .ui-icon-help { + background-position: -48px -144px; +} +/* line 528, cmb2.scss */ +.cmb2_element .ui-icon-check { + background-position: -64px -144px; +} +/* line 529, cmb2.scss */ +.cmb2_element .ui-icon-bullet { + background-position: -80px -144px; +} +/* line 530, cmb2.scss */ +.cmb2_element .ui-icon-radio-off { + background-position: -96px -144px; +} +/* line 531, cmb2.scss */ +.cmb2_element .ui-icon-radio-on { + background-position: -112px -144px; +} +/* line 532, cmb2.scss */ +.cmb2_element .ui-icon-pin-w { + background-position: -128px -144px; +} +/* line 533, cmb2.scss */ +.cmb2_element .ui-icon-pin-s { + background-position: -144px -144px; +} +/* line 534, cmb2.scss */ +.cmb2_element .ui-icon-play { + background-position: 0 -160px; +} +/* line 535, cmb2.scss */ +.cmb2_element .ui-icon-pause { + background-position: -16px -160px; +} +/* line 536, cmb2.scss */ +.cmb2_element .ui-icon-seek-next { + background-position: -32px -160px; +} +/* line 537, cmb2.scss */ +.cmb2_element .ui-icon-seek-prev { + background-position: -48px -160px; +} +/* line 538, cmb2.scss */ +.cmb2_element .ui-icon-seek-end { + background-position: -64px -160px; +} +/* line 539, cmb2.scss */ +.cmb2_element .ui-icon-seek-start { + background-position: -80px -160px; +} +/* line 540, cmb2.scss */ +.cmb2_element .ui-icon-seek-first { + background-position: -80px -160px; +} +/* line 541, cmb2.scss */ +.cmb2_element .ui-icon-stop { + background-position: -96px -160px; +} +/* line 542, cmb2.scss */ +.cmb2_element .ui-icon-eject { + background-position: -112px -160px; +} +/* line 543, cmb2.scss */ +.cmb2_element .ui-icon-volume-off { + background-position: -128px -160px; +} +/* line 544, cmb2.scss */ +.cmb2_element .ui-icon-volume-on { + background-position: -144px -160px; +} +/* line 545, cmb2.scss */ +.cmb2_element .ui-icon-power { + background-position: 0 -176px; +} +/* line 546, cmb2.scss */ +.cmb2_element .ui-icon-signal-diag { + background-position: -16px -176px; +} +/* line 547, cmb2.scss */ +.cmb2_element .ui-icon-signal { + background-position: -32px -176px; +} +/* line 548, cmb2.scss */ +.cmb2_element .ui-icon-battery-0 { + background-position: -48px -176px; +} +/* line 549, cmb2.scss */ +.cmb2_element .ui-icon-battery-1 { + background-position: -64px -176px; +} +/* line 550, cmb2.scss */ +.cmb2_element .ui-icon-battery-2 { + background-position: -80px -176px; +} +/* line 551, cmb2.scss */ +.cmb2_element .ui-icon-battery-3 { + background-position: -96px -176px; +} +/* line 552, cmb2.scss */ +.cmb2_element .ui-icon-circle-plus { + background-position: 0 -192px; +} +/* line 553, cmb2.scss */ +.cmb2_element .ui-icon-circle-minus { + background-position: -16px -192px; +} +/* line 554, cmb2.scss */ +.cmb2_element .ui-icon-circle-close { + background-position: -32px -192px; +} +/* line 555, cmb2.scss */ +.cmb2_element .ui-icon-circle-triangle-e { + background-position: -48px -192px; +} +/* line 556, cmb2.scss */ +.cmb2_element .ui-icon-circle-triangle-s { + background-position: -64px -192px; +} +/* line 557, cmb2.scss */ +.cmb2_element .ui-icon-circle-triangle-w { + background-position: -80px -192px; +} +/* line 558, cmb2.scss */ +.cmb2_element .ui-icon-circle-triangle-n { + background-position: -96px -192px; +} +/* line 559, cmb2.scss */ +.cmb2_element .ui-icon-circle-arrow-e { + background-position: -112px -192px; +} +/* line 560, cmb2.scss */ +.cmb2_element .ui-icon-circle-arrow-s { + background-position: -128px -192px; +} +/* line 561, cmb2.scss */ +.cmb2_element .ui-icon-circle-arrow-w { + background-position: -144px -192px; +} +/* line 562, cmb2.scss */ +.cmb2_element .ui-icon-circle-arrow-n { + background-position: -160px -192px; +} +/* line 563, cmb2.scss */ +.cmb2_element .ui-icon-circle-zoomin { + background-position: -176px -192px; +} +/* line 564, cmb2.scss */ +.cmb2_element .ui-icon-circle-zoomout { + background-position: -192px -192px; +} +/* line 565, cmb2.scss */ +.cmb2_element .ui-icon-circle-check { + background-position: -208px -192px; +} +/* line 566, cmb2.scss */ +.cmb2_element .ui-icon-circlesmall-plus { + background-position: 0 -208px; +} +/* line 567, cmb2.scss */ +.cmb2_element .ui-icon-circlesmall-minus { + background-position: -16px -208px; +} +/* line 568, cmb2.scss */ +.cmb2_element .ui-icon-circlesmall-close { + background-position: -32px -208px; +} +/* line 569, cmb2.scss */ +.cmb2_element .ui-icon-squaresmall-plus { + background-position: -48px -208px; +} +/* line 570, cmb2.scss */ +.cmb2_element .ui-icon-squaresmall-minus { + background-position: -64px -208px; +} +/* line 571, cmb2.scss */ +.cmb2_element .ui-icon-squaresmall-close { + background-position: -80px -208px; +} +/* line 572, cmb2.scss */ +.cmb2_element .ui-icon-grip-dotted-vertical { + background-position: 0 -224px; +} +/* line 573, cmb2.scss */ +.cmb2_element .ui-icon-grip-dotted-horizontal { + background-position: -16px -224px; +} +/* line 574, cmb2.scss */ +.cmb2_element .ui-icon-grip-solid-vertical { + background-position: -32px -224px; +} +/* line 575, cmb2.scss */ +.cmb2_element .ui-icon-grip-solid-horizontal { + background-position: -48px -224px; +} +/* line 576, cmb2.scss */ +.cmb2_element .ui-icon-gripsmall-diagonal-se { + background-position: -64px -224px; +} +/* line 577, cmb2.scss */ +.cmb2_element .ui-icon-grip-diagonal-se { + background-position: -80px -224px; +} +/* line 578, cmb2.scss */ +.cmb2_element .ui-corner-all, .cmb2_element .ui-corner-top, .cmb2_element .ui-corner-left, .cmb2_element .ui-corner-tl { + -moz-border-radius-topleft: 4px; + -webkit-border-top-left-radius: 4px; + -khtml-border-top-left-radius: 4px; + border-top-left-radius: 4px; +} +/* line 579, cmb2.scss */ +.cmb2_element .ui-corner-all, .cmb2_element .ui-corner-top, .cmb2_element .ui-corner-right, .cmb2_element .ui-corner-tr { + -moz-border-radius-topright: 4px; + -webkit-border-top-right-radius: 4px; + -khtml-border-top-right-radius: 4px; + border-top-right-radius: 4px; +} +/* line 580, cmb2.scss */ +.cmb2_element .ui-corner-all, .cmb2_element .ui-corner-bottom, .cmb2_element .ui-corner-left, .cmb2_element .ui-corner-bl { + -moz-border-radius-bottomleft: 4px; + -webkit-border-bottom-left-radius: 4px; + -khtml-border-bottom-left-radius: 4px; + border-bottom-left-radius: 4px; +} +/* line 581, cmb2.scss */ +.cmb2_element .ui-corner-all, .cmb2_element .ui-corner-bottom, .cmb2_element .ui-corner-right, .cmb2_element .ui-corner-br { + -moz-border-radius-bottomright: 4px; + -webkit-border-bottom-right-radius: 4px; + -khtml-border-bottom-right-radius: 4px; + border-bottom-right-radius: 4px; +} +/* line 582, cmb2.scss */ +.cmb2_element .ui-widget-overlay { + background: #aaaaaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; + opacity: .30; + filter: Alpha(Opacity=30); +} +/* line 583, cmb2.scss */ +.cmb2_element .ui-widget-shadow { + margin: -8px 0 0 -8px; + padding: 8px; + background: #aaaaaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; + opacity: .30; + filter: Alpha(Opacity=30); + -moz-border-radius: 8px; + -khtml-border-radius: 8px; + -webkit-border-radius: 8px; + border-radius: 8px; +} +/* line 584, cmb2.scss */ +.cmb2_element .ui-datepicker { + width: 17em; + padding: .2em .2em 0; + display: none; +} +/* line 585, cmb2.scss */ +.cmb2_element .ui-datepicker .ui-datepicker-header { + position: relative; + padding: .2em 0; +} +/* line 586, cmb2.scss */ +.cmb2_element .ui-datepicker .ui-datepicker-prev, .cmb2_element .ui-datepicker .ui-datepicker-next { + position: absolute; + top: 2px; + width: 1.8em; + height: 1.8em; +} +/* line 587, cmb2.scss */ +.cmb2_element .ui-datepicker .ui-datepicker-prev-hover, .cmb2_element .ui-datepicker .ui-datepicker-next-hover { + top: 1px; +} +/* line 588, cmb2.scss */ +.cmb2_element .ui-datepicker .ui-datepicker-prev { + left: 2px; +} +/* line 589, cmb2.scss */ +.cmb2_element .ui-datepicker .ui-datepicker-next { + right: 2px; +} +/* line 590, cmb2.scss */ +.cmb2_element .ui-datepicker .ui-datepicker-prev-hover { + left: 1px; +} +/* line 591, cmb2.scss */ +.cmb2_element .ui-datepicker .ui-datepicker-next-hover { + right: 1px; +} +/* line 592, cmb2.scss */ +.cmb2_element .ui-datepicker .ui-datepicker-prev span, .cmb2_element .ui-datepicker .ui-datepicker-next span { + display: block; + position: absolute; + left: 50%; + margin-left: -8px; + top: 50%; + margin-top: -8px; +} +/* line 593, cmb2.scss */ +.cmb2_element .ui-datepicker .ui-datepicker-title { + margin: 0 2.3em; + line-height: 1.8em; + text-align: center; +} +/* line 594, cmb2.scss */ +.cmb2_element .ui-datepicker .ui-datepicker-title select { + font-size: 1em; + margin: 1px 0; +} +/* line 595, cmb2.scss */ +.cmb2_element .ui-datepicker select.ui-datepicker-month-year { + width: 100%; +} +/* line 596, cmb2.scss */ +.cmb2_element .ui-datepicker select.ui-datepicker-month, +.cmb2_element .ui-datepicker select.ui-datepicker-year { + width: 49%; +} +/* line 598, cmb2.scss */ +.cmb2_element .ui-datepicker table { + width: 100%; + font-size: .9em; + border-collapse: collapse; + margin: 0 0 .4em; +} +/* line 599, cmb2.scss */ +.cmb2_element .ui-datepicker th { + padding: .7em .3em; + text-align: center; + font-weight: bold; + border: 0; +} +/* line 600, cmb2.scss */ +.cmb2_element .ui-datepicker td { + border: 0; + padding: 1px; +} +/* line 601, cmb2.scss */ +.cmb2_element .ui-datepicker td span, .cmb2_element .ui-datepicker td a { + display: block; + padding: .2em; + text-align: right; + text-decoration: none; +} +/* line 602, cmb2.scss */ +.cmb2_element .ui-datepicker .ui-datepicker-buttonpane { + background-image: none; + margin: .7em 0 0 0; + padding: 0 .2em; + border-left: 0; + border-right: 0; + border-bottom: 0; +} +/* line 603, cmb2.scss */ +.cmb2_element .ui-datepicker .ui-datepicker-buttonpane button { + float: right; + margin: .5em .2em .4em; + cursor: pointer; + padding: .2em .6em .3em .6em; + width: auto; + overflow: visible; +} +/* line 604, cmb2.scss */ +.cmb2_element .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { + float: left; +} +/* line 605, cmb2.scss */ +.cmb2_element .ui-datepicker.ui-datepicker-multi { + width: auto; +} +/* line 606, cmb2.scss */ +.cmb2_element .ui-datepicker-multi .ui-datepicker-group { + float: left; +} +/* line 607, cmb2.scss */ +.cmb2_element .ui-datepicker-multi .ui-datepicker-group table { + width: 95%; + margin: 0 auto .4em; +} +/* line 608, cmb2.scss */ +.cmb2_element .ui-datepicker-multi-2 .ui-datepicker-group { + width: 50%; +} +/* line 609, cmb2.scss */ +.cmb2_element .ui-datepicker-multi-3 .ui-datepicker-group { + width: 33.3%; +} +/* line 610, cmb2.scss */ +.cmb2_element .ui-datepicker-multi-4 .ui-datepicker-group { + width: 25%; +} +/* line 611, cmb2.scss */ +.cmb2_element .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { + border-left-width: 0; +} +/* line 612, cmb2.scss */ +.cmb2_element .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { + border-left-width: 0; +} +/* line 613, cmb2.scss */ +.cmb2_element .ui-datepicker-multi .ui-datepicker-buttonpane { + clear: left; +} +/* line 614, cmb2.scss */ +.cmb2_element .ui-datepicker-row-break { + clear: both; + width: 100%; + font-size: 0em; +} +/* line 615, cmb2.scss */ +.cmb2_element .ui-datepicker-rtl { + direction: rtl; +} +/* line 617, cmb2.scss */ +.cmb2_element .ui-datepicker-rtl .ui-datepicker-prev { + right: 2px; + left: auto; +} +/* line 618, cmb2.scss */ +.cmb2_element .ui-datepicker-rtl .ui-datepicker-next { + left: 2px; + right: auto; +} +/* line 619, cmb2.scss */ +.cmb2_element .ui-datepicker-rtl .ui-datepicker-prev:hover { + right: 1px; + left: auto; +} +/* line 620, cmb2.scss */ +.cmb2_element .ui-datepicker-rtl .ui-datepicker-next:hover { + left: 1px; + right: auto; +} +/* line 621, cmb2.scss */ +.cmb2_element .ui-datepicker-rtl .ui-datepicker-buttonpane { + clear: right; +} +/* line 622, cmb2.scss */ +.cmb2_element .ui-datepicker-rtl .ui-datepicker-buttonpane button { + float: left; +} +/* line 623, cmb2.scss */ +.cmb2_element .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { + float: right; +} +/* line 624, cmb2.scss */ +.cmb2_element .ui-datepicker-rtl .ui-datepicker-group { + float: right; +} +/* line 625, cmb2.scss */ +.cmb2_element .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { + border-right-width: 0; + border-left-width: 1px; +} +/* line 626, cmb2.scss */ +.cmb2_element .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { + border-right-width: 0; + border-left-width: 1px; +} +/* line 628, cmb2.scss */ +.cmb2_element .ui-datepicker-cover { + display: none; + /*sorry for IE5*/ + display/**/: block; + /*sorry for IE5*/ + position: absolute; + /*must have*/ + z-index: -1; + /*must have*/ + filter: mask(); + /*must have*/ + top: -4px; + /*must have*/ + left: -4px; + /*must have*/ + width: 200px; + /*must have*/ + height: 200px; + /*must have*/ +} diff --git a/css/cmb2.min.css b/css/cmb2.min.css new file mode 100644 index 000000000..88a76a5f1 --- /dev/null +++ b/css/cmb2.min.css @@ -0,0 +1 @@ +table.cmb2_metabox{clear:both}.post-new-php table.cmb2_metabox .cmb-nested-table td,.post-new-php table.cmb2_metabox .repeatable-group th,.post-new-php table.cmb2_metabox .repeatable-group:first-of-type,.post-php table.cmb2_metabox .cmb-nested-table td,.post-php table.cmb2_metabox .repeatable-group th,.post-php table.cmb2_metabox .repeatable-group:first-of-type,table.cmb2_metabox tbody>tr:first-of-type>td,table.cmb2_metabox tbody>tr:first-of-type>th,table.cmb2_metabox>tr:first-of-type>td,table.cmb2_metabox>tr:first-of-type>th{border:0}.post-new-php table.cmb2_metabox .repeatable-group,.post-new-php table.cmb2_metabox td,.post-new-php table.cmb2_metabox th,.post-php table.cmb2_metabox .repeatable-group,.post-php table.cmb2_metabox td,.post-php table.cmb2_metabox th{border-top:1px solid #E9E9E9}.empty-row.hidden{display:none}.repeatable-group th{padding:5px}.repeatable-group .shift-rows{text-decoration:none;margin-right:5px;font-size:1.2em}.repeatable-group .cmb2_upload_button{float:right}#poststuff .repeatable-group h2{margin:0}.cmb-group-title h4{font-size:1.2em;font-weight:500;border-bottom:1px solid #ddd}.post-new-php table.cmb2_metabox th,.post-php table.cmb2_metabox th{text-align:right;font-weight:700}.post-new-php table.cmb2_metabox table th,.post-php table.cmb2_metabox table th{text-align:left}table.cmb2_metabox th label{margin-top:5px;display:block}p.cmb2_metabox_description{color:#AAA;font-style:italic;margin:2px 0!important}span.cmb2_metabox_description{color:#AAA;font-style:italic}table.cmb2_metabox input,table.cmb2_metabox textarea{font-size:14px;padding:5px}table.cmb2_metabox input[type=text],table.cmb2_metabox textarea{width:97%}table.cmb2_metabox textarea.cmb2_textarea_code{font-family:Consolas,Monaco,monospace;line-height:16px}table.cmb2_metabox input.cmb2_text_small,table.cmb2_metabox input.cmb2_timepicker{width:100px;margin-right:15px}table.cmb2_metabox input.cmb2_text_money{width:90px;margin-right:15px}table.cmb2_metabox input.cmb2_text_medium{width:230px;margin-right:15px}table.cmb2_metabox input.cmb2_upload_file{width:65%}table.cmb2_metabox input.ed_button{padding:2px 4px}table.cmb2_metabox li{font-size:14px;margin:1px 0 5px;line-height:16px}table.cmb2_metabox ul{padding-top:5px;margin:0}table.cmb2_metabox select{font-size:14px;margin-top:3px}table.cmb2_metabox input:focus,table.cmb2_metabox textarea:focus{background:#fffff8}.cmb2_metabox_title{margin:0 0 5px;padding:5px 0 0}.edit-tags-php .cmb2_metabox_title,.profile-php .cmb2_metabox_title,.user-edit-php .cmb2_metabox_title{margin-left:-10px}.cmb-inline ul{padding:4px 0 0}.cmb-inline li{display:inline-block;padding-right:18px}table.cmb2_metabox input[type=checkbox],table.cmb2_metabox input[type=radio]{margin:0 5px 0 0;padding:0}table.cmb2_metabox .mceLayout{border:1px solid #dfdfdf!important}table.cmb2_metabox .mceIframeContainer{background:#fff}table.cmb2_metabox .meta_mce{width:97%}table.cmb2_metabox .meta_mce textarea{width:100%}table.cmb2_metabox .cmb2_media_status{margin:10px 0 0}table.cmb2_metabox .cmb2_media_status .img_status{clear:none;float:left;display:inline-block;margin-right:10px;width:auto}table.cmb2_metabox .cmb-type-file_list .cmb2_media_status .img_status{clear:none;float:left;margin-right:10px;width:auto}table.cmb2_metabox .cmb2_media_status .embed_status,table.cmb2_metabox .cmb2_media_status .img_status{position:relative}table.cmb2_metabox .cmb2_media_status .embed_status,table.cmb2_metabox .cmb2_media_status .img_status img{border:1px solid #DFDFDF;background:#FAFAFA;max-width:350px;padding:5px;-moz-border-radius:2px;border-radius:2px}table.cmb2_metabox .cmb2_media_status .embed_status{float:left;max-width:800px}table.cmb2_metabox .cmb2_media_status .embed_status .cmb2_remove_file_button,table.cmb2_metabox .cmb2_media_status .img_status .cmb2_remove_file_button{text-indent:-9999px;background:url(../images/ico-delete.png);width:16px;height:16px;position:absolute;top:-5px;left:-5px}table.cmb2_metabox .attach_list li{clear:both;display:inline-block;margin-bottom:25px;width:100%}table.cmb2_metabox .attach_list li img{float:left;margin-right:10px;cursor:move}#side-sortables table.cmb2_metabox input[type=text],.inner-sidebar table.cmb2_metabox input[type=text],table.cmb2_metabox textarea{width:95%}#side-sortables table.cmb2_metabox .cmb2_media_status .embed_status img,#side-sortables table.cmb2_metabox .cmb2_media_status .img_status img,.inner-sidebar table.cmb2_metabox .cmb2_media_status .embed_status img,.inner-sidebar table.cmb2_metabox .cmb2_media_status .img_status img{width:90%}#side-sortables table.cmb2_metabox label,.inner-sidebar table.cmb2_metabox label{display:block;font-weight:700;padding:0 0 5px}#side-sortables table.cmb2_metabox .cmb2_list label,.inner-sidebar table.cmb2_metabox .cmb2_list label{display:inline;font-weight:400}#side-sortables table.cmb2_metabox .cmb2_metabox_description,.inner-sidebar table.cmb2_metabox .cmb2_metabox_description{display:block;padding:7px 0 0}#side-sortables table.cmb2_metabox .cmb2_metabox_title,.inner-sidebar table.cmb2_metabox .cmb2_metabox_title{font-size:1.2em;font-style:italic}.postbox table.cmb2_metabox .cmb-spinner{float:left}table.cmb2_metabox .wp-color-result,table.cmb2_metabox .wp-picker-input-wrap{vertical-align:middle}table.cmb2_metabox .wp-color-result,table.cmb2_metabox .wp-picker-container{margin:0 10px 0 0}div.time-picker{position:absolute;height:191px;width:6em;overflow:auto;background:#fff;border:1px solid #aaa;z-index:99;margin:0}div.time-picker-12hours{width:8em}div.time-picker ul{list-style-type:none;margin:0;padding:0}div.time-picker li{cursor:pointer;height:10px;font:14px/1 Helvetica,Arial,sans-serif;padding:4px 3px}div.time-picker li.selected{background:#0063CE;color:#fff}.cmb2_element .ui-helper-hidden{display:none}.cmb2_element .ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px)}.cmb2_element .ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.cmb2_element .ui-helper-clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}.cmb2_element * html .ui-helper-clearfix{height:1%}.cmb2_element .ui-helper-clearfix{display:block}.cmb2_element .ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.cmb2_element .ui-state-disabled{cursor:default!important}.cmb2_element .ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.cmb2_element .ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.cmb2_element .ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.cmb2_element .ui-widget .ui-widget{font-size:1em}.cmb2_element .ui-widget button,.cmb2_element .ui-widget input,.cmb2_element .ui-widget select,.cmb2_element .ui-widget textarea{font-family:Verdana,Arial,sans-serif;font-size:1em}.cmb2_element .ui-widget-content{border:1px solid #aaa;background:#fff url(../images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;color:#222}.cmb2_element .ui-widget-content a{color:#222}.cmb2_element .ui-widget-header{border:1px solid #aaa;background:#ccc url(../images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;color:#222;font-weight:700}.cmb2_element .ui-widget-header a{color:#222}.cmb2_element .ui-state-default,.cmb2_element .ui-widget-content .ui-state-default,.cmb2_element .ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url(../images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;font-weight:400;color:#555}.cmb2_element .ui-state-default a,.cmb2_element .ui-state-default a:link,.cmb2_element .ui-state-default a:visited{color:#555;text-decoration:none}.cmb2_element .ui-state-focus,.cmb2_element .ui-state-hover,.cmb2_element .ui-widget-content .ui-state-focus,.cmb2_element .ui-widget-content .ui-state-hover,.cmb2_element .ui-widget-header .ui-state-focus,.cmb2_element .ui-widget-header .ui-state-hover{border:1px solid #999;background:#dadada url(../images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;font-weight:400;color:#212121}.cmb2_element .ui-state-hover a,.cmb2_element .ui-state-hover a:hover{color:#212121;text-decoration:none}.cmb2_element .ui-state-active,.cmb2_element .ui-widget-content .ui-state-active,.cmb2_element .ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff url(../images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:400;color:#212121}.cmb2_element .ui-state-active a,.cmb2_element .ui-state-active a:link,.cmb2_element .ui-state-active a:visited{color:#212121;text-decoration:none}.cmb2_element .ui-widget :active{outline:0}.cmb2_element .ui-state-highlight,.cmb2_element .ui-widget-content .ui-state-highlight,.cmb2_element .ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url(../images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;color:#363636}.cmb2_element .ui-state-highlight a,.cmb2_element .ui-widget-content .ui-state-highlight a,.cmb2_element .ui-widget-header .ui-state-highlight a{color:#363636}.cmb2_element .ui-state-error,.cmb2_element .ui-widget-content .ui-state-error,.cmb2_element .ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(../images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;color:#cd0a0a}.cmb2_element .ui-state-error a,.cmb2_element .ui-state-error-text,.cmb2_element .ui-widget-content .ui-state-error a,.cmb2_element .ui-widget-content .ui-state-error-text,.cmb2_element .ui-widget-header .ui-state-error a,.cmb2_element .ui-widget-header .ui-state-error-text{color:#cd0a0a}.cmb2_element .ui-priority-primary,.cmb2_element .ui-widget-content .ui-priority-primary,.cmb2_element .ui-widget-header .ui-priority-primary{font-weight:700}.cmb2_element .ui-priority-secondary,.cmb2_element .ui-widget-content .ui-priority-secondary,.cmb2_element .ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:400}.cmb2_element .ui-state-disabled,.cmb2_element .ui-widget-content .ui-state-disabled,.cmb2_element .ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.cmb2_element .ui-icon{width:16px;height:16px;background-image:url(../images/ui-icons_222222_256x240.png)}.cmb2_element .ui-widget-content .ui-icon,.cmb2_element .ui-widget-header .ui-icon{background-image:url(../images/ui-icons_222222_256x240.png)}.cmb2_element .ui-state-default .ui-icon{background-image:url(../images/ui-icons_888888_256x240.png)}.cmb2_element .ui-state-active .ui-icon,.cmb2_element .ui-state-focus .ui-icon,.cmb2_element .ui-state-hover .ui-icon{background-image:url(../images/ui-icons_454545_256x240.png)}.cmb2_element .ui-state-highlight .ui-icon{background-image:url(../images/ui-icons_2e83ff_256x240.png)}.cmb2_element .ui-state-error .ui-icon,.cmb2_element .ui-state-error-text .ui-icon{background-image:url(../images/ui-icons_cd0a0a_256x240.png)}.cmb2_element .ui-icon-carat-1-n{background-position:0 0}.cmb2_element .ui-icon-carat-1-ne{background-position:-16px 0}.cmb2_element .ui-icon-carat-1-e{background-position:-32px 0}.cmb2_element .ui-icon-carat-1-se{background-position:-48px 0}.cmb2_element .ui-icon-carat-1-s{background-position:-64px 0}.cmb2_element .ui-icon-carat-1-sw{background-position:-80px 0}.cmb2_element .ui-icon-carat-1-w{background-position:-96px 0}.cmb2_element .ui-icon-carat-1-nw{background-position:-112px 0}.cmb2_element .ui-icon-carat-2-n-s{background-position:-128px 0}.cmb2_element .ui-icon-carat-2-e-w{background-position:-144px 0}.cmb2_element .ui-icon-triangle-1-n{background-position:0 -16px}.cmb2_element .ui-icon-triangle-1-ne{background-position:-16px -16px}.cmb2_element .ui-icon-triangle-1-e{background-position:-32px -16px}.cmb2_element .ui-icon-triangle-1-se{background-position:-48px -16px}.cmb2_element .ui-icon-triangle-1-s{background-position:-64px -16px}.cmb2_element .ui-icon-triangle-1-sw{background-position:-80px -16px}.cmb2_element .ui-icon-triangle-1-w{background-position:-96px -16px}.cmb2_element .ui-icon-triangle-1-nw{background-position:-112px -16px}.cmb2_element .ui-icon-triangle-2-n-s{background-position:-128px -16px}.cmb2_element .ui-icon-triangle-2-e-w{background-position:-144px -16px}.cmb2_element .ui-icon-arrow-1-n{background-position:0 -32px}.cmb2_element .ui-icon-arrow-1-ne{background-position:-16px -32px}.cmb2_element .ui-icon-arrow-1-e{background-position:-32px -32px}.cmb2_element .ui-icon-arrow-1-se{background-position:-48px -32px}.cmb2_element .ui-icon-arrow-1-s{background-position:-64px -32px}.cmb2_element .ui-icon-arrow-1-sw{background-position:-80px -32px}.cmb2_element .ui-icon-arrow-1-w{background-position:-96px -32px}.cmb2_element .ui-icon-arrow-1-nw{background-position:-112px -32px}.cmb2_element .ui-icon-arrow-2-n-s{background-position:-128px -32px}.cmb2_element .ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.cmb2_element .ui-icon-arrow-2-e-w{background-position:-160px -32px}.cmb2_element .ui-icon-arrow-2-se-nw{background-position:-176px -32px}.cmb2_element .ui-icon-arrowstop-1-n{background-position:-192px -32px}.cmb2_element .ui-icon-arrowstop-1-e{background-position:-208px -32px}.cmb2_element .ui-icon-arrowstop-1-s{background-position:-224px -32px}.cmb2_element .ui-icon-arrowstop-1-w{background-position:-240px -32px}.cmb2_element .ui-icon-arrowthick-1-n{background-position:0 -48px}.cmb2_element .ui-icon-arrowthick-1-ne{background-position:-16px -48px}.cmb2_element .ui-icon-arrowthick-1-e{background-position:-32px -48px}.cmb2_element .ui-icon-arrowthick-1-se{background-position:-48px -48px}.cmb2_element .ui-icon-arrowthick-1-s{background-position:-64px -48px}.cmb2_element .ui-icon-arrowthick-1-sw{background-position:-80px -48px}.cmb2_element .ui-icon-arrowthick-1-w{background-position:-96px -48px}.cmb2_element .ui-icon-arrowthick-1-nw{background-position:-112px -48px}.cmb2_element .ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.cmb2_element .ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.cmb2_element .ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.cmb2_element .ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.cmb2_element .ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.cmb2_element .ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.cmb2_element .ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.cmb2_element .ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.cmb2_element .ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.cmb2_element .ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.cmb2_element .ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.cmb2_element .ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.cmb2_element .ui-icon-arrowreturn-1-w{background-position:-64px -64px}.cmb2_element .ui-icon-arrowreturn-1-n{background-position:-80px -64px}.cmb2_element .ui-icon-arrowreturn-1-e{background-position:-96px -64px}.cmb2_element .ui-icon-arrowreturn-1-s{background-position:-112px -64px}.cmb2_element .ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.cmb2_element .ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.cmb2_element .ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.cmb2_element .ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.cmb2_element .ui-icon-arrow-4{background-position:0 -80px}.cmb2_element .ui-icon-arrow-4-diag{background-position:-16px -80px}.cmb2_element .ui-icon-extlink{background-position:-32px -80px}.cmb2_element .ui-icon-newwin{background-position:-48px -80px}.cmb2_element .ui-icon-refresh{background-position:-64px -80px}.cmb2_element .ui-icon-shuffle{background-position:-80px -80px}.cmb2_element .ui-icon-transfer-e-w{background-position:-96px -80px}.cmb2_element .ui-icon-transferthick-e-w{background-position:-112px -80px}.cmb2_element .ui-icon-folder-collapsed{background-position:0 -96px}.cmb2_element .ui-icon-folder-open{background-position:-16px -96px}.cmb2_element .ui-icon-document{background-position:-32px -96px}.cmb2_element .ui-icon-document-b{background-position:-48px -96px}.cmb2_element .ui-icon-note{background-position:-64px -96px}.cmb2_element .ui-icon-mail-closed{background-position:-80px -96px}.cmb2_element .ui-icon-mail-open{background-position:-96px -96px}.cmb2_element .ui-icon-suitcase{background-position:-112px -96px}.cmb2_element .ui-icon-comment{background-position:-128px -96px}.cmb2_element .ui-icon-person{background-position:-144px -96px}.cmb2_element .ui-icon-print{background-position:-160px -96px}.cmb2_element .ui-icon-trash{background-position:-176px -96px}.cmb2_element .ui-icon-locked{background-position:-192px -96px}.cmb2_element .ui-icon-unlocked{background-position:-208px -96px}.cmb2_element .ui-icon-bookmark{background-position:-224px -96px}.cmb2_element .ui-icon-tag{background-position:-240px -96px}.cmb2_element .ui-icon-home{background-position:0 -112px}.cmb2_element .ui-icon-flag{background-position:-16px -112px}.cmb2_element .ui-icon-calendar{background-position:-32px -112px}.cmb2_element .ui-icon-cart{background-position:-48px -112px}.cmb2_element .ui-icon-pencil{background-position:-64px -112px}.cmb2_element .ui-icon-clock{background-position:-80px -112px}.cmb2_element .ui-icon-disk{background-position:-96px -112px}.cmb2_element .ui-icon-calculator{background-position:-112px -112px}.cmb2_element .ui-icon-zoomin{background-position:-128px -112px}.cmb2_element .ui-icon-zoomout{background-position:-144px -112px}.cmb2_element .ui-icon-search{background-position:-160px -112px}.cmb2_element .ui-icon-wrench{background-position:-176px -112px}.cmb2_element .ui-icon-gear{background-position:-192px -112px}.cmb2_element .ui-icon-heart{background-position:-208px -112px}.cmb2_element .ui-icon-star{background-position:-224px -112px}.cmb2_element .ui-icon-link{background-position:-240px -112px}.cmb2_element .ui-icon-cancel{background-position:0 -128px}.cmb2_element .ui-icon-plus{background-position:-16px -128px}.cmb2_element .ui-icon-plusthick{background-position:-32px -128px}.cmb2_element .ui-icon-minus{background-position:-48px -128px}.cmb2_element .ui-icon-minusthick{background-position:-64px -128px}.cmb2_element .ui-icon-close{background-position:-80px -128px}.cmb2_element .ui-icon-closethick{background-position:-96px -128px}.cmb2_element .ui-icon-key{background-position:-112px -128px}.cmb2_element .ui-icon-lightbulb{background-position:-128px -128px}.cmb2_element .ui-icon-scissors{background-position:-144px -128px}.cmb2_element .ui-icon-clipboard{background-position:-160px -128px}.cmb2_element .ui-icon-copy{background-position:-176px -128px}.cmb2_element .ui-icon-contact{background-position:-192px -128px}.cmb2_element .ui-icon-image{background-position:-208px -128px}.cmb2_element .ui-icon-video{background-position:-224px -128px}.cmb2_element .ui-icon-script{background-position:-240px -128px}.cmb2_element .ui-icon-alert{background-position:0 -144px}.cmb2_element .ui-icon-info{background-position:-16px -144px}.cmb2_element .ui-icon-notice{background-position:-32px -144px}.cmb2_element .ui-icon-help{background-position:-48px -144px}.cmb2_element .ui-icon-check{background-position:-64px -144px}.cmb2_element .ui-icon-bullet{background-position:-80px -144px}.cmb2_element .ui-icon-radio-off{background-position:-96px -144px}.cmb2_element .ui-icon-radio-on{background-position:-112px -144px}.cmb2_element .ui-icon-pin-w{background-position:-128px -144px}.cmb2_element .ui-icon-pin-s{background-position:-144px -144px}.cmb2_element .ui-icon-play{background-position:0 -160px}.cmb2_element .ui-icon-pause{background-position:-16px -160px}.cmb2_element .ui-icon-seek-next{background-position:-32px -160px}.cmb2_element .ui-icon-seek-prev{background-position:-48px -160px}.cmb2_element .ui-icon-seek-end{background-position:-64px -160px}.cmb2_element .ui-icon-seek-first,.cmb2_element .ui-icon-seek-start{background-position:-80px -160px}.cmb2_element .ui-icon-stop{background-position:-96px -160px}.cmb2_element .ui-icon-eject{background-position:-112px -160px}.cmb2_element .ui-icon-volume-off{background-position:-128px -160px}.cmb2_element .ui-icon-volume-on{background-position:-144px -160px}.cmb2_element .ui-icon-power{background-position:0 -176px}.cmb2_element .ui-icon-signal-diag{background-position:-16px -176px}.cmb2_element .ui-icon-signal{background-position:-32px -176px}.cmb2_element .ui-icon-battery-0{background-position:-48px -176px}.cmb2_element .ui-icon-battery-1{background-position:-64px -176px}.cmb2_element .ui-icon-battery-2{background-position:-80px -176px}.cmb2_element .ui-icon-battery-3{background-position:-96px -176px}.cmb2_element .ui-icon-circle-plus{background-position:0 -192px}.cmb2_element .ui-icon-circle-minus{background-position:-16px -192px}.cmb2_element .ui-icon-circle-close{background-position:-32px -192px}.cmb2_element .ui-icon-circle-triangle-e{background-position:-48px -192px}.cmb2_element .ui-icon-circle-triangle-s{background-position:-64px -192px}.cmb2_element .ui-icon-circle-triangle-w{background-position:-80px -192px}.cmb2_element .ui-icon-circle-triangle-n{background-position:-96px -192px}.cmb2_element .ui-icon-circle-arrow-e{background-position:-112px -192px}.cmb2_element .ui-icon-circle-arrow-s{background-position:-128px -192px}.cmb2_element .ui-icon-circle-arrow-w{background-position:-144px -192px}.cmb2_element .ui-icon-circle-arrow-n{background-position:-160px -192px}.cmb2_element .ui-icon-circle-zoomin{background-position:-176px -192px}.cmb2_element .ui-icon-circle-zoomout{background-position:-192px -192px}.cmb2_element .ui-icon-circle-check{background-position:-208px -192px}.cmb2_element .ui-icon-circlesmall-plus{background-position:0 -208px}.cmb2_element .ui-icon-circlesmall-minus{background-position:-16px -208px}.cmb2_element .ui-icon-circlesmall-close{background-position:-32px -208px}.cmb2_element .ui-icon-squaresmall-plus{background-position:-48px -208px}.cmb2_element .ui-icon-squaresmall-minus{background-position:-64px -208px}.cmb2_element .ui-icon-squaresmall-close{background-position:-80px -208px}.cmb2_element .ui-icon-grip-dotted-vertical{background-position:0 -224px}.cmb2_element .ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.cmb2_element .ui-icon-grip-solid-vertical{background-position:-32px -224px}.cmb2_element .ui-icon-grip-solid-horizontal{background-position:-48px -224px}.cmb2_element .ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.cmb2_element .ui-icon-grip-diagonal-se{background-position:-80px -224px}.cmb2_element .ui-corner-all,.cmb2_element .ui-corner-left,.cmb2_element .ui-corner-tl,.cmb2_element .ui-corner-top{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;-khtml-border-top-left-radius:4px;border-top-left-radius:4px}.cmb2_element .ui-corner-all,.cmb2_element .ui-corner-right,.cmb2_element .ui-corner-top,.cmb2_element .ui-corner-tr{-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;-khtml-border-top-right-radius:4px;border-top-right-radius:4px}.cmb2_element .ui-corner-all,.cmb2_element .ui-corner-bl,.cmb2_element .ui-corner-bottom,.cmb2_element .ui-corner-left{-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;-khtml-border-bottom-left-radius:4px;border-bottom-left-radius:4px}.cmb2_element .ui-corner-all,.cmb2_element .ui-corner-bottom,.cmb2_element .ui-corner-br,.cmb2_element .ui-corner-right{-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;-khtml-border-bottom-right-radius:4px;border-bottom-right-radius:4px}.cmb2_element .ui-widget-overlay{background:#aaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.cmb2_element .ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}.cmb2_element .ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.cmb2_element .ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.cmb2_element .ui-datepicker .ui-datepicker-next,.cmb2_element .ui-datepicker .ui-datepicker-prev{position:absolute;top:2px;width:1.8em;height:1.8em}.cmb2_element .ui-datepicker .ui-datepicker-next-hover,.cmb2_element .ui-datepicker .ui-datepicker-prev-hover{top:1px}.cmb2_element .ui-datepicker .ui-datepicker-prev{left:2px}.cmb2_element .ui-datepicker .ui-datepicker-next{right:2px}.cmb2_element .ui-datepicker .ui-datepicker-prev-hover{left:1px}.cmb2_element .ui-datepicker .ui-datepicker-next-hover{right:1px}.cmb2_element .ui-datepicker .ui-datepicker-next span,.cmb2_element .ui-datepicker .ui-datepicker-prev span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.cmb2_element .ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.cmb2_element .ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.cmb2_element .ui-datepicker select.ui-datepicker-month-year{width:100%}.cmb2_element .ui-datepicker select.ui-datepicker-month,.cmb2_element .ui-datepicker select.ui-datepicker-year{width:49%}.cmb2_element .ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.cmb2_element .ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:700;border:0}.cmb2_element .ui-datepicker td{border:0;padding:1px}.cmb2_element .ui-datepicker td a,.cmb2_element .ui-datepicker td span{display:block;padding:.2em;text-align:right;text-decoration:none}.cmb2_element .ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.cmb2_element .ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em;width:auto;overflow:visible}.cmb2_element .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.cmb2_element .ui-datepicker.ui-datepicker-multi{width:auto}.cmb2_element .ui-datepicker-multi .ui-datepicker-group{float:left}.cmb2_element .ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.cmb2_element .ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.cmb2_element .ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.cmb2_element .ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.cmb2_element .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.cmb2_element .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.cmb2_element .ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.cmb2_element .ui-datepicker-row-break{clear:both;width:100%;font-size:0}.cmb2_element .ui-datepicker-rtl{direction:rtl}.cmb2_element .ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.cmb2_element .ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.cmb2_element .ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.cmb2_element .ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.cmb2_element .ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.cmb2_element .ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.cmb2_element .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.cmb2_element .ui-datepicker-rtl .ui-datepicker-group{float:right}.cmb2_element .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.cmb2_element .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.cmb2_element .ui-datepicker-cover{display:none;display:block;position:absolute;z-index:-1;filter:mask();top:-4px;left:-4px;width:200px;height:200px} \ No newline at end of file diff --git a/css/style.scss b/css/cmb2.scss similarity index 87% rename from css/style.scss rename to css/cmb2.scss index fa2d0935f..a2166f6bb 100644 --- a/css/style.scss +++ b/css/cmb2.scss @@ -2,31 +2,31 @@ * CMB Styling */ -table.cmb_metabox { +table.cmb2_metabox { clear: both; } -table.cmb_metabox > tr:first-of-type > td, -table.cmb_metabox > tr:first-of-type > th, -table.cmb_metabox tbody > tr:first-of-type > td, -table.cmb_metabox tbody > tr:first-of-type > th, -.post-php table.cmb_metabox .cmb-nested-table td, -.post-new-php table.cmb_metabox .cmb-nested-table td, -.post-php table.cmb_metabox .repeatable-group th, -.post-new-php table.cmb_metabox .repeatable-group th, -.post-php table.cmb_metabox .repeatable-group:first-of-type, -.post-new-php table.cmb_metabox .repeatable-group:first-of-type { +table.cmb2_metabox > tr:first-of-type > td, +table.cmb2_metabox > tr:first-of-type > th, +table.cmb2_metabox tbody > tr:first-of-type > td, +table.cmb2_metabox tbody > tr:first-of-type > th, +.post-php table.cmb2_metabox .cmb-nested-table td, +.post-new-php table.cmb2_metabox .cmb-nested-table td, +.post-php table.cmb2_metabox .repeatable-group th, +.post-new-php table.cmb2_metabox .repeatable-group th, +.post-php table.cmb2_metabox .repeatable-group:first-of-type, +.post-new-php table.cmb2_metabox .repeatable-group:first-of-type { border: 0; } -.post-php table.cmb_metabox td, -.post-new-php table.cmb_metabox td, -.post-php table.cmb_metabox th, -.post-new-php table.cmb_metabox th, -.post-php table.cmb_metabox .repeatable-group, -.post-new-php table.cmb_metabox .repeatable-group, -.post-php table.cmb_metabox .repeatable-group, -.post-new-php table.cmb_metabox .repeatable-group { +.post-php table.cmb2_metabox td, +.post-new-php table.cmb2_metabox td, +.post-php table.cmb2_metabox th, +.post-new-php table.cmb2_metabox th, +.post-php table.cmb2_metabox .repeatable-group, +.post-new-php table.cmb2_metabox .repeatable-group, +.post-php table.cmb2_metabox .repeatable-group, +.post-new-php table.cmb2_metabox .repeatable-group { border-top: 1px solid #E9E9E9; } @@ -46,7 +46,7 @@ table.cmb_metabox tbody > tr:first-of-type > th, font-size: 1.2em; } - .cmb_upload_button { + .cmb2_upload_button { float: right; } @@ -61,32 +61,32 @@ table.cmb_metabox tbody > tr:first-of-type > th, border-bottom: 1px solid #ddd; } -.post-php table.cmb_metabox th, .post-new-php table.cmb_metabox th { +.post-php table.cmb2_metabox th, .post-new-php table.cmb2_metabox th { text-align: right; font-weight:bold; } -.post-php table.cmb_metabox table th, .post-new-php table.cmb_metabox table th { +.post-php table.cmb2_metabox table th, .post-new-php table.cmb2_metabox table th { text-align: left; } -table.cmb_metabox th label { +table.cmb2_metabox th label { margin-top:5px; display:block } -p.cmb_metabox_description { +p.cmb2_metabox_description { color: #AAA; font-style: italic; margin: 2px 0 !important } -span.cmb_metabox_description { +span.cmb2_metabox_description { color: #AAA; font-style: italic } -table.cmb_metabox { +table.cmb2_metabox { input, textarea { font-size:14px; @@ -97,32 +97,32 @@ table.cmb_metabox { width: 97%; } - textarea.cmb_textarea_code { + textarea.cmb2_textarea_code { font-family: Consolas,Monaco,monospace; line-height: 16px; } - input.cmb_text_small { + input.cmb2_text_small { width: 100px; margin-right: 15px } - input.cmb_timepicker { + input.cmb2_timepicker { width: 100px; margin-right: 15px } - input.cmb_text_money { + input.cmb2_text_money { width: 90px; margin-right: 15px } - input.cmb_text_medium { + input.cmb2_text_medium { width: 230px; margin-right: 15px } - input.cmb_upload_file { + input.cmb2_upload_file { width: 65%; } @@ -152,12 +152,12 @@ table.cmb_metabox { } -.cmb_metabox_title { +.cmb2_metabox_title { margin: 0 0 5px 0; padding: 5px 0 0 0; } -.edit-tags-php .cmb_metabox_title, .profile-php .cmb_metabox_title, .user-edit-php .cmb_metabox_title { +.edit-tags-php .cmb2_metabox_title, .profile-php .cmb2_metabox_title, .user-edit-php .cmb2_metabox_title { margin-left: -10px; } @@ -169,37 +169,37 @@ table.cmb_metabox { padding-right: 18px } -table.cmb_metabox input[type="radio"] { +table.cmb2_metabox input[type="radio"] { margin: 0 5px 0 0; padding: 0 } -table.cmb_metabox input[type="checkbox"] { +table.cmb2_metabox input[type="checkbox"] { margin: 0 5px 0 0; padding: 0 } -table.cmb_metabox .mceLayout { +table.cmb2_metabox .mceLayout { border:1px solid #DFDFDF !important } -table.cmb_metabox .mceIframeContainer { +table.cmb2_metabox .mceIframeContainer { background:#FFF } -table.cmb_metabox .meta_mce { +table.cmb2_metabox .meta_mce { width:97% } -table.cmb_metabox .meta_mce textarea { +table.cmb2_metabox .meta_mce textarea { width:100% } -table.cmb_metabox .cmb_media_status { +table.cmb2_metabox .cmb2_media_status { margin: 10px 0 0 0 } -table.cmb_metabox .cmb_media_status .img_status { +table.cmb2_metabox .cmb2_media_status .img_status { clear: none; float: left; display: inline-block; @@ -207,18 +207,18 @@ table.cmb_metabox .cmb_media_status .img_status { width: auto; } -table.cmb_metabox .cmb-type-file_list .cmb_media_status .img_status { +table.cmb2_metabox .cmb-type-file_list .cmb2_media_status .img_status { clear: none; float: left; margin-right: 10px; width: auto; } -table.cmb_metabox .cmb_media_status .img_status, table.cmb_metabox .cmb_media_status .embed_status { +table.cmb2_metabox .cmb2_media_status .img_status, table.cmb2_metabox .cmb2_media_status .embed_status { position: relative; } -table.cmb_metabox .cmb_media_status .img_status img, table.cmb_metabox .cmb_media_status .embed_status { +table.cmb2_metabox .cmb2_media_status .img_status img, table.cmb2_metabox .cmb2_media_status .embed_status { border:1px solid #DFDFDF; background: #FAFAFA; max-width:350px; @@ -227,12 +227,12 @@ table.cmb_metabox .cmb_media_status .img_status img, table.cmb_metabox .cmb_medi border-radius: 2px } -table.cmb_metabox .cmb_media_status .embed_status { +table.cmb2_metabox .cmb2_media_status .embed_status { float: left; max-width:800px } -table.cmb_metabox .cmb_media_status .img_status .cmb_remove_file_button, table.cmb_metabox .cmb_media_status .embed_status .cmb_remove_file_button { +table.cmb2_metabox .cmb2_media_status .img_status .cmb2_remove_file_button, table.cmb2_metabox .cmb2_media_status .embed_status .cmb2_remove_file_button { text-indent: -9999px; background: url(../images/ico-delete.png); width: 16px; @@ -242,14 +242,14 @@ table.cmb_metabox .cmb_media_status .img_status .cmb_remove_file_button, table.c left: -5px } -table.cmb_metabox .attach_list li { +table.cmb2_metabox .attach_list li { clear: both; display: inline-block; margin-bottom: 25px; width: 100%; } -table.cmb_metabox .attach_list li img { +table.cmb2_metabox .attach_list li img { float: left; margin-right: 10px; cursor: move; @@ -258,56 +258,56 @@ table.cmb_metabox .attach_list li img { /** * Sidebar placement adjustments */ -.inner-sidebar table.cmb_metabox input[type=text], -#side-sortables table.cmb_metabox input[type=text], -table.cmb_metabox textarea { +.inner-sidebar table.cmb2_metabox input[type=text], +#side-sortables table.cmb2_metabox input[type=text], +table.cmb2_metabox textarea { width: 95%; } -.inner-sidebar table.cmb_metabox .cmb_media_status .img_status img, -#side-sortables table.cmb_metabox .cmb_media_status .img_status img, -.inner-sidebar table.cmb_metabox .cmb_media_status .embed_status img, -#side-sortables table.cmb_metabox .cmb_media_status .embed_status img { +.inner-sidebar table.cmb2_metabox .cmb2_media_status .img_status img, +#side-sortables table.cmb2_metabox .cmb2_media_status .img_status img, +.inner-sidebar table.cmb2_metabox .cmb2_media_status .embed_status img, +#side-sortables table.cmb2_metabox .cmb2_media_status .embed_status img { width: 90%; } -.inner-sidebar table.cmb_metabox label, -#side-sortables table.cmb_metabox label { +.inner-sidebar table.cmb2_metabox label, +#side-sortables table.cmb2_metabox label { display: block; font-weight: bold; padding: 0 0 5px; } -.inner-sidebar table.cmb_metabox .cmb_list label, -#side-sortables table.cmb_metabox .cmb_list label { +.inner-sidebar table.cmb2_metabox .cmb2_list label, +#side-sortables table.cmb2_metabox .cmb2_list label { display: inline; font-weight: normal; } -.inner-sidebar table.cmb_metabox .cmb_metabox_description, -#side-sortables table.cmb_metabox .cmb_metabox_description { +.inner-sidebar table.cmb2_metabox .cmb2_metabox_description, +#side-sortables table.cmb2_metabox .cmb2_metabox_description { display: block; padding: 7px 0 0; } -.inner-sidebar table.cmb_metabox .cmb_metabox_title, -#side-sortables table.cmb_metabox .cmb_metabox_title { +.inner-sidebar table.cmb2_metabox .cmb2_metabox_title, +#side-sortables table.cmb2_metabox .cmb2_metabox_title { font-size: 1.2em; font-style: italic; } -.postbox table.cmb_metabox .cmb-spinner { +.postbox table.cmb2_metabox .cmb-spinner { float: left; } /** * Color picker */ -table.cmb_metabox .wp-color-result, table.cmb_metabox .wp-picker-input-wrap { +table.cmb2_metabox .wp-color-result, table.cmb2_metabox .wp-picker-input-wrap { vertical-align: middle; } -table.cmb_metabox .wp-color-result, table.cmb_metabox .wp-picker-container { +table.cmb2_metabox .wp-color-result, table.cmb2_metabox .wp-picker-container { margin: 0 10px 0 0; } @@ -357,7 +357,7 @@ div.time-picker li.selected { * * http://docs.jquery.com/UI/Theming/API */ -.cmb_element { +.cmb2_element { .ui-helper-hidden { display: none; } .ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); } .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } diff --git a/css/style.css b/css/style.css deleted file mode 100644 index 40e5a5c64..000000000 --- a/css/style.css +++ /dev/null @@ -1,1589 +0,0 @@ -/** - * CMB Styling - */ -/* line 5, style.scss */ -table.cmb_metabox { - clear: both; -} - -/* line 9, style.scss */ -table.cmb_metabox > tr:first-of-type > td, -table.cmb_metabox > tr:first-of-type > th, -table.cmb_metabox tbody > tr:first-of-type > td, -table.cmb_metabox tbody > tr:first-of-type > th, -.post-php table.cmb_metabox .cmb-nested-table td, -.post-new-php table.cmb_metabox .cmb-nested-table td, -.post-php table.cmb_metabox .repeatable-group th, -.post-new-php table.cmb_metabox .repeatable-group th, -.post-php table.cmb_metabox .repeatable-group:first-of-type, -.post-new-php table.cmb_metabox .repeatable-group:first-of-type { - border: 0; -} - -/* line 22, style.scss */ -.post-php table.cmb_metabox td, -.post-new-php table.cmb_metabox td, -.post-php table.cmb_metabox th, -.post-new-php table.cmb_metabox th, -.post-php table.cmb_metabox .repeatable-group, -.post-new-php table.cmb_metabox .repeatable-group, -.post-php table.cmb_metabox .repeatable-group, -.post-new-php table.cmb_metabox .repeatable-group { - border-top: 1px solid #E9E9E9; -} - -/* line 33, style.scss */ -.empty-row.hidden { - display: none; -} - -/* line 39, style.scss */ -.repeatable-group th { - padding: 5px; -} -/* line 43, style.scss */ -.repeatable-group .shift-rows { - text-decoration: none; - margin-right: 5px; - font-size: 1.2em; -} -/* line 49, style.scss */ -.repeatable-group .cmb_upload_button { - float: right; -} - -/* line 54, style.scss */ -#poststuff .repeatable-group h2 { - margin: 0; -} - -/* line 58, style.scss */ -.cmb-group-title h4 { - font-size: 1.2em; - font-weight: 500; - border-bottom: 1px solid #ddd; -} - -/* line 64, style.scss */ -.post-php table.cmb_metabox th, .post-new-php table.cmb_metabox th { - text-align: right; - font-weight: bold; -} - -/* line 69, style.scss */ -.post-php table.cmb_metabox table th, .post-new-php table.cmb_metabox table th { - text-align: left; -} - -/* line 73, style.scss */ -table.cmb_metabox th label { - margin-top: 5px; - display: block; -} - -/* line 78, style.scss */ -p.cmb_metabox_description { - color: #AAA; - font-style: italic; - margin: 2px 0 !important; -} - -/* line 84, style.scss */ -span.cmb_metabox_description { - color: #AAA; - font-style: italic; -} - -/* line 91, style.scss */ -table.cmb_metabox input, table.cmb_metabox textarea { - font-size: 14px; - padding: 5px; -} -/* line 96, style.scss */ -table.cmb_metabox input[type=text], table.cmb_metabox textarea { - width: 97%; -} -/* line 100, style.scss */ -table.cmb_metabox textarea.cmb_textarea_code { - font-family: Consolas,Monaco,monospace; - line-height: 16px; -} -/* line 105, style.scss */ -table.cmb_metabox input.cmb_text_small { - width: 100px; - margin-right: 15px; -} -/* line 110, style.scss */ -table.cmb_metabox input.cmb_timepicker { - width: 100px; - margin-right: 15px; -} -/* line 115, style.scss */ -table.cmb_metabox input.cmb_text_money { - width: 90px; - margin-right: 15px; -} -/* line 120, style.scss */ -table.cmb_metabox input.cmb_text_medium { - width: 230px; - margin-right: 15px; -} -/* line 125, style.scss */ -table.cmb_metabox input.cmb_upload_file { - width: 65%; -} -/* line 129, style.scss */ -table.cmb_metabox input.ed_button { - padding: 2px 4px; -} -/* line 133, style.scss */ -table.cmb_metabox li { - font-size: 14px; - margin: 1px 0 5px 0; - line-height: 16px; -} -/* line 139, style.scss */ -table.cmb_metabox ul { - padding-top: 5px; - margin: 0; -} -/* line 144, style.scss */ -table.cmb_metabox select { - font-size: 14px; - margin-top: 3px; -} -/* line 149, style.scss */ -table.cmb_metabox input:focus, table.cmb_metabox textarea:focus { - background: #fffff8; -} - -/* line 155, style.scss */ -.cmb_metabox_title { - margin: 0 0 5px 0; - padding: 5px 0 0 0; -} - -/* line 160, style.scss */ -.edit-tags-php .cmb_metabox_title, .profile-php .cmb_metabox_title, .user-edit-php .cmb_metabox_title { - margin-left: -10px; -} - -/* line 164, style.scss */ -.cmb-inline ul { - padding: 4px 0 0 0; -} - -/* line 168, style.scss */ -.cmb-inline li { - display: inline-block; - padding-right: 18px; -} - -/* line 172, style.scss */ -table.cmb_metabox input[type="radio"] { - margin: 0 5px 0 0; - padding: 0; -} - -/* line 177, style.scss */ -table.cmb_metabox input[type="checkbox"] { - margin: 0 5px 0 0; - padding: 0; -} - -/* line 182, style.scss */ -table.cmb_metabox .mceLayout { - border: 1px solid #dfdfdf !important; -} - -/* line 186, style.scss */ -table.cmb_metabox .mceIframeContainer { - background: white; -} - -/* line 190, style.scss */ -table.cmb_metabox .meta_mce { - width: 97%; -} - -/* line 194, style.scss */ -table.cmb_metabox .meta_mce textarea { - width: 100%; -} - -/* line 198, style.scss */ -table.cmb_metabox .cmb_media_status { - margin: 10px 0 0 0; -} - -/* line 202, style.scss */ -table.cmb_metabox .cmb_media_status .img_status { - clear: none; - float: left; - display: inline-block; - margin-right: 10px; - width: auto; -} - -/* line 210, style.scss */ -table.cmb_metabox .cmb-type-file_list .cmb_media_status .img_status { - clear: none; - float: left; - margin-right: 10px; - width: auto; -} - -/* line 217, style.scss */ -table.cmb_metabox .cmb_media_status .img_status, table.cmb_metabox .cmb_media_status .embed_status { - position: relative; -} - -/* line 221, style.scss */ -table.cmb_metabox .cmb_media_status .img_status img, table.cmb_metabox .cmb_media_status .embed_status { - border: 1px solid #DFDFDF; - background: #FAFAFA; - max-width: 350px; - padding: 5px; - -moz-border-radius: 2px; - border-radius: 2px; -} - -/* line 230, style.scss */ -table.cmb_metabox .cmb_media_status .embed_status { - float: left; - max-width: 800px; -} - -/* line 235, style.scss */ -table.cmb_metabox .cmb_media_status .img_status .cmb_remove_file_button, table.cmb_metabox .cmb_media_status .embed_status .cmb_remove_file_button { - text-indent: -9999px; - background: url(../images/ico-delete.png); - width: 16px; - height: 16px; - position: absolute; - top: -5px; - left: -5px; -} - -/* line 245, style.scss */ -table.cmb_metabox .attach_list li { - clear: both; - display: inline-block; - margin-bottom: 25px; - width: 100%; -} - -/* line 252, style.scss */ -table.cmb_metabox .attach_list li img { - float: left; - margin-right: 10px; - cursor: move; -} - -/** - * Sidebar placement adjustments - */ -/* line 261, style.scss */ -.inner-sidebar table.cmb_metabox input[type=text], -#side-sortables table.cmb_metabox input[type=text], -table.cmb_metabox textarea { - width: 95%; -} - -/* line 267, style.scss */ -.inner-sidebar table.cmb_metabox .cmb_media_status .img_status img, -#side-sortables table.cmb_metabox .cmb_media_status .img_status img, -.inner-sidebar table.cmb_metabox .cmb_media_status .embed_status img, -#side-sortables table.cmb_metabox .cmb_media_status .embed_status img { - width: 90%; -} - -/* line 274, style.scss */ -.inner-sidebar table.cmb_metabox label, -#side-sortables table.cmb_metabox label { - display: block; - font-weight: bold; - padding: 0 0 5px; -} - -/* line 281, style.scss */ -.inner-sidebar table.cmb_metabox .cmb_list label, -#side-sortables table.cmb_metabox .cmb_list label { - display: inline; - font-weight: normal; -} - -/* line 287, style.scss */ -.inner-sidebar table.cmb_metabox .cmb_metabox_description, -#side-sortables table.cmb_metabox .cmb_metabox_description { - display: block; - padding: 7px 0 0; -} - -/* line 293, style.scss */ -.inner-sidebar table.cmb_metabox .cmb_metabox_title, -#side-sortables table.cmb_metabox .cmb_metabox_title { - font-size: 1.2em; - font-style: italic; -} - -/* line 299, style.scss */ -.postbox table.cmb_metabox .cmb-spinner { - float: left; -} - -/** - * Color picker - */ -/* line 306, style.scss */ -table.cmb_metabox .wp-color-result, table.cmb_metabox .wp-picker-input-wrap { - vertical-align: middle; -} - -/* line 310, style.scss */ -table.cmb_metabox .wp-color-result, table.cmb_metabox .wp-picker-container { - margin: 0 10px 0 0; -} - -/** - * Timepicker - */ -/* line 318, style.scss */ -div.time-picker { - position: absolute; - height: 191px; - width: 6em; - /* needed for IE */ - overflow: auto; - background: #fff; - border: 1px solid #aaa; - z-index: 99; - margin: 0; -} - -/* line 329, style.scss */ -div.time-picker-12hours { - width: 8em; - /* needed for IE */ -} - -/* line 333, style.scss */ -div.time-picker ul { - list-style-type: none; - margin: 0; - padding: 0; -} - -/* line 339, style.scss */ -div.time-picker li { - cursor: pointer; - height: 10px; - font: 14px/1 Helvetica, Arial, sans-serif; - padding: 4px 3px; -} - -/* line 346, style.scss */ -div.time-picker li.selected { - background: #0063CE; - color: #fff; -} - -/** - * jQuery UI CSS Framework 1.8.16 - * - * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Theming/API - */ -/* line 361, style.scss */ -.cmb_element .ui-helper-hidden { - display: none; -} -/* line 362, style.scss */ -.cmb_element .ui-helper-hidden-accessible { - position: absolute !important; - clip: rect(1px 1px 1px 1px); - clip: rect(1px, 1px, 1px, 1px); -} -/* line 363, style.scss */ -.cmb_element .ui-helper-reset { - margin: 0; - padding: 0; - border: 0; - outline: 0; - line-height: 1.3; - text-decoration: none; - font-size: 100%; - list-style: none; -} -/* line 364, style.scss */ -.cmb_element .ui-helper-clearfix:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; -} -/* line 365, style.scss */ -.cmb_element .ui-helper-clearfix { - display: inline-block; -} -/* line 366, style.scss */ -.cmb_element * html .ui-helper-clearfix { - height: 1%; -} -/* line 367, style.scss */ -.cmb_element .ui-helper-clearfix { - display: block; -} -/* line 368, style.scss */ -.cmb_element .ui-helper-zfix { - width: 100%; - height: 100%; - top: 0; - left: 0; - position: absolute; - opacity: 0; - filter: Alpha(Opacity=0); -} -/* line 369, style.scss */ -.cmb_element .ui-state-disabled { - cursor: default !important; -} -/* line 370, style.scss */ -.cmb_element .ui-icon { - display: block; - text-indent: -99999px; - overflow: hidden; - background-repeat: no-repeat; -} -/* line 371, style.scss */ -.cmb_element .ui-widget-overlay { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; -} -/* line 372, style.scss */ -.cmb_element .ui-widget { - font-family: Verdana,Arial,sans-serif; - font-size: 1.1em; -} -/* line 374, style.scss */ -.cmb_element .ui-widget .ui-widget { - font-size: 1em; -} -/* line 375, style.scss */ -.cmb_element .ui-widget input, .cmb_element .ui-widget select, .cmb_element .ui-widget textarea, .cmb_element .ui-widget button { - font-family: Verdana,Arial,sans-serif; - font-size: 1em; -} -/* line 377, style.scss */ -.cmb_element .ui-widget-content { - border: 1px solid #aaaaaa; - background: white url(../images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; - color: #222222; -} -/* line 378, style.scss */ -.cmb_element .ui-widget-content a { - color: #222222; -} -/* line 379, style.scss */ -.cmb_element .ui-widget-header { - border: 1px solid #aaaaaa; - background: #cccccc url(../images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; - color: #222222; - font-weight: bold; -} -/* line 380, style.scss */ -.cmb_element .ui-widget-header a { - color: #222222; -} -/* line 381, style.scss */ -.cmb_element .ui-state-default, .cmb_element .ui-widget-content .ui-state-default, .cmb_element .ui-widget-header .ui-state-default { - border: 1px solid #d3d3d3; - background: #e6e6e6 url(../images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; - font-weight: normal; - color: #555555; -} -/* line 382, style.scss */ -.cmb_element .ui-state-default a, .cmb_element .ui-state-default a:link, .cmb_element .ui-state-default a:visited { - color: #555555; - text-decoration: none; -} -/* line 383, style.scss */ -.cmb_element .ui-state-hover, .cmb_element .ui-widget-content .ui-state-hover, .cmb_element .ui-widget-header .ui-state-hover, .cmb_element .ui-state-focus, .cmb_element .ui-widget-content .ui-state-focus, .cmb_element .ui-widget-header .ui-state-focus { - border: 1px solid #999999; - background: #dadada url(../images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; - font-weight: normal; - color: #212121; -} -/* line 384, style.scss */ -.cmb_element .ui-state-hover a, .cmb_element .ui-state-hover a:hover { - color: #212121; - text-decoration: none; -} -/* line 385, style.scss */ -.cmb_element .ui-state-active, .cmb_element .ui-widget-content .ui-state-active, .cmb_element .ui-widget-header .ui-state-active { - border: 1px solid #aaaaaa; - background: white url(../images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; - font-weight: normal; - color: #212121; -} -/* line 386, style.scss */ -.cmb_element .ui-state-active a, .cmb_element .ui-state-active a:link, .cmb_element .ui-state-active a:visited { - color: #212121; - text-decoration: none; -} -/* line 387, style.scss */ -.cmb_element .ui-widget :active { - outline: none; -} -/* line 388, style.scss */ -.cmb_element .ui-state-highlight, .cmb_element .ui-widget-content .ui-state-highlight, .cmb_element .ui-widget-header .ui-state-highlight { - border: 1px solid #fcefa1; - background: #fbf9ee url(../images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; - color: #363636; -} -/* line 389, style.scss */ -.cmb_element .ui-state-highlight a, .cmb_element .ui-widget-content .ui-state-highlight a, .cmb_element .ui-widget-header .ui-state-highlight a { - color: #363636; -} -/* line 390, style.scss */ -.cmb_element .ui-state-error, .cmb_element .ui-widget-content .ui-state-error, .cmb_element .ui-widget-header .ui-state-error { - border: 1px solid #cd0a0a; - background: #fef1ec url(../images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; - color: #cd0a0a; -} -/* line 391, style.scss */ -.cmb_element .ui-state-error a, .cmb_element .ui-widget-content .ui-state-error a, .cmb_element .ui-widget-header .ui-state-error a { - color: #cd0a0a; -} -/* line 392, style.scss */ -.cmb_element .ui-state-error-text, .cmb_element .ui-widget-content .ui-state-error-text, .cmb_element .ui-widget-header .ui-state-error-text { - color: #cd0a0a; -} -/* line 393, style.scss */ -.cmb_element .ui-priority-primary, .cmb_element .ui-widget-content .ui-priority-primary, .cmb_element .ui-widget-header .ui-priority-primary { - font-weight: bold; -} -/* line 394, style.scss */ -.cmb_element .ui-priority-secondary, .cmb_element .ui-widget-content .ui-priority-secondary, .cmb_element .ui-widget-header .ui-priority-secondary { - opacity: .7; - filter: Alpha(Opacity=70); - font-weight: normal; -} -/* line 395, style.scss */ -.cmb_element .ui-state-disabled, .cmb_element .ui-widget-content .ui-state-disabled, .cmb_element .ui-widget-header .ui-state-disabled { - opacity: .35; - filter: Alpha(Opacity=35); - background-image: none; -} -/* line 396, style.scss */ -.cmb_element .ui-icon { - width: 16px; - height: 16px; - background-image: url(../images/ui-icons_222222_256x240.png); -} -/* line 397, style.scss */ -.cmb_element .ui-widget-content .ui-icon { - background-image: url(../images/ui-icons_222222_256x240.png); -} -/* line 398, style.scss */ -.cmb_element .ui-widget-header .ui-icon { - background-image: url(../images/ui-icons_222222_256x240.png); -} -/* line 399, style.scss */ -.cmb_element .ui-state-default .ui-icon { - background-image: url(../images/ui-icons_888888_256x240.png); -} -/* line 400, style.scss */ -.cmb_element .ui-state-hover .ui-icon, .cmb_element .ui-state-focus .ui-icon { - background-image: url(../images/ui-icons_454545_256x240.png); -} -/* line 401, style.scss */ -.cmb_element .ui-state-active .ui-icon { - background-image: url(../images/ui-icons_454545_256x240.png); -} -/* line 402, style.scss */ -.cmb_element .ui-state-highlight .ui-icon { - background-image: url(../images/ui-icons_2e83ff_256x240.png); -} -/* line 403, style.scss */ -.cmb_element .ui-state-error .ui-icon, .cmb_element .ui-state-error-text .ui-icon { - background-image: url(../images/ui-icons_cd0a0a_256x240.png); -} -/* line 404, style.scss */ -.cmb_element .ui-icon-carat-1-n { - background-position: 0 0; -} -/* line 405, style.scss */ -.cmb_element .ui-icon-carat-1-ne { - background-position: -16px 0; -} -/* line 406, style.scss */ -.cmb_element .ui-icon-carat-1-e { - background-position: -32px 0; -} -/* line 407, style.scss */ -.cmb_element .ui-icon-carat-1-se { - background-position: -48px 0; -} -/* line 408, style.scss */ -.cmb_element .ui-icon-carat-1-s { - background-position: -64px 0; -} -/* line 409, style.scss */ -.cmb_element .ui-icon-carat-1-sw { - background-position: -80px 0; -} -/* line 410, style.scss */ -.cmb_element .ui-icon-carat-1-w { - background-position: -96px 0; -} -/* line 411, style.scss */ -.cmb_element .ui-icon-carat-1-nw { - background-position: -112px 0; -} -/* line 412, style.scss */ -.cmb_element .ui-icon-carat-2-n-s { - background-position: -128px 0; -} -/* line 413, style.scss */ -.cmb_element .ui-icon-carat-2-e-w { - background-position: -144px 0; -} -/* line 414, style.scss */ -.cmb_element .ui-icon-triangle-1-n { - background-position: 0 -16px; -} -/* line 415, style.scss */ -.cmb_element .ui-icon-triangle-1-ne { - background-position: -16px -16px; -} -/* line 416, style.scss */ -.cmb_element .ui-icon-triangle-1-e { - background-position: -32px -16px; -} -/* line 417, style.scss */ -.cmb_element .ui-icon-triangle-1-se { - background-position: -48px -16px; -} -/* line 418, style.scss */ -.cmb_element .ui-icon-triangle-1-s { - background-position: -64px -16px; -} -/* line 419, style.scss */ -.cmb_element .ui-icon-triangle-1-sw { - background-position: -80px -16px; -} -/* line 420, style.scss */ -.cmb_element .ui-icon-triangle-1-w { - background-position: -96px -16px; -} -/* line 421, style.scss */ -.cmb_element .ui-icon-triangle-1-nw { - background-position: -112px -16px; -} -/* line 422, style.scss */ -.cmb_element .ui-icon-triangle-2-n-s { - background-position: -128px -16px; -} -/* line 423, style.scss */ -.cmb_element .ui-icon-triangle-2-e-w { - background-position: -144px -16px; -} -/* line 424, style.scss */ -.cmb_element .ui-icon-arrow-1-n { - background-position: 0 -32px; -} -/* line 425, style.scss */ -.cmb_element .ui-icon-arrow-1-ne { - background-position: -16px -32px; -} -/* line 426, style.scss */ -.cmb_element .ui-icon-arrow-1-e { - background-position: -32px -32px; -} -/* line 427, style.scss */ -.cmb_element .ui-icon-arrow-1-se { - background-position: -48px -32px; -} -/* line 428, style.scss */ -.cmb_element .ui-icon-arrow-1-s { - background-position: -64px -32px; -} -/* line 429, style.scss */ -.cmb_element .ui-icon-arrow-1-sw { - background-position: -80px -32px; -} -/* line 430, style.scss */ -.cmb_element .ui-icon-arrow-1-w { - background-position: -96px -32px; -} -/* line 431, style.scss */ -.cmb_element .ui-icon-arrow-1-nw { - background-position: -112px -32px; -} -/* line 432, style.scss */ -.cmb_element .ui-icon-arrow-2-n-s { - background-position: -128px -32px; -} -/* line 433, style.scss */ -.cmb_element .ui-icon-arrow-2-ne-sw { - background-position: -144px -32px; -} -/* line 434, style.scss */ -.cmb_element .ui-icon-arrow-2-e-w { - background-position: -160px -32px; -} -/* line 435, style.scss */ -.cmb_element .ui-icon-arrow-2-se-nw { - background-position: -176px -32px; -} -/* line 436, style.scss */ -.cmb_element .ui-icon-arrowstop-1-n { - background-position: -192px -32px; -} -/* line 437, style.scss */ -.cmb_element .ui-icon-arrowstop-1-e { - background-position: -208px -32px; -} -/* line 438, style.scss */ -.cmb_element .ui-icon-arrowstop-1-s { - background-position: -224px -32px; -} -/* line 439, style.scss */ -.cmb_element .ui-icon-arrowstop-1-w { - background-position: -240px -32px; -} -/* line 440, style.scss */ -.cmb_element .ui-icon-arrowthick-1-n { - background-position: 0 -48px; -} -/* line 441, style.scss */ -.cmb_element .ui-icon-arrowthick-1-ne { - background-position: -16px -48px; -} -/* line 442, style.scss */ -.cmb_element .ui-icon-arrowthick-1-e { - background-position: -32px -48px; -} -/* line 443, style.scss */ -.cmb_element .ui-icon-arrowthick-1-se { - background-position: -48px -48px; -} -/* line 444, style.scss */ -.cmb_element .ui-icon-arrowthick-1-s { - background-position: -64px -48px; -} -/* line 445, style.scss */ -.cmb_element .ui-icon-arrowthick-1-sw { - background-position: -80px -48px; -} -/* line 446, style.scss */ -.cmb_element .ui-icon-arrowthick-1-w { - background-position: -96px -48px; -} -/* line 447, style.scss */ -.cmb_element .ui-icon-arrowthick-1-nw { - background-position: -112px -48px; -} -/* line 448, style.scss */ -.cmb_element .ui-icon-arrowthick-2-n-s { - background-position: -128px -48px; -} -/* line 449, style.scss */ -.cmb_element .ui-icon-arrowthick-2-ne-sw { - background-position: -144px -48px; -} -/* line 450, style.scss */ -.cmb_element .ui-icon-arrowthick-2-e-w { - background-position: -160px -48px; -} -/* line 451, style.scss */ -.cmb_element .ui-icon-arrowthick-2-se-nw { - background-position: -176px -48px; -} -/* line 452, style.scss */ -.cmb_element .ui-icon-arrowthickstop-1-n { - background-position: -192px -48px; -} -/* line 453, style.scss */ -.cmb_element .ui-icon-arrowthickstop-1-e { - background-position: -208px -48px; -} -/* line 454, style.scss */ -.cmb_element .ui-icon-arrowthickstop-1-s { - background-position: -224px -48px; -} -/* line 455, style.scss */ -.cmb_element .ui-icon-arrowthickstop-1-w { - background-position: -240px -48px; -} -/* line 456, style.scss */ -.cmb_element .ui-icon-arrowreturnthick-1-w { - background-position: 0 -64px; -} -/* line 457, style.scss */ -.cmb_element .ui-icon-arrowreturnthick-1-n { - background-position: -16px -64px; -} -/* line 458, style.scss */ -.cmb_element .ui-icon-arrowreturnthick-1-e { - background-position: -32px -64px; -} -/* line 459, style.scss */ -.cmb_element .ui-icon-arrowreturnthick-1-s { - background-position: -48px -64px; -} -/* line 460, style.scss */ -.cmb_element .ui-icon-arrowreturn-1-w { - background-position: -64px -64px; -} -/* line 461, style.scss */ -.cmb_element .ui-icon-arrowreturn-1-n { - background-position: -80px -64px; -} -/* line 462, style.scss */ -.cmb_element .ui-icon-arrowreturn-1-e { - background-position: -96px -64px; -} -/* line 463, style.scss */ -.cmb_element .ui-icon-arrowreturn-1-s { - background-position: -112px -64px; -} -/* line 464, style.scss */ -.cmb_element .ui-icon-arrowrefresh-1-w { - background-position: -128px -64px; -} -/* line 465, style.scss */ -.cmb_element .ui-icon-arrowrefresh-1-n { - background-position: -144px -64px; -} -/* line 466, style.scss */ -.cmb_element .ui-icon-arrowrefresh-1-e { - background-position: -160px -64px; -} -/* line 467, style.scss */ -.cmb_element .ui-icon-arrowrefresh-1-s { - background-position: -176px -64px; -} -/* line 468, style.scss */ -.cmb_element .ui-icon-arrow-4 { - background-position: 0 -80px; -} -/* line 469, style.scss */ -.cmb_element .ui-icon-arrow-4-diag { - background-position: -16px -80px; -} -/* line 470, style.scss */ -.cmb_element .ui-icon-extlink { - background-position: -32px -80px; -} -/* line 471, style.scss */ -.cmb_element .ui-icon-newwin { - background-position: -48px -80px; -} -/* line 472, style.scss */ -.cmb_element .ui-icon-refresh { - background-position: -64px -80px; -} -/* line 473, style.scss */ -.cmb_element .ui-icon-shuffle { - background-position: -80px -80px; -} -/* line 474, style.scss */ -.cmb_element .ui-icon-transfer-e-w { - background-position: -96px -80px; -} -/* line 475, style.scss */ -.cmb_element .ui-icon-transferthick-e-w { - background-position: -112px -80px; -} -/* line 476, style.scss */ -.cmb_element .ui-icon-folder-collapsed { - background-position: 0 -96px; -} -/* line 477, style.scss */ -.cmb_element .ui-icon-folder-open { - background-position: -16px -96px; -} -/* line 478, style.scss */ -.cmb_element .ui-icon-document { - background-position: -32px -96px; -} -/* line 479, style.scss */ -.cmb_element .ui-icon-document-b { - background-position: -48px -96px; -} -/* line 480, style.scss */ -.cmb_element .ui-icon-note { - background-position: -64px -96px; -} -/* line 481, style.scss */ -.cmb_element .ui-icon-mail-closed { - background-position: -80px -96px; -} -/* line 482, style.scss */ -.cmb_element .ui-icon-mail-open { - background-position: -96px -96px; -} -/* line 483, style.scss */ -.cmb_element .ui-icon-suitcase { - background-position: -112px -96px; -} -/* line 484, style.scss */ -.cmb_element .ui-icon-comment { - background-position: -128px -96px; -} -/* line 485, style.scss */ -.cmb_element .ui-icon-person { - background-position: -144px -96px; -} -/* line 486, style.scss */ -.cmb_element .ui-icon-print { - background-position: -160px -96px; -} -/* line 487, style.scss */ -.cmb_element .ui-icon-trash { - background-position: -176px -96px; -} -/* line 488, style.scss */ -.cmb_element .ui-icon-locked { - background-position: -192px -96px; -} -/* line 489, style.scss */ -.cmb_element .ui-icon-unlocked { - background-position: -208px -96px; -} -/* line 490, style.scss */ -.cmb_element .ui-icon-bookmark { - background-position: -224px -96px; -} -/* line 491, style.scss */ -.cmb_element .ui-icon-tag { - background-position: -240px -96px; -} -/* line 492, style.scss */ -.cmb_element .ui-icon-home { - background-position: 0 -112px; -} -/* line 493, style.scss */ -.cmb_element .ui-icon-flag { - background-position: -16px -112px; -} -/* line 494, style.scss */ -.cmb_element .ui-icon-calendar { - background-position: -32px -112px; -} -/* line 495, style.scss */ -.cmb_element .ui-icon-cart { - background-position: -48px -112px; -} -/* line 496, style.scss */ -.cmb_element .ui-icon-pencil { - background-position: -64px -112px; -} -/* line 497, style.scss */ -.cmb_element .ui-icon-clock { - background-position: -80px -112px; -} -/* line 498, style.scss */ -.cmb_element .ui-icon-disk { - background-position: -96px -112px; -} -/* line 499, style.scss */ -.cmb_element .ui-icon-calculator { - background-position: -112px -112px; -} -/* line 500, style.scss */ -.cmb_element .ui-icon-zoomin { - background-position: -128px -112px; -} -/* line 501, style.scss */ -.cmb_element .ui-icon-zoomout { - background-position: -144px -112px; -} -/* line 502, style.scss */ -.cmb_element .ui-icon-search { - background-position: -160px -112px; -} -/* line 503, style.scss */ -.cmb_element .ui-icon-wrench { - background-position: -176px -112px; -} -/* line 504, style.scss */ -.cmb_element .ui-icon-gear { - background-position: -192px -112px; -} -/* line 505, style.scss */ -.cmb_element .ui-icon-heart { - background-position: -208px -112px; -} -/* line 506, style.scss */ -.cmb_element .ui-icon-star { - background-position: -224px -112px; -} -/* line 507, style.scss */ -.cmb_element .ui-icon-link { - background-position: -240px -112px; -} -/* line 508, style.scss */ -.cmb_element .ui-icon-cancel { - background-position: 0 -128px; -} -/* line 509, style.scss */ -.cmb_element .ui-icon-plus { - background-position: -16px -128px; -} -/* line 510, style.scss */ -.cmb_element .ui-icon-plusthick { - background-position: -32px -128px; -} -/* line 511, style.scss */ -.cmb_element .ui-icon-minus { - background-position: -48px -128px; -} -/* line 512, style.scss */ -.cmb_element .ui-icon-minusthick { - background-position: -64px -128px; -} -/* line 513, style.scss */ -.cmb_element .ui-icon-close { - background-position: -80px -128px; -} -/* line 514, style.scss */ -.cmb_element .ui-icon-closethick { - background-position: -96px -128px; -} -/* line 515, style.scss */ -.cmb_element .ui-icon-key { - background-position: -112px -128px; -} -/* line 516, style.scss */ -.cmb_element .ui-icon-lightbulb { - background-position: -128px -128px; -} -/* line 517, style.scss */ -.cmb_element .ui-icon-scissors { - background-position: -144px -128px; -} -/* line 518, style.scss */ -.cmb_element .ui-icon-clipboard { - background-position: -160px -128px; -} -/* line 519, style.scss */ -.cmb_element .ui-icon-copy { - background-position: -176px -128px; -} -/* line 520, style.scss */ -.cmb_element .ui-icon-contact { - background-position: -192px -128px; -} -/* line 521, style.scss */ -.cmb_element .ui-icon-image { - background-position: -208px -128px; -} -/* line 522, style.scss */ -.cmb_element .ui-icon-video { - background-position: -224px -128px; -} -/* line 523, style.scss */ -.cmb_element .ui-icon-script { - background-position: -240px -128px; -} -/* line 524, style.scss */ -.cmb_element .ui-icon-alert { - background-position: 0 -144px; -} -/* line 525, style.scss */ -.cmb_element .ui-icon-info { - background-position: -16px -144px; -} -/* line 526, style.scss */ -.cmb_element .ui-icon-notice { - background-position: -32px -144px; -} -/* line 527, style.scss */ -.cmb_element .ui-icon-help { - background-position: -48px -144px; -} -/* line 528, style.scss */ -.cmb_element .ui-icon-check { - background-position: -64px -144px; -} -/* line 529, style.scss */ -.cmb_element .ui-icon-bullet { - background-position: -80px -144px; -} -/* line 530, style.scss */ -.cmb_element .ui-icon-radio-off { - background-position: -96px -144px; -} -/* line 531, style.scss */ -.cmb_element .ui-icon-radio-on { - background-position: -112px -144px; -} -/* line 532, style.scss */ -.cmb_element .ui-icon-pin-w { - background-position: -128px -144px; -} -/* line 533, style.scss */ -.cmb_element .ui-icon-pin-s { - background-position: -144px -144px; -} -/* line 534, style.scss */ -.cmb_element .ui-icon-play { - background-position: 0 -160px; -} -/* line 535, style.scss */ -.cmb_element .ui-icon-pause { - background-position: -16px -160px; -} -/* line 536, style.scss */ -.cmb_element .ui-icon-seek-next { - background-position: -32px -160px; -} -/* line 537, style.scss */ -.cmb_element .ui-icon-seek-prev { - background-position: -48px -160px; -} -/* line 538, style.scss */ -.cmb_element .ui-icon-seek-end { - background-position: -64px -160px; -} -/* line 539, style.scss */ -.cmb_element .ui-icon-seek-start { - background-position: -80px -160px; -} -/* line 540, style.scss */ -.cmb_element .ui-icon-seek-first { - background-position: -80px -160px; -} -/* line 541, style.scss */ -.cmb_element .ui-icon-stop { - background-position: -96px -160px; -} -/* line 542, style.scss */ -.cmb_element .ui-icon-eject { - background-position: -112px -160px; -} -/* line 543, style.scss */ -.cmb_element .ui-icon-volume-off { - background-position: -128px -160px; -} -/* line 544, style.scss */ -.cmb_element .ui-icon-volume-on { - background-position: -144px -160px; -} -/* line 545, style.scss */ -.cmb_element .ui-icon-power { - background-position: 0 -176px; -} -/* line 546, style.scss */ -.cmb_element .ui-icon-signal-diag { - background-position: -16px -176px; -} -/* line 547, style.scss */ -.cmb_element .ui-icon-signal { - background-position: -32px -176px; -} -/* line 548, style.scss */ -.cmb_element .ui-icon-battery-0 { - background-position: -48px -176px; -} -/* line 549, style.scss */ -.cmb_element .ui-icon-battery-1 { - background-position: -64px -176px; -} -/* line 550, style.scss */ -.cmb_element .ui-icon-battery-2 { - background-position: -80px -176px; -} -/* line 551, style.scss */ -.cmb_element .ui-icon-battery-3 { - background-position: -96px -176px; -} -/* line 552, style.scss */ -.cmb_element .ui-icon-circle-plus { - background-position: 0 -192px; -} -/* line 553, style.scss */ -.cmb_element .ui-icon-circle-minus { - background-position: -16px -192px; -} -/* line 554, style.scss */ -.cmb_element .ui-icon-circle-close { - background-position: -32px -192px; -} -/* line 555, style.scss */ -.cmb_element .ui-icon-circle-triangle-e { - background-position: -48px -192px; -} -/* line 556, style.scss */ -.cmb_element .ui-icon-circle-triangle-s { - background-position: -64px -192px; -} -/* line 557, style.scss */ -.cmb_element .ui-icon-circle-triangle-w { - background-position: -80px -192px; -} -/* line 558, style.scss */ -.cmb_element .ui-icon-circle-triangle-n { - background-position: -96px -192px; -} -/* line 559, style.scss */ -.cmb_element .ui-icon-circle-arrow-e { - background-position: -112px -192px; -} -/* line 560, style.scss */ -.cmb_element .ui-icon-circle-arrow-s { - background-position: -128px -192px; -} -/* line 561, style.scss */ -.cmb_element .ui-icon-circle-arrow-w { - background-position: -144px -192px; -} -/* line 562, style.scss */ -.cmb_element .ui-icon-circle-arrow-n { - background-position: -160px -192px; -} -/* line 563, style.scss */ -.cmb_element .ui-icon-circle-zoomin { - background-position: -176px -192px; -} -/* line 564, style.scss */ -.cmb_element .ui-icon-circle-zoomout { - background-position: -192px -192px; -} -/* line 565, style.scss */ -.cmb_element .ui-icon-circle-check { - background-position: -208px -192px; -} -/* line 566, style.scss */ -.cmb_element .ui-icon-circlesmall-plus { - background-position: 0 -208px; -} -/* line 567, style.scss */ -.cmb_element .ui-icon-circlesmall-minus { - background-position: -16px -208px; -} -/* line 568, style.scss */ -.cmb_element .ui-icon-circlesmall-close { - background-position: -32px -208px; -} -/* line 569, style.scss */ -.cmb_element .ui-icon-squaresmall-plus { - background-position: -48px -208px; -} -/* line 570, style.scss */ -.cmb_element .ui-icon-squaresmall-minus { - background-position: -64px -208px; -} -/* line 571, style.scss */ -.cmb_element .ui-icon-squaresmall-close { - background-position: -80px -208px; -} -/* line 572, style.scss */ -.cmb_element .ui-icon-grip-dotted-vertical { - background-position: 0 -224px; -} -/* line 573, style.scss */ -.cmb_element .ui-icon-grip-dotted-horizontal { - background-position: -16px -224px; -} -/* line 574, style.scss */ -.cmb_element .ui-icon-grip-solid-vertical { - background-position: -32px -224px; -} -/* line 575, style.scss */ -.cmb_element .ui-icon-grip-solid-horizontal { - background-position: -48px -224px; -} -/* line 576, style.scss */ -.cmb_element .ui-icon-gripsmall-diagonal-se { - background-position: -64px -224px; -} -/* line 577, style.scss */ -.cmb_element .ui-icon-grip-diagonal-se { - background-position: -80px -224px; -} -/* line 578, style.scss */ -.cmb_element .ui-corner-all, .cmb_element .ui-corner-top, .cmb_element .ui-corner-left, .cmb_element .ui-corner-tl { - -moz-border-radius-topleft: 4px; - -webkit-border-top-left-radius: 4px; - -khtml-border-top-left-radius: 4px; - border-top-left-radius: 4px; -} -/* line 579, style.scss */ -.cmb_element .ui-corner-all, .cmb_element .ui-corner-top, .cmb_element .ui-corner-right, .cmb_element .ui-corner-tr { - -moz-border-radius-topright: 4px; - -webkit-border-top-right-radius: 4px; - -khtml-border-top-right-radius: 4px; - border-top-right-radius: 4px; -} -/* line 580, style.scss */ -.cmb_element .ui-corner-all, .cmb_element .ui-corner-bottom, .cmb_element .ui-corner-left, .cmb_element .ui-corner-bl { - -moz-border-radius-bottomleft: 4px; - -webkit-border-bottom-left-radius: 4px; - -khtml-border-bottom-left-radius: 4px; - border-bottom-left-radius: 4px; -} -/* line 581, style.scss */ -.cmb_element .ui-corner-all, .cmb_element .ui-corner-bottom, .cmb_element .ui-corner-right, .cmb_element .ui-corner-br { - -moz-border-radius-bottomright: 4px; - -webkit-border-bottom-right-radius: 4px; - -khtml-border-bottom-right-radius: 4px; - border-bottom-right-radius: 4px; -} -/* line 582, style.scss */ -.cmb_element .ui-widget-overlay { - background: #aaaaaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; - opacity: .30; - filter: Alpha(Opacity=30); -} -/* line 583, style.scss */ -.cmb_element .ui-widget-shadow { - margin: -8px 0 0 -8px; - padding: 8px; - background: #aaaaaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; - opacity: .30; - filter: Alpha(Opacity=30); - -moz-border-radius: 8px; - -khtml-border-radius: 8px; - -webkit-border-radius: 8px; - border-radius: 8px; -} -/* line 584, style.scss */ -.cmb_element .ui-datepicker { - width: 17em; - padding: .2em .2em 0; - display: none; -} -/* line 585, style.scss */ -.cmb_element .ui-datepicker .ui-datepicker-header { - position: relative; - padding: .2em 0; -} -/* line 586, style.scss */ -.cmb_element .ui-datepicker .ui-datepicker-prev, .cmb_element .ui-datepicker .ui-datepicker-next { - position: absolute; - top: 2px; - width: 1.8em; - height: 1.8em; -} -/* line 587, style.scss */ -.cmb_element .ui-datepicker .ui-datepicker-prev-hover, .cmb_element .ui-datepicker .ui-datepicker-next-hover { - top: 1px; -} -/* line 588, style.scss */ -.cmb_element .ui-datepicker .ui-datepicker-prev { - left: 2px; -} -/* line 589, style.scss */ -.cmb_element .ui-datepicker .ui-datepicker-next { - right: 2px; -} -/* line 590, style.scss */ -.cmb_element .ui-datepicker .ui-datepicker-prev-hover { - left: 1px; -} -/* line 591, style.scss */ -.cmb_element .ui-datepicker .ui-datepicker-next-hover { - right: 1px; -} -/* line 592, style.scss */ -.cmb_element .ui-datepicker .ui-datepicker-prev span, .cmb_element .ui-datepicker .ui-datepicker-next span { - display: block; - position: absolute; - left: 50%; - margin-left: -8px; - top: 50%; - margin-top: -8px; -} -/* line 593, style.scss */ -.cmb_element .ui-datepicker .ui-datepicker-title { - margin: 0 2.3em; - line-height: 1.8em; - text-align: center; -} -/* line 594, style.scss */ -.cmb_element .ui-datepicker .ui-datepicker-title select { - font-size: 1em; - margin: 1px 0; -} -/* line 595, style.scss */ -.cmb_element .ui-datepicker select.ui-datepicker-month-year { - width: 100%; -} -/* line 596, style.scss */ -.cmb_element .ui-datepicker select.ui-datepicker-month, -.cmb_element .ui-datepicker select.ui-datepicker-year { - width: 49%; -} -/* line 598, style.scss */ -.cmb_element .ui-datepicker table { - width: 100%; - font-size: .9em; - border-collapse: collapse; - margin: 0 0 .4em; -} -/* line 599, style.scss */ -.cmb_element .ui-datepicker th { - padding: .7em .3em; - text-align: center; - font-weight: bold; - border: 0; -} -/* line 600, style.scss */ -.cmb_element .ui-datepicker td { - border: 0; - padding: 1px; -} -/* line 601, style.scss */ -.cmb_element .ui-datepicker td span, .cmb_element .ui-datepicker td a { - display: block; - padding: .2em; - text-align: right; - text-decoration: none; -} -/* line 602, style.scss */ -.cmb_element .ui-datepicker .ui-datepicker-buttonpane { - background-image: none; - margin: .7em 0 0 0; - padding: 0 .2em; - border-left: 0; - border-right: 0; - border-bottom: 0; -} -/* line 603, style.scss */ -.cmb_element .ui-datepicker .ui-datepicker-buttonpane button { - float: right; - margin: .5em .2em .4em; - cursor: pointer; - padding: .2em .6em .3em .6em; - width: auto; - overflow: visible; -} -/* line 604, style.scss */ -.cmb_element .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { - float: left; -} -/* line 605, style.scss */ -.cmb_element .ui-datepicker.ui-datepicker-multi { - width: auto; -} -/* line 606, style.scss */ -.cmb_element .ui-datepicker-multi .ui-datepicker-group { - float: left; -} -/* line 607, style.scss */ -.cmb_element .ui-datepicker-multi .ui-datepicker-group table { - width: 95%; - margin: 0 auto .4em; -} -/* line 608, style.scss */ -.cmb_element .ui-datepicker-multi-2 .ui-datepicker-group { - width: 50%; -} -/* line 609, style.scss */ -.cmb_element .ui-datepicker-multi-3 .ui-datepicker-group { - width: 33.3%; -} -/* line 610, style.scss */ -.cmb_element .ui-datepicker-multi-4 .ui-datepicker-group { - width: 25%; -} -/* line 611, style.scss */ -.cmb_element .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { - border-left-width: 0; -} -/* line 612, style.scss */ -.cmb_element .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { - border-left-width: 0; -} -/* line 613, style.scss */ -.cmb_element .ui-datepicker-multi .ui-datepicker-buttonpane { - clear: left; -} -/* line 614, style.scss */ -.cmb_element .ui-datepicker-row-break { - clear: both; - width: 100%; - font-size: 0em; -} -/* line 615, style.scss */ -.cmb_element .ui-datepicker-rtl { - direction: rtl; -} -/* line 617, style.scss */ -.cmb_element .ui-datepicker-rtl .ui-datepicker-prev { - right: 2px; - left: auto; -} -/* line 618, style.scss */ -.cmb_element .ui-datepicker-rtl .ui-datepicker-next { - left: 2px; - right: auto; -} -/* line 619, style.scss */ -.cmb_element .ui-datepicker-rtl .ui-datepicker-prev:hover { - right: 1px; - left: auto; -} -/* line 620, style.scss */ -.cmb_element .ui-datepicker-rtl .ui-datepicker-next:hover { - left: 1px; - right: auto; -} -/* line 621, style.scss */ -.cmb_element .ui-datepicker-rtl .ui-datepicker-buttonpane { - clear: right; -} -/* line 622, style.scss */ -.cmb_element .ui-datepicker-rtl .ui-datepicker-buttonpane button { - float: left; -} -/* line 623, style.scss */ -.cmb_element .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { - float: right; -} -/* line 624, style.scss */ -.cmb_element .ui-datepicker-rtl .ui-datepicker-group { - float: right; -} -/* line 625, style.scss */ -.cmb_element .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { - border-right-width: 0; - border-left-width: 1px; -} -/* line 626, style.scss */ -.cmb_element .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { - border-right-width: 0; - border-left-width: 1px; -} -/* line 628, style.scss */ -.cmb_element .ui-datepicker-cover { - display: none; - /*sorry for IE5*/ - display/**/: block; - /*sorry for IE5*/ - position: absolute; - /*must have*/ - z-index: -1; - /*must have*/ - filter: mask(); - /*must have*/ - top: -4px; - /*must have*/ - left: -4px; - /*must have*/ - width: 200px; - /*must have*/ - height: 200px; - /*must have*/ -} diff --git a/css/style.min.css b/css/style.min.css deleted file mode 100644 index 6810c53fd..000000000 --- a/css/style.min.css +++ /dev/null @@ -1 +0,0 @@ -table.cmb_metabox{clear:both}.post-new-php table.cmb_metabox .cmb-nested-table td,.post-new-php table.cmb_metabox .repeatable-group th,.post-new-php table.cmb_metabox .repeatable-group:first-of-type,.post-php table.cmb_metabox .cmb-nested-table td,.post-php table.cmb_metabox .repeatable-group th,.post-php table.cmb_metabox .repeatable-group:first-of-type,table.cmb_metabox tbody>tr:first-of-type>td,table.cmb_metabox tbody>tr:first-of-type>th,table.cmb_metabox>tr:first-of-type>td,table.cmb_metabox>tr:first-of-type>th{border:0}.post-new-php table.cmb_metabox .repeatable-group,.post-new-php table.cmb_metabox td,.post-new-php table.cmb_metabox th,.post-php table.cmb_metabox .repeatable-group,.post-php table.cmb_metabox td,.post-php table.cmb_metabox th{border-top:1px solid #E9E9E9}.empty-row.hidden{display:none}.repeatable-group th{padding:5px}.repeatable-group .shift-rows{text-decoration:none;margin-right:5px;font-size:1.2em}.repeatable-group .cmb_upload_button{float:right}#poststuff .repeatable-group h2{margin:0}.cmb-group-title h4{font-size:1.2em;font-weight:500;border-bottom:1px solid #ddd}.post-new-php table.cmb_metabox th,.post-php table.cmb_metabox th{text-align:right;font-weight:700}.post-new-php table.cmb_metabox table th,.post-php table.cmb_metabox table th{text-align:left}table.cmb_metabox th label{margin-top:5px;display:block}p.cmb_metabox_description{color:#AAA;font-style:italic;margin:2px 0!important}span.cmb_metabox_description{color:#AAA;font-style:italic}table.cmb_metabox input,table.cmb_metabox textarea{font-size:14px;padding:5px}table.cmb_metabox input[type=text],table.cmb_metabox textarea{width:97%}table.cmb_metabox textarea.cmb_textarea_code{font-family:Consolas,Monaco,monospace;line-height:16px}table.cmb_metabox input.cmb_text_small,table.cmb_metabox input.cmb_timepicker{width:100px;margin-right:15px}table.cmb_metabox input.cmb_text_money{width:90px;margin-right:15px}table.cmb_metabox input.cmb_text_medium{width:230px;margin-right:15px}table.cmb_metabox input.cmb_upload_file{width:65%}table.cmb_metabox input.ed_button{padding:2px 4px}table.cmb_metabox li{font-size:14px;margin:1px 0 5px;line-height:16px}table.cmb_metabox ul{padding-top:5px;margin:0}table.cmb_metabox select{font-size:14px;margin-top:3px}table.cmb_metabox input:focus,table.cmb_metabox textarea:focus{background:#fffff8}.cmb_metabox_title{margin:0 0 5px;padding:5px 0 0}.edit-tags-php .cmb_metabox_title,.profile-php .cmb_metabox_title,.user-edit-php .cmb_metabox_title{margin-left:-10px}.cmb-inline ul{padding:4px 0 0}.cmb-inline li{display:inline-block;padding-right:18px}table.cmb_metabox input[type=checkbox],table.cmb_metabox input[type=radio]{margin:0 5px 0 0;padding:0}table.cmb_metabox .mceLayout{border:1px solid #dfdfdf!important}table.cmb_metabox .mceIframeContainer{background:#fff}table.cmb_metabox .meta_mce{width:97%}table.cmb_metabox .meta_mce textarea{width:100%}table.cmb_metabox .cmb_media_status{margin:10px 0 0}table.cmb_metabox .cmb_media_status .img_status{clear:none;float:left;display:inline-block;margin-right:10px;width:auto}table.cmb_metabox .cmb-type-file_list .cmb_media_status .img_status{clear:none;float:left;margin-right:10px;width:auto}table.cmb_metabox .cmb_media_status .embed_status,table.cmb_metabox .cmb_media_status .img_status{position:relative}table.cmb_metabox .cmb_media_status .embed_status,table.cmb_metabox .cmb_media_status .img_status img{border:1px solid #DFDFDF;background:#FAFAFA;max-width:350px;padding:5px;-moz-border-radius:2px;border-radius:2px}table.cmb_metabox .cmb_media_status .embed_status{float:left;max-width:800px}table.cmb_metabox .cmb_media_status .embed_status .cmb_remove_file_button,table.cmb_metabox .cmb_media_status .img_status .cmb_remove_file_button{text-indent:-9999px;background:url(../images/ico-delete.png);width:16px;height:16px;position:absolute;top:-5px;left:-5px}table.cmb_metabox .attach_list li{clear:both;display:inline-block;margin-bottom:25px;width:100%}table.cmb_metabox .attach_list li img{float:left;margin-right:10px;cursor:move}#side-sortables table.cmb_metabox input[type=text],.inner-sidebar table.cmb_metabox input[type=text],table.cmb_metabox textarea{width:95%}#side-sortables table.cmb_metabox .cmb_media_status .embed_status img,#side-sortables table.cmb_metabox .cmb_media_status .img_status img,.inner-sidebar table.cmb_metabox .cmb_media_status .embed_status img,.inner-sidebar table.cmb_metabox .cmb_media_status .img_status img{width:90%}#side-sortables table.cmb_metabox label,.inner-sidebar table.cmb_metabox label{display:block;font-weight:700;padding:0 0 5px}#side-sortables table.cmb_metabox .cmb_list label,.inner-sidebar table.cmb_metabox .cmb_list label{display:inline;font-weight:400}#side-sortables table.cmb_metabox .cmb_metabox_description,.inner-sidebar table.cmb_metabox .cmb_metabox_description{display:block;padding:7px 0 0}#side-sortables table.cmb_metabox .cmb_metabox_title,.inner-sidebar table.cmb_metabox .cmb_metabox_title{font-size:1.2em;font-style:italic}.postbox table.cmb_metabox .cmb-spinner{float:left}table.cmb_metabox .wp-color-result,table.cmb_metabox .wp-picker-input-wrap{vertical-align:middle}table.cmb_metabox .wp-color-result,table.cmb_metabox .wp-picker-container{margin:0 10px 0 0}div.time-picker{position:absolute;height:191px;width:6em;overflow:auto;background:#fff;border:1px solid #aaa;z-index:99;margin:0}div.time-picker-12hours{width:8em}div.time-picker ul{list-style-type:none;margin:0;padding:0}div.time-picker li{cursor:pointer;height:10px;font:14px/1 Helvetica,Arial,sans-serif;padding:4px 3px}div.time-picker li.selected{background:#0063CE;color:#fff}.cmb_element .ui-helper-hidden{display:none}.cmb_element .ui-helper-hidden-accessible{position:absolute!important;clip:rect(1px 1px 1px 1px);clip:rect(1px,1px,1px,1px)}.cmb_element .ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.cmb_element .ui-helper-clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}.cmb_element * html .ui-helper-clearfix{height:1%}.cmb_element .ui-helper-clearfix{display:block}.cmb_element .ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.cmb_element .ui-state-disabled{cursor:default!important}.cmb_element .ui-icon{display:block;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.cmb_element .ui-widget-overlay{position:absolute;top:0;left:0;width:100%;height:100%}.cmb_element .ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}.cmb_element .ui-widget .ui-widget{font-size:1em}.cmb_element .ui-widget button,.cmb_element .ui-widget input,.cmb_element .ui-widget select,.cmb_element .ui-widget textarea{font-family:Verdana,Arial,sans-serif;font-size:1em}.cmb_element .ui-widget-content{border:1px solid #aaa;background:#fff url(../images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x;color:#222}.cmb_element .ui-widget-content a{color:#222}.cmb_element .ui-widget-header{border:1px solid #aaa;background:#ccc url(../images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x;color:#222;font-weight:700}.cmb_element .ui-widget-header a{color:#222}.cmb_element .ui-state-default,.cmb_element .ui-widget-content .ui-state-default,.cmb_element .ui-widget-header .ui-state-default{border:1px solid #d3d3d3;background:#e6e6e6 url(../images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x;font-weight:400;color:#555}.cmb_element .ui-state-default a,.cmb_element .ui-state-default a:link,.cmb_element .ui-state-default a:visited{color:#555;text-decoration:none}.cmb_element .ui-state-focus,.cmb_element .ui-state-hover,.cmb_element .ui-widget-content .ui-state-focus,.cmb_element .ui-widget-content .ui-state-hover,.cmb_element .ui-widget-header .ui-state-focus,.cmb_element .ui-widget-header .ui-state-hover{border:1px solid #999;background:#dadada url(../images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x;font-weight:400;color:#212121}.cmb_element .ui-state-hover a,.cmb_element .ui-state-hover a:hover{color:#212121;text-decoration:none}.cmb_element .ui-state-active,.cmb_element .ui-widget-content .ui-state-active,.cmb_element .ui-widget-header .ui-state-active{border:1px solid #aaa;background:#fff url(../images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x;font-weight:400;color:#212121}.cmb_element .ui-state-active a,.cmb_element .ui-state-active a:link,.cmb_element .ui-state-active a:visited{color:#212121;text-decoration:none}.cmb_element .ui-widget :active{outline:0}.cmb_element .ui-state-highlight,.cmb_element .ui-widget-content .ui-state-highlight,.cmb_element .ui-widget-header .ui-state-highlight{border:1px solid #fcefa1;background:#fbf9ee url(../images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x;color:#363636}.cmb_element .ui-state-highlight a,.cmb_element .ui-widget-content .ui-state-highlight a,.cmb_element .ui-widget-header .ui-state-highlight a{color:#363636}.cmb_element .ui-state-error,.cmb_element .ui-widget-content .ui-state-error,.cmb_element .ui-widget-header .ui-state-error{border:1px solid #cd0a0a;background:#fef1ec url(../images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x;color:#cd0a0a}.cmb_element .ui-state-error a,.cmb_element .ui-state-error-text,.cmb_element .ui-widget-content .ui-state-error a,.cmb_element .ui-widget-content .ui-state-error-text,.cmb_element .ui-widget-header .ui-state-error a,.cmb_element .ui-widget-header .ui-state-error-text{color:#cd0a0a}.cmb_element .ui-priority-primary,.cmb_element .ui-widget-content .ui-priority-primary,.cmb_element .ui-widget-header .ui-priority-primary{font-weight:700}.cmb_element .ui-priority-secondary,.cmb_element .ui-widget-content .ui-priority-secondary,.cmb_element .ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:400}.cmb_element .ui-state-disabled,.cmb_element .ui-widget-content .ui-state-disabled,.cmb_element .ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.cmb_element .ui-icon{width:16px;height:16px;background-image:url(../images/ui-icons_222222_256x240.png)}.cmb_element .ui-widget-content .ui-icon,.cmb_element .ui-widget-header .ui-icon{background-image:url(../images/ui-icons_222222_256x240.png)}.cmb_element .ui-state-default .ui-icon{background-image:url(../images/ui-icons_888888_256x240.png)}.cmb_element .ui-state-active .ui-icon,.cmb_element .ui-state-focus .ui-icon,.cmb_element .ui-state-hover .ui-icon{background-image:url(../images/ui-icons_454545_256x240.png)}.cmb_element .ui-state-highlight .ui-icon{background-image:url(../images/ui-icons_2e83ff_256x240.png)}.cmb_element .ui-state-error .ui-icon,.cmb_element .ui-state-error-text .ui-icon{background-image:url(../images/ui-icons_cd0a0a_256x240.png)}.cmb_element .ui-icon-carat-1-n{background-position:0 0}.cmb_element .ui-icon-carat-1-ne{background-position:-16px 0}.cmb_element .ui-icon-carat-1-e{background-position:-32px 0}.cmb_element .ui-icon-carat-1-se{background-position:-48px 0}.cmb_element .ui-icon-carat-1-s{background-position:-64px 0}.cmb_element .ui-icon-carat-1-sw{background-position:-80px 0}.cmb_element .ui-icon-carat-1-w{background-position:-96px 0}.cmb_element .ui-icon-carat-1-nw{background-position:-112px 0}.cmb_element .ui-icon-carat-2-n-s{background-position:-128px 0}.cmb_element .ui-icon-carat-2-e-w{background-position:-144px 0}.cmb_element .ui-icon-triangle-1-n{background-position:0 -16px}.cmb_element .ui-icon-triangle-1-ne{background-position:-16px -16px}.cmb_element .ui-icon-triangle-1-e{background-position:-32px -16px}.cmb_element .ui-icon-triangle-1-se{background-position:-48px -16px}.cmb_element .ui-icon-triangle-1-s{background-position:-64px -16px}.cmb_element .ui-icon-triangle-1-sw{background-position:-80px -16px}.cmb_element .ui-icon-triangle-1-w{background-position:-96px -16px}.cmb_element .ui-icon-triangle-1-nw{background-position:-112px -16px}.cmb_element .ui-icon-triangle-2-n-s{background-position:-128px -16px}.cmb_element .ui-icon-triangle-2-e-w{background-position:-144px -16px}.cmb_element .ui-icon-arrow-1-n{background-position:0 -32px}.cmb_element .ui-icon-arrow-1-ne{background-position:-16px -32px}.cmb_element .ui-icon-arrow-1-e{background-position:-32px -32px}.cmb_element .ui-icon-arrow-1-se{background-position:-48px -32px}.cmb_element .ui-icon-arrow-1-s{background-position:-64px -32px}.cmb_element .ui-icon-arrow-1-sw{background-position:-80px -32px}.cmb_element .ui-icon-arrow-1-w{background-position:-96px -32px}.cmb_element .ui-icon-arrow-1-nw{background-position:-112px -32px}.cmb_element .ui-icon-arrow-2-n-s{background-position:-128px -32px}.cmb_element .ui-icon-arrow-2-ne-sw{background-position:-144px -32px}.cmb_element .ui-icon-arrow-2-e-w{background-position:-160px -32px}.cmb_element .ui-icon-arrow-2-se-nw{background-position:-176px -32px}.cmb_element .ui-icon-arrowstop-1-n{background-position:-192px -32px}.cmb_element .ui-icon-arrowstop-1-e{background-position:-208px -32px}.cmb_element .ui-icon-arrowstop-1-s{background-position:-224px -32px}.cmb_element .ui-icon-arrowstop-1-w{background-position:-240px -32px}.cmb_element .ui-icon-arrowthick-1-n{background-position:0 -48px}.cmb_element .ui-icon-arrowthick-1-ne{background-position:-16px -48px}.cmb_element .ui-icon-arrowthick-1-e{background-position:-32px -48px}.cmb_element .ui-icon-arrowthick-1-se{background-position:-48px -48px}.cmb_element .ui-icon-arrowthick-1-s{background-position:-64px -48px}.cmb_element .ui-icon-arrowthick-1-sw{background-position:-80px -48px}.cmb_element .ui-icon-arrowthick-1-w{background-position:-96px -48px}.cmb_element .ui-icon-arrowthick-1-nw{background-position:-112px -48px}.cmb_element .ui-icon-arrowthick-2-n-s{background-position:-128px -48px}.cmb_element .ui-icon-arrowthick-2-ne-sw{background-position:-144px -48px}.cmb_element .ui-icon-arrowthick-2-e-w{background-position:-160px -48px}.cmb_element .ui-icon-arrowthick-2-se-nw{background-position:-176px -48px}.cmb_element .ui-icon-arrowthickstop-1-n{background-position:-192px -48px}.cmb_element .ui-icon-arrowthickstop-1-e{background-position:-208px -48px}.cmb_element .ui-icon-arrowthickstop-1-s{background-position:-224px -48px}.cmb_element .ui-icon-arrowthickstop-1-w{background-position:-240px -48px}.cmb_element .ui-icon-arrowreturnthick-1-w{background-position:0 -64px}.cmb_element .ui-icon-arrowreturnthick-1-n{background-position:-16px -64px}.cmb_element .ui-icon-arrowreturnthick-1-e{background-position:-32px -64px}.cmb_element .ui-icon-arrowreturnthick-1-s{background-position:-48px -64px}.cmb_element .ui-icon-arrowreturn-1-w{background-position:-64px -64px}.cmb_element .ui-icon-arrowreturn-1-n{background-position:-80px -64px}.cmb_element .ui-icon-arrowreturn-1-e{background-position:-96px -64px}.cmb_element .ui-icon-arrowreturn-1-s{background-position:-112px -64px}.cmb_element .ui-icon-arrowrefresh-1-w{background-position:-128px -64px}.cmb_element .ui-icon-arrowrefresh-1-n{background-position:-144px -64px}.cmb_element .ui-icon-arrowrefresh-1-e{background-position:-160px -64px}.cmb_element .ui-icon-arrowrefresh-1-s{background-position:-176px -64px}.cmb_element .ui-icon-arrow-4{background-position:0 -80px}.cmb_element .ui-icon-arrow-4-diag{background-position:-16px -80px}.cmb_element .ui-icon-extlink{background-position:-32px -80px}.cmb_element .ui-icon-newwin{background-position:-48px -80px}.cmb_element .ui-icon-refresh{background-position:-64px -80px}.cmb_element .ui-icon-shuffle{background-position:-80px -80px}.cmb_element .ui-icon-transfer-e-w{background-position:-96px -80px}.cmb_element .ui-icon-transferthick-e-w{background-position:-112px -80px}.cmb_element .ui-icon-folder-collapsed{background-position:0 -96px}.cmb_element .ui-icon-folder-open{background-position:-16px -96px}.cmb_element .ui-icon-document{background-position:-32px -96px}.cmb_element .ui-icon-document-b{background-position:-48px -96px}.cmb_element .ui-icon-note{background-position:-64px -96px}.cmb_element .ui-icon-mail-closed{background-position:-80px -96px}.cmb_element .ui-icon-mail-open{background-position:-96px -96px}.cmb_element .ui-icon-suitcase{background-position:-112px -96px}.cmb_element .ui-icon-comment{background-position:-128px -96px}.cmb_element .ui-icon-person{background-position:-144px -96px}.cmb_element .ui-icon-print{background-position:-160px -96px}.cmb_element .ui-icon-trash{background-position:-176px -96px}.cmb_element .ui-icon-locked{background-position:-192px -96px}.cmb_element .ui-icon-unlocked{background-position:-208px -96px}.cmb_element .ui-icon-bookmark{background-position:-224px -96px}.cmb_element .ui-icon-tag{background-position:-240px -96px}.cmb_element .ui-icon-home{background-position:0 -112px}.cmb_element .ui-icon-flag{background-position:-16px -112px}.cmb_element .ui-icon-calendar{background-position:-32px -112px}.cmb_element .ui-icon-cart{background-position:-48px -112px}.cmb_element .ui-icon-pencil{background-position:-64px -112px}.cmb_element .ui-icon-clock{background-position:-80px -112px}.cmb_element .ui-icon-disk{background-position:-96px -112px}.cmb_element .ui-icon-calculator{background-position:-112px -112px}.cmb_element .ui-icon-zoomin{background-position:-128px -112px}.cmb_element .ui-icon-zoomout{background-position:-144px -112px}.cmb_element .ui-icon-search{background-position:-160px -112px}.cmb_element .ui-icon-wrench{background-position:-176px -112px}.cmb_element .ui-icon-gear{background-position:-192px -112px}.cmb_element .ui-icon-heart{background-position:-208px -112px}.cmb_element .ui-icon-star{background-position:-224px -112px}.cmb_element .ui-icon-link{background-position:-240px -112px}.cmb_element .ui-icon-cancel{background-position:0 -128px}.cmb_element .ui-icon-plus{background-position:-16px -128px}.cmb_element .ui-icon-plusthick{background-position:-32px -128px}.cmb_element .ui-icon-minus{background-position:-48px -128px}.cmb_element .ui-icon-minusthick{background-position:-64px -128px}.cmb_element .ui-icon-close{background-position:-80px -128px}.cmb_element .ui-icon-closethick{background-position:-96px -128px}.cmb_element .ui-icon-key{background-position:-112px -128px}.cmb_element .ui-icon-lightbulb{background-position:-128px -128px}.cmb_element .ui-icon-scissors{background-position:-144px -128px}.cmb_element .ui-icon-clipboard{background-position:-160px -128px}.cmb_element .ui-icon-copy{background-position:-176px -128px}.cmb_element .ui-icon-contact{background-position:-192px -128px}.cmb_element .ui-icon-image{background-position:-208px -128px}.cmb_element .ui-icon-video{background-position:-224px -128px}.cmb_element .ui-icon-script{background-position:-240px -128px}.cmb_element .ui-icon-alert{background-position:0 -144px}.cmb_element .ui-icon-info{background-position:-16px -144px}.cmb_element .ui-icon-notice{background-position:-32px -144px}.cmb_element .ui-icon-help{background-position:-48px -144px}.cmb_element .ui-icon-check{background-position:-64px -144px}.cmb_element .ui-icon-bullet{background-position:-80px -144px}.cmb_element .ui-icon-radio-off{background-position:-96px -144px}.cmb_element .ui-icon-radio-on{background-position:-112px -144px}.cmb_element .ui-icon-pin-w{background-position:-128px -144px}.cmb_element .ui-icon-pin-s{background-position:-144px -144px}.cmb_element .ui-icon-play{background-position:0 -160px}.cmb_element .ui-icon-pause{background-position:-16px -160px}.cmb_element .ui-icon-seek-next{background-position:-32px -160px}.cmb_element .ui-icon-seek-prev{background-position:-48px -160px}.cmb_element .ui-icon-seek-end{background-position:-64px -160px}.cmb_element .ui-icon-seek-first,.cmb_element .ui-icon-seek-start{background-position:-80px -160px}.cmb_element .ui-icon-stop{background-position:-96px -160px}.cmb_element .ui-icon-eject{background-position:-112px -160px}.cmb_element .ui-icon-volume-off{background-position:-128px -160px}.cmb_element .ui-icon-volume-on{background-position:-144px -160px}.cmb_element .ui-icon-power{background-position:0 -176px}.cmb_element .ui-icon-signal-diag{background-position:-16px -176px}.cmb_element .ui-icon-signal{background-position:-32px -176px}.cmb_element .ui-icon-battery-0{background-position:-48px -176px}.cmb_element .ui-icon-battery-1{background-position:-64px -176px}.cmb_element .ui-icon-battery-2{background-position:-80px -176px}.cmb_element .ui-icon-battery-3{background-position:-96px -176px}.cmb_element .ui-icon-circle-plus{background-position:0 -192px}.cmb_element .ui-icon-circle-minus{background-position:-16px -192px}.cmb_element .ui-icon-circle-close{background-position:-32px -192px}.cmb_element .ui-icon-circle-triangle-e{background-position:-48px -192px}.cmb_element .ui-icon-circle-triangle-s{background-position:-64px -192px}.cmb_element .ui-icon-circle-triangle-w{background-position:-80px -192px}.cmb_element .ui-icon-circle-triangle-n{background-position:-96px -192px}.cmb_element .ui-icon-circle-arrow-e{background-position:-112px -192px}.cmb_element .ui-icon-circle-arrow-s{background-position:-128px -192px}.cmb_element .ui-icon-circle-arrow-w{background-position:-144px -192px}.cmb_element .ui-icon-circle-arrow-n{background-position:-160px -192px}.cmb_element .ui-icon-circle-zoomin{background-position:-176px -192px}.cmb_element .ui-icon-circle-zoomout{background-position:-192px -192px}.cmb_element .ui-icon-circle-check{background-position:-208px -192px}.cmb_element .ui-icon-circlesmall-plus{background-position:0 -208px}.cmb_element .ui-icon-circlesmall-minus{background-position:-16px -208px}.cmb_element .ui-icon-circlesmall-close{background-position:-32px -208px}.cmb_element .ui-icon-squaresmall-plus{background-position:-48px -208px}.cmb_element .ui-icon-squaresmall-minus{background-position:-64px -208px}.cmb_element .ui-icon-squaresmall-close{background-position:-80px -208px}.cmb_element .ui-icon-grip-dotted-vertical{background-position:0 -224px}.cmb_element .ui-icon-grip-dotted-horizontal{background-position:-16px -224px}.cmb_element .ui-icon-grip-solid-vertical{background-position:-32px -224px}.cmb_element .ui-icon-grip-solid-horizontal{background-position:-48px -224px}.cmb_element .ui-icon-gripsmall-diagonal-se{background-position:-64px -224px}.cmb_element .ui-icon-grip-diagonal-se{background-position:-80px -224px}.cmb_element .ui-corner-all,.cmb_element .ui-corner-left,.cmb_element .ui-corner-tl,.cmb_element .ui-corner-top{-moz-border-radius-topleft:4px;-webkit-border-top-left-radius:4px;-khtml-border-top-left-radius:4px;border-top-left-radius:4px}.cmb_element .ui-corner-all,.cmb_element .ui-corner-right,.cmb_element .ui-corner-top,.cmb_element .ui-corner-tr{-moz-border-radius-topright:4px;-webkit-border-top-right-radius:4px;-khtml-border-top-right-radius:4px;border-top-right-radius:4px}.cmb_element .ui-corner-all,.cmb_element .ui-corner-bl,.cmb_element .ui-corner-bottom,.cmb_element .ui-corner-left{-moz-border-radius-bottomleft:4px;-webkit-border-bottom-left-radius:4px;-khtml-border-bottom-left-radius:4px;border-bottom-left-radius:4px}.cmb_element .ui-corner-all,.cmb_element .ui-corner-bottom,.cmb_element .ui-corner-br,.cmb_element .ui-corner-right{-moz-border-radius-bottomright:4px;-webkit-border-bottom-right-radius:4px;-khtml-border-bottom-right-radius:4px;border-bottom-right-radius:4px}.cmb_element .ui-widget-overlay{background:#aaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}.cmb_element .ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa url(../images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);-moz-border-radius:8px;-khtml-border-radius:8px;-webkit-border-radius:8px;border-radius:8px}.cmb_element .ui-datepicker{width:17em;padding:.2em .2em 0;display:none}.cmb_element .ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}.cmb_element .ui-datepicker .ui-datepicker-next,.cmb_element .ui-datepicker .ui-datepicker-prev{position:absolute;top:2px;width:1.8em;height:1.8em}.cmb_element .ui-datepicker .ui-datepicker-next-hover,.cmb_element .ui-datepicker .ui-datepicker-prev-hover{top:1px}.cmb_element .ui-datepicker .ui-datepicker-prev{left:2px}.cmb_element .ui-datepicker .ui-datepicker-next{right:2px}.cmb_element .ui-datepicker .ui-datepicker-prev-hover{left:1px}.cmb_element .ui-datepicker .ui-datepicker-next-hover{right:1px}.cmb_element .ui-datepicker .ui-datepicker-next span,.cmb_element .ui-datepicker .ui-datepicker-prev span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}.cmb_element .ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}.cmb_element .ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}.cmb_element .ui-datepicker select.ui-datepicker-month-year{width:100%}.cmb_element .ui-datepicker select.ui-datepicker-month,.cmb_element .ui-datepicker select.ui-datepicker-year{width:49%}.cmb_element .ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}.cmb_element .ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:700;border:0}.cmb_element .ui-datepicker td{border:0;padding:1px}.cmb_element .ui-datepicker td a,.cmb_element .ui-datepicker td span{display:block;padding:.2em;text-align:right;text-decoration:none}.cmb_element .ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}.cmb_element .ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em;width:auto;overflow:visible}.cmb_element .ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}.cmb_element .ui-datepicker.ui-datepicker-multi{width:auto}.cmb_element .ui-datepicker-multi .ui-datepicker-group{float:left}.cmb_element .ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}.cmb_element .ui-datepicker-multi-2 .ui-datepicker-group{width:50%}.cmb_element .ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}.cmb_element .ui-datepicker-multi-4 .ui-datepicker-group{width:25%}.cmb_element .ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.cmb_element .ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}.cmb_element .ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}.cmb_element .ui-datepicker-row-break{clear:both;width:100%;font-size:0}.cmb_element .ui-datepicker-rtl{direction:rtl}.cmb_element .ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}.cmb_element .ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}.cmb_element .ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}.cmb_element .ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}.cmb_element .ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}.cmb_element .ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}.cmb_element .ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.cmb_element .ui-datepicker-rtl .ui-datepicker-group{float:right}.cmb_element .ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.cmb_element .ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}.cmb_element .ui-datepicker-cover{display:none;display:block;position:absolute;z-index:-1;filter:mask();top:-4px;left:-4px;width:200px;height:200px} \ No newline at end of file diff --git a/example-functions.php b/example-functions.php index 807e286ac..4d01126f8 100644 --- a/example-functions.php +++ b/example-functions.php @@ -1,6 +1,6 @@ object_id ) ) { + return false; + } + return true; +} + +add_filter( 'cmb2_meta_boxes', 'cmb2_sample_metaboxes' ); /** * Define the metabox and field configurations. * * @param array $meta_boxes * @return array */ -function cmb_sample_metaboxes( array $meta_boxes ) { +function cmb2_sample_metaboxes( array $meta_boxes ) { // Start with an underscore to hide fields from custom fields list - $prefix = '_cmb_'; + $prefix = '_cmb2_'; /** * Sample metabox to demonstrate each field type included @@ -37,7 +52,7 @@ function cmb_sample_metaboxes( array $meta_boxes ) { 'desc' => __( 'field description (optional)', 'cmb' ), 'id' => $prefix . 'test_text', 'type' => 'text', - 'show_on_cb' => 'cmb_test_text_show_on_cb', // function should return a bool value + 'show_on_cb' => 'cmb2_hide_if_no_cats', // function should return a bool value // 'sanitization_cb' => 'my_custom_sanitization', // custom sanitization callback parameter // 'escape_cb' => 'my_custom_escaping', // custom escaping callback parameter // 'on_front' => false, // Optionally designate a field to wp-admin only @@ -381,7 +396,7 @@ function cmb_sample_metaboxes( array $meta_boxes ) { /** * Metabox for an options page. Will not be added automatically, but needs to be called with - * the `cmb_metabox_form` helper function. See wiki for more info. + * the `cmb2_metabox_form` helper function. See wiki for more info. */ $meta_boxes['options_page'] = array( 'id' => 'options_page', @@ -403,13 +418,13 @@ function cmb_sample_metaboxes( array $meta_boxes ) { return $meta_boxes; } -add_action( 'init', 'cmb_initialize_cmb_meta_boxes', 9999 ); +add_action( 'init', 'cmb2_initialize_meta_boxes', 9999 ); /** * Initialize the metabox class. */ -function cmb_initialize_cmb_meta_boxes() { +function cmb2_initialize_meta_boxes() { - if ( ! class_exists( 'cmb_Meta_Box' ) ) - require_once 'init.php'; + if ( ! class_exists( 'CMB2' ) ) + require_once 'cmb/init.php'; } diff --git a/helpers/cmb_Meta_Box_ajax.php b/includes/CMB2_Ajax.php similarity index 87% rename from helpers/cmb_Meta_Box_ajax.php rename to includes/CMB2_Ajax.php index 2753677de..44dd5e1c5 100644 --- a/helpers/cmb_Meta_Box_ajax.php +++ b/includes/CMB2_Ajax.php @@ -6,7 +6,7 @@ * * @since 0.9.5 */ -class cmb_Meta_Box_ajax { +class CMB2_Ajax { // A single instance of this class. public static $instance = null; @@ -20,7 +20,7 @@ class cmb_Meta_Box_ajax { /** * Creates or returns an instance of this class. * @since 0.1.0 - * @return cmb_Meta_Box_ajax A single instance of this class. + * @return CMB2_Ajax A single instance of this class. */ public static function get() { if ( self::$instance === null ) @@ -37,7 +37,7 @@ public static function get() { public function oembed_handler() { // verify our nonce - if ( ! ( isset( $_REQUEST['cmb_ajax_nonce'], $_REQUEST['oembed_url'] ) && wp_verify_nonce( $_REQUEST['cmb_ajax_nonce'], 'ajax_nonce' ) ) ) + if ( ! ( isset( $_REQUEST['cmb2_ajax_nonce'], $_REQUEST['oembed_url'] ) && wp_verify_nonce( $_REQUEST['cmb2_ajax_nonce'], 'ajax_nonce' ) ) ) die(); // sanitize our search string @@ -112,9 +112,9 @@ public static function get_oembed( $url, $object_id, $args = array() ) { self::$object_type = $args['object_type']; // Gets ombed cache from our object's meta (vs postmeta) - add_filter( 'get_post_metadata', array( 'cmb_Meta_Box_ajax', 'hijack_oembed_cache_get' ), 10, 3 ); + add_filter( 'get_post_metadata', array( 'CMB2_Ajax', 'hijack_oembed_cache_get' ), 10, 3 ); // Sets ombed cache in our object's meta (vs postmeta) - add_filter( 'update_post_metadata', array( 'cmb_Meta_Box_ajax', 'hijack_oembed_cache_set' ), 10, 4 ); + add_filter( 'update_post_metadata', array( 'CMB2_Ajax', 'hijack_oembed_cache_set' ), 10, 4 ); } @@ -131,7 +131,7 @@ public static function get_oembed( $url, $object_id, $args = array() ) { // Send back our embed if ( $check_embed && $check_embed != $fallback ) - return '
'. $check_embed .'

'. __( 'Remove Embed', 'cmb' ) .'

'; + return '
'. $check_embed .'

'. __( 'Remove Embed', 'cmb' ) .'

'; // Otherwise, send back error info that no oEmbeds were found return '

'. sprintf( __( 'No oEmbed Results Found for %s. View more info at', 'cmb' ), $fallback ) .' codex.wordpress.org/Embeds.

'; @@ -159,7 +159,7 @@ public static function hijack_oembed_cache_get( $check, $object_id, $meta_key ) // get cached data $data = 'options-page' === self::$object_type - ? cmb_Meta_Box::get_option( self::$object_id, self::$embed_args['cache_key'] ) + ? cmb2_options( self::$object_id )->get( self::$embed_args['cache_key'] ) : get_metadata( self::$object_type, self::$object_id, $meta_key, true ); return $data; @@ -195,13 +195,11 @@ public static function hijack_oembed_cache_set( $check, $object_id, $meta_key, $ */ public static function oembed_cache_set( $meta_key, $meta_value ) { // Cache the result to our metadata - if ( 'options-page' === self::$object_type ) { - // Set the option - cmb_Meta_Box::update_option( self::$object_id, self::$embed_args['cache_key'], $meta_value, array( 'type' => 'oembed' ) ); - // Save the option - cmb_Meta_Box::save_option( self::$object_id ); - } else { + if ( 'options-page' !== self::$object_type ) { update_metadata( self::$object_type, self::$object_id, $meta_key, $meta_value ); + } else { + // or site option + cmb2_options( self::$object_id )->update( self::$embed_args['cache_key'], $meta_value, true ); } } diff --git a/helpers/cmb_Meta_Box_field.php b/includes/CMB2_Field.php similarity index 87% rename from helpers/cmb_Meta_Box_field.php rename to includes/CMB2_Field.php index 33cf18301..5c7a5bf51 100644 --- a/helpers/cmb_Meta_Box_field.php +++ b/includes/CMB2_Field.php @@ -4,7 +4,7 @@ * CMB field class * @since 1.1.0 */ -class cmb_Meta_Box_field { +class CMB2_Field { /** * Metabox object id @@ -48,17 +48,17 @@ class cmb_Meta_Box_field { * @param array $group_field (optional) Group field object */ public function __construct( $field_args, $group_field = null ) { - $this->object_id = cmb_Meta_Box::get_object_id(); - $this->object_type = cmb_Meta_Box::get_object_type(); + $this->object_id = CMB2::get_object_id(); + $this->object_type = CMB2::get_object_type(); $this->group = ! empty( $group_field ) ? $group_field : false; $this->args = $this->_set_field_defaults( $field_args ); // Allow an override for the field's value - // (assuming no one would want to save 'cmb_no_override_val' as a value) - $this->value = apply_filters( 'cmb_override_meta_value', 'cmb_no_override_val', $this->object_id, $this->args(), $this->object_type, $this ); + // (assuming no one would want to save 'cmb2_no_override_val' as a value) + $this->value = apply_filters( 'cmb2_override_meta_value', 'cmb2_no_override_val', $this->object_id, $this->args(), $this->object_type, $this ); // If no override, get our meta - $this->value = 'cmb_no_override_val' === $this->value + $this->value = 'cmb2_no_override_val' === $this->value ? $this->get_data() : $this->value; } @@ -138,11 +138,12 @@ public function get_data( $field_id = '', $args = array() ) { } else if ( $this->group ) { $args['field_id'] = $this->group->id(); } - extract( $this->data_args( $args ) ); - $data = 'options-page' === $type - ? cmb_Meta_Box::get_option( $id, $field_id ) - : get_metadata( $type, $id, $field_id, ( $single || $repeat ) /* If multicheck this can be multiple values */ ); + $a = $this->data_args( $args ); + + $data = 'options-page' === $a['type'] + ? cmb2_options( $a['id'] )->get( $a['field_id'] ) + : get_metadata( $a['type'], $a['id'], $a['field_id'], ( $a['single'] || $a['repeat'] ) ); if ( $this->group && $data ) { $data = isset( $data[ $this->group->args( 'count' ) ][ $this->args( '_id' ) ] ) @@ -159,17 +160,19 @@ public function get_data( $field_id = '', $args = array() ) { * @param bool $single Whether data is an array (add_metadata) */ public function update_data( $new_value, $single = true ) { - extract( $this->data_args( array( 'new_value' => $new_value, 'single' => $single ) ) ); + $a = $this->data_args( array( 'single' => $single ) ); - $new_value = $repeat ? array_values( $new_value ) : $new_value; + $new_value = $a['repeat'] ? array_values( $new_value ) : $new_value; - if ( 'options-page' === $type ) - return cmb_Meta_Box::update_option( $id, $field_id, $new_value, $single ); + if ( 'options-page' === $a['type'] ) { + return cmb2_options( $a['id'] )->update( $a['field_id'], $new_value, false, $a['single'] ); + } - if ( ! $single ) - return add_metadata( $type, $id, $field_id, $new_value, false ); + if ( ! $a['single'] ) { + return add_metadata( $a['type'], $a['id'], $a['field_id'], $new_value, false ); + } - return update_metadata( $type, $id, $field_id, $new_value ); + return update_metadata( $a['type'], $a['id'], $a['field_id'], $new_value ); } /** @@ -178,11 +181,11 @@ public function update_data( $new_value, $single = true ) { * @param string $old Old value */ public function remove_data( $old = '' ) { - extract( $this->data_args() ); + $a = $this->data_args(); - return 'options-page' === $type - ? cmb_Meta_Box::remove_option( $id, $field_id ) - : delete_metadata( $type, $id, $field_id, $old ); + return 'options-page' === $a['type'] + ? cmb2_options( $a['id'] )->remove( $a['field_id'] ) + : delete_metadata( $a['type'], $a['id'], $a['field_id'], $old ); } /** @@ -222,8 +225,8 @@ public function sanitization_cb( $meta_value ) { return call_user_func( $cb, $meta_value, $this->args(), $this ); } - $clean = new cmb_Meta_Box_Sanitize( $this, $meta_value ); - // Validation via 'cmb_Meta_Box_Sanitize' (with fallback filter) + $clean = new CMB2_Sanitize( $this, $meta_value ); + // Validation via 'CMB2_Sanitize' (with fallback filter) return $clean->{$this->type()}( $meta_value ); } @@ -310,7 +313,7 @@ public function escaped_value( $func = 'esc_attr', $meta_value = '' ) { } // Or custom escaping filter can be used - $esc = apply_filters( 'cmb_types_esc_'. $this->type(), null, $meta_value, $this->args(), $this ); + $esc = apply_filters( 'cmb2_types_esc_'. $this->type(), null, $meta_value, $this->args(), $this ); if ( null !== $esc ) { return $esc; } @@ -337,7 +340,7 @@ public function escaped_value( $func = 'esc_attr', $meta_value = '' ) { * @return string Offset time string */ public function field_timezone_offset() { - return cmb_Meta_Box::timezone_offset( $this->field_timezone() ); + return cmb2_utils()->timezone_offset( $this->field_timezone() ); } /** @@ -374,7 +377,7 @@ public function render_field() { return; $classes = 'cmb-type-'. sanitize_html_class( $this->type() ); - $classes .= ' cmb_id_'. sanitize_html_class( $this->id() ); + $classes .= ' cmb2_id_'. sanitize_html_class( $this->id() ); $classes .= $this->args( 'repeatable' ) ? ' cmb-repeat' : ''; // 'inline' flag, or _inline in the field type, set to true $classes .= $this->args( 'inline' ) ? ' cmb-inline' : ''; @@ -401,7 +404,7 @@ public function render_field() { echo $this->args( 'before' ); - $this_type = new cmb_Meta_Box_types( $this ); + $this_type = new CMB2_Types( $this ); $this_type->render(); echo $this->args( 'after' ); @@ -444,7 +447,7 @@ public function _set_field_defaults( $args ) { if ( ! isset( $args['date_format'] ) ) $args['date_format'] = 'm\/d\/Y'; if ( ! isset( $args['time_format'] ) ) $args['time_format'] = 'h:i A'; // Allow a filter override of the default value - $args['default'] = apply_filters( 'cmb_default_filter', $args['default'], $args, $this->object_type, $this->object_type ); + $args['default'] = apply_filters( 'cmb2_default_filter', $args['default'], $args, $this->object_type, $this->object_type ); $args['allow'] = 'file' == $args['type'] && ! isset( $args['allow'] ) ? array( 'url', 'attachment' ) : array(); $args['save_id'] = 'file' == $args['type'] && ! ( isset( $args['save_id'] ) && ! $args['save_id'] ); // $args['multiple'] = isset( $args['multiple'] ) ? $args['multiple'] : ( 'multicheck' == $args['type'] ? true : false ); @@ -473,7 +476,7 @@ public function _set_field_defaults( $args ) { $args['options']['textarea_name'] = $args['_name']; } - $option_types = apply_filters( 'cmb_all_or_nothing_types', array( 'taxonomy_select', 'taxonomy_radio', 'taxonomy_radio_inline' ) ); + $option_types = apply_filters( 'cmb2_all_or_nothing_types', array( 'taxonomy_select', 'taxonomy_radio', 'taxonomy_radio_inline' ) ); if ( in_array( $args['type'], $option_types, true ) ) { $args['show_option_none'] = isset( $args['show_option_none'] ) ? $args['show_option_none'] : 'None'; diff --git a/includes/CMB2_Options.php b/includes/CMB2_Options.php new file mode 100644 index 000000000..3076b72e1 --- /dev/null +++ b/includes/CMB2_Options.php @@ -0,0 +1,171 @@ +key = $option_key; + } + + /** + * Delete the option from the db + * @since 2.0.0 + * @return bool Delete success or failure + */ + public function delete_option() { + $this->options = delete_option( $this->key ); + return $this->options; + } + + /** + * Removes an option from an option array + * @since 1.0.1 + * @param string $field_id Option array field key + * @return array Modified options + */ + public function remove( $field_id, $resave = false ) { + + $this->get_options(); + + if ( isset( $this->options[ $field_id ] ) ) { + unset( $this->options[ $field_id ] ); + } + + if ( $resave ) { + $this->set(); + } + + return $this->options; + } + + /** + * Retrieves an option from an option array + * @since 1.0.1 + * @param string $field_id Option array field key + * @param mixed $default Fallback value for the option + * @return array Requested field or default + */ + function get( $field_id, $default = false ) { + $opts = $this->get_options(); + + if ( $field_id == 'all' ) { + return $opts; + } elseif ( array_key_exists( $field_id, $opts ) ) { + return false !== $opts[ $field_id ] ? $opts[ $field_id ] : $default; + } + + return $default; + } + + /** + * Updates Option data + * @since 1.0.1 + * @param string $field_id Option array field key + * @param mixed $value Value to update data with + * @param bool $resave Whether to re-save the data + * @param bool $single Whether data should be an array + * @return array Modified options + */ + function update( $field_id, $value = '', $resave = false, $single = true ) { + $this->get_options(); + + if ( $field_id !== true ) { + + if ( ! $single ) { + // If multiple, add to array + $this->options[ $field_id ][] = $value; + } else { + $this->options[ $field_id ] = $value; + } + + } + + if ( $resave || $field_id === true ) { + return $this->set(); + } + } + + /** + * Saves the option array + * Needs to be run after finished using remove/update_option + * @uses apply_filters() Calls 'cmb2_override_option_save_{$this->key}' hook to allow + * overwriting the option value to be stored. + * + * @since 1.0.1 + * @return boolean Success/Failure + */ + function set( $options = false ) { + $this->options = $options ? $options : $this->options; + + $test_save = apply_filters( "cmb2_override_option_save_{$this->key}", 'cmb2_no_override_option_save', $this->options, $this ); + + if ( $test_save !== 'cmb2_no_override_option_save' ) { + return $test_save; + } + + // If no override, update the option + return update_option( $this->key, $this->options ); + } + + /** + * Retrieve option value based on name of option. + * @uses apply_filters() Calls 'cmb2_override_option_get_{$this->key}' hook to allow + * overwriting the option value to be retrieved. + * + * @since 1.0.1 + * @param string $option Name of option to retrieve. Expected to not be SQL-escaped. + * @param mixed $default Optional. Default value to return if the option does not exist. + * @return mixed Value set for the option. + */ + function get( $default = null ) { + if ( empty( $this->options ) ) { + + $test_get = apply_filters( "cmb2_override_option_get_{$this->key}", 'cmb2_no_override_option_get', $default, $this ); + + if ( $test_get !== 'cmb2_no_override_option_get' ) { + $this->options = $test_get; + } else { + // If no override, get the option + $this->options = get_option( $this->key, $default ); + } + } + + return $this->options; + } + +} diff --git a/helpers/cmb_Meta_Box_Sanitize.php b/includes/CMB2_Sanitize.php similarity index 93% rename from helpers/cmb_Meta_Box_Sanitize.php rename to includes/CMB2_Sanitize.php index 45d64e734..a48390beb 100644 --- a/helpers/cmb_Meta_Box_Sanitize.php +++ b/includes/CMB2_Sanitize.php @@ -4,11 +4,11 @@ * CMB field validation * @since 0.0.4 */ -class cmb_Meta_Box_Sanitize { +class CMB2_Sanitize { /** * A CMB field object - * @var cmb_Meta_Box_field object + * @var CMB2_Field object */ public $field; @@ -24,11 +24,11 @@ class cmb_Meta_Box_Sanitize { * @param object $field A CMB field object * @param mixed $value Field value */ - public function __construct( $field, $value ) { + public function __construct( CMB2_Field $field, $value ) { $this->field = $field; $this->value = $value; - $this->object_id = cmb_Meta_Box::get_object_id(); - $this->object_type = cmb_Meta_Box::get_object_type(); + $this->object_id = CMB2::get_object_id(); + $this->object_type = CMB2::get_object_type(); } /** @@ -62,9 +62,9 @@ public function default_sanitization( $value ) { * @param mixed $value The value to be saved to this field. * @param int $object_id The ID of the object where the value will be saved * @param array $field_args The current field's arguments - * @param object $sanitizer This `cmb_Meta_Box_Sanitize` object + * @param object $sanitizer This `CMB2_Sanitize` object */ - $override_value = apply_filters( 'cmb_validate_'. $this->field->type(), null, $value, $this->object_id, $this->field->args(), $this ); + $override_value = apply_filters( 'cmb2_validate_'. $this->field->type(), null, $value, $this->object_id, $this->field->args(), $this ); if ( null !== $override_value ) return $updated; @@ -239,9 +239,9 @@ public function text_datetime_timestamp_timezone( $value, $repeat = false ) { $tzstring = $value['timezone']; if ( empty( $tzstring ) ) - $tzstring = cmb_Meta_Box::timezone_string(); + $tzstring = cmb2_utils()->timezone_string(); - $offset = cmb_Meta_Box::timezone_offset( $tzstring, true ); + $offset = cmb2_utils()->timezone_offset( $tzstring, true ); if ( substr( $tzstring, 0, 3 ) === 'UTC' ) $tzstring = timezone_name_from_abbr( '', $offset, 0 ); @@ -287,7 +287,7 @@ public function _save_file_id( $value ) { unset( $args['_id'], $args['_name'] ); // And get new field object - $field = new cmb_Meta_Box_field( $args, $group ); + $field = new CMB2_Field( $args, $group ); $id_key = $field->_id(); $id_val_old = $field->escaped_value( 'absint' ); @@ -305,7 +305,7 @@ public function _save_file_id( $value ) { // If there is no ID saved yet, try to get it from the url if ( $value && ! $id_val ) { - $id_val = cmb_Meta_Box::image_id_from_url( $value ); + $id_val = cmb2_utils()->image_id_from_url( $value ); } if ( $group ) { diff --git a/helpers/cmb_Meta_Box_Show_Filters.php b/includes/CMB2_Show_Filters.php similarity index 89% rename from helpers/cmb_Meta_Box_Show_Filters.php rename to includes/CMB2_Show_Filters.php index d79453d81..413ef9188 100644 --- a/helpers/cmb_Meta_Box_Show_Filters.php +++ b/includes/CMB2_Show_Filters.php @@ -2,14 +2,14 @@ /** * Show On Filters - * Use the 'cmb_show_on' filter to further refine the conditions under which a metabox is displayed. + * Use the 'cmb2_show_on' filter to further refine the conditions under which a metabox is displayed. * Below you can limit it by ID and page template * * All methods in this class are automatically filtered * * @since 1.0.0 */ -class cmb_Meta_Box_Show_Filters { +class CMB2_Show_Filters { /** * Add metaboxes for an specific ID @@ -23,7 +23,7 @@ public static function check_id( $display, $meta_box ) { if ( ! isset( $meta_box['show_on']['key'] ) || 'id' !== $meta_box['show_on']['key'] ) return $display; - $object_id = is_admin() ? cmb_Meta_Box::get_object_id() : @get_the_id(); + $object_id = is_admin() ? CMB2::get_object_id() : @get_the_id(); if ( ! $object_id ) return false; @@ -44,9 +44,9 @@ public static function check_page_template( $display, $meta_box ) { if ( ! isset( $meta_box['show_on']['key'] ) || 'page-template' !== $meta_box['show_on']['key'] ) return $display; - $object_id = cmb_Meta_Box::get_object_id(); + $object_id = CMB2::get_object_id(); - if ( ! $object_id || cmb_Meta_Box::get_object_type() !== 'post' ) + if ( ! $object_id || CMB2::get_object_type() !== 'post' ) return false; // Get current template diff --git a/helpers/cmb_Meta_Box_types.php b/includes/CMB2_Types.php similarity index 83% rename from helpers/cmb_Meta_Box_types.php rename to includes/CMB2_Types.php index 9ea86a59d..1ffe44713 100644 --- a/helpers/cmb_Meta_Box_types.php +++ b/includes/CMB2_Types.php @@ -9,7 +9,7 @@ * * @since 1.0.0 */ -class cmb_Meta_Box_types { +class CMB2_Types { /** * An iterator value for repeatable fields @@ -19,18 +19,18 @@ class cmb_Meta_Box_types { public $iterator = 0; /** - * Current field + * Current CMB2_Field field object * @var array * @since 1.0.0 */ public $field; - public function __construct( $field ) { + public function __construct( CMB2_Field $field ) { $this->field = $field; } /** - * Default fallback. Allows rendering fields via "cmb_render_$name" hook + * Default fallback. Allows rendering fields via "cmb2_render_$name" hook * @since 1.0.0 * @param string $name Non-existent method name * @param array $arguments All arguments passed to the method @@ -50,9 +50,9 @@ public function __call( $name, $arguments ) { * @param string $object_type The type of object you are working with. * Most commonly, `post` (this applies to all post-types), * but could also be `comment`, `user` or `options-page`. - * @param object $field_type_object This `cmb_Meta_Box_types` object + * @param object $field_type_object This `CMB2_Types` object */ - do_action( "cmb_render_$name", $this->field->args(), $this->field->escaped_value(), $this->field->object_id, $this->field->object_type, $this ); + do_action( "cmb2_render_$name", $this->field->args(), $this->field->escaped_value(), $this->field->object_id, $this->field->object_type, $this ); } /** @@ -125,7 +125,7 @@ public function is_valid_img_ext( $file ) { $file_ext = $this->get_file_ext( $file ); $this->valid = empty( $this->valid ) - ? (array) apply_filters( 'cmb_valid_img_types', array( 'jpg', 'jpeg', 'png', 'gif', 'ico', 'icon' ) ) + ? (array) apply_filters( 'cmb2_valid_img_types', array( 'jpg', 'jpeg', 'png', 'gif', 'ico', 'icon' ) ) : $this->valid; return ( $file_ext && in_array( $file_ext, $this->valid ) ); @@ -140,7 +140,7 @@ public function is_valid_img_ext( $file ) { * @return array Parsed and filtered arguments */ public function parse_args( $args, $element, $defaults ) { - return wp_parse_args( apply_filters( "cmb_{$element}_attributes", $this->field->maybe_set_attributes( $args ), $this->field, $this ), $defaults ); + return wp_parse_args( apply_filters( "cmb2_{$element}_attributes", $this->field->maybe_set_attributes( $args ), $this->field, $this ), $defaults ); } /** @@ -221,7 +221,7 @@ public function concat_options( $args = array(), $method = 'list_input' ) { public function list_input( $args = array(), $i ) { $args = $this->parse_args( $args, 'list_input', array( 'type' => 'radio', - 'class' => 'cmb_option', + 'class' => 'cmb2_option', 'name' => $this->_name(), 'id' => $this->_id( $i ), 'value' => $this->field->escaped_value(), @@ -276,7 +276,7 @@ public function render_repeatable_field() { * @since 1.1.0 */ public function repeatable_rows() { - $meta_value = $this->field->escaped_value(); + $meta_value = array_filter( (array) $this->field->escaped_value() ); // check for default content $default = $this->field->args( 'default' ); @@ -339,7 +339,7 @@ public function _desc( $paragraph = false, $echo = false ) { return ''; } $tag = $paragraph ? 'p' : 'span'; - $desc = "\n<$tag class=\"cmb_metabox_description\">{$this->field->args( 'description' )}\n"; + $desc = "\n<$tag class=\"cmb2_metabox_description\">{$this->field->args( 'description' )}\n"; if ( $echo ) echo $desc; return $desc; @@ -392,7 +392,7 @@ public function input( $args = array() ) { */ public function textarea( $args = array() ) { $args = $this->parse_args( $args, 'textarea', array( - 'class' => 'cmb_textarea', + 'class' => 'cmb2_textarea', 'name' => $this->_name(), 'id' => $this->_id(), 'cols' => 60, @@ -412,39 +412,39 @@ public function text() { } public function text_small() { - return $this->input( array( 'class' => 'cmb_text_small', 'desc' => $this->_desc() ) ); + return $this->input( array( 'class' => 'cmb2_text_small', 'desc' => $this->_desc() ) ); } public function text_medium() { - return $this->input( array( 'class' => 'cmb_text_medium', 'desc' => $this->_desc() ) ); + return $this->input( array( 'class' => 'cmb2_text_medium', 'desc' => $this->_desc() ) ); } public function text_email() { - return $this->input( array( 'class' => 'cmb_text_email cmb_text_medium', 'type' => 'email' ) ); + return $this->input( array( 'class' => 'cmb2_text_email cmb2_text_medium', 'type' => 'email' ) ); } public function text_url() { - return $this->input( array( 'class' => 'cmb_text_url cmb_text_medium regular-text', 'value' => $this->field->escaped_value( 'esc_url' ) ) ); + return $this->input( array( 'class' => 'cmb2_text_url cmb2_text_medium regular-text', 'value' => $this->field->escaped_value( 'esc_url' ) ) ); } public function text_date() { - return $this->input( array( 'class' => 'cmb_text_small cmb_datepicker', 'desc' => $this->_desc() ) ); + return $this->input( array( 'class' => 'cmb2_text_small cmb2_datepicker', 'desc' => $this->_desc() ) ); } public function text_time() { - return $this->input( array( 'class' => 'cmb_timepicker text_time', 'desc' => $this->_desc() ) ); + return $this->input( array( 'class' => 'cmb2_timepicker text_time', 'desc' => $this->_desc() ) ); } public function text_money() { - return ( ! $this->field->args( 'before' ) ? '$ ' : ' ' ) . $this->input( array( 'class' => 'cmb_text_money', 'desc' => $this->_desc() ) ); + return ( ! $this->field->args( 'before' ) ? '$ ' : ' ' ) . $this->input( array( 'class' => 'cmb2_text_money', 'desc' => $this->_desc() ) ); } public function textarea_small() { - return $this->textarea( array( 'class' => 'cmb_textarea_small', 'rows' => 4 ) ); + return $this->textarea( array( 'class' => 'cmb2_textarea_small', 'rows' => 4 ) ); } public function textarea_code() { - return sprintf( '
%s
', $this->textarea( array( 'class' => 'cmb_textarea_code' ) ) ); + return sprintf( '
%s
', $this->textarea( array( 'class' => 'cmb2_textarea_code' ) ) ); } public function wysiwyg( $args = array() ) { @@ -462,7 +462,7 @@ public function wysiwyg( $args = array() ) { public function text_date_timestamp() { $meta_value = $this->field->escaped_value(); $value = ! empty( $meta_value ) ? date( $this->field->args( 'date_format' ), $meta_value ) : ''; - return $this->input( array( 'class' => 'cmb_text_small cmb_datepicker', 'value' => $value ) ); + return $this->input( array( 'class' => 'cmb2_text_small cmb2_datepicker', 'value' => $value ) ); } public function text_datetime_timestamp( $meta_value = '' ) { @@ -479,17 +479,17 @@ public function text_datetime_timestamp( $meta_value = '' ) { $inputs = array( $this->input( array( - 'class' => 'cmb_text_small cmb_datepicker', + 'class' => 'cmb2_text_small cmb2_datepicker', 'name' => $this->_name( '[date]' ), 'id' => $this->_id( '_date' ), - 'value' => ! empty( $meta_value ) ? date( $this->field->args( 'date_format' ), $meta_value ) : '', + 'value' => ! empty( $meta_value ) && ! is_array( $meta_value ) ? date( $this->field->args( 'date_format' ), $meta_value ) : '', 'desc' => '', ) ), $this->input( array( - 'class' => 'cmb_timepicker text_time', + 'class' => 'cmb2_timepicker text_time', 'name' => $this->_name( '[time]' ), 'id' => $this->_id( '_time' ), - 'value' => ! empty( $meta_value ) ? date( $this->field->args( 'time_format' ), $meta_value ) : '', + 'value' => ! empty( $meta_value ) && ! is_array( $meta_value ) ? date( $this->field->args( 'time_format' ), $meta_value ) : '', 'desc' => $desc, ) ) ); @@ -499,6 +499,9 @@ public function text_datetime_timestamp( $meta_value = '' ) { public function text_datetime_timestamp_timezone() { $meta_value = $this->field->escaped_value(); + if ( is_array( $meta_value ) ) { + $meta_value = ''; + } $datetime = unserialize( $meta_value ); $meta_value = $tzstring = false; @@ -519,7 +522,7 @@ public function text_datetime_timestamp_timezone() { public function select_timezone() { $this->field->args['default'] = $this->field->args( 'default' ) ? $this->field->args( 'default' ) - : cmb_Meta_Box::timezone_string(); + : cmb2_utils()->timezone_string(); $meta_value = $this->field->escaped_value(); @@ -534,13 +537,13 @@ public function colorpicker() { elseif ( ! preg_match( '/^#' . $hex_color . '/i', $meta_value ) ) // Value doesn't match #123abc, so sanitize to just #. $meta_value = "#"; - return $this->input( array( 'class' => 'cmb_colorpicker cmb_text_small', 'value' => $meta_value ) ); + return $this->input( array( 'class' => 'cmb2_colorpicker cmb2_text_small', 'value' => $meta_value ) ); } public function title() { extract( $this->parse_args( array(), 'title', array( 'tag' => $this->field->object_type == 'post' ? 'h5' : 'h3', - 'class' => 'cmb_metabox_title', + 'class' => 'cmb2_metabox_title', 'name' => $this->field->args( 'name' ), 'desc' => $this->_desc( true ), ) ) ); @@ -550,7 +553,7 @@ public function title() { public function select( $args = array() ) { $args = $this->parse_args( $args, 'select', array( - 'class' => 'cmb_select', + 'class' => 'cmb2_select', 'name' => $this->_name(), 'id' => $this->_id(), 'desc' => $this->_desc( true ), @@ -570,7 +573,7 @@ public function taxonomy_select() { $option_none = $this->field->args( 'show_option_none' ); if( ! empty( $option_none ) ) { - $option_none_value = apply_filters( "cmb_taxonomy_select_{$this->_id()}_default_value", apply_filters( 'cmb_taxonomy_select_default_value', '' ) ); + $option_none_value = apply_filters( "cmb2_taxonomy_select_{$this->_id()}_default_value", apply_filters( 'cmb2_taxonomy_select_default_value', '' ) ); $selected = $saved_term == $option_none_value; $options .= $this->option( $option_none, $option_none_value, $selected ); } @@ -585,7 +588,7 @@ public function taxonomy_select() { public function radio( $args = array(), $type = 'radio' ) { extract( $this->parse_args( $args, $type, array( - 'class' => 'cmb_radio_list cmb_list', + 'class' => 'cmb2_radio_list cmb2_list', 'options' => $this->concat_options( array( 'label' => 'test' ) ), 'desc' => $this->_desc( true ), ) ) ); @@ -598,7 +601,7 @@ public function radio_inline() { } public function multicheck( $type = 'checkbox' ) { - return $this->radio( array( 'class' => 'cmb_checkbox_list cmb_list', 'options' => $this->concat_options( array( 'type' => 'checkbox', 'name' => $this->_name() .'[]' ), 'list_input_checkbox' ) ), $type ); + return $this->radio( array( 'class' => 'cmb2_checkbox_list cmb2_list', 'options' => $this->concat_options( array( 'type' => 'checkbox', 'name' => $this->_name() .'[]' ), 'list_input_checkbox' ) ), $type ); } public function multicheck_inline() { @@ -607,7 +610,7 @@ public function multicheck_inline() { public function checkbox() { $meta_value = $this->field->escaped_value(); - $args = array( 'type' => 'checkbox', 'class' => 'cmb_option cmb_list', 'value' => 'on', 'desc' => '' ); + $args = array( 'type' => 'checkbox', 'class' => 'cmb2_option cmb2_list', 'value' => 'on', 'desc' => '' ); if ( ! empty( $meta_value ) ) { $args['checked'] = 'checked'; } @@ -625,7 +628,7 @@ public function taxonomy_radio() { } else { $option_none = $this->field->args( 'show_option_none' ); if( ! empty( $option_none ) ) { - $option_none_value = apply_filters( "cmb_taxonomy_radio_{$this->_id()}_default_value", apply_filters( 'cmb_taxonomy_radio_default_value', '' ) ); + $option_none_value = apply_filters( "cmb2_taxonomy_radio_{$this->_id()}_default_value", apply_filters( 'cmb2_taxonomy_radio_default_value', '' ) ); $args = array( 'value' => $option_none_value, 'label' => $option_none, @@ -688,7 +691,7 @@ public function taxonomy_multicheck() { } } - return $this->radio( array( 'class' => 'cmb_checkbox_list cmb_list', 'options' => $options ), 'taxonomy_multicheck' ); + return $this->radio( array( 'class' => 'cmb2_checkbox_list cmb2_list', 'options' => $options ), 'taxonomy_multicheck' ); } public function taxonomy_multicheck_inline() { @@ -702,17 +705,17 @@ public function file_list() { echo $this->input( array( 'type' => 'hidden', - 'class' => 'cmb_upload_file cmb_upload_list', + 'class' => 'cmb2_upload_file cmb2_upload_list', 'size' => 45, 'desc' => '', 'value' => '', ) ), $this->input( array( 'type' => 'button', - 'class' => 'cmb_upload_button button cmb_upload_list', + 'class' => 'cmb2_upload_button button cmb2_upload_list', 'value' => __( 'Add or Upload File', 'cmb' ), 'name' => '', 'id' => '', ) ); - echo '