Changeset 2751380 for smart-blocks
- Timestamp:
- 07/04/2022 05:07:17 AM (3 years ago)
- Location:
- smart-blocks
- Files:
-
- 51 added
- 5 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/build (added)
-
tags/1.0.1/build/index.asset.php (added)
-
tags/1.0.1/build/index.js (added)
-
tags/1.0.1/inc (added)
-
tags/1.0.1/inc/assets (added)
-
tags/1.0.1/inc/assets/css (added)
-
tags/1.0.1/inc/assets/css/editor.css (added)
-
tags/1.0.1/inc/assets/css/fonts (added)
-
tags/1.0.1/inc/assets/css/fonts/materialdesignicons (added)
-
tags/1.0.1/inc/assets/css/fonts/materialdesignicons/materialdesignicons.woff (added)
-
tags/1.0.1/inc/assets/css/fonts/materialdesignicons/materialdesignicons.woff2 (added)
-
tags/1.0.1/inc/assets/css/materialdesignicons.css (added)
-
tags/1.0.1/inc/assets/css/owl.carousel.css (added)
-
tags/1.0.1/inc/assets/css/sb-style.css (added)
-
tags/1.0.1/inc/assets/js (added)
-
tags/1.0.1/inc/assets/js/owl.carousel.js (added)
-
tags/1.0.1/inc/assets/js/sb-script.js (added)
-
tags/1.0.1/inc/blocks (added)
-
tags/1.0.1/inc/blocks/attributes.php (added)
-
tags/1.0.1/inc/blocks/blocks-manager.php (added)
-
tags/1.0.1/inc/blocks/blocks-render.php (added)
-
tags/1.0.1/inc/blocks/modules (added)
-
tags/1.0.1/inc/blocks/modules/carousel-module-one.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-eight.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-eleven.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-fifteen.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-five.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-four.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-fourteen.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-nine.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-one.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-seven.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-six.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-ten.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-thirteen.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-three.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-twelve.php (added)
-
tags/1.0.1/inc/blocks/modules/news-module-two.php (added)
-
tags/1.0.1/inc/blocks/modules/single-news-one.php (added)
-
tags/1.0.1/inc/blocks/modules/single-news-two.php (added)
-
tags/1.0.1/inc/blocks/modules/ticker-module.php (added)
-
tags/1.0.1/inc/blocks/modules/tile-module-one.php (added)
-
tags/1.0.1/inc/blocks/modules/tile-module-three.php (added)
-
tags/1.0.1/inc/blocks/modules/tile-module-two.php (added)
-
tags/1.0.1/inc/generate-css.php (added)
-
tags/1.0.1/inc/helper-functions.php (added)
-
tags/1.0.1/languages (added)
-
tags/1.0.1/languages/smart-blocks.pot (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/smart-blocks.php (added)
-
trunk/inc/assets/css/sb-style.css (modified) (9 diffs)
-
trunk/inc/blocks/blocks-manager.php (modified) (1 diff)
-
trunk/inc/generate-css.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/smart-blocks.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
smart-blocks/trunk/inc/assets/css/sb-style.css
r2750648 r2751380 32 32 /* Block Title */ 33 33 34 . sb-block-title {34 .wp-block-smart-blocks .sb-block-title { 35 35 margin-bottom: 30px; 36 36 font-family: var(--sb-header-typo-family); … … 45 45 } 46 46 47 . sb-block-title a,48 . sb-block-title span {47 .wp-block-smart-blocks .sb-block-title a, 48 .wp-block-smart-blocks .sb-block-title span { 49 49 color: inherit; 50 50 } 51 51 52 . sb-title-style2.sb-block-title {52 .wp-block-smart-blocks .sb-title-style2.sb-block-title { 53 53 border-bottom: 3px solid var(--sb-header-long-border-color, #EEE); 54 54 } 55 55 56 . sb-title-style2.sb-block-title span {56 .wp-block-smart-blocks .sb-title-style2.sb-block-title span { 57 57 position: relative; 58 58 display: inline-block; … … 60 60 } 61 61 62 . sb-title-style2.sb-block-title span:before {62 .wp-block-smart-blocks .sb-title-style2.sb-block-title span:before { 63 63 content: ""; 64 64 position: absolute; … … 70 70 } 71 71 72 . sb-title-style3.sb-block-title {72 .wp-block-smart-blocks .sb-title-style3.sb-block-title { 73 73 position: relative; 74 74 display: flex; … … 78 78 } 79 79 80 . sb-title-style3.sb-block-title span {80 .wp-block-smart-blocks .sb-title-style3.sb-block-title span { 81 81 padding: 0 20px 0 15px; 82 82 display: inline-block; 83 83 } 84 84 85 . sb-title-style3.sb-block-title:after {85 .wp-block-smart-blocks .sb-title-style3.sb-block-title:after { 86 86 content: ""; 87 87 flex-grow: 1; … … 89 89 } 90 90 91 . sb-title-style4.sb-block-title {91 .wp-block-smart-blocks .sb-title-style4.sb-block-title { 92 92 display: flex; 93 93 align-items: center; 94 94 } 95 95 96 . sb-title-style4.sb-block-title:after {96 .wp-block-smart-blocks .sb-title-style4.sb-block-title:after { 97 97 content: ""; 98 98 height: 3px; … … 159 159 padding: 0; 160 160 font-size: 0; 161 display: flex; 162 flex-wrap: wrap; 161 163 } 162 164 … … 1529 1531 1530 1532 @media screen and (max-width:768px) { 1531 . sb-block-title {1533 .wp-block-smart-blocks .sb-block-title { 1532 1534 font-size: var(--sb-header-typo-fs-md, var(--sb-header-typo-fs-lg, 20px)); 1533 1535 letter-spacing: var(--sb-header-typo-ls-md, var(--sb-header-typo-ls-lg, 0)); … … 1653 1655 1654 1656 @media screen and (max-width:580px) { 1655 . sb-block-title {1657 .wp-block-smart-blocks .sb-block-title { 1656 1658 font-size: var(--sb-header-typo-fs-sm, var(--sb-header-typo-fs-md, var(--sb-header-typo-fs-lg, 20px))); 1657 1659 letter-spacing: var(--sb-header-typo-ls-sm, var(--sb-header-typo-ls-md, var(--sb-header-typo-ls-lg, 0))); -
smart-blocks/trunk/inc/blocks/blocks-manager.php
r2750648 r2751380 6 6 if ($block_type) { 7 7 /* Modules */ 8 require_once S mart_Blocks_PATH . 'inc/blocks/modules/' . str_replace('_', '-', $block_type) . '.php';8 require_once SMART_BLOCKS_PATH . 'inc/blocks/modules/' . str_replace('_', '-', $block_type) . '.php'; 9 9 $block_class = '\HashGutenberg\\' . self::get_class_name($block_type); 10 10 if (class_exists($block_class)) { -
smart-blocks/trunk/inc/generate-css.php
r2750648 r2751380 38 38 public function render_block_asset( $block_content, $block ) { 39 39 $blockAttrs = $block['attrs']; 40 $block_css = ''; 40 41 foreach ($blockAttrs as $attrs) { 41 42 if (isset($attrs['family'])) { … … 71 72 } 72 73 73 wp_register_style( 'sb-style-frontend', false, array(), S mart_Blocks_VERSION );74 wp_register_style( 'sb-style-frontend', false, array(), SMART_BLOCKS_VERSION ); 74 75 wp_enqueue_style( 'sb-style-frontend' ); 75 76 wp_add_inline_style( 'sb-style-frontend', sb_css_strip_whitespace(self::$stylesheet) ); -
smart-blocks/trunk/readme.txt
r2750648 r2751380 3 3 Tags: block, gutenberg, blocks, gutenberg blocks, wordpress blocks, editor 4 4 Tested up to: 6.0 5 Stable tag: 1.0. 05 Stable tag: 1.0.1 6 6 Requires at least: 5.0 7 7 Requires PHP: 5.6 … … 25 25 26 26 == Changelog == 27 = 1.0.1 - Jul 04, 2022 = 28 * Constants Naming Issue - Fixed 29 * Dynamic typography not working in Header Title - Fixed 27 30 28 31 = 1.0.0 = -
smart-blocks/trunk/smart-blocks.php
r2750648 r2751380 5 5 Plugin Name: Smart Blocks - Wordpress Gutenberg Blocks 6 6 Description: Collection of advanced blocks to be used with WordPress Gutenberg Pagebuilder 7 Version: 1.0. 07 Version: 1.0.1 8 8 Author: HashThemes 9 9 Author URI: http://hashthemes.com … … 14 14 */ 15 15 16 define('S mart_Blocks_FILE', __FILE__);17 define('S mart_Blocks_PATH', plugin_dir_path(Smart_Blocks_FILE));18 define('S mart_Blocks_URL', plugins_url('/', Smart_Blocks_FILE));19 define('S mart_Blocks_VERSION', '1.0');16 define('SMART_BLOCKS_FILE', __FILE__); 17 define('SMART_BLOCKS_PATH', plugin_dir_path(SMART_BLOCKS_FILE)); 18 define('SMART_BLOCKS_URL', plugins_url('/', SMART_BLOCKS_FILE)); 19 define('SMART_BLOCKS_VERSION', '1.0.1'); 20 20 21 21 if (!class_exists('Smart_Blocks')) { … … 36 36 37 37 // Load translation files 38 add_action( 'plugins_loaded', array( $this, 'load_textdomain' ), 99);39 add_action( 'enqueue_block_editor_assets', array( $this, 'block_localization' ));38 add_action('plugins_loaded', array($this, 'load_textdomain'), 99); 39 add_action('enqueue_block_editor_assets', array($this, 'block_localization')); 40 40 41 41 // Initialize Blocks … … 56 56 57 57 public function load_textdomain() { 58 load_plugin_textdomain('smart-blocks', false, S mart_Blocks_PATH . 'languages');58 load_plugin_textdomain('smart-blocks', false, SMART_BLOCKS_PATH . 'languages'); 59 59 } 60 60 61 61 // Enqueue localization data for our blocks. 62 62 public function block_localization() { 63 if ( function_exists( 'wp_set_script_translations' )) {64 wp_set_script_translations('sb-blocks', 'smart-blocks', S mart_Blocks_PATH . 'languages');63 if (function_exists('wp_set_script_translations')) { 64 wp_set_script_translations('sb-blocks', 'smart-blocks', SMART_BLOCKS_PATH . 'languages'); 65 65 } 66 66 } 67 67 68 68 public function init() { 69 require S mart_Blocks_PATH . 'inc/helper-functions.php';70 require S mart_Blocks_PATH . 'inc/blocks/blocks-manager.php';71 require S mart_Blocks_PATH . 'inc/blocks/blocks-render.php';72 require S mart_Blocks_PATH . 'inc/generate-css.php';73 require S mart_Blocks_PATH . 'inc/blocks/attributes.php';69 require SMART_BLOCKS_PATH . 'inc/helper-functions.php'; 70 require SMART_BLOCKS_PATH . 'inc/blocks/blocks-manager.php'; 71 require SMART_BLOCKS_PATH . 'inc/blocks/blocks-render.php'; 72 require SMART_BLOCKS_PATH . 'inc/generate-css.php'; 73 require SMART_BLOCKS_PATH . 'inc/blocks/attributes.php'; 74 74 } 75 75 76 76 public function sb_create_block_init() { 77 77 // automatically load dependencies and version 78 $asset_file = include( S mart_Blocks_PATH . 'build/index.asset.php');79 wp_register_style('owl-carousel', S mart_Blocks_URL . 'inc/assets/css/owl.carousel.css', array(), Smart_Blocks_VERSION);80 wp_register_style('materialdesignicons', S mart_Blocks_URL . 'inc/assets/css/materialdesignicons.css', array(), Smart_Blocks_VERSION);81 wp_register_style('sb-style', S mart_Blocks_URL . 'inc/assets/css/sb-style.css', array('materialdesignicons', 'owl-carousel'), Smart_Blocks_VERSION);82 wp_register_style('sb-block-editor', S mart_Blocks_URL . 'inc/assets/css/editor.css', array(), Smart_Blocks_VERSION);78 $asset_file = include( SMART_BLOCKS_PATH . 'build/index.asset.php'); 79 wp_register_style('owl-carousel', SMART_BLOCKS_URL . 'inc/assets/css/owl.carousel.css', array(), SMART_BLOCKS_VERSION); 80 wp_register_style('materialdesignicons', SMART_BLOCKS_URL . 'inc/assets/css/materialdesignicons.css', array(), SMART_BLOCKS_VERSION); 81 wp_register_style('sb-style', SMART_BLOCKS_URL . 'inc/assets/css/sb-style.css', array('materialdesignicons', 'owl-carousel'), SMART_BLOCKS_VERSION); 82 wp_register_style('sb-block-editor', SMART_BLOCKS_URL . 'inc/assets/css/editor.css', array(), SMART_BLOCKS_VERSION); 83 83 84 wp_register_script('owl-carousel', S mart_Blocks_URL . 'inc/assets/js/owl.carousel.js', array('jquery'), Smart_Blocks_VERSION, true);85 wp_register_script('sb-script', S mart_Blocks_URL . 'inc/assets/js/sb-script.js', array('jquery', 'owl-carousel'), Smart_Blocks_VERSION, true);84 wp_register_script('owl-carousel', SMART_BLOCKS_URL . 'inc/assets/js/owl.carousel.js', array('jquery'), SMART_BLOCKS_VERSION, true); 85 wp_register_script('sb-script', SMART_BLOCKS_URL . 'inc/assets/js/sb-script.js', array('jquery', 'owl-carousel'), SMART_BLOCKS_VERSION, true); 86 86 87 87 wp_register_script( 88 'sb-blocks', S mart_Blocks_URL . 'build/index.js', $asset_file['dependencies'], $asset_file['version']88 'sb-blocks', SMART_BLOCKS_URL . 'build/index.js', $asset_file['dependencies'], $asset_file['version'] 89 89 ); 90 90 … … 133 133 * @param object $post Post object. 134 134 */ 135 public function register_category( $categories, $post) {135 public function register_category($categories, $post) { 136 136 return array_merge( 137 137 $categories, array( … … 178 178 179 179 } 180 180 181 } 181 182
Note: See TracChangeset
for help on using the changeset viewer.