diff --git a/.phpcs.xml b/.phpcs.xml
index 3062434..3f0e657 100644
--- a/.phpcs.xml
+++ b/.phpcs.xml
@@ -26,6 +26,12 @@
+
+
+
+
+
+
@@ -49,7 +55,7 @@
Multiple valid prefixes can be provided as a comma-delimited list. -->
-
+
diff --git a/README.txt b/README.txt
index 1c7aafc..2ced776 100755
--- a/README.txt
+++ b/README.txt
@@ -4,8 +4,8 @@ Donate link: https://connekthq.com/donate/
Tags: infinite scroll, load more, ajax, lazy load, endless scroll, infinite scrolling, lazy loading, pagination, ajax, ajax posts, woocommerce, ajax load more, masonry
Requires at least: 4.4
Requires PHP: 5.6
-Tested up to: 6.0
-Stable tag: 5.5.4.1
+Tested up to: 6.1
+Stable tag: 5.5.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -263,6 +263,19 @@ How to install Ajax Load More.
== Changelog ==
+= 5.5.5 - January 5, 2013 =
+* UPDATE: Removed requirement of `transition_container` to be present when using Preloaded.
+* UPDATE: Various updates required for the new 2.0 Layouts add-on release.
+* UPDATE: Removed legacy loading style `circles` and reference from the CSS.
+* NEW: Add new `getTotalPosts` and `getPostsCount` public JS functions that will return data from the localized window variables.
+* NEW: Added Ajax Load More plugin navigation to the header on all admin plugin pages.
+* NEW: Added ability to add add-on licenses via wp-config constants. License activation will still need to be triggered from the License admin screen. `ALM_CACHE_LICENSE_KEY="xxxxxxxxxx"`
+* NEW: Added `alm_mask_license_keys` filter to mask the license keys rendering in the WP admin. `add_filter( 'alm_mask_license_keys', '__return_true' );`
+* UPDATE: Improved security of shortcode output by sanitizing all fields before render.
+* UPDATE: Code cleanup and organization.
+* FIX: Fixed various issue with Filters add-on and JS ` ` fallback URLs when accessing paged results.
+
+
= 5.5.4.1 - August 24, 2022 =
* SECURITY: Patched and improved the data sanitization of some admin level operations.
diff --git a/admin/admin-functions.php b/admin/admin-functions.php
index 01335ab..6759b42 100755
--- a/admin/admin-functions.php
+++ b/admin/admin-functions.php
@@ -1,17 +1,21 @@
parent_base === 'ajax-load-more'){
+ if ( $screen->parent_base === 'ajax-load-more' ) {
$return = true;
}
return $return;
@@ -36,7 +40,7 @@ function alm_has_addon_shortcodes() {
'alm_prev_post_installed',
'alm_seo_installed',
'alm_single_post_installed',
- 'alm_users_installed'
+ 'alm_users_installed',
);
// Loop actions to determine if add-on/extension is installed.
@@ -64,7 +68,7 @@ function alm_has_extension_shortcodes() {
$actions = array(
'alm_acf_installed',
'alm_rest_api_installed',
- 'alm_terms_installed'
+ 'alm_terms_installed',
);
// Loop actions to determine if add-on/extension is installed.
@@ -81,23 +85,18 @@ function alm_has_extension_shortcodes() {
}
}
-
-
-
-/*
-* alm_has_addon
-* Does user have add-ons installed and activated
-* License Page
-*
-* @return boolean
-* @since 2.13.0
-* @depreacted 3.3.0
-*/
-
-function alm_has_addon(){
- if(has_action('alm_cta_installed') || has_action('alm_comments_installed') || has_action('alm_unlimited_installed') || has_action('alm_layouts_installed') || has_action('alm_nextpage_installed') || has_action('alm_preload_installed') || has_action('alm_paging_installed') || has_action('alm_prev_post_installed') || has_action('alm_single_post_installed') || has_action('alm_rest_api_installed') || has_action('alm_seo_installed') || has_action('alm_tabs_installed') || has_action('alm_theme_repeaters_installed') || has_action('alm_users_installed')) {
- return true;
+/**
+ * Check if any add-on installed and activated.
+ * Note: Used on the license screen.
+ *
+ * @return boolean
+ * @since 2.13.0
+ * @depreacted 3.3.0
+ */
+function alm_has_addon() {
+ if ( has_action( 'alm_cta_installed' ) || has_action( 'alm_comments_installed' ) || has_action( 'alm_unlimited_installed' ) || has_action( 'alm_layouts_installed' ) || has_action( 'alm_nextpage_installed' ) || has_action( 'alm_preload_installed' ) || has_action( 'alm_paging_installed' ) || has_action( 'alm_prev_post_installed' ) || has_action( 'alm_single_post_installed' ) || has_action( 'alm_rest_api_installed' ) || has_action( 'alm_seo_installed' ) || has_action( 'alm_tabs_installed' ) || has_action( 'alm_theme_repeaters_installed' ) || has_action( 'alm_users_installed' ) ) {
+ return true;
} else {
- return false;
+ return false;
}
}
diff --git a/admin/admin.php b/admin/admin.php
index f2b7047..aeacfc4 100755
--- a/admin/admin.php
+++ b/admin/admin.php
@@ -1,126 +1,31 @@
slug;
- $version = $response->new_version;
-
- foreach($addons as $key=>$addon){
- if($addon['path'] === $slug){
- $index = $key;
- }
- }
-
- if(isset($index)){
- $style = 'display: block; padding: 10px 5px 2px;';
- $addon = $addons[$index];
-
- if(isset($addon)){
- $name = ''. $addon['name'] .' ';
- $status = get_option($addon['status']);
-
- // Expired
- if($status === 'expired' ){
- printf( '%s %s ',
- __( 'Looks like your subscription has expired.', 'ajax-load-more' ),
- __( 'Please login to your Account to renew the license.', 'ajax-load-more' )
- );
- }
-
- // Invalid/Inactive
- if($status === 'invalid' || $status === 'disabled' ){
- printf( '%s %s ',
- __( 'Looks like your license is inactive and/or invalid.', 'ajax-load-more' ),
- __( 'Please activate the license or login to your Account to renew the license.', 'ajax-load-more' )
- );
- }
-
- // Deactivated
- if($status === 'deactivated' ){
- printf( '%s %s ',
- __( 'Looks like your license has been deactivated.', 'ajax-load-more' ),
- __( 'Please activate the license to update.', 'ajax-load-more' )
- );
- }
-
- }
- }
-}
+require_once ALM_PATH . 'admin/functions/layouts.php';
+require_once ALM_PATH . 'admin/functions/licensing.php';
+require_once ALM_PATH . 'admin/functions/plugin-updates.php';
+require_once ALM_PATH . 'admin/functions/repeater-templates.php';
+require_once ALM_PATH . 'admin/functions/settings.php';
/**
- * Create a notification in the plugin row
+ * Setup the admin hooks
*
- * @since 5.2
+ * @return void
+ * @deprecated 5.6
*/
-function alm_plugin_row( $plugin_name ) {
-
- $addons = alm_get_addons();
- $pro_addons = alm_get_pro_addon();
-
- $addons = array_merge(alm_get_addons(), alm_get_pro_addon());
- foreach($addons as $addon){
- if ( $plugin_name == $addon['path'].'/'.$addon['path'].'.php' ) {
-
- $status = get_option($addon['status']);
- $style = 'margin: 5px 20px 6px 40px;';
-
- // !valid
- if($status !== 'valid' ){
- $name = ($addon['name'] === 'Ajax Load More Pro' ) ? ''. $addon['name'] .' ' : ''. 'Ajax Load More: '. $addon['name'] .' ';
-
- $row = '
';
- $row .= sprintf(__( '%sRegister%s your copy of %s to receive access to automatic upgrades and support. Need a license key? %sPurchase one now%s.' ), '
', ' ', $name, '
', ' ' );
- $row .= '
';
- echo $row;
- }
-
- }
- }
+function alm_admin_hooks() {
+ require_once plugin_dir_path( __FILE__ ) . '/classes/class-nag.php';
}
+// phpcs:ignore
+// add_action( 'admin_init', 'alm_admin_hooks' );
/**
* Render a notification in the dashboard.
@@ -135,708 +40,312 @@ function alm_render_transient_notification() {
}
/**
- * Display a notification on pages with transient
- *
- * @since 4.0
-*/
-function alm_transient_notification($message = '', $transient = '', $duration = 'YEAR_IN_SECONDS', $dismissible = true, $type = 'info' ){
- if(!empty($transient)){
- $transient_value = get_transient( $transient );
- $dismissible = ($dismissible) ? ' is-dismissible' : '';
- if(!isset($transient_value) || empty($transient_value) && !empty($message)){
- ?>
-
- $action,
- 'license' => $license,
- 'item_id' => $item_id, // the ID of our product in EDD.
- 'url' => home_url(),
- 'environment' => function_exists( 'wp_get_environment_type' ) ? wp_get_environment_type() : 'production',
- );
-
- // Call API.
- $response = wp_remote_post( ALM_STORE_URL,
- array(
- 'method' => 'POST',
- 'body' => $api_params,
- 'timeout' => 30,
- 'sslverify' => false,
- //'blocking' => true
- )
- );
-
- // Make sure the response came back okay.
- if ( is_wp_error( $response ) ) {
- wp_send_json( $response );
- //return false;
- }
-
- $license_data = $response['body'];
- $license_data = json_decode( $license_data ); // decode the license data.
-
- $return['success'] = $license_data->success;
-
- $msg = '';
- if ( 'activate' === $type ) {
- $return['license_limit'] = $license_data->license_limit;
- $return['expires'] = $license_data->expires;
- $return['site_count'] = $license_data->site_count;
- $return['activations_left'] = $license_data->activations_left;
- $return['item_name'] = $license_data->item_name;
-
- if ( $license_data->activations_left === 0 && $license_data->success === false ) {
- $msg = 'You\'re out of available licenses ( '. $license_data->license_limit . ' / ' . $license_data->site_count . ' ) . Please visit the ' . $license_data->item_name . ' website to add additional licenses.';
+function alm_transient_notification( $message = '', $transient = '', $duration = 'YEAR_IN_SECONDS', $dismissible = true, $type = 'info' ) {
+ if ( ! empty( $transient ) ) {
+ $transient_value = get_transient( $transient );
+ $dismissible = $dismissible ? ' is-dismissible' : '';
+ if ( ! isset( $transient_value ) || empty( $transient_value ) && ! empty( $message ) ) {
+ ?>
+
+ error )) ? $license_data->error : $license_data->license;
-
- $return['license'] = $license_status;
-
- // Update the options table.
- update_option( $status, $license_status );
- update_option( $key, $license );
-
- // Set transient value to store license status.
- set_transient( "alm_{$item_id}_{$license}", $license_status, 96 * HOUR_IN_SECONDS ); // 4 days
-
- // Send the response.
- wp_send_json( $return );
-
}
/**
- * Invalid license notifications.
+ * Set plugin transient via Ajax.
*
- * @since 3.3.0
+ * @since 4.0
*/
-function alm_admin_notice_errors() {
-
- $screen = get_current_screen();
- $alm_is_admin_screen = alm_is_admin_screen();
-
- // Exit if screen is not dashboard, plugins, settings or ALM admin.
- if(!$alm_is_admin_screen && $screen->id !== 'dashboard' && $screen->id !== 'plugins' && $screen->id !== 'options-general' && $screen->id !== 'options' ){
- return;
- }
-
- $class = 'notice error alm-err-notice';
- $message = '';
- $count = 0;
+function alm_set_transient() {
+ $form_data = filter_input_array( INPUT_POST );
- if(has_action( 'alm_pro_installed' )){ // Pro
- $addons = alm_get_pro_addon();
- $message = __( 'You have an invalid or expired Ajax Load More Pro license key - please visit the License section to input your key or purchase one now.', 'ajax-load-more' );
-
- } else { // Other Addons
- $addons = alm_get_addons();
- $message = __( 'You have invalid or expired Ajax Load More license keys - please visit the Licenses section and input your keys.', 'ajax-load-more' );
+ if ( ! current_user_can( 'edit_theme_options' ) || ! isset( $form_data['nonce'] ) ) {
+ // Bail early if missing WP capabilities or nonce.
+ wp_die( esc_attr__( 'You don\'t belong here.', 'ajax-load-more' ) );
}
- // Loop each addon
- foreach($addons as $addon){
-
- if (has_action($addon['action'] ) ){
- $key = $addon['key']; // Option key
- $status = get_option($addon['status']); // license status
-
- // Check license
- $license_status = alm_license_check($addon['item_id'], get_option($key), $status);
-
- if( !isset($status) || empty($status) || $license_status !== 'valid' ) {
- $count++;
- }
- }
- }
-
- // Print result
- if( $count > 0 ) {
- printf( '', $class, $message );
- }
-}
-add_action( 'admin_notices', 'alm_admin_notice_errors' );
-
-
-
-/**
- * Check the status of a license.
- *
- * @param {String} $item_id The ID of the product
- * @param {String} $license The actual license key
- * @param {String} $status The status of the license
- * @updated 5.1.7
- * @since 2.8.3
- */
-function alm_license_check( $item_id = null, $license = null, $status = null ) {
-
- if ( ! $item_id || ! $license || ! $status ) {
- return false;
+ if ( ! wp_verify_nonce( $form_data['nonce'], 'alm_repeater_nonce' ) ) {
+ // Verify nonce.
+ wp_die( esc_attr__( 'Error - unable to verify nonce, please try again.', 'ajax-load-more' ) );
}
- // Get plugin transient for license status.
- if ( get_transient( "alm_{$item_id}_{$license}" ) ) {
-
- // Transient exists.
- return get_transient( "alm_{$item_id}_{$license}" );
-
- } else {
- $api_params = array(
- 'edd_action' => 'check_license',
- 'license' => $license,
- 'item_id' => $item_id,
- 'url' => home_url()
- );
- $response = wp_remote_post( ALM_STORE_URL,
- array(
- 'body' => $api_params,
- 'timeout' => 15,
- 'sslverify' => false
- )
- );
- if ( is_wp_error( $response ) ) {
- return false;
- }
-
- // Get Data.
- $license_data = json_decode( wp_remote_retrieve_body( $response ) );
+ $transient = $form_data['transient_name'];
+ $duration = ! isset( $form_data['duration'] ) ? 'YEAR_IN_SECONDS' : $form_data['duration'];
- // Update the options table.
- update_option( $status, $license_data->license );
-
- // Set transient value to store license status.
- set_transient( "alm_{$item_id}_{$license}", $license_data->license, 168 * HOUR_IN_SECONDS ); // 7 days
-
- // Return the status.
- return $license_data->license;
+ if ( $transient ) {
+ set_transient( $transient, 'true', constant( $duration ) );
+ echo esc_html__( 'Transient set successfully', 'ajax-load-more' );
}
-}
-
-/**
- * Get layout and return value to repeater template.
- *
- * @since 2.8.3
- * @updated 2.14.0
- */
-function alm_get_layout() {
- if ( current_user_can( 'edit_theme_options' ) ) {
- $nonce = sanitize_text_field( $_GET["nonce"] );
- $type = sanitize_text_field( $_GET["type"] );
- $custom = sanitize_text_field( $_GET["custom"] ) ;
-
- // Check our nonce, if they don't match then bounce!
- if ( ! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ) ) {
- wp_die( __( 'Error - unable to verify nonce, please try again.', 'ajax-load-more' ) );
- }
-
- if ( $type === 'default' ) { // Default Layout.
-
- $path = ALM_PATH . 'admin/includes/layout/' . $type . '.php';
-
- // Security check - confirm dir path does NOT contain relative path.
- if ( false !== strpos( $path, './' ) ) {
- wp_die();
- }
-
- $content = AjaxLoadMore::alm_get_default_repeater_markup();
-
- } else {
- if ( $custom === 'true' ) {
- // Custom Layout.
- $dir = 'alm_layouts';
- if ( is_child_theme() ) {
- $path = get_stylesheet_directory() . '/' . $dir . '/' . $type;
- // if child theme does not have the layout, check the parent theme.
- if ( ! file_exists( $path ) ) {
- $path = get_template_directory() . '/' . $dir . '/' . $type;
- }
- } else {
- $path = get_template_directory() . '/' . $dir . '/' . $type;
- }
-
- // Security check - confirm dir path does NOT contain relative path.
- if ( false !== strpos( $path, './' ) ) {
- wp_die();
- }
-
- $content = file_get_contents( $path );
-
- }
- // Layouts Add-on.
- else {
- $path = ALM_LAYOUTS_PATH . 'layouts/' . $type . '.php';
- // Security check - confirm dir path does NOT contain relative path.
- if ( false !== strpos( $path, './' ) ) {
- wp_die();
- }
- $content = file_get_contents( ALM_LAYOUTS_PATH . 'layouts/' . $type . '.php' );
- }
-
- }
-
- $return['value'] = $content;
- echo wp_json_encode( $return );
-
- } else {
- echo __( 'You don\'t belong here.', 'ajax-load-more' );
- }
wp_die();
}
-
-/**
- * Get the list of layout templates.
- *
- * @since 2.8.7
- */
-function alm_get_layouts() {
- include ALM_PATH . 'admin/includes/components/layout-list.php';
-}
+add_action( 'wp_ajax_alm_set_transient', 'alm_set_transient' ); // Set transient.
/**
* Create admin variables and ajax nonce.
*
* @since 2.0.0
*/
-function alm_admin_vars() { ?>
-
-
+
+ ` on admin pages.
*
- * @since 2.7.2
+ * @since 2.8.2
*/
-function alm_run_update() {
- global $wpdb;
-
- if ( is_multisite() ) {
- $blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
- // Loop all blogs and run update routine
- foreach ( $blog_ids as $blog_id ) {
- switch_to_blog( $blog_id );
- alm_update_template_files();
- restore_current_blog();
- }
- } else {
- alm_update_template_files();
- }
-
- update_option( "alm_version", ALM_VERSION ); // Update the WP Option tbl with the new version num.
+function alm_set_admin_vars() {
+ add_action( 'admin_head', 'alm_admin_vars' );
}
-
/**
- * Update routine for template files.
+ * Create Admin Menu.
*
- * @since 2.7.2
+ * @since 2.0.0
*/
-function alm_update_template_files() {
- global $wpdb;
- $table_name = $wpdb->prefix . "alm";
-
- // Get all rows where name is 'default'
- $rows = $wpdb->get_results( "SELECT * FROM $table_name WHERE name = 'default'" );
-
- if ( $rows ) {
-
- foreach( $rows as $row ) {
-
- $data = $wpdb->get_var( "SELECT repeaterDefault FROM $table_name WHERE name = 'default'" );
-
- // Create Base Repeater Dir (alm_templates).
- $base_dir = AjaxLoadMore::alm_get_repeater_path();
- AjaxLoadMore::alm_mkdir( $base_dir );
-
- $file = $base_dir . '/default.php';
-
- // Wrap is file_exists to avoid updating without cause.
- if ( ! file_exists( $file ) ) {
- try {
- $o = fopen($file, 'w+' ); //Open file.
- if ( ! $o ) {
- throw new Exception( __( '[Ajax Load More] Error opening default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory', 'ajax-load-more' ) );
- }
- $w = fwrite( $o, $data ); //Save the file.
- if ( ! $w ) {
- throw new Exception( __( '[Ajax Load More] Error updating default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the /ajax-load-more/core/repeater directory.', 'ajax-load-more' ) );
- }
- fclose($o); // Close file.
-
- } catch ( Exception $e ) { // Display error message in console.
- if(!isset($options['_alm_error_notices']) || $options['_alm_error_notices'] == '1' ){
- echo '';
- }
- }
- }
-
- }
- }
-}
-
-/**
-* Create Admin Menu.
-*
-* @since 2.0.0
-*/
-add_action( 'admin_menu', 'alm_admin_menu' );
function alm_admin_menu() {
- $icon = 'dashicons-plus-alt';
- $icon = ALM_ADMIN_URL . "/img/alm-logo-16x16.svg";
+ $icon = ALM_ADMIN_URL . '/img/alm-logo-16x16.svg';
- $alm_page = add_menu_page(
+ $alm_page = add_menu_page(
'Ajax Load More',
'Ajax Load More',
'edit_theme_options',
'ajax-load-more',
'alm_settings_page',
$icon
- );
+ );
- $alm_settings_page = add_submenu_page(
+ $alm_settings_page = add_submenu_page(
'ajax-load-more',
__( 'Settings', 'ajax-load-more' ),
__( 'Settings', 'ajax-load-more' ),
'edit_theme_options',
'ajax-load-more',
'alm_settings_page'
- );
+ );
- $alm_template_page = add_submenu_page(
+ $alm_template_page = add_submenu_page(
'ajax-load-more',
__( 'Repeater Templates', 'ajax-load-more' ),
__( 'Repeater Templates', 'ajax-load-more' ),
'edit_theme_options',
'ajax-load-more-repeaters',
'alm_repeater_page'
- );
+ );
- $alm_shortcode_page = add_submenu_page(
+ $alm_shortcode_page = add_submenu_page(
'ajax-load-more',
__( 'Shortcode Builder', 'ajax-load-more' ),
__( 'Shortcode Builder', 'ajax-load-more' ),
'edit_theme_options',
'ajax-load-more-shortcode-builder',
'alm_shortcode_builder_page'
- );
+ );
if ( ! has_action( 'alm_pro_installed' ) ) { // Not Pro.
- $alm_addons_page = add_submenu_page(
+ $alm_addons_page = add_submenu_page(
'ajax-load-more',
__( 'Add-ons', 'ajax-load-more' ),
__( 'Add-ons', 'ajax-load-more' ),
'edit_theme_options',
'ajax-load-more-add-ons',
'alm_add_ons_page'
- );
- }
-
- $alm_extensions_page = add_submenu_page(
- 'ajax-load-more',
- __( 'Extensions', 'ajax-load-more' ),
- __( 'Extensions', 'ajax-load-more' ),
- 'edit_theme_options',
- 'ajax-load-more-extensions',
- 'alm_extensions_page'
- );
-
- $alm_help_page = add_submenu_page(
- 'ajax-load-more',
- __( 'Help', 'ajax-load-more' ),
- __( 'Help', 'ajax-load-more' ),
- 'edit_theme_options',
- 'ajax-load-more-help',
- 'alm_help_page'
- );
-
- $license_title = ( has_action( 'alm_pro_installed' ) ) ? __( 'License', 'ajax-load-more' ) : __( 'Licenses', 'ajax-load-more' );
- $alm_licenses_page = add_submenu_page(
- 'ajax-load-more',
- $license_title,
- $license_title,
- 'edit_theme_options',
- 'ajax-load-more-licenses',
- 'alm_licenses_page'
- );
-
- $before_link = '';
- $after_link = ' ';
+ );
+ }
+
+ $alm_extensions_page = add_submenu_page(
+ 'ajax-load-more',
+ __( 'Extensions', 'ajax-load-more' ),
+ __( 'Extensions', 'ajax-load-more' ),
+ 'edit_theme_options',
+ 'ajax-load-more-extensions',
+ 'alm_extensions_page'
+ );
+
+ $alm_help_page = add_submenu_page(
+ 'ajax-load-more',
+ __( 'Help', 'ajax-load-more' ),
+ __( 'Help', 'ajax-load-more' ),
+ 'edit_theme_options',
+ 'ajax-load-more-help',
+ 'alm_help_page'
+ );
+
+ $license_title = ( has_action( 'alm_pro_installed' ) ) ? __( 'License', 'ajax-load-more' ) : __( 'Licenses', 'ajax-load-more' );
+ $alm_licenses_page = add_submenu_page(
+ 'ajax-load-more',
+ $license_title,
+ $license_title,
+ 'edit_theme_options',
+ 'ajax-load-more-licenses',
+ 'alm_licenses_page'
+ );
+
+ $before_link = '';
+ $after_link = ' ';
$style_link_icon = 'style="opacity: 0.6; font-size: 18px; height: 18px; width: 18px; position: relative; left: -2px;"';
// Pro.
if ( has_action( 'alm_pro_installed' ) ) {
- $alm_pro_page = add_submenu_page(
- 'ajax-load-more',
- __( 'Pro', 'ajax-load-more' ),
- $before_link . ' ' . __( 'Pro', 'ajax-load-more' ) . $after_link,
- 'edit_theme_options',
- 'ajax-load-more-pro',
- 'alm_pro_page'
- );
- } else {
- $alm_go_pro_page = add_submenu_page(
- 'ajax-load-more',
- __( 'Pro', 'ajax-load-more' ),
- $before_link . ' ' . __( 'Go Pro', 'ajax-load-more' ) . $after_link,
- 'edit_theme_options',
- 'ajax-load-more-go-pro',
- 'alm_go_pro_page'
- );
- }
+ $alm_pro_page = add_submenu_page(
+ 'ajax-load-more',
+ __( 'Pro', 'ajax-load-more' ),
+ $before_link . ' ' . __( 'Pro', 'ajax-load-more' ) . $after_link,
+ 'edit_theme_options',
+ 'ajax-load-more-pro',
+ 'alm_pro_page'
+ );
+ } else {
+ $alm_go_pro_page = add_submenu_page(
+ 'ajax-load-more',
+ __( 'Pro', 'ajax-load-more' ),
+ $before_link . ' ' . __( 'Go Pro', 'ajax-load-more' ) . $after_link,
+ 'edit_theme_options',
+ 'ajax-load-more-go-pro',
+ 'alm_go_pro_page'
+ );
+ }
// Cache.
- if ( has_action( 'alm_cache_installed' ) ) {
- $alm_cache_page = add_submenu_page(
- 'ajax-load-more',
- __( 'Cache', 'ajax-load-more' ),
- $before_link . ' ' .__( 'Cache', 'ajax-load-more' ) . $after_link,
- 'edit_theme_options',
- 'ajax-load-more-cache',
- 'alm_cache_page'
- );
- add_action( 'load-' . $alm_cache_page, 'alm_load_admin_js' );
- add_action( 'load-' . $alm_cache_page, 'alm_load_cache_admin_js' );
- add_action( 'load-' . $alm_cache_page, 'alm_set_admin_nonce' );
- }
+ if ( has_action( 'alm_cache_installed' ) ) {
+ $alm_cache_page = add_submenu_page(
+ 'ajax-load-more',
+ __( 'Cache', 'ajax-load-more' ),
+ $before_link . ' ' . __( 'Cache', 'ajax-load-more' ) . $after_link,
+ 'edit_theme_options',
+ 'ajax-load-more-cache',
+ 'alm_cache_page'
+ );
+ add_action( 'load-' . $alm_cache_page, 'alm_load_admin_js' );
+ add_action( 'load-' . $alm_cache_page, 'alm_load_cache_admin_js' );
+ add_action( 'load-' . $alm_cache_page, 'alm_set_admin_vars' );
+ }
// Filters.
- if ( has_action( 'alm_filters_installed' ) ) {
+ if ( has_action( 'alm_filters_installed' ) ) {
- if ( has_action( 'alm_cache_installed' ) ) {
- $before_link = '';
+ if ( has_action( 'alm_cache_installed' ) ) {
+ $before_link = '';
}
- $alm_filters_page = add_submenu_page(
- 'ajax-load-more',
- __( 'Filters', 'ajax-load-more' ),
- $before_link . ' '. __( 'Filters', 'ajax-load-more' ) . $after_link,
- 'edit_theme_options',
- 'ajax-load-more-filters',
- 'alm_filters_page'
- );
- add_action( 'load-' . $alm_filters_page, 'alm_load_admin_js' );
- add_action( 'load-' . $alm_filters_page, 'alm_load_filters_admin_scripts' );
- add_action( 'load-' . $alm_filters_page, 'alm_set_admin_nonce' );
- }
+ $alm_filters_page = add_submenu_page(
+ 'ajax-load-more',
+ __( 'Filters', 'ajax-load-more' ),
+ $before_link . ' ' . __( 'Filters', 'ajax-load-more' ) . $after_link,
+ 'edit_theme_options',
+ 'ajax-load-more-filters',
+ 'alm_filters_page'
+ );
+ add_action( 'load-' . $alm_filters_page, 'alm_load_admin_js' );
+ add_action( 'load-' . $alm_filters_page, 'alm_load_filters_admin_scripts' );
+ add_action( 'load-' . $alm_filters_page, 'alm_set_admin_vars' );
+ }
// WooCommerce.
- if ( has_action( 'alm_woocommerce_installed' ) && in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
+ if ( has_action( 'alm_woocommerce_installed' ) && in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { // phpcs:ignore
- if(has_action( 'alm_cache_installed' ) || has_action( 'alm_filters_installed' )){
- $before_link = '';
+ if ( has_action( 'alm_cache_installed' ) || has_action( 'alm_filters_installed' ) ) {
+ $before_link = '';
}
- $wooIcon = '';
-
- $alm_woocommerce_page = add_submenu_page(
- 'ajax-load-more',
- __( 'WooCommerce', 'ajax-load-more' ),
- $before_link . $wooIcon . ' '. __( 'WooCommerce', 'ajax-load-more' ) . $after_link,
- 'edit_theme_options',
- 'ajax-load-more-woocommerce',
- 'alm_woocommerce_page'
- );
- add_action( 'load-' . $alm_woocommerce_page, 'alm_load_admin_js' );
- add_action( 'load-' . $alm_woocommerce_page, 'alm_set_admin_nonce' );
- }
-
- //Add our admin scripts
- add_action( 'load-' . $alm_settings_page, 'alm_load_admin_js' );
- add_action( 'load-' . $alm_settings_page, 'alm_set_admin_nonce' );
- add_action( 'load-' . $alm_template_page, 'alm_load_admin_js' );
- add_action( 'load-' . $alm_template_page, 'alm_set_admin_nonce' );
- add_action( 'load-' . $alm_shortcode_page, 'alm_load_admin_js' );
- add_action( 'load-' . $alm_shortcode_page, 'alm_set_admin_nonce' );
- add_action( 'load-' . $alm_help_page, 'alm_load_admin_js' );
- add_action( 'load-' . $alm_help_page, 'alm_set_admin_nonce' );
-
- // Pro
- if ( has_action( 'alm_pro_installed' ) ) {
- add_action( 'load-' . $alm_pro_page, 'alm_load_admin_js' );
- add_action( 'load-' . $alm_pro_page, 'alm_load_pro_admin_js' );
- add_action( 'load-' . $alm_pro_page, 'alm_set_admin_nonce' );
-
- } else {
- add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
- add_action( 'load-' . $alm_addons_page, 'alm_set_admin_nonce' );
- add_action( 'load-' . $alm_go_pro_page, 'alm_load_admin_js' );
- add_action( 'load-' . $alm_go_pro_page, 'alm_set_admin_nonce' );
- }
- add_action( 'load-' . $alm_extensions_page, 'alm_load_admin_js' );
- add_action( 'load-' . $alm_extensions_page, 'alm_set_admin_nonce' );
- add_action( 'load-' . $alm_licenses_page, 'alm_load_admin_js' );
- add_action( 'load-' . $alm_licenses_page, 'alm_set_admin_nonce' );
+ $woo_icon = '';
+ $alm_woocommerce_page = add_submenu_page(
+ 'ajax-load-more',
+ __( 'WooCommerce', 'ajax-load-more' ),
+ $before_link . $woo_icon . ' ' . __( 'WooCommerce', 'ajax-load-more' ) . $after_link,
+ 'edit_theme_options',
+ 'ajax-load-more-woocommerce',
+ 'alm_woocommerce_page'
+ );
+ add_action( 'load-' . $alm_woocommerce_page, 'alm_load_admin_js' );
+ add_action( 'load-' . $alm_woocommerce_page, 'alm_set_admin_vars' );
+ }
+
+ // Add admin scripts.
+ add_action( 'load-' . $alm_settings_page, 'alm_load_admin_js' );
+ add_action( 'load-' . $alm_settings_page, 'alm_set_admin_vars' );
+ add_action( 'load-' . $alm_template_page, 'alm_load_admin_js' );
+ add_action( 'load-' . $alm_template_page, 'alm_set_admin_vars' );
+ add_action( 'load-' . $alm_shortcode_page, 'alm_load_admin_js' );
+ add_action( 'load-' . $alm_shortcode_page, 'alm_set_admin_vars' );
+ add_action( 'load-' . $alm_help_page, 'alm_load_admin_js' );
+ add_action( 'load-' . $alm_help_page, 'alm_set_admin_vars' );
+
+ // Pro.
+ if ( has_action( 'alm_pro_installed' ) ) {
+ add_action( 'load-' . $alm_pro_page, 'alm_load_admin_js' );
+ add_action( 'load-' . $alm_pro_page, 'alm_load_pro_admin_js' );
+ add_action( 'load-' . $alm_pro_page, 'alm_set_admin_vars' );
+
+ } else {
+ add_action( 'load-' . $alm_addons_page, 'alm_load_admin_js' );
+ add_action( 'load-' . $alm_addons_page, 'alm_set_admin_vars' );
+ add_action( 'load-' . $alm_go_pro_page, 'alm_load_admin_js' );
+ add_action( 'load-' . $alm_go_pro_page, 'alm_set_admin_vars' );
+ }
+ add_action( 'load-' . $alm_extensions_page, 'alm_load_admin_js' );
+ add_action( 'load-' . $alm_extensions_page, 'alm_set_admin_vars' );
+ add_action( 'load-' . $alm_licenses_page, 'alm_load_admin_js' );
+ add_action( 'load-' . $alm_licenses_page, 'alm_set_admin_vars' );
}
+add_action( 'admin_menu', 'alm_admin_menu' );
/**
* Settings page.
*
* @since 2.0.0
*/
-function alm_settings_page(){
- include_once ALM_PATH . 'admin/views/settings.php';
+function alm_settings_page() {
+ include_once ALM_PATH . 'admin/views/settings.php';
}
/**
@@ -844,8 +353,8 @@ function alm_settings_page(){
*
* @since 2.0.0
*/
-function alm_repeater_page(){
- include_once ALM_PATH . 'admin/views/repeater-templates.php';
+function alm_repeater_page() {
+ include_once ALM_PATH . 'admin/views/repeater-templates.php';
}
/**
@@ -853,8 +362,8 @@ function alm_repeater_page(){
*
* @since 2.0.0
*/
-function alm_shortcode_builder_page(){
- include_once ALM_PATH . 'admin/views/shortcode-builder.php';
+function alm_shortcode_builder_page() {
+ include_once ALM_PATH . 'admin/views/shortcode-builder.php';
}
/**
@@ -862,8 +371,8 @@ function alm_shortcode_builder_page(){
*
* @since 2.0.0
*/
-function alm_add_ons_page(){
- include_once ALM_PATH . 'admin/views/add-ons.php';
+function alm_add_ons_page() {
+ include_once ALM_PATH . 'admin/views/add-ons.php';
}
/**
@@ -871,8 +380,8 @@ function alm_add_ons_page(){
*
* @since 3.0.0
*/
-function alm_extensions_page(){
- include_once ALM_PATH . 'admin/views/extensions.php';
+function alm_extensions_page() {
+ include_once ALM_PATH . 'admin/views/extensions.php';
}
/**
@@ -880,8 +389,8 @@ function alm_extensions_page(){
*
* @since 4.0.0
*/
-function alm_go_pro_page(){
- include_once ALM_PATH . 'admin/views/go-pro.php';
+function alm_go_pro_page() {
+ include_once ALM_PATH . 'admin/views/go-pro.php';
}
/**
@@ -889,8 +398,8 @@ function alm_go_pro_page(){
*
* @since 2.0.0
*/
-function alm_examples_page(){
- include_once ALM_PATH . 'admin/views/examples.php';
+function alm_examples_page() {
+ include_once ALM_PATH . 'admin/views/examples.php';
}
/**
@@ -898,9 +407,8 @@ function alm_examples_page(){
*
* @since 2.8.7
*/
-
-function alm_help_page(){
- include_once ALM_PATH . 'admin/views/help.php';
+function alm_help_page() {
+ include_once ALM_PATH . 'admin/views/help.php';
}
/**
@@ -908,8 +416,8 @@ function alm_help_page(){
*
* @since 2.7.0
*/
-function alm_licenses_page(){
- include_once ALM_PATH . 'admin/views/licenses.php';
+function alm_licenses_page() {
+ include_once ALM_PATH . 'admin/views/licenses.php';
}
/**
@@ -917,8 +425,8 @@ function alm_licenses_page(){
*
* @since 3.6.0
*/
-function alm_pro_page(){
- include_once ALM_PRO_ADMIN_PATH . 'admin/views/pro.php';
+function alm_pro_page() {
+ include_once ALM_PRO_ADMIN_PATH . 'admin/views/pro.php';
}
/**
@@ -926,8 +434,8 @@ function alm_pro_page(){
*
* @since 2.6.0
*/
-function alm_cache_page(){
- include_once ALM_CACHE_ADMIN_PATH . 'admin/views/cache.php';
+function alm_cache_page() {
+ include_once ALM_CACHE_ADMIN_PATH . 'admin/views/cache.php';
}
/**
@@ -935,9 +443,9 @@ function alm_cache_page(){
*
* @since 3.4.0
*/
-function alm_filters_page(){
- include_once ALM_FILTERS_PATH . 'admin/functions.php';
- include_once ALM_FILTERS_PATH . 'admin/views/filters.php';
+function alm_filters_page() {
+ include_once ALM_FILTERS_PATH . 'admin/functions.php';
+ include_once ALM_FILTERS_PATH . 'admin/views/filters.php';
}
/**
@@ -945,895 +453,151 @@ function alm_filters_page(){
*
* @since 5.3.0
*/
-function alm_woocommerce_page(){
- include_once ALM_WOO_PATH. 'admin/views/woocommerce.php';
+function alm_woocommerce_page() {
+ include_once ALM_WOO_PATH . 'admin/views/woocommerce.php';
}
-
-
/**
-* alm_load_admin_js
-* Load Admin JS
-*
-* @since 2.0.15
-*/
-
-function alm_load_admin_js(){
- add_action( 'admin_enqueue_scripts', 'alm_enqueue_admin_scripts' );
-}
-// Pro Scripts
-function alm_load_pro_admin_js(){
- if(class_exists( 'ALMPro' )){
- ALMPro::alm_enqueue_pro_admin_scripts();
- }
-}
-// Cache Scripts
-function alm_load_cache_admin_js(){
- if(class_exists( 'ALMCache' )){
- ALMCache::alm_enqueue_cache_admin_scripts();
- }
-}
-// Filters Scripts
-function alm_load_filters_admin_scripts(){
- if(class_exists( 'ALMFilters' )){
- ALMFilters::alm_enqueue_filters_admin_scripts();
- }
-}
-
-
-
-/**
-* alm_enqueue_admin_scripts
-* Enqueue Admin JS
-*
-* @since 2.0.15
-*/
-
-function alm_enqueue_admin_scripts(){
-
- // Admin CSS
- wp_enqueue_style( 'alm-admin', ALM_ADMIN_URL. 'dist/css/admin.css', '', ALM_VERSION);
- wp_enqueue_style( 'alm-core', ALM_URL. '/core/dist/css/ajax-load-more.css', '', ALM_VERSION);
-
- // disable ACF select2 on ALM pages
- wp_dequeue_style( 'acf-input' );
-
- // CodeMirror Syntax Highlighting if on Repater Template page
- $screen = get_current_screen();
- if ( in_array( $screen->id, array( 'ajax-load-more_page_ajax-load-more-repeaters' ) ) ){
-
- //CodeMirror CSS
- wp_enqueue_style( 'alm-codemirror-css', ALM_ADMIN_URL. 'codemirror/lib/codemirror.css' );
-
- //CodeMirror JS
- wp_enqueue_script( 'alm-codemirror', ALM_ADMIN_URL. 'codemirror/lib/codemirror.js' );
- wp_enqueue_script( 'alm-codemirror-matchbrackets', ALM_ADMIN_URL. 'codemirror/addon/edit/matchbrackets.js' );
- wp_enqueue_script( 'alm-codemirror-htmlmixed', ALM_ADMIN_URL. 'codemirror/mode/htmlmixed/htmlmixed.js' );
- wp_enqueue_script( 'alm-codemirror-xml', ALM_ADMIN_URL. 'codemirror/mode/xml/xml.js' );
- wp_enqueue_script( 'alm-codemirror-javascript', ALM_ADMIN_URL. 'codemirror/mode/javascript/javascript.js' );
- wp_enqueue_script( 'alm-codemirror-mode-css', ALM_ADMIN_URL. 'codemirror/mode/css/css.js' );
- wp_enqueue_script( 'alm-codemirror-clike', ALM_ADMIN_URL. 'codemirror/mode/clike/clike.js' );
- wp_enqueue_script( 'alm-codemirror-php', ALM_ADMIN_URL. 'codemirror/mode/php/php.js' );
-
- }
-
- // Admin JS
- wp_enqueue_script( 'jquery-form' );
- wp_enqueue_script( 'alm-admin', ALM_ADMIN_URL. 'dist/js/admin.js', array( 'jquery' ), ALM_VERSION);
- wp_enqueue_script( 'alm-shortcode-builder', ALM_ADMIN_URL. 'shortcode-builder/js/shortcode-builder.js', array( 'jquery' ), ALM_VERSION);
-
-}
-
-/**
-* Repeater Save function
-*
-* @return response
-* @since 2.0.0
-*/
-function alm_save_repeater(){
-
- if ( current_user_can( 'edit_theme_options' ) ) {
- global $wpdb;
- $table_name = $wpdb->prefix . "alm";
- $blog_id = $wpdb->blogid;
- $options = get_option( 'alm_settings' ); //Get plugin options
- $nonce = $_POST["nonce"];
-
- if ( ! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ) ) {
- die( __( 'Error - unable to verify nonce, please try again.', 'ajax-load-more' ) );
- }
-
- // Get _POST Vars.
- $c = Trim( stripslashes( $_POST["value"] ) ); // Repeater Value
- $n = Trim( stripslashes( str_replace( '/', '', $_POST["repeater"] ) ) ); // Repeater name
- $t = Trim( stripslashes( $_POST["type"] ) ); // Repeater name
- $a = Trim( stripslashes( $_POST["alias"] ) ); // Repeater alias
-
- // Default.
- if($t === 'default' ){
- // Create Base Repeater Dir (alm-templates)
- $base_dir = AjaxLoadMore::alm_get_repeater_path();
- AjaxLoadMore::alm_mkdir($base_dir);
- $f = $base_dir .'/default.php';
- }
-
- // Custom Repeaters v2.
- elseif( $t === 'unlimited' ) {
- // Custom Repeaters 2.5+
- if( ALM_UNLIMITED_VERSION >= '2.5' ) {
- // Get path to repeater dir (alm_templates)
- $base_dir = AjaxLoadMore::alm_get_repeater_path();
- AjaxLoadMore::alm_mkdir($base_dir);
- $f = $base_dir . '/' . $n . '.php';
- } else {
- $f = $blog_id > 1 ? ALM_UNLIMITED_PATH . 'repeaters/' . $blog_id . '/' . $n . '.php' : ALM_UNLIMITED_PATH . 'repeaters/' . $n . '.php';
- }
- }
-
- // Custom Repeaters v1.
- else{
- $f = ALM_REPEATER_PATH . 'repeaters/' . $n . '.php';
- }
-
- // Write Repeater Template.
- try {
- $o = fopen( $f, 'w+' ); //Open file
- if ( ! $o ) {
- throw new Exception( __( '[Ajax Load More] Unable to open repeater template - '.$f.' - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files.', 'ajax-load-more' ) );
- }
- $w = fwrite($o, $c); //Save the file
- if ( ! $w ) {
- throw new Exception( __( '[Ajax Load More] Error saving repeater template - '.$f.' - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files.', 'ajax-load-more' ) );
- }
- fclose( $o ); //now close it
-
- } catch ( Exception $e ) {
- // Display error message in console.
- if( isset( $options['_alm_error_notices'] ) || $options['_alm_error_notices'] == '1' ) {
- echo '';
- }
- }
-
- // Save to database
-
- if($t === 'default' ) {
- $data_update = array( 'repeaterDefault' => "$c", 'pluginVersion' => ALM_VERSION);
- $data_where = array( 'name' => "default");
- }
- elseif($t === 'unlimited' ){ // Custom Repeaters v2
- $table_name = $wpdb->prefix . "alm_unlimited";
- $data_update = array( 'repeaterDefault' => "$c", 'alias' => "$a", 'pluginVersion' => ALM_UNLIMITED_VERSION);
- $data_where = array( 'name' => $n);
- }
- else{ // Custom Repeaters
- $data_update = array( 'repeaterDefault' => "$c", 'alias' => "$a", 'pluginVersion' => ALM_REPEATER_VERSION);
- $data_where = array( 'name' => $n);
- }
-
- $wpdb->update($table_name , $data_update, $data_where);
-
- //Our results
- if($w){
- echo ''. __( 'Template Saved Successfully', 'ajax-load-more' ) .' ';
- } else {
- echo ''. __( 'Error Writing File', 'ajax-load-more' ) .' '. __( 'Something went wrong and the data could not be saved.', 'ajax-load-more' );
- }
-
- wp_die();
-
- }else {
- echo __( 'You don\'t belong here.', 'ajax-load-more' );
- }
-}
-
-/**
-* Update repeater template from database.
-* User case: User deletes plugin, then installs again and the version has not change. Click 'Update from DB' option to load template.
-*
-* @return string The value of the Repeater Template.
-* @since 2.5.0
-*/
-function alm_update_repeater(){
-
- if ( current_user_can( 'edit_theme_options' ) ) {
- $nonce = $_POST["nonce"];
- if ( ! wp_verify_nonce( $nonce, 'alm_repeater_nonce' )){ // Check our nonce
- die( __( 'Error - unable to verify nonce, please try again.', 'ajax-load-more' ) );
- }
-
- // Get _POST Vars
- $n = Trim( stripslashes( str_replace( '/', '', $_POST["repeater"] ) ) ); // Repeater name
- $t = Trim( stripslashes( $_POST["type"] ) ); // Repeater type (default | unlimited)
-
- // Get value from database
- global $wpdb;
- $table_name = $wpdb->prefix . "alm";
-
- if ($t === 'default' ) {
- $n = 'default';
- }
- if ( $t === 'unlimited' ) {
- $table_name = $wpdb->prefix . "alm_unlimited";
- }
-
- $repeater = $wpdb->get_var("SELECT repeaterDefault FROM " . $table_name . " WHERE name = '".esc_sql($n)."'");
- echo $repeater; // Return repeater value.
-
- wp_die();
-
- } else {
- echo __( 'You don\'t belong here.', 'ajax-load-more' );
- }
-}
-
-/**
-* Get taxonomy terms for shortcode builder and build the markup.
-*
-* @since 2.1.0
-*/
-function alm_get_tax_terms(){
- if ( current_user_can( 'edit_theme_options' ) ) {
- $nonce = $_GET["nonce"];
-
- // Check our nonce, if they don't match then bounce!
- if ( ! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ) ) {
- wp_die( __( 'Error - unable to verify nonce, please try again.', 'ajax-load-more' ) );
- }
-
- $taxonomy = isset( $_GET['taxonomy'] ) ? esc_attr( $_GET['taxonomy'] ) : '';
- $index = isset( $_GET['index'] ) ? esc_attr( $_GET['index'] ) : '1';
-
- $tax_args = array(
- 'orderby' => 'name',
- 'order' => 'ASC',
- 'hide_empty' => false
- );
- $terms = get_terms($taxonomy, $tax_args);
- $value = '';
- if ( !empty( $terms ) && !is_wp_error( $terms ) ){
- $value .= '';
- echo $value;
- wp_die();
- }else{
- echo "No terms exist within this taxonomy
";
- wp_die();
- }
- }
-}
-
-/**
-* Dismiss Add Layouts CTA in repeater templates.
-*
-* @since 2.8.2.1
-*/
-function alm_layouts_dismiss(){
- if (current_user_can( 'edit_theme_options' )){
- $nonce = $_POST["nonce"];
-
- // Check our nonce, if they don't match then bounce!
- if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
- die( 'Error - unable to verify nonce, please try again.' );
-
- update_option( 'alm_layouts_dismiss', 'true' );
- echo 'Success';
-
- die();
- }
-}
-
-/**
- * Dismiss sharing widget on plugin settings page.
+ * Load Admin JS
*
- * @since 2.8.2.1
+ * @since 2.0.15
*/
-function alm_dismiss_sharing(){
-
- if (current_user_can( 'edit_theme_options' )){
-
- $nonce = $_POST["nonce"];
-
- // Check our nonce, if they don't match then bounce!
- if (! wp_verify_nonce( $nonce, 'alm_repeater_nonce' ))
- die(__( 'Error - unable to verify nonce, please try again.', 'ajax-load-more' ));
-
- set_transient( 'alm_dismiss_sharing', 'true', YEAR_IN_SECONDS );
- echo 'ALM sharing dismissed successfully.';
-
- wp_die();
- }
+function alm_load_admin_js() {
+ add_action( 'admin_enqueue_scripts', 'alm_enqueue_admin_scripts' );
}
/**
- * Filter the WP Admin footer text only on ALM pages
+ * Load Pro add-on scripts.
*
- * @since 2.12.0
+ * @return void
*/
-function alm_filter_admin_footer_text( $text ) {
- $screen = alm_is_admin_screen();
- if(!$screen){
- return;
- }
-
- echo 'Ajax Load More is made with ♥ by Connekt | Leave a Review | Get Support ';
-
- if(!has_action( 'alm_pro_installed' )){
- echo ' | Go Pro ';
+function alm_load_pro_admin_js() {
+ if ( class_exists( 'ALMPro' ) ) {
+ ALMPro::alm_enqueue_pro_admin_scripts();
}
}
-
/**
- * Initiate the plugin, create the setting variables.
+ * Load Cache add-on scripts.
*
- * @since 2.0.0
+ * @return void
*/
-add_action( 'admin_init', 'alm_admin_init' );
-function alm_admin_init(){
-
- register_setting(
- 'alm-setting-group',
- 'alm_settings',
- 'alm_sanitize_settings'
- );
-
- add_settings_section(
- 'alm_general_settings',
- 'Global Settings',
- 'alm_general_settings_callback',
- 'ajax-load-more'
- );
-
- add_settings_section(
- 'alm_admin_settings',
- 'Admin Settings',
- 'alm_admin_settings_callback',
- 'ajax-load-more'
- );
-
- add_settings_field( // Container type
- '_alm_container_type',
- __( 'Container Type', 'ajax-load-more' ),
- 'alm_container_type_callback',
- 'ajax-load-more',
- 'alm_general_settings'
- );
-
- add_settings_field( // Classnames
- '_alm_classname',
- __( 'Container Classes', 'ajax-load-more' ),
- 'alm_class_callback',
- 'ajax-load-more',
- 'alm_general_settings'
- );
-
- add_settings_field( // Disbale CSS
- '_alm_disable_css',
- __( 'Disable CSS', 'ajax-load-more' ),
- 'alm_disable_css_callback',
- 'ajax-load-more',
- 'alm_general_settings'
- );
-
- add_settings_field( // Btn color
- '_alm_btn_color',
- __( 'Button/Loading Style', 'ajax-load-more' ),
- 'alm_btn_color_callback',
- 'ajax-load-more',
- 'alm_general_settings'
- );
-
- add_settings_field( // Inline CSS
- '_alm_inline_css',
- __( 'Load CSS Inline', 'ajax-load-more' ),
- 'alm_inline_css_callback',
- 'ajax-load-more',
- 'alm_general_settings'
- );
-
- add_settings_field( // Button classes
- '_alm_btn_classname',
- __( 'Button Classes', 'ajax-load-more' ),
- 'alm_btn_class_callback',
- 'ajax-load-more',
- 'alm_general_settings'
- );
-
- add_settings_field( // Custom JavaScript
- '_alm_custom_js',
- __( 'Custom JavaScript', 'ajax-load-more' ),
- 'alm_custom_js_callback',
- 'ajax-load-more',
- 'alm_general_settings'
- );
-
-/*
- add_settings_field( // Disable REST API
- '_alm_use_rest_api',
- __( 'REST API', 'ajax-load-more' ),
- 'alm_use_rest_api_callback',
- 'ajax-load-more',
- 'alm_general_settings'
- );
-*/
-
- add_settings_field( // Legacy Callbacks
- '_alm_legacy_callbacks',
- __( 'Legacy Callbacks', 'ajax-load-more' ),
- 'alm_legacy_callbacks_callback',
- 'ajax-load-more',
- 'alm_general_settings'
- );
-
- add_settings_field( // Load dynamic queries
- '_alm_disable_dynamic',
- __( 'Dynamic Content', 'ajax-load-more' ),
- 'alm_disable_dynamic_callback',
- 'ajax-load-more',
- 'alm_admin_settings'
- );
-
- add_settings_field( // Display error notices
- '_alm_error_notices',
- __( 'Error Notices', 'ajax-load-more' ),
- '_alm_error_notices_callback',
- 'ajax-load-more',
- 'alm_admin_settings'
- );
-
- add_settings_field( // Uninstall
- '_alm_uninstall',
- __( 'Delete on Uninstall', 'ajax-load-more' ),
- 'alm_uninstall_callback',
- 'ajax-load-more',
- 'alm_admin_settings'
- );
-
- // CACHE
- if(has_action( 'alm_cache_settings' )){
- do_action( 'alm_cache_settings' );
- }
-
- // CUSTOM REPEATERS
- if(has_action( 'alm_unlimited_settings' )){
- do_action( 'alm_unlimited_settings' );
- }
-
- // FILTERS
- if(has_action( 'alm_filters_settings' )){
- do_action( 'alm_filters_settings' );
- }
-
- // LAYOUTS
- if(has_action( 'alm_layouts_settings' )){
- do_action( 'alm_layouts_settings' );
- }
-
- // NEXT PAGE
- if(has_action( 'alm_nextpage_settings' )){
- do_action( 'alm_nextpage_settings' );
- }
-
- // PAGINATION
- if(has_action( 'alm_paging_settings' )){
- do_action( 'alm_paging_settings' );
- }
-
- // PRELOADED
- if(has_action( 'alm_preloaded_settings' )){
- do_action( 'alm_preloaded_settings' );
- }
-
- // REST API
- if(has_action( 'alm_rest_api_settings' )){
- do_action( 'alm_rest_api_settings' );
- }
-
- // SEO
- if(has_action( 'alm_seo_settings' )){
- do_action( 'alm_seo_settings' );
+function alm_load_cache_admin_js() {
+ if ( class_exists( 'ALMCache' ) ) {
+ ALMCache::alm_enqueue_cache_admin_scripts();
}
-
- // SINGLE POST
- if(has_action( 'alm_prev_post_settings' )){
- do_action( 'alm_prev_post_settings' );
- }
-
- // TABS
- if(has_action( 'alm_tabs_settings' )){
- do_action( 'alm_tabs_settings' );
- }
-
- // THEME REPEATERS
- if(has_action( 'alm_theme_repeaters_settings' )){
- do_action( 'alm_theme_repeaters_settings' );
- }
-
-}
-
-/**
- * Some general settings text.
- *
- * @since 2.0.0
- */
-function alm_general_settings_callback() {
- echo '' . __( 'Customize the user experience of Ajax Load More by updating the fields below.', 'ajax-load-more' ) . '
';
-}
-
-/**
- * Some general admin settings text.
- *
- * @since 2.0.0
- */
-function alm_admin_settings_callback() {
- echo '' . __( 'The following settings affect the WordPress admin area only.', 'ajax-load-more' ) . '
';
-}
-
-/**
- * Sanitize our form fields.
- *
- * @since 2.0.0
- */
-function alm_sanitize_settings( $input ) {
- return $input;
-}
-
-/**
- * Diabale Ajax Load More CSS.
- *
- * @since 2.0.0
- */
-function alm_disable_css_callback(){
- $options = get_option( 'alm_settings' );
- if(!isset($options['_alm_disable_css'] ) )
- $options['_alm_disable_css'] = '0';
-
- $html = ' ';
- $html .= ' ';
- $html .= ''.__( 'I want to use my own CSS styles.', 'ajax-load-more' ).' '.__( 'View Ajax Load More CSS', 'ajax-load-more' ).' ';
-
- echo $html;
-}
-
-/**
- * Disbale the ALM shortcode button in the WordPress content editor.
- *
- * @since 2.2.1
- * @deprecated 5.4.2
- */
-function alm_hide_btn_callback(){
- $options = get_option( 'alm_settings' );
- if(!isset($options['_alm_hide_btn'] ) )
- $options['_alm_hide_btn'] = '0';
-
- $html = ' ';
- $html .= ''.__( 'Hide shortcode button in WYSIWYG editor.', 'ajax-load-more' ).' ';
-
- echo $html;
-}
-
-/**
- * Display admin error notices in browser console.
- *
- * @since 2.7.2
- */
-function _alm_error_notices_callback(){
- $options = get_option( 'alm_settings' );
- if(!isset($options['_alm_error_notices'] ) )
- $options['_alm_error_notices'] = '1';
-
- $html = ' ';
- $html .= ' ';
- $html .= ''.__( 'Display error messaging regarding repeater template updates in the browser console.', 'ajax-load-more' ).' ';
-
- echo $html;
-}
-
-/**
- * Disable the dynamic population of categories, tags and authors
- *
- * @since 2.6.0
- */
-function alm_disable_dynamic_callback(){
- $options = get_option( 'alm_settings' );
- if(!isset($options['_alm_disable_dynamic'] ) )
- $options['_alm_disable_dynamic'] = '0';
-
- $html = ' ';
- $html .= ' ';
- $html .= ''.__( 'Disable dynamic population of categories, tags and authors in the Shortcode Builder.Recommended if you have a large number of categories, tags and/or authors.', 'ajax-load-more' ).' ';
-
- echo $html;
-}
-
-/**
- * The type of container ul or div
- *
- * @since 2.0.0
- */
-function alm_container_type_callback() {
-
- $options = get_option( 'alm_settings' );
-
- if(!isset($options['_alm_container_type'] ) )
- $options['_alm_container_type'] = '1';
-
- $html = ' ';
- $html .= '<ul> <!-- '.__( 'Ajax Posts Here', 'ajax-load-more' ).' --> </ul> ';
-
- $html .= ' ';
- $html .= '<div> <!-- '.__( 'Ajax Posts Here', 'ajax-load-more' ).' --> </div> ';
-
- $html .= ''.__( 'You can modify the container type when building a shortcode.', 'ajax-load-more' ).' ';
-
- echo $html;
-
}
/**
- * Add classes to the Ajax Load More wrapper.
+ * Load Filters add-on scripts.
*
- * @since 2.0.0
+ * @return void
*/
-function alm_class_callback(){
- $options = get_option( 'alm_settings' );
-
- $class = isset( $options ) && isset($options['_alm_classname']) ? $options['_alm_classname'] : '';
-
- $html = ''.__( 'Add custom classes to the .alm-listing container - classes are applied globally and will appear with every instance of Ajax Load More. You can also add classes when building a shortcode. ', 'ajax-load-more' ).' ';
- $html .= ' ';
-
- echo $html;
+function alm_load_filters_admin_scripts() {
+ if ( class_exists( 'ALMFilters' ) ) {
+ ALMFilters::alm_enqueue_filters_admin_scripts();
+ }
}
/**
- * Get button color.
+ * Enqueue Admin CSS & JS.
*
- * @since 2.0.0
+ * @since 2.0.15
*/
-function alm_btn_color_callback() {
-
- $options = get_option( 'alm_settings' );
-
- $type = isset( $options ) && isset($options['_alm_btn_color']) ? $options['_alm_btn_color'] : '';
-
- if(!isset($type)) $options['_alm_btn_color'] = '0';
-
- $selected0 = '';
- if($type == 'default' ) $selected0 = 'selected="selected"';
-
- $selected1 = '';
- if($type == 'blue' ) $selected1 = 'selected="selected"';
-
- $selected2 = '';
- if($type == 'green' ) $selected2 = 'selected="selected"';
-
- $selected3 = '';
- if($type == 'red' ) $selected3 = 'selected="selected"';
+function alm_enqueue_admin_scripts() {
+ // Admin CSS.
+ wp_enqueue_style( 'alm-admin', ALM_ADMIN_URL . 'dist/css/admin.css', '', ALM_VERSION );
+ wp_enqueue_style( 'alm-core', ALM_URL . '/core/dist/css/ajax-load-more.css', '', ALM_VERSION );
- $selected4 = '';
- if($type == 'purple' ) $selected4 = 'selected="selected"';
+ // Disable ACF select2 on ALM pages.
+ wp_dequeue_style( 'acf-input' );
- $selected5 = '';
- if($type == 'grey' ) $selected5 = 'selected="selected"';
+ // CodeMirror Syntax Highlighting if on Repater Template page.
+ $screen = get_current_screen();
+ if ( in_array( $screen->id, array( 'ajax-load-more_page_ajax-load-more-repeaters' ), true ) ) {
- $selected6 = '';
- if($type == 'white' ) $selected6 = 'selected="selected"';
+ // CodeMirror CSS.
+ wp_enqueue_style( 'alm-codemirror-css', ALM_ADMIN_URL . 'codemirror/lib/codemirror.css', '', ALM_VERSION );
- $selected13 = '';
- if($type == 'light-grey' ) $selected13 = 'selected="selected"';
+ // CodeMirror JS.
+ wp_enqueue_script( 'alm-codemirror', ALM_ADMIN_URL . 'codemirror/lib/codemirror.js', '', ALM_VERSION, false );
+ wp_enqueue_script( 'alm-codemirror-matchbrackets', ALM_ADMIN_URL . 'codemirror/addon/edit/matchbrackets.js', '', ALM_VERSION, false );
+ wp_enqueue_script( 'alm-codemirror-htmlmixed', ALM_ADMIN_URL . 'codemirror/mode/htmlmixed/htmlmixed.js', '', ALM_VERSION, false );
+ wp_enqueue_script( 'alm-codemirror-xml', ALM_ADMIN_URL . 'codemirror/mode/xml/xml.js', '', ALM_VERSION, false );
+ wp_enqueue_script( 'alm-codemirror-javascript', ALM_ADMIN_URL . 'codemirror/mode/javascript/javascript.js', '', ALM_VERSION, false );
+ wp_enqueue_script( 'alm-codemirror-mode-css', ALM_ADMIN_URL . 'codemirror/mode/css/css.js', '', ALM_VERSION, false );
+ wp_enqueue_script( 'alm-codemirror-clike', ALM_ADMIN_URL . 'codemirror/mode/clike/clike.js', '', ALM_VERSION, false );
+ wp_enqueue_script( 'alm-codemirror-php', ALM_ADMIN_URL . 'codemirror/mode/php/php.js', '', ALM_VERSION, false );
- $selected7 = '';
- if($type == 'infinite classic' ) $selected7 = 'selected="selected"';
-
- $selected8 = '';
- if($type == 'infinite skype' ) $selected8 = 'selected="selected"';
-
- $selected9 = '';
- if($type == 'infinite ring' ) $selected9 = 'selected="selected"';
-
- $selected10 = '';
- if($type == 'infinite fading-blocks' ) $selected10 = 'selected="selected"';
-
- $selected11 = '';
- if($type == 'infinite fading-circles' ) $selected11 = 'selected="selected"';
-
- $selected12 = '';
- if($type == 'infinite chasing-arrows' ) $selected12 = 'selected="selected"';
-
- $html = ''.__( 'Select an Ajax loading style - you can choose between a Button or Infinite Scroll ', 'ajax-load-more' );
- $html .= '.Selecting an Infinite Scroll style will remove the click interaction and load content on scroll only . ';
- $html .= ' ';
- $html .= '';
-
- $html .= '';
- $html .= 'Default ';
- $html .= 'Blue ';
- $html .= 'Green ';
- $html .= 'Purple ';
- $html .= 'Grey ';
- $html .= ' ';
- $html .= '';
- $html .= 'White ';
- $html .= 'Light Grey ';
- $html .= ' ';
-
- $html .= '';
- $html .= 'Classic ';
- $html .= 'Skype ';
- $html .= 'Circle Fill ';
- $html .= 'Fading Blocks ';
- $html .= 'Fading Circles ';
- $html .= 'Chasing Arrows ';
- $html .= ' ';
-
- $html .= ' ';
-
- // Set loading class for infinite type only
- $loadingClass = (strpos($type, 'infinite' ) !== false) ? ' loading' : '';
-
- $html .= '
';
- $html .= '';
- $html .='
'.__( 'Click to Preview', 'ajax-load-more' ) .' ';
- $html .= '
';
- $html .= ''.apply_filters( 'alm_button_label', __( 'Load More', 'ajax-load-more' )).' ';
- $html .= '
';
- $html .= '
';
-
- echo $html;
-}
-
-/**
- * Load CSS Inline vs the head
- *
- * @since 3.3.1
- */
-function alm_inline_css_callback(){
- $options = get_option( 'alm_settings' );
- if(!isset($options['_alm_inline_css'] ) )
- $options['_alm_inline_css'] = '1';
+ }
- $html = ' ';
- $html .= ' ';
- $html .= ''.__( 'Improve site performance by loading Ajax Load More CSS inline.', 'ajax-load-more' ).' ';
+ // Admin JS.
+ wp_enqueue_script( 'jquery-form' );
+ wp_enqueue_script( 'alm-admin', ALM_ADMIN_URL . 'dist/js/admin.js', array( 'jquery' ), ALM_VERSION, false );
+ wp_enqueue_script( 'alm-shortcode-builder', ALM_ADMIN_URL . 'shortcode-builder/js/shortcode-builder.js', array( 'jquery' ), ALM_VERSION, false );
- echo $html;
}
/**
- * Add classes to the Ajax Load More button
+ * Get taxonomy terms for shortcode builder and return HTML markup.
*
- * @since 2.4.1
+ * @since 2.1.0
*/
-function alm_btn_class_callback(){
- $options = get_option( 'alm_settings' );
-
- if(!isset($options['_alm_btn_classname'] ) )
- $options['_alm_btn_classname'] = '';
+function alm_get_tax_terms() {
+ $form_data = filter_input_array( INPUT_GET );
- $html = ''.__( 'Add classes to your Load More button.', 'ajax-load-more' ).' ';
- $html .= ' ';
-
- echo $html;
- ?>
-
- ' . __( 'Enter custom JavaScript code.', 'ajax-load-more') . '';
- $html .= '';
- $html .= '' . __( 'JavaScript will be rendered with every Ajax Load More instance.', 'ajax-load-more' ) . ' ';
-
- echo $html;
-}
+ if ( ! current_user_can( 'edit_theme_options' ) || ! isset( $form_data['nonce'] ) ) {
+ // Bail early if missing WP capabilities or nonce.
+ wp_die( esc_attr__( 'You don\'t belong here.', 'ajax-load-more' ) );
+ }
-/**
- * Move window to top of screen on page load.
- *
- * @since 2.6.0
-*/
-function _alm_scroll_top_callback(){
- $options = get_option( 'alm_settings' );
- if(!isset($options['_alm_scroll_top'] ) )
- $options['_alm_scroll_top'] = '0';
-
- $html = ' ';
- $html .= ' ';
- $html .= '';
- $html .= __( 'On initial page load, move the user\'s browser window to the top of the screen.', 'ajax-load-more' );
- $html .= ''. __( 'This may help prevent the loading of unnecessary posts.', 'ajax-load-more' ) .' ';
- $html .= ' ';
-
- echo $html;
-}
+ if ( ! wp_verify_nonce( $form_data['nonce'], 'alm_repeater_nonce' ) ) {
+ // Verify nonce.
+ wp_die( esc_attr__( 'Error - unable to verify nonce, please try again.', 'ajax-load-more' ) );
+ }
-/**
- * Disable REST API in favor of admin-ajax.php.
- *
- * @since 5.1
- */
-function alm_use_rest_api_callback(){
- $options = get_option( 'alm_settings' );
- if(!isset($options['_alm_use_rest_api'] ) )
- $options['_alm_use_rest_api'] = '0';
-
- $html = ' ';
- $html .= ' ';
- $html .= '';
- $html .= __( 'Disable REST API.', 'ajax-load-more' );
- $html .= ''. __( 'Use `admin-ajax.php` in favour of the WordPress REST API for all Ajax requests.', 'ajax-load-more' ) .' ';
- $html .= ' ';
-
- echo $html;
-}
+ $taxonomy = isset( $form_data['taxonomy'] ) ? esc_attr( $form_data['taxonomy'] ) : '';
+ $index = isset( $form_data['index'] ) ? esc_attr( $form_data['index'] ) : '1';
+ $tax_args = array(
+ 'orderby' => 'name',
+ 'order' => 'ASC',
+ 'hide_empty' => false,
+ );
-/**
- * Load legacy callback actions.
- *
- * @since 5.0.0
- */
-function alm_legacy_callbacks_callback(){
- $options = get_option( 'alm_settings' );
- if(!isset($options['_alm_legacy_callbacks'] ) )
- $options['_alm_legacy_callbacks'] = '0';
-
- $html = ' ';
- $html .= ' ';
- $html .= '';
- $html .= __( 'Load legacy JavaScript callback functions.', 'ajax-load-more' );
- $html .= ''. __( 'Ajax Load More callback functions were updated in 5.0. Users who were using callbacks prior to ALM 5.0 can load this helper library to maintain compatibility.', 'ajax-load-more' ) .' ';
- $html .= ' ';
-
- echo $html;
+ $terms = get_terms( $taxonomy, $tax_args );
+ $value = '';
+ if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
+ $value .= '';
+ echo $value; // phpcs:ignore
+ wp_die();
+ } else {
+ echo "No terms exist within this taxonomy
";
+ wp_die();
+ }
}
+add_action( 'wp_ajax_alm_get_tax_terms', 'alm_get_tax_terms' );
/**
- * Remove all ALM data on uninstall.
+ * Filter the WP Admin footer text only on ALM pages
*
- * @since 4.1.0
+ * @param string $text The existing footer text.
+ * @since 2.12.0
*/
-function alm_uninstall_callback(){
- $options = get_option( 'alm_settings' );
-
- if(!isset($options['_alm_uninstall'] ) )
- $options['_alm_uninstall'] = '0';
+function alm_filter_admin_footer_text( $text ) {
+ $screen = alm_is_admin_screen();
- $html = ' ';
- $html .= ' ';
- $html .= ''.__( 'Check this box if Ajax Load More should remove all of its data* when the plugin is deleted.', 'ajax-load-more' );
- $html .= ''. __( '* Database Tables, Options and Repeater Templates', 'ajax-load-more' ) .' ';
- $html .= ' ';
+ if ( ! $screen ) {
+ return;
+ }
- echo $html;
+ echo 'Ajax Load More is made with ♥ by Connekt | Leave a Review | Get Support ';
+ if ( ! has_action( 'alm_pro_installed' ) ) {
+ echo ' | Go Pro ';
+ }
}
+add_filter( 'admin_footer_text', 'alm_filter_admin_footer_text' ); // Admin menu text.
diff --git a/admin/classes/class-nag.php b/admin/classes/class-nag.php
index e481df8..267fc2f 100644
--- a/admin/classes/class-nag.php
+++ b/admin/classes/class-nag.php
@@ -1,5 +1,7 @@
catch_hide_notice();
- // bind nag
$this->bind();
}
-
/**
* Catch the hide nag request
*/
@@ -48,7 +47,6 @@ private function catch_hide_notice() {
}
}
-
/**
* Bind nag message
*/
@@ -70,7 +68,6 @@ private function bind() {
}
}
-
/**
* Get the install data
*
@@ -85,19 +82,18 @@ private function get_install_date() {
return new DateTime( $date_string );
}
-
/**
* Parse the admin query string
*
* @return array
*/
private function get_admin_querystring_array() {
- parse_str( $_SERVER['QUERY_STRING'], $params );
-
- return $params;
+ if ( isset( $_SERVER['QUERY_STRING'] ) ) {
+ parse_str( $_SERVER['QUERY_STRING'], $params );
+ return $params;
+ }
}
-
/**
* Insert the install date
*
@@ -112,23 +108,19 @@ public static function insert_install_date() {
}
}
-
/**
* Display the admin notice
*/
public function display_admin_notice() {
-
$query_params = $this->get_admin_querystring_array();
$query_string = '?' . http_build_query( array_merge( $query_params, array( ALM_Nag::OPTION_ADMIN_NOTICE_KEY => '1' ) ) );
echo '';
-
}
}
-
function alm_nag_notice() {
$alm_nag = new ALM_NAG();
$alm_nag->setup();
diff --git a/admin/dist/css/admin.css b/admin/dist/css/admin.css
index 74f0237..8f54ce7 100644
--- a/admin/dist/css/admin.css
+++ b/admin/dist/css/admin.css
@@ -1,12 +1,12 @@
-@import '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css';
-/* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */
+@import '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'; /* This is the default Tooltipster theme (feel free to modify or duplicate and create multiple themes!): */
.tooltipster-default {
border-radius: 3px;
border: 2px solid #222;
border: none;
background: #0073aa;
background: rgba(33, 149, 204, 0.95);
- color: #e7f3f8; }
+ color: #e7f3f8;
+}
/* Use this next selector to style things like font-size and line-height: */
.tooltipster-default .tooltipster-content {
@@ -14,16 +14,19 @@
line-height: 20px;
padding: 12px 16px;
overflow: hidden;
- text-align: center; }
+ text-align: center;
+}
/* This next selector defines the color of the border on the outside of the arrow. This will automatically match the color and size of the border set on the main tooltip styles. Set display: none; if you would like a border around the tooltip but no border around the arrow */
.tooltipster-default .tooltipster-arrow .tooltipster-arrow-border {
- /* border-color: ... !important; */ }
+ /* border-color: ... !important; */
+}
/* If you're using the icon option, use this next selector to style them */
.tooltipster-icon {
cursor: help;
- margin-left: 4px; }
+ margin-left: 4px;
+}
/* This is the base styling required to make all Tooltipsters work */
.tooltipster-base {
@@ -36,10 +39,12 @@
z-index: 9999999;
pointer-events: none;
width: auto;
- overflow: visible; }
+ overflow: visible;
+}
.tooltipster-base .tooltipster-content {
- overflow: hidden; }
+ overflow: hidden;
+}
/* These next classes handle the styles for the little arrow attached to the tooltip. By default, the arrow will inherit the same colors and border as what is set on the main tooltip itself. */
.tooltipster-arrow {
@@ -50,54 +55,65 @@
position: absolute;
top: 0;
left: 0;
- z-index: -1; }
+ z-index: -1;
+}
.tooltipster-arrow span, .tooltipster-arrow-border {
display: block;
width: 0;
height: 0;
- position: absolute; }
+ position: absolute;
+}
.tooltipster-arrow-top span, .tooltipster-arrow-top-right span, .tooltipster-arrow-top-left span {
border-left: 8px solid transparent !important;
border-right: 8px solid transparent !important;
border-top: 8px solid;
- bottom: -7px; }
+ bottom: -7px;
+}
.tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-top-left .tooltipster-arrow-border {
border-left: 9px solid transparent !important;
border-right: 9px solid transparent !important;
border-top: 9px solid;
- bottom: -7px; }
+ bottom: -7px;
+}
.tooltipster-arrow-bottom span, .tooltipster-arrow-bottom-right span, .tooltipster-arrow-bottom-left span {
border-left: 8px solid transparent !important;
border-right: 8px solid transparent !important;
border-bottom: 8px solid;
- top: -7px; }
+ top: -7px;
+}
.tooltipster-arrow-bottom .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border {
border-left: 9px solid transparent !important;
border-right: 9px solid transparent !important;
border-bottom: 9px solid;
- top: -7px; }
+ top: -7px;
+}
.tooltipster-arrow-top span, .tooltipster-arrow-top .tooltipster-arrow-border, .tooltipster-arrow-bottom span, .tooltipster-arrow-bottom .tooltipster-arrow-border {
left: 0;
right: 0;
- margin: 0 auto; }
+ margin: 0 auto;
+}
.tooltipster-arrow-top-left span, .tooltipster-arrow-bottom-left span {
- left: 6px; }
+ left: 6px;
+}
.tooltipster-arrow-top-left .tooltipster-arrow-border, .tooltipster-arrow-bottom-left .tooltipster-arrow-border {
- left: 5px; }
+ left: 5px;
+}
.tooltipster-arrow-top-right span, .tooltipster-arrow-bottom-right span {
- right: 6px; }
+ right: 6px;
+}
.tooltipster-arrow-top-right .tooltipster-arrow-border, .tooltipster-arrow-bottom-right .tooltipster-arrow-border {
- right: 5px; }
+ right: 5px;
+}
.tooltipster-arrow-left span, .tooltipster-arrow-left .tooltipster-arrow-border {
border-top: 8px solid transparent !important;
@@ -105,13 +121,15 @@
border-left: 8px solid;
top: 50%;
margin-top: -7px;
- right: -7px; }
+ right: -7px;
+}
.tooltipster-arrow-left .tooltipster-arrow-border {
border-top: 9px solid transparent !important;
border-bottom: 9px solid transparent !important;
border-left: 9px solid;
- margin-top: -8px; }
+ margin-top: -8px;
+}
.tooltipster-arrow-right span, .tooltipster-arrow-right .tooltipster-arrow-border {
border-top: 8px solid transparent !important;
@@ -119,22 +137,26 @@
border-right: 8px solid;
top: 50%;
margin-top: -7px;
- left: -7px; }
+ left: -7px;
+}
.tooltipster-arrow-right .tooltipster-arrow-border {
border-top: 9px solid transparent !important;
border-bottom: 9px solid transparent !important;
border-right: 9px solid;
- margin-top: -8px; }
+ margin-top: -8px;
+}
/* Some CSS magic for the awesome animations - feel free to make your own custom animations and reference it in your Tooltipster settings! */
.tooltipster-fade {
opacity: 0;
-webkit-transition-property: opacity;
- transition-property: opacity; }
+ transition-property: opacity;
+}
.tooltipster-fade-show {
- opacity: 1; }
+ opacity: 1;
+}
.tooltipster-grow {
-webkit-transform: scale(0, 0);
@@ -144,7 +166,8 @@
transition-property: -webkit-transform;
transition-property: transform;
transition-property: transform, -webkit-transform;
- -webkit-backface-visibility: hidden; }
+ -webkit-backface-visibility: hidden;
+}
.tooltipster-grow-show {
-webkit-transform: scale(1, 1);
@@ -152,7 +175,8 @@
transform: scale(1, 1);
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15);
- transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); }
+ transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15);
+}
.tooltipster-swing {
opacity: 0;
@@ -163,7 +187,8 @@
-webkit-transition-property: -webkit-transform;
transition-property: -webkit-transform;
transition-property: transform;
- transition-property: transform, -webkit-transform; }
+ transition-property: transform, -webkit-transform;
+}
.tooltipster-swing-show {
opacity: 1;
@@ -172,7 +197,8 @@
transform: rotateZ(0deg);
-webkit-transition-timing-function: cubic-bezier(0.23, 0.635, 0.495, 1);
-webkit-transition-timing-function: cubic-bezier(0.23, 0.635, 0.495, 2.4);
- transition-timing-function: cubic-bezier(0.23, 0.635, 0.495, 2.4); }
+ transition-timing-function: cubic-bezier(0.23, 0.635, 0.495, 2.4);
+}
.tooltipster-fall {
top: 0;
@@ -180,13 +206,15 @@
transition-property: top;
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15);
- transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); }
+ transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15);
+}
.tooltipster-fall.tooltipster-dying {
-webkit-transition-property: all;
transition-property: all;
top: 0px !important;
- opacity: 0; }
+ opacity: 0;
+}
.tooltipster-slide {
left: -40px;
@@ -194,20 +222,23 @@
transition-property: left;
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
-webkit-transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15);
- transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15); }
+ transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.15);
+}
.tooltipster-slide.tooltipster-dying {
-webkit-transition-property: all;
transition-property: all;
left: 0px !important;
- opacity: 0; }
+ opacity: 0;
+}
/* CSS transition for when contenting is changing in a tooltip that is still open. The only properties that will NOT transition are: width, height, top, and left */
.tooltipster-content-changing {
opacity: 0.5;
-webkit-transform: scale(1.1, 1.1);
-ms-transform: scale(1.1, 1.1);
- transform: scale(1.1, 1.1); }
+ transform: scale(1.1, 1.1);
+}
/*
* Select2 - form replacement - http://ivaynberg.github.io/select2/
@@ -220,14 +251,17 @@
zoom: 1;
*display: inline;
vertical-align: middle;
- min-width: 60%; }
+ min-width: 60%;
+}
.inner.half .select2-container {
min-width: 90%;
- width: 90%; }
+ width: 90%;
+}
#alm-builder .select2-container li {
- padding-right: 0; }
+ padding-right: 0;
+}
.select2-container a.select2-choice {
display: block;
@@ -236,7 +270,7 @@
padding: 0 0 0 10px;
overflow: hidden;
position: relative;
- border: 1px solid #e1e1e1;
+ border: 1px solid #e7e7e7;
white-space: nowrap;
color: #393d41;
text-decoration: none;
@@ -250,14 +284,17 @@
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
- font-size: 13px; }
+ font-size: 13px;
+}
.select2-dropdown-open.select2-container-active .select2-choice {
- border-radius: 4px 4px 0 0; }
+ border-radius: 4px 4px 0 0;
+}
.select2-container.select2-drop-above .select2-choice {
background: #fff;
- border-radius: 0 0 4px 4px; }
+ border-radius: 0 0 4px 4px;
+}
.select2-container .select2-choice span {
padding-right: 40px;
@@ -267,11 +304,13 @@
overflow: hidden;
white-space: nowrap;
color: #666;
- text-overflow: ellipsis; }
+ text-overflow: ellipsis;
+}
.select2-container .select2-choice abbr:hover {
background-position: right -11px;
- cursor: pointer; }
+ cursor: pointer;
+}
.select2-drop-mask {
position: absolute;
@@ -279,7 +318,8 @@
top: 0;
z-index: 8;
background-color: #fff;
- opacity: 0; }
+ opacity: 0;
+}
.select2-drop {
overflow: hidden;
@@ -289,16 +329,18 @@
top: 100%;
background: #fff;
color: #393d41;
- border: 1px solid #e1e1e1;
+ border: 1px solid #e7e7e7;
border-radius: 3px;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
font-size: 13px;
overflow: hidden;
margin-top: 2px;
- margin-left: -1px; }
- .select2-drop.select2-drop-above {
- margin-top: -2px; }
+ margin-left: -1px;
+}
+.select2-drop.select2-drop-above {
+ margin-top: -2px;
+}
.select2-container .select2-choice div {
display: block;
@@ -306,57 +348,68 @@
height: 100%;
position: absolute;
right: 0;
- top: 0; }
+ top: 0;
+}
.select2-container .select2-choice div b {
display: block;
width: 100%;
height: 100%;
- background: #fff url("../../img/bkg-select.png") no-repeat center center; }
+ background: #fff url("../../img/bkg-select.png") no-repeat center center;
+}
.select2-dropdown-open.select2-container-active div b {
display: block;
width: 100%;
height: 100%;
- background-color: #fff; }
+ background-color: #fff;
+}
/* Search */
.select2-search {
padding: 5px;
display: block;
background-color: #fff;
- border-bottom: 1px solid #f7f7f7; }
- .select2-search .select2-input {
- width: 99%;
- height: 35px !important;
- line-height: 35px !important;
- -webkit-box-shadow: none !important;
- box-shadow: none !important;
- background: #fff url("../../img/icon-search.png") no-repeat right 7px center;
- background-size: 16px 16px; }
+ border-bottom: 1px solid #f7f7f7;
+}
+.select2-search .select2-input {
+ width: 99%;
+ height: 35px !important;
+ line-height: 35px !important;
+ -webkit-box-shadow: none !important;
+ box-shadow: none !important;
+ background: #fff url("../../img/icon-search.png") no-repeat right 7px center;
+ background-size: 16px 16px;
+}
/* Multi select box */
#alm-builder .select2-choices li {
- margin: 0 0 2px; }
+ margin: 0 0 2px;
+}
#alm-builder .select2-container-multi {
- width: 60%; }
+ width: 60%;
+}
#alm-builder .select2-results li {
- width: 100%; }
+ width: 100%;
+}
#alm-builder .select2-container-multi .select2-input {
cursor: pointer;
- margin: 0 !important; }
+ margin: 0 !important;
+}
#alm-builder ul.select2-choices {
width: 100%;
- overflow: hidden; }
+ overflow: hidden;
+}
#alm-builder ul.select2-choices li.select2-search-field,
#alm-builder ul.select2-choices li.select2-search-field input {
width: 100% !important;
- display: block; }
+ display: block;
+}
/* Selected Choice */
#alm-builder ul.select2-choices li.select2-search-choice {
@@ -367,15 +420,18 @@
padding: 5px 10px 5px 27px;
border-radius: 3px;
background: #fff;
- border: 1px solid #e1e1e1;
+ border: 1px solid #e7e7e7;
width: auto;
- position: relative; }
+ position: relative;
+}
#alm-builder ul.select2-choices .select2-input {
- background: #fff url("../../img/bkg-select.png") no-repeat right center; }
- #alm-builder ul.select2-choices .select2-input.select2-focused {
- background: #fff url("../../img/icon-search.png") no-repeat right 7px center;
- background-size: 16px 16px; }
+ background: #fff url("../../img/bkg-select.png") no-repeat right center;
+}
+#alm-builder ul.select2-choices .select2-input.select2-focused {
+ background: #fff url("../../img/icon-search.png") no-repeat right 7px center;
+ background-size: 16px 16px;
+}
#alm-builder ul.select2-choices li.select2-search-choice a {
position: absolute;
@@ -385,9 +441,11 @@
height: 17px;
background: #393d41 url("../../img/ico-close.png") no-repeat center center;
display: block;
- border-radius: 3px; }
- #alm-builder ul.select2-choices li.select2-search-choice a:hover, #alm-builder ul.select2-choices li.select2-search-choice a:focus {
- background-color: #c71316; }
+ border-radius: 3px;
+}
+#alm-builder ul.select2-choices li.select2-search-choice a:hover, #alm-builder ul.select2-choices li.select2-search-choice a:focus {
+ background-color: #c71316;
+}
/* results UL */
.select2-results {
@@ -397,11 +455,13 @@
position: relative;
overflow-x: hidden;
overflow-y: auto;
- -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+}
.select2-result-sub {
margin: 0;
- padding: 0; }
+ padding: 0;
+}
.select2-results li {
list-style: none;
@@ -412,15 +472,18 @@
border-top: 1px solid #f7f7f7;
color: #393d41;
width: auto;
- font-size: 13px; }
- .select2-results li:first-of-type {
- border: none; }
+ font-size: 13px;
+}
+.select2-results li:first-of-type {
+ border: none;
+}
.select2-results li.select2-result-with-children > .select2-result-label {
font-weight: 700;
font-size: 13px;
cursor: default;
- border-bottom: 1px solid #f7f7f7; }
+ border-bottom: 1px solid #f7f7f7;
+}
.select2-results .select2-result-label {
margin: 0;
@@ -431,37 +494,45 @@
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
- user-select: none; }
+ user-select: none;
+}
.select2-results .select2-highlighted .select2-result-label {
/* Hover */
background: #f7f7f7;
- color: #3784c2; }
+ color: #3784c2;
+}
.select2-results .select2-highlighted:active {
- background: #fff; }
+ background: #fff;
+}
.select2-results li em {
background: #feffde;
- font-style: normal; }
+ font-style: normal;
+}
.select2-results .select2-highlighted em {
- background: transparent; }
+ background: transparent;
+}
.select2-results .select2-highlighted ul {
background: white;
- color: #000; }
+ color: #000;
+}
.select2-results .select2-no-results,
.select2-results .select2-searching,
.select2-results .select2-selection-limit {
background: #f4f4f4;
- display: list-item; }
+ display: list-item;
+}
.select2-results .select2-no-results {
min-height: 1em;
padding: 10px 7px;
- font-size: 13px; }
+ font-size: 13px;
+}
/*
disabled look for disabled choices in the results dropdown
@@ -470,34 +541,41 @@ disabled look for disabled choices in the results dropdown
color: #666;
background: #f4f4f4;
display: list-item;
- cursor: default; }
+ cursor: default;
+}
.select2-results .select2-disabled {
background: #f4f4f4;
display: list-item;
- cursor: default; }
+ cursor: default;
+}
.select2-results .select2-selected {
- display: none; }
+ display: none;
+}
.select2-more-results {
background: #f4f4f4;
- display: list-item; }
+ display: list-item;
+}
/* disabled styles */
.select2-container.select2-container-disabled .select2-choice {
background-color: #f4f4f4;
background-image: none;
border: 1px solid #ddd;
- cursor: default; }
+ cursor: default;
+}
.select2-container.select2-container-disabled .select2-choice div {
background-color: #f4f4f4;
background-image: none;
- border-left: 0; }
+ border-left: 0;
+}
.select2-container.select2-container-disabled .select2-choice abbr {
- display: none; }
+ display: none;
+}
.select2-offscreen {
border: 0;
@@ -508,380 +586,559 @@ disabled look for disabled choices in the results dropdown
padding: 0;
position: absolute;
width: 1px;
- left: 0; }
+ left: 0;
+}
.ajax-load-more .header-wrap {
position: relative;
- z-index: 1; }
+ z-index: 1;
+}
+.ajax-load-more .header-wrap h1 {
+ padding: 20px 20px 20px 80px;
+ margin: 0;
+ min-height: 48px;
+ background: #fff url("../../img/alm-logo-48x48.png") no-repeat 20px 20px;
+ background: #fff url("../../img/alm-logo-48x48.svg") no-repeat 20px 20px;
+ font-size: 18px;
+ font-weight: 800;
+ border-bottom: 1px solid #efefef;
+ width: 100%;
+}
+@media screen and (max-width: 900px) {
.ajax-load-more .header-wrap h1 {
- padding: 20px 20px 20px 80px;
- margin: 0;
- min-height: 48px;
- background: #fff url("../../img/alm-logo-48x48.png") no-repeat 20px 20px;
- background: #fff url("../../img/alm-logo-48x48.svg") no-repeat 20px 20px;
- font-size: 18px;
- font-weight: 800;
- border-bottom: 1px solid #e1e1e1;
- width: 100%; }
- @media screen and (min-width: 768px) {
- .ajax-load-more .header-wrap h1 {
- font-size: 21px; } }
- .ajax-load-more .header-wrap h1 em {
- display: block;
- position: relative;
- font-size: 13px;
- color: #6a7178;
- font-style: normal;
- font-weight: 400;
- line-height: 1.3;
- padding: 1px 0 0;
- margin: 0; }
- @media screen and (min-width: 768px) {
- .ajax-load-more .header-wrap h1 em {
- font-size: 14px; } }
- .ajax-load-more .header-wrap h1 strong {
- font-weight: 600; }
- .ajax-load-more .header-wrap h1 span {
- color: #fff;
- font-weight: 400;
- margin: 0 0 0 5px;
- vertical-align: top;
- font-size: 12px;
- background-color: #3784c2;
- border-radius: 3px;
- padding: 2px 5px;
- display: inline-block;
- line-height: 1.45;
- position: relative;
- top: 3px; }
- .ajax-load-more .header-wrap .notice {
- margin: 20px; }
+ border-bottom: 1px solid #e7e7e7;
+ }
+}
+@media screen and (min-width: 768px) {
+ .ajax-load-more .header-wrap h1 {
+ font-size: 21px;
+ }
+}
+.ajax-load-more .header-wrap h1 em {
+ display: block;
+ position: relative;
+ font-size: 13px;
+ color: #6a7178;
+ font-style: normal;
+ font-weight: 400;
+ line-height: 1.3;
+ padding: 1px 0 0;
+ margin: 0;
+}
+@media screen and (min-width: 768px) {
+ .ajax-load-more .header-wrap h1 em {
+ font-size: 14px;
+ }
+}
+.ajax-load-more .header-wrap h1 strong {
+ font-weight: 600;
+}
+.ajax-load-more .header-wrap h1 span {
+ color: #fff;
+ font-weight: 400;
+ margin: 0 0 0 5px;
+ vertical-align: top;
+ font-size: 12px;
+ background-color: #3784c2;
+ border-radius: 3px;
+ padding: 2px 5px;
+ display: inline-block;
+ line-height: 1.45;
+ position: relative;
+ top: 3px;
+}
+.ajax-load-more .header-wrap nav {
+ position: relative;
+ z-index: 2;
+ scroll-behavior: smooth;
+ background-color: #fff;
+ border-bottom: 1px solid #e7e7e7;
+ padding: 0 5px 1px;
+}
+@media screen and (max-width: 900px) {
+ .ajax-load-more .header-wrap nav {
+ display: none;
+ }
+}
+.ajax-load-more .header-wrap nav ul {
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -ms-flex-wrap: nowrap;
+ flex-wrap: nowrap;
+ width: 100%;
+ overflow-x: auto;
+ overflow-y: hidden;
+ scroll-behavior: smooth;
+ -webkit-overflow-scrolling: touch;
+ white-space: nowrap;
+ margin-block: 0;
+ padding: 0 15px;
+}
+.ajax-load-more .header-wrap nav ul::-webkit-scrollbar {
+ height: 6px;
+ width: 6px;
+ background: #fff;
+}
+.ajax-load-more .header-wrap nav ul::-webkit-scrollbar-thumb:horizontal {
+ background: #e7e7e7;
+ border-radius: 10px;
+}
+.ajax-load-more .header-wrap nav ul::-webkit-scrollbar-thumb:horizontal:hover {
+ background-color: #ccc;
+}
+.ajax-load-more .header-wrap nav ul .wp-submenu-head {
+ display: none;
+}
+.ajax-load-more .header-wrap nav ul li {
+ margin: 0;
+ padding: 0;
+}
+.ajax-load-more .header-wrap nav ul li a {
+ display: block;
+ padding: 15px 10px;
+ white-space: nowrap;
+ color: #6a7178;
+ text-decoration: none;
+}
+@media screen and (min-width: 1400px) {
+ .ajax-load-more .header-wrap nav ul li a {
+ padding: 15px;
+ }
+}
+.ajax-load-more .header-wrap nav ul li a.current {
+ background-color: #fff;
+ color: #000;
+ font-weight: 600;
+}
+.ajax-load-more .header-wrap nav ul li a span {
+ border: none !important;
+ padding: 0 !important;
+}
+.ajax-load-more .header-wrap nav ul li a span.dashicons {
+ opacity: 0.35 !important;
+ display: none;
+}
+@media screen and (min-width: 1400px) {
+ .ajax-load-more .header-wrap nav ul li a span.dashicons {
+ display: inline-block;
+ }
+}
+.ajax-load-more .header-wrap nav ul li a:hover, .ajax-load-more .header-wrap nav ul li a:focus {
+ background-color: #fff;
+ color: #393d41;
+}
+.ajax-load-more .header-wrap .notice {
+ margin: 20px;
+}
/* Pro Add-on Listing */
.alm-pro-listing {
padding: 0;
border-top: none;
position: relative;
- padding-bottom: 20px; }
- .alm-pro-listing .loader {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- z-index: 99;
- display: none; }
- .alm-pro-listing.loading .loader {
- display: block; }
- .alm-pro-listing--header {
- border: 1px solid #e1e1e1;
- background: #f7f7f7;
- padding: 18px;
- font-size: 13px;
- font-weight: 600;
- text-transform: uppercase;
- color: #23282d;
- position: relative;
- margin-bottom: 30px;
- border-radius: 2px; }
- .alm-pro-listing--header div {
- position: absolute;
- right: 15px;
- top: 50%;
- -webkit-transform: translateY(-50%);
- -ms-transform: translateY(-50%);
- transform: translateY(-50%);
- font-size: 13px;
- opacity: 0.7;
- font-weight: normal;
- text-transform: none;
- font-style: italic; }
- @media screen and (max-width: 480px) {
- .alm-pro-listing--header div {
- display: none; } }
- .alm-pro-listing--wrap {
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap;
- width: calc(100% + 10px);
- margin-left: -5px; }
+ padding-bottom: 20px;
+}
+.alm-pro-listing .loader {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ z-index: 99;
+ display: none;
+}
+.alm-pro-listing.loading .loader {
+ display: block;
+}
+.alm-pro-listing--header {
+ border: 1px solid #e1e1e1;
+ background: #f7f7f7;
+ padding: 18px;
+ font-size: 13px;
+ font-weight: 600;
+ text-transform: uppercase;
+ color: #23282d;
+ position: relative;
+ margin-bottom: 30px;
+ border-radius: 2px;
+}
+.alm-pro-listing--header div {
+ position: absolute;
+ right: 15px;
+ top: 50%;
+ -webkit-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%);
+ font-size: 13px;
+ opacity: 0.7;
+ font-weight: normal;
+ text-transform: none;
+ font-style: italic;
+}
+@media screen and (max-width: 480px) {
+ .alm-pro-listing--header div {
+ display: none;
+ }
+}
+.alm-pro-listing--wrap {
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -ms-flex-wrap: wrap;
+ flex-wrap: wrap;
+ width: calc(100% + 10px);
+ margin-left: -5px;
+}
+.alm-pro-listing .item {
+ width: calc(50% - 10px);
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ margin: 0 5px 10px;
+}
+@media screen and (min-width: 1500px) {
.alm-pro-listing .item {
- width: calc(50% - 10px);
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- margin: 0 5px 10px; }
- @media screen and (min-width: 1500px) {
- .alm-pro-listing .item {
- width: calc(33.333% - 10px); } }
- @media screen and (max-width: 480px) {
- .alm-pro-listing .item {
- width: 100%;
- margin: 0 0 10px; } }
- .alm-pro-listing .item h2, .alm-pro-listing .item p, .alm-pro-listing .item img, .alm-pro-listing .item .state {
- -webkit-transition: all 0.15s ease;
- transition: all 0.15s ease; }
- .alm-pro-listing .item a {
- text-decoration: none !important;
- padding: 0 55px 0 0;
- position: relative;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- border: 1px solid #e1e1e1;
- -webkit-transition: all 0.15s ease;
- transition: all 0.15s ease;
- border-radius: 2px; }
- @media screen and (max-width: 1100px) {
- .alm-pro-listing .item a {
- padding: 0 10px 20px; } }
- .alm-pro-listing .item a:hover, .alm-pro-listing .item a:focus {
- border-color: #bbb; }
- .alm-pro-listing .item a:hover h2, .alm-pro-listing .item a:focus h2 {
- text-decoration: none; }
- .alm-pro-listing .item--detail {
- padding: 20px;
- position: relative;
- min-height: 110px;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: start;
- -ms-flex-align: start;
- align-items: flex-start; }
- @media screen and (max-width: 1100px) {
- .alm-pro-listing .item--detail {
- display: block;
- text-align: center; }
- .alm-pro-listing .item--detail img {
- padding-bottom: 20px; } }
- .alm-pro-listing .item--detail div {
- padding: 0; }
- .alm-pro-listing .item--detail img {
- width: 110px;
- height: auto;
- margin-right: 20px; }
- .alm-pro-listing .item--detail a {
- text-decoration: none; }
- .alm-pro-listing .item--detail a:hover, .alm-pro-listing .item--detail a:focus {
- text-decoration: none; }
- .alm-pro-listing .item--detail a:hover h2, .alm-pro-listing .item--detail a:focus h2 {
- text-decoration: none; }
- .alm-pro-listing .item--detail h2 {
- margin: 0 0 7px;
- font-size: 16px;
- line-height: 1;
- -webkit-transition: all 0.15s ease;
- transition: all 0.15s ease; }
- .alm-pro-listing .item--detail h2 span {
- font-weight: 400;
- opacity: 0.4;
- font-size: 12px;
- position: relative;
- top: 0;
- left: 3px;
- text-decoration: none !important; }
- .alm-pro-listing .item--detail p {
- margin: 0;
- padding: 0;
- font-size: 14px; }
- .alm-pro-listing .item--detail p.link {
- font-size: 13px;
- padding-top: 2px;
- opacity: 0;
- -webkit-transition: opacity 0.15s ease;
- transition: opacity 0.15s ease; }
- .alm-pro-listing .item--detail .highlight-addon {
- padding-top: 15px;
- font-size: 12px;
- margin: 0; }
- .alm-pro-listing .item--detail .highlight-addon span {
- display: inline-block;
- padding: 5px;
- position: relative;
- left: -5px;
- line-height: 1;
- background-color: #ffffe8;
- font-weight: 500; }
- .alm-pro-listing .item .result {
- position: absolute;
- right: 6px;
- bottom: 6px;
- font-size: 12px;
- opacity: 0;
- -webkit-transition: all 0.25s ease;
- transition: all 0.25s ease; }
- .alm-pro-listing .item .result.in-view {
- opacity: 0.7; }
- .alm-pro-listing .item .result .type {
- background: #47bd79;
- color: #fff;
- display: none;
- border-radius: 2px;
- padding: 3px 6px;
- display: inline-block; }
- .alm-pro-listing .item .result .type.inactive {
- background: #c54545;
- display: none; }
- .alm-pro-listing .item .state {
- width: 22px;
- height: 22px;
- position: absolute;
- right: 6px;
- top: 6px;
- border-radius: 2px;
- background: #57d48c;
- color: #fff;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- -webkit-box-pack: center;
- -ms-flex-pack: center;
- justify-content: center;
- text-decoration: none !important;
- font-size: 12px;
- -webkit-transition: all 0.15s ease;
- transition: all 0.15s ease; }
- .alm-pro-listing .item .state:before {
- font-family: 'FontAwesome';
- content: '\f00c';
- display: block; }
- .alm-pro-listing .item.active a {
- border-color: #57d48c; }
- .alm-pro-listing .item.active:hover .state {
- opacity: 0.9; }
- .alm-pro-listing .item.inactive h2, .alm-pro-listing .item.inactive p, .alm-pro-listing .item.inactive img, .alm-pro-listing .item.inactive .state {
- opacity: 0.5; }
- .alm-pro-listing .item.inactive .state {
- background: #e1e1e1; }
- .alm-pro-listing .item.inactive .state:before {
- opacity: 0; }
- .alm-pro-listing .item.inactive:hover h2, .alm-pro-listing .item.inactive:hover p, .alm-pro-listing .item.inactive:hover img, .alm-pro-listing .item.inactive:hover .state {
- opacity: 0.8; }
- .alm-pro-listing .item.inactive:hover .state {
- background: #ccc; }
- .alm-pro-listing .item.inactive:hover .state:before {
- opacity: 1; }
+ width: calc(33.333% - 10px);
+ }
+}
+@media screen and (max-width: 480px) {
+ .alm-pro-listing .item {
+ width: 100%;
+ margin: 0 0 10px;
+ }
+}
+.alm-pro-listing .item h2, .alm-pro-listing .item p, .alm-pro-listing .item img, .alm-pro-listing .item .state {
+ -webkit-transition: all 0.15s ease;
+ transition: all 0.15s ease;
+}
+.alm-pro-listing .item a {
+ text-decoration: none !important;
+ padding: 0 55px 0 0;
+ position: relative;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ border: 1px solid #e1e1e1;
+ -webkit-transition: all 0.15s ease;
+ transition: all 0.15s ease;
+ border-radius: 2px;
+}
+@media screen and (max-width: 1100px) {
+ .alm-pro-listing .item a {
+ padding: 0 10px 20px;
+ }
+}
+.alm-pro-listing .item a:hover, .alm-pro-listing .item a:focus {
+ border-color: #bbb;
+}
+.alm-pro-listing .item a:hover h2, .alm-pro-listing .item a:focus h2 {
+ text-decoration: none;
+}
+.alm-pro-listing .item--detail {
+ padding: 20px;
+ position: relative;
+ min-height: 110px;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-box-align: start;
+ -ms-flex-align: start;
+ align-items: flex-start;
+}
+@media screen and (max-width: 1100px) {
+ .alm-pro-listing .item--detail {
+ display: block;
+ text-align: center;
+ }
+ .alm-pro-listing .item--detail img {
+ padding-bottom: 20px;
+ }
+}
+.alm-pro-listing .item--detail div {
+ padding: 0;
+}
+.alm-pro-listing .item--detail img {
+ width: 110px;
+ height: auto;
+ margin-right: 20px;
+}
+.alm-pro-listing .item--detail a {
+ text-decoration: none;
+}
+.alm-pro-listing .item--detail a:hover, .alm-pro-listing .item--detail a:focus {
+ text-decoration: none;
+}
+.alm-pro-listing .item--detail a:hover h2, .alm-pro-listing .item--detail a:focus h2 {
+ text-decoration: none;
+}
+.alm-pro-listing .item--detail h2 {
+ margin: 0 0 7px;
+ font-size: 16px;
+ line-height: 1;
+ -webkit-transition: all 0.15s ease;
+ transition: all 0.15s ease;
+}
+.alm-pro-listing .item--detail h2 span {
+ font-weight: 400;
+ opacity: 0.4;
+ font-size: 12px;
+ position: relative;
+ top: 0;
+ left: 3px;
+ text-decoration: none !important;
+}
+.alm-pro-listing .item--detail p {
+ margin: 0;
+ padding: 0;
+ font-size: 14px;
+}
+.alm-pro-listing .item--detail p.link {
+ font-size: 13px;
+ padding-top: 2px;
+ opacity: 0;
+ -webkit-transition: opacity 0.15s ease;
+ transition: opacity 0.15s ease;
+}
+.alm-pro-listing .item--detail .highlight-addon {
+ padding-top: 15px;
+ font-size: 12px;
+ margin: 0;
+}
+.alm-pro-listing .item--detail .highlight-addon span {
+ display: inline-block;
+ padding: 5px;
+ position: relative;
+ left: -5px;
+ line-height: 1;
+ background-color: #ffffe8;
+ font-weight: 500;
+}
+.alm-pro-listing .item .result {
+ position: absolute;
+ right: 6px;
+ bottom: 6px;
+ font-size: 12px;
+ opacity: 0;
+ -webkit-transition: all 0.25s ease;
+ transition: all 0.25s ease;
+}
+.alm-pro-listing .item .result.in-view {
+ opacity: 0.7;
+}
+.alm-pro-listing .item .result .type {
+ background: #47bd79;
+ color: #fff;
+ display: none;
+ border-radius: 2px;
+ padding: 3px 6px;
+ display: inline-block;
+}
+.alm-pro-listing .item .result .type.inactive {
+ background: #c54545;
+ display: none;
+}
+.alm-pro-listing .item .state {
+ width: 22px;
+ height: 22px;
+ position: absolute;
+ right: 6px;
+ top: 6px;
+ border-radius: 2px;
+ background: #57d48c;
+ color: #fff;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+ -webkit-box-pack: center;
+ -ms-flex-pack: center;
+ justify-content: center;
+ text-decoration: none !important;
+ font-size: 12px;
+ -webkit-transition: all 0.15s ease;
+ transition: all 0.15s ease;
+}
+.alm-pro-listing .item .state:before {
+ font-family: "FontAwesome";
+ content: "\f00c";
+ display: block;
+}
+.alm-pro-listing .item.active a {
+ border-color: #57d48c;
+}
+.alm-pro-listing .item.active:hover .state {
+ opacity: 0.9;
+}
+.alm-pro-listing .item.inactive h2, .alm-pro-listing .item.inactive p, .alm-pro-listing .item.inactive img, .alm-pro-listing .item.inactive .state {
+ opacity: 0.5;
+}
+.alm-pro-listing .item.inactive .state {
+ background: #e1e1e1;
+}
+.alm-pro-listing .item.inactive .state:before {
+ opacity: 0;
+}
+.alm-pro-listing .item.inactive:hover h2, .alm-pro-listing .item.inactive:hover p, .alm-pro-listing .item.inactive:hover img, .alm-pro-listing .item.inactive:hover .state {
+ opacity: 0.8;
+}
+.alm-pro-listing .item.inactive:hover .state {
+ background: #ccc;
+}
+.alm-pro-listing .item.inactive:hover .state:before {
+ opacity: 1;
+}
.ajax-load-more .CodeMirror {
height: auto;
border-radius: 3px;
padding: 0;
background: #f7f7f7;
- border: 1px solid #e1e1e1;
+ border: 1px solid #e7e7e7;
color: #999;
line-height: 1.5;
- font-size: 13px; }
- .ajax-load-more .CodeMirror.CodeMirror-focused {
- border-color: #3784c2;
- -webkit-box-shadow: 0 0 4px 1px rgba(55, 132, 194, 0.15);
- box-shadow: 0 0 4px 1px rgba(55, 132, 194, 0.15); }
+ font-size: 13px;
+}
+.ajax-load-more .CodeMirror.CodeMirror-focused {
+ border-color: #3784c2;
+ -webkit-box-shadow: 0 0 4px 1px rgba(55, 132, 194, 0.15);
+ box-shadow: 0 0 4px 1px rgba(55, 132, 194, 0.15);
+}
.ajax-load-more .cm-readonly .CodeMirror {
- opacity: 0.8; }
+ opacity: 0.8;
+}
.ajax-load-more .cm-readonly .CodeMirror pre {
- cursor: default !important; }
+ cursor: default !important;
+}
.ajax-load-more .CodeMirror pre {
- padding: 0 10px; }
+ padding: 0 10px;
+}
.CodeMirror-lines {
- padding: 10px !important; }
+ padding: 10px !important;
+}
.CodeMirror-linenumber {
padding: 0 10px !important;
line-height: 1.25 !important;
- color: #ccc !important; }
+ color: #ccc !important;
+}
.CodeMirror-linenumber.CodeMirror-gutter-elt {
- padding: 0 20px 0 0 !important; }
+ padding: 0 20px 0 0 !important;
+}
.ajax-load-more .cm-readonly.sm-margin .CodeMirror {
- margin: 0 0 10px; }
+ margin: 0 0 10px;
+}
.ajax-load-more .cm-readonly p.warning-callout {
- margin: 0 0 10px; }
+ margin: 0 0 10px;
+}
.ajax-load-more .CodeMirror.loading {
background: #f7f7f7 url("../../img/loader-unlimited.gif") no-repeat center center;
- opacity: 0.6; }
+ opacity: 0.6;
+}
.ajax-load-more .cm-s-pastel-on-dark.CodeMirror {
/* Bkg color */
- background: #333; }
+ background: #333;
+}
.ajax-load-more .CodeMirror-gutters {
/* Line Number color */
background: #fff;
- border-right: 1px solid #e1e1e1;
- border-radius: 2px; }
+ border-right: 1px solid #e7e7e7;
+ border-radius: 2px;
+}
.ajax-load-more .CodeMirror-scroll {
overflow-y: hidden;
- overflow-x: auto; }
+ overflow-x: auto;
+}
.ajax-load-more .cm-tag {
/* html elements */
- color: #0a4b83 !important; }
+ color: #0a4b83 !important;
+}
.ajax-load-more .cm-string {
/* Elements in " " */
- color: #c75050 !important; }
+ color: #c75050 !important;
+}
.ajax-load-more .cm-attribute {
/* class names */
- color: #008080 !important; }
+ color: #008080 !important;
+}
.ajax-load-more .cm-keyword {
/* if, array, echo */
- color: #ae5fb3 !important; }
+ color: #ae5fb3 !important;
+}
.ajax-load-more span.CodeMirror-matchingbracket {
- color: #ff0000 !important; }
+ color: #ff0000 !important;
+}
.ajax-load-more .CodeMirror span.cm-meta {
/* div, .shortcode-builder--fields .flex-grid--three > div {
- width: 48%; }
- .shortcode-builder--fields .flex-grid--three > div {
- width: 31.333%; }
- .shortcode-builder--fields ul {
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- width: 100%;
- -ms-flex-wrap: wrap;
- flex-wrap: wrap; }
- .shortcode-builder--fields ul li {
- width: 50%;
- padding-right: 10px; }
- .shortcode-builder--fields ul li label {
- margin-bottom: 0 !important; }
-
+ flex: 1;
+}
+.shortcode-builder--fields input,
+.shortcode-builder--fields textarea,
+.shortcode-builder--fields select {
+ width: 100%;
+}
+.shortcode-builder--fields section {
+ width: 104%;
+ margin-left: -2%;
+ border: none;
+}
+.shortcode-builder--fields .half {
+ width: 50%;
+ padding: 0 2%;
+}
+.shortcode-builder--fields .flex-grid {
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ width: 100%;
+ -ms-flex-wrap: nowrap;
+ flex-wrap: nowrap;
+ -webkit-box-pack: justify;
+ -ms-flex-pack: justify;
+ justify-content: space-between;
+}
+.shortcode-builder--fields .flex-grid--two, .shortcode-builder--fields .flex-grid--three {
+ width: 100%;
+}
+.shortcode-builder--fields .flex-grid--two > div, .shortcode-builder--fields .flex-grid--three > div {
+ width: 48%;
+}
+.shortcode-builder--fields .flex-grid--three > div {
+ width: 31.333%;
+}
+.shortcode-builder--fields ul {
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ width: 100%;
+ -ms-flex-wrap: wrap;
+ flex-wrap: wrap;
+}
+.shortcode-builder--fields ul li {
+ width: 50%;
+ padding-right: 10px;
+}
+.shortcode-builder--fields ul li label {
+ margin-bottom: 0 !important;
+}
@media screen and (max-width: 1000px) {
.shortcode-builder section {
-ms-flex-wrap: wrap;
- flex-wrap: wrap; }
+ flex-wrap: wrap;
+ }
.shortcode-builder--label, .shortcode-builder--fields {
- width: 100%; }
+ width: 100%;
+ }
.shortcode-builder--label {
border-right: none;
- border-bottom: 1px solid #f1f1f1; } }
-
+ border-bottom: 1px solid #efefef;
+ }
+}
.shortcode-builder .flex-input {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
width: 100%;
-ms-flex-wrap: nowrap;
- flex-wrap: nowrap; }
- .shortcode-builder .flex-input input {
- margin: 0;
- -webkit-box-flex: 1;
- -ms-flex: 1;
- flex: 1;
- border-radius: 3px 0 0 3px; }
- .shortcode-builder .flex-input span {
- border: 1px solid #e1e1e1;
- border-left: none;
- margin: 0;
- font-weight: 600;
- font-size: 11px;
- text-transform: uppercase;
- padding: 0 15px;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- border-radius: 0 3px 3px 0; }
-
+ flex-wrap: nowrap;
+}
+.shortcode-builder .flex-input input {
+ margin: 0;
+ -webkit-box-flex: 1;
+ -ms-flex: 1;
+ flex: 1;
+ border-radius: 3px 0 0 3px;
+}
+.shortcode-builder .flex-input span {
+ border: 1px solid #e1e1e1;
+ border-left: none;
+ margin: 0;
+ font-weight: 600;
+ font-size: 11px;
+ text-transform: uppercase;
+ padding: 0 15px;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+ border-radius: 0 3px 3px 0;
+}
.shortcode-builder .nested-component {
padding: 0;
- position: relative; }
- .shortcode-builder .nested-component:after, .shortcode-builder .nested-component:before {
- top: 0;
- left: 35px;
- border: solid transparent;
- content: ' ';
- height: 0;
- width: 0;
- position: absolute;
- pointer-events: none;
- z-index: 2; }
- .shortcode-builder .nested-component:after {
- border-color: rgba(255, 255, 255, 0);
- border-top-color: #fcfcfc;
- border-width: 10px;
- margin-left: -10px; }
- .shortcode-builder .nested-component:before {
- border-color: rgba(239, 239, 239, 0);
- border-top-color: #e1e1e1;
- border-width: 11px;
- margin-left: -11px;
- z-index: 1; }
- .shortcode-builder .nested-component--inner {
- padding: 0;
- position: relative; }
- .shortcode-builder .nested-component--inner:after {
- clear: both;
- display: table;
- content: ''; }
- .shortcode-builder .nested-component .nested-component .shortcode-builder--label {
- border-left: 6px solid #f1f1f1; }
-
+ position: relative;
+}
+.shortcode-builder .nested-component:after, .shortcode-builder .nested-component:before {
+ top: 0;
+ left: 35px;
+ border: solid transparent;
+ content: " ";
+ height: 0;
+ width: 0;
+ position: absolute;
+ pointer-events: none;
+ z-index: 2;
+}
+.shortcode-builder .nested-component:after {
+ border-color: rgba(255, 255, 255, 0);
+ border-top-color: #fcfcfc;
+ border-width: 10px;
+ margin-left: -10px;
+}
+.shortcode-builder .nested-component:before {
+ border-color: rgba(239, 239, 239, 0);
+ border-top-color: #e7e7e7;
+ border-width: 11px;
+ margin-left: -11px;
+ z-index: 1;
+}
+.shortcode-builder .nested-component--inner {
+ padding: 0;
+ position: relative;
+}
+.shortcode-builder .nested-component--inner:after {
+ clear: both;
+ display: table;
+ content: "";
+}
+.shortcode-builder .nested-component .nested-component .shortcode-builder--label {
+ border-left: 6px solid #efefef;
+}
.shortcode-builder .section-intro {
- margin: 0 0 10px; }
-
+ margin: 0 0 10px;
+}
.shortcode-builder .section-anchor-nav {
display: -webkit-box;
display: -ms-flexbox;
@@ -1213,15 +1529,19 @@ disabled look for disabled choices in the results dropdown
width: 100%;
margin: 0;
padding: 0 0 15px;
- border-bottom: 1px solid #e1e1e1; }
- .shortcode-builder .section-anchor-nav li {
- margin: 0 10px 5px 0;
- padding: 0;
- font-size: 12px; }
- .shortcode-builder .section-anchor-nav a {
- display: block; }
- .shortcode-builder .section-anchor-nav a:focus, .shortcode-builder .section-anchor-nav a:hover {
- text-decoration: none; }
+ border-bottom: 1px solid #e7e7e7;
+}
+.shortcode-builder .section-anchor-nav li {
+ margin: 0 10px 5px 0;
+ padding: 0;
+ font-size: 12px;
+}
+.shortcode-builder .section-anchor-nav a {
+ display: block;
+}
+.shortcode-builder .section-anchor-nav a:focus, .shortcode-builder .section-anchor-nav a:hover {
+ text-decoration: none;
+}
.woocommerce-help--item {
width: 100%;
@@ -1235,82 +1555,98 @@ disabled look for disabled choices in the results dropdown
align-items: center;
padding-top: 20px;
margin-top: 20px;
- border-top: 1px solid #efefef; }
+ border-top: 1px solid #efefef;
+}
+.woocommerce-help--item div {
+ -webkit-box-flex: 1;
+ -ms-flex: 1;
+ flex: 1;
+ padding: 20px 20px 20px 30px;
+}
+@media screen and (max-width: 600px) {
.woocommerce-help--item div {
- -webkit-box-flex: 1;
- -ms-flex: 1;
- flex: 1;
- padding: 20px 20px 20px 30px; }
- @media screen and (max-width: 600px) {
- .woocommerce-help--item div {
- padding: 20px 0; } }
+ padding: 20px 0;
+ }
+}
+.woocommerce-help--item .img {
+ padding: 0;
+ -webkit-box-flex: 0;
+ -ms-flex: none;
+ flex: none;
+ width: 30%;
+}
+@media screen and (max-width: 600px) {
.woocommerce-help--item .img {
- padding: 0;
- -webkit-box-flex: 0;
- -ms-flex: none;
- flex: none;
- width: 30%; }
- @media screen and (max-width: 600px) {
- .woocommerce-help--item .img {
- display: none; } }
- .woocommerce-help--item .img img {
- border: 1px solid #efefef;
- padding: 2px;
- border-radius: 4px; }
+ display: none;
+ }
+}
+.woocommerce-help--item .img img {
+ border: 1px solid #efefef;
+ padding: 2px;
+ border-radius: 4px;
+}
.ajax-load-more .builder-option-toggle {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: nowrap;
- flex-wrap: nowrap; }
- .ajax-load-more .builder-option-toggle input {
- border-radius: 3px 0 0 3px;
- margin: 0;
- width: auto;
- -webkit-box-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- .ajax-load-more .builder-option-toggle--buttons {
- border-radius: 0 3px 3px 0;
- padding: 3px;
- width: auto;
- border: 1px solid #ccc;
- background-color: #fcfcfc;
- border-left: none;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex; }
- .ajax-load-more .builder-option-toggle--buttons button {
- height: 100%;
- border: 1px solid #e1e1e1;
- border-left-width: 0;
- margin: 0;
- font-weight: 600;
- font-size: 11px;
- text-transform: uppercase;
- cursor: pointer;
- padding: 0;
- margin: 0;
- border-radius: 0;
- width: 34px;
- text-align: center;
- display: inline-block;
- color: #393d41;
- background-color: transparent; }
- .ajax-load-more .builder-option-toggle--buttons button:hover, .ajax-load-more .builder-option-toggle--buttons button:focus {
- color: #222;
- border-color: #ccc; }
- .ajax-load-more .builder-option-toggle--buttons button:first-child {
- border-radius: 3px 0 0 3px;
- border-left-width: 1px; }
- .ajax-load-more .builder-option-toggle--buttons button:last-child {
- border-radius: 0 3px 3px 0; }
- .ajax-load-more .builder-option-toggle--buttons button.active {
- border-color: #393d41;
- background-color: #393d41;
- color: #fff;
- cursor: default; }
+ flex-wrap: nowrap;
+}
+.ajax-load-more .builder-option-toggle input {
+ border-radius: 3px 0 0 3px;
+ margin: 0;
+ width: auto;
+ -webkit-box-flex: 1;
+ -ms-flex: 1;
+ flex: 1;
+}
+.ajax-load-more .builder-option-toggle--buttons {
+ border-radius: 0 3px 3px 0;
+ padding: 3px;
+ width: auto;
+ border: 1px solid #ccc;
+ background-color: #fcfcfc;
+ border-left: none;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+}
+.ajax-load-more .builder-option-toggle--buttons button {
+ height: 100%;
+ border: 1px solid #e7e7e7;
+ border-left-width: 0;
+ margin: 0;
+ font-weight: 600;
+ font-size: 11px;
+ text-transform: uppercase;
+ cursor: pointer;
+ padding: 0;
+ margin: 0;
+ border-radius: 0;
+ width: 34px;
+ text-align: center;
+ display: inline-block;
+ color: #393d41;
+ background-color: transparent;
+}
+.ajax-load-more .builder-option-toggle--buttons button:hover, .ajax-load-more .builder-option-toggle--buttons button:focus {
+ color: #222;
+ border-color: #ccc;
+}
+.ajax-load-more .builder-option-toggle--buttons button:first-child {
+ border-radius: 3px 0 0 3px;
+ border-left-width: 1px;
+}
+.ajax-load-more .builder-option-toggle--buttons button:last-child {
+ border-radius: 0 3px 3px 0;
+}
+.ajax-load-more .builder-option-toggle--buttons button.active {
+ border-color: #393d41;
+ background-color: #393d41;
+ color: #fff;
+ cursor: default;
+}
/* Template Tags */
.ajax-load-more .template-tags {
@@ -1319,144 +1655,182 @@ disabled look for disabled choices in the results dropdown
padding: 15px;
background: #fff9ea;
margin: 20px 0 0;
- border-radius: 3px; }
- .ajax-load-more .template-tags h4,
- .ajax-load-more .template-tags li {
- margin: 0 0 8px;
- padding: 0;
- font-size: 13px;
- text-decoration: none !important; }
- .ajax-load-more .template-tags li {
- margin: 5px 0 !important;
- width: 100% !important;
- padding: 0 !important;
- border-radius: 3px;
- line-height: 1.25; }
- .ajax-load-more .template-tags ul {
- margin: 0;
- padding: 0; }
- .ajax-load-more .template-tags pre {
- display: inline-block;
- min-width: 120px;
- padding: 0;
- margin: 0;
- color: #888; }
+ border-radius: 3px;
+}
+.ajax-load-more .template-tags h4,
+.ajax-load-more .template-tags li {
+ margin: 0 0 8px;
+ padding: 0;
+ font-size: 13px;
+ text-decoration: none !important;
+}
+.ajax-load-more .template-tags li {
+ margin: 5px 0 !important;
+ width: 100% !important;
+ padding: 0 !important;
+ border-radius: 3px;
+ line-height: 1.25;
+}
+.ajax-load-more .template-tags ul {
+ margin: 0;
+ padding: 0;
+}
+.ajax-load-more .template-tags pre {
+ display: inline-block;
+ min-width: 120px;
+ padding: 0;
+ margin: 0;
+ color: #888;
+}
.ajax-load-more .alm-tabbed-wrapper {
- width: 100%; }
- @media screen and (min-width: 620px) {
- .ajax-load-more .alm-tabbed-wrapper {
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -ms-flex-wrap: nowrap;
- flex-wrap: nowrap; } }
- .ajax-load-more .alm-tabbed-wrapper h2 {
- padding: 20px 0 0;
- margin: 0 0 15px;
- display: block;
- font-size: 20px;
- color: #393d41;
- font-weight: 700; }
- .ajax-load-more .alm-tabbed-wrapper h2 + p {
- position: relative;
- top: -3px; }
+ width: 100%;
+}
+@media screen and (min-width: 620px) {
+ .ajax-load-more .alm-tabbed-wrapper {
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -ms-flex-wrap: nowrap;
+ flex-wrap: nowrap;
+ }
+}
+.ajax-load-more .alm-tabbed-wrapper h2 {
+ padding: 20px 0 0;
+ margin: 0 0 15px;
+ display: block;
+ font-size: 20px;
+ color: #393d41;
+ font-weight: 700;
+}
+.ajax-load-more .alm-tabbed-wrapper h2 + p {
+ margin-top: -10px;
+ font-size: 14px;
+}
+.ajax-load-more .alm-tabbed-wrapper--nav {
+ border: 1px solid #e7e7e7;
+ margin-bottom: 20px;
+ padding: 10px;
+ background: #fff;
+}
+@media screen and (min-width: 620px) {
.ajax-load-more .alm-tabbed-wrapper--nav {
- border: 1px solid #e1e1e1;
- margin-bottom: 20px;
- padding: 10px;
- background: #fff; }
- @media screen and (min-width: 620px) {
- .ajax-load-more .alm-tabbed-wrapper--nav {
- width: 165px;
- background-color: #f7f7f7;
- padding: 0;
- border: 1px solid #e1e1e1;
- border-right: none;
- border-bottom: none;
- border-radius: 3px 3px 0 0;
- position: relative;
- z-index: 1;
- margin: 0; } }
- .ajax-load-more .alm-tabbed-wrapper--nav ul {
- margin: 0;
- padding: 0 0 35px; }
- @media screen and (max-width: 620px) {
- .ajax-load-more .alm-tabbed-wrapper--nav ul {
- padding: 0;
- border: 1px solid #e1e1e1; } }
- .ajax-load-more .alm-tabbed-wrapper--nav ul li {
- width: 100% !important;
- margin: 0;
- padding: 0;
- list-style: none; }
- @media screen and (min-width: 620px) {
- .ajax-load-more .alm-tabbed-wrapper--nav ul li:first-of-type {
- position: relative;
- top: -1px; }
- .ajax-load-more .alm-tabbed-wrapper--nav ul li:first-of-type button {
- border-top: 1px solid #e1e1e1;
- border-radius: 3px 0 0 0; } }
- @media screen and (max-width: 620px) {
- .ajax-load-more .alm-tabbed-wrapper--nav ul li:last-of-type button {
- border: none; } }
- @media screen and (min-width: 620px) {
- .ajax-load-more .alm-tabbed-wrapper--nav ul.attached {
- position: fixed;
- width: auto;
- top: 70px; }
- .ajax-load-more .alm-tabbed-wrapper--nav ul.attached li:first-of-type button {
- border-radius: 0; } }
- .ajax-load-more .alm-tabbed-wrapper--nav button {
- display: block;
- width: 100%;
- border: none;
- background: none;
- line-height: 1.4;
- padding: 12px 10px;
- text-align: left;
- font-weight: 400;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- background: #f7f7f7;
- border-bottom: 1px solid #e1e1e1;
- cursor: pointer;
- color: #393d41; }
- .ajax-load-more .alm-tabbed-wrapper--nav button:hover, .ajax-load-more .alm-tabbed-wrapper--nav button:focus {
- background-color: #efefef; }
- .ajax-load-more .alm-tabbed-wrapper--nav button i {
- opacity: 0.65;
- width: 18px; }
- .ajax-load-more .alm-tabbed-wrapper--nav button i.fa-handshake-o {
- position: relative;
- left: -2px; }
- .ajax-load-more .alm-tabbed-wrapper--nav button.active {
- font-weight: 600;
- background-color: #fff;
- color: #e84648;
- cursor: default; }
- .ajax-load-more .alm-tabbed-wrapper--nav button.active i {
- color: #393d41; }
- @media screen and (min-width: 620px) {
- .ajax-load-more .alm-tabbed-wrapper--nav button.active {
- width: calc(100% + 1px); } }
+ width: 165px;
+ background-color: #f7f7f7;
+ padding: 0;
+ border: 1px solid #e7e7e7;
+ border-right: none;
+ border-bottom: none;
+ border-radius: 3px 3px 0 0;
+ position: relative;
+ z-index: 1;
+ margin: 0;
+ }
+}
+.ajax-load-more .alm-tabbed-wrapper--nav ul {
+ margin: 0;
+ padding: 0 0 35px;
+}
+@media screen and (max-width: 620px) {
+ .ajax-load-more .alm-tabbed-wrapper--nav ul {
+ padding: 0;
+ border: 1px solid #e7e7e7;
+ }
+}
+.ajax-load-more .alm-tabbed-wrapper--nav ul li {
+ width: 100% !important;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+}
+@media screen and (min-width: 620px) {
+ .ajax-load-more .alm-tabbed-wrapper--nav ul li:first-of-type {
+ position: relative;
+ top: -1px;
+ }
+ .ajax-load-more .alm-tabbed-wrapper--nav ul li:first-of-type button {
+ border-top: 1px solid #e7e7e7;
+ border-radius: 3px 0 0 0;
+ }
+}
+@media screen and (max-width: 620px) {
+ .ajax-load-more .alm-tabbed-wrapper--nav ul li:last-of-type button {
+ border: none;
+ }
+}
+@media screen and (min-width: 620px) {
+ .ajax-load-more .alm-tabbed-wrapper--nav ul.attached {
+ position: fixed;
+ width: auto;
+ top: 70px;
+ }
+ .ajax-load-more .alm-tabbed-wrapper--nav ul.attached li:first-of-type button {
+ border-radius: 0;
+ }
+}
+.ajax-load-more .alm-tabbed-wrapper--nav button {
+ display: block;
+ width: 100%;
+ border: none;
+ background: none;
+ line-height: 1.4;
+ padding: 12px 10px;
+ text-align: left;
+ font-weight: 400;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ background: #f7f7f7;
+ border-bottom: 1px solid #e7e7e7;
+ cursor: pointer;
+ color: #393d41;
+}
+.ajax-load-more .alm-tabbed-wrapper--nav button:hover, .ajax-load-more .alm-tabbed-wrapper--nav button:focus {
+ background-color: #efefef;
+}
+.ajax-load-more .alm-tabbed-wrapper--nav button i {
+ opacity: 0.65;
+ width: 18px;
+}
+.ajax-load-more .alm-tabbed-wrapper--nav button i.fa-handshake-o {
+ position: relative;
+ left: -2px;
+}
+.ajax-load-more .alm-tabbed-wrapper--nav button.active {
+ font-weight: 600;
+ background-color: #fff;
+ color: #e84648;
+ cursor: default;
+}
+.ajax-load-more .alm-tabbed-wrapper--nav button.active i {
+ color: #393d41;
+}
+@media screen and (min-width: 620px) {
+ .ajax-load-more .alm-tabbed-wrapper--nav button.active {
+ width: calc(100% + 1px);
+ }
+}
+.ajax-load-more .alm-tabbed-wrapper--sections {
+ -webkit-box-flex: 1;
+ -ms-flex: 1;
+ flex: 1;
+ padding: 0 20px 20px;
+ display: block;
+ background: #fff;
+ border: 1px solid #e7e7e7;
+}
+@media screen and (min-width: 620px) {
.ajax-load-more .alm-tabbed-wrapper--sections {
- -webkit-box-flex: 1;
- -ms-flex: 1;
- flex: 1;
- padding: 0 20px 20px;
- display: block;
- background: #fff;
- border: 1px solid #e1e1e1; }
- @media screen and (min-width: 620px) {
- .ajax-load-more .alm-tabbed-wrapper--sections {
- border-bottom: none;
- border-radius: 0 3px 0 0; } }
- .ajax-load-more .alm-tabbed-wrapper--section {
- display: none; }
- .ajax-load-more .alm-tabbed-wrapper--section.active {
- display: block; }
+ border-bottom: none;
+ border-radius: 0 3px 0 0;
+ }
+}
+.ajax-load-more .alm-tabbed-wrapper--section {
+ display: none;
+}
+.ajax-load-more .alm-tabbed-wrapper--section.active {
+ display: block;
+}
body.toplevel_page_ajax-load-more,
body.ajax-load-more_page_ajax-load-more-repeaters,
@@ -1470,34 +1844,37 @@ body.ajax-load-more_page_ajax-load-more-filters,
body.ajax-load-more_page_ajax-load-more-pro,
body.ajax-load-more_page_ajax-load-more-go-pro,
body.ajax-load-more_page_ajax-load-more-woocommerce {
- height: auto !important; }
- body.toplevel_page_ajax-load-more #wpcontent,
- body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,
- body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpcontent,
- body.ajax-load-more_page_ajax-load-more-add-ons #wpcontent,
- body.ajax-load-more_page_ajax-load-more-extensions #wpcontent,
- body.ajax-load-more_page_ajax-load-more-help #wpcontent,
- body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,
- body.ajax-load-more_page_ajax-load-more-cache #wpcontent,
- body.ajax-load-more_page_ajax-load-more-filters #wpcontent,
- body.ajax-load-more_page_ajax-load-more-pro #wpcontent,
- body.ajax-load-more_page_ajax-load-more-go-pro #wpcontent,
- body.ajax-load-more_page_ajax-load-more-woocommerce #wpcontent {
- padding-left: 0;
- padding-bottom: 20px; }
- body.toplevel_page_ajax-load-more #wpbody-content,
- body.ajax-load-more_page_ajax-load-more-repeaters #wpbody-content,
- body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpbody-content,
- body.ajax-load-more_page_ajax-load-more-add-ons #wpbody-content,
- body.ajax-load-more_page_ajax-load-more-extensions #wpbody-content,
- body.ajax-load-more_page_ajax-load-more-help #wpbody-content,
- body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,
- body.ajax-load-more_page_ajax-load-more-cache #wpbody-content,
- body.ajax-load-more_page_ajax-load-more-filters #wpbody-content,
- body.ajax-load-more_page_ajax-load-more-pro #wpbody-content,
- body.ajax-load-more_page_ajax-load-more-go-pro #wpbody-content,
- body.ajax-load-more_page_ajax-load-more-woocommerce #wpbody-content {
- padding-bottom: 0; }
+ height: auto !important;
+}
+body.toplevel_page_ajax-load-more #wpcontent,
+body.ajax-load-more_page_ajax-load-more-repeaters #wpcontent,
+body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpcontent,
+body.ajax-load-more_page_ajax-load-more-add-ons #wpcontent,
+body.ajax-load-more_page_ajax-load-more-extensions #wpcontent,
+body.ajax-load-more_page_ajax-load-more-help #wpcontent,
+body.ajax-load-more_page_ajax-load-more-licenses #wpcontent,
+body.ajax-load-more_page_ajax-load-more-cache #wpcontent,
+body.ajax-load-more_page_ajax-load-more-filters #wpcontent,
+body.ajax-load-more_page_ajax-load-more-pro #wpcontent,
+body.ajax-load-more_page_ajax-load-more-go-pro #wpcontent,
+body.ajax-load-more_page_ajax-load-more-woocommerce #wpcontent {
+ padding-left: 0;
+ padding-bottom: 20px;
+}
+body.toplevel_page_ajax-load-more #wpbody-content,
+body.ajax-load-more_page_ajax-load-more-repeaters #wpbody-content,
+body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpbody-content,
+body.ajax-load-more_page_ajax-load-more-add-ons #wpbody-content,
+body.ajax-load-more_page_ajax-load-more-extensions #wpbody-content,
+body.ajax-load-more_page_ajax-load-more-help #wpbody-content,
+body.ajax-load-more_page_ajax-load-more-licenses #wpbody-content,
+body.ajax-load-more_page_ajax-load-more-cache #wpbody-content,
+body.ajax-load-more_page_ajax-load-more-filters #wpbody-content,
+body.ajax-load-more_page_ajax-load-more-pro #wpbody-content,
+body.ajax-load-more_page_ajax-load-more-go-pro #wpbody-content,
+body.ajax-load-more_page_ajax-load-more-woocommerce #wpbody-content {
+ padding-bottom: 0;
+}
body.toplevel_page_ajax-load-more #wpfooter,
body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter,
@@ -1515,67 +1892,79 @@ body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter {
padding-bottom: 0;
line-height: 42px;
background: #f8f9fb;
- border-top: 1px solid #e1e1e1;
+ border-top: 1px solid #e7e7e7;
position: fixed;
bottom: 0;
- z-index: 1100; }
- body.toplevel_page_ajax-load-more #wpfooter p,
- body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter p,
- body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpfooter p,
- body.ajax-load-more_page_ajax-load-more-add-ons #wpfooter p,
- body.ajax-load-more_page_ajax-load-more-extensions #wpfooter p,
- body.ajax-load-more_page_ajax-load-more-help #wpfooter p,
- body.ajax-load-more_page_ajax-load-more-licenses #wpfooter p,
- body.ajax-load-more_page_ajax-load-more-cache #wpfooter p,
- body.ajax-load-more_page_ajax-load-more-filters #wpfooter p,
- body.ajax-load-more_page_ajax-load-more-pro #wpfooter p,
- body.ajax-load-more_page_ajax-load-more-go-pro #wpfooter p,
- body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter p {
- line-height: 42px; }
+ z-index: 1100;
+}
+body.toplevel_page_ajax-load-more #wpfooter p,
+body.ajax-load-more_page_ajax-load-more-repeaters #wpfooter p,
+body.ajax-load-more_page_ajax-load-more-shortcode-builder #wpfooter p,
+body.ajax-load-more_page_ajax-load-more-add-ons #wpfooter p,
+body.ajax-load-more_page_ajax-load-more-extensions #wpfooter p,
+body.ajax-load-more_page_ajax-load-more-help #wpfooter p,
+body.ajax-load-more_page_ajax-load-more-licenses #wpfooter p,
+body.ajax-load-more_page_ajax-load-more-cache #wpfooter p,
+body.ajax-load-more_page_ajax-load-more-filters #wpfooter p,
+body.ajax-load-more_page_ajax-load-more-pro #wpfooter p,
+body.ajax-load-more_page_ajax-load-more-go-pro #wpfooter p,
+body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter p {
+ line-height: 42px;
+}
.main-cnkt-wrap {
padding: 0 !important;
- margin: 0 !important; }
+ margin: 0 !important;
+}
.ajax-load-more-inner-wrapper {
- padding: 20px 20px 60px;
+ padding: 30px 20px 60px;
display: block;
clear: both;
max-width: 1440px;
- position: relative; }
+ position: relative;
+}
.ajax-load-more .alm-transient {
- padding: 6px 12px; }
- .ajax-load-more .alm-transient p {
- margin: 0.5em 0; }
- .ajax-load-more .alm-transient p a {
- font-weight: 600; }
- .ajax-load-more .alm-transient a.button {
- position: static;
- vertical-align: inherit !important; }
- .ajax-load-more .alm-transient button {
- -webkit-transform: translateY(-50%);
- -ms-transform: translateY(-50%);
- transform: translateY(-50%);
- top: 50%; }
+ padding: 6px 12px;
+}
+.ajax-load-more .alm-transient p {
+ margin: 0.5em 0;
+}
+.ajax-load-more .alm-transient p a {
+ font-weight: 600;
+}
+.ajax-load-more .alm-transient a.button {
+ position: static;
+ vertical-align: inherit !important;
+}
+.ajax-load-more .alm-transient button {
+ -webkit-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%);
+ top: 50%;
+}
#wpcontent .ajax-load-more .button:not(.button-primary),
#wpcontent .ajax-load-more .button.button-secondary {
border-color: #ccc;
color: #444;
- background-color: #f3f5f6; }
- #wpcontent .ajax-load-more .button:not(.button-primary):hover, #wpcontent .ajax-load-more .button:not(.button-primary):active, #wpcontent .ajax-load-more .button:not(.button-primary):focus,
- #wpcontent .ajax-load-more .button.button-secondary:hover,
- #wpcontent .ajax-load-more .button.button-secondary:active,
- #wpcontent .ajax-load-more .button.button-secondary:focus {
- color: #222;
- border-color: #999;
- background-color: #f1f1f1;
- -webkit-box-shadow: none;
- box-shadow: none; }
- #wpcontent .ajax-load-more .button:not(.button-primary):focus,
- #wpcontent .ajax-load-more .button.button-secondary:focus {
- background-color: #e7e7e7; }
+ background-color: #f3f5f6;
+}
+#wpcontent .ajax-load-more .button:not(.button-primary):hover, #wpcontent .ajax-load-more .button:not(.button-primary):active, #wpcontent .ajax-load-more .button:not(.button-primary):focus,
+#wpcontent .ajax-load-more .button.button-secondary:hover,
+#wpcontent .ajax-load-more .button.button-secondary:active,
+#wpcontent .ajax-load-more .button.button-secondary:focus {
+ color: #222;
+ border-color: #999;
+ background-color: #f1f1f1;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+#wpcontent .ajax-load-more .button:not(.button-primary):focus,
+#wpcontent .ajax-load-more .button.button-secondary:focus {
+ background-color: #e7e7e7;
+}
/*
* Admin - Popup Generator
@@ -1584,46 +1973,56 @@ body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter {
*/
.ajax-load-more * {
-webkit-box-sizing: border-box;
- box-sizing: border-box; }
+ box-sizing: border-box;
+}
.offscreen {
position: absolute;
- left: -9999px; }
+ left: -9999px;
+}
.ajax-load-more {
color: #393d41;
position: relative;
- max-width: 100%; }
- .ajax-load-more a {
- color: #3784c2;
- text-decoration: underline; }
- .ajax-load-more a:hover {
- color: #58a1de;
- text-decoration: none; }
+ max-width: 100%;
+}
+.ajax-load-more a {
+ color: #3784c2;
+ text-decoration: underline;
+}
+.ajax-load-more a:hover {
+ color: #58a1de;
+ text-decoration: none;
+}
#alm-help.ajax-load-more {
- max-width: 1600px; }
+ max-width: 1600px;
+}
.ajax-load-more img {
- max-width: 100%; }
+ max-width: 100%;
+}
#alm-container {
overflow: hidden;
- padding: 15px 10px 140px !important; }
+ padding: 15px 10px 140px !important;
+}
#alm-settings .admin-select {
width: 100%;
display: block;
padding: 0 0 25px;
- margin: -10px 0 0; }
- #alm-settings .admin-select .select2-container {
- width: 40%;
- min-width: 40%;
- display: inline-block;
- vertical-align: top; }
+ margin: -10px 0 0;
+}
+#alm-settings .admin-select .select2-container {
+ width: 40%;
+ min-width: 40%;
+ display: inline-block;
+ vertical-align: top;
+}
.ajax-load-more .file-location {
- border: 1px solid #e1e1e1;
+ border: 1px solid #e7e7e7;
background: #fff;
margin: 0;
padding: 0;
@@ -1634,28 +2033,32 @@ body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter {
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
font-family: Consolas, monaco, monospace;
- border-radius: 3px; }
- .ajax-load-more .file-location p,
- .ajax-load-more .file-location code {
- padding: 12px 16px;
- line-height: 18px;
- font-size: 12px; }
- .ajax-load-more .file-location p {
- background: #f7f7f7;
- color: #555;
- font-weight: 600;
- margin: 0;
- width: auto;
- display: inline;
- border-right: 1px solid #e1e1e1; }
- .ajax-load-more .file-location code {
- color: #999;
- background: transparent;
- cursor: help; }
+ border-radius: 3px;
+}
+.ajax-load-more .file-location p,
+.ajax-load-more .file-location code {
+ padding: 12px 16px;
+ line-height: 18px;
+ font-size: 12px;
+}
+.ajax-load-more .file-location p {
+ background: #f7f7f7;
+ color: #555;
+ font-weight: 600;
+ margin: 0;
+ width: auto;
+ display: inline;
+ border-right: 1px solid #e7e7e7;
+}
+.ajax-load-more .file-location code {
+ color: #999;
+ background: transparent;
+ cursor: help;
+}
.ajax-load-more code {
- background: #fcf3d0; }
-
+ background: #fcf3d0;
+}
.ajax-load-more p {
display: block;
width: 100%;
@@ -1663,66 +2066,78 @@ body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter {
text-transform: none;
padding: 0;
margin: 0 0 15px;
- color: #6a7178; }
+ color: #6a7178;
+}
.ajax-load-more p.lg,
.ajax-load-more li.lg,
.ajax-load-more input.lg,
.ajax-load-more textarea.lg,
.ajax-load-more label.lg {
- font-size: 16px; }
+ font-size: 16px;
+}
.ajax-load-more textarea#_alm_layouts_css {
- height: 240px; }
+ height: 240px;
+}
.ajax-load-more a.layout-hover {
width: 20px !important;
height: 20px !important;
background: #ccc;
display: inline-block;
- position: relative; }
- .ajax-load-more a.layout-hover img {
- position: absolute;
- left: 100%;
- top: 0;
- z-index: 999;
- opacity: 0;
- filter: alpha(opacity=0); }
- .ajax-load-more a.layout-hover:hover img {
- position: absolute;
- left: 100%;
- top: 0;
- z-index: 999;
- opacity: 1;
- filter: alpha(opacity=100); }
+ position: relative;
+}
+.ajax-load-more a.layout-hover img {
+ position: absolute;
+ left: 100%;
+ top: 0;
+ z-index: 999;
+ opacity: 0;
+ filter: alpha(opacity=0);
+}
+.ajax-load-more a.layout-hover:hover img {
+ position: absolute;
+ left: 100%;
+ top: 0;
+ z-index: 999;
+ opacity: 1;
+ filter: alpha(opacity=100);
+}
.ajax-load-more p.highlight {
background-color: #fffbd4;
color: #333;
padding: 5px 10px;
border-radius: 3px;
- margin: -5px 0 10px; }
+ margin: -5px 0 10px;
+}
.ajax-load-more h1 {
font-weight: 600;
- line-height: 28px; }
+ line-height: 28px;
+}
.ajax-load-more h1,
.ajax-load-more h3,
.ajax-load-more h4 {
color: #393d41;
- margin-top: 0; }
+ margin-top: 0;
+}
.ajax-load-more h4 + p {
- margin-top: -6px; }
+ margin-top: -6px;
+}
.ajax-load-more p.small {
font-size: 12px;
margin-top: -10px;
- opacity: 0.7; }
+ opacity: 0.7;
+}
.ajax-load-more.shortcode-builder .major-publishing-actions {
- position: relative; }
+ position: relative;
+}
.ajax-load-more p.small.reset-shortcode-builder {
position: absolute;
@@ -1737,10 +2152,12 @@ body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter {
display: none;
width: auto;
opacity: 1;
- font-size: 12px; }
+ font-size: 12px;
+}
.ajax-load-more p.small.reset-shortcode-builder a {
- text-decoration: none; }
+ text-decoration: none;
+}
/* Expand Collapse Headings */
.ajax-load-more h3.heading {
@@ -1754,26 +2171,32 @@ body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter {
position: relative;
font-size: 16px;
background: #f7f7f7;
- border-bottom: 1px solid #e1e1e1; }
- .ajax-load-more h3.heading:hover:after, .ajax-load-more h3.heading:focus:after {
- color: #ccc; }
- .ajax-load-more h3.heading:hover, .ajax-load-more h3.heading:focus {
- color: #222;
- outline: none;
- text-decoration: underline; }
- .ajax-load-more h3.heading:after {
- font-family: 'FontAwesome';
- content: '\f056';
- color: #e1e1e1;
- position: absolute;
- left: 13px;
- top: 16px;
- height: 20px;
- width: 20px; }
- .ajax-load-more h3.heading.open:after {
- content: '\f055'; }
- .ajax-load-more h3.heading.open {
- border-bottom-color: transparent; }
+ border-bottom: 1px solid #e7e7e7;
+}
+.ajax-load-more h3.heading:hover:after, .ajax-load-more h3.heading:focus:after {
+ color: #ccc;
+}
+.ajax-load-more h3.heading:hover, .ajax-load-more h3.heading:focus {
+ color: #222;
+ outline: none;
+ text-decoration: underline;
+}
+.ajax-load-more h3.heading:after {
+ font-family: "FontAwesome";
+ content: "\f056";
+ color: #e7e7e7;
+ position: absolute;
+ left: 13px;
+ top: 16px;
+ height: 20px;
+ width: 20px;
+}
+.ajax-load-more h3.heading.open:after {
+ content: "\f055";
+}
+.ajax-load-more h3.heading.open {
+ border-bottom-color: transparent;
+}
/* Expand/Collapse all rows */
.ajax-load-more .toggle-all {
@@ -1789,44 +2212,57 @@ body.ajax-load-more_page_ajax-load-more-woocommerce #wpfooter {
height: 35px;
line-height: 34px;
background: #fff;
- border: 1px solid #e1e1e1;
+ border: 1px solid #e7e7e7;
color: #393d41;
cursor: pointer;
z-index: 20;
margin-bottom: 10px;
- overflow: hidden; }
- @media screen and (min-width: 768px) {
- .ajax-load-more .toggle-all {
- position: absolute; } }
- .ajax-load-more .toggle-all:hover, .ajax-load-more .toggle-all:focus {
- color: #393d41;
- border-color: #ccc; }
- .ajax-load-more .toggle-all .inner-wrap {
- position: relative;
- padding-left: 16px;
- line-height: 24px; }
- .ajax-load-more .toggle-all .expand {
- display: none; }
- .ajax-load-more .toggle-all .collapse {
- display: inline-block; }
- .ajax-load-more .toggle-all em {
- font-style: normal; }
- .ajax-load-more .toggle-all.closed .expand {
- display: inline-block; }
- .ajax-load-more .toggle-all.closed .collapse {
- display: none; }
- .ajax-load-more .toggle-all .inner-wrap:before {
- font-family: 'FontAwesome';
- content: '\f068';
- font-size: 10px;
+ overflow: hidden;
+}
+@media screen and (min-width: 768px) {
+ .ajax-load-more .toggle-all {
position: absolute;
- left: 0;
- top: -5px; }
- .ajax-load-more .toggle-all.closed .inner-wrap:before {
- content: '\f067'; }
+ }
+}
+.ajax-load-more .toggle-all:hover, .ajax-load-more .toggle-all:focus {
+ color: #393d41;
+ border-color: #ccc;
+}
+.ajax-load-more .toggle-all .inner-wrap {
+ position: relative;
+ padding-left: 16px;
+ line-height: 24px;
+}
+.ajax-load-more .toggle-all .expand {
+ display: none;
+}
+.ajax-load-more .toggle-all .collapse {
+ display: inline-block;
+}
+.ajax-load-more .toggle-all em {
+ font-style: normal;
+}
+.ajax-load-more .toggle-all.closed .expand {
+ display: inline-block;
+}
+.ajax-load-more .toggle-all.closed .collapse {
+ display: none;
+}
+.ajax-load-more .toggle-all .inner-wrap:before {
+ font-family: "FontAwesome";
+ content: "\f068";
+ font-size: 10px;
+ position: absolute;
+ left: 0;
+ top: -5px;
+}
+.ajax-load-more .toggle-all.closed .inner-wrap:before {
+ content: "\f067";
+}
#alm-container.ajax-load-more .toggle-all {
- display: none; }
+ display: none;
+}
a.button-small {
text-decoration: none;
@@ -1837,22 +2273,26 @@ a.button-small {
border: 1px solid #b9d2de;
color: #393d41;
line-height: 1.1;
- border-radius: 3px; }
- a.button-small:hover {
- color: #fff;
- background-color: #3784c2;
- text-decoration: none;
- border-color: #3784c2; }
- a.button-small:focus {
- color: #fff;
- background-color: #58a1de;
- text-decoration: none;
- border-color: #58a1de; }
+ border-radius: 3px;
+}
+a.button-small:hover {
+ color: #fff;
+ background-color: #3784c2;
+ text-decoration: none;
+ border-color: #3784c2;
+}
+a.button-small:focus {
+ color: #fff;
+ background-color: #58a1de;
+ text-decoration: none;
+ border-color: #58a1de;
+}
.ajax-load-more ul {
padding: 0;
margin: 0;
- list-style: none; }
+ list-style: none;
+}
.shortcode-builder--items li {
padding: 0 5% 0 0;
@@ -1862,7 +2302,8 @@ a.button-small {
display: inline-block;
vertical-align: top;
overflow: visible;
- position: relative; }
+ position: relative;
+}
.ajax-load-more label.full {
display: block;
@@ -1872,7 +2313,8 @@ a.button-small {
font-weight: 500;
padding: 0 0 10px;
cursor: default;
- font-size: 13px; }
+ font-size: 13px;
+}
.ajax-load-more .border-top {
display: block;
@@ -1881,13 +2323,15 @@ a.button-small {
clear: both;
padding: 15px 0 0 !important;
overflow: visible;
- position: relative; }
+ position: relative;
+}
.ajax-load-more .border-top.highlighted {
background-color: #feffe3;
padding: 15px !important;
border: 1px solid #eeefd4;
- border-radius: 3px; }
+ border-radius: 3px;
+}
.ajax-load-more .alm-settings-nav {
margin: 0 0 5px;
@@ -1899,7 +2343,8 @@ a.button-small {
left: -20px;
border-bottom: 1px solid #ebebeb;
background: #f7f7f7;
- border-radius: 3px 3px 0 0; }
+ border-radius: 3px 3px 0 0;
+}
.alm-settings-nav li {
float: left;
@@ -1907,62 +2352,76 @@ a.button-small {
padding: 0;
font-weight: 600;
background: none;
- font-size: 13px; }
+ font-size: 13px;
+}
.alm-settings-nav a {
text-decoration: none;
padding: 8px 16px 8px 16px;
border-left: 1px solid #ebebeb;
- display: block; }
+ display: block;
+}
.alm-settings-nav a:hover {
color: #fff;
- background-color: #e84648; }
+ background-color: #e84648;
+}
.alm-settings-nav li:first-of-type a {
border: none;
- border-radius: 3px 0 0 0; }
+ border-radius: 3px 0 0 0;
+}
#alm-meta-key .meta-query-wrap,
.taxonomy-wrap {
padding: 15px;
- border: 1px solid #f1f1f1;
+ border: 1px solid #efefef;
margin: 15px 0 0;
position: relative;
- border-radius: 3px; }
+ border-radius: 3px;
+}
#alm-meta-key .meta-query-wrap {
- padding-bottom: 0; }
+ padding-bottom: 0;
+}
.meta-query-wrap.removing,
.taxonomy-wrap.removing {
- background-color: #f5d0d0; }
+ background-color: #f5d0d0;
+}
#alm-meta-key .meta-query-wrap-first .meta-query-wrap {
border: none;
background-color: transparent;
padding: 0;
- margin: 0; }
- #alm-meta-key .meta-query-wrap-first .meta-query-wrap .padding-top {
- margin-bottom: 0; }
+ margin: 0;
+}
+#alm-meta-key .meta-query-wrap-first .meta-query-wrap .padding-top {
+ margin-bottom: 0;
+}
.section-control {
- padding-top: 15px; }
+ padding-top: 15px;
+}
.row .controls {
display: block;
clear: both;
padding: 20px 0 10px;
- overflow: hidden; }
+ overflow: hidden;
+}
.row.taxonomy .controls {
- padding-bottom: 20px; }
+ padding-bottom: 20px;
+}
.row.taxonomy .highlighted {
- margin-bottom: 0 !important; }
+ margin-bottom: 0 !important;
+}
#tax-query-relation {
- padding-top: 15px; }
+ padding-top: 15px;
+}
.meta-query-wrap .remove-meta-query,
.taxonomy-wrap .remove-tax-query {
@@ -1979,12 +2438,14 @@ a.button-small {
color: #fff;
text-decoration: none;
border-radius: 3px;
- padding-left: 1px; }
- .meta-query-wrap .remove-meta-query:hover, .meta-query-wrap .remove-meta-query:hover,
- .taxonomy-wrap .remove-tax-query:hover,
- .taxonomy-wrap .remove-tax-query:hover {
- background-color: #c71316;
- color: #fff; }
+ padding-left: 1px;
+}
+.meta-query-wrap .remove-meta-query:hover, .meta-query-wrap .remove-meta-query:hover,
+.taxonomy-wrap .remove-tax-query:hover,
+.taxonomy-wrap .remove-tax-query:hover {
+ background-color: #c71316;
+ color: #fff;
+}
.ajax-load-more .meta-query-wrap {
display: -webkit-box;
@@ -1995,20 +2456,25 @@ a.button-small {
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
- width: 100%; }
- .ajax-load-more .meta-query-wrap > div {
- width: 48%;
- margin: 0 0 15px; }
+ width: 100%;
+}
+.ajax-load-more .meta-query-wrap > div {
+ width: 48%;
+ margin: 0 0 15px;
+}
.meta-query-extended .meta-query-wrap {
- margin-bottom: 15px; }
+ margin-bottom: 15px;
+}
#meta-query-relation {
- margin: 15px 0; }
+ margin: 15px 0;
+}
.ajax-load-more .meta-query-wrap .border-top:first-of-type {
padding: 0 0 0 !important;
- border: none; }
+ border: none;
+}
.ajax-load-more #taxonomy-extended,
.ajax-load-more #nav-controls,
@@ -2020,24 +2486,29 @@ a.button-small {
.ajax-load-more .taxonomy-extended,
.ajax-load-more #paging-controls-nav {
display: none;
- overflow: hidden; }
+ overflow: hidden;
+}
.ajax-load-more .taxonomy-extended {
- padding-top: 15px; }
+ padding-top: 15px;
+}
.ajax-load-more .taxonomy-wrap {
display: none;
- position: relative; }
+ position: relative;
+}
.ajax-load-more .row .wrap .inner .ajax-load-more p.warning {
color: #d24646;
font-size: 13px;
border-left: 3px solid #d24646;
margin: 0;
- padding: 0 0 0 10px; }
+ padding: 0 0 0 10px;
+}
.ajax-load-more .row .wrap .inner.taxonomy {
- padding-bottom: 0; }
+ padding-bottom: 0;
+}
.ajax-load-more p.warning-callout {
background-color: #eaf6fb;
@@ -2051,34 +2522,41 @@ a.button-small {
margin: 10px;
width: auto;
line-height: 1.55;
- position: relative; }
- .ajax-load-more p.warning-callout a {
- color: #0071ac; }
- .ajax-load-more p.warning-callout a.button-small {
- position: absolute;
- right: 14px;
- top: 14px;
- font-size: 12px;
- display: inline-block;
- background-color: rgba(255, 255, 255, 0.75);
- margin: 0 0 0 10px; }
- .ajax-load-more p.warning-callout a.button-small:hover, .ajax-load-more p.warning-callout a.button-small:focus {
- background-color: #fff; }
- .ajax-load-more p.warning-callout strong {
- display: inline-block;
- font-weight: normal;
- font-family: Consolas, monaco, monospace;
- background-color: #fff;
- padding: 1px 6px 0;
- border-radius: 2px; }
+ position: relative;
+}
+.ajax-load-more p.warning-callout a {
+ color: #0071ac;
+}
+.ajax-load-more p.warning-callout a.button-small {
+ position: absolute;
+ right: 14px;
+ top: 14px;
+ font-size: 12px;
+ display: inline-block;
+ background-color: rgba(255, 255, 255, 0.75);
+ margin: 0 0 0 10px;
+}
+.ajax-load-more p.warning-callout a.button-small:hover, .ajax-load-more p.warning-callout a.button-small:focus {
+ background-color: #fff;
+}
+.ajax-load-more p.warning-callout strong {
+ display: inline-block;
+ font-weight: normal;
+ font-family: Consolas, monaco, monospace;
+ background-color: #fff;
+ padding: 1px 6px 0;
+ border-radius: 2px;
+}
.ajax-load-more p.warning-callout.notify {
background-color: #da5858;
border-color: #b94848;
- color: #fff; }
- .ajax-load-more p.warning-callout.notify strong {
- background-color: #9a4343;
- color: #fff; }
+ color: #fff;
+}
+.ajax-load-more p.warning-callout.notify strong {
+ background-color: #9a4343;
+ color: #fff;
+}
.ajax-load-more label,
.ajax-load-more input,
@@ -2093,31 +2571,38 @@ a.button-small {
border-radius: 3px;
color: #393d41;
-webkit-box-shadow: none;
- box-shadow: none; }
+ box-shadow: none;
+}
-.ajax-load-more input[type='checkbox'],
-.ajax-load-more input[type='radio'] {
- width: 1rem; }
+.ajax-load-more input[type=checkbox],
+.ajax-load-more input[type=radio] {
+ width: 1rem;
+}
.controls button.disabled {
- opacity: 0.5; }
+ opacity: 0.5;
+}
.ajax-load-more textarea._alm_repeater {
font-family: Consolas, monaco, monospace;
font-size: 13px;
line-height: 19px;
- padding: 10px; }
+ padding: 10px;
+}
.ajax-load-more textarea._alm_repeater:focus {
- color: #222; }
+ color: #222;
+}
.ajax-load-more label {
padding: 5px 0;
- border-radius: 0; }
+ border-radius: 0;
+}
.checkboxes input,
.radio input {
- margin-top: 2px; }
+ margin-top: 2px;
+}
.checkboxes input,
.checkboxes label,
@@ -2127,73 +2612,89 @@ a.button-small {
width: auto;
margin-right: 10px;
padding: 0;
- clear: none; }
+ clear: none;
+}
.radio input {
- margin-left: 3px; }
+ margin-left: 3px;
+}
.ajax-load-more textarea,
-.ajax-load-more input[type='text'],
-.ajax-load-more input[type='email'],
-.ajax-load-more input[type='search'],
-.ajax-load-more input[type='number'] {
+.ajax-load-more input[type=text],
+.ajax-load-more input[type=email],
+.ajax-load-more input[type=search],
+.ajax-load-more input[type=number] {
padding: 10px 12px;
line-height: 1.3;
- border: 1px solid #e1e1e1;
- width: 60%; }
+ border: 1px solid #e7e7e7;
+ width: 60%;
+}
-.ajax-load-more input[type='text'].full {
- width: 100%; }
+.ajax-load-more input[type=text].full {
+ width: 100%;
+}
.ajax-load-more .wrap-30 {
width: 32.333%;
padding-right: 3%;
display: inline-block;
- vertical-align: top; }
+ vertical-align: top;
+}
.ajax-load-more .wrap-30.wrap-50 {
- width: 48.6666%; }
+ width: 48.6666%;
+}
.ajax-load-more .wrap-30.wrap-50.padding-top {
- padding-top: 15px; }
+ padding-top: 15px;
+}
-.ajax-load-more .wrap-30 input[type='text'].sm,
+.ajax-load-more .wrap-30 input[type=text].sm,
.ajax-load-more .wrap-30 .select2-container {
width: 100%;
- margin: 0; }
+ margin: 0;
+}
-.ajax-load-more input[type='number'].sm {
- width: 100px; }
+.ajax-load-more input[type=number].sm {
+ width: 100px;
+}
.ajax-load-more ::-webkit-input-placeholder {
color: #999;
- font-style: italic; }
+ font-style: italic;
+}
.ajax-load-more :-moz-placeholder {
/* Firefox 18- */
color: #999;
- font-style: italic; }
+ font-style: italic;
+}
.ajax-load-more ::-moz-placeholder {
/* Firefox 19+ */
color: #999;
- font-style: italic; }
+ font-style: italic;
+}
.ajax-load-more :-ms-input-placeholder {
color: #999;
- font-style: italic; }
+ font-style: italic;
+}
-.ajax-load-more .repeaters input[type='text'] {
- padding: 9px 10px; }
+.ajax-load-more .repeaters input[type=text] {
+ padding: 9px 10px;
+}
-.ajax-load-more input[type='number'] {
- height: auto; }
+.ajax-load-more input[type=number] {
+ height: auto;
+}
.admin.ajax-load-more .form-table textarea {
clear: both;
display: inline-block;
float: none;
- width: 100%; }
+ width: 100%;
+}
.admin.ajax-load-more textarea.disabled,
.ajax-load-more input.disabled-input {
@@ -2202,59 +2703,75 @@ a.button-small {
cursor: not-allowed;
border-color: #ccc !important;
-webkit-box-shadow: none !important;
- box-shadow: none !important; }
+ box-shadow: none !important;
+}
-.ajax-load-more input[type='text']:focus,
-.ajax-load-more input[type='number']:focus,
-.ajax-load-more input[type='email']:focus,
+.ajax-load-more input[type=text]:focus,
+.ajax-load-more input[type=number]:focus,
+.ajax-load-more input[type=email]:focus,
.ajax-load-more textarea:focus {
border-color: #3784c2;
-webkit-box-shadow: 0 0 4px 1px rgba(55, 132, 194, 0.15);
- box-shadow: 0 0 4px 1px rgba(55, 132, 194, 0.15); }
+ box-shadow: 0 0 4px 1px rgba(55, 132, 194, 0.15);
+}
.checkboxes label {
- margin-right: 5px; }
+ margin-right: 5px;
+}
.ajax-load-more .one_half {
display: inline-block;
width: 48%;
margin: 0 -2px 1% 2%;
- vertical-align: top; }
+ vertical-align: top;
+}
.ajax-load-more .one_half:first-of-type {
- margin: 0 2% 1% 0; }
+ margin: 0 2% 1% 0;
+}
.ajax-load-more .alm-row {
display: block;
- width: 100%; }
- .ajax-load-more .alm-row:after {
- content: '';
- clear: both;
- display: table; }
- .ajax-load-more .alm-row--margin-btm {
- margin-bottom: 20px; }
- .ajax-load-more .alm-row--margin-btm-lg {
- margin-bottom: 25px; }
- .ajax-load-more .alm-row .column {
- width: 100%;
+ width: 100%;
+}
+.ajax-load-more .alm-row:after {
+ content: "";
+ clear: both;
+ display: table;
+}
+.ajax-load-more .alm-row--margin-btm {
+ margin-bottom: 20px;
+}
+.ajax-load-more .alm-row--margin-btm-lg {
+ margin-bottom: 25px;
+}
+.ajax-load-more .alm-row .column {
+ width: 100%;
+ float: none;
+ padding: 0 20px;
+}
+.ajax-load-more .alm-row .column--half {
+ width: 50%;
+ float: left;
+}
+.ajax-load-more .alm-row .column--one-third {
+ width: 33.333%;
+ float: left;
+}
+.ajax-load-more .alm-row .column--two-third {
+ width: 66.666%;
+ float: left;
+}
+.ajax-load-more .alm-row .column--one-fourth {
+ width: 25%;
+ float: left;
+}
+@media screen and (max-width: 480px) {
+ .ajax-load-more .alm-row .column--half, .ajax-load-more .alm-row .column--one-third {
float: none;
- padding: 0 20px; }
- .ajax-load-more .alm-row .column--half {
- width: 50%;
- float: left; }
- .ajax-load-more .alm-row .column--one-third {
- width: 33.333%;
- float: left; }
- .ajax-load-more .alm-row .column--two-third {
- width: 66.666%;
- float: left; }
- .ajax-load-more .alm-row .column--one-fourth {
- width: 25%;
- float: left; }
- @media screen and (max-width: 480px) {
- .ajax-load-more .alm-row .column--half, .ajax-load-more .alm-row .column--one-third {
- float: none;
- width: 100%; } }
+ width: 100%;
+ }
+}
/* --------------------------------------------------------------------------- */
/* Row */
@@ -2267,122 +2784,150 @@ a.button-small {
display: block;
overflow: hidden;
clear: both;
- border: 1px solid #e1e1e1;
- border-radius: 3px; }
- .ajax-load-more .row.no-brd {
- border: none !important;
- padding: 0 !important; }
+ border: 1px solid #e7e7e7;
+ border-radius: 3px;
+}
+.ajax-load-more .row.no-brd {
+ border: none !important;
+ padding: 0 !important;
+}
.ajax-load-more#alm-repeaters .row {
- overflow: visible; }
+ overflow: visible;
+}
.admin.ajax-load-more .row {
- border-color: #e1e1e1; }
+ border-color: #e7e7e7;
+}
.admin.ajax-load-more .repeaters .row:hover,
.admin.ajax-load-more.shortcode-builder .row:hover {
border-color: #d9d9d9;
-webkit-box-shadow: 0 0 0 3px #f7f7f7;
- box-shadow: 0 0 0 3px #f7f7f7; }
+ box-shadow: 0 0 0 3px #f7f7f7;
+}
.admin.ajax-load-more .row:first-of-type {
margin-top: 20px;
- padding-top: 0; }
+ padding-top: 0;
+}
.ajax-load-more .intro {
height: auto;
width: 100%;
display: block;
- overflow: hidden; }
+ overflow: hidden;
+}
/* Jump Menu */
.pop-up-jump {
display: block;
- width: 100%; }
- .pop-up-jump .jump-menu-wrap {
- position: relative;
- float: right;
- width: 30%; }
- .pop-up-jump .jump-menu-wrap .select2-container {
- width: 100% !important;
- margin-bottom: 15px;
- position: relative;
- top: -5px; }
- .pop-up-jump .intro-wrap {
- position: relative;
- float: left;
- width: 65%;
- padding-right: 5%; }
+ width: 100%;
+}
+.pop-up-jump .jump-menu-wrap {
+ position: relative;
+ float: right;
+ width: 30%;
+}
+.pop-up-jump .jump-menu-wrap .select2-container {
+ width: 100% !important;
+ margin-bottom: 15px;
+ position: relative;
+ top: -5px;
+}
+.pop-up-jump .intro-wrap {
+ position: relative;
+ float: left;
+ width: 65%;
+ padding-right: 5%;
+}
.admin.ajax-load-more .jump-menu {
- display: none; }
+ display: none;
+}
/* Table of Contents */
#cnkt-sticky.attached {
position: fixed;
width: auto;
- top: 70px; }
+ top: 70px;
+}
.table-of-contents .select2-container {
- width: 100%; }
+ width: 100%;
+}
.table-of-contents ul {
- margin: 0 !important; }
+ margin: 0 !important;
+}
.table-of-contents li {
width: auto !important;
display: inline-block;
vertical-align: top;
padding: 0;
- margin: 5px 5px 5px 0; }
+ margin: 5px 5px 5px 0;
+}
.ajax-load-more .expand-wrap {
- display: block; }
+ display: block;
+}
#alm-examples.ajax-load-more .expand-wrap {
- padding: 10px 10px 0; }
+ padding: 10px 10px 0;
+}
.ajax-load-more .expand-wrap hr {
border: 0;
height: 0;
border-top: 1px solid #efefef;
- border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
+ border-bottom: 1px solid rgba(255, 255, 255, 0.3);
+}
hr.indented {
width: calc(100% - 40px);
- margin-left: 20px; }
+ margin-left: 20px;
+}
.ajax-load-more .section-title {
float: left;
padding: 20px 0 25px 20px;
- width: 35%; }
- .ajax-load-more .section-title.full {
- width: 100%;
- float: none;
- padding-right: 25px; }
- .ajax-load-more .section-title p:last-of-type {
- margin-bottom: 0; }
- .ajax-load-more .section-title small {
- font-size: 12px;
- padding-top: 10px;
- display: block; }
- .ajax-load-more .section-title h4 {
- font-size: 14px;
- font-weight: 600;
- margin-bottom: 15px; }
- .ajax-load-more .section-title p,
- .ajax-load-more .section-title .wrap p.descriptor {
- font-size: 13px;
- line-height: 20px;
- color: #999; }
+ width: 35%;
+}
+.ajax-load-more .section-title.full {
+ width: 100%;
+ float: none;
+ padding-right: 25px;
+}
+.ajax-load-more .section-title p:last-of-type {
+ margin-bottom: 0;
+}
+.ajax-load-more .section-title small {
+ font-size: 12px;
+ padding-top: 10px;
+ display: block;
+}
+.ajax-load-more .section-title h4 {
+ font-size: 14px;
+ font-weight: 600;
+ margin-bottom: 15px;
+}
+.ajax-load-more .section-title p,
+.ajax-load-more .section-title .wrap p.descriptor {
+ font-size: 13px;
+ line-height: 20px;
+ color: #999;
+}
.ajax-load-more .wrap p.descriptor {
margin: 0;
- font-style: italic; }
+ font-style: italic;
+}
.ajax-load-more .section-title p .fa.tooltip:hover,
.form-table label .fa.tooltip:hover {
- opacity: 1; }
+ opacity: 1;
+}
.ajax-load-more .fa.tooltip {
display: inline-block;
@@ -2398,10 +2943,12 @@ hr.indented {
text-align: center;
line-height: 16px;
-webkit-box-shadow: 0 1px 1px #ccc;
- box-shadow: 0 1px 1px #ccc; }
+ box-shadow: 0 1px 1px #ccc;
+}
.cta h3 .fa.tooltip {
- top: 1px; }
+ top: 1px;
+}
.ajax-load-more .section-title p span,
.admin.ajax-load-more.settings .form-table p.notify span {
@@ -2410,30 +2957,37 @@ hr.indented {
border-radius: 2px;
background: #f7f7f7;
border: 1px solid #efefef;
- color: #666; }
+ color: #666;
+}
.ajax-load-more .section-title h4 {
- margin: 0 0 10px; }
+ margin: 0 0 10px;
+}
.ajax-load-more .repeaters .section-title,
.ajax-load-more .repeaters .row .wrap {
width: 100%;
float: none;
- padding: 0; }
+ padding: 0;
+}
.ajax-load-more .repeaters .section-title p {
- padding-left: 0 !important; }
+ padding-left: 0 !important;
+}
.ajax-load-more label.template-title {
padding: 3px 2px 0;
margin: 0;
- display: block; }
- .ajax-load-more label.template-title.has-margin-btm {
- margin-bottom: 10px; }
+ display: block;
+}
+.ajax-load-more label.template-title.has-margin-btm {
+ margin-bottom: 10px;
+}
.ajax-load-more label input._alm_repeater_alias {
height: auto;
- line-height: normal !important; }
+ line-height: normal !important;
+}
.preload_amount,
.cache_id,
@@ -2446,7 +3000,8 @@ hr.indented {
.masonry-options,
.progress-bar-options,
.hide-section {
- display: none; }
+ display: none;
+}
.ajax-load-more .row .wrap {
padding: 20px 20px 0 5%;
@@ -2454,12 +3009,14 @@ hr.indented {
border: none;
width: 65%;
float: left;
- position: relative; }
+ position: relative;
+}
.ajax-load-more .row .wrap.full {
float: none;
width: 100%;
- padding: 0 15px 15px 36px; }
+ padding: 0 15px 15px 36px;
+}
/* ***********************************
-- Shortcode Output
@@ -2469,32 +3026,37 @@ hr.indented {
background: #e84648;
width: 100%;
display: block;
- border-radius: 3px; }
- .ajax-load-more .output-wrap textarea {
- background-color: transparent !important;
- resize: none !important;
- height: auto !important;
- min-height: 100px;
- border: none !important;
- width: 100% !important;
- display: block;
- border-radius: 3px;
- font-family: monospace;
- font-size: 12px;
- line-height: 18px;
- color: #fff;
- cursor: pointer; }
+ border-radius: 3px;
+}
+.ajax-load-more .output-wrap textarea {
+ background-color: transparent !important;
+ resize: none !important;
+ height: auto !important;
+ min-height: 100px;
+ border: none !important;
+ width: 100% !important;
+ display: block;
+ border-radius: 3px;
+ font-family: monospace;
+ font-size: 12px;
+ line-height: 18px;
+ color: #fff;
+ cursor: pointer;
+}
.ajax-load-more .row .wrap.output {
- display: block !important; }
+ display: block !important;
+}
.ajax-load-more .row .wrap .inner {
- padding: 0 0 20px; }
+ padding: 0 0 20px;
+}
.ajax-load-more .row .wrap .inner.half {
padding: 0 0 20px;
width: 49.333%;
- display: inline-block; }
+ display: inline-block;
+}
/*
* Insert Shortcode Button
@@ -2518,20 +3080,24 @@ hr.indented {
box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.1), 0 1px 0px #ca5252;
text-shadow: none !important;
max-width: 20%;
- border-radius: 2px; }
+ border-radius: 2px;
+}
.admin.ajax-load-more #insert.insert_alm {
- display: none; }
+ display: none;
+}
#insert.insert_alm:hover {
- -webkit-box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.1), 0 0 3px white;
- box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.1), 0 0 3px white; }
+ -webkit-box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.1), 0 0 3px rgb(255, 255, 255);
+ box-shadow: inset 0 -15px 15px rgba(0, 0, 0, 0.1), 0 0 3px rgb(255, 255, 255);
+}
#insert.insert_alm:active {
background: #d0413f !important;
-webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.1);
- color: #fff !important; }
+ color: #fff !important;
+}
.ajax-load-more .clear {
clear: both;
@@ -2539,7 +3105,8 @@ hr.indented {
overflow: hidden;
width: 100%;
padding: 0;
- margin: 0; }
+ margin: 0;
+}
/*
* Admin Screens - Setting pages
@@ -2553,27 +3120,32 @@ hr.indented {
padding: 0 0 8px;
max-width: 90%;
cursor: pointer !important;
- line-height: 1.5; }
+ line-height: 1.5;
+}
-.form-table input[type='radio'],
-.form-table input[type='checkbox'] {
+.form-table input[type=radio],
+.form-table input[type=checkbox] {
vertical-align: top;
margin-top: 0 !important;
- max-width: 8%; }
+ max-width: 8%;
+}
.form-table label + textarea {
- margin-top: 10px; }
+ margin-top: 10px;
+}
.form-table label span,
#alm-shortcode-builder-form label span.description {
font-size: 13px;
color: #6a7178;
- padding-top: 10px; }
+ padding-top: 10px;
+}
#alm-shortcode-builder-form label span.description {
display: block;
padding-top: 1px;
- padding-bottom: 5px; }
+ padding-bottom: 5px;
+}
.admin.ajax-load-more textarea.disabled,
.admin.ajax-load-more input.disabled {
@@ -2584,113 +3156,138 @@ hr.indented {
background: #efefef;
color: #666;
text-shadow: 1px 1px 0 #fff;
- resize: none; }
+ resize: none;
+}
-.admin.ajax-load-more .form-table input[type='radio'],
-.admin.ajax-load-more .form-table input[type='checkbox'] {
+.admin.ajax-load-more .form-table input[type=radio],
+.admin.ajax-load-more .form-table input[type=checkbox] {
margin-right: 10px;
- margin-top: 0 !important; }
+ margin-top: 0 !important;
+}
-.admin.ajax-load-more.settings input[type='text'],
-.admin.ajax-load-more.settings input[type='number'],
-.admin.ajax-load-more.settings input[type='email'],
+.admin.ajax-load-more.settings input[type=text],
+.admin.ajax-load-more.settings input[type=number],
+.admin.ajax-load-more.settings input[type=email],
.admin.ajax-load-more.settings .select2-container {
- margin-top: 10px; }
+ margin-top: 10px;
+}
.admin.ajax-load-more .ajax-load-more-wrap {
position: relative;
top: 10px;
padding: 20px;
- border: 1px solid #e1e1e1;
+ border: 1px solid #e7e7e7;
-webkit-box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.025), 0 0 5px rgba(0, 0, 0, 0.1);
box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.025), 0 0 5px rgba(0, 0, 0, 0.1);
border-radius: 3px;
margin-top: 10px;
- margin-bottom: 10px; }
- .admin.ajax-load-more .ajax-load-more-wrap.preview-pane.none {
- display: none; }
- .admin.ajax-load-more .ajax-load-more-wrap .alm-btn-wrap {
- text-align: left;
- padding: 0;
- margin: 0; }
- .admin.ajax-load-more .ajax-load-more-wrap button {
- margin: 0 !important;
- opacity: 1 !important;
- visibility: visible !important; }
- .admin.ajax-load-more .ajax-load-more-wrap span {
- display: block;
- font-size: 10px;
- line-height: 1;
- border-bottom: 1px solid #e1e1e1;
- padding: 0 0 10px;
- margin: 0 0 20px;
- text-transform: uppercase; }
- .admin.ajax-load-more .ajax-load-more-wrap ul.alm-paging li span {
- padding: 0;
- margin: 0; }
+ margin-bottom: 10px;
+}
+.admin.ajax-load-more .ajax-load-more-wrap.preview-pane.none {
+ display: none;
+}
+.admin.ajax-load-more .ajax-load-more-wrap .alm-btn-wrap {
+ text-align: left;
+ padding: 0;
+ margin: 0;
+}
+.admin.ajax-load-more .ajax-load-more-wrap button {
+ margin: 0 !important;
+ opacity: 1 !important;
+ visibility: visible !important;
+}
+.admin.ajax-load-more .ajax-load-more-wrap span {
+ display: block;
+ font-size: 10px;
+ line-height: 1;
+ border-bottom: 1px solid #e7e7e7;
+ padding: 0 0 10px;
+ margin: 0 0 20px;
+ text-transform: uppercase;
+}
+.admin.ajax-load-more .ajax-load-more-wrap ul.alm-paging li span {
+ padding: 0;
+ margin: 0;
+}
.admin.ajax-load-more.settings {
- /* Table Overrides */ }
- .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li {
- font-size: 14px; }
- .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li a {
- text-decoration: none; }
- .admin.ajax-load-more.settings .ajax-load-more-wrap.pages li span {
- margin: 0;
- font-size: 14px;
- border-bottom: none; }
- .admin.ajax-load-more.settings .form-table td,
- .admin.ajax-load-more.settings .form-table th {
- padding: 25px;
- line-height: 1.5; }
- .admin.ajax-load-more.settings .form-table td:last-of-type,
- .admin.ajax-load-more.settings .form-table th:last-of-type {
- margin: 0; }
- .admin.ajax-load-more.settings .form-table th {
- font-weight: 600;
- background-color: #f7f7f7;
- border-right: 1px solid #e1e1e1;
- width: 25%; }
- .admin.ajax-load-more.settings .form-table p {
- margin-top: 0; }
- .admin.ajax-load-more.settings .form-table p.notify {
- font-size: 12px;
- padding: 10px 0 0;
- margin: 5px 0 20px;
- overflow: hidden;
- color: #999; }
- .admin.ajax-load-more.settings .nextpage-option {
- display: block;
- padding: 10px;
- background-color: #f7f7f7;
- border: 1px solid #e1e1e1;
- margin: 10px 0;
- border-radius: 3px; }
- .admin.ajax-load-more.settings .nextpage-option > div label {
- margin: 0;
- width: 100%; }
- .admin.ajax-load-more.settings .nextpage-option--type input:checked + label {
- font-weight: 600; }
- .admin.ajax-load-more.settings .nextpage-option--shortcode {
- display: none;
- padding: 10px 5px 5px 30px; }
- .admin.ajax-load-more.settings .nextpage-option--shortcode.active {
- display: block; }
- .admin.ajax-load-more.settings .nextpage-option--shortcode label {
- padding: 10px 1px 0;
- margin: 0 0 10px;
- font-size: 13px;
- border-top: 1px solid #e1e1e1;
- display: block;
- width: 100%;
- max-width: 100%; }
- .admin.ajax-load-more.settings .nextpage-option--shortcode textarea {
- border-radius: 3px;
- font-size: 12px;
- line-height: 1.55;
- font-family: Consolas, monaco, monospace;
- width: 100%;
- display: block; }
+ /* Table Overrides */
+}
+.admin.ajax-load-more.settings .ajax-load-more-wrap.pages li {
+ font-size: 14px;
+}
+.admin.ajax-load-more.settings .ajax-load-more-wrap.pages li a {
+ text-decoration: none;
+}
+.admin.ajax-load-more.settings .ajax-load-more-wrap.pages li span {
+ margin: 0;
+ font-size: 14px;
+ border-bottom: none;
+}
+.admin.ajax-load-more.settings .form-table td,
+.admin.ajax-load-more.settings .form-table th {
+ padding: 25px;
+ line-height: 1.5;
+}
+.admin.ajax-load-more.settings .form-table td:last-of-type,
+.admin.ajax-load-more.settings .form-table th:last-of-type {
+ margin: 0;
+}
+.admin.ajax-load-more.settings .form-table th {
+ font-weight: 600;
+ background-color: #f7f7f7;
+ border-right: 1px solid #efefef;
+ width: 25%;
+}
+.admin.ajax-load-more.settings .form-table p {
+ margin-top: 0;
+}
+.admin.ajax-load-more.settings .form-table p.notify {
+ font-size: 12px;
+ padding: 10px 0 0;
+ margin: 5px 0 20px;
+ overflow: hidden;
+ color: #999;
+}
+.admin.ajax-load-more.settings .nextpage-option {
+ display: block;
+ padding: 10px;
+ background-color: #f7f7f7;
+ border: 1px solid #e7e7e7;
+ margin: 10px 0;
+ border-radius: 3px;
+}
+.admin.ajax-load-more.settings .nextpage-option > div label {
+ margin: 0;
+ width: 100%;
+}
+.admin.ajax-load-more.settings .nextpage-option--type input:checked + label {
+ font-weight: 600;
+}
+.admin.ajax-load-more.settings .nextpage-option--shortcode {
+ display: none;
+ padding: 10px 5px 5px 30px;
+}
+.admin.ajax-load-more.settings .nextpage-option--shortcode.active {
+ display: block;
+}
+.admin.ajax-load-more.settings .nextpage-option--shortcode label {
+ padding: 10px 1px 0;
+ margin: 0 0 10px;
+ font-size: 13px;
+ border-top: 1px solid #e7e7e7;
+ display: block;
+ width: 100%;
+ max-width: 100%;
+}
+.admin.ajax-load-more.settings .nextpage-option--shortcode textarea {
+ border-radius: 3px;
+ font-size: 12px;
+ line-height: 1.55;
+ font-family: Consolas, monaco, monospace;
+ width: 100%;
+ display: block;
+}
.ajax-load-more h2.addon-title {
font-size: 19px !important;
@@ -2698,48 +3295,58 @@ hr.indented {
font-weight: 700 !important;
color: #444 !important;
padding: 0;
- margin: 0 0 10px; }
+ margin: 0 0 10px;
+}
.ajax-load-more p.addon-intro {
font-size: 16px !important;
line-height: 22px !important;
- color: #999 !important; }
+ color: #999 !important;
+}
.ajax-load-more h3.add-on-title {
padding: 0 0 10px;
margin: 0 0 20px;
- border-bottom: 1px solid #efefef; }
+ border-bottom: 1px solid #efefef;
+}
.ajax-load-more h3 {
- margin-bottom: 10px; }
+ margin-bottom: 10px;
+}
.ajax-load-more h3.add-on-title,
.ajax-load-more .cnkt-sidebar h3 {
padding: 0 0 10px;
margin: 0 0 20px;
- border-bottom: 1px solid #f1f1f1; }
+ border-bottom: 1px solid #efefef;
+}
.ajax-load-more p.desc,
.ajax-load-more p.writeable-title {
- padding: 0 0 2px 28px; }
+ padding: 0 0 2px 28px;
+}
.ajax-load-more p.writeable-title {
- position: relative; }
+ position: relative;
+}
.ajax-load-more p.writeable-title i {
position: absolute !important;
left: 0 !important;
- top: 1px !important; }
+ top: 1px !important;
+}
.ajax-load-more p.back2top {
font-size: 14px;
margin: 0;
padding: 0;
- text-align: center; }
+ text-align: center;
+}
.ajax-load-more p.back2top a {
text-decoration: none;
- display: block; }
+ display: block;
+}
.saved-response,
p.loading {
@@ -2753,43 +3360,53 @@ p.loading {
width: auto;
position: relative;
top: 5px;
- left: 15px; }
+ left: 15px;
+}
.saved-error {
- color: #e03e3e; }
+ color: #e03e3e;
+}
.saved-response em {
color: #333;
display: block;
- padding: 5px 0; }
+ padding: 5px 0;
+}
.saved {
color: #90be59;
- font-weight: 700; }
+ font-weight: 700;
+}
p.loading {
- position: static; }
+ position: static;
+}
.saved-response.loading,
p.loading,
.alm-dropdown ul li a.updating {
background: url("../../img/loader.gif") no-repeat left center;
- padding-left: 24px; }
+ padding-left: 24px;
+}
.alm-dropdown ul li a.updating {
background-position: 9px 54%;
- padding-left: 34px; }
+ padding-left: 34px;
+}
.restore-default {
float: right;
margin: 19px 20px 0 0;
- font-size: 12px; }
+ font-size: 12px;
+}
.restore-default a {
- text-decoration: none; }
+ text-decoration: none;
+}
table.highlight {
- background: #fff !important; }
+ background: #fff !important;
+}
/* Columns */
.ajax-load-more .cnkt-main {
@@ -2797,12 +3414,14 @@ table.highlight {
float: left;
background: #fff;
padding: 25px;
- border: 1px solid #e1e1e1;
- border-radius: 3px; }
- .ajax-load-more .cnkt-main.stylefree {
- padding: 0;
- background-color: transparent;
- border: none; }
+ border: 1px solid #e7e7e7;
+ border-radius: 3px;
+}
+.ajax-load-more .cnkt-main.stylefree {
+ padding: 0;
+ background-color: transparent;
+ border: none;
+}
.ajax-load-more .cnkt-main .group {
background: #fff;
@@ -2810,92 +3429,105 @@ table.highlight {
margin: 0 0 20px;
position: relative;
display: block;
- clear: both; }
+ clear: both;
+}
.ajax-load-more .cnkt-main .group,
.ajax-load-more .cnkt-sidebar .cta,
.call-out.light {
- border: 1px solid #e1e1e1;
+ border: 1px solid #e7e7e7;
-webkit-box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
- box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); }
- .ajax-load-more .cnkt-main .group.no-shadow,
- .ajax-load-more .cnkt-sidebar .cta.no-shadow,
- .call-out.light.no-shadow {
- -webkit-box-shadow: none;
- box-shadow: none; }
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
+}
+.ajax-load-more .cnkt-main .group.no-shadow,
+.ajax-load-more .cnkt-sidebar .cta.no-shadow,
+.call-out.light.no-shadow {
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
.ajax-load-more .cnkt-main .repeater-listing {
- border: 1px solid #e1e1e1;
+ border: 1px solid #e7e7e7;
background-color: #fff;
border-radius: 3px;
- padding: 25px;
- position: relative; }
- .ajax-load-more .cnkt-main .repeater-listing .toggle-all {
- right: -1px;
- top: -45px; }
- .ajax-load-more .cnkt-main .repeater-listing .flexbox-wrap {
- margin: 0; }
+ padding: 20px;
+ position: relative;
+}
+.ajax-load-more .cnkt-main .repeater-listing .toggle-all {
+ right: -1px;
+ top: -45px;
+}
+.ajax-load-more .cnkt-main .repeater-listing .flexbox-wrap {
+ margin: 0;
+}
.ajax-load-more .cnkt-main.full {
width: 100%;
- float: none; }
+ float: none;
+}
.ajax-load-more .cnkt-main h2,
.ajax-load-more .cnkt-main h3,
.ajax-load-more .cnkt-main h4 {
- margin-top: 0; }
+ margin-top: 0;
+}
.form-table tr {
- border-top: 1px solid #e1e1e1; }
+ border-top: 1px solid #efefef;
+}
.form-table {
- border: 1px solid #e1e1e1;
- margin: 0 0 20px; }
- .form-table br {
- height: 1px;
- display: block;
- overflow: hidden;
- line-height: 1px;
- margin: 0;
- content: ''; }
+ border: 1px solid #efefef;
+ margin: 0 0 20px;
+}
+.form-table br {
+ height: 1px;
+ display: block;
+ overflow: hidden;
+ line-height: 1px;
+ margin: 0;
+ content: "";
+}
#alm_OptionsForm .form-table:last-of-type {
- margin-bottom: 0; }
+ margin-bottom: 0;
+}
/* Repeaters */
.repeaters .repeater-wrap {
- padding: 15px 0 !important; }
-
+ padding: 15px 0 !important;
+}
.repeaters .repeater-wrap label {
- font-weight: 600; }
- .repeaters .repeater-wrap label span {
- display: block;
- font-weight: 400;
- color: #999;
- font-size: 13px;
- padding-top: 2px; }
-
+ font-weight: 600;
+}
+.repeaters .repeater-wrap label span {
+ display: block;
+ font-weight: 400;
+ color: #999;
+ font-size: 13px;
+ padding-top: 2px;
+}
.repeaters input.save-repeater {
display: inline-block;
margin: 0;
clear: none;
- max-width: 25%; }
-
+ max-width: 25%;
+}
.repeaters .repeater-wrap textarea,
-.repeaters .repeater-wrap input[type='text'] {
- width: 100%; }
-
+.repeaters .repeater-wrap input[type=text] {
+ width: 100%;
+}
.repeaters input.save-repeater.saving {
cursor: default !important;
- opacity: 0.3 !important; }
-
+ opacity: 0.3 !important;
+}
.repeaters .saved-response {
max-width: 72%;
- opacity: 0; }
-
+ opacity: 0;
+}
.repeaters .one_half {
- padding-bottom: 10px; }
-
+ padding-bottom: 10px;
+}
.repeaters .alm-delete {
clear: none;
display: inline-block;
@@ -2907,28 +3539,33 @@ table.highlight {
transition: all 0.2s ease;
position: absolute;
right: 15px;
- bottom: 15px; }
- .repeaters .alm-delete a {
- border-radius: 3px;
- background: none;
- color: #c94141;
- font-size: 14px;
- line-height: 30px;
- height: 30px;
- text-decoration: none;
- display: block;
- padding: 0 12px; }
- .repeaters .alm-delete a:hover {
- background-color: #c94141;
- color: #fff; }
- .repeaters .alm-delete a:focus {
- -webkit-box-shadow: none;
- box-shadow: none; }
- .repeaters .alm-delete a:active {
- background-color: #b93636; }
-
+ bottom: 15px;
+}
+.repeaters .alm-delete a {
+ border-radius: 3px;
+ background: none;
+ color: #c94141;
+ font-size: 14px;
+ line-height: 30px;
+ height: 30px;
+ text-decoration: none;
+ display: block;
+ padding: 0 12px;
+}
+.repeaters .alm-delete a:hover {
+ background-color: #c94141;
+ color: #fff;
+}
+.repeaters .alm-delete a:focus {
+ -webkit-box-shadow: none;
+ box-shadow: none;
+}
+.repeaters .alm-delete a:active {
+ background-color: #b93636;
+}
.repeaters .row:hover .alm-delete {
- opacity: 1; }
+ opacity: 1;
+}
/* Add-ons & Extensions */
.flexbox-wrap {
@@ -2938,17 +3575,19 @@ table.highlight {
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-bottom: 20px;
- border-top: 1px solid #e1e1e1;
- border-left: 1px solid #e1e1e1;
+ border-top: 1px solid #e7e7e7;
+ border-left: 1px solid #e7e7e7;
background-color: #fff;
- -webkit-box-shadow: inset 0 0 0 1px #e1e1e1;
- box-shadow: inset 0 0 0 1px #e1e1e1; }
- .flexbox-wrap p.intro {
- border-bottom: 1px solid #e1e1e1;
- width: 100%;
- padding: 20px;
- margin: 0;
- font-style: italic; }
+ -webkit-box-shadow: inset 0 0 0 1px #e7e7e7;
+ box-shadow: inset 0 0 0 1px #e7e7e7;
+}
+.flexbox-wrap p.intro {
+ border-bottom: 1px solid #e7e7e7;
+ width: 100%;
+ padding: 20px;
+ margin: 0;
+ font-style: italic;
+}
#alm-add-ons .group {
overflow: hidden;
@@ -2962,63 +3601,82 @@ table.highlight {
padding: 0;
border-radius: 0;
border-top: none;
- border-left: none; }
+ border-left: none;
+}
+#alm-add-ons .group.highlighted, #alm-add-ons .group.extend {
+ width: 100%;
+}
+#alm-add-ons .group.highlighted a, #alm-add-ons .group.extend a {
+ background: #f7f7f7;
+ border: 10px solid rgb(255, 255, 255);
+}
+#alm-add-ons .group.highlighted img, #alm-add-ons .group.extend img {
+ padding: 10px;
+}
+@media screen and (min-width: 768px) {
#alm-add-ons .group.highlighted, #alm-add-ons .group.extend {
- width: 100%; }
- #alm-add-ons .group.highlighted a, #alm-add-ons .group.extend a {
- background: #f7f7f7;
- border: 10px solid white; }
- #alm-add-ons .group.highlighted img, #alm-add-ons .group.extend img {
- padding: 10px; }
- @media screen and (min-width: 768px) {
- #alm-add-ons .group.highlighted, #alm-add-ons .group.extend {
- text-align: left; }
- #alm-add-ons .group.highlighted a, #alm-add-ons .group.extend a {
- padding: 25px;
- overflow: hidden;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -ms-flex-wrap: nowrap;
- flex-wrap: nowrap;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center; }
- #alm-add-ons .group.highlighted .pro-img,
- #alm-add-ons .group.highlighted .pro-details, #alm-add-ons .group.extend .pro-img,
- #alm-add-ons .group.extend .pro-details {
- -webkit-box-flex: 1;
- -ms-flex: 1;
- flex: 1; }
- #alm-add-ons .group.highlighted .pro-img, #alm-add-ons .group.extend .pro-img {
- max-width: 355px; }
- #alm-add-ons .group.highlighted .pro-details, #alm-add-ons .group.extend .pro-details {
- padding: 0 15px 0 35px; }
- #alm-add-ons .group.highlighted img, #alm-add-ons .group.extend img {
- position: static; }
- #alm-add-ons .group.highlighted span.cnkt-button, #alm-add-ons .group.extend span.cnkt-button {
- position: static;
- width: auto;
- display: inline-block;
- padding: 13px 30px;
- text-align: center;
- margin-top: 15px;
- font-size: 14px; } }
- @media screen and (min-width: 769px) and (max-width: 1270px) {
- #alm-add-ons .group.highlighted .pro-desc, #alm-add-ons .group.extend .pro-desc {
- display: none; } }
- #alm-add-ons .group.extend a {
- background-color: #fff;
- border-color: #fcfcfc; }
- #alm-add-ons .group.installed {
- opacity: 0.85;
- -webkit-filter: grayscale(1);
- filter: grayscale(1); }
- #alm-add-ons .group.installed p:before {
- display: none !important; }
- @media screen and (max-width: 1350px) {
- #alm-add-ons .group {
- width: 50%; } }
+ text-align: left;
+ }
+ #alm-add-ons .group.highlighted a, #alm-add-ons .group.extend a {
+ padding: 25px;
+ overflow: hidden;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -ms-flex-wrap: nowrap;
+ flex-wrap: nowrap;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+ }
+ #alm-add-ons .group.highlighted .pro-img,
+#alm-add-ons .group.highlighted .pro-details, #alm-add-ons .group.extend .pro-img,
+#alm-add-ons .group.extend .pro-details {
+ -webkit-box-flex: 1;
+ -ms-flex: 1;
+ flex: 1;
+ }
+ #alm-add-ons .group.highlighted .pro-img, #alm-add-ons .group.extend .pro-img {
+ max-width: 355px;
+ }
+ #alm-add-ons .group.highlighted .pro-details, #alm-add-ons .group.extend .pro-details {
+ padding: 0 15px 0 35px;
+ }
+ #alm-add-ons .group.highlighted img, #alm-add-ons .group.extend img {
+ position: static;
+ }
+ #alm-add-ons .group.highlighted span.cnkt-button, #alm-add-ons .group.extend span.cnkt-button {
+ position: static;
+ width: auto;
+ display: inline-block;
+ padding: 13px 30px;
+ text-align: center;
+ margin-top: 15px;
+ font-size: 14px;
+ }
+}
+@media screen and (min-width: 769px) and (max-width: 1270px) {
+ #alm-add-ons .group.highlighted .pro-desc, #alm-add-ons .group.extend .pro-desc {
+ display: none;
+ }
+}
+#alm-add-ons .group.extend a {
+ background-color: #fff;
+ border-color: #fcfcfc;
+}
+#alm-add-ons .group.installed {
+ opacity: 0.85;
+ -webkit-filter: grayscale(1);
+ filter: grayscale(1);
+}
+#alm-add-ons .group.installed p:before {
+ display: none !important;
+}
+@media screen and (max-width: 1350px) {
+ #alm-add-ons .group {
+ width: 50%;
+ }
+}
#alm-add-ons .group span.cnkt-button {
position: absolute;
@@ -3033,32 +3691,38 @@ table.highlight {
transition: all 0.15s ease;
border-bottom: none;
border-left: none;
- border-right: none; }
+ border-right: none;
+}
#alm-add-ons .group img {
- padding: 0 15px 15px; }
+ padding: 0 15px 15px;
+}
#alm-add-ons .group a {
text-decoration: none;
display: block;
padding: 25px 25px 70px;
- position: relative; }
-
+ position: relative;
+}
#alm-add-ons .group--pro a {
- padding-bottom: 17px; }
+ padding-bottom: 17px;
+}
#alm-add-ons .group a h2 {
-webkit-transition: all 0.15s ease;
- transition: all 0.15s ease; }
+ transition: all 0.15s ease;
+}
#alm-add-ons .group a:hover h2,
#alm-add-ons .group a:focus h2 {
color: #e84648 !important;
- text-decoration: underline; }
+ text-decoration: underline;
+}
#alm-add-ons .group.installed a:hover h2,
#alm-add-ons .group.installed a:focus h2 {
- color: #444 !important; }
+ color: #444 !important;
+}
/* Add-on Callout! */
.call-out {
@@ -3071,27 +3735,33 @@ table.highlight {
margin: 0;
width: 100%;
display: block;
- position: relative; }
+ position: relative;
+}
.call-out.light {
- background: #fdfdec; }
+ background: #fdfdec;
+}
.call-out.light p {
margin: 0;
padding: 0 30px;
text-align: center;
- font-weight: 400; }
+ font-weight: 400;
+}
.call-out.light p a {
- color: #e84648 !important; }
+ color: #e84648 !important;
+}
.call-out.light p a:hover {
- text-decoration: underline; }
+ text-decoration: underline;
+}
.shortcode-builder--items .call-out {
width: 90%;
width: calc(100% - 20px);
- margin: 10px; }
+ margin: 10px;
+}
.call-out .cnkt-button {
font-size: 13px;
@@ -3105,14 +3775,17 @@ table.highlight {
top: 13px;
color: #2d564c !important;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
- box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1); }
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
+}
.call-out a {
color: #2d564c !important;
text-decoration: none;
- font-weight: 600; }
- .call-out a:hover, .call-out a:focus {
- text-decoration: underline; }
+ font-weight: 600;
+}
+.call-out a:hover, .call-out a:focus {
+ text-decoration: underline;
+}
a.cnkt-button,
span.cnkt-button {
@@ -3125,7 +3798,8 @@ span.cnkt-button {
text-decoration: none !important;
color: #fff !important;
font-size: 14px;
- font-weight: 600; }
+ font-weight: 600;
+}
a.cnkt-button:hover,
a.cnkt-button:hover i,
@@ -3135,14 +3809,16 @@ a.cnkt-button:hover i,
border-color: #935eaf;
color: #fff !important;
-webkit-box-shadow: none;
- box-shadow: none; }
+ box-shadow: none;
+}
a.cnkt-button:focus,
.group:focus span.cnkt-button {
background-color: #83519d;
border-color: #935eaf;
color: #fff !important;
- outline: none; }
+ outline: none;
+}
a.cnkt-button i,
span.cnkt-button i {
@@ -3152,7 +3828,8 @@ span.cnkt-button i {
top: 1px;
background: none !important;
-webkit-transition: all 0.15s ease;
- transition: all 0.15s ease; }
+ transition: all 0.15s ease;
+}
a.cnkt-button.installed,
span.cnkt-button.installed,
@@ -3161,14 +3838,16 @@ span.cnkt-button.installed,
border-color: #efefef !important;
color: #888 !important;
-webkit-box-shadow: none !important;
- box-shadow: none !important; }
+ box-shadow: none !important;
+}
a.cnkt-button.installed i,
span.cnkt-button.installed i,
.group:hover span.cnkt-button.installed i {
background: none !important;
color: #5da592 !important;
- top: 0; }
+ top: 0;
+}
/*
* Licenses
@@ -3179,72 +3858,81 @@ span.cnkt-button.installed i,
overflow: hidden;
margin: 0;
display: block;
- padding: 20px 0 0;
- position: relative; }
-
+ padding: 15px 0 0;
+ position: relative;
+}
.license:first-of-type {
- padding: 10px 0 0; }
-
-.license-title {
+ padding: 10px 0 0;
+}
+.license .license-title {
border-radius: 3px 3px 0 0;
- border: 1px solid #e1e1e1;
+ padding: 15px;
+ border: 1px solid #e7e7e7;
background-color: #f7f7f7;
- position: relative; }
-
-.license-title .status {
- width: 13px;
- height: 13px;
+ position: relative;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+ width: 100%;
+}
+.license .license-title .status {
+ width: 10px;
+ height: 10px;
border-radius: 100%;
background: #d45656;
- position: absolute;
- left: 15px;
- top: 50%;
- margin-top: -7px;
- -webkit-box-shadow: inset 0 -6px 6px rgba(0, 0, 0, 0.05), 0 1px 0 #fff;
- box-shadow: inset 0 -6px 6px rgba(0, 0, 0, 0.05), 0 1px 0 #fff; }
-
-.license-title .status.valid {
- background-color: #8ed074; }
-
-.license h2 {
+ -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
+ margin-right: 8px;
+}
+.license .license-title .status.valid {
+ background-color: #8ed074;
+}
+.license .license-title h3 {
margin: 0;
- padding: 15px 15px 15px 38px;
- font-size: 16px;
- font-weight: 700;
- line-height: 1.2; }
-
+ padding: 0;
+ font-size: 15px;
+ font-weight: 600;
+ line-height: 1;
+}
+.license .license-title .fa.tooltip {
+ top: 0;
+ margin-left: auto;
+}
.license p,
.license label {
font-size: 400;
- font-size: 14px; }
-
+ font-size: 14px;
+}
.license .cnkt-button {
position: absolute;
top: 9px;
right: 15px;
- padding: 5px 7px !important; }
-
+ padding: 5px 7px !important;
+}
.license a.cnkt-button.installed {
background-color: none !important;
-webkit-box-shadow: none !important;
box-shadow: none !important;
- border-color: transparent !important; }
-
+ border-color: transparent !important;
+}
.license .no-license {
display: block;
padding: 12px;
- margin: 0 0 20px;
+ margin: 0 0 15px;
border: 1px solid #e7e7c6;
background-color: #ffffe5;
- border-radius: 2px; }
-
+ border-radius: 2px;
+}
.license .no-license h4 {
- margin: 0 0 3px; }
-
+ margin: 0 0 3px;
+}
.license .no-license p {
margin: 5px 0 0;
- padding: 0; }
-
+ padding: 0;
+}
.license .loading {
position: absolute;
left: 0;
@@ -3253,58 +3941,78 @@ span.cnkt-button.installed i,
height: 100%;
background: rgba(255, 255, 255, 0.6) url("../../img/loader.gif") no-repeat center center;
z-index: 9;
- display: none; }
-
-.license-btn.hide,
-.renew-btn.hide {
- display: none; }
-
-.license-btn-wrap {
- display: block; }
-
-.license-btn-wrap .msg {
+ display: none;
+}
+.license .license-btn.hide,
+.license .renew-btn.hide {
+ display: none;
+}
+.license .license-btn-wrap {
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ width: 100%;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+ gap: 6px;
+}
+.license .license-btn-wrap .msg {
display: block;
padding: 15px 0 0;
font-size: 14px;
line-height: 24px;
position: relative;
- top: 4px; }
-
-.license-btn-wrap .msg strong {
- display: block; }
-
-.license-btn-wrap .msg em {
+ top: 4px;
+}
+.license .license-btn-wrap .msg strong {
+ display: block;
+}
+.license .license-btn-wrap .msg em {
opacity: 0.7;
- font-style: normal; }
-
-.license-wrap,
-.license-no-addons {
+ font-style: normal;
+}
+.license .license-wrap,
+.license .license-no-addons {
overflow: hidden;
display: block;
padding: 18px 15px;
- border: 1px solid #e1e1e1;
+ border: 1px solid #e7e7e7;
border-top: none;
background-color: #fff;
- border-radius: 0 0 3px 3px; }
-
-.license-wrap label {
+ border-radius: 0 0 3px 3px;
+}
+.license .license-wrap label {
font-weight: 600;
- top: -3px; }
-
-.license-wrap input[type='text'] {
+ top: -3px;
+}
+.license .license-wrap input[type=text],
+.license .license-wrap input[type=password] {
margin: 0;
width: 100% !important;
- padding: 14px; }
-
-.license-wrap .button-primary {
- margin-right: 5px; }
-
-.license-key-field {
+ padding: 15px;
+ min-height: 0;
+ border-color: #e7e7e7;
+ line-height: 1;
+}
+.license .license-wrap input[type=text][disabled],
+.license .license-wrap input[type=password][disabled] {
+ color: #ccc;
+ cursor: not-allowed;
+}
+.license .license-wrap input[type=text]:focus,
+.license .license-wrap input[type=password]:focus {
+ border-color: #ccc;
+}
+.license .license-wrap .button-primary {
+ margin-right: 10px;
+}
+.license .license-key-field {
position: relative;
display: block;
- margin: 0 0 20px; }
-
-.license-key-field .status {
+ margin: 0 0 15px;
+}
+.license .license-key-field .status {
position: absolute;
right: 10px;
top: 50%;
@@ -3312,36 +4020,37 @@ span.cnkt-button.installed i,
-ms-transform: translateY(-50%);
transform: translateY(-50%);
display: inline-block;
- border-radius: 2px;
- padding: 6px 12px;
- line-height: 1.3;
+ border-radius: 3px;
+ padding: 6px 10px;
+ line-height: 1.35;
color: #fff;
- border-color: #999;
- cursor: default; }
-
-.license-key-field .status.active {
- background-color: #8ed074; }
-
-.license-key-field .status.inactive {
- background-color: #d45656; }
-
-.ajax-load-more .alm-nav {
+ cursor: default;
+ font-weight: 500;
+}
+.license .license-key-field .status.active {
+ background-color: #8ed074;
+}
+.license .license-key-field .status.inactive {
+ background-color: #d45656;
+}
+.license .ajax-load-more .alm-nav {
font-size: 600;
font-size: 14px;
margin: 0 !important;
- padding: 5px 0 5px; }
-
-.ajax-load-more .alm-nav a {
- display: inline-block; }
-
-.license-no-addons {
+ padding: 5px 0 5px;
+}
+.license .ajax-load-more .alm-nav a {
+ display: inline-block;
+}
+.license .license-no-addons {
border: 1px solid #bad0da;
border-radius: 3px;
- background-color: #e0f5ff; }
-
-.license-no-addons p {
+ background-color: #e0f5ff;
+}
+.license .license-no-addons p {
margin: 0;
- padding: 0; }
+ padding: 0;
+}
/*
* Plugin Sidebar
@@ -3356,145 +4065,174 @@ span.cnkt-button.installed i,
position: relative;
-webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.035);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.035);
- border-radius: 3px; }
- .ajax-load-more .cnkt-sidebar .cta .alm-file-location:not(input) {
- padding-top: 15px;
- margin-top: 15px;
- border-top: 1px solid #efefef; }
- .ajax-load-more .cnkt-sidebar .cta .alm-file-location:not(input) input {
- font-size: 11px;
- font-family: Consolas, monaco, monospace;
- width: 100%; }
+ border-radius: 3px;
+}
+.ajax-load-more .cnkt-sidebar .cta .alm-file-location:not(input) {
+ padding-top: 15px;
+ margin-top: 15px;
+ border-top: 1px solid #efefef;
+}
+.ajax-load-more .cnkt-sidebar .cta .alm-file-location:not(input) input {
+ font-size: 11px;
+ font-family: Consolas, monaco, monospace;
+ width: 100%;
+}
.alm-status {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
margin: 0 0 15px;
- cursor: default; }
- .alm-status span {
- background-color: #f7f7f7;
- padding: 0 10px 0 0;
- line-height: 1;
- border-radius: 3px;
- overflow: hidden;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center;
- font-weight: 500;
- text-transform: uppercase;
- font-size: 11px; }
- .alm-status span i {
- padding: 10px 12px;
- margin: 0 10px 0 0;
- text-align: center; }
- .alm-status.success span i {
- background-color: #8ed074;
- color: #fff; }
- .alm-status.failed span i {
- background-color: #c71316;
- color: #fff; }
+ cursor: default;
+}
+.alm-status span {
+ background-color: #f7f7f7;
+ padding: 0 10px 0 0;
+ line-height: 1;
+ border-radius: 3px;
+ overflow: hidden;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+ font-weight: 500;
+ text-transform: uppercase;
+ font-size: 11px;
+}
+.alm-status span i {
+ padding: 10px 12px;
+ margin: 0 10px 0 0;
+ text-align: center;
+}
+.alm-status.success span i {
+ background-color: #8ed074;
+ color: #fff;
+}
+.alm-status.failed span i {
+ background-color: #c71316;
+ color: #fff;
+}
.ajax-load-more .cnkt-sidebar .cta-inner {
padding: 15px;
- display: block; }
- .ajax-load-more .cnkt-sidebar .cta-inner .cta-inner {
- background-color: #f7f7f7;
- border-radius: 3px;
- border: 1px solid #e1e1e1; }
+ display: block;
+}
+.ajax-load-more .cnkt-sidebar .cta-inner .cta-inner {
+ background-color: #f7f7f7;
+ border-radius: 3px;
+ border: 1px solid #e7e7e7;
+}
.ajax-load-more .cnkt-sidebar .cta-inner.padding-bottom {
- padding-bottom: 80px; }
+ padding-bottom: 80px;
+}
.ajax-load-more .cnkt-sidebar .cta.padding-bottom {
- padding-bottom: 50px; }
+ padding-bottom: 50px;
+}
.ajax-load-more .cnkt-sidebar h3,
.ajax-load-more .cnkt-sidebar h4 {
- margin-top: 0; }
+ margin-top: 0;
+}
.ajax-load-more .cnkt-sidebar h3 {
- padding: 13px 15px;
+ padding: 15px 0;
margin: 0;
display: block;
- font-size: 14px;
- text-transform: none; }
+ font-size: 15px;
+ text-transform: none;
+ border-bottom: 1px solid #efefef;
+ margin: 0 15px;
+}
.ajax-load-more .cnkt-sidebar .item {
- overflow: hidden; }
+ overflow: hidden;
+}
.ajax-load-more .cnkt-sidebar .item h4 {
margin: 0 0 5px;
font-size: 0.9em;
text-transform: uppercase;
- opacity: 0.5; }
+ opacity: 0.5;
+}
.ajax-load-more .cnkt-sidebar h4 {
- margin-bottom: 5px; }
+ margin-bottom: 5px;
+}
.ajax-load-more .cnkt-sidebar .cta.dyk .cta-inner {
- overflow: hidden; }
-
+ overflow: hidden;
+}
.ajax-load-more .cnkt-sidebar .cta.dyk .img {
float: left;
width: 40%;
- padding: 0 10px 10px 0; }
-
+ padding: 0 10px 10px 0;
+}
.ajax-load-more .cnkt-sidebar .cta.dyk .text {
float: left;
width: 60%;
- padding: 0 0 10px 10px; }
-
+ padding: 0 0 10px 10px;
+}
@media screen and (min-width: 900px) and (max-width: 1300px) {
.ajax-load-more .cnkt-sidebar .cta.dyk .img,
- .ajax-load-more .cnkt-sidebar .cta.dyk .text {
+.ajax-load-more .cnkt-sidebar .cta.dyk .text {
float: none;
padding: 0 0 10px;
- width: 100%; } }
-
+ width: 100%;
+ }
+}
@media screen and (max-width: 480px) {
.ajax-load-more .cnkt-sidebar .cta.dyk .img,
- .ajax-load-more .cnkt-sidebar .cta.dyk .text {
+.ajax-load-more .cnkt-sidebar .cta.dyk .text {
float: none;
padding: 0 0 10px;
- width: 100%; } }
-
+ width: 100%;
+ }
+}
.ajax-load-more .cnkt-sidebar .cta.dyk p {
margin: 0 0 15px;
- clear: none; }
- .ajax-load-more .cnkt-sidebar .cta.dyk p:last-child {
- margin: 0; }
- .ajax-load-more .cnkt-sidebar .cta.dyk p.addon-intro {
- margin-top: -1px;
- font-size: 16px; }
+ clear: none;
+}
+.ajax-load-more .cnkt-sidebar .cta.dyk p:last-child {
+ margin: 0;
+}
+.ajax-load-more .cnkt-sidebar .cta.dyk p.addon-intro {
+ margin-top: -1px;
+ font-size: 16px;
+}
.ajax-load-more .cnkt-sidebar ul {
padding: 5px 0 0;
margin: 0;
- overflow: hidden; }
+ overflow: hidden;
+}
.ajax-load-more .cnkt-sidebar li {
margin: 0 0 10px;
- line-height: 1.5; }
+ line-height: 1.5;
+}
.ajax-load-more .cnkt-sidebar .cta.resources li {
display: block;
width: 100%;
line-height: 1;
- margin: 1px 0; }
+ margin: 1px 0;
+}
.ajax-load-more .cnkt-sidebar .cta.resources li a {
text-decoration: none;
padding: 10px 0;
display: block;
- border-top: 1px dashed #e1e1e1; }
+ border-top: 1px solid #efefef;
+}
.ajax-load-more .cnkt-sidebar .cta.resources li:first-of-type a {
border: none;
- padding-top: 0; }
+ padding-top: 0;
+}
.ajax-load-more .cnkt-sidebar .cta.resources li i {
display: inline-block;
@@ -3502,7 +4240,8 @@ span.cnkt-button.installed i,
text-align: center;
color: #ccc;
text-decoration: none;
- font-size: 14px; }
+ font-size: 14px;
+}
.ajax-load-more .cnkt-sidebar a.visit {
background: #ed7070;
@@ -3516,62 +4255,75 @@ span.cnkt-button.installed i,
z-index: 2;
text-decoration: none;
line-height: 1;
- border-radius: 0 0 2px 2px; }
+ border-radius: 0 0 2px 2px;
+}
.ajax-load-more .cnkt-sidebar a.visit i {
font-size: 21px;
opacity: 0.6;
margin: 0 5px 0 0;
position: absolute;
- top: 13px;
- left: 18px;
- display: inline-block; }
-
-.ajax-load-more .cnkt-sidebar a.visit:hover,
-.ajax-load-more .cnkt-sidebar a.visit:focus {
- background: #f06060; }
-
-.ajax-load-more .cnkt-sidebar a.visit:hover i {
- opacity: 1; }
-
-.ajax-load-more .cnkt-sidebar .project-listing {
- padding: 0; }
- .ajax-load-more .cnkt-sidebar .project-listing li {
- margin: 15px 0 0;
- padding: 0;
- position: relative;
- clear: both; }
- .ajax-load-more .cnkt-sidebar .project-listing li:first-of-type {
- margin-top: 0; }
- .ajax-load-more .cnkt-sidebar .project-listing li strong {
- display: block;
- font-weight: 700;
- font-size: 14px;
- margin: 0 0 3px; }
- .ajax-load-more .cnkt-sidebar .project-listing li span {
- color: #393d41;
- opacity: 0.75; }
- .ajax-load-more .cnkt-sidebar .project-listing li span strong {
- display: inline; }
- .ajax-load-more .cnkt-sidebar .project-listing li a {
- display: block;
- position: static;
- padding-left: 60px;
- min-height: 58px;
- text-decoration: none; }
- .ajax-load-more .cnkt-sidebar .project-listing img {
- height: 48px;
- left: 0;
- position: absolute;
- top: 2px;
- width: 48px; }
+ top: 13px;
+ left: 18px;
+ display: inline-block;
+}
+
+.ajax-load-more .cnkt-sidebar a.visit:hover,
+.ajax-load-more .cnkt-sidebar a.visit:focus {
+ background: #f06060;
+}
+
+.ajax-load-more .cnkt-sidebar a.visit:hover i {
+ opacity: 1;
+}
+
+.ajax-load-more .cnkt-sidebar .project-listing {
+ padding: 0;
+}
+.ajax-load-more .cnkt-sidebar .project-listing li {
+ margin: 15px 0 0;
+ padding: 0;
+ position: relative;
+ clear: both;
+}
+.ajax-load-more .cnkt-sidebar .project-listing li:first-of-type {
+ margin-top: 0;
+}
+.ajax-load-more .cnkt-sidebar .project-listing li strong {
+ display: block;
+ font-weight: 700;
+ font-size: 14px;
+ margin: 0 0 3px;
+}
+.ajax-load-more .cnkt-sidebar .project-listing li span {
+ color: #393d41;
+ opacity: 0.75;
+}
+.ajax-load-more .cnkt-sidebar .project-listing li span strong {
+ display: inline;
+}
+.ajax-load-more .cnkt-sidebar .project-listing li a {
+ display: block;
+ position: static;
+ padding-left: 60px;
+ min-height: 58px;
+ text-decoration: none;
+}
+.ajax-load-more .cnkt-sidebar .project-listing img {
+ height: 48px;
+ left: 0;
+ position: absolute;
+ top: 2px;
+ width: 48px;
+}
/*
* CodeMirror Syntax Highlighting
* @since 2.2.0
*/
.shortcode-builder hr {
- margin: 0; }
+ margin: 0;
+}
/*
* Delete Template (Unlimited Repeaters
@@ -3581,63 +4333,77 @@ span.cnkt-button.installed i,
#unlmited-container {
margin: 0;
display: block;
- overflow: visible; }
+ overflow: visible;
+}
.admin.ajax-load-more .row.unlimited:first-of-type {
- margin-top: 10px; }
+ margin-top: 10px;
+}
.repeaters .row,
.shortcode-builder .row {
-webkit-transition: background-color 0.3s ease;
- transition: background-color 0.3s ease; }
+ transition: background-color 0.3s ease;
+}
.repeaters .row.no-brd:hover,
.shortcode-builder .row.no-brd:hover {
-webkit-box-shadow: none;
box-shadow: none;
- border-color: transparent; }
+ border-color: transparent;
+}
.unlimited-wrap {
- display: none; }
+ display: none;
+}
.admin.ajax-load-more .row.unlimited.deleting {
/* Deleting Row */
background: #fff url("../../img/loader-unlimited.gif") no-repeat center center;
border-color: #fff;
- opacity: 0.4; }
+ opacity: 0.4;
+}
.admin.ajax-load-more .row.unlimited.deleting.deleted {
/* Deleting Row */
- background-image: none !important; }
+ background-image: none !important;
+}
.admin.ajax-load-more .row.unlimited.new {
/* New Row */
background: url("../../img/loader-unlimited.gif") no-repeat center center;
border-color: #efefef !important;
min-height: 60px;
- display: none; }
+ display: none;
+}
.admin.ajax-load-more .row.unlimited.new.done {
- background-image: none !important; }
+ background-image: none !important;
+}
.admin.ajax-load-more .row.unlimited.loaded {
/* Loading complete */
background-color: #64e49d;
- border-color: #64e49d; }
+ border-color: #64e49d;
+}
.admin.ajax-load-more .row.unlimited.deleting .expand-wrap,
.row.unlimited.deleting h3.heading {
- opacity: 0.6; }
+ opacity: 0.6;
+}
.row.unlimited.deleting .alm-delete {
- display: none; }
+ display: none;
+}
.row.unlimited.deleting .save-repeater {
opacity: 0;
- cursor: default; }
+ cursor: default;
+}
-.ajax-load-more .row.unlimited input[type='text'] {
- width: 100%; }
+.ajax-load-more .row.unlimited input[type=text] {
+ width: 100%;
+}
.alm-add-template {
text-align: center;
@@ -3646,58 +4412,71 @@ span.cnkt-button.installed i,
font-size: 15px !important;
font-weight: 700;
text-transform: none !important;
- text-align: center; }
- .alm-add-template a {
- background: #f7f7f7;
- border: 1px solid #e1e1e1;
- color: #393d41;
- display: inline-block;
- padding: 15px 18px;
- line-height: 1;
- border-radius: 3px;
- text-decoration: none; }
- .alm-add-template a i {
- color: #e84648;
- margin: 0 5px 0 0;
- position: relative;
- left: -1px; }
- .alm-add-template a:hover, .alm-add-template a:focus {
- background: #e84648;
- border-color: #e84648;
- color: #fff;
- text-shadow: none;
- color: #fff; }
- .alm-add-template a:hover i, .alm-add-template a:focus i {
- color: #fff;
- opacity: 0.65; }
- .alm-add-template a.active {
- opacity: 0.5;
- cursor: default;
- color: #333 !important;
- background: #efefef !important;
- border-color: #efefef !important; }
- .alm-add-template a.active i {
- color: #393d41; }
+ text-align: center;
+}
+.alm-add-template a {
+ background: #f7f7f7;
+ border: 1px solid #e7e7e7;
+ color: #393d41;
+ display: inline-block;
+ padding: 15px 18px;
+ line-height: 1;
+ border-radius: 3px;
+ text-decoration: none;
+}
+.alm-add-template a i {
+ color: #e84648;
+ margin: 0 5px 0 0;
+ position: relative;
+ left: -1px;
+}
+.alm-add-template a:hover, .alm-add-template a:focus {
+ background: #e84648;
+ border-color: #e84648;
+ color: #fff;
+ text-shadow: none;
+ color: #fff;
+}
+.alm-add-template a:hover i, .alm-add-template a:focus i {
+ color: #fff;
+ opacity: 0.65;
+}
+.alm-add-template a.active {
+ opacity: 0.5;
+ cursor: default;
+ color: #333 !important;
+ background: #efefef !important;
+ border-color: #efefef !important;
+}
+.alm-add-template a.active i {
+ color: #393d41;
+}
.spacer {
height: 10px;
clear: both;
- display: block; }
- .spacer.lg {
- height: 20px; }
+ display: block;
+}
+.spacer.lg {
+ height: 20px;
+}
.alm-text-center {
- text-align: center; }
+ text-align: center;
+}
.ajax-load-more p.generate-id {
margin: 10px 0 0 !important;
padding: 0 0 0 5px;
- font-size: 12px !important; }
- .ajax-load-more p.generate-id i {
- margin: 0 2px 0 0;
- color: #999; }
- .ajax-load-more p.generate-id a {
- text-decoration: none; }
+ font-size: 12px !important;
+}
+.ajax-load-more p.generate-id i {
+ margin: 0 2px 0 0;
+ color: #999;
+}
+.ajax-load-more p.generate-id a {
+ text-decoration: none;
+}
/*
* Cache
@@ -3705,237 +4484,285 @@ span.cnkt-button.installed i,
*/
.alm-cache {
/* Live Search */
- /* Directory Listing */ }
- .alm-cache .group .row {
- overflow: visible; }
- .alm-cache .row:first-of-type {
- margin-top: 0 !important; }
- .alm-cache h3.heading {
- padding-right: 90px !important;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis; }
- .alm-cache .alm-cache-search-wrap {
- position: relative;
- display: block;
- margin: 0 0 15px; }
- .alm-cache .alm-cache-search-wrap input {
- width: 100% !important;
- margin: 0 !important;
- padding: 13px 20px;
- display: block;
- font-size: 15px;
- border-radius: 3px;
- background-color: #f7f7f7; }
- .alm-cache .alm-cache-search-wrap i {
- position: absolute;
- right: 15px;
- top: 50%;
- -webkit-transform: translateY(-50%);
- -ms-transform: translateY(-50%);
- transform: translateY(-50%);
- color: #ccc;
- font-size: 16px;
- z-index: 1; }
- .alm-cache .alm-cache-listing {
- position: relative; }
- .alm-cache .alm-cache-listing .toggle-all {
- right: 0;
- top: -45px; }
- .alm-cache hr {
- margin: 32px 0 25px;
- border-top-color: #efefef;
- border-bottom: none; }
- .alm-cache .alm-dir-listing {
- border: 1px solid #e1e1e1;
- border-radius: 3px;
- overflow: hidden;
- padding: 0;
- margin: 10px 0 0; }
- .alm-cache .alm-dir-listing--nested {
- padding: 0 15px 15px; }
- .alm-cache .alm-dir-listing--nested .alm-dir-listing {
- margin: 0; }
- .alm-cache .alm-dir-listing.theme-repeaters {
- padding: 15px;
- margin: 0; }
- .alm-cache .alm-dir-listing.theme-repeaters ul {
- border: none;
- padding: 0;
- margin: 0; }
- .alm-cache .alm-dir-listing.theme-repeaters i {
- color: #ccc;
- font-size: 1.1em; }
- .alm-cache .alm-dir-listing.deleting {
- opacity: 0.5;
- background: #fff url("../../img/loader-unlimited.gif") no-repeat center center; }
- .alm-cache .alm-dir-listing .dir-title {
- margin: 0 0 5px;
- position: relative; }
- .alm-cache .alm-dir-listing h3.heading {
- padding-left: 40px !important; }
- .alm-cache .alm-dir-listing h3.heading:after {
- content: '\f07c'; }
- .alm-cache .alm-dir-listing h3.heading.open:after {
- content: '\f07b'; }
- .alm-cache .alm-dir-listing .dir-title .delete {
- position: absolute;
- right: 10px;
- top: 10px;
- font-weight: 400;
- font-size: 13px;
- text-decoration: none;
- padding: 5px 12px;
- border: 1px solid #e1e1e1;
- color: #ccc;
- border-radius: 3px; }
- .alm-cache .alm-dir-listing:hover .dir-title .delete {
- border-color: #e1e1e1;
- background-color: #fff;
- color: #666; }
- .alm-cache .alm-dir-listing .dir-title .delete:hover {
- background-color: #c94141;
- border-color: #c94141;
- color: #fff; }
- .alm-cache .alm-dir-listing .dir-title .delete:active {
- -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
- box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2); }
- .alm-cache .cache-page-title {
- font-size: 12px;
- display: block;
- width: 100%;
- padding: 0 7px 10px;
- font-weight: 700;
- text-transform: uppercase; }
- .alm-cache .cache-page-wrap {
- padding: 0 10px 20px; }
- .alm-cache .cache-full-path {
- display: none; }
- .alm-cache .cache-full-path-button {
- border: 1px solid #f1f1f1;
- border-radius: 3px;
- background: #fff;
- cursor: pointer;
- margin: 0 2px 0 0;
- text-align: left;
- color: #878787;
- font-size: 13px;
- padding: 2px 4px; }
- .alm-cache .cache-full-path-button:hover, .alm-cache .cache-full-path-button:focus {
- border-color: #e1e1e1; }
- .alm-cache .alm-dir-listing ul.cache-details {
- display: block;
- padding: 15px 10px 5px;
- margin: 0;
- border: none; }
- .alm-cache .alm-dir-listing ul.cache-details li {
- position: relative;
- display: block;
- width: 100%;
- background: none;
- padding: 0 10px 0 28px;
- margin: 0 0 10px; }
- .alm-cache .alm-dir-listing ul.cache-details li i {
- color: #999;
- font-size: 16px;
- position: absolute;
- top: 1px;
- left: 5px; }
- .alm-cache .alm-dir-listing ul.cache-details li a {
- word-break: break-word; }
- .alm-cache .dir-empty {
- margin-top: 10px; }
- .alm-cache .dir-empty,
- .alm-cache .cache-cleared {
- background-color: #ffffe8;
- border: 1px solid #e4e4c8;
- padding: 20px;
- display: block;
- color: #222;
- text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2); }
- .alm-cache .cache-cleared {
- margin: 0 0 20px;
- background-color: #e0f5ff;
- border-color: #bad0da;
- color: #666; }
- .alm-cache .cache-cleared i {
- color: #111;
- margin: 0 5px 0 0; }
- .alm-cache .cache-cleared .remove {
- float: right;
- font-size: 12px;
- font-weight: 600; }
- .alm-cache p.cache-stats {
- min-height: 38px;
- line-height: 37px;
- display: block;
- padding: 0;
- margin: 0; }
- .alm-cache p.cache-stats span {
- display: inline-block;
- width: 38px;
- height: 38px;
- line-height: 36px;
- text-align: center;
- margin: 0 9px 0 0;
- font-weight: 700;
- font-size: 15px;
- border-radius: 2px;
- background: #a4a5e2;
- background: -webkit-gradient(linear, left top, left bottom, from(#a4a5e2), color-stop(50%, #9ea0d9), color-stop(51%, #8d8fce), to(#a4a5e2));
- background: linear-gradient(to bottom, #a4a5e2 0%, #9ea0d9 50%, #8d8fce 51%, #a4a5e2 100%);
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#a4a5e2', endColorstr='#a4a5e2',GradientType=0 );
- border: 1px solid #8586be;
- -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
- color: #fff;
- text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1); }
+ /* Directory Listing */
+}
+.alm-cache .group .row {
+ overflow: visible;
+}
+.alm-cache .row:first-of-type {
+ margin-top: 0 !important;
+}
+.alm-cache h3.heading {
+ padding-right: 90px !important;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.alm-cache .alm-cache-search-wrap {
+ position: relative;
+ display: block;
+ margin: 0 0 15px;
+}
+.alm-cache .alm-cache-search-wrap input {
+ width: 100% !important;
+ margin: 0 !important;
+ padding: 13px 20px;
+ display: block;
+ font-size: 15px;
+ border-radius: 3px;
+ background-color: #f7f7f7;
+}
+.alm-cache .alm-cache-search-wrap i {
+ position: absolute;
+ right: 15px;
+ top: 50%;
+ -webkit-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%);
+ color: #ccc;
+ font-size: 16px;
+ z-index: 1;
+}
+.alm-cache .alm-cache-listing {
+ position: relative;
+}
+.alm-cache .alm-cache-listing .toggle-all {
+ right: 0;
+ top: -45px;
+}
+.alm-cache hr {
+ margin: 32px 0 25px;
+ border-top-color: #efefef;
+ border-bottom: none;
+}
+.alm-cache .alm-dir-listing {
+ border: 1px solid #e7e7e7;
+ border-radius: 3px;
+ overflow: hidden;
+ padding: 0;
+ margin: 10px 0 0;
+}
+.alm-cache .alm-dir-listing--nested {
+ padding: 0 15px 15px;
+}
+.alm-cache .alm-dir-listing--nested .alm-dir-listing {
+ margin: 0;
+}
+.alm-cache .alm-dir-listing.theme-repeaters {
+ padding: 15px;
+ margin: 0;
+}
+.alm-cache .alm-dir-listing.theme-repeaters ul {
+ border: none;
+ padding: 0;
+ margin: 0;
+}
+.alm-cache .alm-dir-listing.theme-repeaters i {
+ color: #ccc;
+ font-size: 1.1em;
+}
+.alm-cache .alm-dir-listing.deleting {
+ opacity: 0.5;
+ background: #fff url("../../img/loader-unlimited.gif") no-repeat center center;
+}
+.alm-cache .alm-dir-listing .dir-title {
+ margin: 0 0 5px;
+ position: relative;
+}
+.alm-cache .alm-dir-listing h3.heading {
+ padding-left: 40px !important;
+}
+.alm-cache .alm-dir-listing h3.heading:after {
+ content: "\f07c";
+}
+.alm-cache .alm-dir-listing h3.heading.open:after {
+ content: "\f07b";
+}
+.alm-cache .alm-dir-listing .dir-title .delete {
+ position: absolute;
+ right: 10px;
+ top: 10px;
+ font-weight: 400;
+ font-size: 13px;
+ text-decoration: none;
+ padding: 5px 12px;
+ border: 1px solid #e7e7e7;
+ color: #ccc;
+ border-radius: 3px;
+}
+.alm-cache .alm-dir-listing:hover .dir-title .delete {
+ border-color: #e7e7e7;
+ background-color: #fff;
+ color: #666;
+}
+.alm-cache .alm-dir-listing .dir-title .delete:hover {
+ background-color: #c94141;
+ border-color: #c94141;
+ color: #fff;
+}
+.alm-cache .alm-dir-listing .dir-title .delete:active {
+ -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
+ box-shadow: inset 0 2px 1px rgba(0, 0, 0, 0.2);
+}
+.alm-cache .cache-page-title {
+ font-size: 12px;
+ display: block;
+ width: 100%;
+ padding: 0 7px 10px;
+ font-weight: 700;
+ text-transform: uppercase;
+}
+.alm-cache .cache-page-wrap {
+ padding: 0 10px 20px;
+}
+.alm-cache .cache-full-path {
+ display: none;
+}
+.alm-cache .cache-full-path-button {
+ border: 1px solid #efefef;
+ border-radius: 3px;
+ background: #fff;
+ cursor: pointer;
+ margin: 0 2px 0 0;
+ text-align: left;
+ color: #878787;
+ font-size: 13px;
+ padding: 2px 4px;
+}
+.alm-cache .cache-full-path-button:hover, .alm-cache .cache-full-path-button:focus {
+ border-color: #e7e7e7;
+}
+.alm-cache .alm-dir-listing ul.cache-details {
+ display: block;
+ padding: 15px 10px 5px;
+ margin: 0;
+ border: none;
+}
+.alm-cache .alm-dir-listing ul.cache-details li {
+ position: relative;
+ display: block;
+ width: 100%;
+ background: none;
+ padding: 0 10px 0 28px;
+ margin: 0 0 10px;
+}
+.alm-cache .alm-dir-listing ul.cache-details li i {
+ color: #999;
+ font-size: 16px;
+ position: absolute;
+ top: 1px;
+ left: 5px;
+}
+.alm-cache .alm-dir-listing ul.cache-details li a {
+ word-break: break-word;
+}
+.alm-cache .dir-empty {
+ margin-top: 10px;
+}
+.alm-cache .dir-empty,
+.alm-cache .cache-cleared {
+ background-color: #ffffe8;
+ border: 1px solid #e4e4c8;
+ padding: 20px;
+ display: block;
+ color: #222;
+ text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
+}
+.alm-cache .cache-cleared {
+ margin: 0 0 20px;
+ background-color: #e0f5ff;
+ border-color: #bad0da;
+ color: #666;
+}
+.alm-cache .cache-cleared i {
+ color: #111;
+ margin: 0 5px 0 0;
+}
+.alm-cache .cache-cleared .remove {
+ float: right;
+ font-size: 12px;
+ font-weight: 600;
+}
+.alm-cache p.cache-stats {
+ min-height: 38px;
+ line-height: 37px;
+ display: block;
+ padding: 0;
+ margin: 0;
+}
+.alm-cache p.cache-stats span {
+ display: inline-block;
+ width: 38px;
+ height: 38px;
+ line-height: 36px;
+ text-align: center;
+ margin: 0 9px 0 0;
+ font-weight: 700;
+ font-size: 15px;
+ border-radius: 2px;
+ background: #a4a5e2;
+ background: -webkit-gradient(linear, left top, left bottom, from(#a4a5e2), color-stop(50%, #9ea0d9), color-stop(51%, #8d8fce), to(#a4a5e2));
+ background: linear-gradient(to bottom, #a4a5e2 0%, #9ea0d9 50%, #8d8fce 51%, #a4a5e2 100%);
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#a4a5e2", endColorstr="#a4a5e2",GradientType=0 );
+ border: 1px solid #8586be;
+ -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
+ color: #fff;
+ text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.1);
+}
.alm-dir-listing ul {
padding: 20px 0 0;
margin: 10px 0 0;
- border-top: 1px solid #e1e1e1;
+ border-top: 1px solid #e7e7e7;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
width: 100%;
-ms-flex-wrap: wrap;
- flex-wrap: wrap; }
-
+ flex-wrap: wrap;
+}
.alm-dir-listing ul li {
margin: 0;
padding: 10px 5px 5px 40px;
display: block;
overflow: hidden;
width: 50%;
- background: transparent url("../../img/directory-list.gif") no-repeat left 46%; }
- .alm-dir-listing ul li.full {
- width: 100%;
- display: block; }
- .alm-dir-listing ul li:last-child, .alm-dir-listing ul li:nth-last-child(2) {
- background-image: url("../../img/directory-list-btm.gif"); }
- .alm-dir-listing ul li a {
- text-decoration: none; }
- .alm-dir-listing ul li i {
- color: #999;
- padding: 0 5px 0 0; }
-
+ background: transparent url("../../img/directory-list.gif") no-repeat left 46%;
+}
+.alm-dir-listing ul li.full {
+ width: 100%;
+ display: block;
+}
+.alm-dir-listing ul li:last-child, .alm-dir-listing ul li:nth-last-child(2) {
+ background-image: url("../../img/directory-list-btm.gif");
+}
+.alm-dir-listing ul li a {
+ text-decoration: none;
+}
+.alm-dir-listing ul li i {
+ color: #999;
+ padding: 0 5px 0 0;
+}
.alm-dir-listing p.theme-title {
font-weight: 600;
margin: 0 0 20px !important;
- padding: 0; }
-
+ padding: 0;
+}
.alm-dir-listing.theme-repeaters ul li {
display: block;
width: 100%;
padding-top: 10px;
padding: 0 0 0 36px;
- background-position: left 54%; }
- .alm-dir-listing.theme-repeaters ul li label {
- display: block;
- width: 100%; }
- .alm-dir-listing.theme-repeaters ul li:nth-last-child(2) {
- background: transparent url("../../img/directory-list.gif") no-repeat left center; }
+ background-position: left 54%;
+}
+.alm-dir-listing.theme-repeaters ul li label {
+ display: block;
+ width: 100%;
+}
+.alm-dir-listing.theme-repeaters ul li:nth-last-child(2) {
+ background: transparent url("../../img/directory-list.gif") no-repeat left center;
+}
/*
* Error Handling
@@ -3946,7 +4773,8 @@ span.cnkt-button.installed i,
position: absolute;
z-index: 9999;
background: #fff;
- padding: 10px; }
+ padding: 10px;
+}
/*
* Form Replacements
@@ -3964,31 +4792,35 @@ span.cnkt-button.installed i,
-ms-flex-align: center;
align-items: center;
border-radius: 3px;
- border: 1px solid #e1e1e1; }
- .ajax-load-more .alm-styled-input label {
- padding: 10px;
- font-size: 12px;
- font-weight: 700;
- border-right: 1px solid #e1e1e1; }
- .ajax-load-more .alm-styled-input input {
- border: none;
- border-radius: 0 2px 2px 0;
- margin: 0;
- width: 100%; }
+ border: 1px solid #e7e7e7;
+}
+.ajax-load-more .alm-styled-input label {
+ padding: 10px;
+ font-size: 12px;
+ font-weight: 700;
+ border-right: 1px solid #e7e7e7;
+}
+.ajax-load-more .alm-styled-input input {
+ border: none;
+ border-radius: 0 2px 2px 0;
+ margin: 0;
+ width: 100%;
+}
-.shortcode-builder input[type='checkbox'],
-.shortcode-builder input[type='radio'],
-.ajax-load-more .form-table input[type='checkbox'],
-.ajax-load-more .form-table input[type='radio'] {
+.shortcode-builder input[type=checkbox],
+.shortcode-builder input[type=radio],
+.ajax-load-more .form-table input[type=checkbox],
+.ajax-load-more .form-table input[type=radio] {
width: 0;
height: 0;
opacity: 0;
- position: absolute; }
+ position: absolute;
+}
-.shortcode-builder input[type='checkbox'] + label,
-.ajax-load-more .form-table input[type='checkbox'] + label,
-.shortcode-builder input[type='radio'] + label,
-.ajax-load-more .form-table input[type='radio'] + label {
+.shortcode-builder input[type=checkbox] + label,
+.ajax-load-more .form-table input[type=checkbox] + label,
+.shortcode-builder input[type=radio] + label,
+.ajax-load-more .form-table input[type=radio] + label {
background: transparent url("../../img/bkg-chkbox_off.png") no-repeat left 2px;
height: auto;
min-height: 23px;
@@ -3998,48 +4830,56 @@ span.cnkt-button.installed i,
margin: 0 0 5px;
font-size: 14px;
line-height: 1.5;
- cursor: pointer !important; }
- .shortcode-builder input[type='checkbox'] + label span,
- .ajax-load-more .form-table input[type='checkbox'] + label span,
- .shortcode-builder input[type='radio'] + label span,
- .ajax-load-more .form-table input[type='radio'] + label span {
- display: inline-block;
- color: #6a7178;
- line-height: 1.65; }
-
-.shortcode-builder input[type='radio'] + label,
-.ajax-load-more .form-table input[type='radio'] + label {
- background: transparent url("../../img/bkg-radio_off.png") no-repeat left 2px; }
-
-.shortcode-builder input[type='checkbox']:hover + label,
-.ajax-load-more .form-table input[type='checkbox']:hover + label,
-.shortcode-builder input[type='checkbox']:focus + label,
-.ajax-load-more .form-table input[type='checkbox']:focus + label {
+ cursor: pointer !important;
+}
+.shortcode-builder input[type=checkbox] + label span,
+.ajax-load-more .form-table input[type=checkbox] + label span,
+.shortcode-builder input[type=radio] + label span,
+.ajax-load-more .form-table input[type=radio] + label span {
+ display: inline-block;
+ color: #6a7178;
+ line-height: 1.65;
+}
+
+.shortcode-builder input[type=radio] + label,
+.ajax-load-more .form-table input[type=radio] + label {
+ background: transparent url("../../img/bkg-radio_off.png") no-repeat left 2px;
+}
+
+.shortcode-builder input[type=checkbox]:hover + label,
+.ajax-load-more .form-table input[type=checkbox]:hover + label,
+.shortcode-builder input[type=checkbox]:focus + label,
+.ajax-load-more .form-table input[type=checkbox]:focus + label {
/* hover/focus */
- background-image: url("../../img/bkg-chkbox_on.png"); }
+ background-image: url("../../img/bkg-chkbox_on.png");
+}
-.shortcode-builder input[type='radio']:hover + label,
-.ajax-load-more .form-table input[type='radio']:hover + label,
-.shortcode-builder input[type='radio']:focus + label,
-.ajax-load-more .form-table input[type='radio']:focus + label {
+.shortcode-builder input[type=radio]:hover + label,
+.ajax-load-more .form-table input[type=radio]:hover + label,
+.shortcode-builder input[type=radio]:focus + label,
+.ajax-load-more .form-table input[type=radio]:focus + label {
/* hover/focus */
- background-image: url("../../img/bkg-radio_on.png"); }
+ background-image: url("../../img/bkg-radio_on.png");
+}
-.shortcode-builder input[type='checkbox']:checked + label,
-.ajax-load-more .form-table input[type='checkbox']:checked + label {
+.shortcode-builder input[type=checkbox]:checked + label,
+.ajax-load-more .form-table input[type=checkbox]:checked + label {
/* selected */
- background-image: url("../../img/bkg-chkbox_selected.png"); }
+ background-image: url("../../img/bkg-chkbox_selected.png");
+}
-.shortcode-builder input[type='radio']:checked + label,
-.ajax-load-more .form-table input[type='radio']:checked + label {
+.shortcode-builder input[type=radio]:checked + label,
+.ajax-load-more .form-table input[type=radio]:checked + label {
/* selected */
- background-image: url("../../img/bkg-radio_selected.png"); }
+ background-image: url("../../img/bkg-radio_selected.png");
+}
-.shortcode-builder input[type='checkbox'] + label:hover,
-.ajax-load-more .form-table input[type='checkbox'] + label:hover,
-.shortcode-builder input[type='radio'] + label:hover,
-.ajax-load-more .form-table input[type='radio'] + label:hover {
- color: #000; }
+.shortcode-builder input[type=checkbox] + label:hover,
+.ajax-load-more .form-table input[type=checkbox] + label:hover,
+.shortcode-builder input[type=radio] + label:hover,
+.ajax-load-more .form-table input[type=radio] + label:hover {
+ color: #000;
+}
/*
* Shortcode Builder
@@ -4047,7 +4887,8 @@ span.cnkt-button.installed i,
* @since 2.13.0
*/
#alm-shortcode-builder-form {
- position: relative; }
+ position: relative;
+}
.progress_bar_color_indicator {
position: absolute;
@@ -4061,60 +4902,70 @@ span.cnkt-button.installed i,
display: block;
background-color: #ed7070;
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1); }
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.1);
+}
/*
* Repeater Template options dropdown
* @since 2.4.1
*/
.ajax-load-more .row.template {
- position: relative; }
- .ajax-load-more .row.template:first-of-type {
- margin-top: 0; }
+ position: relative;
+}
+.ajax-load-more .row.template:first-of-type {
+ margin-top: 0;
+}
.ajax-load-more .row.template:hover .alm-repeater-options {
- opacity: 1; }
+ opacity: 1;
+}
.alm-drop-btn.alm-repeater-options {
position: absolute;
top: -42px;
right: 7px;
- z-index: 8; }
- .alm-drop-btn.alm-repeater-options a.target {
- padding: 5px 9px;
- -webkit-box-shadow: none;
- box-shadow: none;
- border: none; }
- .alm-drop-btn.alm-repeater-options a.target > i {
- font-size: 24px;
- position: static;
- -webkit-transform: none;
- -ms-transform: none;
- transform: none; }
+ z-index: 8;
+}
+.alm-drop-btn.alm-repeater-options a.target {
+ padding: 5px 9px;
+ -webkit-box-shadow: none;
+ box-shadow: none;
+ border: none;
+}
+.alm-drop-btn.alm-repeater-options a.target > i {
+ font-size: 24px;
+ position: static;
+ -webkit-transform: none;
+ -ms-transform: none;
+ transform: none;
+}
.alm-drop-btn a.target {
position: relative;
color: #444;
text-decoration: none !important;
padding: 10px 15px 10px 30px;
- border: 1px solid #e1e1e1;
+ border: 1px solid #e7e7e7;
border-radius: 3px;
line-height: 1;
display: block;
-webkit-box-shadow: 0 0 0 1px #fff;
- box-shadow: 0 0 0 1px #fff; }
- .alm-drop-btn a.target > i {
- color: #999;
- font-size: 15px;
- position: absolute;
- top: 50%;
- -webkit-transform: translateY(-50%);
- -ms-transform: translateY(-50%);
- transform: translateY(-50%);
- left: 10px; }
+ box-shadow: 0 0 0 1px #fff;
+}
+.alm-drop-btn a.target > i {
+ color: #999;
+ font-size: 15px;
+ position: absolute;
+ top: 50%;
+ -webkit-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%);
+ left: 10px;
+}
.alm-repeater-options a.target:hover i.fa-cog {
- color: #393d41; }
+ color: #393d41;
+}
/* Active / Hover state */
.alm-repeater-options a.target:active,
@@ -4126,110 +4977,131 @@ span.cnkt-button.installed i,
border-color: transparent;
-webkit-box-shadow: none;
box-shadow: none;
- opacity: 1; }
+ opacity: 1;
+}
.alm-repeater-options.active a.target,
.alm-repeater-options.active a.target i.fa-cog {
- color: #393d41; }
+ color: #393d41;
+}
/* Layout Dropdown */
.alm-drop-btn.alm-layout-selection {
float: right;
- margin: 6px 0 0; }
- @media screen and (max-width: 480px) {
- .alm-drop-btn.alm-layout-selection {
- float: none; } }
- .alm-drop-btn.alm-layout-selection a.target {
- background-color: #f7f7f7;
- border-color: #e1e1e1;
- color: #393d41;
- text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2); }
- .alm-drop-btn.alm-layout-selection > a > i {
- left: 12px; }
+ margin: 6px 0 0;
+}
+@media screen and (max-width: 480px) {
+ .alm-drop-btn.alm-layout-selection {
+ float: none;
+ }
+}
+.alm-drop-btn.alm-layout-selection a.target {
+ background-color: #f7f7f7;
+ border-color: #e7e7e7;
+ color: #393d41;
+ text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.2);
+}
+.alm-drop-btn.alm-layout-selection > a > i {
+ left: 12px;
+}
.alm-drop-btn.alm-layout-selection li.type {
- border: 1px solid #f1f1f1;
+ border: 1px solid #efefef;
border-bottom: none;
height: 40px;
line-height: 40px;
padding: 0 4px 0 10px;
- position: relative; }
- .alm-drop-btn.alm-layout-selection li.type:first-of-type {
- border-top: 1px solid #f1f1f1;
- border-radius: 3px 3px 0 0; }
- .alm-drop-btn.alm-layout-selection li.type:last-of-type {
- border-radius: 0 0 3px 3px 0 0;
- border-bottom: 1px solid #f1f1f1; }
- .alm-drop-btn.alm-layout-selection li.type .col-select {
- float: right;
- text-align: right;
- width: auto;
- height: 39px;
- line-height: 39px;
- position: relative;
- top: 1px;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -webkit-box-align: center;
- -ms-flex-align: center;
- align-items: center; }
- .alm-drop-btn.alm-layout-selection li.type .col-select a {
- width: 32px;
- height: 32px;
- margin: 0;
- padding: 0;
- float: left;
- text-align: center;
- background-position: center center;
- background-repeat: no-repeat;
- vertical-align: top;
- text-indent: -99999px;
- overflow: hidden;
- opacity: 1;
- border-radius: 3px;
- border: 1px solid transparent; }
- .alm-drop-btn.alm-layout-selection li.type .col-select a.column-1 {
- background-image: url("../../img/column-1.png"); }
- .alm-drop-btn.alm-layout-selection li.type .col-select a.column-2 {
- background-image: url("../../img/column-2.png"); }
- .alm-drop-btn.alm-layout-selection li.type .col-select a.column-3 {
- background-image: url("../../img/column-3.png");
- width: 36px; }
- .alm-drop-btn.alm-layout-selection li.type .col-select a.column-4 {
- background-image: url("../../img/column-4.png");
- width: 36px; }
- .alm-drop-btn.alm-layout-selection li.type .col-select a.column-1.updating,
- .alm-drop-btn.alm-layout-selection li.type .col-select a.column-2.updating,
- .alm-drop-btn.alm-layout-selection li.type .col-select a.column-3.updating {
- background-image: url("../../img/loader.gif");
- padding: 0 !important; }
- .alm-drop-btn.alm-layout-selection li.type .col-select a:hover,
- .alm-drop-btn.alm-layout-selection li.type .col-select a.updating {
- opacity: 1;
- background-color: #ffffe8;
- border-color: #e1e1e1; }
+ position: relative;
+}
+.alm-drop-btn.alm-layout-selection li.type:first-of-type {
+ border-top: 1px solid #efefef;
+ border-radius: 3px 3px 0 0;
+}
+.alm-drop-btn.alm-layout-selection li.type:last-of-type {
+ border-radius: 0 0 3px 3px 0 0;
+ border-bottom: 1px solid #efefef;
+}
+.alm-drop-btn.alm-layout-selection li.type .col-select {
+ float: right;
+ text-align: right;
+ width: auto;
+ height: 39px;
+ line-height: 39px;
+ position: relative;
+ top: 1px;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -webkit-box-align: center;
+ -ms-flex-align: center;
+ align-items: center;
+}
+.alm-drop-btn.alm-layout-selection li.type .col-select a {
+ width: 32px;
+ height: 32px;
+ margin: 0;
+ padding: 0;
+ float: left;
+ text-align: center;
+ background-position: center center;
+ background-repeat: no-repeat;
+ vertical-align: top;
+ text-indent: -99999px;
+ overflow: hidden;
+ opacity: 1;
+ border-radius: 3px;
+ border: 1px solid transparent;
+}
+.alm-drop-btn.alm-layout-selection li.type .col-select a.column-1 {
+ background-image: url("../../img/column-1.png");
+}
+.alm-drop-btn.alm-layout-selection li.type .col-select a.column-2 {
+ background-image: url("../../img/column-2.png");
+}
+.alm-drop-btn.alm-layout-selection li.type .col-select a.column-3 {
+ background-image: url("../../img/column-3.png");
+ width: 36px;
+}
+.alm-drop-btn.alm-layout-selection li.type .col-select a.column-4 {
+ background-image: url("../../img/column-4.png");
+ width: 36px;
+}
+.alm-drop-btn.alm-layout-selection li.type .col-select a.column-1.updating,
+.alm-drop-btn.alm-layout-selection li.type .col-select a.column-2.updating,
+.alm-drop-btn.alm-layout-selection li.type .col-select a.column-3.updating {
+ background-image: url("../../img/loader.gif");
+ padding: 0 !important;
+}
+.alm-drop-btn.alm-layout-selection li.type .col-select a:hover,
+.alm-drop-btn.alm-layout-selection li.type .col-select a.updating {
+ opacity: 1;
+ background-color: #ffffe8;
+ border-color: #e7e7e7;
+}
/* External Link + Add-on */
.alm-drop-btn.alm-layout-selection a.external,
.alm-drop-btn.alm-layout-selection a.add-on {
background-color: #f7f7f7;
padding: 12px 12px 12px 34px;
- display: block; }
+ display: block;
+}
.alm-drop-btn.alm-layout-selection a.external {
padding: 0 12px 0 34px;
font-weight: 600;
- border: 1px solid #f1f1f1;
- border-radius: 0 0 3px 3px; }
- .alm-drop-btn.alm-layout-selection a.external i {
- color: #999;
- border-color: #ccc;
- top: 53%;
- -webkit-transform: translateY(-50%);
- -ms-transform: translateY(-50%);
- transform: translateY(-50%);
- width: 32px; }
+ border: 1px solid #efefef;
+ border-radius: 0 0 3px 3px;
+}
+.alm-drop-btn.alm-layout-selection a.external i {
+ color: #999;
+ border-color: #ccc;
+ top: 53%;
+ -webkit-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%);
+ width: 32px;
+}
.alm-drop-btn.alm-layout-selection a.add-on {
line-height: 1.5;
@@ -4241,27 +5113,33 @@ span.cnkt-button.installed i,
height: auto;
white-space: normal;
font-size: 13px;
- padding: 12px 15px; }
+ padding: 12px 15px;
+}
.alm-drop-btn.alm-layout-selection a.add-on:hover,
.alm-drop-btn.alm-layout-selection a.add-on:focus {
- background-color: #57bda4; }
+ background-color: #57bda4;
+}
.alm-drop-btn.alm-layout-selection a.add-on:hover i {
- opacity: 1; }
+ opacity: 1;
+}
.alm-drop-btn.alm-layout-selection a.add-on strong {
color: #41635a;
- font-weight: 600; }
+ font-weight: 600;
+}
.alm-drop-btn.alm-layout-selection a.add-on i {
top: 14px;
left: 3px;
- display: none; }
+ display: none;
+}
.alm-drop-btn.alm-layout-selection a.add-on i {
color: #fff !important;
- border-color: rgba(255, 255, 255, 0.3); }
+ border-color: rgba(255, 255, 255, 0.3);
+}
.alm-drop-btn.alm-layout-selection a.target:hover,
.alm-drop-btn.alm-layout-selection a.target:active,
@@ -4269,178 +5147,211 @@ span.cnkt-button.installed i,
color: #393d41;
border-color: #ccc;
background-color: #f7f7f7;
- opacity: 1; }
+ opacity: 1;
+}
.alm-drop-btn.alm-layout-selection.active a.target,
.alm-drop-btn.alm-layout-selection a.target:active {
-webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.065) !important;
- box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.065) !important; }
+ box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.065) !important;
+}
.alm-drop-btn.alm-layout-selection .alm-dropdown {
display: none;
position: absolute;
right: 0;
top: 108%;
- z-index: 9; }
- @media screen and (max-width: 480px) {
- .alm-drop-btn.alm-layout-selection .alm-dropdown {
- right: auto;
- left: 0; } }
+ z-index: 9;
+}
+@media screen and (max-width: 480px) {
+ .alm-drop-btn.alm-layout-selection .alm-dropdown {
+ right: auto;
+ left: 0;
+ }
+}
.alm-drop-btn .alm-dropdown:hover {
- display: block !important; }
+ display: block !important;
+}
@media screen and (max-width: 480px) {
.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after,
- .alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
+.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
right: auto;
- left: 36px; }
+ left: 36px;
+ }
.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:after {
- margin-left: 0; }
+ margin-left: 0;
+ }
.alm-drop-btn.alm-layout-selection .alm-dropdown .alm-drop-inner:before {
right: auto;
- left: 35px; } }
-
+ left: 35px;
+ }
+}
.add-layout-cta {
border-radius: 3px;
- border: 1px solid #e1e1e1;
+ border: 1px solid #e7e7e7;
background-color: #fefeed;
padding: 10px 100px 10px 10px;
display: block;
margin: 5px 0 15px;
font-weight: 600;
- position: relative; }
- .add-layout-cta p {
- margin: 0; }
+ position: relative;
+}
+.add-layout-cta p {
+ margin: 0;
+}
span.dismiss {
position: absolute;
right: 10px;
top: 11px;
- font-size: 13px; }
+ font-size: 13px;
+}
span.dismiss a {
- text-decoration: none; }
+ text-decoration: none;
+}
/* Dropwbown */
.alm-drop-btn {
position: relative;
- width: auto; }
+ width: auto;
+}
.alm-dropdown {
display: none;
position: absolute;
top: 108%;
right: -15px;
- z-index: 9; }
- .alm-dropdown .alm-drop-inner {
- display: block;
- position: relative;
- background: #fff;
- border-radius: 3px;
- border: 1px solid #ccc;
- -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
- padding: 10px;
- width: 240px; }
- .alm-dropdown .alm-drop-inner:after,
- .alm-dropdown .alm-drop-inner:before {
- bottom: 100%;
- right: 26px;
- border: solid transparent;
- content: ' ';
- height: 0;
- width: 0;
- position: absolute;
- pointer-events: none; }
- .alm-dropdown .alm-drop-inner:after {
- border-color: rgba(247, 247, 247, 0);
- border-bottom-color: #fff;
- border-width: 7px;
- margin-left: -7px; }
- .alm-dropdown .alm-drop-inner:before {
- border-color: rgba(204, 204, 204, 0);
- border-bottom-color: #ccc;
- border-width: 8px;
- right: 25px; }
- .alm-dropdown.active {
- display: block !important; }
+ z-index: 9;
+}
+.alm-dropdown .alm-drop-inner {
+ display: block;
+ position: relative;
+ background: #fff;
+ border-radius: 3px;
+ border: 1px solid #ccc;
+ -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ padding: 10px;
+ width: 240px;
+}
+.alm-dropdown .alm-drop-inner:after,
+.alm-dropdown .alm-drop-inner:before {
+ bottom: 100%;
+ right: 26px;
+ border: solid transparent;
+ content: " ";
+ height: 0;
+ width: 0;
+ position: absolute;
+ pointer-events: none;
+}
+.alm-dropdown .alm-drop-inner:after {
+ border-color: rgba(247, 247, 247, 0);
+ border-bottom-color: #fff;
+ border-width: 7px;
+ margin-left: -7px;
+}
+.alm-dropdown .alm-drop-inner:before {
+ border-color: rgba(204, 204, 204, 0);
+ border-bottom-color: #ccc;
+ border-width: 8px;
+ right: 25px;
+}
+.alm-dropdown.active {
+ display: block !important;
+}
.alm-layout-selection .alm-dropdown .alm-drop-inner {
width: 300px;
- padding: 10px; }
+ padding: 10px;
+}
.alm-dropdown ul {
padding: 0;
margin: 0;
- overflow: hidden; }
-
+ overflow: hidden;
+}
.alm-dropdown li {
margin: 0;
padding: 0;
list-style: none;
clear: both;
line-height: 1.2;
- font-weight: 400; }
- .alm-dropdown li.option {
- border: 1px solid #f1f1f1;
- border-top: none;
- overflow: hidden; }
- .alm-dropdown li.option:first-of-type {
- border-top: 1px solid #f1f1f1;
- border-radius: 3px 3px 0 0; }
- .alm-dropdown li.option:last-of-type {
- border-radius: 0 0 3px 3px 0 0; }
- .alm-dropdown li.option:nth-child(even) {
- background-color: #f7f7f7; }
- .alm-dropdown li a:not(.button) {
- padding: 0 10px 0 35px;
- line-height: 40px;
- height: 40px;
- display: block;
- text-decoration: none;
- background-position: 4px center;
- color: #393d41;
- -webkit-box-shadow: none !important;
- box-shadow: none !important;
- position: relative;
- width: 100%;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis; }
- .alm-dropdown li a:not(.button):hover, .alm-dropdown li a:not(.button):focus {
- color: #3784c2; }
- .alm-dropdown li a:not(.button):hover i, .alm-dropdown li a:not(.button):focus i {
- opacity: 0.65; }
- .alm-dropdown li a:not(.button) i {
- margin: 0;
- position: absolute;
- left: 2px;
- top: 50%;
- -webkit-transform: translateY(-50%);
- -ms-transform: translateY(-50%);
- transform: translateY(-50%);
- width: 32px;
- font-size: 14px;
- line-height: 1;
- display: inline-block;
- text-align: center;
- opacity: 0.5;
- color: #393d41 !important; }
- .alm-dropdown li a.layout {
- border: 1px solid #f1f1f1; }
- .alm-dropdown li.layout-cta {
- border: 1px solid #f1f1f1;
- padding: 15px;
- border-radius: 3px;
- margin-top: 5px;
- background-color: #ffffe8;
- text-align: center; }
- .alm-dropdown li.layout-cta span {
- display: block;
- padding: 0 0 15px;
- line-height: 1.75;
- font-size: 13px; }
+ font-weight: 400;
+}
+.alm-dropdown li.option {
+ border: 1px solid #efefef;
+ border-top: none;
+ overflow: hidden;
+}
+.alm-dropdown li.option:first-of-type {
+ border-top: 1px solid #efefef;
+ border-radius: 3px 3px 0 0;
+}
+.alm-dropdown li.option:last-of-type {
+ border-radius: 0 0 3px 3px 0 0;
+}
+.alm-dropdown li.option:nth-child(even) {
+ background-color: #f7f7f7;
+}
+.alm-dropdown li a:not(.button) {
+ padding: 0 10px 0 35px;
+ line-height: 40px;
+ height: 40px;
+ display: block;
+ text-decoration: none;
+ background-position: 4px center;
+ color: #393d41;
+ -webkit-box-shadow: none !important;
+ box-shadow: none !important;
+ position: relative;
+ width: 100%;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.alm-dropdown li a:not(.button):hover, .alm-dropdown li a:not(.button):focus {
+ color: #3784c2;
+}
+.alm-dropdown li a:not(.button):hover i, .alm-dropdown li a:not(.button):focus i {
+ opacity: 0.65;
+}
+.alm-dropdown li a:not(.button) i {
+ margin: 0;
+ position: absolute;
+ left: 2px;
+ top: 50%;
+ -webkit-transform: translateY(-50%);
+ -ms-transform: translateY(-50%);
+ transform: translateY(-50%);
+ width: 32px;
+ font-size: 14px;
+ line-height: 1;
+ display: inline-block;
+ text-align: center;
+ opacity: 0.5;
+ color: #393d41 !important;
+}
+.alm-dropdown li a.layout {
+ border: 1px solid #efefef;
+}
+.alm-dropdown li.layout-cta {
+ border: 1px solid #efefef;
+ padding: 15px;
+ border-radius: 3px;
+ margin-top: 5px;
+ background-color: #ffffe8;
+ text-align: center;
+}
+.alm-dropdown li.layout-cta span {
+ display: block;
+ padding: 0 0 15px;
+ line-height: 1.75;
+ font-size: 13px;
+}
/*
* Mailchimp Sign-up
@@ -4456,13 +5367,16 @@ span.dismiss a {
margin: -5px 0 20px;
border-radius: 2px;
-webkit-box-shadow: inset 0 0 0 1px #fff;
- box-shadow: inset 0 0 0 1px #fff; }
+ box-shadow: inset 0 0 0 1px #fff;
+}
.center-text {
- text-align: center; }
+ text-align: center;
+}
#alm-mailing-list .center p {
- margin-bottom: 15px; }
+ margin-bottom: 15px;
+}
.ajax-load-more .cnkt-sidebar .cta.social .follow-btn {
display: inline-block;
@@ -4477,31 +5391,37 @@ span.dismiss a {
vertical-align: top;
border-radius: 100%;
margin: 0 1px 0 0;
- opacity: 0.8; }
+ opacity: 0.8;
+}
.ajax-load-more .cnkt-sidebar .cta.social .follow-btn.facebook {
background-color: #3b5998;
- color: #fff; }
+ color: #fff;
+}
.ajax-load-more .cnkt-sidebar .cta.social .follow-btn.twitter {
background-color: #00aced;
- color: #fff; }
+ color: #fff;
+}
.ajax-load-more .cnkt-sidebar .cta.social .follow-btn:hover {
- opacity: 1; }
+ opacity: 1;
+}
#alm-mailing-list .form-wrap {
background-color: #fff;
padding: 12px;
- border: 1px solid #e1e1e1;
+ border: 1px solid #e7e7e7;
-webkit-box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.025);
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.025);
position: relative;
- border-radius: 2px; }
+ border-radius: 2px;
+}
#alm-mailing-list .form-wrap .inner-wrap {
position: relative;
- display: block; }
+ display: block;
+}
#alm-mailing-list .form-wrap input {
width: 100%;
@@ -4512,7 +5432,8 @@ span.dismiss a {
border-color: #eee;
padding: 0 7px 0 46px;
height: 40px;
- line-height: 40px; }
+ line-height: 40px;
+}
#alm-mailing-list .form-wrap i.fa-envelope {
color: #fff;
@@ -4526,7 +5447,8 @@ span.dismiss a {
width: 40px;
text-align: center;
line-height: 40px;
- border-radius: 2px 0 0 2px; }
+ border-radius: 2px 0 0 2px;
+}
#alm-mailing-list .form-wrap button {
padding: 0;
@@ -4545,7 +5467,8 @@ span.dismiss a {
height: 40px;
color: #e84648;
background: none !important;
- cursor: pointer; }
+ cursor: pointer;
+}
#alm-mailing-list .form-wrap button i {
color: #ccc;
@@ -4555,15 +5478,18 @@ span.dismiss a {
position: absolute;
right: 5px;
top: 0;
- font-size: 19px; }
+ font-size: 19px;
+}
#alm-mailing-list .form-wrap button:hover i {
- color: #999; }
+ color: #999;
+}
#alm-mailing-list .form-wrap button span {
position: absolute;
left: -9999px;
- top: -9999px; }
+ top: -9999px;
+}
#alm-mailing-list .form-wrap label {
font-size: 11px;
@@ -4573,7 +5499,8 @@ span.dismiss a {
font-weight: 600;
position: absolute;
left: -9999px;
- top: -9999px; }
+ top: -9999px;
+}
#alm-mailing-list .form-wrap #response {
padding-top: 11px;
@@ -4586,151 +5513,176 @@ span.dismiss a {
width: 100%;
height: 100%;
background: #fff;
- z-index: 1; }
+ z-index: 1;
+}
#alm-mailing-list .form-wrap #response p {
- font-style: normal !important; }
+ font-style: normal !important;
+}
/* share-alm */
.alm-notification {
- border-radius: 2px; }
- .alm-notification--blue {
- background: #5899de !important;
- border-color: #4b7eb5 !important; }
- .alm-notification:hover a.dismiss {
- opacity: 0.7; }
- .alm-notification--inner {
- padding: 14px 20px 20px; }
- .alm-notification .dotted {
- border: none;
- border-bottom: 1px dashed #ccc;
- background: none;
- margin: 0 0 20px;
- padding: 0 0 15px; }
+ border-radius: 2px;
+}
+.alm-notification--blue {
+ background: #5899de !important;
+ border-color: #4b7eb5 !important;
+}
+.alm-notification:hover a.dismiss {
+ opacity: 0.7;
+}
+.alm-notification--inner {
+ padding: 14px 20px 20px;
+}
+.alm-notification .dotted {
+ border: none;
+ border-bottom: 1px dashed #ccc;
+ background: none;
+ margin: 0 0 20px;
+ padding: 0 0 15px;
+}
+.alm-notification h2 {
+ line-height: 1.25;
+ position: relative;
+ color: #fff;
+ font-size: 15px;
+ margin: 0;
+ padding: 14px 20px;
+ font-weight: 700;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.15);
+}
+.alm-notification h2 span {
+ position: absolute;
+ left: 0;
+ top: 0;
+}
+@media screen and (max-width: 480px) {
.alm-notification h2 {
- line-height: 1.25;
- position: relative;
- color: #fff;
- font-size: 15px;
- margin: 0;
- padding: 14px 20px;
- font-weight: 700;
- border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
- .alm-notification h2 span {
- position: absolute;
- left: 0;
- top: 0; }
- @media screen and (max-width: 480px) {
- .alm-notification h2 {
- padding-left: 0; }
- .alm-notification h2 span {
- display: none; } }
- .alm-notification p {
- font-size: 14px;
- margin: 0 0 20px; }
- .alm-notification p a {
- font-weight: 600; }
- .alm-notification p a:hover, .alm-notification p a:focus {
- text-decoration: none; }
- .alm-notification p.opening {
- font-size: 18px;
- margin: 0 0 15px;
- font-weight: 300;
- line-height: 1.4; }
- .alm-notification p.opener {
- color: #444;
- font-weight: 700;
- font-size: 16px;
- position: relative;
- margin: 0 0 20px; }
- .alm-notification ul.share {
- margin: 0;
- padding: 0;
- width: auto;
- clear: both;
- display: -webkit-box;
- display: -ms-flexbox;
- display: flex;
- -ms-flex-wrap: nowrap;
- flex-wrap: nowrap;
- width: 100%;
- overflow: visible;
- text-align: left;
- width: 100%;
- height: auto;
- border-radius: 0 0 3px 3px;
- background-color: #e84648;
- background-color: #9d87c7; }
- .alm-notification ul.share li {
- -webkit-box-flex: 1;
- -ms-flex: 1;
- flex: 1;
- background: none;
- display: block;
- vertical-align: top;
- height: auto;
- line-height: 40px;
- font-size: 13px;
- position: relative;
- font-weight: 400;
- text-align: left;
- background: none;
- color: #787878;
- width: auto;
- text-align: center;
- margin: 0 !important;
- padding: 0;
- background: none;
- border-left: 1px solid rgba(255, 255, 255, 0.15); }
- .alm-notification ul.share li:first-of-type {
- border-left: none; }
- .alm-notification ul.share li a {
- display: block;
- line-height: 50px;
- height: 50px;
- width: 100%;
- padding: 0 10px;
- text-decoration: none;
- color: #fff;
- text-align: center;
- background: none;
- border-radius: 0;
- position: relative;
- font-weight: 500; }
- .alm-notification ul.share li a:hover, .alm-notification ul.share li a:focus {
- background-color: #b3a0d6 !important; }
- .alm-notification ul.share li a i {
- margin: 0 10px 0 0;
- font-size: 1.25em;
- position: relative;
- top: 1px; }
- .alm-notification ul.share li a:hover,
- .alm-notification ul.share li a:hover i {
- text-decoration: none;
- color: #fff !important; }
- .alm-notification ul.share li a:hover span,
- .alm-notification ul.share li a:hover i span {
- text-decoration: none; }
- .alm-notification a.dismiss {
- position: absolute;
- right: 3px;
- top: 3px;
- text-decoration: none;
- width: 30px;
- height: 30px;
- line-height: 30px;
- padding: 0;
- text-align: center;
- color: #ccc;
- border-right: none;
- border-top: none;
- display: block;
- font-size: 24px;
- font-weight: 300;
- opacity: 0.3; }
- .alm-notification a.dismiss:hover, .alm-notification a.dismiss:focus {
- color: #999;
- opacity: 1; }
+ padding-left: 0;
+ }
+ .alm-notification h2 span {
+ display: none;
+ }
+}
+.alm-notification p {
+ font-size: 14px;
+ margin: 0 0 20px;
+}
+.alm-notification p a {
+ font-weight: 600;
+}
+.alm-notification p a:hover, .alm-notification p a:focus {
+ text-decoration: none;
+}
+.alm-notification p.opening {
+ font-size: 18px;
+ margin: 0 0 15px;
+ font-weight: 300;
+ line-height: 1.4;
+}
+.alm-notification p.opener {
+ color: #444;
+ font-weight: 700;
+ font-size: 16px;
+ position: relative;
+ margin: 0 0 20px;
+}
+.alm-notification ul.share {
+ margin: 0;
+ padding: 0;
+ width: auto;
+ clear: both;
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -ms-flex-wrap: nowrap;
+ flex-wrap: nowrap;
+ width: 100%;
+ overflow: visible;
+ text-align: left;
+ width: 100%;
+ height: auto;
+ border-radius: 0 0 3px 3px;
+ background-color: #e84648;
+ background-color: #9d87c7;
+}
+.alm-notification ul.share li {
+ -webkit-box-flex: 1;
+ -ms-flex: 1;
+ flex: 1;
+ background: none;
+ display: block;
+ vertical-align: top;
+ height: auto;
+ line-height: 40px;
+ font-size: 13px;
+ position: relative;
+ font-weight: 400;
+ text-align: left;
+ background: none;
+ color: #787878;
+ width: auto;
+ text-align: center;
+ margin: 0 !important;
+ padding: 0;
+ background: none;
+ border-left: 1px solid rgba(255, 255, 255, 0.15);
+}
+.alm-notification ul.share li:first-of-type {
+ border-left: none;
+}
+.alm-notification ul.share li a {
+ display: block;
+ line-height: 50px;
+ height: 50px;
+ width: 100%;
+ padding: 0 10px;
+ text-decoration: none;
+ color: #fff;
+ text-align: center;
+ background: none;
+ border-radius: 0;
+ position: relative;
+ font-weight: 500;
+}
+.alm-notification ul.share li a:hover, .alm-notification ul.share li a:focus {
+ background-color: #b3a0d6 !important;
+}
+.alm-notification ul.share li a i {
+ margin: 0 10px 0 0;
+ font-size: 1.25em;
+ position: relative;
+ top: 1px;
+}
+.alm-notification ul.share li a:hover, .alm-notification ul.share li a:hover i {
+ text-decoration: none;
+ color: #fff !important;
+}
+.alm-notification ul.share li a:hover span, .alm-notification ul.share li a:hover i span {
+ text-decoration: none;
+}
+.alm-notification a.dismiss {
+ position: absolute;
+ right: 3px;
+ top: 3px;
+ text-decoration: none;
+ width: 30px;
+ height: 30px;
+ line-height: 30px;
+ padding: 0;
+ text-align: center;
+ color: #ccc;
+ border-right: none;
+ border-top: none;
+ display: block;
+ font-size: 24px;
+ font-weight: 300;
+ opacity: 0.3;
+}
+.alm-notification a.dismiss:hover, .alm-notification a.dismiss:focus {
+ color: #999;
+ opacity: 1;
+}
/*
* Local templates Add-on
@@ -4744,41 +5696,47 @@ span.dismiss a {
width: 100%;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
- position: relative; }
- .select-theme-repeater .or {
- position: absolute;
- left: 70px;
- top: -20px;
- background: #fff;
- color: #333;
- width: 34px;
- height: 34px;
- line-height: 34px;
- text-align: center;
- z-index: 1;
- font-weight: 700;
- border-radius: 100%;
- text-transform: uppercase;
- border: 1px solid #e1e1e1;
- -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
- box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
- font-size: 11px; }
+ position: relative;
+}
+.select-theme-repeater .or {
+ position: absolute;
+ left: 70px;
+ top: -20px;
+ background: #fff;
+ color: #333;
+ width: 34px;
+ height: 34px;
+ line-height: 34px;
+ text-align: center;
+ z-index: 1;
+ font-weight: 700;
+ border-radius: 100%;
+ text-transform: uppercase;
+ border: 1px solid #e7e7e7;
+ -webkit-box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
+ box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
+ font-size: 11px;
+}
.alm-template-section-nav {
display: block;
margin: 0 0;
- padding: 0; }
+ padding: 0;
+}
.alm-template-section-nav li {
display: inline-block;
- vertical-align: top; }
+ vertical-align: top;
+}
.alm-template-section-nav li a {
padding: 5px;
- display: block; }
+ display: block;
+}
.alm-template-section-nav li.active a {
- background: #ff0000; }
+ background: #ff0000;
+}
/*
* Toggle Switch
@@ -4789,35 +5747,40 @@ span.dismiss a {
display: block;
clear: both;
margin: 0;
- padding: 2px 25px 0;
+ padding: 2px 0 0;
overflow: hidden;
position: relative;
top: 1px;
- z-index: 9; }
- .ajax-load-more .alm-toggle-switch li {
- float: left;
- margin: 0 4px 0 0;
- padding: 0;
- background: none;
- list-style: none;
- font-size: 14px; }
- .ajax-load-more .alm-toggle-switch li a {
- display: block;
- padding: 15px 20px;
- line-height: 1;
- text-decoration: none;
- border: 1px solid #e1e1e1;
- border-radius: 3px 3px 0 0;
- background: #f7f7f7;
- color: #393d41; }
- .ajax-load-more .alm-toggle-switch li a:hover {
- color: #222;
- background-color: #fff; }
- .ajax-load-more .alm-toggle-switch li a.active {
- background: #fff;
- font-weight: 600;
- border-bottom-color: #fff;
- color: #111; }
+ z-index: 9;
+}
+.ajax-load-more .alm-toggle-switch li {
+ float: left;
+ margin: 0 4px 0 0;
+ padding: 0;
+ background: none;
+ list-style: none;
+ font-size: 14px;
+}
+.ajax-load-more .alm-toggle-switch li a {
+ display: block;
+ padding: 15px 20px;
+ line-height: 1;
+ text-decoration: none;
+ border: 1px solid #e7e7e7;
+ border-radius: 3px 3px 0 0;
+ background: #f7f7f7;
+ color: #393d41;
+}
+.ajax-load-more .alm-toggle-switch li a:hover {
+ color: #222;
+ background-color: #fff;
+}
+.ajax-load-more .alm-toggle-switch li a.active {
+ background: #fff;
+ font-weight: 600;
+ border-bottom-color: #fff;
+ color: #111;
+}
/*
* Admin screen media queries
@@ -4825,105 +5788,133 @@ span.dismiss a {
* @since 1.0
*/
@media screen and (max-width: 1200px) {
- .ajax-load-more input[type='text'],
- .ajax-load-more input[type='number'],
- .select2-container,
- .shortcode-builder--items .select2-container-multi,
- .ajax-load-more textarea {
- width: 95%; }
+ .ajax-load-more input[type=text],
+.ajax-load-more input[type=number],
+.select2-container,
+.shortcode-builder--items .select2-container-multi,
+.ajax-load-more textarea {
+ width: 95%;
+ }
.shortcode-builder--items .select2-container-multi {
- width: 95% !important; } }
-
+ width: 95% !important;
+ }
+}
@media screen and (max-width: 900px) {
.table-of-contents {
position: static !important;
- width: 100% !important; }
+ width: 100% !important;
+ }
.ajax-load-more .cnkt-main,
- .ajax-load-more .cnkt-sidebar,
- .ajax-load-more .cnkt-main.full {
+.ajax-load-more .cnkt-sidebar,
+.ajax-load-more .cnkt-main.full {
float: none;
clear: both;
margin: 0;
width: 100%;
- position: static !important; }
+ position: static !important;
+ }
.admin.ajax-load-more.settings .form-table td {
- padding: 24px 20px 20px; }
+ padding: 24px 20px 20px;
+ }
.call-out.light {
- padding: 15px !important; }
+ padding: 15px !important;
+ }
.repeaters input.save-repeater {
- max-width: 50%; } }
-
+ max-width: 50%;
+ }
+}
@media screen and (max-width: 782px) {
.admin.ajax-load-more.settings .form-table th {
border: none;
- border-bottom: 1px solid #e1e1e1;
- width: 100%; }
+ border-bottom: 1px solid #efefef;
+ width: 100%;
+ }
.share-alm .sharing {
padding-right: 0;
width: 100%;
- margin-right: 0 !important; }
+ margin-right: 0 !important;
+ }
.share-alm .mailing {
width: 100%;
margin-left: 0 !important;
padding-left: 0;
padding-top: 40px;
- border-left: none; } }
-
+ border-left: none;
+ }
+}
@media screen and (max-width: 480px) {
.ajax-load-more .section-title,
- .ajax-load-more .row .wrap {
+.ajax-load-more .row .wrap {
clear: both;
width: 100%;
display: block;
float: none;
- padding: 10px; }
+ padding: 10px;
+ }
.ajax-load-more .section-title {
- padding: 20px 20px 10px; }
+ padding: 20px 20px 10px;
+ }
.ajax-load-more .row .wrap {
- padding: 10px 20px; }
+ padding: 10px 20px;
+ }
.ajax-load-more textarea,
- .ajax-load-more input[type='text'],
- .ajax-load-more input[type='number'],
- .select2-container,
- .shortcode-builder--items .select2-container-multi {
- width: 100% !important; }
+.ajax-load-more input[type=text],
+.ajax-load-more input[type=number],
+.select2-container,
+.shortcode-builder--items .select2-container-multi {
+ width: 100% !important;
+ }
.ajax-load-more .row .wrap .inner.half {
display: block;
padding: 0 0 20px;
- width: 100%; }
+ width: 100%;
+ }
.ajax-load-more .section-title p {
color: #999;
- padding: 0 !important; }
+ padding: 0 !important;
+ }
#alm-add-ons .row .wrap {
padding-bottom: 60px;
- width: 100%; }
+ width: 100%;
+ }
#alm-add-ons .section-title {
- width: 100%; }
+ width: 100%;
+ }
.alm-repeater-options {
- display: none !important; }
+ display: none !important;
+ }
.ajax-load-more .wrap-30 {
width: 100%;
display: block;
- padding: 0 0 10px; }
+ padding: 0 0 10px;
+ }
.ajax-load-more .row .wrap.full {
- padding: 10px; }
+ padding: 10px;
+ }
#alm-add-ons .group {
width: 100%;
display: block;
- margin: 0 0 2% 0; }
+ margin: 0 0 2% 0;
+ }
.call-out.light {
background: #fdfdec none repeat scroll 0 0;
- width: 100%; }
+ width: 100%;
+ }
.call-out.light p {
- padding: 0; }
+ padding: 0;
+ }
.ajax-load-more .one_half {
width: 100%;
margin: 0 0 2%;
- display: block; }
+ display: block;
+ }
.add-layout-cta {
- padding: 10px; }
+ padding: 10px;
+ }
span.dismiss {
position: static;
padding-top: 20px;
display: block;
- font-size: 12px; } }
+ font-size: 12px;
+ }
+}
\ No newline at end of file
diff --git a/admin/dist/js/admin.js b/admin/dist/js/admin.js
index e1a97c1..55c3ad8 100644
--- a/admin/dist/js/admin.js
+++ b/admin/dist/js/admin.js
@@ -1300,13 +1300,36 @@ jQuery(document).ready(function ($) {
console.log('Ajax Load More successfully connected to the WordPress REST API.');
}
},
- error: function error(xhr, status, _error) {
+ error: function error(status) {
console.log(status);
$('.restapi-access').fadeIn();
}
});
}
+ /**
+ * Build the header admin menu based on the sidebar.
+ */
+ function createAdminMenu() {
+ var adminmenu = document.querySelector('#adminmenu .toplevel_page_ajax-load-more > ul');
+ if (!adminmenu) {
+ return;
+ }
+
+ var alm_header = document.querySelector('.ajax-load-more header.header-wrap');
+ if (!alm_header) {
+ return;
+ }
+
+ var menu = adminmenu.cloneNode(true);
+ menu.setAttribute('class', '');
+
+ var nav = document.createElement('nav');
+ nav.appendChild(menu);
+ alm_header.appendChild(nav);
+ }
+ createAdminMenu();
+
/**
* Tabbed Navigation Elements
*
@@ -1646,7 +1669,6 @@ jQuery(document).ready(function ($) {
var almActivating = false;
$(document).on('click', '.license-btn', function (e) {
e.preventDefault();
-
if (!almActivating) {
$('.license-btn-wrap .msg').remove();
almActivating = true;
@@ -1708,8 +1730,8 @@ jQuery(document).ready(function ($) {
almActivating = false;
},
- error: function error(status, _error2) {
- console.log(status, _error2);
+ error: function error(status, _error) {
+ console.log(status, _error);
$('.loading', parent).delay(250).fadeOut(300);
almActivating = false;
}
@@ -1769,7 +1791,7 @@ jQuery(document).ready(function ($) {
}, 400);
}, 400);
},
- error: function error(xhr, status, _error3) {
+ error: function error(xhr, status, _error2) {
console.log(status);
textarea.removeClass('loading');
}
@@ -1777,33 +1799,6 @@ jQuery(document).ready(function ($) {
}
});
- /**
- * Dismiss Sharing (Transient).
- *
- * @since 2.8.7
- */
- $(document).on('click', '.alm-notification--dismiss', function (e) {
- e.preventDefault();
- var el = $(this),
- container = el.parent('.cta');
-
- // Get value from Ajax
- $.ajax({
- type: 'POST',
- url: alm_admin_localize.ajax_admin_url,
- data: {
- action: 'alm_dismiss_sharing',
- nonce: alm_admin_localize.alm_admin_nonce
- },
- success: function success(data) {
- container.fadeOut();
- },
- error: function error(xhr, status, _error4) {
- console.log(status);
- }
- });
- });
-
/**
* Set Transient (Transient).
*
@@ -1829,7 +1824,7 @@ jQuery(document).ready(function ($) {
success: function success(data) {
container.fadeOut();
},
- error: function error(xhr, status, _error5) {
+ error: function error(xhr, status, _error3) {
console.log(status);
}
});
diff --git a/admin/functions/layouts.php b/admin/functions/layouts.php
new file mode 100644
index 0000000..68ad40a
--- /dev/null
+++ b/admin/functions/layouts.php
@@ -0,0 +1,92 @@
+ $action,
+ 'license' => $license,
+ 'item_id' => $item_id, // the ID of our product in EDD.
+ 'url' => home_url(),
+ 'environment' => function_exists( 'wp_get_environment_type' ) ? wp_get_environment_type() : 'production',
+ );
+
+ // Call API.
+ $response = wp_remote_post(
+ ALM_STORE_URL,
+ array(
+ 'method' => 'POST',
+ 'body' => $api_params,
+ 'timeout' => 30,
+ 'sslverify' => false,
+ // phpcs:ignore
+ // 'blocking' => true
+ )
+ );
+
+ // Make sure the response came back okay.
+ if ( is_wp_error( $response ) ) {
+ wp_send_json( $response );
+ }
+
+ $license_data = $response['body'];
+ $license_data = json_decode( $license_data ); // decode the license data.
+
+ $return['success'] = $license_data->success;
+
+ $msg = '';
+ if ( 'activate' === $type ) {
+ $return['license_limit'] = $license_data->license_limit;
+ $return['expires'] = $license_data->expires;
+ $return['site_count'] = $license_data->site_count;
+ $return['activations_left'] = $license_data->activations_left;
+ $return['item_name'] = $license_data->item_name;
+
+ if ( $license_data->activations_left === 0 && $license_data->success === false ) {
+ $msg = 'You\'re out of available licenses ( ' . $license_data->license_limit . ' / ' . $license_data->site_count . ' ) . Please visit the ' . $license_data->item_name . ' website to add additional licenses.';
+ }
+ }
+ $return['msg'] = $msg;
+
+ // If error, make error the status of the license an error.
+ $license_status = ( isset( $license_data->error ) ) ? $license_data->error : $license_data->license;
+
+ $return['license'] = $license_status;
+
+ // Update the options table.
+ update_option( $status, $license_status );
+ update_option( $key, $license );
+
+ // Set transient value to store license status.
+ set_transient( "alm_{$item_id}_{$license}", $license_status, 168 * HOUR_IN_SECONDS ); // 7 days
+
+ // Send the response.
+ wp_send_json( $return );
+}
+add_action( 'wp_ajax_alm_license_activation', 'alm_license_activation' );
+
+/**
+ * Invalid license notifications.
+ *
+ * @since 3.3.0
+ */
+function alm_admin_notice_errors() {
+ $screen = get_current_screen();
+ $alm_is_admin_screen = alm_is_admin_screen();
+
+ // Exit if screen is not dashboard, plugins, settings or ALM admin.
+ if ( ! $alm_is_admin_screen && $screen->id !== 'dashboard' && $screen->id !== 'plugins' && $screen->id !== 'options-general' && $screen->id !== 'options' ) {
+ return;
+ }
+
+ $class = 'notice error alm-err-notice';
+ $message = '';
+ $count = 0;
+
+ if ( has_action( 'alm_pro_installed' ) ) {
+ // Pro.
+ $addons = alm_get_pro_addon();
+ $message = __( 'You have an invalid or expired Ajax Load More Pro license key - please visit the License section to input your key or purchase one now.', 'ajax-load-more' );
+
+ } else {
+ // Other Addons.
+ $addons = alm_get_addons();
+ $message = __( 'You have invalid or expired Ajax Load More license keys - please visit the Licenses section and input your keys.', 'ajax-load-more' );
+ }
+
+ // Loop each addon.
+ foreach ( $addons as $addon ) {
+ if ( has_action( $addon['action'] ) ) {
+ $key = $addon['key'];
+ $status = get_option( $addon['status'] );
+ // Check license status.
+ $license_status = alm_license_check( $addon['item_id'], get_option( $key ), $status );
+ if ( ! isset( $status ) || empty( $status ) || $license_status !== 'valid' ) {
+ $count++;
+ }
+ }
+ }
+
+ // Print result.
+ if ( $count > 0 ) {
+ printf( '', wp_kses_post( $class ), wp_kses_post( $message ) );
+ }
+}
+add_action( 'admin_notices', 'alm_admin_notice_errors' );
+
+
+/**
+ * Check the status of a license.
+ *
+ * @param string $item_id The ID of the product.
+ * @param string $license The actual license key.
+ * @param string $status The status of the license.
+ * @since 2.8.3
+ */
+function alm_license_check( $item_id = null, $license = null, $status = null ) {
+ if ( ! $item_id || ! $license || ! $status ) {
+ return false;
+ }
+
+ // Get plugin transient for license status.
+ if ( get_transient( "alm_{$item_id}_{$license}" ) ) {
+
+ // Transient exists.
+ return get_transient( "alm_{$item_id}_{$license}" );
+
+ } else {
+ $api_params = array(
+ 'edd_action' => 'check_license',
+ 'license' => $license,
+ 'item_id' => $item_id,
+ 'url' => home_url(),
+ );
+ $response = wp_remote_post(
+ ALM_STORE_URL,
+ array(
+ 'body' => $api_params,
+ 'timeout' => 15,
+ 'sslverify' => false,
+ )
+ );
+ if ( is_wp_error( $response ) ) {
+ return false;
+ }
+
+ // Get Data.
+ $license_data = json_decode( wp_remote_retrieve_body( $response ) );
+
+ // Update the options table.
+ update_option( $status, $license_data->license );
+
+ // Set transient value to store license status.
+ set_transient( "alm_{$item_id}_{$license}", $license_data->license, 168 * HOUR_IN_SECONDS ); // 7 days
+
+ // Return the status.
+ return $license_data->license;
+ }
+}
+
+/**
+ * Custom licensing update notifications on plugins.php listing.
+ *
+ * @see https://developer.wordpress.org/reference/hooks/in_plugin_update_message-file/
+ * @since 5.2
+ */
+function alm_plugin_update_license_messages() {
+ $addons = alm_get_addons();
+ foreach ( $addons as $addon ) {
+ $path = $addon['path'];
+ $hook = "in_plugin_update_message-{$path}/{$path}.php";
+ add_action( $hook, 'alm_prefix_plugin_update_message', 10, 2 );
+ }
+}
+alm_plugin_update_license_messages();
+
+/**
+ * Add extra message to plugin updater about expired/inactive licenses.
+ *
+ * @param array $data An array of plugin metadata.
+ * @param object $response An object of metadata about the available plugin update.
+ * @since 5.2
+ */
+function alm_prefix_plugin_update_message( $data, $response ) {
+ $addons = alm_get_addons();
+ $slug = $response->slug;
+ $version = $response->new_version;
+
+ foreach ( $addons as $key => $addon ) {
+ if ( $addon['path'] === $slug ) {
+ $index = $key;
+ }
+ }
+
+ if ( isset( $index ) ) {
+ $style = 'display: block; padding: 10px 5px 2px;';
+ $addon = $addons[ $index ];
+
+ if ( isset( $addon ) ) {
+ $name = '' . $addon['name'] . ' ';
+ $status = get_option( $addon['status'] );
+
+ // Expired.
+ if ( $status === 'expired' ) {
+ printf(
+ '%s %s ',
+ esc_html( __( 'Looks like your subscription has expired.', 'ajax-load-more' ) ),
+ wp_kses_post( __( 'Please login to your Account to renew the license.', 'ajax-load-more' ) )
+ );
+ }
+
+ // Invalid/Inactive.
+ if ( $status === 'invalid' || $status === 'disabled' ) {
+ printf(
+ '%s %s ',
+ esc_html( __( 'Looks like your license is inactive and/or invalid.', 'ajax-load-more' ) ),
+ wp_kses_post( __( 'Please activate the license or login to your Account to renew the license.', 'ajax-load-more' ) )
+ );
+ }
+
+ // Deactivated.
+ if ( $status === 'deactivated' ) {
+ printf(
+ '%s %s ',
+ esc_html( __( 'Looks like your license has been deactivated.', 'ajax-load-more' ) ),
+ wp_kses_post( __( 'Please activate the license to update.', 'ajax-load-more' ) )
+ );
+ }
+ }
+ }
+}
+
+/**
+ * Create a notification in the plugin row.
+ *
+ * @param string $plugin_name The plugin path as a name.
+ * @since 5.2
+ */
+function alm_plugin_row( $plugin_name ) {
+ $addons = alm_get_addons();
+ $pro_addons = alm_get_pro_addon();
+
+ $addons = array_merge( alm_get_addons(), alm_get_pro_addon() );
+ foreach ( $addons as $addon ) {
+ if ( $plugin_name === $addon['path'] . '/' . $addon['path'] . '.php' ) {
+
+ $status = get_option( $addon['status'] );
+ $name = $addon['name'];
+ $style = 'margin: 5px 20px 6px 40px;';
+
+ // Invalid.
+ if ( $status !== 'valid' ) {
+ $title = $name === 'Ajax Load More Pro' ? '' . $name . ' ' : 'Ajax Load More: ' . $name . ' ';
+
+ $row = ' ';
+ /* translators: %1$s is replaced with link href */
+ $row .= sprintf( wp_kses_post( __( '%1$sRegister%2$s your copy of %3$s to receive access to automatic upgrades and support. Need a license key? %4$sPurchase one now%5$s.', 'ajax-load-more' ) ), '
', ' ', $title, '
', ' ' );
+ $row .= '
';
+
+ // phpcs:ignore
+ echo $row;
+ }
+ }
+ }
+}
+add_action( 'after_plugin_row', 'alm_plugin_row' );
diff --git a/admin/functions/plugin-updates.php b/admin/functions/plugin-updates.php
new file mode 100644
index 0000000..e8e8e55
--- /dev/null
+++ b/admin/functions/plugin-updates.php
@@ -0,0 +1,110 @@
+get_col( "SELECT blog_id FROM $wpdb->blogs" );
+
+ // Loop all blogs and run update routine.
+ foreach ( $blog_ids as $blog_id ) {
+ switch_to_blog( $blog_id );
+ alm_update_template_files();
+ update_option( 'alm_version', ALM_VERSION );
+ restore_current_blog();
+ }
+ } else {
+ alm_update_template_files();
+ update_option( 'alm_version', ALM_VERSION );
+ }
+}
+
+/**
+ * Update routine for template files.
+ *
+ * @throws Exception Unable to write to template file.
+ * @since 2.7.2
+ */
+function alm_update_template_files() {
+ global $wpdb;
+ $table_name = $wpdb->prefix . 'alm';
+
+ // Get all rows where name is 'default'.
+ $rows = $wpdb->get_results( "SELECT * FROM $table_name WHERE name = 'default'" ); // phpcs:ignore
+
+ if ( $rows ) {
+
+ foreach ( $rows as $row ) {
+ $data = $wpdb->get_var( "SELECT repeaterDefault FROM $table_name WHERE name = 'default'" ); // phpcs:ignore
+
+ // If required: Create base directory (alm_templates).
+ $base_dir = AjaxLoadMore::alm_get_repeater_path();
+ AjaxLoadMore::alm_mkdir( $base_dir );
+
+ $file = $base_dir . '/default.php';
+
+ /**
+ * Create template only if the template does not exist.
+ *
+ * Note: This should never ever run, but this is used as a fallback incase for some reason Repeater
+ * have been deleted or cleaned by another plugin.
+ */
+ if ( ! file_exists( $file ) ) {
+ try {
+ // phpcs:ignore
+ $o = fopen( $file, 'w+' ); // Open file.
+ if ( ! $o ) {
+ throw new Exception( '[Ajax Load More] Error opening default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the `' . $base_dir . '` directory.' );
+ }
+ // phpcs:ignore
+ $w = fwrite( $o, $data ); // Save the file.
+ if ( ! $w ) {
+ throw new Exception( '[Ajax Load More] Error updating default repeater template - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files within the `' . $base_dir . '` directory.' );
+ }
+ // phpcs:ignore
+ fclose( $o ); // Close file.
+
+ } catch ( Exception $e ) { // Display error message in console.
+ if ( ! isset( $options['_alm_error_notices'] ) || $options['_alm_error_notices'] === '1' ) {
+ echo '';
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/admin/functions/repeater-templates.php b/admin/functions/repeater-templates.php
new file mode 100644
index 0000000..985dc36
--- /dev/null
+++ b/admin/functions/repeater-templates.php
@@ -0,0 +1,198 @@
+prefix . 'alm';
+ $blog_id = $wpdb->blogid;
+ $options = get_option( 'alm_settings' );
+
+ // Get form variables.
+ $c = Trim( stripslashes( $form_data['value'] ) ); // Value.
+ $n = Trim( stripslashes( str_replace( '/', '', $form_data['repeater'] ) ) ); // Name.
+ $t = Trim( stripslashes( $form_data['type'] ) ); // Type.
+ $a = Trim( stripslashes( $form_data['alias'] ) ); // Alias.
+
+ // Default.
+ if ( $t === 'default' ) {
+ // Create base Repeater Template directory).
+ $base_dir = AjaxLoadMore::alm_get_repeater_path();
+ AjaxLoadMore::alm_mkdir( $base_dir );
+ $f = $base_dir . '/default.php';
+ } elseif ( $t === 'unlimited' ) {
+ // Custom Repeaters >= 2.5.
+ if ( ALM_UNLIMITED_VERSION >= '2.5' ) {
+ // Get path to repeater dir (alm_templates).
+ $base_dir = AjaxLoadMore::alm_get_repeater_path();
+ AjaxLoadMore::alm_mkdir( $base_dir );
+ $f = $base_dir . '/' . $n . '.php';
+ } else {
+ $f = $blog_id > 1 ? ALM_UNLIMITED_PATH . 'repeaters/' . $blog_id . '/' . $n . '.php' : ALM_UNLIMITED_PATH . 'repeaters/' . $n . '.php';
+ }
+ } else {
+ // Custom Repeaters v1.
+ $f = ALM_REPEATER_PATH . 'repeaters/' . $n . '.php';
+ }
+
+ // Write Repeater Template.
+ try {
+ // phpcs:ignore
+ $o = fopen( $f, 'w+' ); // Open file.
+ if ( ! $o ) {
+ throw new Exception( '[Ajax Load More] Unable to open repeater template - ' . $f . ' - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files.' );
+ }
+ // phpcs:ignore
+ $w = fwrite( $o, $c ); // Save the file.
+ if ( ! $w ) {
+ throw new Exception( '[Ajax Load More] Error saving repeater template - ' . $f . ' - Please check your file path and ensure your server is configured to allow Ajax Load More to read and write files.', 'ajax-load-more' );
+ }
+ // phpcs:ignore
+ fclose( $o ); // Close file.
+
+ } catch ( Exception $e ) {
+ // Display error message in console.
+ if ( isset( $options['_alm_error_notices'] ) || $options['_alm_error_notices'] === '1' ) {
+ echo '';
+ }
+ }
+
+ // Save to database.
+ if ( $t === 'default' ) {
+ $data_update = array(
+ 'repeaterDefault' => "$c",
+ 'pluginVersion' => ALM_VERSION,
+ );
+ $data_where = array( 'name' => 'default' );
+ } elseif ( $t === 'unlimited' ) { // Custom Repeaters v2.
+ $table_name = $wpdb->prefix . 'alm_unlimited';
+ $data_update = array(
+ 'repeaterDefault' => "$c",
+ 'alias' => "$a",
+ 'pluginVersion' => ALM_UNLIMITED_VERSION,
+ );
+ $data_where = array( 'name' => $n );
+ } else { // Custom Repeaters.
+ $data_update = array(
+ 'repeaterDefault' => "$c",
+ 'alias' => "$a",
+ 'pluginVersion' => ALM_REPEATER_VERSION,
+ );
+ $data_where = array( 'name' => $n );
+ }
+
+ $wpdb->update( $table_name, $data_update, $data_where );
+
+ // Handle results message.
+ if ( $w ) {
+ echo '' . esc_attr__( 'Template Saved Successfully', 'ajax-load-more' ) . ' ';
+ } else {
+ echo '' . esc_attr__( 'Error Writing File', 'ajax-load-more' ) . ' ' . esc_html__( 'Something went wrong and the data could not be saved.', 'ajax-load-more' );
+ }
+
+ wp_die();
+}
+add_action( 'wp_ajax_alm_save_repeater', 'alm_save_repeater' );
+
+/**
+ * Update Repeater Template from database.
+ * User case: User deletes plugin, then installs again and the version has not change. Click 'Update from DB' option to load template.
+ *
+ * @since 2.5.0
+ */
+function alm_update_repeater() {
+ $form_data = filter_input_array( INPUT_POST );
+
+ if ( ! current_user_can( 'edit_theme_options' ) || ! isset( $form_data['nonce'] ) ) {
+ // Bail early if missing WP capabilities or nonce.
+ wp_die( esc_attr__( 'You don\'t belong here.', 'ajax-load-more' ) );
+ }
+
+ if ( ! wp_verify_nonce( $form_data['nonce'], 'alm_repeater_nonce' ) ) {
+ // Verify nonce.
+ wp_die( esc_attr__( 'Error - unable to verify nonce, please try again.', 'ajax-load-more' ) );
+ }
+
+ // Get form variabless.
+ $n = Trim( stripslashes( str_replace( '/', '', $form_data['repeater'] ) ) ); // Repeater name.
+ $t = Trim( stripslashes( $form_data['type'] ) ); // Repeater type (default | unlimited).
+
+ // Get value from database.
+ global $wpdb;
+ $table_name = $wpdb->prefix . 'alm';
+
+ if ( $t === 'default' ) {
+ $n = 'default';
+ }
+ if ( $t === 'unlimited' ) {
+ $table_name = $wpdb->prefix . 'alm_unlimited';
+ }
+
+ $repeater = $wpdb->get_var( 'SELECT repeaterDefault FROM ' . $table_name . " WHERE name = '" . esc_sql( $n ) . "'" ); // phpcs:ignore
+
+ // Return template value as a string.
+ echo $repeater ? $repeater : ''; // phpcs:ignore
+
+ wp_die();
+}
+add_action( 'wp_ajax_alm_update_repeater', 'alm_update_repeater' );
+
+/**
+ * This function will export a repeater template and force download.
+ *
+ * @since 3.6
+ */
+function alm_repeaters_export() {
+ $form_data = filter_input_array( INPUT_POST );
+
+ // Confirm post data and WP capabilities.
+ if ( isset( $form_data['alm_repeaters_export'] ) && ! wp_doing_ajax() && current_user_can( 'edit_theme_options' ) ) {
+
+ $type = esc_attr( $form_data['alm_repeaters_export_type'] );
+ $name = sanitize_file_name( $form_data['alm_repeaters_export_name'] );
+
+ // Security checker.
+ // Note: Confirm filename name does not contain relative server path.
+ if ( false !== strpos( $name, './' ) ) {
+ wp_die( esc_html__( 'Something isn\'t right here...', 'ajax-load-more' ) );
+ }
+
+ if ( $type === 'theme-repeater' ) {
+ $file = AjaxLoadMore::alm_get_theme_repeater_path() . '/' . $name;
+ } else {
+ $file = AjaxLoadMore::alm_get_repeater_path() . '/' . $name . '.php';
+ }
+
+ if ( file_exists( $file ) ) {
+ header( 'Content-Description: File Transfer' );
+ header( 'Content-Type: application/octet-stream' );
+ header( 'Content-Disposition: attachment; filename="' . basename( $file ) . '"' );
+ // phpcs:ignore
+ readfile( $file );
+ exit();
+ }
+ }
+}
+add_action( 'admin_init', 'alm_repeaters_export' );
diff --git a/admin/functions/settings.php b/admin/functions/settings.php
new file mode 100644
index 0000000..55e25d3
--- /dev/null
+++ b/admin/functions/settings.php
@@ -0,0 +1,616 @@
+' . esc_html__( 'Customize the user experience of Ajax Load More by updating the fields below.', 'ajax-load-more' ) . '';
+}
+
+/**
+ * Some general admin settings text.
+ *
+ * @since 2.0.0
+ */
+function alm_admin_settings_callback() {
+ echo '' . esc_html__( 'The following settings affect the WordPress admin area only.', 'ajax-load-more' ) . '
';
+}
+
+/**
+ * Sanitize our form fields.
+ *
+ * @param mixed $input The input values.
+ * @since 2.0.0
+ */
+function alm_sanitize_settings( $input ) {
+ return $input;
+}
+
+/**
+ * Diabale Ajax Load More CSS.
+ *
+ * @since 2.0.0
+ */
+function alm_disable_css_callback() {
+ $options = get_option( 'alm_settings' );
+ if ( ! isset( $options['_alm_disable_css'] ) ) {
+ $options['_alm_disable_css'] = '0';
+ }
+
+ $html = ' ';
+ $html .= ' ';
+ $html .= '' . __( 'I want to use my own CSS styles.', 'ajax-load-more' ) . ' ' . __( 'View Ajax Load More CSS', 'ajax-load-more' ) . ' ';
+
+ echo $html; // phpcs:ignore
+}
+
+/**
+ * Disbale the ALM shortcode button in the WordPress content editor.
+ *
+ * @since 2.2.1
+ * @deprecated 5.4.2
+ */
+function alm_hide_btn_callback() {
+ $options = get_option( 'alm_settings' );
+ if ( ! isset( $options['_alm_hide_btn'] ) ) {
+ $options['_alm_hide_btn'] = '0';
+ }
+
+ $html = ' ';
+ $html .= '' . __( 'Hide shortcode button in WYSIWYG editor.', 'ajax-load-more' ) . ' ';
+
+ echo $html; // phpcs:ignore
+}
+
+/**
+ * Display admin error notices in browser console.
+ *
+ * @since 2.7.2
+ */
+function alm_error_notices_callback() {
+ $options = get_option( 'alm_settings' );
+ if ( ! isset( $options['_alm_error_notices'] ) ) {
+ $options['_alm_error_notices'] = '1';
+ }
+
+ $html = ' ';
+ $html .= ' ';
+ $html .= '' . __( 'Display error messaging regarding repeater template updates in the browser console.', 'ajax-load-more' ) . ' ';
+
+ echo $html; // phpcs:ignore
+}
+
+/**
+ * Disable the dynamic population of categories, tags and authors
+ *
+ * @since 2.6.0
+ */
+function alm_disable_dynamic_callback() {
+ $options = get_option( 'alm_settings' );
+ if ( ! isset( $options['_alm_disable_dynamic'] ) ) {
+ $options['_alm_disable_dynamic'] = '0';
+ }
+
+ $html = ' ';
+ $html .= ' ';
+ $html .= '' . __( 'Disable dynamic population of categories, tags and authors in the Shortcode Builder.Recommended if you have a large number of categories, tags and/or authors.', 'ajax-load-more' ) . ' ';
+
+ echo $html; // phpcs:ignore
+}
+
+/**
+ * The type of container ul or div
+ *
+ * @since 2.0.0
+ */
+function alm_container_type_callback() {
+
+ $options = get_option( 'alm_settings' );
+
+ if ( ! isset( $options['_alm_container_type'] ) ) {
+ $options['_alm_container_type'] = '1';
+ }
+
+ $html = ' ';
+ $html .= '<ul> <!-- ' . __( 'Ajax Posts Here', 'ajax-load-more' ) . ' --> </ul> ';
+
+ $html .= ' ';
+ $html .= '<div> <!-- ' . __( 'Ajax Posts Here', 'ajax-load-more' ) . ' --> </div> ';
+
+ $html .= '' . __( 'You can modify the container type when building a shortcode.', 'ajax-load-more' ) . ' ';
+
+ echo $html; // phpcs:ignore
+
+}
+
+/**
+ * Add classes to the Ajax Load More wrapper.
+ *
+ * @since 2.0.0
+ */
+function alm_class_callback() {
+ $options = get_option( 'alm_settings' );
+
+ $class = isset( $options ) && isset( $options['_alm_classname'] ) ? $options['_alm_classname'] : '';
+
+ $html = '' . __( 'Add custom classes to the .alm-listing container - classes are applied globally and will appear with every instance of Ajax Load More. You can also add classes when building a shortcode. ', 'ajax-load-more' ) . ' ';
+ $html .= ' ';
+
+ echo $html; // phpcs:ignore
+}
+
+/**
+ * Get button color.
+ *
+ * @since 2.0.0
+ */
+function alm_btn_color_callback() {
+
+ $options = get_option( 'alm_settings' );
+ $type = isset( $options ) && isset( $options['_alm_btn_color'] ) ? $options['_alm_btn_color'] : '';
+
+ if ( ! isset( $type ) ) {
+ $options['_alm_btn_color'] = '0';
+ }
+
+ $selected0 = '';
+ if ( $type === 'default' ) {
+ $selected0 = 'selected="selected"';
+ }
+
+ $selected1 = '';
+ if ( $type === 'blue' ) {
+ $selected1 = 'selected="selected"';
+ }
+
+ $selected2 = '';
+ if ( $type === 'green' ) {
+ $selected2 = 'selected="selected"';
+ }
+
+ $selected3 = '';
+ if ( $type === 'red' ) {
+ $selected3 = 'selected="selected"';
+ }
+
+ $selected4 = '';
+ if ( $type === 'purple' ) {
+ $selected4 = 'selected="selected"';
+ }
+
+ $selected5 = '';
+ if ( $type === 'grey' ) {
+ $selected5 = 'selected="selected"';
+ }
+
+ $selected6 = '';
+ if ( $type === 'white' ) {
+ $selected6 = 'selected="selected"';
+ }
+
+ $selected13 = '';
+ if ( $type === 'light-grey' ) {
+ $selected13 = 'selected="selected"';
+ }
+
+ $selected7 = '';
+ if ( $type === 'infinite classic' ) {
+ $selected7 = 'selected="selected"';
+ }
+
+ $selected8 = '';
+ if ( $type === 'infinite skype' ) {
+ $selected8 = 'selected="selected"';
+ }
+
+ $selected9 = '';
+ if ( $type === 'infinite ring' ) {
+ $selected9 = 'selected="selected"';
+ }
+
+ $selected10 = '';
+ if ( $type === 'infinite fading-blocks' ) {
+ $selected10 = 'selected="selected"';
+ }
+
+ $selected11 = '';
+ if ( $type === 'infinite fading-circles' ) {
+ $selected11 = 'selected="selected"';
+ }
+
+ $selected12 = '';
+ if ( $type === 'infinite chasing-arrows' ) {
+ $selected12 = 'selected="selected"';
+ }
+
+ $html = '' . __( 'Select an Ajax loading style - you can choose between a Button or Infinite Scroll ', 'ajax-load-more' );
+ $html .= '.Selecting an Infinite Scroll style will remove the click interaction and load content on scroll only . ';
+ $html .= ' ';
+ $html .= '';
+
+ $html .= '';
+ $html .= 'Default ';
+ $html .= 'Blue ';
+ $html .= 'Green ';
+ $html .= 'Purple ';
+ $html .= 'Grey ';
+ $html .= ' ';
+ $html .= '';
+ $html .= 'White ';
+ $html .= 'Light Grey ';
+ $html .= ' ';
+
+ $html .= '';
+ $html .= 'Classic ';
+ $html .= 'Skype ';
+ $html .= 'Circle Fill ';
+ $html .= 'Fading Blocks ';
+ $html .= 'Fading Circles ';
+ $html .= 'Chasing Arrows ';
+ $html .= ' ';
+
+ $html .= ' ';
+
+ // Set loading class for infinite type only.
+ $loading_class = strpos( $type, 'infinite' ) !== false ? ' loading' : '';
+
+ $html .= '
';
+ $html .= '';
+ $html .= '
' . __( 'Click to Preview', 'ajax-load-more' ) . ' ';
+ $html .= '
';
+ $html .= '' . apply_filters( 'alm_button_label', __( 'Load More', 'ajax-load-more' ) ) . ' ';
+ $html .= '
';
+ $html .= '
';
+
+ echo $html; // phpcs:ignore
+}
+
+/**
+ * Load CSS Inline vs the head
+ *
+ * @since 3.3.1
+ */
+function alm_inline_css_callback() {
+ $options = get_option( 'alm_settings' );
+ if ( ! isset( $options['_alm_inline_css'] ) ) {
+ $options['_alm_inline_css'] = '1';
+ }
+
+ $html = ' ';
+ $html .= ' ';
+ $html .= '' . __( 'Improve site performance by loading Ajax Load More CSS inline.', 'ajax-load-more' ) . ' ';
+
+ echo $html; // phpcs:ignore
+}
+
+/**
+ * Add classes to the Ajax Load More button
+ *
+ * @since 2.4.1
+ */
+function alm_btn_class_callback() {
+ $options = get_option( 'alm_settings' );
+
+ if ( ! isset( $options['_alm_btn_classname'] ) ) {
+ $options['_alm_btn_classname'] = '';
+ }
+
+ $html = '' . __( 'Add classes to your Load More button.', 'ajax-load-more' ) . ' ';
+ $html .= ' ';
+
+ echo $html; // phpcs:ignore
+ ?>
+
+ ' . __( 'Enter custom JavaScript code.', 'ajax-load-more' ) . '';
+ $html .= '';
+ $html .= '' . __( 'JavaScript will be rendered with every Ajax Load More instance.', 'ajax-load-more' ) . ' ';
+
+ echo $html; // phpcs:ignore
+}
+
+/**
+ * Move window to top of screen on page load.
+ *
+ * @since 2.6.0
+ */
+function alm_scroll_top_callback() {
+ $options = get_option( 'alm_settings' );
+ if ( ! isset( $options['_alm_scroll_top'] ) ) {
+ $options['_alm_scroll_top'] = '0';
+ }
+
+ $html = ' ';
+ $html .= ' ';
+ $html .= '';
+ $html .= __( 'On initial page load, move the user\'s browser window to the top of the screen.', 'ajax-load-more' );
+ $html .= '' . __( 'This may help prevent the loading of unnecessary posts.', 'ajax-load-more' ) . ' ';
+ $html .= ' ';
+
+ echo $html; // phpcs:ignore
+}
+
+/**
+ * Disable REST API in favor of admin-ajax.php.
+ *
+ * @since 5.1
+ */
+function alm_use_rest_api_callback() {
+ $options = get_option( 'alm_settings' );
+ if ( ! isset( $options['_alm_use_rest_api'] ) ) {
+ $options['_alm_use_rest_api'] = '0';
+ }
+
+ $html = ' ';
+ $html .= ' ';
+ $html .= '';
+ $html .= __( 'Disable REST API.', 'ajax-load-more' );
+ $html .= '' . __( 'Use `admin-ajax.php` in favour of the WordPress REST API for all Ajax requests.', 'ajax-load-more' ) . ' ';
+ $html .= ' ';
+
+ echo $html; // phpcs:ignore
+}
+
+/**
+ * Load legacy callback actions.
+ *
+ * @since 5.0.0
+ */
+function alm_legacy_callbacks_callback() {
+ $options = get_option( 'alm_settings' );
+ if ( ! isset( $options['_alm_legacy_callbacks'] ) ) {
+ $options['_alm_legacy_callbacks'] = '0';
+ }
+
+ $html = ' ';
+ $html .= ' ';
+ $html .= '';
+ $html .= __( 'Load legacy JavaScript callback functions.', 'ajax-load-more' );
+ $html .= '' . __( 'Ajax Load More callback functions were updated in 5.0. Users who were using callbacks prior to ALM 5.0 can load this helper library to maintain compatibility.', 'ajax-load-more' ) . ' ';
+ $html .= ' ';
+
+ echo $html; // phpcs:ignore
+}
+
+/**
+ * Remove all ALM data on uninstall.
+ *
+ * @since 4.1.0
+ */
+function alm_uninstall_callback() {
+ $options = get_option( 'alm_settings' );
+
+ if ( ! isset( $options['_alm_uninstall'] ) ) {
+ $options['_alm_uninstall'] = '0';
+ }
+
+ $html = ' ';
+ $html .= ' ';
+ $html .= '' . __( 'Check this box if Ajax Load More should remove all of its data* when the plugin is deleted.', 'ajax-load-more' );
+ $html .= '' . __( '* Database Tables, Options and Repeater Templates', 'ajax-load-more' ) . ' ';
+ $html .= ' ';
+
+ echo $html; // phpcs:ignore
+}
diff --git a/admin/img/alm-logo-48x48.svg b/admin/img/alm-logo-48x48.svg
index 1add134..f3cb31a 100755
--- a/admin/img/alm-logo-48x48.svg
+++ b/admin/img/alm-logo-48x48.svg
@@ -1,19 +1,17 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
diff --git a/admin/includes/components/layout-list.php b/admin/includes/components/layout-list.php
index 4035cca..95f74eb 100755
--- a/admin/includes/components/layout-list.php
+++ b/admin/includes/components/layout-list.php
@@ -1,29 +1,49 @@
+
diff --git a/admin/includes/cta/sharing.php b/admin/includes/cta/sharing.php
deleted file mode 100755
index 5033a01..0000000
--- a/admin/includes/cta/sharing.php
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
👋 Thanks for Trying Ajax Load More!
-
It would mean the world to me if you would consider sharing Ajax Load More with your social networks or leaving a plugin review on the WordPress forums.
-
All reviews(good or bad) are important as they help the plugin grow and improve over time.
-
-
-
-
×
-
-
diff --git a/admin/index.php b/admin/index.php
deleted file mode 100755
index 4e6c07c..0000000
--- a/admin/index.php
+++ /dev/null
@@ -1,3 +0,0 @@
-
\ No newline at end of file
diff --git a/admin/shortcode-builder/components/layouts.php b/admin/shortcode-builder/components/layouts.php
new file mode 100755
index 0000000..9eb069a
--- /dev/null
+++ b/admin/shortcode-builder/components/layouts.php
@@ -0,0 +1,59 @@
+= 2 ) { ?>
+
+
diff --git a/admin/shortcode-builder/components/nextpage.php b/admin/shortcode-builder/components/nextpage.php
index 43243e9..c23582b 100755
--- a/admin/shortcode-builder/components/nextpage.php
+++ b/admin/shortcode-builder/components/nextpage.php
@@ -73,7 +73,7 @@
{page}
- {pages}
+ {total}
{post-title}
{site-title}
{tagline}
diff --git a/admin/shortcode-builder/js/shortcode-builder.js b/admin/shortcode-builder/js/shortcode-builder.js
index f615623..e392a16 100755
--- a/admin/shortcode-builder/js/shortcode-builder.js
+++ b/admin/shortcode-builder/js/shortcode-builder.js
@@ -1,4 +1,4 @@
-jQuery(document).ready(function ($) {
+jQuery(document).ready(function($) {
('use strict');
var _alm = {},
@@ -13,21 +13,25 @@ jQuery(document).ready(function ($) {
*
* @since 2.5.0
*/
- _alm.select2 = function () {
+ _alm.select2 = function() {
// Default Select2
- $('.row select, .cnkt-main select, select.jump-menu').not('.multiple, .meta-compare, .meta-type, .alm-filter-select').select2({});
+ $('.row select, .cnkt-main select, select.jump-menu')
+ .not('.multiple, .meta-compare, .meta-type, .alm-filter-select')
+ .select2({});
// Set placeholder
$('.ajax-load-more select.multiple').select2({
- placeholder: '-- ' + alm_admin_localize.select + ' --',
+ placeholder: '-- ' + alm_admin_localize.select + ' --'
});
};
_alm.select2();
// Reset all selects
- _alm.reset_select2 = function () {
+ _alm.reset_select2 = function() {
// Default Select2
- $('.row select, .cnkt-main select, select.jump-menu').not('.multiple').select2();
+ $('.row select, .cnkt-main select, select.jump-menu')
+ .not('.multiple')
+ .select2();
// multiple
$('.ajax-load-more .categories select.multiple').select2();
@@ -40,7 +44,7 @@ jQuery(document).ready(function ($) {
// Taxonomy Query
var total_tax_query = 0,
max_tax_query = 2;
- $('#add-tax-query').on('click', function (e) {
+ $('#add-tax-query').on('click', function(e) {
e.preventDefault();
if (total_tax_query < 2) {
@@ -61,14 +65,16 @@ jQuery(document).ready(function ($) {
});
/* Delete Tax Query */
- $(document).on('click', '.remove-tax-query', function (e) {
+ $(document).on('click', '.remove-tax-query', function(e) {
var el = $(this),
parent = el.parent('.taxonomy-wrap');
- $('select', parent).select2('val', '').trigger('change');
+ $('select', parent)
+ .select2('val', '')
+ .trigger('change');
total_tax_query--;
parent.addClass('removing');
- parent.fadeOut(250, function () {
+ parent.fadeOut(250, function() {
_alm.buildShortcode();
parent.removeClass('removing');
});
@@ -84,10 +90,12 @@ jQuery(document).ready(function ($) {
});
// Add additional meta_query
- var meta_query_obj = $('.meta-query-wrap').eq(0).clone();
+ var meta_query_obj = $('.meta-query-wrap')
+ .eq(0)
+ .clone();
$('.meta-query-wrap .remove').remove();
$('select.meta-compare, select.meta-type').select2();
- $('#add-meta-query').on('click', function (e) {
+ $('#add-meta-query').on('click', function(e) {
e.preventDefault();
if ($('.meta-query-wrap').length > 3) {
@@ -117,10 +125,10 @@ jQuery(document).ready(function ($) {
});
/* Delete Meta Query */
- $(document).on('click', '.remove-meta-query', function (e) {
+ $(document).on('click', '.remove-meta-query', function(e) {
var el = $(this);
el.parent('.meta-query-wrap').addClass('removing');
- el.parent('.meta-query-wrap').fadeOut(250, function () {
+ el.parent('.meta-query-wrap').fadeOut(250, function() {
el.parent('.meta-query-wrap').remove();
_alm.buildShortcode();
});
@@ -137,7 +145,7 @@ jQuery(document).ready(function ($) {
* @since 1.0
*/
- _alm.buildShortcode = function () {
+ _alm.buildShortcode = function() {
output = '[ajax_load_more';
// ---------------------------
@@ -153,7 +161,9 @@ jQuery(document).ready(function ($) {
var loading_style = $('select#loading-style').val();
var loading_style_default = $('select#loading-style').data('default');
- var loading_style_target = $('select#loading-style').parent().find('.ajax-load-more-wrap');
+ var loading_style_target = $('select#loading-style')
+ .parent()
+ .find('.ajax-load-more-wrap');
if (loading_style_target) {
var loading_style_base = loading_style_target.data('base');
loading_style_target.removeAttr('class');
@@ -190,7 +200,7 @@ jQuery(document).ready(function ($) {
var acf = $('#alm-acf input[name=acf]:checked').val();
- if (acf !== 'false' && acf != undefined) {
+ if (acf !== 'false' && acf !== undefined) {
var acf_post_id = $('#acf_post_id').val(),
acf_field_type = $('#acf_field_type').val(),
acf_field_name = $('#acf_field_name').val(),
@@ -219,13 +229,16 @@ jQuery(document).ready(function ($) {
// ---------------------------
var cache = $('#alm-cache input[name=cache]:checked').val();
- if (cache !== 'false' && cache != undefined) {
- if ($('input#cache-id').val() === '') _alm.generateUniqueID(10); // Generate unique ID on first load
-
+ if (cache !== 'false' && cache !== undefined) {
+ if ($('input#cache-id').val() === '') {
+ _alm.generateUniqueID(10); // Generate unique ID on first load
+ }
$('.cache_id').slideDown(250, 'alm_easeInOutQuad');
output += ' cache="' + cache + '"';
var cache_id = $('input#cache-id').val();
- if (cache_id) output += ' cache_id="' + cache_id + '"';
+ if (cache_id) {
+ output += ' cache_id="' + cache_id + '"';
+ }
} else {
$('.cache_id').slideUp(250, 'alm_easeInOutQuad');
}
@@ -241,16 +254,16 @@ jQuery(document).ready(function ($) {
var cta_repeater = $('select[name=cta-repeater-select]', cta_container).val();
var cta_theme_repeater = $('select[name=theme-repeater-select]', cta_container).val();
- if (cta !== 'false' && cta != undefined) {
+ if (cta !== 'false' && cta !== undefined) {
$('.cta_template_wrap').slideDown(250, 'alm_easeInOutQuad');
// Standard repeater
- if (cta_repeater != '' && cta_repeater != undefined && cta_position != '' && cta_position != null) {
+ if (cta_repeater !== '' && cta_repeater !== undefined && cta_position !== '' && cta_position !== null) {
output += ' cta="' + cta + '"';
output += ' cta_position="' + cta_before_after + ':' + cta_position + '"';
output += ' cta_repeater="' + cta_repeater + '"';
}
// Theme repeater
- if (cta_theme_repeater != '' && cta_theme_repeater != undefined && cta_position != '' && cta_position != null) {
+ if (cta_theme_repeater !== '' && cta_theme_repeater !== undefined && cta_position !== '' && cta_position !== null) {
output += ' cta="' + cta + '"';
output += ' cta_position="' + cta_before_after + ':' + cta_position + '"';
output += ' cta_theme_repeater="' + cta_theme_repeater + '"';
@@ -275,7 +288,9 @@ jQuery(document).ready(function ($) {
comments_per_page = $('#comments-per-page').val(),
comments_type = $('#comments_type').val(),
comments_template = $('#comments_template').val(),
- comments_callback = $('#comments_callback').val().trim(),
+ comments_callback = $('#comments_callback')
+ .val()
+ .trim(),
comments_style = $('#alm-comments input[name=alm_comment_style]:checked').val();
if (comments_callback !== '') {
@@ -305,7 +320,7 @@ jQuery(document).ready(function ($) {
// ---------------------------
var filters = $('.filters input[name=filters]:checked').val();
- if (filters !== 'false' && filters != undefined) {
+ if (filters !== 'false' && filters !== undefined) {
$('.filters_options').slideDown(250, 'alm_easeInOutQuad');
var filters_id = $('#alm-filters select');
@@ -317,13 +332,19 @@ jQuery(document).ready(function ($) {
output += ' filters="' + filters + '"';
- var filters_url = $('#alm-filters input[name=filters-url]:checked').val().trim();
+ var filters_url = $('#alm-filters input[name=filters-url]:checked')
+ .val()
+ .trim();
if (filters_url !== '' && filters_url !== 'true') output += ' filters_url="' + filters_url + '"';
- var filters_paging = $('#alm-filters input[name=filters-paging]:checked').val().trim();
+ var filters_paging = $('#alm-filters input[name=filters-paging]:checked')
+ .val()
+ .trim();
if (filters_paging !== '' && filters_paging !== 'true') output += ' filters_paging="' + filters_paging + '"';
- var filters_scroll = $('#alm-filters input[name=filters-scroll]:checked').val().trim();
+ var filters_scroll = $('#alm-filters input[name=filters-scroll]:checked')
+ .val()
+ .trim();
if (filters_scroll !== '' && filters_scroll !== 'false') output += ' filters_scroll="' + filters_paging + '"';
if (filters_paging === 'true' || filters_scroll === 'true') {
@@ -335,21 +356,41 @@ jQuery(document).ready(function ($) {
$('#filter-scrollTopOptions').slideUp(250, 'alm_easeInOutQuad');
}
- var filters_analytics = $('#alm-filters input[name=filters-analytics]:checked').val().trim();
+ var filters_analytics = $('#alm-filters input[name=filters-analytics]:checked')
+ .val()
+ .trim();
if (filters_analytics !== '' && filters_analytics !== 'true') output += ' filters_analytics="' + filters_analytics + '"';
- var filters_debug = $('#alm-filters input[name=filters-debug]:checked').val().trim();
+ var filters_debug = $('#alm-filters input[name=filters-debug]:checked')
+ .val()
+ .trim();
if (filters_debug !== '' && filters_debug !== 'false') output += ' filters_debug="' + filters_debug + '"';
} else {
$('.filters_options').slideUp(250, 'alm_easeInOutQuad');
}
+ // ---------------------------
+ // - Layouts
+ // ---------------------------
+
+ var layouts = $('.layouts input[name=layouts]:checked').val();
+ if (layouts !== 'false' && layouts !== undefined) {
+ var layouts_columns = $('#layouts-columns').val();
+ var layouts_gap = $('#layouts-gap').val();
+ $('.layouts_options').slideDown(250, 'alm_easeInOutQuad');
+ output += ' layouts="true"';
+ output += layouts_columns !== '3' ? ' layouts_cols="' + layouts_columns + '"' : '';
+ output += layouts_gap !== 'default' ? ' layouts_gap="' + layouts_gap + '"' : '';
+ } else {
+ $('.layouts_options').slideUp(250, 'alm_easeInOutQuad');
+ }
+
// ---------------------------
// - Next Page
// ---------------------------
var nextpage = $('.next-page input[name=next-page]:checked').val();
- if (nextpage !== 'false' && nextpage != undefined) {
+ if (nextpage !== 'false' && nextpage !== undefined) {
var nextpage_post_id = $('#next-page_post_id').val(),
nextpage_url = $('input#next-page-url:checked').val(),
nextpage_pageviews = $('input#next-page-pageviews:checked').val(),
@@ -393,7 +434,7 @@ jQuery(document).ready(function ($) {
var paging_previous_label = $('#alm-paging input#paging-previous-label').val();
var paging_next_label = $('#alm-paging input#paging-next-label').val();
- if (paging !== 'false' && paging != undefined) {
+ if (paging !== 'false' && paging !== undefined) {
output += ' paging="' + paging + '"';
if (paging_classes !== '') {
@@ -433,12 +474,12 @@ jQuery(document).ready(function ($) {
var seo = $('.seo input[name=seo]:checked').val();
var preload = $('.preload input[name=preload]:checked').val();
- if (preload !== 'false' && preload != undefined) {
+ if (preload !== 'false' && preload !== undefined) {
if (seo !== 'true') $('.preload_amount').slideDown(250, 'alm_easeInOutQuad');
output += ' preloaded="' + preload + '"';
var preload_amount = $('.preload input#preload-amount').val();
- if (preload_amount > 0 && preload_amount != 5) output += ' preloaded_amount="' + preload_amount + '"';
+ if (preload_amount > 0 && preload_amount !== 5) output += ' preloaded_amount="' + preload_amount + '"';
} else {
$('.preload_amount').slideUp(250, 'alm_easeInOutQuad');
}
@@ -448,15 +489,25 @@ jQuery(document).ready(function ($) {
// ---------------------------
var rest = $('#alm-rest input[name=rest]:checked').val();
- if (rest !== 'false' && rest != undefined) {
+ if (rest !== 'false' && rest !== undefined) {
$('.restapi_options').slideDown(250, 'alm_easeInOutQuad');
output += ' restapi="' + rest + '"';
- var restapi_base = $('#alm-rest input#rest-base').val().trim(),
- restapi_namespace = $('#alm-rest input#rest-namespace').val().trim(),
- restapi_endpoint = $('#alm-rest input#rest-endpoint').val().trim(),
- restapi_template_id = $('#alm-rest input#rest-template-id').val().trim(),
- restapi_debug = $('#alm-rest input[name=rest-debug]:checked').val().trim();
+ var restapi_base = $('#alm-rest input#rest-base')
+ .val()
+ .trim(),
+ restapi_namespace = $('#alm-rest input#rest-namespace')
+ .val()
+ .trim(),
+ restapi_endpoint = $('#alm-rest input#rest-endpoint')
+ .val()
+ .trim(),
+ restapi_template_id = $('#alm-rest input#rest-template-id')
+ .val()
+ .trim(),
+ restapi_debug = $('#alm-rest input[name=rest-debug]:checked')
+ .val()
+ .trim();
if (restapi_base !== '') output += ' restapi_base="' + restapi_base + '"';
@@ -479,7 +530,7 @@ jQuery(document).ready(function ($) {
// ---------------------------
var term_query = $('#alm-term_query input[name=term_query]:checked').val();
- if (term_query !== 'false' && term_query != undefined) {
+ if (term_query !== 'false' && term_query !== undefined) {
$('.term_query-options').slideDown(250, 'alm_easeInOutQuad');
var term_query_taxonomy = $('#alm-term_query select#term_query-taxonomy-select').val();
@@ -499,7 +550,7 @@ jQuery(document).ready(function ($) {
// - SEO
// ---------------------------
- if (seo !== 'false' && seo != undefined) {
+ if (seo !== 'false' && seo !== undefined) {
if (preload === 'true') $('.preload_amount').slideUp(250, 'alm_easeInOutQuad');
output += ' seo="' + seo + '"';
}
@@ -624,7 +675,7 @@ jQuery(document).ready(function ($) {
if (users === undefined) {
users = false;
}
- if (users !== false && users !== 'false' && users != undefined) {
+ if (users !== false && users !== 'false' && users !== undefined) {
var users_role = $('#alm-users select#users-role').val();
var users_include = $('#alm-users input#users-include').val();
var users_exclude = $('#alm-users input#users-exclude').val();
@@ -653,7 +704,7 @@ jQuery(document).ready(function ($) {
output += ' users="' + users + '"';
- if (users_role !== '' && users_role != undefined) {
+ if (users_role !== '' && users_role !== undefined) {
output += ' users_role="' + users_role + '"';
}
if (users_include !== '') {
@@ -682,10 +733,10 @@ jQuery(document).ready(function ($) {
var repeater = $('#alm-repeaters select[name=repeater-select]').val(),
theme_repeater = $('#alm-repeaters .select-theme-repeater select[name=theme-repeater-select]').val();
- if (theme_repeater != 'null' && theme_repeater != '' && theme_repeater != undefined) {
+ if (theme_repeater !== 'null' && theme_repeater !== '' && theme_repeater !== undefined) {
output += ' theme_repeater="' + theme_repeater + '"';
} else {
- if (repeater != '' && repeater != undefined && repeater != 'default') {
+ if (repeater !== '' && repeater !== undefined && repeater !== 'default') {
output += ' repeater="' + repeater + '"';
}
}
@@ -699,7 +750,7 @@ jQuery(document).ready(function ($) {
var post_type_count = 0,
selected_post_type = '';
- $('ul.alm-post-type-list input[type=checkbox]').each(function (e) {
+ $('ul.alm-post-type-list input[type=checkbox]').each(function(e) {
if ($(this).is(':checked')) {
post_type_count++;
if (post_type_count > 1) {
@@ -736,14 +787,14 @@ jQuery(document).ready(function ($) {
// ---------------------------
var posts_per_page = $('.posts_per_page input').val();
- if (posts_per_page > 0 && posts_per_page != 5) output += ' posts_per_page="' + posts_per_page + '"';
+ if (posts_per_page > 0 && posts_per_page !== 5) output += ' posts_per_page="' + posts_per_page + '"';
// ---------------------------
// - Post Format
// ---------------------------
var post_format = $('.post_format select').val();
- if (post_format != '' && post_format != undefined) output += ' post_format="' + post_format + '"';
+ if (post_format !== '' && post_format !== undefined) output += ' post_format="' + post_format + '"';
// ---------------------------
// - Categories
@@ -854,7 +905,7 @@ jQuery(document).ready(function ($) {
}
var tax_term_count1 = 0;
- $('#tax-terms-container1 input[type=checkbox]').each(function (e) {
+ $('#tax-terms-container1 input[type=checkbox]').each(function(e) {
if ($(this).is(':checked')) {
tax_term_count1++;
if (tax_term_count1 > 1) {
@@ -880,7 +931,7 @@ jQuery(document).ready(function ($) {
}
var tax_term_count2 = 0;
- $('#tax-terms-container2 input[type=checkbox]').each(function (e) {
+ $('#tax-terms-container2 input[type=checkbox]').each(function(e) {
if ($(this).is(':checked')) {
tax_term_count2++;
if (tax_term_count2 > 1) {
@@ -906,7 +957,7 @@ jQuery(document).ready(function ($) {
}
var tax_term_count3 = 0;
- $('#tax-terms-container3 input[type=checkbox]').each(function (e) {
+ $('#tax-terms-container3 input[type=checkbox]').each(function(e) {
if ($(this).is(':checked')) {
tax_term_count3++;
if (tax_term_count3 > 1) {
@@ -956,10 +1007,26 @@ jQuery(document).ready(function ($) {
// ---------------------------
// - Custom Fields Meta Query
// ---------------------------
- var meta_key = $.trim($('.meta-query-wrap').eq(0).find('input.meta-key').val()),
- meta_value = $.trim($('.meta-query-wrap').eq(0).find('input.meta-value').val()),
- meta_compare = $('.meta-query-wrap').eq(0).find('select.meta-compare').val(),
- meta_type = $('.meta-query-wrap').eq(0).find('select.meta-type').val(),
+ var meta_key = $.trim(
+ $('.meta-query-wrap')
+ .eq(0)
+ .find('input.meta-key')
+ .val()
+ ),
+ meta_value = $.trim(
+ $('.meta-query-wrap')
+ .eq(0)
+ .find('input.meta-value')
+ .val()
+ ),
+ meta_compare = $('.meta-query-wrap')
+ .eq(0)
+ .find('select.meta-compare')
+ .val(),
+ meta_type = $('.meta-query-wrap')
+ .eq(0)
+ .find('select.meta-type')
+ .val(),
meta_relation = $('select.meta-relation').val(),
meta_query_length = $('.meta-query-wrap').length;
@@ -990,7 +1057,7 @@ jQuery(document).ready(function ($) {
meta_value = '';
meta_compare = '';
meta_type = '';
- $('.meta-query-wrap').each(function (e) {
+ $('.meta-query-wrap').each(function(e) {
var el = $(this),
mk = $.trim(el.find('input.meta-key').val()),
mv = $.trim(el.find('input.meta-value').val()),
@@ -1164,7 +1231,7 @@ jQuery(document).ready(function ($) {
}
var max_pages = $('.max_pages input').val();
- if (max_pages != 0) {
+ if (max_pages > 0) {
output += ' max_pages="' + $('.max_pages input').val() + '"';
}
@@ -1265,9 +1332,15 @@ jQuery(document).ready(function ($) {
// - Button Label
// ---------------------------
- var button_label = $('.btn-label input#button-label').val().trim(),
- button_loading_label = $('.btn-label input#button-loading-label').val().trim(),
- button_done_label = $('.btn-label input#button-done-label').val().trim();
+ var button_label = $('.btn-label input#button-label')
+ .val()
+ .trim(),
+ button_loading_label = $('.btn-label input#button-loading-label')
+ .val()
+ .trim(),
+ button_done_label = $('.btn-label input#button-done-label')
+ .val()
+ .trim();
if (button_label !== '' && button_label !== 'Load More') {
output += ' button_label="' + button_label + '"';
@@ -1317,7 +1390,7 @@ jQuery(document).ready(function ($) {
output += ']'; //Close shortcode
output_div.text(output);
- if (output != '[ajax_load_more]') $('.reset-shortcode-builder').show();
+ if (output !== '[ajax_load_more]') $('.reset-shortcode-builder').show();
else $('.reset-shortcode-builder').hide();
};
@@ -1328,11 +1401,15 @@ jQuery(document).ready(function ($) {
*/
//Select 'post' by default
- $('.post_types input[type=checkbox]#chk-post').prop('checked', true).addClass('changed');
+ $('.post_types input[type=checkbox]#chk-post')
+ .prop('checked', true)
+ .addClass('changed');
//Select SEO 'false' by default
- $('.seo input[type=radio]#seo-false').prop('checked', true).addClass('changed');
+ $('.seo input[type=radio]#seo-false')
+ .prop('checked', true)
+ .addClass('changed');
- $(document).on('change keyup', '.alm_element', function () {
+ $(document).on('change keyup', '.alm_element', function() {
var el = $(this);
el.addClass('changed');
@@ -1340,10 +1417,12 @@ jQuery(document).ready(function ($) {
if (el.attr('name') === 'woocommerce') {
var postTypeCheckboxes = $('ul.alm-post-type-list input[type=checkbox]');
// Check 'product'
- $('ul.alm-post-type-list input[type=checkbox]#chk-product').prop('checked', true).addClass('changed');
+ $('ul.alm-post-type-list input[type=checkbox]#chk-product')
+ .prop('checked', true)
+ .addClass('changed');
if (postTypeCheckboxes) {
- postTypeCheckboxes.each(function (index, item) {
+ postTypeCheckboxes.each(function(index, item) {
if (item.dataset.type !== 'product') {
item.checked = false;
}
@@ -1389,7 +1468,7 @@ jQuery(document).ready(function ($) {
_alm.buildShortcode();
});
- $('input.numbers-only').keydown(function (e) {
+ $('input.numbers-only').keydown(function(e) {
if (
$.inArray(e.keyCode, [188, 46, 8, 9, 27, 13, 110, 190]) !== -1 ||
// Allow: Ctrl+A
@@ -1418,26 +1497,30 @@ jQuery(document).ready(function ($) {
var jumpMenuOptions = '';
function almBuildJumpMenu(type) {
if (type === 'repeaters') {
- $('.row').each(function () {
+ $('.row').each(function() {
if (!$(this).hasClass('no-brd')) {
// Special case for back 2 top on shortcode builder landing
var id = $(this).attr('id'),
- title = $(this).find('h3.heading').text();
+ title = $(this)
+ .find('h3.heading')
+ .text();
jumpMenuOptions += '' + title + ' ';
}
});
}
if (type === 'shortcode') {
- $('.shortcode-parameter-wrap').each(function () {
+ $('.shortcode-parameter-wrap').each(function() {
var el = $(this),
opttitle = el.find('h2').text();
jumpMenuOptions += '';
- $('.row', el).each(function () {
+ $('.row', el).each(function() {
if (!$(this).hasClass('no-brd')) {
// Special case for back 2 top on shortcode builder landing
var id = $(this).attr('id'),
- title = $(this).find('h3.heading').text();
+ title = $(this)
+ .find('h3.heading')
+ .text();
jumpMenuOptions += '' + title + ' ';
}
});
@@ -1450,7 +1533,7 @@ jQuery(document).ready(function ($) {
}
if ($('#alm-repeaters .repeaters').length) {
if ($('#unlmited-container').length) {
- $('#unlmited-container .row').each(function () {
+ $('#unlmited-container .row').each(function() {
var el = $(this),
id = el.find('.wrap').data('name');
el.attr('id', 'alm_' + id);
@@ -1461,12 +1544,12 @@ jQuery(document).ready(function ($) {
// Jump Menu.
$('select.jump-menu').append(jumpMenuOptions);
- $('select.jump-menu').change(function () {
+ $('select.jump-menu').change(function() {
var pos = $(this).val();
if (pos !== 'null') {
$('html,body').animate(
{
- scrollTop: $('#' + pos).offset().top - ($('.intro').height() - 20),
+ scrollTop: $('#' + pos).offset().top - ($('.intro').height() - 20)
},
200,
'alm_easeInOutQuad'
@@ -1482,14 +1565,16 @@ jQuery(document).ready(function ($) {
$('.table-of-contents .toc').append('-- ' + alm_admin_localize.jump_to_option + ' -- ');
}
- $('.table-of-contents .toc').append(jumpMenuOptions).select2();
+ $('.table-of-contents .toc')
+ .append(jumpMenuOptions)
+ .select2();
- $('.table-of-contents .toc').change(function () {
+ $('.table-of-contents .toc').change(function() {
var pos = $(this).val();
if (pos !== 'null' && pos !== '#') {
$('html,body').animate(
{
- scrollTop: $('#' + pos).offset().top - 46,
+ scrollTop: $('#' + pos).offset().top - 46
},
500,
'alm_easeInOutQuad'
@@ -1513,53 +1598,55 @@ jQuery(document).ready(function ($) {
action: 'alm_get_tax_terms',
taxonomy: tax,
index: index,
- nonce: alm_admin_localize.alm_admin_nonce,
+ nonce: alm_admin_localize.alm_admin_nonce
},
dataType: 'html',
- success: function (data) {
+ success: function(data) {
placement.html(data);
},
- error: function (xhr, status, error) {
+ error: function(xhr, status, error) {
responseText.html('Error - Something went wrong and the terms could not be retrieved.');
- },
+ }
});
}
// Ajax Load More easing.
- $.easing.alm_easeInOutQuad = function (x, t, b, c, d) {
+ $.easing.alm_easeInOutQuad = function(x, t, b, c, d) {
if ((t /= d / 2) < 1) return (c / 2) * t * t + b;
return (-c / 2) * (--t * (t - 2) - 1) + b;
};
// Reset shortcode builder.
- $(document).on('click', '.reset-shortcode-builder a', function () {
+ $(document).on('click', '.reset-shortcode-builder a', function() {
$('#alm-shortcode-builder-form').trigger('reset');
_alm.reset_select2();
_alm.buildShortcode();
});
// Generate Unique Cache ID.
- _alm.generateUniqueID = function (length, el) {
+ _alm.generateUniqueID = function(length, el) {
var id = Math.floor(Math.pow(10, length - 1) + Math.random() * 9 * Math.pow(10, length - 1));
$(el).val(id);
};
// Option toggle click events.
- $('.builder-option-toggle--buttons button').on('click', function () {
- var siblings = $(this).siblings('button').removeClass('active');
+ $('.builder-option-toggle--buttons button').on('click', function() {
+ var siblings = $(this)
+ .siblings('button')
+ .removeClass('active');
$(this).addClass('active');
_alm.buildShortcode();
});
// Generate Unique/Cache ID.
- $(document).on('click', '.generate-id a', function () {
+ $(document).on('click', '.generate-id a', function() {
var id = $(this).data('id'),
el = $('#' + id);
_alm.generateUniqueID(10, el);
});
// Button loader preview.
- $('.ajax-load-more-wrap button').on('click', function (e) {
+ $('.ajax-load-more-wrap button').on('click', function(e) {
var button = $(this).get(0);
var parent = button.parentNode;
if (parent.classList.contains('infinite')) {
@@ -1570,13 +1657,13 @@ jQuery(document).ready(function ($) {
});
// Create anchor links for shortcode builder items.
- $('.shortcode-parameter-wrap.alm-tabbed-wrapper--section').each(function () {
+ $('.shortcode-parameter-wrap.alm-tabbed-wrapper--section').each(function() {
var section = this;
var ul = section.querySelector('ul.section-anchor-nav');
var headings = section.querySelectorAll('h3.heading');
if (headings && headings.length > 2) {
var list = '';
- $(headings).each(function () {
+ $(headings).each(function() {
var title = $(this).text();
list += '
' + title + ' ';
});
@@ -1584,18 +1671,18 @@ jQuery(document).ready(function ($) {
var anchors = ul.querySelectorAll('a');
if (anchors) {
- $(anchors).each(function () {
- $(this).on('click', function () {
+ $(anchors).each(function() {
+ $(this).on('click', function() {
var element = this;
var text = element.innerHTML;
var target = $('h3.heading:contains(' + text + ')', section);
if (target) {
$('html, body').animate(
{
- scrollTop: target.offset().top - 45,
+ scrollTop: target.offset().top - 45
},
350,
- function () {
+ function() {
// Set focus on the element scrolled to.
target.get(0).focus({ preventScroll: true });
}
diff --git a/admin/shortcode-builder/shortcode-builder.php b/admin/shortcode-builder/shortcode-builder.php
index f881f08..104bd00 100755
--- a/admin/shortcode-builder/shortcode-builder.php
+++ b/admin/shortcode-builder/shortcode-builder.php
@@ -47,6 +47,7 @@
require_once('components/cta.php');
require_once('components/comments.php');
require_once('components/filters.php');
+ require_once('components/layouts.php');
require_once('components/nextpage.php');
require_once('components/paging.php');
require_once('components/preloaded.php');
@@ -842,10 +843,14 @@
name;
- if( $name != 'revision' && $name != 'nav_menu_item' && $name != 'acf'){
- echo ''.$typeobj->labels->singular_name.' ';
+ $typeobj = get_post_type_object( $type );
+ $name = $typeobj->name;
+ if ( $name !== 'revision' && $name !== 'nav_menu_item' && $name !== 'acf' ) {
+ echo ' ';
+ echo '';
+ echo $typeobj->labels->singular_name;
+ echo ' ';
+ echo ' ';
}
}
?>
diff --git a/admin/src/js/admin.js b/admin/src/js/admin.js
index c2166c9..398dea0 100644
--- a/admin/src/js/admin.js
+++ b/admin/src/js/admin.js
@@ -1,10 +1,10 @@
var _alm = _alm || {};
-jQuery(document).ready(function ($) {
+jQuery(document).ready(function($) {
'use strict';
_alm.options = {
- speed: 200,
+ speed: 200
};
/*
@@ -17,18 +17,41 @@ jQuery(document).ready(function ($) {
type: 'GET',
url: alm_admin_localize.restapi.url + alm_admin_localize.restapi.namespace + '/test/',
dataType: 'json',
- success: function (data) {
+ success: function(data) {
if (data.success) {
console.log('Ajax Load More successfully connected to the WordPress REST API.');
}
},
- error: function (xhr, status, error) {
+ error: function(status) {
console.log(status);
$('.restapi-access').fadeIn();
- },
+ }
});
}
+ /**
+ * Build the header admin menu based on the sidebar.
+ */
+ function createAdminMenu() {
+ let adminmenu = document.querySelector('#adminmenu .toplevel_page_ajax-load-more > ul');
+ if (!adminmenu) {
+ return;
+ }
+
+ let alm_header = document.querySelector('.ajax-load-more header.header-wrap');
+ if (!alm_header) {
+ return;
+ }
+
+ let menu = adminmenu.cloneNode(true);
+ menu.setAttribute('class', '');
+
+ let nav = document.createElement('nav');
+ nav.appendChild(menu);
+ alm_header.appendChild(nav);
+ }
+ createAdminMenu();
+
/**
* Tabbed Navigation Elements
*
@@ -56,10 +79,10 @@ jQuery(document).ready(function ($) {
sections[index].focus({ preventScroll: true });
$('html, body').animate(
{
- scrollTop: $('.alm-tabbed-wrapper--sections').offset().top - 45,
+ scrollTop: $('.alm-tabbed-wrapper--sections').offset().top - 45
},
350,
- function () {
+ function() {
var section = parseInt(index) + 1;
window.location.hash = 'alm-section-' + section;
}
@@ -77,8 +100,8 @@ jQuery(document).ready(function ($) {
}
let tabbedNav = almTabbedWrapper.querySelectorAll('.alm-tabbed-wrapper--nav button');
if (tabbedNav) {
- tabbedNav.forEach(function (item, index) {
- item.addEventListener('click', function () {
+ tabbedNav.forEach(function(item, index) {
+ item.addEventListener('click', function() {
openTabbedItem(this, index, almTabbedWrapper);
});
});
@@ -110,11 +133,13 @@ jQuery(document).ready(function ($) {
*/
document.addEventListener(
'keydown',
- function (e) {
+ function(e) {
if ((window.navigator.platform.match('Mac') ? e.metaKey : e.ctrlKey) && e.keyCode == 83) {
if (e.target.nodeName === 'TEXTAREA' && $(e.target).closest('.repeater-wrap')) {
console.log('Saving template...');
- var btn = $(e.target).closest('.repeater-wrap').find('input.save-repeater');
+ var btn = $(e.target)
+ .closest('.repeater-wrap')
+ .find('input.save-repeater');
if (btn) {
btn.click();
}
@@ -130,7 +155,7 @@ jQuery(document).ready(function ($) {
* Set focus in code mirror editor
* @since 5.1
*/
- $('label.trigger-codemirror').on('click', function () {
+ $('label.trigger-codemirror').on('click', function() {
var el = $(this);
var id = el.data('id');
var cm = window['editor_' + id];
@@ -154,7 +179,7 @@ jQuery(document).ready(function ($) {
document.body.appendChild(settingsTarget);
}
- _alm.saveSettings = function () {
+ _alm.saveSettings = function() {
if (savingSettings) return false;
savingSettings = true;
@@ -164,9 +189,9 @@ jQuery(document).ready(function ($) {
almSettings.ajaxSubmit({
// Success
- success: function () {
+ success: function() {
// Delay for effect
- setTimeout(function () {
+ setTimeout(function() {
settingsTarget.classList.remove('--saving');
settingsTarget.classList.add('--saved');
settingsTarget.innerHTML = alm_admin_localize.settings_saved;
@@ -174,16 +199,16 @@ jQuery(document).ready(function ($) {
//console.log(alm_admin_localize.ajax_load_more +' - '+ alm_admin_localize.settings_saved);
savingSettings = false;
- setTimeout(function () {
+ setTimeout(function() {
settingsTarget.classList.remove('--saved');
}, 2500);
}, 500);
},
// Error
- error: function () {
+ error: function() {
// Delay for effect
- setTimeout(function () {
+ setTimeout(function() {
settingsTarget.classList.remove('--saving');
settingsTarget.classList.add('--error');
settingsTarget.innerHTML = alm_admin_localize.settings_error;
@@ -191,21 +216,21 @@ jQuery(document).ready(function ($) {
console.log(alm_admin_localize.ajax_load_more + ' - ' + alm_admin_localize.settings_error);
savingSettings = false;
- setTimeout(function () {
+ setTimeout(function() {
settingsTarget.classList.remove('--error');
}, 2500);
}, 500);
- },
+ }
});
return false;
};
// On Change, save the settings
let settingsTimer;
- $(document).on('change', '#alm_OptionsForm input, #alm_OptionsForm textarea, #alm_OptionsForm select', function () {
+ $(document).on('change', '#alm_OptionsForm input, #alm_OptionsForm textarea, #alm_OptionsForm select', function() {
// Set a timer to avoid updating settings to frequently
if (settingsTimer) clearTimeout(settingsTimer);
- settingsTimer = setTimeout(function () {
+ settingsTimer = setTimeout(function() {
_alm.saveSettings();
}, 500);
});
@@ -216,7 +241,7 @@ jQuery(document).ready(function ($) {
*
* @since 3.6
*/
- $('.download-repeater').on('click', function () {
+ $('.download-repeater').on('click', function() {
let el = this;
el.closest('form').submit();
});
@@ -227,12 +252,12 @@ jQuery(document).ready(function ($) {
* @see http://iamceege.github.io/tooltipster/
* @since 2.8.4
*/
- $('.ajax-load-more-inner-wrapper').on('mouseenter', '.tooltip:not(.tooltipstered)', function () {
+ $('.ajax-load-more-inner-wrapper').on('mouseenter', '.tooltip:not(.tooltipstered)', function() {
$(this)
.tooltipster({
delay: 100,
speed: 150,
- maxWidth: 325,
+ maxWidth: 325
})
.tooltipster('show');
});
@@ -243,7 +268,7 @@ jQuery(document).ready(function ($) {
*
* @since 2.8.4
*/
- $('select#alm_settings_btn_color').on('change', function () {
+ $('select#alm_settings_btn_color').on('change', function() {
var color = jQuery(this).val();
// Remove other colors
var wrap = $('.ajax-load-more-wrap');
@@ -258,32 +283,43 @@ jQuery(document).ready(function ($) {
}
});
- $('select#alm_settings_btn_color').click(function (e) {
+ $('select#alm_settings_btn_color').click(function(e) {
e.preventDefault();
});
- $('.alm-template-listing li a').click(function (e) {
+ $('.alm-template-listing li a').click(function(e) {
e.preventDefault();
var el = $(this),
val = el.data('path');
- el.parent().parent().next('.template-selection').val(val);
+ el.parent()
+ .parent()
+ .next('.template-selection')
+ .val(val);
});
- $('.alm-template-section-nav li a').click(function (e) {
+ $('.alm-template-section-nav li a').click(function(e) {
e.preventDefault();
var el = $(this),
index = el.parent().index(),
- parent = el.parent().parent().parent('.repeater-wrap');
+ parent = el
+ .parent()
+ .parent()
+ .parent('.repeater-wrap');
if (!el.hasClass('active')) {
- el.parent().addClass('active').siblings().removeClass('active');
+ el.parent()
+ .addClass('active')
+ .siblings()
+ .removeClass('active');
$('.alm-template-toggle', parent).hide();
- $('.alm-template-toggle', parent).eq(index).show();
+ $('.alm-template-toggle', parent)
+ .eq(index)
+ .show();
}
});
// Copy to Clipboard
- $('.copy-to-clipboard').on('click', function () {
+ $('.copy-to-clipboard').on('click', function() {
var btn = $(this).get(0);
var input = document.querySelector('#shortcode_output');
@@ -300,7 +336,7 @@ jQuery(document).ready(function ($) {
// Set Text of Button
btn.innerHTML = copied_txt;
- setTimeout(function () {
+ setTimeout(function() {
btn.innerHTML = old_txt;
input.disabled = false;
btn.disabled = false;
@@ -308,12 +344,12 @@ jQuery(document).ready(function ($) {
}
});
- _alm.copyToClipboard = function (text) {
+ _alm.copyToClipboard = function(text) {
window.prompt('Copy link to your clipboard: Press Ctrl + C then hit Enter to copy.', text);
};
// Copy link on repeater templates
- $('.alm-dropdown .copy a').click(function () {
+ $('.alm-dropdown .copy a').click(function() {
var container = $(this).closest('.repeater-wrap'), // find closet wrap
el = container.data('name'); // get template name
@@ -328,25 +364,25 @@ jQuery(document).ready(function ($) {
* @since 2.0.0
*/
- $(document).on('click', 'h3.heading', function () {
+ $(document).on('click', 'h3.heading', function() {
var el = $(this);
if ($(el).hasClass('open')) {
$(el)
.next('.expand-wrap')
- .slideDown(_alm.options.speed, 'alm_easeInOutQuad', function () {
+ .slideDown(_alm.options.speed, 'alm_easeInOutQuad', function() {
$(el).removeClass('open');
});
} else {
$(el)
.next('.expand-wrap')
- .slideUp(_alm.options.speed, 'alm_easeInOutQuad', function () {
+ .slideUp(_alm.options.speed, 'alm_easeInOutQuad', function() {
$(el).addClass('open');
});
}
});
// Toggle Links.
- $(document).on('click', '.toggle-all', function () {
+ $(document).on('click', '.toggle-all', function() {
var el = $(this);
if (el.hasClass('closed')) {
el.removeClass('closed');
@@ -364,7 +400,7 @@ jQuery(document).ready(function ($) {
});
// Trigger click events on enter/return
- $('h3.heading, h2.shortcode-title').on('keypress', function (e) {
+ $('h3.heading, h2.shortcode-title').on('keypress', function(e) {
var key = e.which;
if (key == 13) {
// the enter key code
@@ -379,9 +415,8 @@ jQuery(document).ready(function ($) {
* @since 2.8.3
*/
var almActivating = false;
- $(document).on('click', '.license-btn', function (e) {
+ $(document).on('click', '.license-btn', function(e) {
e.preventDefault();
-
if (!almActivating) {
$('.license-btn-wrap .msg').remove();
almActivating = true;
@@ -414,40 +449,54 @@ jQuery(document).ready(function ($) {
url: url,
upgrade: upgrade,
key: key,
- license: license,
+ license: license
},
- success: function (data) {
+ success: function(data) {
if (data.msg) {
$('.license-btn-wrap', parent).append('' + data.msg + '
');
}
if (data.license === 'valid') {
- $('.license-key-field .status', parent).addClass('active').removeClass('inactive').text(alm_admin_localize.active);
- $('.license-title .status', parent).addClass('valid').removeClass('invalid');
+ $('.license-key-field .status', parent)
+ .addClass('active')
+ .removeClass('inactive')
+ .text(alm_admin_localize.active);
+ $('.license-title .status', parent)
+ .addClass('valid')
+ .removeClass('invalid');
$('.activate.license-btn', parent).addClass('hide');
$('.check-licence.license-btn', parent).addClass('hide');
$('.deactivate.license-btn', parent).removeClass('hide');
$('.renew-btn', parent).addClass('hide');
$('.no-license', parent).slideUp(200);
} else {
- $('.license-key-field .status', parent).removeClass('active').addClass('inactive').text(alm_admin_localize.inactive);
- $('.license-title .status', parent).removeClass('valid').addClass('invalid');
+ $('.license-key-field .status', parent)
+ .removeClass('active')
+ .addClass('inactive')
+ .text(alm_admin_localize.inactive);
+ $('.license-title .status', parent)
+ .removeClass('valid')
+ .addClass('invalid');
$('.activate.license-btn', parent).removeClass('hide');
$('.check-licence.license-btn', parent).addClass('hide');
$('.deactivate.license-btn', parent).addClass('hide');
$('.no-license', parent).slideDown(200);
}
- $('.loading', parent).delay(250).fadeOut(300);
+ $('.loading', parent)
+ .delay(250)
+ .fadeOut(300);
almActivating = false;
},
- error: function (status, error) {
+ error: function(status, error) {
console.log(status, error);
- $('.loading', parent).delay(250).fadeOut(300);
+ $('.loading', parent)
+ .delay(250)
+ .fadeOut(300);
almActivating = false;
- },
+ }
});
}
});
@@ -457,7 +506,7 @@ jQuery(document).ready(function ($) {
*
* @since 2.8.7
*/
- $(document).on('click', '.alm-layout-selection li a.layout', function (e) {
+ $(document).on('click', '.alm-layout-selection li a.layout', function(e) {
e.preventDefault();
var el = $(this),
type = el.data('type'),
@@ -488,63 +537,38 @@ jQuery(document).ready(function ($) {
action: 'alm_get_layout',
type: type,
custom: custom,
- nonce: alm_admin_localize.alm_admin_nonce,
+ nonce: alm_admin_localize.alm_admin_nonce
},
dataType: 'JSON',
- success: function (data) {
+ success: function(data) {
eid.setValue(data.value);
// Clear button styles
- setTimeout(function () {
+ setTimeout(function() {
el.text(alm_admin_localize.template_updated).blur();
- setTimeout(function () {
- el.removeClass('updating').html(layout_btn_text).blur(); // CLose drop menu
+ setTimeout(function() {
+ el.removeClass('updating')
+ .html(layout_btn_text)
+ .blur(); // CLose drop menu
el.closest('.alm-drop-btn').trigger('click');
textarea.removeClass('loading');
}, 400);
}, 400);
},
- error: function (xhr, status, error) {
+ error: function(xhr, status, error) {
console.log(status);
textarea.removeClass('loading');
- },
+ }
});
}
});
- /**
- * Dismiss Sharing (Transient).
- *
- * @since 2.8.7
- */
- $(document).on('click', '.alm-notification--dismiss', function (e) {
- e.preventDefault();
- var el = $(this),
- container = el.parent('.cta');
-
- // Get value from Ajax
- $.ajax({
- type: 'POST',
- url: alm_admin_localize.ajax_admin_url,
- data: {
- action: 'alm_dismiss_sharing',
- nonce: alm_admin_localize.alm_admin_nonce,
- },
- success: function (data) {
- container.fadeOut();
- },
- error: function (xhr, status, error) {
- console.log(status);
- },
- });
- });
-
/**
* Set Transient (Transient).
*
* @since 4.0
*/
- $(document).on('click', '.alm-transient button.notice-dismiss', function (e) {
+ $(document).on('click', '.alm-transient button.notice-dismiss', function(e) {
e.preventDefault();
var el = $(this),
container = el.parent('.alm-transient'),
@@ -559,14 +583,14 @@ jQuery(document).ready(function ($) {
action: 'alm_set_transient',
nonce: alm_admin_localize.alm_admin_nonce,
transient_name: transient_name,
- duration: duration,
+ duration: duration
},
- success: function (data) {
+ success: function(data) {
container.fadeOut();
},
- error: function (xhr, status, error) {
+ error: function(xhr, status, error) {
console.log(status);
- },
+ }
});
});
@@ -575,7 +599,7 @@ jQuery(document).ready(function ($) {
*
* @since 2.7.3
*/
- $(document).on('change', '#alm-settings-nav', function (e) {
+ $(document).on('change', '#alm-settings-nav', function(e) {
e.preventDefault();
var el = $(this),
index = $('option:selected', el).index();
@@ -583,7 +607,10 @@ jQuery(document).ready(function ($) {
index = index - 1;
$('html, body').animate(
{
- scrollTop: $('#alm_OptionsForm h2').eq(index).offset().top - 40,
+ scrollTop:
+ $('#alm_OptionsForm h2')
+ .eq(index)
+ .offset().top - 40
},
500
);
diff --git a/admin/src/scss/_variables.scss b/admin/src/scss/_variables.scss
index 1199890..f857e29 100644
--- a/admin/src/scss/_variables.scss
+++ b/admin/src/scss/_variables.scss
@@ -1,5 +1,6 @@
$gutter: 25px;
$padding: 20px;
+$padding_lg: 30px;
$padding_sm: 15px;
$green: #8ed074;
$green_hover: #57bda4;
@@ -14,9 +15,9 @@ $paragraph: #6a7178;
$grey_text: #999;
$light_grey: #f7f7f7;
$lighter_grey: #fcfcfc;
-$light_border: #f1f1f1;
+$light_border: #efefef;
$grey_blue: #f8f9fb;
-$border: #e1e1e1;
+$border: #e7e7e7;
$border_hover: #ccc;
$shadow: 0 0 4px 1px rgba($blue, 0.15);
$radius: 3px;
diff --git a/admin/src/scss/admin.scss b/admin/src/scss/admin.scss
index f8c6f0b..eaba3f9 100644
--- a/admin/src/scss/admin.scss
+++ b/admin/src/scss/admin.scss
@@ -31,7 +31,7 @@ body.ajax-load-more_page_ajax-load-more-woocommerce {
#wpcontent {
padding-left: 0;
padding-bottom: 20px;
- //background-color: #efefef;
+ //background-color: $light_border;
}
#wpbody-content {
padding-bottom: 0;
@@ -49,7 +49,7 @@ body.ajax-load-more_page_ajax-load-more-filters,
body.ajax-load-more_page_ajax-load-more-pro,
body.ajax-load-more_page_ajax-load-more-go-pro,
body.ajax-load-more_page_ajax-load-more-woocommerce {
- //background: #efefef;
+ //background: $light_border;
#wpfooter {
padding-top: 0;
padding-bottom: 0;
@@ -69,7 +69,7 @@ body.ajax-load-more_page_ajax-load-more-woocommerce {
margin: 0 !important;
}
.ajax-load-more-inner-wrapper {
- padding: $padding $padding $padding * 3;
+ padding: $padding_lg $padding $padding * 3;
display: block;
clear: both;
max-width: 1440px;
@@ -462,7 +462,7 @@ a.button-small {
}
.ajax-load-more .border-top {
display: block;
- border-top: 1px solid #efefef;
+ border-top: 1px solid $light_border;
width: 100%;
clear: both;
padding: 15px 0 0 !important;
@@ -722,8 +722,6 @@ a.button-small {
border-radius: 0;
}
-.checkboxes {
-}
.checkboxes input,
.radio input {
margin-top: 2px;
@@ -792,13 +790,6 @@ a.button-small {
color: $grey_text;
font-style: italic;
}
-
-.ajax-load-more input[type='text'],
-.ajax-load-more input[type='number'],
-.ajax-load-more input[type='email'],
-.ajax-load-more textarea {
- //background: $light_grey;
-}
.ajax-load-more .repeaters input[type='text'] {
padding: 9px 10px;
}
@@ -894,7 +885,7 @@ a.button-small {
.ajax-load-more .row {
padding: 0 !important;
- margin: $padding/2 0 0;
+ margin: 10px 0 0;
height: auto;
width: 100%;
display: block;
@@ -987,7 +978,7 @@ a.button-small {
.ajax-load-more .expand-wrap hr {
border: 0;
height: 0;
- border-top: 1px solid #efefef;
+ border-top: 1px solid $light_border;
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
hr.indented {
@@ -1056,7 +1047,7 @@ hr.indented {
padding: 0 4px;
border-radius: 2px;
background: $light_grey;
- border: 1px solid #efefef;
+ border: 1px solid $light_border;
color: #666;
}
.ajax-load-more .section-title h4 {
@@ -1239,7 +1230,7 @@ hr.indented {
filter: alpha(opacity=90);
cursor: default;
border: 1px solid #ccc;
- background: #efefef;
+ background: $light_border;
color: #666;
text-shadow: 1px 1px 0 #fff;
resize: none;
@@ -1320,7 +1311,7 @@ hr.indented {
.form-table th {
font-weight: 600;
background-color: $light_grey;
- border-right: 1px solid $border;
+ border-right: 1px solid $light_border;
width: 25%;
}
.form-table p {
@@ -1333,7 +1324,6 @@ hr.indented {
overflow: hidden;
color: $grey_text;
}
-
.nextpage-option {
display: block;
padding: 10px;
@@ -1396,7 +1386,7 @@ hr.indented {
.ajax-load-more h3.add-on-title {
padding: 0 0 10px;
margin: 0 0 20px;
- border-bottom: 1px solid #efefef;
+ border-bottom: 1px solid $light_border;
}
.ajax-load-more h3 {
margin-bottom: 10px;
@@ -1523,7 +1513,7 @@ table.highlight {
border: 1px solid $border;
background-color: #fff;
border-radius: $radius;
- padding: $gutter;
+ padding: $padding;
position: relative;
.toggle-all {
right: -1px;
@@ -1544,10 +1534,10 @@ table.highlight {
margin-top: 0;
}
.form-table tr {
- border-top: 1px solid $border;
+ border-top: 1px solid $light_border;
}
.form-table {
- border: 1px solid $border;
+ border: 1px solid $light_border;
margin: 0 0 20px;
br {
height: 1px;
@@ -1878,7 +1868,7 @@ a.cnkt-button.installed,
span.cnkt-button.installed,
.group span.cnkt-button.installed {
background: $light_grey !important;
- border-color: #efefef !important;
+ border-color: $light_border !important;
color: #888 !important;
box-shadow: none !important;
}
@@ -1900,171 +1890,190 @@ span.cnkt-button.installed i,
overflow: hidden;
margin: 0;
display: block;
- padding: 20px 0 0;
+ padding: $padding_sm 0 0;
position: relative;
-}
-
-.license:first-of-type {
- padding: 10px 0 0;
-}
-.license-title {
- border-radius: 3px 3px 0 0;
- border: 1px solid $border;
- background-color: $light_grey;
- position: relative;
-}
-.license-title .status {
- width: 13px;
- height: 13px;
- border-radius: 100%;
- background: #d45656;
- position: absolute;
- left: 15px;
- top: 50%;
- margin-top: -7px;
- box-shadow: inset 0 -6px 6px rgba(0, 0, 0, 0.05), 0 1px 0 #fff;
-}
-.license-title .status.valid {
- background-color: $green;
-}
-.license h2 {
- margin: 0;
- padding: 15px 15px 15px 38px;
- font-size: 16px;
- font-weight: 700;
- line-height: 1.2;
-}
-.license p,
-.license label {
- font-size: 400;
- font-size: 14px;
-}
-.license .cnkt-button {
- position: absolute;
- top: 9px;
- right: 15px;
- padding: 5px 7px !important;
-}
-.license a.cnkt-button.installed {
- background-color: none !important;
- box-shadow: none !important;
- border-color: transparent !important;
-}
-
-.license .no-license {
- display: block;
- padding: 12px;
- margin: 0 0 20px;
- border: 1px solid #e7e7c6;
- background-color: #ffffe5;
- border-radius: 2px;
-}
-.license .no-license h4 {
- margin: 0 0 3px;
-}
-.license .no-license p {
- margin: 5px 0 0;
- padding: 0;
-}
+ &:first-of-type {
+ padding: 10px 0 0;
+ }
+ .license-title {
+ border-radius: 3px 3px 0 0;
+ padding: $padding_sm;
+ border: 1px solid $border;
+ background-color: $light_grey;
+ position: relative;
+ display: flex;
+ align-items: center;
+ width: 100%;
+ .status {
+ width: 10px;
+ height: 10px;
+ border-radius: 100%;
+ background: #d45656;
+ box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
+ margin-right: 8px;
+ &.valid {
+ background-color: $green;
+ }
+ }
+ h3 {
+ margin: 0;
+ padding: 0;
+ font-size: 15px;
+ font-weight: 600;
+ line-height: 1;
+ }
+ .fa.tooltip{
+ top: 0;
+ margin-left: auto;
+ }
+ }
+ p,
+ label {
+ font-size: 400;
+ font-size: 14px;
+ }
+ .cnkt-button {
+ position: absolute;
+ top: 9px;
+ right: 15px;
+ padding: 5px 7px !important;
+ }
+ a.cnkt-button.installed {
+ background-color: none !important;
+ box-shadow: none !important;
+ border-color: transparent !important;
+ }
+ .no-license {
+ display: block;
+ padding: 12px;
+ margin: 0 0 $padding_sm;
+ border: 1px solid #e7e7c6;
+ background-color: #ffffe5;
+ border-radius: 2px;
+ h4 {
+ margin: 0 0 3px;
+ }
+ p {
+ margin: 5px 0 0;
+ padding: 0;
+ }
+ }
-.license .loading {
- position: absolute;
- left: 0;
- top: 0;
- width: 100%;
- height: 100%;
- background: rgba(255, 255, 255, 0.6) url('../../img/loader.gif') no-repeat center center;
- z-index: 9;
- display: none;
-}
-.license-btn.hide,
-.renew-btn.hide {
- display: none;
-}
-.license-btn-wrap {
- display: block;
-}
-.license-btn-wrap .msg {
- display: block;
- padding: 15px 0 0;
- font-size: 14px;
- line-height: 24px;
- position: relative;
- top: 4px;
-}
-.license-btn-wrap .msg strong {
- display: block;
-}
-.license-btn-wrap .msg em {
- opacity: 0.7;
- font-style: normal;
-}
+ .loading {
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ background: rgba(255, 255, 255, 0.6) url('../../img/loader.gif') no-repeat center center;
+ z-index: 9;
+ display: none;
+ }
+ .license-btn.hide,
+ .renew-btn.hide {
+ display: none;
+ }
+ .license-btn-wrap {
+ display: flex;
+ width: 100%;
+ align-items: center;
+ gap: 6px;
+ .msg {
+ display: block;
+ padding: 15px 0 0;
+ font-size: 14px;
+ line-height: 24px;
+ position: relative;
+ top: 4px;
+ strong {
+ display: block;
+ }
+ em {
+ opacity: 0.7;
+ font-style: normal;
+ }
+ }
+ }
-.license-wrap,
-.license-no-addons {
- overflow: hidden;
- display: block;
- padding: 18px 15px;
- border: 1px solid $border;
- border-top: none;
- background-color: #fff;
- border-radius: 0 0 3px 3px;
-}
-.license-wrap label {
- font-weight: 600;
- top: -3px;
-}
-.license-wrap input[type='text'] {
- margin: 0;
- width: 100% !important;
- padding: 14px;
-}
-.license-wrap .button-primary {
- margin-right: 5px;
-}
-.license-key-field {
- position: relative;
- display: block;
- margin: 0 0 20px;
-}
-.license-key-field .status {
- position: absolute;
- right: 10px;
- top: 50%;
- transform: translateY(-50%);
- display: inline-block;
- border-radius: 2px;
- padding: 6px 12px;
- line-height: 1.3;
- color: #fff;
- border-color: $grey_text;
- cursor: default;
-}
-.license-key-field .status.active {
- background-color: $green;
-}
-.license-key-field .status.inactive {
- background-color: #d45656;
-}
+ .license-wrap,
+ .license-no-addons {
+ overflow: hidden;
+ display: block;
+ padding: 18px 15px;
+ border: 1px solid $border;
+ border-top: none;
+ background-color: #fff;
+ border-radius: 0 0 3px 3px;
+ }
+ .license-wrap{
+ label {
+ font-weight: 600;
+ top: -3px;
+ }
+ input[type='text'],
+ input[type='password'] {
+ margin: 0;
+ width: 100% !important;
+ padding: $padding_sm;
+ min-height: 0;
+ border-color: $border;
+ line-height: 1;
+ &[disabled]{
+ color: #ccc;
+ cursor: not-allowed;
+ }
+ &:focus{
+ border-color: $border_hover;
+ }
+ }
+ .button-primary {
+ margin-right: 10px;
+ }
+ }
+ .license-key-field {
+ position: relative;
+ display: block;
+ margin: 0 0 $padding_sm;
+ }
+ .license-key-field .status {
+ position: absolute;
+ right: 10px;
+ top: 50%;
+ transform: translateY(-50%);
+ display: inline-block;
+ border-radius: $radius;
+ padding: 6px 10px;
+ line-height: 1.35;
+ color: #fff;
+ cursor: default;
+ font-weight: 500;
+ }
+ .license-key-field .status.active {
+ background-color: $green;
+ }
+ .license-key-field .status.inactive {
+ background-color: #d45656;
+ }
-.ajax-load-more .alm-nav {
- font-size: 600;
- font-size: 14px;
- margin: 0 !important;
- padding: 5px 0 5px;
-}
-.ajax-load-more .alm-nav a {
- display: inline-block;
-}
+ .ajax-load-more .alm-nav {
+ font-size: 600;
+ font-size: 14px;
+ margin: 0 !important;
+ padding: 5px 0 5px;
+ }
+ .ajax-load-more .alm-nav a {
+ display: inline-block;
+ }
-.license-no-addons {
- border: 1px solid #bad0da;
- border-radius: 3px;
- background-color: #e0f5ff;
-}
-.license-no-addons p {
- margin: 0;
- padding: 0;
+ .license-no-addons {
+ border: 1px solid #bad0da;
+ border-radius: 3px;
+ background-color: #e0f5ff;
+ }
+ .license-no-addons p {
+ margin: 0;
+ padding: 0;
+ }
}
/*
@@ -2083,7 +2092,7 @@ span.cnkt-button.installed i,
.alm-file-location:not(input) {
padding-top: 15px;
margin-top: 15px;
- border-top: 1px solid #efefef;
+ border-top: 1px solid $light_border;
input {
font-size: 11px;
font-family: Consolas, monaco, monospace;
@@ -2151,11 +2160,13 @@ span.cnkt-button.installed i,
margin-top: 0;
}
.ajax-load-more .cnkt-sidebar h3 {
- padding: 13px $padding_sm;
+ padding: $padding_sm 0;
margin: 0;
display: block;
- font-size: 14px;
+ font-size: 15px;
text-transform: none;
+ border-bottom: 1px solid $light_border;
+ margin: 0 $padding_sm;
}
.ajax-load-more .cnkt-sidebar .item {
@@ -2234,7 +2245,7 @@ span.cnkt-button.installed i,
text-decoration: none;
padding: 10px 0;
display: block;
- border-top: 1px dashed $border;
+ border-top: 1px solid $light_border;
}
.ajax-load-more .cnkt-sidebar .cta.resources li:first-of-type a {
border: none;
@@ -2370,7 +2381,7 @@ span.cnkt-button.installed i,
.admin.ajax-load-more .row.unlimited.new {
/* New Row */
background: url('../../img/loader-unlimited.gif') no-repeat center center;
- border-color: #efefef !important;
+ border-color: $light_border !important;
min-height: 60px;
display: none;
}
@@ -2439,8 +2450,8 @@ span.cnkt-button.installed i,
opacity: 0.5;
cursor: default;
color: #333 !important;
- background: #efefef !important;
- border-color: #efefef !important;
+ background: $light_border !important;
+ border-color: $light_border !important;
i {
color: $grey;
}
@@ -2529,7 +2540,7 @@ span.cnkt-button.installed i,
hr {
margin: 32px 0 25px;
- border-top-color: #efefef;
+ border-top-color: $light_border;
border-bottom: none;
}
@@ -3341,7 +3352,7 @@ span.dismiss a {
text-align: center;
display: block;
background: $light_grey;
- border: 1px solid #efefef;
+ border: 1px solid $light_border;
padding: 15px;
margin: -5px 0 20px;
border-radius: 2px;
@@ -3722,7 +3733,7 @@ span.dismiss a {
display: block;
clear: both;
margin: 0;
- padding: 2px $gutter 0;
+ padding: 2px 0 0;
overflow: hidden;
position: relative;
top: 1px;
@@ -3805,7 +3816,7 @@ span.dismiss a {
@media screen and (max-width: 782px) {
.admin.ajax-load-more.settings .form-table th {
border: none;
- border-bottom: 1px solid $border;
+ border-bottom: 1px solid $light_border;
width: 100%;
}
.share-alm .sharing {
diff --git a/admin/src/scss/partials/_alm-tabbed-wrapper.scss b/admin/src/scss/partials/_alm-tabbed-wrapper.scss
index 6edbb03..cd2e22d 100644
--- a/admin/src/scss/partials/_alm-tabbed-wrapper.scss
+++ b/admin/src/scss/partials/_alm-tabbed-wrapper.scss
@@ -14,8 +14,8 @@
color: $grey;
font-weight: 700;
+ p {
- position: relative;
- top: -3px;
+ margin-top: -10px;
+ font-size: 14px;
}
}
diff --git a/admin/src/scss/partials/_header.scss b/admin/src/scss/partials/_header.scss
index 8c5a6e2..3068d5c 100644
--- a/admin/src/scss/partials/_header.scss
+++ b/admin/src/scss/partials/_header.scss
@@ -9,8 +9,12 @@
background: #fff url('../../img/alm-logo-48x48.svg') no-repeat $padding $padding;
font-size: 18px;
font-weight: 800;
- border-bottom: 1px solid $border;
+ border-bottom: 1px solid $light_border;
+ //border-bottom: 1px solid $border;
width: 100%;
+ @media screen and (max-width: 900px) {
+ border-bottom: 1px solid $border;
+ }
@media screen and (min-width: 768px) {
font-size: 21px;
}
@@ -46,6 +50,83 @@
top: 3px;
}
}
+
+ nav {
+ position: relative;
+ z-index: 2;
+ scroll-behavior: smooth;
+ background-color: #fff;
+ border-bottom: 1px solid $border;
+ padding: 0 5px 1px;
+ @media screen and (max-width: 900px) {
+ display: none;
+ }
+ ul {
+ display: flex;
+ flex-wrap: nowrap;
+ width: 100%;
+ overflow-x: auto;
+ overflow-y: hidden;
+ scroll-behavior: smooth;
+ -webkit-overflow-scrolling: touch;
+ white-space: nowrap;
+ margin-block: 0;
+ padding: 0 $padding_sm;
+
+ &::-webkit-scrollbar {
+ height: 6px;
+ width: 6px;
+ background: #fff;
+ }
+
+ &::-webkit-scrollbar-thumb:horizontal {
+ background: $border;
+ border-radius: 10px;
+ &:hover{
+ background-color: $border_hover;
+ }
+ }
+ .wp-submenu-head{
+ display: none;
+ }
+ li {
+ margin: 0;
+ padding: 0;
+ a{
+ display: block;
+ padding: $padding_sm 10px;
+ @media screen and (min-width: 1400px){
+ padding: $padding_sm;
+ }
+ white-space: nowrap;
+ color: $paragraph;
+ text-decoration: none;
+ &.current{
+ background-color: #fff;
+ color: #000;
+ font-weight: 600;
+ }
+ span{
+ border: none !important;
+ padding: 0 !important;
+ &.dashicons{
+ opacity: 0.35 !important;
+ display: none;
+ @media screen and (min-width: 1400px) {
+ display: inline-block;
+ }
+ }
+ }
+ &:hover,
+ &:focus{
+ background-color: #fff;
+ color: $grey;
+ }
+ }
+ }
+ }
+ }
+
.notice {
margin: $padding;
}
diff --git a/admin/src/scss/partials/_select2.scss b/admin/src/scss/partials/_select2.scss
index 42dbe41..530c239 100644
--- a/admin/src/scss/partials/_select2.scss
+++ b/admin/src/scss/partials/_select2.scss
@@ -22,7 +22,7 @@
box-shadow: 0 0 0 1px #ccc;
}
.select2-results .select2-result.alm-color.light-grey .select2-result-label:after {
- background-color: #efefef;
+ background-color: $light_border;
box-shadow: 0 0 0 1px #ccc;
}
.select2-results .select2-result.alm-color.blue .select2-result-label:after {
diff --git a/admin/src/scss/partials/_sidebar.scss b/admin/src/scss/partials/_sidebar.scss
index 1553f9a..48acd3a 100644
--- a/admin/src/scss/partials/_sidebar.scss
+++ b/admin/src/scss/partials/_sidebar.scss
@@ -1,7 +1,7 @@
.ajax-load-more .cnkt-sidebar {
width: 30%;
float: right;
- padding: $padding;
+ padding: $padding_lg $padding $padding;
position: absolute;
right: 0;
top: 0;
@@ -17,6 +17,10 @@
box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.025);
background: $light_grey;
border-radius: 0 0 2px 2px;
+ display: flex;
+ flex-wrap: wrap;
+ gap: 10px;
+ width: 100%;
i {
opacity: 0.4;
margin: 0 2px 0 0;
diff --git a/admin/src/scss/partials/_woocommerce.scss b/admin/src/scss/partials/_woocommerce.scss
index 003f92d..50a56c9 100644
--- a/admin/src/scss/partials/_woocommerce.scss
+++ b/admin/src/scss/partials/_woocommerce.scss
@@ -8,12 +8,12 @@
align-items: center;
padding-top: 20px;
margin-top: 20px;
- border-top: 1px solid #efefef;
+ border-top: 1px solid $light_border;
div{
flex: 1;
padding: 20px 20px 20px 30px;
@media screen and (max-width: 600px){
- padding: 20px 0;
+ padding: 20px 0;
}
}
.img{
@@ -24,10 +24,10 @@
display: none;
}
img{
- border: 1px solid #efefef;
+ border: 1px solid $light_border;
padding: 2px;
border-radius: 4px;
}
}
}
-}
\ No newline at end of file
+}
diff --git a/admin/views/add-ons.php b/admin/views/add-ons.php
index 1b575f0..eeba862 100755
--- a/admin/views/add-ons.php
+++ b/admin/views/add-ons.php
@@ -1,67 +1,72 @@
diff --git a/admin/views/extensions.php b/admin/views/extensions.php
index 6d932e7..754ac80 100755
--- a/admin/views/extensions.php
+++ b/admin/views/extensions.php
@@ -1,45 +1,46 @@
-
-
-
-
-
-
- 'ajax-load-more-for-acf',
- ),
- array(
- 'slug' => 'ajax-load-more-for-relevanssi',
- ),
- array(
- 'slug' => 'ajax-load-more-rest-api'
- ),
- array(
- 'slug' => 'ajax-load-more-for-searchwp'
- ),
- array(
- 'slug' => 'ajax-load-more-for-terms'
- )
- );
- if(class_exists('Connekt_Plugin_Installer')){
- Connekt_Plugin_Installer::init($plugin_array);
- }
- ?>
-
-
plugin dashboard.', 'ajax-load-more'); ?>
-
-
-
-
-
-
+
+
+
+
+
+
+ 'ajax-load-more-for-acf',
+ ),
+ array(
+ 'slug' => 'ajax-load-more-for-relevanssi',
+ ),
+ array(
+ 'slug' => 'ajax-load-more-rest-api',
+ ),
+ array(
+ 'slug' => 'ajax-load-more-for-searchwp',
+ ),
+ array(
+ 'slug' => 'ajax-load-more-for-terms',
+ ),
+ );
+ if ( class_exists( 'Connekt_Plugin_Installer' ) ) {
+ Connekt_Plugin_Installer::init( $plugin_array );
+ }
+ ?>
+
+
+
plugin dashboard.', 'ajax-load-more' ); ?>
+
+
+
+
+
+
diff --git a/admin/views/licenses.php b/admin/views/licenses.php
index 1a2c5e4..7c1ffb7 100755
--- a/admin/views/licenses.php
+++ b/admin/views/licenses.php
@@ -13,7 +13,7 @@
-
+
-
+
-
-
+ // No add-ons installed.
+ if ( $addon_count === 0 ) :
+ ?>
| |
diff --git a/admin/views/settings.php b/admin/views/settings.php
index 5a1dcaa..6f3b403 100755
--- a/admin/views/settings.php
+++ b/admin/views/settings.php
@@ -91,7 +91,6 @@