Changeset 2397466
- Timestamp:
- 10/11/2020 01:45:06 PM (5 years ago)
- Location:
- qroko-blocks
- Files:
-
- 12 edited
- 1 copied
-
tags/1.0.6 (copied) (copied from qroko-blocks/trunk)
-
tags/1.0.6/build/editors.asset.php (modified) (1 diff)
-
tags/1.0.6/build/editors.css (modified) (9 diffs)
-
tags/1.0.6/build/fronts.asset.php (modified) (1 diff)
-
tags/1.0.6/build/fronts.css (modified) (6 diffs)
-
tags/1.0.6/qroko-blocks.php (modified) (10 diffs)
-
tags/1.0.6/readme.txt (modified) (2 diffs)
-
trunk/build/editors.asset.php (modified) (1 diff)
-
trunk/build/editors.css (modified) (9 diffs)
-
trunk/build/fronts.asset.php (modified) (1 diff)
-
trunk/build/fronts.css (modified) (6 diffs)
-
trunk/qroko-blocks.php (modified) (10 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
qroko-blocks/tags/1.0.6/build/editors.asset.php
r2347152 r2397466 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => ' f797888a2f234721c72df418b9edf29d');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'c5f09438fe354c61b10fd6c7a0b6e6f3'); -
qroko-blocks/tags/1.0.6/build/editors.css
r2337723 r2397466 2 2 position: relative; 3 3 display: block; 4 background-color: #fff; 4 background-color: #ffffff; 5 background-color: var(--theme-bg-1, #ffffff); 5 6 border: 1px solid #e4e4e4; 7 border: 1px solid var(--theme-bg-3, #e4e4e4); 6 8 border-radius: 4px; 7 9 overflow: hidden; … … 22 24 .qroko-blocks-blog-card-columns:not(:last-child) { 23 25 border-bottom: 1px solid #e4e4e4; 26 border-bottom: 1px solid var(--theme-bg-3, #e4e4e4); 24 27 } 25 28 … … 42 45 } 43 46 47 .qroko-blocks-blog-card-column.is-flex-none > .components-button.is-small { 48 padding: 0 8px; 49 } 50 44 51 .components-base-control.is-margin-bottom-none .components-base-control__field { 45 52 margin-bottom: 0; … … 57 64 height: 28px; 58 65 background: #292929; 66 background: var(--theme-tx-2, #292929); 59 67 border: none; 60 68 border-radius: 3px; … … 71 79 width: 22px; 72 80 height: 22px; 73 fill: #fff; 81 fill: #ffffff; 82 fill: var(--theme-lk-tx, #ffffff); 74 83 } 75 84 … … 131 140 margin: 0; 132 141 color: #292929; 142 color: var(--theme-tx-2, #292929); 133 143 font-size: 16px; 134 144 font-size: 1rem; … … 146 156 margin: 0; 147 157 color: #6f6f6f; 158 color: var(--theme-tx-3, #6f6f6f); 148 159 font-size: 12px; 149 160 font-size: 0.75rem; … … 159 170 margin: 0; 160 171 color: #6f6f6f; 172 color: var(--theme-tx-3, #6f6f6f); 161 173 font-size: 12px; 162 174 font-size: 0.75rem; … … 171 183 padding: 0; 172 184 border: 1px solid #e4e4e4; 185 border: 1px solid var(--theme-bg-3, #e4e4e4); 173 186 } 174 187 -
qroko-blocks/tags/1.0.6/build/fronts.asset.php
r2347152 r2397466 1 <?php return array('dependencies' => array('wp-polyfill'), 'version' => ' 4a5a66c6cee41561348dd4433faab659');1 <?php return array('dependencies' => array('wp-polyfill'), 'version' => '6f41eb61a21d9cba60bbea62dfb59604'); -
qroko-blocks/tags/1.0.6/build/fronts.css
r2337723 r2397466 2 2 position: relative; 3 3 display: block; 4 background-color: #fff; 4 background-color: #ffffff; 5 background-color: var(--theme-bg-1, #ffffff); 5 6 border: 1px solid #e4e4e4; 7 border: 1px solid var(--theme-bg-3, #e4e4e4); 6 8 border-radius: 4px; 7 9 overflow: hidden; … … 29 31 } 30 32 31 .qroko-blocks-blog-card-columns:not(:last-child) {32 border-bottom: 1px solid #e4e4e4;33 }34 35 33 .qroko-blocks-blog-card-columns.is-padding, 36 34 .qroko-blocks-blog-card-column.is-padding { … … 49 47 .qroko-blocks-blog-card-column.is-flex-none { 50 48 flex: none; 51 }52 53 .qroko-blocks-blog-card-delete-image-button .icon {54 flex: none;55 width: 22px;56 height: 22px;57 fill: #fff;58 49 } 59 50 … … 115 106 margin: 0; 116 107 color: #292929; 108 color: var(--theme-tx-2, #292929); 117 109 font-size: 16px; 118 110 font-size: 1rem; … … 130 122 margin: 0; 131 123 color: #6f6f6f; 124 color: var(--theme-tx-3, #6f6f6f); 132 125 font-size: 12px; 133 126 font-size: 0.75rem; … … 143 136 margin: 0; 144 137 color: #6f6f6f; 138 color: var(--theme-tx-3, #6f6f6f); 145 139 font-size: 12px; 146 140 font-size: 0.75rem; -
qroko-blocks/tags/1.0.6/qroko-blocks.php
r2347152 r2397466 6 6 * Author: qrac 7 7 * Author URI: https://qrac.jp/ 8 * Version: 1.0. 58 * Version: 1.0.6 9 9 * Text Domain: qroko-blocks 10 10 * Domain Path: /languages … … 17 17 */ 18 18 19 defined( 'ABSPATH') || exit;19 defined('ABSPATH') || exit; 20 20 21 21 //---------------------------------------------------- … … 23 23 //---------------------------------------------------- 24 24 25 function qroko_blocks_load_textdomain() { 26 load_plugin_textdomain( 'qroko-blocks', false, basename( dirname( __FILE__ ) ) . '/languages' ); 27 } 28 add_action( 'init', 'qroko_blocks_load_textdomain' ); 25 add_action('init', function() { 26 load_plugin_textdomain('qroko-blocks', false, basename(dirname( __FILE__ )) . '/languages'); 27 }); 29 28 30 29 //---------------------------------------------------- … … 32 31 //---------------------------------------------------- 33 32 34 function qroko_blocks_register_block() {33 add_action('init', function() { 35 34 36 35 // Automatically load dependencies and version 37 $editors_asset_file = include( plugin_dir_path( __FILE__) . 'build/editors.asset.php');36 $editors_asset_file = include(plugin_dir_path(__FILE__) . 'build/editors.asset.php'); 38 37 39 38 // Register CSS (Editors) 40 39 wp_register_style( 41 40 'qroko-blocks-editors', 42 plugins_url( 'build/editors.css', __FILE__),43 array( ),44 filemtime( plugin_dir_path( __FILE__ ) . 'build/editors.css')41 plugins_url('build/editors.css', __FILE__), 42 array(), 43 filemtime(plugin_dir_path(__FILE__) . 'build/editors.css') 45 44 ); 46 45 … … 48 47 wp_register_script( 49 48 'qroko-blocks-editors', 50 plugins_url( 'build/editors.js', __FILE__),49 plugins_url('build/editors.js', __FILE__), 51 50 $editors_asset_file['dependencies'], 52 51 $editors_asset_file['version'] … … 54 53 55 54 // Register Block: Blog Card 56 register_block_type( 'qroko-blocks/blog-card', array(55 register_block_type('qroko-blocks/blog-card', array( 57 56 'editor_style' => 'qroko-blocks-editors', 58 57 'editor_script' => 'qroko-blocks-editors' 59 58 )); 60 59 60 // Register Block: Compact Box 61 /*register_block_type('qroko-blocks/compact-box', array( 62 'editor_style' => 'qroko-blocks-editors', 63 'editor_script' => 'qroko-blocks-editors' 64 ));*/ 65 61 66 // Setting Translations 62 if ( function_exists( 'wp_set_script_translations' )) {63 wp_set_script_translations( 'qroko-blocks-editors', 'qroko-blocks',64 plugin_dir_path( __FILE__ ) . 'languages/');67 if (function_exists('wp_set_script_translations')) { 68 wp_set_script_translations('qroko-blocks-editors', 'qroko-blocks', 69 plugin_dir_path(__FILE__) . 'languages/'); 65 70 } 66 71 67 } 68 add_action( 'init', 'qroko_blocks_register_block' ); 72 }); 69 73 70 74 //---------------------------------------------------- … … 72 76 //---------------------------------------------------- 73 77 74 function qroko_blocks_enqueue_fronts() {78 add_action('wp_enqueue_scripts', function() { 75 79 if (!is_admin()) { 76 if (has_block('qroko-blocks/blog-card')) {77 80 78 // Enqueue CSS (Fronts)79 wp_enqueue_style(80 'qroko-blocks-fronts',81 plugins_url( 'build/fronts.css', __FILE__),82 array(),83 filemtime( plugin_dir_path( __FILE__ ) . 'build/fronts.css')84 );81 // Enqueue CSS (Fronts) 82 wp_enqueue_style( 83 'qroko-blocks-fronts', 84 plugins_url('build/fronts.css', __FILE__), 85 array(), 86 filemtime(plugin_dir_path(__FILE__) . 'build/fronts.css') 87 ); 85 88 86 // Enqueue JavaScript (Fronts) 87 wp_enqueue_script( 88 'qroko-blocks-fronts', 89 plugins_url( 'build/fronts.js', __FILE__ ), 90 array( ), 91 filemtime( plugin_dir_path( __FILE__ ) . 'build/fronts.js' ), 92 true 93 ); 94 95 } 89 // Enqueue JavaScript (Fronts) 90 wp_enqueue_script( 91 'qroko-blocks-fronts', 92 plugins_url('build/fronts.js', __FILE__), 93 array(), 94 filemtime(plugin_dir_path(__FILE__) . 'build/fronts.js'), 95 true 96 ); 96 97 } 97 } 98 add_action('wp_enqueue_scripts', 'qroko_blocks_enqueue_fronts'); 98 }); 99 99 100 100 //---------------------------------------------------- … … 102 102 //---------------------------------------------------- 103 103 104 function qroko_blocks_register_categories( $categories, $post) {104 add_filter('block_categories', function($categories, $post) { 105 105 return array_merge( 106 106 $categories, … … 113 113 ); 114 114 return $categories; 115 } 116 add_filter( 'block_categories', 'qroko_blocks_register_categories', 10, 2 ); 115 }, 10, 2); 117 116 118 117 //---------------------------------------------------- … … 120 119 //---------------------------------------------------- 121 120 122 require_once( 'functions/open-graph.php');121 require_once('functions/open-graph.php'); -
qroko-blocks/tags/1.0.6/readme.txt
r2347152 r2397466 5 5 Requires at least: 5.4 6 6 Tested up to: 5.5 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 40 40 == Changelog == 41 41 42 = 1.0.6 = 43 * Fix 44 42 45 = 1.0.5 = 43 46 * Test with WordPress 5.5 -
qroko-blocks/trunk/build/editors.asset.php
r2347152 r2397466 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => ' f797888a2f234721c72df418b9edf29d');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'c5f09438fe354c61b10fd6c7a0b6e6f3'); -
qroko-blocks/trunk/build/editors.css
r2337723 r2397466 2 2 position: relative; 3 3 display: block; 4 background-color: #fff; 4 background-color: #ffffff; 5 background-color: var(--theme-bg-1, #ffffff); 5 6 border: 1px solid #e4e4e4; 7 border: 1px solid var(--theme-bg-3, #e4e4e4); 6 8 border-radius: 4px; 7 9 overflow: hidden; … … 22 24 .qroko-blocks-blog-card-columns:not(:last-child) { 23 25 border-bottom: 1px solid #e4e4e4; 26 border-bottom: 1px solid var(--theme-bg-3, #e4e4e4); 24 27 } 25 28 … … 42 45 } 43 46 47 .qroko-blocks-blog-card-column.is-flex-none > .components-button.is-small { 48 padding: 0 8px; 49 } 50 44 51 .components-base-control.is-margin-bottom-none .components-base-control__field { 45 52 margin-bottom: 0; … … 57 64 height: 28px; 58 65 background: #292929; 66 background: var(--theme-tx-2, #292929); 59 67 border: none; 60 68 border-radius: 3px; … … 71 79 width: 22px; 72 80 height: 22px; 73 fill: #fff; 81 fill: #ffffff; 82 fill: var(--theme-lk-tx, #ffffff); 74 83 } 75 84 … … 131 140 margin: 0; 132 141 color: #292929; 142 color: var(--theme-tx-2, #292929); 133 143 font-size: 16px; 134 144 font-size: 1rem; … … 146 156 margin: 0; 147 157 color: #6f6f6f; 158 color: var(--theme-tx-3, #6f6f6f); 148 159 font-size: 12px; 149 160 font-size: 0.75rem; … … 159 170 margin: 0; 160 171 color: #6f6f6f; 172 color: var(--theme-tx-3, #6f6f6f); 161 173 font-size: 12px; 162 174 font-size: 0.75rem; … … 171 183 padding: 0; 172 184 border: 1px solid #e4e4e4; 185 border: 1px solid var(--theme-bg-3, #e4e4e4); 173 186 } 174 187 -
qroko-blocks/trunk/build/fronts.asset.php
r2347152 r2397466 1 <?php return array('dependencies' => array('wp-polyfill'), 'version' => ' 4a5a66c6cee41561348dd4433faab659');1 <?php return array('dependencies' => array('wp-polyfill'), 'version' => '6f41eb61a21d9cba60bbea62dfb59604'); -
qroko-blocks/trunk/build/fronts.css
r2337723 r2397466 2 2 position: relative; 3 3 display: block; 4 background-color: #fff; 4 background-color: #ffffff; 5 background-color: var(--theme-bg-1, #ffffff); 5 6 border: 1px solid #e4e4e4; 7 border: 1px solid var(--theme-bg-3, #e4e4e4); 6 8 border-radius: 4px; 7 9 overflow: hidden; … … 29 31 } 30 32 31 .qroko-blocks-blog-card-columns:not(:last-child) {32 border-bottom: 1px solid #e4e4e4;33 }34 35 33 .qroko-blocks-blog-card-columns.is-padding, 36 34 .qroko-blocks-blog-card-column.is-padding { … … 49 47 .qroko-blocks-blog-card-column.is-flex-none { 50 48 flex: none; 51 }52 53 .qroko-blocks-blog-card-delete-image-button .icon {54 flex: none;55 width: 22px;56 height: 22px;57 fill: #fff;58 49 } 59 50 … … 115 106 margin: 0; 116 107 color: #292929; 108 color: var(--theme-tx-2, #292929); 117 109 font-size: 16px; 118 110 font-size: 1rem; … … 130 122 margin: 0; 131 123 color: #6f6f6f; 124 color: var(--theme-tx-3, #6f6f6f); 132 125 font-size: 12px; 133 126 font-size: 0.75rem; … … 143 136 margin: 0; 144 137 color: #6f6f6f; 138 color: var(--theme-tx-3, #6f6f6f); 145 139 font-size: 12px; 146 140 font-size: 0.75rem; -
qroko-blocks/trunk/qroko-blocks.php
r2347152 r2397466 6 6 * Author: qrac 7 7 * Author URI: https://qrac.jp/ 8 * Version: 1.0. 58 * Version: 1.0.6 9 9 * Text Domain: qroko-blocks 10 10 * Domain Path: /languages … … 17 17 */ 18 18 19 defined( 'ABSPATH') || exit;19 defined('ABSPATH') || exit; 20 20 21 21 //---------------------------------------------------- … … 23 23 //---------------------------------------------------- 24 24 25 function qroko_blocks_load_textdomain() { 26 load_plugin_textdomain( 'qroko-blocks', false, basename( dirname( __FILE__ ) ) . '/languages' ); 27 } 28 add_action( 'init', 'qroko_blocks_load_textdomain' ); 25 add_action('init', function() { 26 load_plugin_textdomain('qroko-blocks', false, basename(dirname( __FILE__ )) . '/languages'); 27 }); 29 28 30 29 //---------------------------------------------------- … … 32 31 //---------------------------------------------------- 33 32 34 function qroko_blocks_register_block() {33 add_action('init', function() { 35 34 36 35 // Automatically load dependencies and version 37 $editors_asset_file = include( plugin_dir_path( __FILE__) . 'build/editors.asset.php');36 $editors_asset_file = include(plugin_dir_path(__FILE__) . 'build/editors.asset.php'); 38 37 39 38 // Register CSS (Editors) 40 39 wp_register_style( 41 40 'qroko-blocks-editors', 42 plugins_url( 'build/editors.css', __FILE__),43 array( ),44 filemtime( plugin_dir_path( __FILE__ ) . 'build/editors.css')41 plugins_url('build/editors.css', __FILE__), 42 array(), 43 filemtime(plugin_dir_path(__FILE__) . 'build/editors.css') 45 44 ); 46 45 … … 48 47 wp_register_script( 49 48 'qroko-blocks-editors', 50 plugins_url( 'build/editors.js', __FILE__),49 plugins_url('build/editors.js', __FILE__), 51 50 $editors_asset_file['dependencies'], 52 51 $editors_asset_file['version'] … … 54 53 55 54 // Register Block: Blog Card 56 register_block_type( 'qroko-blocks/blog-card', array(55 register_block_type('qroko-blocks/blog-card', array( 57 56 'editor_style' => 'qroko-blocks-editors', 58 57 'editor_script' => 'qroko-blocks-editors' 59 58 )); 60 59 60 // Register Block: Compact Box 61 /*register_block_type('qroko-blocks/compact-box', array( 62 'editor_style' => 'qroko-blocks-editors', 63 'editor_script' => 'qroko-blocks-editors' 64 ));*/ 65 61 66 // Setting Translations 62 if ( function_exists( 'wp_set_script_translations' )) {63 wp_set_script_translations( 'qroko-blocks-editors', 'qroko-blocks',64 plugin_dir_path( __FILE__ ) . 'languages/');67 if (function_exists('wp_set_script_translations')) { 68 wp_set_script_translations('qroko-blocks-editors', 'qroko-blocks', 69 plugin_dir_path(__FILE__) . 'languages/'); 65 70 } 66 71 67 } 68 add_action( 'init', 'qroko_blocks_register_block' ); 72 }); 69 73 70 74 //---------------------------------------------------- … … 72 76 //---------------------------------------------------- 73 77 74 function qroko_blocks_enqueue_fronts() {78 add_action('wp_enqueue_scripts', function() { 75 79 if (!is_admin()) { 76 if (has_block('qroko-blocks/blog-card')) {77 80 78 // Enqueue CSS (Fronts)79 wp_enqueue_style(80 'qroko-blocks-fronts',81 plugins_url( 'build/fronts.css', __FILE__),82 array(),83 filemtime( plugin_dir_path( __FILE__ ) . 'build/fronts.css')84 );81 // Enqueue CSS (Fronts) 82 wp_enqueue_style( 83 'qroko-blocks-fronts', 84 plugins_url('build/fronts.css', __FILE__), 85 array(), 86 filemtime(plugin_dir_path(__FILE__) . 'build/fronts.css') 87 ); 85 88 86 // Enqueue JavaScript (Fronts) 87 wp_enqueue_script( 88 'qroko-blocks-fronts', 89 plugins_url( 'build/fronts.js', __FILE__ ), 90 array( ), 91 filemtime( plugin_dir_path( __FILE__ ) . 'build/fronts.js' ), 92 true 93 ); 94 95 } 89 // Enqueue JavaScript (Fronts) 90 wp_enqueue_script( 91 'qroko-blocks-fronts', 92 plugins_url('build/fronts.js', __FILE__), 93 array(), 94 filemtime(plugin_dir_path(__FILE__) . 'build/fronts.js'), 95 true 96 ); 96 97 } 97 } 98 add_action('wp_enqueue_scripts', 'qroko_blocks_enqueue_fronts'); 98 }); 99 99 100 100 //---------------------------------------------------- … … 102 102 //---------------------------------------------------- 103 103 104 function qroko_blocks_register_categories( $categories, $post) {104 add_filter('block_categories', function($categories, $post) { 105 105 return array_merge( 106 106 $categories, … … 113 113 ); 114 114 return $categories; 115 } 116 add_filter( 'block_categories', 'qroko_blocks_register_categories', 10, 2 ); 115 }, 10, 2); 117 116 118 117 //---------------------------------------------------- … … 120 119 //---------------------------------------------------- 121 120 122 require_once( 'functions/open-graph.php');121 require_once('functions/open-graph.php'); -
qroko-blocks/trunk/readme.txt
r2347152 r2397466 5 5 Requires at least: 5.4 6 6 Tested up to: 5.5 7 Stable tag: 1.0. 57 Stable tag: 1.0.6 8 8 Requires PHP: 5.6 9 9 License: GPLv2 or later … … 40 40 == Changelog == 41 41 42 = 1.0.6 = 43 * Fix 44 42 45 = 1.0.5 = 43 46 * Test with WordPress 5.5
Note: See TracChangeset
for help on using the changeset viewer.