Plugin Directory

Changeset 3298789


Ignore:
Timestamp:
05/22/2025 12:48:58 PM (7 months ago)
Author:
numeeja
Message:

version 1.4.0

Location:
cubecolour-caboodle
Files:
158 added
7 edited

Legend:

Unmodified
Added
Removed
  • cubecolour-caboodle/trunk/cubecolour-caboodle.php

    r3286967 r3298789  
    55Description: An agglomeration of useful functions
    66Author: cubecolour
    7 Version: 1.3.3
     7Version: 1.4.0
    88License: GPLv2 or later
    99Text Domain: cubecolour-caboodle
     
    2424this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
    2525St, Fifth Floor, Boston, MA 02110-1301 USA
    26 
    2726*/
    2827
     
    4342 *
    4443 */
    45 define( 'CC_CABOODLE_PLUGIN_VERSION', '1.3.3' );
     44define( 'CC_CABOODLE_PLUGIN_VERSION', '1.4.0' );
    4645define( 'CC_CABOODLE_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
    4746define( 'CC_CABOODLE_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
     
    5150 * For testing and/or troubeshooting, uncomment the delete option line below
    5251 * On page load this will delete the cc_caboodle option containing the serialized settings
    53  * After deleting the option, deactivate and activate the plugin to add back the option with default settings
     52 * After deleting the option, comment the line then deactivate and activate the plugin to add back the option with default/initial settings
    5453 *
    5554 */
     
    585584
    586585/**
    587  * Polylang tweaks
    588  *
    589  */
    590 if ( cc_caboodle( 'polylang', '' ) == '1' ) {
    591     include_once( CC_CABOODLE_PLUGIN_PATH . 'includes/modules/polylang.php' );
    592 }
    593 
    594 /**
    595  * Gravity forms tweaks
    596  *
    597  */
    598 include_once( CC_CABOODLE_PLUGIN_PATH . 'includes/modules/gform-style.php' );
    599 
    600 /**
    601586 * Embed bandcamp
    602587 *
  • cubecolour-caboodle/trunk/includes/initial-values.php

    r3286967 r3298789  
    3737        'extlink_vpos'                  => 1,
    3838        'force_scrollbar'               => '',
    39         'gform'                         => '',
    40         'gform_border_color'            => '#c6c6c6',
    41         'gform_border_color_focus'      => '#969696',
    42         'gform_border_color_hover'      => '#e91e63',
    4339        'lightbox'                      => '',
    4440        'limit_revisions'               => '',
     
    8884        'passvis_salt'                  => cc_caboodle_passvis_random_hex(),
    8985        'password_mask'                 => '',
    90         'polylang'                      => '',
    91         'polylang_flag_grayscale'       => 80,
    92         'polylang_flag_opacity'         => 60,
    93         'polylang_flag_spacing'         => 0,
    94         'polylang_flag_width'           => 36,
    9586        'posts'                         => '',
    9687        'private_site'                  => '',
  • cubecolour-caboodle/trunk/includes/modules/login-bg.php

    r3290107 r3298789  
    1616
    1717    $login_style = 'html, body {
    18     height: 101%;
    19     background: linear-gradient( to right, ' . sanitize_hex_color( $color_1 ) . ' calc( 50% - 190px ), ' . sanitize_hex_color( $color_2 ) . ' 0, ' . sanitize_hex_color( $color_2 ) . ' calc( 50% + 190px ), ' . sanitize_hex_color( $color_1 ) . ' 0 );
    20 }
    21 #login h1 {
    22     margin-top: 3em;
    23 }
    24 ';
     18height: 101%; background: linear-gradient( to right, ' . sanitize_hex_color( $color_1 ) . ' calc( 50% - 190px ), ' . sanitize_hex_color( $color_2 ) . ' 0, ' . sanitize_hex_color( $color_2 ) . ' calc( 50% + 190px ), ' . sanitize_hex_color( $color_1 ) . ' 0 ); }
     19#login h1 { margin-top: 3em; }';
    2520
    26     $login_style .= '#loginform p label,
    27 .user-pass-wrap label, #nav a.wp-login-lost-password, #login #backtoblog a, #login .privacy-policy-page-link .privacy-policy-link {
    28     color: ' . sanitize_hex_color( $color_txt ) . ';
    29     text-decoration: none;
    30 }
    31 ';
     21    $login_style .= '#loginform p label, .user-pass-wrap label,#nav a.wp-login-lost-password,#login #backtoblog a,#login .privacy-policy-page-link .privacy-policy-link {color: ' . sanitize_hex_color( $color_txt ) . '; text-decoration: none;}';
     22   
    3223
    3324    if ( cc_caboodle( 'login_bg_borderless', false ) ) {   
    34         $login_style .= '#loginform {
    35     border: 0;
    36     background-color: transparent;
    37     box-shadow: none;
    38 } #nav, #backtoblog {
    39     text-align: center;
    40 }
    41 .login form {
    42     padding: 0;
    43 } #wp-submit {
    44     overflow: visible;margin: 0 3px 3px 0;
    45 }
    46 ';
     25        $login_style .= '#loginform { border: 0; background-color: transparent; box-shadow: none; } #nav, #backtoblog { text-align: center; } .login form {padding: 0;} #wp-submit{overflow: visible;margin: 0 3px 3px 0;}';
    4726    } else {
    48         $login_style .= '#loginform {
    49     background-color: rgba( 255,255,255,0.33 ), margin: 0;
    50 }
    51 ';
    52     }
    53 
    54     if ( is_plugin_active( 'sg-security/sg-security.php' ) ) {
    55 $login_style .= 'form[name=sgs2fa_form] {
    56     margin: 0 20px;
    57     overflow: visible;
    58 }';
     27        $login_style .= '#loginform { background-color: rgba(255,255,255,0.33);}';
    5928    }
    6029
     
    8453        }
    8554   
    86         $login_style .= '.login h1 a {
    87     background-image: url(' . $logo_url . ');
    88     background-size: contain;width: 100%;
    89     height: ' . absint( $display_height ) . 'px;
    90 }';
     55        $login_style .= '.login h1 a {background-image: url(' . $logo_url . ');background-size: contain;width: 100%;height: ' . absint( $display_height ) . 'px;}';
    9156    }   
    9257   
  • cubecolour-caboodle/trunk/includes/modules/login-error-message.php

    r3286967 r3298789  
    1515    } else {
    1616   
    17         $login_error_message = esc_html__( cc_caboodle( 'login_error_message' ) );
     17        $login_error_message = esc_html( cc_caboodle( 'login_error_message' ) );
    1818   
    1919    }
  • cubecolour-caboodle/trunk/includes/modules/login-warning.php

    r3286967 r3298789  
    2626    } else {
    2727   
    28         $login_warning_heading = esc_html__( cc_caboodle( 'login_warning_heading' ) );
    29         $login_warning_text = esc_html__( cc_caboodle( 'login_warning_text') );
     28        $login_warning_heading = esc_html( cc_caboodle( 'login_warning_heading' ) );
     29        $login_warning_text = esc_html( cc_caboodle( 'login_warning_text') );
    3030   
    3131    }
  • cubecolour-caboodle/trunk/includes/modules/replace-wp-logo-with-site-icon.php

    r3224946 r3298789  
    22
    33if ( ! defined( 'ABSPATH' ) ) exit;
     4
     5/**
     6 * Remove the WP logo & its child links from the admin bar
     7 *
     8 */
     9function cc_caboodle_admin_bar_remove_logo() {
     10    global $wp_admin_bar;
     11    $wp_admin_bar->remove_menu( 'wp-logo' );
     12}
     13add_action( 'wp_before_admin_bar_render', 'cc_caboodle_admin_bar_remove_logo', 0 );
     14
    415
    516/**
     
    1223   
    1324    if ( $site_icon_url ) {
    14         $siteicon_css = '#wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
     25        $siteicon_css = '#wpadminbar #wp-admin-bar-site-name > .ab-item:before {
    1526                background-image: url("' . $site_icon_url . '") !important;
    16                 background-position: 0 0;
     27                background-position: 0 5px;
    1728                background-size: 20px 20px;
     29                background-repeat: no-repeat;
    1830                color: rgba(0, 0, 0, 0);
     31               
    1932            }
    20             #wpadminbar #wp-admin-bar-wp-logo.hover > .ab-item .ab-icon {
     33            #wpadminbar #wp-admin-bar-site-name.hover > .ab-item {
    2134                background-position: 0 0;
    2235            }';
  • cubecolour-caboodle/trunk/readme.txt

    r3286965 r3298789  
    44Requires: 6.0
    55Tested up to: 6.8
    6 Stable tag: 1.3.3
     6Stable tag: 1.4
    77Donate link: https://cubecolour.co.uk/wp
    88Requires PHP: 7.4
     
    190190Set custom responsive breakpoints *(for Astra theme only)*
    191191
    192 ### Polylang SVG flags
    193 Only available when the Polylang plugin is active on the site. Provides scalable vector graphics for flags in the language switcher
    194 
    195 ### Gravity forms
    196 Only available when the Gravity forms plugin is active on the site. Add basic styles to forms created with Gravity Forms
    197 
    198192## FAQ
    199193
     
    238232
    239233## Changelog
     234
     235### 1.4.0
     236
     237* Remove 'Gravity forms' module
     238* Remove 'Polylang' module
     239* 'Replace WP logo' module now removes the WP link and replaces the home icon with the site icon.
    240240
    241241### 1.3.3
Note: See TracChangeset for help on using the changeset viewer.