Plugin Directory

Changeset 2397466


Ignore:
Timestamp:
10/11/2020 01:45:06 PM (5 years ago)
Author:
qrac
Message:

Update to version 1.0.6 from GitHub

Location:
qroko-blocks
Files:
12 edited
1 copied

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  
    22  position: relative;
    33  display: block;
    4   background-color: #fff;
     4  background-color: #ffffff;
     5  background-color: var(--theme-bg-1, #ffffff);
    56  border: 1px solid #e4e4e4;
     7  border: 1px solid var(--theme-bg-3, #e4e4e4);
    68  border-radius: 4px;
    79  overflow: hidden;
     
    2224.qroko-blocks-blog-card-columns:not(:last-child) {
    2325  border-bottom: 1px solid #e4e4e4;
     26  border-bottom: 1px solid var(--theme-bg-3, #e4e4e4);
    2427}
    2528
     
    4245}
    4346
     47.qroko-blocks-blog-card-column.is-flex-none > .components-button.is-small {
     48  padding: 0 8px;
     49}
     50
    4451.components-base-control.is-margin-bottom-none .components-base-control__field {
    4552  margin-bottom: 0;
     
    5764  height: 28px;
    5865  background: #292929;
     66  background: var(--theme-tx-2, #292929);
    5967  border: none;
    6068  border-radius: 3px;
     
    7179  width: 22px;
    7280  height: 22px;
    73   fill: #fff;
     81  fill: #ffffff;
     82  fill: var(--theme-lk-tx, #ffffff);
    7483}
    7584
     
    131140  margin: 0;
    132141  color: #292929;
     142  color: var(--theme-tx-2, #292929);
    133143  font-size: 16px;
    134144  font-size: 1rem;
     
    146156  margin: 0;
    147157  color: #6f6f6f;
     158  color: var(--theme-tx-3, #6f6f6f);
    148159  font-size: 12px;
    149160  font-size: 0.75rem;
     
    159170  margin: 0;
    160171  color: #6f6f6f;
     172  color: var(--theme-tx-3, #6f6f6f);
    161173  font-size: 12px;
    162174  font-size: 0.75rem;
     
    171183  padding: 0;
    172184  border: 1px solid #e4e4e4;
     185  border: 1px solid var(--theme-bg-3, #e4e4e4);
    173186}
    174187
  • 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  
    22  position: relative;
    33  display: block;
    4   background-color: #fff;
     4  background-color: #ffffff;
     5  background-color: var(--theme-bg-1, #ffffff);
    56  border: 1px solid #e4e4e4;
     7  border: 1px solid var(--theme-bg-3, #e4e4e4);
    68  border-radius: 4px;
    79  overflow: hidden;
     
    2931}
    3032
    31 .qroko-blocks-blog-card-columns:not(:last-child) {
    32   border-bottom: 1px solid #e4e4e4;
    33 }
    34 
    3533.qroko-blocks-blog-card-columns.is-padding,
    3634.qroko-blocks-blog-card-column.is-padding {
     
    4947.qroko-blocks-blog-card-column.is-flex-none {
    5048  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;
    5849}
    5950
     
    115106  margin: 0;
    116107  color: #292929;
     108  color: var(--theme-tx-2, #292929);
    117109  font-size: 16px;
    118110  font-size: 1rem;
     
    130122  margin: 0;
    131123  color: #6f6f6f;
     124  color: var(--theme-tx-3, #6f6f6f);
    132125  font-size: 12px;
    133126  font-size: 0.75rem;
     
    143136  margin: 0;
    144137  color: #6f6f6f;
     138  color: var(--theme-tx-3, #6f6f6f);
    145139  font-size: 12px;
    146140  font-size: 0.75rem;
  • qroko-blocks/tags/1.0.6/qroko-blocks.php

    r2347152 r2397466  
    66 * Author: qrac
    77 * Author URI: https://qrac.jp/
    8  * Version: 1.0.5
     8 * Version: 1.0.6
    99 * Text Domain: qroko-blocks
    1010 * Domain Path: /languages
     
    1717 */
    1818
    19 defined( 'ABSPATH' ) || exit;
     19defined('ABSPATH') || exit;
    2020
    2121//----------------------------------------------------
     
    2323//----------------------------------------------------
    2424
    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' );
     25add_action('init', function() {
     26  load_plugin_textdomain('qroko-blocks', false, basename(dirname( __FILE__ )) . '/languages');
     27});
    2928
    3029//----------------------------------------------------
     
    3231//----------------------------------------------------
    3332
    34 function qroko_blocks_register_block() {
     33add_action('init', function() {
    3534
    3635  // 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');
    3837
    3938  // Register CSS (Editors)
    4039  wp_register_style(
    4140    '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')
    4544  );
    4645
     
    4847  wp_register_script(
    4948    'qroko-blocks-editors',
    50     plugins_url( 'build/editors.js', __FILE__ ),
     49    plugins_url('build/editors.js', __FILE__),
    5150    $editors_asset_file['dependencies'],
    5251    $editors_asset_file['version']
     
    5453
    5554  // Register Block: Blog Card
    56   register_block_type( 'qroko-blocks/blog-card', array(
     55  register_block_type('qroko-blocks/blog-card', array(
    5756    'editor_style' => 'qroko-blocks-editors',
    5857    'editor_script' => 'qroko-blocks-editors'
    5958  ));
    6059
     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
    6166  // 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/');
    6570  }
    6671
    67 }
    68 add_action( 'init', 'qroko_blocks_register_block' );
     72});
    6973
    7074//----------------------------------------------------
     
    7276//----------------------------------------------------
    7377
    74 function qroko_blocks_enqueue_fronts() {
     78add_action('wp_enqueue_scripts', function() {
    7579  if (!is_admin()) {
    76     if (has_block('qroko-blocks/blog-card')) {
    7780
    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    );
    8588
    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    );
    9697  }
    97 }
    98 add_action('wp_enqueue_scripts', 'qroko_blocks_enqueue_fronts');
     98});
    9999
    100100//----------------------------------------------------
     
    102102//----------------------------------------------------
    103103
    104 function qroko_blocks_register_categories( $categories, $post ) {
     104add_filter('block_categories', function($categories, $post) {
    105105  return array_merge(
    106106    $categories,
     
    113113  );
    114114  return $categories;
    115 }
    116 add_filter( 'block_categories', 'qroko_blocks_register_categories', 10, 2 );
     115}, 10, 2);
    117116
    118117//----------------------------------------------------
     
    120119//----------------------------------------------------
    121120
    122 require_once( 'functions/open-graph.php' );
     121require_once('functions/open-graph.php');
  • qroko-blocks/tags/1.0.6/readme.txt

    r2347152 r2397466  
    55Requires at least: 5.4
    66Tested up to: 5.5
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    4040== Changelog ==
    4141
     42= 1.0.6 =
     43* Fix
     44
    4245= 1.0.5 =
    4346* 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  
    22  position: relative;
    33  display: block;
    4   background-color: #fff;
     4  background-color: #ffffff;
     5  background-color: var(--theme-bg-1, #ffffff);
    56  border: 1px solid #e4e4e4;
     7  border: 1px solid var(--theme-bg-3, #e4e4e4);
    68  border-radius: 4px;
    79  overflow: hidden;
     
    2224.qroko-blocks-blog-card-columns:not(:last-child) {
    2325  border-bottom: 1px solid #e4e4e4;
     26  border-bottom: 1px solid var(--theme-bg-3, #e4e4e4);
    2427}
    2528
     
    4245}
    4346
     47.qroko-blocks-blog-card-column.is-flex-none > .components-button.is-small {
     48  padding: 0 8px;
     49}
     50
    4451.components-base-control.is-margin-bottom-none .components-base-control__field {
    4552  margin-bottom: 0;
     
    5764  height: 28px;
    5865  background: #292929;
     66  background: var(--theme-tx-2, #292929);
    5967  border: none;
    6068  border-radius: 3px;
     
    7179  width: 22px;
    7280  height: 22px;
    73   fill: #fff;
     81  fill: #ffffff;
     82  fill: var(--theme-lk-tx, #ffffff);
    7483}
    7584
     
    131140  margin: 0;
    132141  color: #292929;
     142  color: var(--theme-tx-2, #292929);
    133143  font-size: 16px;
    134144  font-size: 1rem;
     
    146156  margin: 0;
    147157  color: #6f6f6f;
     158  color: var(--theme-tx-3, #6f6f6f);
    148159  font-size: 12px;
    149160  font-size: 0.75rem;
     
    159170  margin: 0;
    160171  color: #6f6f6f;
     172  color: var(--theme-tx-3, #6f6f6f);
    161173  font-size: 12px;
    162174  font-size: 0.75rem;
     
    171183  padding: 0;
    172184  border: 1px solid #e4e4e4;
     185  border: 1px solid var(--theme-bg-3, #e4e4e4);
    173186}
    174187
  • 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  
    22  position: relative;
    33  display: block;
    4   background-color: #fff;
     4  background-color: #ffffff;
     5  background-color: var(--theme-bg-1, #ffffff);
    56  border: 1px solid #e4e4e4;
     7  border: 1px solid var(--theme-bg-3, #e4e4e4);
    68  border-radius: 4px;
    79  overflow: hidden;
     
    2931}
    3032
    31 .qroko-blocks-blog-card-columns:not(:last-child) {
    32   border-bottom: 1px solid #e4e4e4;
    33 }
    34 
    3533.qroko-blocks-blog-card-columns.is-padding,
    3634.qroko-blocks-blog-card-column.is-padding {
     
    4947.qroko-blocks-blog-card-column.is-flex-none {
    5048  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;
    5849}
    5950
     
    115106  margin: 0;
    116107  color: #292929;
     108  color: var(--theme-tx-2, #292929);
    117109  font-size: 16px;
    118110  font-size: 1rem;
     
    130122  margin: 0;
    131123  color: #6f6f6f;
     124  color: var(--theme-tx-3, #6f6f6f);
    132125  font-size: 12px;
    133126  font-size: 0.75rem;
     
    143136  margin: 0;
    144137  color: #6f6f6f;
     138  color: var(--theme-tx-3, #6f6f6f);
    145139  font-size: 12px;
    146140  font-size: 0.75rem;
  • qroko-blocks/trunk/qroko-blocks.php

    r2347152 r2397466  
    66 * Author: qrac
    77 * Author URI: https://qrac.jp/
    8  * Version: 1.0.5
     8 * Version: 1.0.6
    99 * Text Domain: qroko-blocks
    1010 * Domain Path: /languages
     
    1717 */
    1818
    19 defined( 'ABSPATH' ) || exit;
     19defined('ABSPATH') || exit;
    2020
    2121//----------------------------------------------------
     
    2323//----------------------------------------------------
    2424
    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' );
     25add_action('init', function() {
     26  load_plugin_textdomain('qroko-blocks', false, basename(dirname( __FILE__ )) . '/languages');
     27});
    2928
    3029//----------------------------------------------------
     
    3231//----------------------------------------------------
    3332
    34 function qroko_blocks_register_block() {
     33add_action('init', function() {
    3534
    3635  // 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');
    3837
    3938  // Register CSS (Editors)
    4039  wp_register_style(
    4140    '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')
    4544  );
    4645
     
    4847  wp_register_script(
    4948    'qroko-blocks-editors',
    50     plugins_url( 'build/editors.js', __FILE__ ),
     49    plugins_url('build/editors.js', __FILE__),
    5150    $editors_asset_file['dependencies'],
    5251    $editors_asset_file['version']
     
    5453
    5554  // Register Block: Blog Card
    56   register_block_type( 'qroko-blocks/blog-card', array(
     55  register_block_type('qroko-blocks/blog-card', array(
    5756    'editor_style' => 'qroko-blocks-editors',
    5857    'editor_script' => 'qroko-blocks-editors'
    5958  ));
    6059
     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
    6166  // 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/');
    6570  }
    6671
    67 }
    68 add_action( 'init', 'qroko_blocks_register_block' );
     72});
    6973
    7074//----------------------------------------------------
     
    7276//----------------------------------------------------
    7377
    74 function qroko_blocks_enqueue_fronts() {
     78add_action('wp_enqueue_scripts', function() {
    7579  if (!is_admin()) {
    76     if (has_block('qroko-blocks/blog-card')) {
    7780
    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    );
    8588
    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    );
    9697  }
    97 }
    98 add_action('wp_enqueue_scripts', 'qroko_blocks_enqueue_fronts');
     98});
    9999
    100100//----------------------------------------------------
     
    102102//----------------------------------------------------
    103103
    104 function qroko_blocks_register_categories( $categories, $post ) {
     104add_filter('block_categories', function($categories, $post) {
    105105  return array_merge(
    106106    $categories,
     
    113113  );
    114114  return $categories;
    115 }
    116 add_filter( 'block_categories', 'qroko_blocks_register_categories', 10, 2 );
     115}, 10, 2);
    117116
    118117//----------------------------------------------------
     
    120119//----------------------------------------------------
    121120
    122 require_once( 'functions/open-graph.php' );
     121require_once('functions/open-graph.php');
  • qroko-blocks/trunk/readme.txt

    r2347152 r2397466  
    55Requires at least: 5.4
    66Tested up to: 5.5
    7 Stable tag: 1.0.5
     7Stable tag: 1.0.6
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    4040== Changelog ==
    4141
     42= 1.0.6 =
     43* Fix
     44
    4245= 1.0.5 =
    4346* Test with WordPress 5.5
Note: See TracChangeset for help on using the changeset viewer.