Plugin Directory

Changeset 3300645


Ignore:
Timestamp:
05/26/2025 11:54:21 AM (9 months ago)
Author:
bricksable
Message:

version 1.6.79

Location:
bricksable
Files:
172 added
6 edited

Legend:

Unmodified
Added
Removed
  • bricksable/trunk/assets/css/admin.min.css

    r3100248 r3300645  
    1 #bricksable_settings table{max-width:960px;margin:40px 20px 30px;line-height:1.7;border-spacing:0;border:1px solid #ddd}#bricksable_settings tr{border-bottom:1px solid #ddd}#bricksable_settings tr:last-child{border-bottom:0}#bricksable_settings th{padding:15px 20px;font-weight:700;line-height:1.7;text-align:initial;vertical-align:initial;background-color:#fff;border-right:1px solid #ddd;font-size:14px;cursor:default}#bricksable_settings td{padding:20px 30px;text-align:initial;background-color:#fff}#bricksable_settings .description{margin:.5em 0 0;font-style:normal;color:#9e9e9e;font-size:13px}#bricksable_settings form>h2{display:none}#bricksable_settings input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;height:16px;width:26px;margin:0 4px 0 0;padding:0;background-color:#e1e3e8;border:none;border-radius:16px;outline:0;box-shadow:none}#bricksable_settings input[type=checkbox]:before{display:block;position:relative;top:2px;left:2px;margin:0;content:"";opacity:.5;cursor:pointer;width:12px;height:12px;border-radius:12px;background-color:#fff;-webkit-appearance:none;transition:.2s ease-out}#bricksable_settings input[type=checkbox]:checked:before{content:"";left:0;opacity:1;transform:translateX(100%)}#bricksable_settings input[type=checkbox]:checked{background-color:#2271b1}
     1#bricksable_settings table{margin:40px 20px 30px;line-height:1.7;border-spacing:0;border:1px solid #ddd}#bricksable_settings tr{border-bottom:1px solid #ddd}#bricksable_settings tr:last-child{border-bottom:0}#bricksable_settings th{padding:15px 20px;font-weight:700;line-height:1.7;text-align:initial;vertical-align:initial;background-color:#fff;border-right:1px solid #ddd;font-size:14px;cursor:default}#bricksable_settings td{padding:20px 30px;text-align:initial;background-color:#fff}#bricksable_settings .description{margin:.5em 0 0;font-style:normal;color:#9e9e9e;font-size:13px}#bricksable_settings form>h2{display:none}#bricksable_settings input[type=checkbox]{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;height:16px;width:26px;margin:0 4px 0 0;padding:0;background-color:#e1e3e8;border:none;border-radius:16px;outline:none;box-shadow:none}#bricksable_settings input[type=checkbox]:before{display:block;position:relative;top:2px;left:2px;margin:0;content:"";opacity:.5;cursor:pointer;width:12px;height:12px;border-radius:12px;background-color:#fff;transition-duration:.1s;-webkit-appearance:none;transition:all .2s ease-out}#bricksable_settings input[type=checkbox]:checked:before{content:"";left:0;opacity:1;transform:translateX(100%)}#bricksable_settings input[type=checkbox]:checked{background-color:#2271b1}#bricksable_settings .nav-content-wrapper{display:flex;column-gap:30px}#bricksable_settings .nav-content-wrapper form{flex-basis:80%}#bricksable_settings .nav-content-wrapper .sidebar{flex-basis:20%}#bricksable_settings .nav-content-wrapper .sidebar>.column-1{background-color:#fff;margin:40px 20px 30px;line-height:0;border-spacing:0;border:1px solid #ddd}#bricksable_settings .nav-content-wrapper .sidebar img{height:auto;max-width:100%;width:100%;outline:none;vertical-align:middle}@media (max-width:991px){#bricksable_settings .nav-content-wrapper{flex-direction:column}#bricksable_settings .nav-content-wrapper form,#bricksable_settings .nav-content-wrapper .sidebar{flex-basis:auto}#bricksable_settings table,#bricksable_settings .nav-content-wrapper .sidebar>.column-1{margin:40px 0 0}}
  • bricksable/trunk/bricksable.php

    r3290196 r3300645  
    22/**
    33 * Plugin Name: Bricksable
    4  * Version: 1.6.78
     4 * Version: 1.6.79
    55 * Plugin URI: https://bricksable.com/
    66 * Description: Elevate your website game with the Bricksable collection of premium elements for Bricks Builder. Designed to speed up your workflow, our customizable and fully responsive elements will take your website to the next level in no time.
     
    3838require_once 'includes/lib/class-bricksable-post-type.php';
    3939require_once 'includes/lib/class-bricksable-taxonomy.php';
     40require_once 'includes/lib/class-persist-admin-notices-dismissal.php';
    4041
    4142/**
     
    4647 */
    4748function bricksable() {
    48     $instance = Bricksable::instance( __FILE__, '1.6.78' );
     49    $instance = Bricksable::instance( __FILE__, '1.6.79' );
     50    define( 'BRICKSABLE_PLUGIN_ASSET_URL', plugins_url( '/assets', __FILE__ ) );
    4951
    5052    if ( is_null( $instance->settings ) ) {
  • bricksable/trunk/includes/class-bricksable-helper.php

    r3115991 r3300645  
    1414 * A helper class to get certain function.
    1515 */
    16 class Bricksable_Helpers {
     16if ( ! class_exists( 'Bricksable\Classes\Bricksable_Helpers' ) ) {
     17    /**
     18     * Class Bricksable_Helpers
     19     *
     20     * @since1.6.79
     21     */
     22    if ( ! class_exists( 'Bricksable_Helpers' ) ) {
     23        /**
     24         * Class Bricksable_Helpers
     25         *
     26         * @since 1.6.79
     27         */
     28        class Bricksable_Helpers {
    1729
    18     /**
    19      * Get Bricks Templates
    20      *
    21      * @param string $exclude_template_id Bricks Template ID.
    22      * @return array
    23      * @since 1.2.5
    24      */
    25     public static function get_templates_list( $exclude_template_id = '' ) {
    26         $templates = get_posts(
    27             array(
    28                 'post_type'      => BRICKS_DB_TEMPLATE_SLUG,
    29                 'posts_per_page' => -1,
    30                 'meta_query'     => array(
     30            /**
     31             * Get Bricks Templates
     32             *
     33             * @param string $exclude_template_id Bricks Template ID.
     34             * @return array
     35             * @since 1.2.5
     36             */
     37            public static function get_templates_list( $exclude_template_id = '' ) {
     38                $templates = get_posts(
    3139                    array(
    32                         'key'   => BRICKS_DB_TEMPLATE_TYPE,
    33                         'value' => array( 'section', 'content' ),
    34                     ),
    35                 ),
    36                 'post_status'    => 'publish',
    37             )
    38         );
     40                        'post_type'      => BRICKS_DB_TEMPLATE_SLUG,
     41                        'posts_per_page' => -1,
     42                        'meta_query'     => array(
     43                            array(
     44                                'key'   => BRICKS_DB_TEMPLATE_TYPE,
     45                                'value' => array( 'section', 'content' ),
     46                            ),
     47                        ),
     48                        'post_status'    => 'publish',
     49                    )
     50                );
    3951
    40         $list = array();
     52                $list = array();
    4153
    42         foreach ( $templates as $template ) {
    43             if ( $exclude_template_id === $template->ID ) {
    44                 continue;
     54                foreach ( $templates as $template ) {
     55                    if ( $exclude_template_id === $template->ID ) {
     56                        continue;
     57                    }
     58
     59                    $list[ $template->ID ] = $template->post_title;
     60                }
     61
     62                return $list;
    4563            }
    46 
    47             $list[ $template->ID ] = $template->post_title;
    4864        }
    49 
    50         return $list;
    5165    }
    5266}
  • bricksable/trunk/includes/class-bricksable-settings.php

    r3277336 r3300645  
    526526        }
    527527
     528            $html .= '<div class="nav-content-wrapper">' . "\n";
     529
    528530            $html .= '<form method="post" action="options.php" enctype="multipart/form-data">' . "\n";
    529531
     
    534536                $html .= ob_get_clean();
    535537
    536                 $html     .= '<p class="submit">' . "\n";
    537                     $html .= '<input type="hidden" name="tab" value="' . esc_attr( $tab ) . '" />' . "\n";
    538                     $html .= '<input name="Submit" type="submit" class="button-primary" value="' . esc_attr( __( 'Save Settings', 'bricksable' ) ) . '" />' . "\n";
    539                 $html     .= '</p>' . "\n";
    540             $html         .= '</form>' . "\n";
    541         $html             .= '</div>' . "\n";
     538                $html                  .= '<p class="submit">' . "\n";
     539                    $html              .= '<input type="hidden" name="tab" value="' . esc_attr( $tab ) . '" />' . "\n";
     540                    $html              .= '<input name="Submit" type="submit" class="button-primary" value="' . esc_attr( __( 'Save Settings', 'bricksable' ) ) . '" />' . "\n";
     541                $html                  .= '</p>' . "\n";
     542            $html                      .= '</form>' . "\n";
     543                    $html              .= '<div class="sidebar">' . "\n";
     544                    $bricksable_pro_img = esc_url( BRICKSABLE_PLUGIN_ASSET_URL . '/img/bricksable_pro.png' );
     545                    $html              .= '<div class="column-1"><a href="' . esc_url( 'https://bricksable.com/pro-is-coming-soon/' ) . '" target="_blank"><img src=' . $bricksable_pro_img . '></a>' . "\n";
     546                            $html      .= '</div>' . "\n";
     547        $html                          .= '</div>' . "\n";
     548
     549        $html .= '</div>' . "\n";
     550        $html .= '</div>' . "\n";
    542551
    543552        echo wp_kses( $html, $this->allowed_htmls );
  • bricksable/trunk/includes/class-bricksable.php

    r3270031 r3300645  
    146146        add_action( 'init', array( $this, 'load_plugin_textdomain' ), 0 );
    147147        add_action( 'init', array( $this, 'load_localisation' ), 0 );
     148
     149        // Persist Admin notice Dismissals.
     150        add_action( 'admin_init', array( 'Bricksable_PAnD', 'init' ) );
     151        add_action( 'admin_notices', array( $this, 'bricksable_pro__version' ) );
    148152    } // End __construct ()
    149153
     
    456460        return $elements;
    457461    }
     462
     463    /**
     464     * Persist Admin notice Dismissals
     465     */
     466    public function bricksable_pro__version() {
     467        if ( ! Bricksable_PAnD::is_admin_notice_active( 'notice-bricksable-pro-coming' ) ) {
     468            return;
     469        }
     470        if ( file_exists( WP_PLUGIN_DIR . '/bricksable-pro/bricksable-pro.php' ) ) {
     471            // Check if the bricksable plugin is active.
     472            if ( is_plugin_active( 'bricksable-pro/bricksable-pro.php' ) ) {
     473                return;
     474            }
     475        }
     476        ?>
     477        <div data-dismissible="notice-bricksable-pro-coming" class="notice notice-info is-dismissible">
     478            <p><?php esc_html_e( 'Bricksable Pro Is Coming Soon! We’re incredibly grateful to have nearly 10,000 sites using Bricksable — and that trust means the world to us. Even in its free version, Bricksable has made an impact… and now, it’s time to shine like a diamond..', 'bricksable' ); ?></p>
     479            <p><a href="https://bricksable.com/pro-is-coming-soon/" target="_blank" class="button-primary"><?php esc_html_e( 'Join the waitlist for Bricksable Pro!', 'bricksable' ); ?></a></p>
     480        </div>
     481        <?php
     482    }
    458483}
  • bricksable/trunk/readme.txt

    r3290196 r3300645  
    44Requires at least: 5.6
    55Tested up to: 6.8
    6 Stable tag: 1.6.78
     6Stable tag: 1.6.79
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    9595
    9696== Changelog ==
     97= 1.6.79 (2025-05-21) =
     98* Add: Compatibility with Bricksable Pro to avoid conflicts with the Lite version.
     99
    97100= 1.6.78 (2025-05-09) =
    98101* Add: Dynamic Options (Query Loop) to Icon List Element.
Note: See TracChangeset for help on using the changeset viewer.