Plugin Directory

Changeset 2578699


Ignore:
Timestamp:
08/05/2021 11:44:02 AM (5 years ago)
Author:
essamamdani
Message:

1.0.2

  • New: Provides Free Blocks to Users
  • New: Fixed Blocks Categories
Location:
blocks-bakery
Files:
301 added
4 edited

Legend:

Unmodified
Added
Removed
  • blocks-bakery/tags/1.0.1/blocks-bakery.php

    r2578090 r2578699  
    33 * Plugin Name: Blocks Bakery
    44 * Plugin  URI: https://www.blocksbakery.com
    5  * Description: Enhance the blocksbakery editor with complex and powerful blocks that will help you quickly create web pages. We offer you a bunch of blocks from Blocks bakery, and you can select one according to the requirements. Each block will provide you many customization options; you can design web pages using those options. 
     5 * Description: Enhance the blocksbakery editor with complex and powerful blocks that will help you quickly create web pages. We offer you a bunch of blocks from Blocks bakery, and you can select one according to the requirements. Each block will provide you many customization options; you can design web pages using those options.
    66 * Author: Essa Mamdani
    77 * Author URI: https://www.essamamdani.com
     
    1010 * Domain Path:       /languages languages folder path
    1111 */
    12 if ( ! defined( 'ABSPATH' ) ) {
    13     exit;
     12if (! defined('ABSPATH')) {
     13    exit;
    1414}
     15define('BB__PLUGIN_DIR', plugin_dir_path(__FILE__));
    1516
    1617if (function_exists('gb_fs_init')) {
     
    3031
    3132                // Include Freemius SDK.
    32                 require_once dirname(__FILE__) . '/freemius/start.php';
     33                require_once BB__PLUGIN_DIR . '/freemius/start.php';
    3334
    3435                $gb_fs_init = fs_dynamic_init(array(
     
    6465        do_action('gb_fs_init_loaded');
    6566
    66 
    67 
    68 
    69 
    7067        if (gb_fs_init()->is__premium_only()) {
    71            
    7268            if (gb_fs_init()->is_plan('pro', true)) {
    7369                foreach (glob(plugin_dir_path(__FILE__) . 'blocks/{,*/,*/*/,*/*/*/}*.php', GLOB_BRACE) as $file) {
     
    7672                }
    7773            } elseif (gb_fs_init()->is_plan('basic')) {
    78        
    7974                // ... logic related to Business plan and higher plans ...
    8075                foreach (glob(plugin_dir_path(__FILE__) . 'blocks/{,*/,*/*/,*/*/*/}*.php', GLOB_BRACE) as $file) {
     
    8277                    include_once $file;
    8378                }
    84             } elseif (gb_fs_init()->is_plan('free')) {
    85                 include_once 'blocks\advanced-heading\advanced-heading.php';
    86                 include_once 'blocks\call-to-action\call-to-action.php';
    87                 include_once 'blocks\info-box\info-box.php';
    88                 include_once 'blocks\marketing-button\block-qoute.php';       
     79            } elseif (gb_fs_init()->is_not_paying()) {
     80                include_once BB__PLUGIN_DIR .'blocks/advanced-heading/advanced-heading.php';
     81                include_once BB__PLUGIN_DIR .'blocks/call-to-action/call-to-action.php';
     82                include_once BB__PLUGIN_DIR .'blocks/info-box/info-box.php';
     83                include_once BB__PLUGIN_DIR .'blocks/block-quote/block-quote.php';
    8984            }
    90         } 
     85        }
    9186    }
    9287}
    9388
    94 add_action('block_categories',function($categories){
    95     // die;
    96     $category_slugs = wp_list_pluck($categories,'slug');
    97     $d = in_array('blocks-bakery',$categories, true) ? $categories : array_merge($categories,array(array(
    98         'slug'=>'blocks-bakery',
    99         'title'=> __('Blocks Bakery','blocks-bakery'),
    100         'icon'=>NULL
    101     )));
    102     // var_dump($d);die;
    103     return $d;
     89add_action('block_categories_all', function ($categories) {
     90    // die;
     91    $category_slugs = wp_list_pluck($categories, 'slug');
     92    $d = in_array('blocks-bakery', $categories, true) ? $categories : array_merge($categories, array(array(
     93        'slug'=>'blocks-bakery',
     94        'title'=> __('Blocks Bakery', 'blocks-bakery'),
     95        'icon'=>null
     96    )));
     97    // var_dump($d);die;
     98    return $d;
    10499});
    105 
    106 
    107 
    108 
    109 
    110 
    111 
  • blocks-bakery/trunk/README.md

    r2578090 r2578699  
    99 * Requires at least: 5.7
    1010 * Tested up to: 5.8
    11  * Stable tag: 1.0.1
     11 * Stable tag: 1.0.2
    1212 * Requires PHP: 5.6
    1313 * License: GPLv2 or later
  • blocks-bakery/trunk/blocks-bakery.php

    r2578094 r2578699  
    33 * Plugin Name: Blocks Bakery
    44 * Plugin  URI: https://www.blocksbakery.com
    5  * Description: Enhance the blocksbakery editor with complex and powerful blocks that will help you quickly create web pages. We offer you a bunch of blocks from Blocks bakery, and you can select one according to the requirements. Each block will provide you many customization options; you can design web pages using those options. 
     5 * Description: Enhance the blocksbakery editor with complex and powerful blocks that will help you quickly create web pages. We offer you a bunch of blocks from Blocks bakery, and you can select one according to the requirements. Each block will provide you many customization options; you can design web pages using those options.
    66 * Author: Essa Mamdani
    77 * Author URI: https://www.essamamdani.com
    8  * Version: 1.0.1
     8 * Version: 1.0.2
    99 * Text Domain:       blocks-bakery
    1010 * Domain Path:       /languages languages folder path
    1111 */
    12 if ( ! defined( 'ABSPATH' ) ) {
    13     exit;
     12if (! defined('ABSPATH')) {
     13    exit;
    1414}
     15define('BB__PLUGIN_DIR', plugin_dir_path(__FILE__));
    1516
    1617if (function_exists('gb_fs_init')) {
     
    3031
    3132                // Include Freemius SDK.
    32                 require_once dirname(__FILE__) . '/freemius/start.php';
     33                require_once BB__PLUGIN_DIR . '/freemius/start.php';
    3334
    3435                $gb_fs_init = fs_dynamic_init(array(
     
    6465        do_action('gb_fs_init_loaded');
    6566
    66 
    67 
    68 
    69 
    7067        if (gb_fs_init()->is__premium_only()) {
    71            
    7268            if (gb_fs_init()->is_plan('pro', true)) {
    7369                foreach (glob(plugin_dir_path(__FILE__) . 'blocks/{,*/,*/*/,*/*/*/}*.php', GLOB_BRACE) as $file) {
     
    7672                }
    7773            } elseif (gb_fs_init()->is_plan('basic')) {
    78        
    7974                // ... logic related to Business plan and higher plans ...
    8075                foreach (glob(plugin_dir_path(__FILE__) . 'blocks/{,*/,*/*/,*/*/*/}*.php', GLOB_BRACE) as $file) {
     
    8277                    include_once $file;
    8378                }
    84             } elseif (gb_fs_init()->is_plan('free')) {
    85                 include_once 'blocks\advanced-heading\advanced-heading.php';
    86                 include_once 'blocks\call-to-action\call-to-action.php';
    87                 include_once 'blocks\info-box\info-box.php';
    88                 include_once 'blocks\marketing-button\block-qoute.php';       
     79            } elseif (gb_fs_init()->is_not_paying()) {
     80                include_once BB__PLUGIN_DIR .'blocks/advanced-heading/advanced-heading.php';
     81                include_once BB__PLUGIN_DIR .'blocks/call-to-action/call-to-action.php';
     82                include_once BB__PLUGIN_DIR .'blocks/info-box/info-box.php';
     83                include_once BB__PLUGIN_DIR .'blocks/block-quote/block-quote.php';
    8984            }
    90         } 
     85        }
    9186    }
    9287}
    9388
    94 add_action('block_categories',function($categories){
    95     // die;
    96     $category_slugs = wp_list_pluck($categories,'slug');
    97     $d = in_array('blocks-bakery',$categories, true) ? $categories : array_merge($categories,array(array(
    98         'slug'=>'blocks-bakery',
    99         'title'=> __('Blocks Bakery','blocks-bakery'),
    100         'icon'=>NULL
    101     )));
    102     // var_dump($d);die;
    103     return $d;
     89add_action('block_categories_all', function ($categories) {
     90    // die;
     91    $category_slugs = wp_list_pluck($categories, 'slug');
     92    $d = in_array('blocks-bakery', $categories, true) ? $categories : array_merge($categories, array(array(
     93        'slug'=>'blocks-bakery',
     94        'title'=> __('Blocks Bakery', 'blocks-bakery'),
     95        'icon'=>null
     96    )));
     97    // var_dump($d);die;
     98    return $d;
    10499});
    105 
    106 
    107 
    108 
    109 
    110 
    111 
  • blocks-bakery/trunk/readme.txt

    r2578038 r2578699  
    66Tags: blocks,block,gutenberg,gutenberg blocks,wordpress blockstemplates, page builder, section, google maps, mailchimp
    77Tested up to: 5.8
    8 Stable tag: 4.3
     8Stable tag: 1.0.2
    99Requires PHP: 7.0
    1010
     
    8888== Changelog ==
    8989
     90= 1.0.2 =
     91* New: Provides Free Blocks to Users
     92* New: Fixed Blocks Categories
     93
    9094= 1.0.1 =
    9195* New: Section
Note: See TracChangeset for help on using the changeset viewer.