Skip to content

Commit

Permalink
Merge pull request #1434 from vektor-inc/env/vk_blocks_options/refactor
Browse files Browse the repository at this point in the history
【マージ待ち】オプション値の処理を無料版に移動
  • Loading branch information
drill-lancer authored Oct 26, 2022
2 parents 924a498 + 3a548c9 commit 576fca6
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 386 deletions.
2 changes: 1 addition & 1 deletion bin/deploy-free.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ mv vk-blocks/ vk-blocks-copy-target/
# Cloneした無料版のディレクトリに移動
cd ./vk-blocks-copy-target/
# コピー先の トップディレクトリ を一旦削除
rm -rf editor-css/* inc/* lib/* options-css/* src/*
rm -rf editor-css/* inc/* lib/* options-css/* src/* test/*

# プロ版のディレクトリに移動
cd ../
Expand Down
69 changes: 0 additions & 69 deletions inc/vk-blocks-pro/class-vk-blocks-pro-options.php

This file was deleted.

3 changes: 0 additions & 3 deletions inc/vk-blocks-pro/vk-blocks-pro-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
// Pro 用の管理画面を読み込み.
require_once dirname( __FILE__ ) . '/admin-pro/admin-pro.php';

require_once dirname( __FILE__ ) . '/class-vk-blocks-pro-options.php';
VK_Blocks_Pro_Options::init();

/**
* Pro 専用のスクリプトの読み込み
*/
Expand Down
23 changes: 17 additions & 6 deletions inc/vk-blocks/class-vk-blocks-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ private function __construct() {
*/
public static function options_scheme() {
$default_options_schema = array(
'balloon_border_width' => array(
'balloon_border_width' => array(
'type' => 'number',
'default' => 1,
),
'margin_unit' => array(
'margin_unit' => array(
'type' => 'string',
'default' => 'rem',
),
'margin_size' => array(
'margin_size' => array(
'type' => 'object',
'items' => array(
'xl' => array(
Expand Down Expand Up @@ -133,13 +133,24 @@ public static function options_scheme() {
),
),
),
'load_separate_option' => array(
'load_separate_option' => array(
'type' => 'boolean',
'default' => false,
),
'vk_blocks_pro_license_key' => array(
'type' => 'string',
'default' => null,
),
'display_vk_block_template' => array(
'type' => 'string',
'default' => 'display',
),
'new_faq_accordion' => array(
'type' => 'string',
'default' => 'disable',
),
);
$array = array_merge( $default_options_schema, apply_filters( 'vk_blocks_default_options_scheme', array() ) );
return $array;
return $default_options_schema;
}

/**
Expand Down
141 changes: 0 additions & 141 deletions test/phpunit/free/test-get-options-free.php

This file was deleted.

Loading

0 comments on commit 576fca6

Please sign in to comment.