Version Description
[ Delete function ] test version update checker.
Download this release
Release Info
Developer | kurudrive |
Plugin | VK All in One Expansion Unit |
Version | 9.1.0 |
Comparing to | |
See all releases |
Code changes from version 9.0.5 to 9.1.0
- _scss/vkExUnit_admin.scss +0 -6
- admin/admin-common-init.php +0 -1
- admin/admin.php +14 -8
- admin/plugin-update-checker/Puc/v4/Factory.php +0 -6
- admin/plugin-update-checker/Puc/v4p4/Autoloader.php +0 -49
- admin/plugin-update-checker/Puc/v4p4/DebugBar/Extension.php +0 -177
- admin/plugin-update-checker/Puc/v4p4/DebugBar/Panel.php +0 -165
- admin/plugin-update-checker/Puc/v4p4/DebugBar/PluginExtension.php +0 -33
- admin/plugin-update-checker/Puc/v4p4/DebugBar/PluginPanel.php +0 -38
- admin/plugin-update-checker/Puc/v4p4/DebugBar/ThemePanel.php +0 -21
- admin/plugin-update-checker/Puc/v4p4/Factory.php +0 -292
- admin/plugin-update-checker/Puc/v4p4/Metadata.php +0 -132
- admin/plugin-update-checker/Puc/v4p4/OAuthSignature.php +0 -88
- admin/plugin-update-checker/Puc/v4p4/Plugin/Info.php +0 -130
- admin/plugin-update-checker/Puc/v4p4/Plugin/Update.php +0 -110
- admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php +0 -740
- admin/plugin-update-checker/Puc/v4p4/Scheduler.php +0 -177
- admin/plugin-update-checker/Puc/v4p4/StateStore.php +0 -207
- admin/plugin-update-checker/Puc/v4p4/Theme/Update.php +0 -84
- admin/plugin-update-checker/Puc/v4p4/Theme/UpdateChecker.php +0 -177
- admin/plugin-update-checker/Puc/v4p4/Update.php +0 -34
- admin/plugin-update-checker/Puc/v4p4/UpdateChecker.php +0 -896
- admin/plugin-update-checker/Puc/v4p4/UpgraderStatus.php +0 -199
- admin/plugin-update-checker/Puc/v4p4/Utils.php +0 -69
- admin/plugin-update-checker/Puc/v4p4/Vcs/Api.php +0 -302
- admin/plugin-update-checker/Puc/v4p4/Vcs/BaseChecker.php +0 -27
- admin/plugin-update-checker/Puc/v4p4/Vcs/BitBucketApi.php +0 -256
- admin/plugin-update-checker/Puc/v4p4/Vcs/GitHubApi.php +0 -413
- admin/plugin-update-checker/Puc/v4p4/Vcs/GitLabApi.php +0 -274
- admin/plugin-update-checker/Puc/v4p4/Vcs/PluginUpdateChecker.php +0 -217
- admin/plugin-update-checker/Puc/v4p4/Vcs/Reference.php +0 -49
- admin/plugin-update-checker/Puc/v4p4/Vcs/ThemeUpdateChecker.php +0 -118
- admin/plugin-update-checker/README.md +0 -274
- admin/plugin-update-checker/composer.json +0 -22
- admin/plugin-update-checker/css/puc-debug-bar.css +0 -70
- admin/plugin-update-checker/examples/plugin.json +0 -52
- admin/plugin-update-checker/examples/theme.json +0 -5
- admin/plugin-update-checker/js/debug-bar.js +0 -52
- admin/plugin-update-checker/languages/plugin-update-checker-cs_CZ.mo +0 -0
- admin/plugin-update-checker/languages/plugin-update-checker-cs_CZ.po +0 -45
- admin/plugin-update-checker/languages/plugin-update-checker-da_DK.mo +0 -0
- admin/plugin-update-checker/languages/plugin-update-checker-da_DK.po +0 -42
- admin/plugin-update-checker/languages/plugin-update-checker-de_DE.mo +0 -0
- admin/plugin-update-checker/languages/plugin-update-checker-de_DE.po +0 -38
- admin/plugin-update-checker/languages/plugin-update-checker-fa_IR.mo +0 -0
- admin/plugin-update-checker/languages/plugin-update-checker-fa_IR.po +0 -38
- admin/plugin-update-checker/languages/plugin-update-checker-fr_FR.mo +0 -0
- admin/plugin-update-checker/languages/plugin-update-checker-fr_FR.po +0 -42
- admin/plugin-update-checker/languages/plugin-update-checker-hu_HU.mo +0 -0
- admin/plugin-update-checker/languages/plugin-update-checker-hu_HU.po +0 -41
- admin/plugin-update-checker/languages/plugin-update-checker-it_IT.mo +0 -0
- admin/plugin-update-checker/languages/plugin-update-checker-it_IT.po +0 -38
- admin/plugin-update-checker/languages/plugin-update-checker-ja.mo +0 -0
- admin/plugin-update-checker/languages/plugin-update-checker-ja.po +0 -42
- admin/plugin-update-checker/languages/plugin-update-checker-pt_BR.mo +0 -0
- admin/plugin-update-checker/languages/plugin-update-checker-pt_BR.po +0 -48
- admin/plugin-update-checker/languages/plugin-update-checker-sv_SE.mo +0 -0
- admin/plugin-update-checker/languages/plugin-update-checker-sv_SE.po +0 -42
- admin/plugin-update-checker/languages/plugin-update-checker.pot +0 -49
- admin/plugin-update-checker/license.txt +0 -7
- admin/plugin-update-checker/plugin-update-checker.php +0 -24
- admin/plugin-update-checker/plugin-update-config.json +0 -27
- admin/plugin-update-checker/vendor/Parsedown.php +0 -1538
- admin/plugin-update-checker/vendor/ParsedownLegacy.php +0 -1535
- admin/plugin-update-checker/vendor/readme-parser.php +0 -334
- admin_other_functions.php +0 -19
- common_helpers.php +0 -48
- css/vkExUnit_admin.css +0 -1
- css/vkExUnit_style.css +0 -1
- css/vkExUnit_style_in_bs.css +0 -12
- inc/css-customize/css-customize.php +1 -1
- inc/font-awesome/package/versions/5.6.0/LICENSE.txt +0 -0
- inc/font-awesome/package/versions/5.6.0/css/all.min.css +0 -0
- inc/font-awesome/package/versions/5.6.0/js/all.min.js +0 -0
- inc/font-awesome/package/versions/5.6.0/metadata/categories.yml +0 -0
- inc/font-awesome/package/versions/5.6.0/metadata/icons.json +0 -0
- inc/font-awesome/package/versions/5.6.0/metadata/icons.yml +0 -0
- inc/font-awesome/package/versions/5.6.0/metadata/shims.json +0 -0
- inc/font-awesome/package/versions/5.6.0/metadata/shims.yml +0 -0
- inc/font-awesome/package/versions/5.6.0/metadata/sponsors.yml +0 -0
- inc/font-awesome/package/versions/5.6.0/sprites/brands.svg +0 -0
- inc/font-awesome/package/versions/5.6.0/sprites/regular.svg +0 -0
- inc/font-awesome/package/versions/5.6.0/sprites/solid.svg +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-brands-400.eot +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-brands-400.svg +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-brands-400.ttf +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-brands-400.woff +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-brands-400.woff2 +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-regular-400.eot +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-regular-400.svg +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-regular-400.ttf +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-regular-400.woff +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-regular-400.woff2 +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-solid-900.eot +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-solid-900.svg +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-solid-900.ttf +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-solid-900.woff +0 -0
- inc/font-awesome/package/versions/5.6.0/webfonts/fa-solid-900.woff2 +0 -0
- inc/{other_widget → other-widget}/js/admin-widget.js +0 -0
- inc/{other_widget/other_widget.php → other-widget/other-widget.php} +0 -0
- inc/{other_widget → other-widget}/widget-3pr-area.php +0 -0
- inc/{other_widget → other-widget}/widget-archives.php +0 -0
- inc/{other_widget → other-widget}/widget-banner.php +0 -0
- inc/{other_widget → other-widget}/widget-button.php +0 -0
- inc/{other_widget → other-widget}/widget-child-page-list.php +0 -0
- inc/{other_widget → other-widget}/widget-new-posts.php +16 -2
- inc/{other_widget → other-widget}/widget-page.php +0 -0
- inc/{other_widget → other-widget}/widget-pr-blocks.php +0 -0
- inc/{other_widget → other-widget}/widget-profile.php +0 -0
- inc/{other_widget → other-widget}/widget-side-child-page-list.php +0 -0
- inc/{other_widget → other-widget}/widget-taxonomies.php +0 -0
- inc/template-tags/template-tags.php +5 -1
- initialize.php +21 -90
- js/vkExUnit_admin.js +0 -4
- languages/vk-all-in-one-expansion-unit-ja.mo +0 -0
- languages/vk-all-in-one-expansion-unit-ja.po +833 -686
- languages/vk-all-in-one-expansion-unit.pot +8 -8
- plugins/auto_eyecatch.php +0 -138
- plugins/css_customize/css_customize-single.php +0 -102
- plugins/meta_keyword.php +0 -162
- plugins/other_widget/other_widget.php +0 -90
- plugins/post-type-manager-config.php +0 -19
- plugins/sitemap_page/hide-controller.php +0 -126
- plugins/sitemap_page/sitemap_admin.php +0 -22
- plugins/sns/function_meta_box.php +0 -65
- plugins/sns/hide_controller.php +0 -139
- plugins/template-tags/template-tags-veu-old.php +0 -57
- plugins/vk-blocks/build/block-build.js +0 -26
- plugins/vk-blocks/build/block-build.js.map +0 -1
_scss/vkExUnit_admin.scss
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
@charset "utf-8";
|
2 |
-
// @import "compass";
|
3 |
-
|
4 |
-
.wrap.debug_mode{
|
5 |
-
tr.dev_object{ display:table-row; }
|
6 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
admin/admin-common-init.php
CHANGED
@@ -27,7 +27,6 @@ function veu_get_common_options_default() {
|
|
27 |
}
|
28 |
$default_options['post_metabox_individual'] = false;
|
29 |
$default_options['delete_options_at_deactivate'] = false;
|
30 |
-
$default_options['active_test_update'] = false;
|
31 |
$default_options['content_filter_state'] = 'content';
|
32 |
return apply_filters( 'vkExUnit_common_options_default', $default_options );
|
33 |
}
|
27 |
}
|
28 |
$default_options['post_metabox_individual'] = false;
|
29 |
$default_options['delete_options_at_deactivate'] = false;
|
|
|
30 |
$default_options['content_filter_state'] = 'content';
|
31 |
return apply_filters( 'vkExUnit_common_options_default', $default_options );
|
32 |
}
|
admin/admin.php
CHANGED
@@ -6,28 +6,34 @@
|
|
6 |
*/
|
7 |
|
8 |
require dirname( __FILE__ ) . '/admin-common-init.php';
|
9 |
-
require dirname( __FILE__ ) . '/admin-main-setting-page.php';
|
10 |
require dirname( __FILE__ ) . '/disable-guide.php';
|
11 |
-
require dirname( __FILE__ ) . '/vk-admin/vk-admin-config.php';
|
12 |
require dirname( __FILE__ ) . '/customizer.php';
|
13 |
-
|
14 |
-
plugins_loaded
|
15 |
-
*/
|
16 |
require dirname( __FILE__ ) . '/admin-post-metabox.php';
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
/*
|
19 |
Add Parent menu
|
20 |
/*-------------------------------------------*/
|
21 |
add_action( 'admin_menu', 'veu_setting_menu_parent' );
|
22 |
function veu_setting_menu_parent() {
|
23 |
global $menu;
|
24 |
-
|
25 |
-
$
|
|
|
|
|
26 |
|
27 |
$custom_page = add_menu_page(
|
28 |
$parent_name, // Name of page
|
29 |
$parent_name, // Label in menu
|
30 |
-
$
|
31 |
'vkExUnit_setting_page', // ユニークなこのサブメニューページの識別子
|
32 |
'vkExUnit_add_setting_page' // メニューページのコンテンツを出力する関数
|
33 |
);
|
6 |
*/
|
7 |
|
8 |
require dirname( __FILE__ ) . '/admin-common-init.php';
|
|
|
9 |
require dirname( __FILE__ ) . '/disable-guide.php';
|
|
|
10 |
require dirname( __FILE__ ) . '/customizer.php';
|
11 |
+
|
12 |
+
// plugins_loaded の位置ではmetaboxを統合しない設定にしても個別のmetaboxが表示されない
|
|
|
13 |
require dirname( __FILE__ ) . '/admin-post-metabox.php';
|
14 |
|
15 |
+
// 親メニューが出力される前に フックを通さずに直接読み込むとページが表示されなくなる
|
16 |
+
add_action( 'plugin_loaded', 'veu_load_main_setting_page' );
|
17 |
+
function veu_load_main_setting_page() {
|
18 |
+
require_once dirname( __FILE__ ) . '/admin-main-setting-page.php';
|
19 |
+
require_once dirname( __FILE__ ) . '/vk-admin/vk-admin-config.php';
|
20 |
+
}
|
21 |
+
|
22 |
/*
|
23 |
Add Parent menu
|
24 |
/*-------------------------------------------*/
|
25 |
add_action( 'admin_menu', 'veu_setting_menu_parent' );
|
26 |
function veu_setting_menu_parent() {
|
27 |
global $menu;
|
28 |
+
|
29 |
+
$parent_name = veu_get_little_short_name();
|
30 |
+
|
31 |
+
$capability_required = 'activate_plugins';
|
32 |
|
33 |
$custom_page = add_menu_page(
|
34 |
$parent_name, // Name of page
|
35 |
$parent_name, // Label in menu
|
36 |
+
$capability_required,
|
37 |
'vkExUnit_setting_page', // ユニークなこのサブメニューページの識別子
|
38 |
'vkExUnit_add_setting_page' // メニューページのコンテンツを出力する関数
|
39 |
);
|
admin/plugin-update-checker/Puc/v4/Factory.php
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4_Factory', false) ):
|
3 |
-
|
4 |
-
class Puc_v4_Factory extends Puc_v4p4_Factory { }
|
5 |
-
|
6 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Autoloader.php
DELETED
@@ -1,49 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('Puc_v4p4_Autoloader', false) ):
|
4 |
-
|
5 |
-
class Puc_v4p4_Autoloader {
|
6 |
-
private $prefix = '';
|
7 |
-
private $rootDir = '';
|
8 |
-
private $libraryDir = '';
|
9 |
-
|
10 |
-
private $staticMap;
|
11 |
-
|
12 |
-
public function __construct() {
|
13 |
-
$this->rootDir = dirname(__FILE__) . '/';
|
14 |
-
$nameParts = explode('_', __CLASS__, 3);
|
15 |
-
$this->prefix = $nameParts[0] . '_' . $nameParts[1] . '_';
|
16 |
-
|
17 |
-
$this->libraryDir = realpath($this->rootDir . '../..') . '/';
|
18 |
-
$this->staticMap = array(
|
19 |
-
'PucReadmeParser' => 'vendor/readme-parser.php',
|
20 |
-
'Parsedown' => 'vendor/ParsedownLegacy.php',
|
21 |
-
);
|
22 |
-
if ( version_compare(PHP_VERSION, '5.3.0', '>=') ) {
|
23 |
-
$this->staticMap['Parsedown'] = 'vendor/Parsedown.php';
|
24 |
-
}
|
25 |
-
|
26 |
-
spl_autoload_register(array($this, 'autoload'));
|
27 |
-
}
|
28 |
-
|
29 |
-
public function autoload($className) {
|
30 |
-
if ( isset($this->staticMap[$className]) && file_exists($this->libraryDir . $this->staticMap[$className]) ) {
|
31 |
-
/** @noinspection PhpIncludeInspection */
|
32 |
-
include ($this->libraryDir . $this->staticMap[$className]);
|
33 |
-
return;
|
34 |
-
}
|
35 |
-
|
36 |
-
if (strpos($className, $this->prefix) === 0) {
|
37 |
-
$path = substr($className, strlen($this->prefix));
|
38 |
-
$path = str_replace('_', '/', $path);
|
39 |
-
$path = $this->rootDir . $path . '.php';
|
40 |
-
|
41 |
-
if (file_exists($path)) {
|
42 |
-
/** @noinspection PhpIncludeInspection */
|
43 |
-
include $path;
|
44 |
-
}
|
45 |
-
}
|
46 |
-
}
|
47 |
-
}
|
48 |
-
|
49 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/DebugBar/Extension.php
DELETED
@@ -1,177 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_DebugBar_Extension', false) ):
|
3 |
-
|
4 |
-
class Puc_v4p4_DebugBar_Extension {
|
5 |
-
const RESPONSE_BODY_LENGTH_LIMIT = 4000;
|
6 |
-
|
7 |
-
/** @var Puc_v4p4_UpdateChecker */
|
8 |
-
protected $updateChecker;
|
9 |
-
protected $panelClass = 'Puc_v4p4_DebugBar_Panel';
|
10 |
-
|
11 |
-
public function __construct($updateChecker, $panelClass = null) {
|
12 |
-
$this->updateChecker = $updateChecker;
|
13 |
-
if ( isset($panelClass) ) {
|
14 |
-
$this->panelClass = $panelClass;
|
15 |
-
}
|
16 |
-
|
17 |
-
add_filter('debug_bar_panels', array($this, 'addDebugBarPanel'));
|
18 |
-
add_action('debug_bar_enqueue_scripts', array($this, 'enqueuePanelDependencies'));
|
19 |
-
|
20 |
-
add_action('wp_ajax_puc_v4_debug_check_now', array($this, 'ajaxCheckNow'));
|
21 |
-
}
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Register the PUC Debug Bar panel.
|
25 |
-
*
|
26 |
-
* @param array $panels
|
27 |
-
* @return array
|
28 |
-
*/
|
29 |
-
public function addDebugBarPanel($panels) {
|
30 |
-
if ( $this->updateChecker->userCanInstallUpdates() ) {
|
31 |
-
$panels[] = new $this->panelClass($this->updateChecker);
|
32 |
-
}
|
33 |
-
return $panels;
|
34 |
-
}
|
35 |
-
|
36 |
-
/**
|
37 |
-
* Enqueue our Debug Bar scripts and styles.
|
38 |
-
*/
|
39 |
-
public function enqueuePanelDependencies() {
|
40 |
-
wp_enqueue_style(
|
41 |
-
'puc-debug-bar-style-v4',
|
42 |
-
$this->getLibraryUrl("/css/puc-debug-bar.css"),
|
43 |
-
array('debug-bar'),
|
44 |
-
'20171124'
|
45 |
-
);
|
46 |
-
|
47 |
-
wp_enqueue_script(
|
48 |
-
'puc-debug-bar-js-v4',
|
49 |
-
$this->getLibraryUrl("/js/debug-bar.js"),
|
50 |
-
array('jquery'),
|
51 |
-
'20170516'
|
52 |
-
);
|
53 |
-
}
|
54 |
-
|
55 |
-
/**
|
56 |
-
* Run an update check and output the result. Useful for making sure that
|
57 |
-
* the update checking process works as expected.
|
58 |
-
*/
|
59 |
-
public function ajaxCheckNow() {
|
60 |
-
if ( $_POST['uid'] !== $this->updateChecker->getUniqueName('uid') ) {
|
61 |
-
return;
|
62 |
-
}
|
63 |
-
$this->preAjaxRequest();
|
64 |
-
$update = $this->updateChecker->checkForUpdates();
|
65 |
-
if ( $update !== null ) {
|
66 |
-
echo "An update is available:";
|
67 |
-
echo '<pre>', htmlentities(print_r($update, true)), '</pre>';
|
68 |
-
} else {
|
69 |
-
echo 'No updates found.';
|
70 |
-
}
|
71 |
-
|
72 |
-
$errors = $this->updateChecker->getLastRequestApiErrors();
|
73 |
-
if ( !empty($errors) ) {
|
74 |
-
printf('<p>The update checker encountered %d API error%s.</p>', count($errors), (count($errors) > 1) ? 's' : '');
|
75 |
-
|
76 |
-
foreach (array_values($errors) as $num => $item) {
|
77 |
-
$wpError = $item['error'];
|
78 |
-
/** @var WP_Error $wpError */
|
79 |
-
printf('<h4>%d) %s</h4>', $num + 1, esc_html($wpError->get_error_message()));
|
80 |
-
|
81 |
-
echo '<dl>';
|
82 |
-
printf('<dt>Error code:</dt><dd><code>%s</code></dd>', esc_html($wpError->get_error_code()));
|
83 |
-
|
84 |
-
if ( isset($item['url']) ) {
|
85 |
-
printf('<dt>Requested URL:</dt><dd><code>%s</code></dd>', esc_html($item['url']));
|
86 |
-
}
|
87 |
-
|
88 |
-
if ( isset($item['httpResponse']) ) {
|
89 |
-
if ( is_wp_error($item['httpResponse']) ) {
|
90 |
-
$httpError = $item['httpResponse'];
|
91 |
-
/** @var WP_Error $httpError */
|
92 |
-
printf(
|
93 |
-
'<dt>WordPress HTTP API error:</dt><dd>%s (<code>%s</code>)</dd>',
|
94 |
-
esc_html($httpError->get_error_message()),
|
95 |
-
esc_html($httpError->get_error_code())
|
96 |
-
);
|
97 |
-
} else {
|
98 |
-
//Status code.
|
99 |
-
printf(
|
100 |
-
'<dt>HTTP status:</dt><dd><code>%d %s</code></dd>',
|
101 |
-
wp_remote_retrieve_response_code($item['httpResponse']),
|
102 |
-
wp_remote_retrieve_response_message($item['httpResponse'])
|
103 |
-
);
|
104 |
-
|
105 |
-
//Headers.
|
106 |
-
echo '<dt>Response headers:</dt><dd><pre>';
|
107 |
-
foreach (wp_remote_retrieve_headers($item['httpResponse']) as $name => $value) {
|
108 |
-
printf("%s: %s\n", esc_html($name), esc_html($value));
|
109 |
-
}
|
110 |
-
echo '</pre></dd>';
|
111 |
-
|
112 |
-
//Body.
|
113 |
-
$body = wp_remote_retrieve_body($item['httpResponse']);
|
114 |
-
if ( $body === '' ) {
|
115 |
-
$body = '(Empty response.)';
|
116 |
-
} else if ( strlen($body) > self::RESPONSE_BODY_LENGTH_LIMIT ) {
|
117 |
-
$length = strlen($body);
|
118 |
-
$body = substr($body, 0, self::RESPONSE_BODY_LENGTH_LIMIT)
|
119 |
-
. sprintf("\n(Long string truncated. Total length: %d bytes.)", $length);
|
120 |
-
}
|
121 |
-
|
122 |
-
printf('<dt>Response body:</dt><dd><pre>%s</pre></dd>', esc_html($body));
|
123 |
-
}
|
124 |
-
}
|
125 |
-
echo '<dl>';
|
126 |
-
}
|
127 |
-
}
|
128 |
-
|
129 |
-
exit;
|
130 |
-
}
|
131 |
-
|
132 |
-
/**
|
133 |
-
* Check access permissions and enable error display (for debugging).
|
134 |
-
*/
|
135 |
-
protected function preAjaxRequest() {
|
136 |
-
if ( !$this->updateChecker->userCanInstallUpdates() ) {
|
137 |
-
die('Access denied');
|
138 |
-
}
|
139 |
-
check_ajax_referer('puc-ajax');
|
140 |
-
|
141 |
-
error_reporting(E_ALL);
|
142 |
-
@ini_set('display_errors', 'On');
|
143 |
-
}
|
144 |
-
|
145 |
-
/**
|
146 |
-
* @param string $filePath
|
147 |
-
* @return string
|
148 |
-
*/
|
149 |
-
private function getLibraryUrl($filePath) {
|
150 |
-
$absolutePath = realpath(dirname(__FILE__) . '/../../../' . ltrim($filePath, '/'));
|
151 |
-
|
152 |
-
//Where is the library located inside the WordPress directory structure?
|
153 |
-
$absolutePath = Puc_v4p4_Factory::normalizePath($absolutePath);
|
154 |
-
|
155 |
-
$pluginDir = Puc_v4p4_Factory::normalizePath(WP_PLUGIN_DIR);
|
156 |
-
$muPluginDir = Puc_v4p4_Factory::normalizePath(WPMU_PLUGIN_DIR);
|
157 |
-
$themeDir = Puc_v4p4_Factory::normalizePath(get_theme_root());
|
158 |
-
|
159 |
-
if ( (strpos($absolutePath, $pluginDir) === 0) || (strpos($absolutePath, $muPluginDir) === 0) ) {
|
160 |
-
//It's part of a plugin.
|
161 |
-
return plugins_url(basename($absolutePath), $absolutePath);
|
162 |
-
} else if ( strpos($absolutePath, $themeDir) === 0 ) {
|
163 |
-
//It's part of a theme.
|
164 |
-
$relativePath = substr($absolutePath, strlen($themeDir) + 1);
|
165 |
-
$template = substr($relativePath, 0, strpos($relativePath, '/'));
|
166 |
-
$baseUrl = get_theme_root_uri($template);
|
167 |
-
|
168 |
-
if ( !empty($baseUrl) && $relativePath ) {
|
169 |
-
return $baseUrl . '/' . $relativePath;
|
170 |
-
}
|
171 |
-
}
|
172 |
-
|
173 |
-
return '';
|
174 |
-
}
|
175 |
-
}
|
176 |
-
|
177 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/DebugBar/Panel.php
DELETED
@@ -1,165 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('Puc_v4p4_DebugBar_Panel', false) && class_exists('Debug_Bar_Panel', false) ):
|
4 |
-
|
5 |
-
class Puc_v4p4_DebugBar_Panel extends Debug_Bar_Panel {
|
6 |
-
/** @var Puc_v4p4_UpdateChecker */
|
7 |
-
protected $updateChecker;
|
8 |
-
|
9 |
-
private $responseBox = '<div class="puc-ajax-response" style="display: none;"></div>';
|
10 |
-
|
11 |
-
public function __construct($updateChecker) {
|
12 |
-
$this->updateChecker = $updateChecker;
|
13 |
-
$title = sprintf(
|
14 |
-
'<span class="puc-debug-menu-link-%s">PUC (%s)</span>',
|
15 |
-
esc_attr($this->updateChecker->getUniqueName('uid')),
|
16 |
-
$this->updateChecker->slug
|
17 |
-
);
|
18 |
-
parent::__construct($title);
|
19 |
-
}
|
20 |
-
|
21 |
-
public function render() {
|
22 |
-
printf(
|
23 |
-
'<div class="puc-debug-bar-panel-v4" id="%1$s" data-slug="%2$s" data-uid="%3$s" data-nonce="%4$s">',
|
24 |
-
esc_attr($this->updateChecker->getUniqueName('debug-bar-panel')),
|
25 |
-
esc_attr($this->updateChecker->slug),
|
26 |
-
esc_attr($this->updateChecker->getUniqueName('uid')),
|
27 |
-
esc_attr(wp_create_nonce('puc-ajax'))
|
28 |
-
);
|
29 |
-
|
30 |
-
$this->displayConfiguration();
|
31 |
-
$this->displayStatus();
|
32 |
-
$this->displayCurrentUpdate();
|
33 |
-
|
34 |
-
echo '</div>';
|
35 |
-
}
|
36 |
-
|
37 |
-
private function displayConfiguration() {
|
38 |
-
echo '<h3>Configuration</h3>';
|
39 |
-
echo '<table class="puc-debug-data">';
|
40 |
-
$this->displayConfigHeader();
|
41 |
-
$this->row('Slug', htmlentities($this->updateChecker->slug));
|
42 |
-
$this->row('DB option', htmlentities($this->updateChecker->optionName));
|
43 |
-
|
44 |
-
$requestInfoButton = $this->getMetadataButton();
|
45 |
-
$this->row('Metadata URL', htmlentities($this->updateChecker->metadataUrl) . ' ' . $requestInfoButton . $this->responseBox);
|
46 |
-
|
47 |
-
$scheduler = $this->updateChecker->scheduler;
|
48 |
-
if ( $scheduler->checkPeriod > 0 ) {
|
49 |
-
$this->row('Automatic checks', 'Every ' . $scheduler->checkPeriod . ' hours');
|
50 |
-
} else {
|
51 |
-
$this->row('Automatic checks', 'Disabled');
|
52 |
-
}
|
53 |
-
|
54 |
-
if ( isset($scheduler->throttleRedundantChecks) ) {
|
55 |
-
if ( $scheduler->throttleRedundantChecks && ($scheduler->checkPeriod > 0) ) {
|
56 |
-
$this->row(
|
57 |
-
'Throttling',
|
58 |
-
sprintf(
|
59 |
-
'Enabled. If an update is already available, check for updates every %1$d hours instead of every %2$d hours.',
|
60 |
-
$scheduler->throttledCheckPeriod,
|
61 |
-
$scheduler->checkPeriod
|
62 |
-
)
|
63 |
-
);
|
64 |
-
} else {
|
65 |
-
$this->row('Throttling', 'Disabled');
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
$this->updateChecker->onDisplayConfiguration($this);
|
70 |
-
|
71 |
-
echo '</table>';
|
72 |
-
}
|
73 |
-
|
74 |
-
protected function displayConfigHeader() {
|
75 |
-
//Do nothing. This should be implemented in subclasses.
|
76 |
-
}
|
77 |
-
|
78 |
-
protected function getMetadataButton() {
|
79 |
-
return '';
|
80 |
-
}
|
81 |
-
|
82 |
-
private function displayStatus() {
|
83 |
-
echo '<h3>Status</h3>';
|
84 |
-
echo '<table class="puc-debug-data">';
|
85 |
-
$state = $this->updateChecker->getUpdateState();
|
86 |
-
$checkNowButton = '';
|
87 |
-
if ( function_exists('get_submit_button') ) {
|
88 |
-
$checkNowButton = get_submit_button(
|
89 |
-
'Check Now',
|
90 |
-
'secondary',
|
91 |
-
'puc-check-now-button',
|
92 |
-
false,
|
93 |
-
array('id' => $this->updateChecker->getUniqueName('check-now-button'))
|
94 |
-
);
|
95 |
-
}
|
96 |
-
|
97 |
-
if ( $state->getLastCheck() > 0 ) {
|
98 |
-
$this->row('Last check', $this->formatTimeWithDelta($state->getLastCheck()) . ' ' . $checkNowButton . $this->responseBox);
|
99 |
-
} else {
|
100 |
-
$this->row('Last check', 'Never');
|
101 |
-
}
|
102 |
-
|
103 |
-
$nextCheck = wp_next_scheduled($this->updateChecker->scheduler->getCronHookName());
|
104 |
-
$this->row('Next automatic check', $this->formatTimeWithDelta($nextCheck));
|
105 |
-
|
106 |
-
if ( $state->getCheckedVersion() !== '' ) {
|
107 |
-
$this->row('Checked version', htmlentities($state->getCheckedVersion()));
|
108 |
-
$this->row('Cached update', $state->getUpdate());
|
109 |
-
}
|
110 |
-
$this->row('Update checker class', htmlentities(get_class($this->updateChecker)));
|
111 |
-
echo '</table>';
|
112 |
-
}
|
113 |
-
|
114 |
-
private function displayCurrentUpdate() {
|
115 |
-
$update = $this->updateChecker->getUpdate();
|
116 |
-
if ( $update !== null ) {
|
117 |
-
echo '<h3>An Update Is Available</h3>';
|
118 |
-
echo '<table class="puc-debug-data">';
|
119 |
-
$fields = $this->getUpdateFields();
|
120 |
-
foreach($fields as $field) {
|
121 |
-
if ( property_exists($update, $field) ) {
|
122 |
-
$this->row(ucwords(str_replace('_', ' ', $field)), htmlentities($update->$field));
|
123 |
-
}
|
124 |
-
}
|
125 |
-
echo '</table>';
|
126 |
-
} else {
|
127 |
-
echo '<h3>No updates currently available</h3>';
|
128 |
-
}
|
129 |
-
}
|
130 |
-
|
131 |
-
protected function getUpdateFields() {
|
132 |
-
return array('version', 'download_url', 'slug',);
|
133 |
-
}
|
134 |
-
|
135 |
-
private function formatTimeWithDelta($unixTime) {
|
136 |
-
if ( empty($unixTime) ) {
|
137 |
-
return 'Never';
|
138 |
-
}
|
139 |
-
|
140 |
-
$delta = time() - $unixTime;
|
141 |
-
$result = human_time_diff(time(), $unixTime);
|
142 |
-
if ( $delta < 0 ) {
|
143 |
-
$result = 'after ' . $result;
|
144 |
-
} else {
|
145 |
-
$result = $result . ' ago';
|
146 |
-
}
|
147 |
-
$result .= ' (' . $this->formatTimestamp($unixTime) . ')';
|
148 |
-
return $result;
|
149 |
-
}
|
150 |
-
|
151 |
-
private function formatTimestamp($unixTime) {
|
152 |
-
return gmdate('Y-m-d H:i:s', $unixTime + (get_option('gmt_offset') * 3600));
|
153 |
-
}
|
154 |
-
|
155 |
-
public function row($name, $value) {
|
156 |
-
if ( is_object($value) || is_array($value) ) {
|
157 |
-
$value = '<pre>' . htmlentities(print_r($value, true)) . '</pre>';
|
158 |
-
} else if ($value === null) {
|
159 |
-
$value = '<code>null</code>';
|
160 |
-
}
|
161 |
-
printf('<tr><th scope="row">%1$s</th> <td>%2$s</td></tr>', $name, $value);
|
162 |
-
}
|
163 |
-
}
|
164 |
-
|
165 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/DebugBar/PluginExtension.php
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_DebugBar_PluginExtension', false) ):
|
3 |
-
|
4 |
-
class Puc_v4p4_DebugBar_PluginExtension extends Puc_v4p4_DebugBar_Extension {
|
5 |
-
/** @var Puc_v4p4_Plugin_UpdateChecker */
|
6 |
-
protected $updateChecker;
|
7 |
-
|
8 |
-
public function __construct($updateChecker) {
|
9 |
-
parent::__construct($updateChecker, 'Puc_v4p4_DebugBar_PluginPanel');
|
10 |
-
|
11 |
-
add_action('wp_ajax_puc_v4_debug_request_info', array($this, 'ajaxRequestInfo'));
|
12 |
-
}
|
13 |
-
|
14 |
-
/**
|
15 |
-
* Request plugin info and output it.
|
16 |
-
*/
|
17 |
-
public function ajaxRequestInfo() {
|
18 |
-
if ( $_POST['uid'] !== $this->updateChecker->getUniqueName('uid') ) {
|
19 |
-
return;
|
20 |
-
}
|
21 |
-
$this->preAjaxRequest();
|
22 |
-
$info = $this->updateChecker->requestInfo();
|
23 |
-
if ( $info !== null ) {
|
24 |
-
echo 'Successfully retrieved plugin info from the metadata URL:';
|
25 |
-
echo '<pre>', htmlentities(print_r($info, true)), '</pre>';
|
26 |
-
} else {
|
27 |
-
echo 'Failed to retrieve plugin info from the metadata URL.';
|
28 |
-
}
|
29 |
-
exit;
|
30 |
-
}
|
31 |
-
}
|
32 |
-
|
33 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/DebugBar/PluginPanel.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('Puc_v4p4_DebugBar_PluginPanel', false) ):
|
4 |
-
|
5 |
-
class Puc_v4p4_DebugBar_PluginPanel extends Puc_v4p4_DebugBar_Panel {
|
6 |
-
/**
|
7 |
-
* @var Puc_v4p4_Plugin_UpdateChecker
|
8 |
-
*/
|
9 |
-
protected $updateChecker;
|
10 |
-
|
11 |
-
protected function displayConfigHeader() {
|
12 |
-
$this->row('Plugin file', htmlentities($this->updateChecker->pluginFile));
|
13 |
-
parent::displayConfigHeader();
|
14 |
-
}
|
15 |
-
|
16 |
-
protected function getMetadataButton() {
|
17 |
-
$requestInfoButton = '';
|
18 |
-
if ( function_exists('get_submit_button') ) {
|
19 |
-
$requestInfoButton = get_submit_button(
|
20 |
-
'Request Info',
|
21 |
-
'secondary',
|
22 |
-
'puc-request-info-button',
|
23 |
-
false,
|
24 |
-
array('id' => $this->updateChecker->getUniqueName('request-info-button'))
|
25 |
-
);
|
26 |
-
}
|
27 |
-
return $requestInfoButton;
|
28 |
-
}
|
29 |
-
|
30 |
-
protected function getUpdateFields() {
|
31 |
-
return array_merge(
|
32 |
-
parent::getUpdateFields(),
|
33 |
-
array('homepage', 'upgrade_notice', 'tested',)
|
34 |
-
);
|
35 |
-
}
|
36 |
-
}
|
37 |
-
|
38 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/DebugBar/ThemePanel.php
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('Puc_v4p4_DebugBar_ThemePanel', false) ):
|
4 |
-
|
5 |
-
class Puc_v4p4_DebugBar_ThemePanel extends Puc_v4p4_DebugBar_Panel {
|
6 |
-
/**
|
7 |
-
* @var Puc_v4p4_Theme_UpdateChecker
|
8 |
-
*/
|
9 |
-
protected $updateChecker;
|
10 |
-
|
11 |
-
protected function displayConfigHeader() {
|
12 |
-
$this->row('Theme directory', htmlentities($this->updateChecker->directoryName));
|
13 |
-
parent::displayConfigHeader();
|
14 |
-
}
|
15 |
-
|
16 |
-
protected function getUpdateFields() {
|
17 |
-
return array_merge(parent::getUpdateFields(), array('details_url'));
|
18 |
-
}
|
19 |
-
}
|
20 |
-
|
21 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Factory.php
DELETED
@@ -1,292 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_Factory', false) ):
|
3 |
-
|
4 |
-
/**
|
5 |
-
* A factory that builds update checker instances.
|
6 |
-
*
|
7 |
-
* When multiple versions of the same class have been loaded (e.g. PluginUpdateChecker 4.0
|
8 |
-
* and 4.1), this factory will always use the latest available minor version. Register class
|
9 |
-
* versions by calling {@link PucFactory::addVersion()}.
|
10 |
-
*
|
11 |
-
* At the moment it can only build instances of the UpdateChecker class. Other classes are
|
12 |
-
* intended mainly for internal use and refer directly to specific implementations.
|
13 |
-
*/
|
14 |
-
class Puc_v4p4_Factory {
|
15 |
-
protected static $classVersions = array();
|
16 |
-
protected static $sorted = false;
|
17 |
-
|
18 |
-
protected static $myMajorVersion = '';
|
19 |
-
protected static $latestCompatibleVersion = '';
|
20 |
-
|
21 |
-
/**
|
22 |
-
* Create a new instance of the update checker.
|
23 |
-
*
|
24 |
-
* This method automatically detects if you're using it for a plugin or a theme and chooses
|
25 |
-
* the appropriate implementation for your update source (JSON file, GitHub, BitBucket, etc).
|
26 |
-
*
|
27 |
-
* @see Puc_v4p4_UpdateChecker::__construct
|
28 |
-
*
|
29 |
-
* @param string $metadataUrl The URL of the metadata file, a GitHub repository, or another supported update source.
|
30 |
-
* @param string $fullPath Full path to the main plugin file or to the theme directory.
|
31 |
-
* @param string $slug Custom slug. Defaults to the name of the main plugin file or the theme directory.
|
32 |
-
* @param int $checkPeriod How often to check for updates (in hours).
|
33 |
-
* @param string $optionName Where to store book-keeping info about update checks.
|
34 |
-
* @param string $muPluginFile The plugin filename relative to the mu-plugins directory.
|
35 |
-
* @return Puc_v4p4_Plugin_UpdateChecker|Puc_v4p4_Theme_UpdateChecker|Puc_v4p4_Vcs_BaseChecker
|
36 |
-
*/
|
37 |
-
public static function buildUpdateChecker($metadataUrl, $fullPath, $slug = '', $checkPeriod = 12, $optionName = '', $muPluginFile = '') {
|
38 |
-
$fullPath = self::normalizePath($fullPath);
|
39 |
-
$id = null;
|
40 |
-
|
41 |
-
//Plugin or theme?
|
42 |
-
$themeDirectory = self::getThemeDirectoryName($fullPath);
|
43 |
-
if ( self::isPluginFile($fullPath) ) {
|
44 |
-
$type = 'Plugin';
|
45 |
-
$id = $fullPath;
|
46 |
-
} else if ( $themeDirectory !== null ) {
|
47 |
-
$type = 'Theme';
|
48 |
-
$id = $themeDirectory;
|
49 |
-
} else {
|
50 |
-
throw new RuntimeException(sprintf(
|
51 |
-
'The update checker cannot determine if "%s" is a plugin or a theme. ' .
|
52 |
-
'This is a bug. Please contact the PUC developer.',
|
53 |
-
htmlentities($fullPath)
|
54 |
-
));
|
55 |
-
}
|
56 |
-
|
57 |
-
//Which hosting service does the URL point to?
|
58 |
-
$service = self::getVcsService($metadataUrl);
|
59 |
-
|
60 |
-
$apiClass = null;
|
61 |
-
if ( empty($service) ) {
|
62 |
-
//The default is to get update information from a remote JSON file.
|
63 |
-
$checkerClass = $type . '_UpdateChecker';
|
64 |
-
} else {
|
65 |
-
//You can also use a VCS repository like GitHub.
|
66 |
-
$checkerClass = 'Vcs_' . $type . 'UpdateChecker';
|
67 |
-
$apiClass = $service . 'Api';
|
68 |
-
}
|
69 |
-
|
70 |
-
$checkerClass = self::getCompatibleClassVersion($checkerClass);
|
71 |
-
if ( $checkerClass === null ) {
|
72 |
-
trigger_error(
|
73 |
-
sprintf(
|
74 |
-
'PUC %s does not support updates for %ss %s',
|
75 |
-
htmlentities(self::$latestCompatibleVersion),
|
76 |
-
strtolower($type),
|
77 |
-
$service ? ('hosted on ' . htmlentities($service)) : 'using JSON metadata'
|
78 |
-
),
|
79 |
-
E_USER_ERROR
|
80 |
-
);
|
81 |
-
return null;
|
82 |
-
}
|
83 |
-
|
84 |
-
if ( !isset($apiClass) ) {
|
85 |
-
//Plain old update checker.
|
86 |
-
return new $checkerClass($metadataUrl, $id, $slug, $checkPeriod, $optionName, $muPluginFile);
|
87 |
-
} else {
|
88 |
-
//VCS checker + an API client.
|
89 |
-
$apiClass = self::getCompatibleClassVersion($apiClass);
|
90 |
-
if ( $apiClass === null ) {
|
91 |
-
trigger_error(sprintf(
|
92 |
-
'PUC %s does not support %s',
|
93 |
-
htmlentities(self::$latestCompatibleVersion),
|
94 |
-
htmlentities($service)
|
95 |
-
), E_USER_ERROR);
|
96 |
-
return null;
|
97 |
-
}
|
98 |
-
|
99 |
-
return new $checkerClass(
|
100 |
-
new $apiClass($metadataUrl),
|
101 |
-
$id,
|
102 |
-
$slug,
|
103 |
-
$checkPeriod,
|
104 |
-
$optionName,
|
105 |
-
$muPluginFile
|
106 |
-
);
|
107 |
-
}
|
108 |
-
}
|
109 |
-
|
110 |
-
/**
|
111 |
-
*
|
112 |
-
* Normalize a filesystem path. Introduced in WP 3.9.
|
113 |
-
* Copying here allows use of the class on earlier versions.
|
114 |
-
* This version adapted from WP 4.8.2 (unchanged since 4.5.0)
|
115 |
-
*
|
116 |
-
* @param string $path Path to normalize.
|
117 |
-
* @return string Normalized path.
|
118 |
-
*/
|
119 |
-
public static function normalizePath($path) {
|
120 |
-
if ( function_exists('wp_normalize_path') ) {
|
121 |
-
return wp_normalize_path($path);
|
122 |
-
}
|
123 |
-
$path = str_replace('\\', '/', $path);
|
124 |
-
$path = preg_replace('|(?<=.)/+|', '/', $path);
|
125 |
-
if ( substr($path, 1, 1) === ':' ) {
|
126 |
-
$path = ucfirst($path);
|
127 |
-
}
|
128 |
-
return $path;
|
129 |
-
}
|
130 |
-
|
131 |
-
/**
|
132 |
-
* Check if the path points to a plugin file.
|
133 |
-
*
|
134 |
-
* @param string $absolutePath Normalized path.
|
135 |
-
* @return bool
|
136 |
-
*/
|
137 |
-
protected static function isPluginFile($absolutePath) {
|
138 |
-
//Is the file inside the "plugins" or "mu-plugins" directory?
|
139 |
-
$pluginDir = self::normalizePath(WP_PLUGIN_DIR);
|
140 |
-
$muPluginDir = self::normalizePath(WPMU_PLUGIN_DIR);
|
141 |
-
if ( (strpos($absolutePath, $pluginDir) === 0) || (strpos($absolutePath, $muPluginDir) === 0) ) {
|
142 |
-
return true;
|
143 |
-
}
|
144 |
-
|
145 |
-
//Is it a file at all? Caution: is_file() can fail if the parent dir. doesn't have the +x permission set.
|
146 |
-
if ( !is_file($absolutePath) ) {
|
147 |
-
return false;
|
148 |
-
}
|
149 |
-
|
150 |
-
//Does it have a valid plugin header?
|
151 |
-
//This is a last-ditch check for plugins symlinked from outside the WP root.
|
152 |
-
if ( function_exists('get_file_data') ) {
|
153 |
-
$headers = get_file_data($absolutePath, array('Name' => 'Plugin Name'), 'plugin');
|
154 |
-
return !empty($headers['Name']);
|
155 |
-
}
|
156 |
-
|
157 |
-
return false;
|
158 |
-
}
|
159 |
-
|
160 |
-
/**
|
161 |
-
* Get the name of the theme's directory from a full path to a file inside that directory.
|
162 |
-
* E.g. "/abc/public_html/wp-content/themes/foo/whatever.php" => "foo".
|
163 |
-
*
|
164 |
-
* Note that subdirectories are currently not supported. For example,
|
165 |
-
* "/xyz/wp-content/themes/my-theme/includes/whatever.php" => NULL.
|
166 |
-
*
|
167 |
-
* @param string $absolutePath Normalized path.
|
168 |
-
* @return string|null Directory name, or NULL if the path doesn't point to a theme.
|
169 |
-
*/
|
170 |
-
protected static function getThemeDirectoryName($absolutePath) {
|
171 |
-
if ( is_file($absolutePath) ) {
|
172 |
-
$absolutePath = dirname($absolutePath);
|
173 |
-
}
|
174 |
-
|
175 |
-
if ( file_exists($absolutePath . '/style.css') ) {
|
176 |
-
return basename($absolutePath);
|
177 |
-
}
|
178 |
-
return null;
|
179 |
-
}
|
180 |
-
|
181 |
-
/**
|
182 |
-
* Get the name of the hosting service that the URL points to.
|
183 |
-
*
|
184 |
-
* @param string $metadataUrl
|
185 |
-
* @return string|null
|
186 |
-
*/
|
187 |
-
private static function getVcsService($metadataUrl) {
|
188 |
-
$service = null;
|
189 |
-
|
190 |
-
//Which hosting service does the URL point to?
|
191 |
-
$host = @parse_url($metadataUrl, PHP_URL_HOST);
|
192 |
-
$path = @parse_url($metadataUrl, PHP_URL_PATH);
|
193 |
-
//Check if the path looks like "/user-name/repository".
|
194 |
-
$usernameRepoRegex = '@^/?([^/]+?)/([^/#?&]+?)/?$@';
|
195 |
-
if ( preg_match($usernameRepoRegex, $path) ) {
|
196 |
-
$knownServices = array(
|
197 |
-
'github.com' => 'GitHub',
|
198 |
-
'bitbucket.org' => 'BitBucket',
|
199 |
-
'gitlab.com' => 'GitLab',
|
200 |
-
);
|
201 |
-
if ( isset($knownServices[$host]) ) {
|
202 |
-
$service = $knownServices[$host];
|
203 |
-
}
|
204 |
-
}
|
205 |
-
|
206 |
-
return $service;
|
207 |
-
}
|
208 |
-
|
209 |
-
/**
|
210 |
-
* Get the latest version of the specified class that has the same major version number
|
211 |
-
* as this factory class.
|
212 |
-
*
|
213 |
-
* @param string $class Partial class name.
|
214 |
-
* @return string|null Full class name.
|
215 |
-
*/
|
216 |
-
protected static function getCompatibleClassVersion($class) {
|
217 |
-
if ( isset(self::$classVersions[$class][self::$latestCompatibleVersion]) ) {
|
218 |
-
return self::$classVersions[$class][self::$latestCompatibleVersion];
|
219 |
-
}
|
220 |
-
return null;
|
221 |
-
}
|
222 |
-
|
223 |
-
/**
|
224 |
-
* Get the specific class name for the latest available version of a class.
|
225 |
-
*
|
226 |
-
* @param string $class
|
227 |
-
* @return null|string
|
228 |
-
*/
|
229 |
-
public static function getLatestClassVersion($class) {
|
230 |
-
if ( !self::$sorted ) {
|
231 |
-
self::sortVersions();
|
232 |
-
}
|
233 |
-
|
234 |
-
if ( isset(self::$classVersions[$class]) ) {
|
235 |
-
return reset(self::$classVersions[$class]);
|
236 |
-
} else {
|
237 |
-
return null;
|
238 |
-
}
|
239 |
-
}
|
240 |
-
|
241 |
-
/**
|
242 |
-
* Sort available class versions in descending order (i.e. newest first).
|
243 |
-
*/
|
244 |
-
protected static function sortVersions() {
|
245 |
-
foreach ( self::$classVersions as $class => $versions ) {
|
246 |
-
uksort($versions, array(__CLASS__, 'compareVersions'));
|
247 |
-
self::$classVersions[$class] = $versions;
|
248 |
-
}
|
249 |
-
self::$sorted = true;
|
250 |
-
}
|
251 |
-
|
252 |
-
protected static function compareVersions($a, $b) {
|
253 |
-
return -version_compare($a, $b);
|
254 |
-
}
|
255 |
-
|
256 |
-
/**
|
257 |
-
* Register a version of a class.
|
258 |
-
*
|
259 |
-
* @access private This method is only for internal use by the library.
|
260 |
-
*
|
261 |
-
* @param string $generalClass Class name without version numbers, e.g. 'PluginUpdateChecker'.
|
262 |
-
* @param string $versionedClass Actual class name, e.g. 'PluginUpdateChecker_1_2'.
|
263 |
-
* @param string $version Version number, e.g. '1.2'.
|
264 |
-
*/
|
265 |
-
public static function addVersion($generalClass, $versionedClass, $version) {
|
266 |
-
if ( empty(self::$myMajorVersion) ) {
|
267 |
-
$nameParts = explode('_', __CLASS__, 3);
|
268 |
-
self::$myMajorVersion = substr(ltrim($nameParts[1], 'v'), 0, 1);
|
269 |
-
}
|
270 |
-
|
271 |
-
//Store the greatest version number that matches our major version.
|
272 |
-
$components = explode('.', $version);
|
273 |
-
if ( $components[0] === self::$myMajorVersion ) {
|
274 |
-
|
275 |
-
if (
|
276 |
-
empty(self::$latestCompatibleVersion)
|
277 |
-
|| version_compare($version, self::$latestCompatibleVersion, '>')
|
278 |
-
) {
|
279 |
-
self::$latestCompatibleVersion = $version;
|
280 |
-
}
|
281 |
-
|
282 |
-
}
|
283 |
-
|
284 |
-
if ( !isset(self::$classVersions[$generalClass]) ) {
|
285 |
-
self::$classVersions[$generalClass] = array();
|
286 |
-
}
|
287 |
-
self::$classVersions[$generalClass][$version] = $versionedClass;
|
288 |
-
self::$sorted = false;
|
289 |
-
}
|
290 |
-
}
|
291 |
-
|
292 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Metadata.php
DELETED
@@ -1,132 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_Metadata', false) ):
|
3 |
-
|
4 |
-
/**
|
5 |
-
* A base container for holding information about updates and plugin metadata.
|
6 |
-
*
|
7 |
-
* @author Janis Elsts
|
8 |
-
* @copyright 2016
|
9 |
-
* @access public
|
10 |
-
*/
|
11 |
-
abstract class Puc_v4p4_Metadata {
|
12 |
-
|
13 |
-
/**
|
14 |
-
* Create an instance of this class from a JSON document.
|
15 |
-
*
|
16 |
-
* @abstract
|
17 |
-
* @param string $json
|
18 |
-
* @return self
|
19 |
-
*/
|
20 |
-
public static function fromJson(/** @noinspection PhpUnusedParameterInspection */ $json) {
|
21 |
-
throw new LogicException('The ' . __METHOD__ . ' method must be implemented by subclasses');
|
22 |
-
}
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @param string $json
|
26 |
-
* @param self $target
|
27 |
-
* @return bool
|
28 |
-
*/
|
29 |
-
protected static function createFromJson($json, $target) {
|
30 |
-
/** @var StdClass $apiResponse */
|
31 |
-
$apiResponse = json_decode($json);
|
32 |
-
if ( empty($apiResponse) || !is_object($apiResponse) ){
|
33 |
-
$errorMessage = "Failed to parse update metadata. Try validating your .json file with http://jsonlint.com/";
|
34 |
-
do_action('puc_api_error', new WP_Error('puc-invalid-json', $errorMessage));
|
35 |
-
trigger_error($errorMessage, E_USER_NOTICE);
|
36 |
-
return false;
|
37 |
-
}
|
38 |
-
|
39 |
-
$valid = $target->validateMetadata($apiResponse);
|
40 |
-
if ( is_wp_error($valid) ){
|
41 |
-
do_action('puc_api_error', $valid);
|
42 |
-
trigger_error($valid->get_error_message(), E_USER_NOTICE);
|
43 |
-
return false;
|
44 |
-
}
|
45 |
-
|
46 |
-
foreach(get_object_vars($apiResponse) as $key => $value){
|
47 |
-
$target->$key = $value;
|
48 |
-
}
|
49 |
-
|
50 |
-
return true;
|
51 |
-
}
|
52 |
-
|
53 |
-
/**
|
54 |
-
* No validation by default! Subclasses should check that the required fields are present.
|
55 |
-
*
|
56 |
-
* @param StdClass $apiResponse
|
57 |
-
* @return bool|WP_Error
|
58 |
-
*/
|
59 |
-
protected function validateMetadata(/** @noinspection PhpUnusedParameterInspection */ $apiResponse) {
|
60 |
-
return true;
|
61 |
-
}
|
62 |
-
|
63 |
-
/**
|
64 |
-
* Create a new instance by copying the necessary fields from another object.
|
65 |
-
*
|
66 |
-
* @abstract
|
67 |
-
* @param StdClass|self $object The source object.
|
68 |
-
* @return self The new copy.
|
69 |
-
*/
|
70 |
-
public static function fromObject(/** @noinspection PhpUnusedParameterInspection */ $object) {
|
71 |
-
throw new LogicException('The ' . __METHOD__ . ' method must be implemented by subclasses');
|
72 |
-
}
|
73 |
-
|
74 |
-
/**
|
75 |
-
* Create an instance of StdClass that can later be converted back to an
|
76 |
-
* update or info container. Useful for serialization and caching, as it
|
77 |
-
* avoids the "incomplete object" problem if the cached value is loaded
|
78 |
-
* before this class.
|
79 |
-
*
|
80 |
-
* @return StdClass
|
81 |
-
*/
|
82 |
-
public function toStdClass() {
|
83 |
-
$object = new stdClass();
|
84 |
-
$this->copyFields($this, $object);
|
85 |
-
return $object;
|
86 |
-
}
|
87 |
-
|
88 |
-
/**
|
89 |
-
* Transform the metadata into the format used by WordPress core.
|
90 |
-
*
|
91 |
-
* @return object
|
92 |
-
*/
|
93 |
-
abstract public function toWpFormat();
|
94 |
-
|
95 |
-
/**
|
96 |
-
* Copy known fields from one object to another.
|
97 |
-
*
|
98 |
-
* @param StdClass|self $from
|
99 |
-
* @param StdClass|self $to
|
100 |
-
*/
|
101 |
-
protected function copyFields($from, $to) {
|
102 |
-
$fields = $this->getFieldNames();
|
103 |
-
|
104 |
-
if ( property_exists($from, 'slug') && !empty($from->slug) ) {
|
105 |
-
//Let plugins add extra fields without having to create subclasses.
|
106 |
-
$fields = apply_filters($this->getPrefixedFilter('retain_fields') . '-' . $from->slug, $fields);
|
107 |
-
}
|
108 |
-
|
109 |
-
foreach ($fields as $field) {
|
110 |
-
if ( property_exists($from, $field) ) {
|
111 |
-
$to->$field = $from->$field;
|
112 |
-
}
|
113 |
-
}
|
114 |
-
}
|
115 |
-
|
116 |
-
/**
|
117 |
-
* @return string[]
|
118 |
-
*/
|
119 |
-
protected function getFieldNames() {
|
120 |
-
return array();
|
121 |
-
}
|
122 |
-
|
123 |
-
/**
|
124 |
-
* @param string $tag
|
125 |
-
* @return string
|
126 |
-
*/
|
127 |
-
protected function getPrefixedFilter($tag) {
|
128 |
-
return 'puc_' . $tag;
|
129 |
-
}
|
130 |
-
}
|
131 |
-
|
132 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/OAuthSignature.php
DELETED
@@ -1,88 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('Puc_v4p4_OAuthSignature', false) ):
|
4 |
-
|
5 |
-
/**
|
6 |
-
* A basic signature generator for zero-legged OAuth 1.0.
|
7 |
-
*/
|
8 |
-
class Puc_v4p4_OAuthSignature {
|
9 |
-
private $consumerKey = '';
|
10 |
-
private $consumerSecret = '';
|
11 |
-
|
12 |
-
public function __construct($consumerKey, $consumerSecret) {
|
13 |
-
$this->consumerKey = $consumerKey;
|
14 |
-
$this->consumerSecret = $consumerSecret;
|
15 |
-
}
|
16 |
-
|
17 |
-
/**
|
18 |
-
* Sign a URL using OAuth 1.0.
|
19 |
-
*
|
20 |
-
* @param string $url The URL to be signed. It may contain query parameters.
|
21 |
-
* @param string $method HTTP method such as "GET", "POST" and so on.
|
22 |
-
* @return string The signed URL.
|
23 |
-
*/
|
24 |
-
public function sign($url, $method = 'GET') {
|
25 |
-
$parameters = array();
|
26 |
-
|
27 |
-
//Parse query parameters.
|
28 |
-
$query = @parse_url($url, PHP_URL_QUERY);
|
29 |
-
if ( !empty($query) ) {
|
30 |
-
parse_str($query, $parsedParams);
|
31 |
-
if ( is_array($parameters) ) {
|
32 |
-
$parameters = $parsedParams;
|
33 |
-
}
|
34 |
-
//Remove the query string from the URL. We'll replace it later.
|
35 |
-
$url = substr($url, 0, strpos($url, '?'));
|
36 |
-
}
|
37 |
-
|
38 |
-
$parameters = array_merge(
|
39 |
-
$parameters,
|
40 |
-
array(
|
41 |
-
'oauth_consumer_key' => $this->consumerKey,
|
42 |
-
'oauth_nonce' => $this->nonce(),
|
43 |
-
'oauth_signature_method' => 'HMAC-SHA1',
|
44 |
-
'oauth_timestamp' => time(),
|
45 |
-
'oauth_version' => '1.0',
|
46 |
-
)
|
47 |
-
);
|
48 |
-
unset($parameters['oauth_signature']);
|
49 |
-
|
50 |
-
//Parameters must be sorted alphabetically before signing.
|
51 |
-
ksort($parameters);
|
52 |
-
|
53 |
-
//The most complicated part of the request - generating the signature.
|
54 |
-
//The string to sign contains the HTTP method, the URL path, and all of
|
55 |
-
//our query parameters. Everything is URL encoded. Then we concatenate
|
56 |
-
//them with ampersands into a single string to hash.
|
57 |
-
$encodedVerb = urlencode($method);
|
58 |
-
$encodedUrl = urlencode($url);
|
59 |
-
$encodedParams = urlencode(http_build_query($parameters, '', '&'));
|
60 |
-
|
61 |
-
$stringToSign = $encodedVerb . '&' . $encodedUrl . '&' . $encodedParams;
|
62 |
-
|
63 |
-
//Since we only have one OAuth token (the consumer secret) we only have
|
64 |
-
//to use it as our HMAC key. However, we still have to append an & to it
|
65 |
-
//as if we were using it with additional tokens.
|
66 |
-
$secret = urlencode($this->consumerSecret) . '&';
|
67 |
-
|
68 |
-
//The signature is a hash of the consumer key and the base string. Note
|
69 |
-
//that we have to get the raw output from hash_hmac and base64 encode
|
70 |
-
//the binary data result.
|
71 |
-
$parameters['oauth_signature'] = base64_encode(hash_hmac('sha1', $stringToSign, $secret, true));
|
72 |
-
|
73 |
-
return ($url . '?' . http_build_query($parameters));
|
74 |
-
}
|
75 |
-
|
76 |
-
/**
|
77 |
-
* Generate a random nonce.
|
78 |
-
*
|
79 |
-
* @return string
|
80 |
-
*/
|
81 |
-
private function nonce() {
|
82 |
-
$mt = microtime();
|
83 |
-
$rand = mt_rand();
|
84 |
-
return md5($mt . '_' . $rand);
|
85 |
-
}
|
86 |
-
}
|
87 |
-
|
88 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Plugin/Info.php
DELETED
@@ -1,130 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_Plugin_Info', false) ):
|
3 |
-
|
4 |
-
/**
|
5 |
-
* A container class for holding and transforming various plugin metadata.
|
6 |
-
*
|
7 |
-
* @author Janis Elsts
|
8 |
-
* @copyright 2016
|
9 |
-
* @access public
|
10 |
-
*/
|
11 |
-
class Puc_v4p4_Plugin_Info extends Puc_v4p4_Metadata {
|
12 |
-
//Most fields map directly to the contents of the plugin's info.json file.
|
13 |
-
//See the relevant docs for a description of their meaning.
|
14 |
-
public $name;
|
15 |
-
public $slug;
|
16 |
-
public $version;
|
17 |
-
public $homepage;
|
18 |
-
public $sections = array();
|
19 |
-
public $download_url;
|
20 |
-
|
21 |
-
public $banners;
|
22 |
-
public $icons = array();
|
23 |
-
public $translations = array();
|
24 |
-
|
25 |
-
public $author;
|
26 |
-
public $author_homepage;
|
27 |
-
|
28 |
-
public $requires;
|
29 |
-
public $tested;
|
30 |
-
public $upgrade_notice;
|
31 |
-
|
32 |
-
public $rating;
|
33 |
-
public $num_ratings;
|
34 |
-
public $downloaded;
|
35 |
-
public $active_installs;
|
36 |
-
public $last_updated;
|
37 |
-
|
38 |
-
public $id = 0; //The native WP.org API returns numeric plugin IDs, but they're not used for anything.
|
39 |
-
|
40 |
-
public $filename; //Plugin filename relative to the plugins directory.
|
41 |
-
|
42 |
-
/**
|
43 |
-
* Create a new instance of Plugin Info from JSON-encoded plugin info
|
44 |
-
* returned by an external update API.
|
45 |
-
*
|
46 |
-
* @param string $json Valid JSON string representing plugin info.
|
47 |
-
* @return self|null New instance of Plugin Info, or NULL on error.
|
48 |
-
*/
|
49 |
-
public static function fromJson($json){
|
50 |
-
$instance = new self();
|
51 |
-
|
52 |
-
if ( !parent::createFromJson($json, $instance) ) {
|
53 |
-
return null;
|
54 |
-
}
|
55 |
-
|
56 |
-
//json_decode decodes assoc. arrays as objects. We want them as arrays.
|
57 |
-
$instance->sections = (array)$instance->sections;
|
58 |
-
$instance->icons = (array)$instance->icons;
|
59 |
-
|
60 |
-
return $instance;
|
61 |
-
}
|
62 |
-
|
63 |
-
/**
|
64 |
-
* Very, very basic validation.
|
65 |
-
*
|
66 |
-
* @param StdClass $apiResponse
|
67 |
-
* @return bool|WP_Error
|
68 |
-
*/
|
69 |
-
protected function validateMetadata($apiResponse) {
|
70 |
-
if (
|
71 |
-
!isset($apiResponse->name, $apiResponse->version)
|
72 |
-
|| empty($apiResponse->name)
|
73 |
-
|| empty($apiResponse->version)
|
74 |
-
) {
|
75 |
-
return new WP_Error(
|
76 |
-
'puc-invalid-metadata',
|
77 |
-
"The plugin metadata file does not contain the required 'name' and/or 'version' keys."
|
78 |
-
);
|
79 |
-
}
|
80 |
-
return true;
|
81 |
-
}
|
82 |
-
|
83 |
-
|
84 |
-
/**
|
85 |
-
* Transform plugin info into the format used by the native WordPress.org API
|
86 |
-
*
|
87 |
-
* @return object
|
88 |
-
*/
|
89 |
-
public function toWpFormat(){
|
90 |
-
$info = new stdClass;
|
91 |
-
|
92 |
-
//The custom update API is built so that many fields have the same name and format
|
93 |
-
//as those returned by the native WordPress.org API. These can be assigned directly.
|
94 |
-
$sameFormat = array(
|
95 |
-
'name', 'slug', 'version', 'requires', 'tested', 'rating', 'upgrade_notice',
|
96 |
-
'num_ratings', 'downloaded', 'active_installs', 'homepage', 'last_updated',
|
97 |
-
);
|
98 |
-
foreach($sameFormat as $field){
|
99 |
-
if ( isset($this->$field) ) {
|
100 |
-
$info->$field = $this->$field;
|
101 |
-
} else {
|
102 |
-
$info->$field = null;
|
103 |
-
}
|
104 |
-
}
|
105 |
-
|
106 |
-
//Other fields need to be renamed and/or transformed.
|
107 |
-
$info->download_link = $this->download_url;
|
108 |
-
$info->author = $this->getFormattedAuthor();
|
109 |
-
$info->sections = array_merge(array('description' => ''), $this->sections);
|
110 |
-
|
111 |
-
if ( !empty($this->banners) ) {
|
112 |
-
//WP expects an array with two keys: "high" and "low". Both are optional.
|
113 |
-
//Docs: https://wordpress.org/plugins/about/faq/#banners
|
114 |
-
$info->banners = is_object($this->banners) ? get_object_vars($this->banners) : $this->banners;
|
115 |
-
$info->banners = array_intersect_key($info->banners, array('high' => true, 'low' => true));
|
116 |
-
}
|
117 |
-
|
118 |
-
return $info;
|
119 |
-
}
|
120 |
-
|
121 |
-
protected function getFormattedAuthor() {
|
122 |
-
if ( !empty($this->author_homepage) ){
|
123 |
-
/** @noinspection HtmlUnknownTarget */
|
124 |
-
return sprintf('<a href="%s">%s</a>', $this->author_homepage, $this->author);
|
125 |
-
}
|
126 |
-
return $this->author;
|
127 |
-
}
|
128 |
-
}
|
129 |
-
|
130 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Plugin/Update.php
DELETED
@@ -1,110 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_Plugin_Update', false) ):
|
3 |
-
|
4 |
-
/**
|
5 |
-
* A simple container class for holding information about an available update.
|
6 |
-
*
|
7 |
-
* @author Janis Elsts
|
8 |
-
* @copyright 2016
|
9 |
-
* @access public
|
10 |
-
*/
|
11 |
-
class Puc_v4p4_Plugin_Update extends Puc_v4p4_Update {
|
12 |
-
public $id = 0;
|
13 |
-
public $homepage;
|
14 |
-
public $upgrade_notice;
|
15 |
-
public $tested;
|
16 |
-
public $icons = array();
|
17 |
-
public $filename; //Plugin filename relative to the plugins directory.
|
18 |
-
|
19 |
-
protected static $extraFields = array(
|
20 |
-
'id', 'homepage', 'tested', 'upgrade_notice', 'icons', 'filename',
|
21 |
-
);
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Create a new instance of PluginUpdate from its JSON-encoded representation.
|
25 |
-
*
|
26 |
-
* @param string $json
|
27 |
-
* @return Puc_v4p4_Plugin_Update|null
|
28 |
-
*/
|
29 |
-
public static function fromJson($json){
|
30 |
-
//Since update-related information is simply a subset of the full plugin info,
|
31 |
-
//we can parse the update JSON as if it was a plugin info string, then copy over
|
32 |
-
//the parts that we care about.
|
33 |
-
$pluginInfo = Puc_v4p4_Plugin_Info::fromJson($json);
|
34 |
-
if ( $pluginInfo !== null ) {
|
35 |
-
return self::fromPluginInfo($pluginInfo);
|
36 |
-
} else {
|
37 |
-
return null;
|
38 |
-
}
|
39 |
-
}
|
40 |
-
|
41 |
-
/**
|
42 |
-
* Create a new instance of PluginUpdate based on an instance of PluginInfo.
|
43 |
-
* Basically, this just copies a subset of fields from one object to another.
|
44 |
-
*
|
45 |
-
* @param Puc_v4p4_Plugin_Info $info
|
46 |
-
* @return Puc_v4p4_Plugin_Update
|
47 |
-
*/
|
48 |
-
public static function fromPluginInfo($info){
|
49 |
-
return self::fromObject($info);
|
50 |
-
}
|
51 |
-
|
52 |
-
/**
|
53 |
-
* Create a new instance by copying the necessary fields from another object.
|
54 |
-
*
|
55 |
-
* @param StdClass|Puc_v4p4_Plugin_Info|Puc_v4p4_Plugin_Update $object The source object.
|
56 |
-
* @return Puc_v4p4_Plugin_Update The new copy.
|
57 |
-
*/
|
58 |
-
public static function fromObject($object) {
|
59 |
-
$update = new self();
|
60 |
-
$update->copyFields($object, $update);
|
61 |
-
return $update;
|
62 |
-
}
|
63 |
-
|
64 |
-
/**
|
65 |
-
* @return string[]
|
66 |
-
*/
|
67 |
-
protected function getFieldNames() {
|
68 |
-
return array_merge(parent::getFieldNames(), self::$extraFields);
|
69 |
-
}
|
70 |
-
|
71 |
-
/**
|
72 |
-
* Transform the update into the format used by WordPress native plugin API.
|
73 |
-
*
|
74 |
-
* @return object
|
75 |
-
*/
|
76 |
-
public function toWpFormat() {
|
77 |
-
$update = parent::toWpFormat();
|
78 |
-
|
79 |
-
$update->id = $this->id;
|
80 |
-
$update->url = $this->homepage;
|
81 |
-
$update->tested = $this->tested;
|
82 |
-
$update->plugin = $this->filename;
|
83 |
-
|
84 |
-
if ( !empty($this->upgrade_notice) ) {
|
85 |
-
$update->upgrade_notice = $this->upgrade_notice;
|
86 |
-
}
|
87 |
-
|
88 |
-
if ( !empty($this->icons) && is_array($this->icons) ) {
|
89 |
-
//This should be an array with up to 4 keys: 'svg', '1x', '2x' and 'default'.
|
90 |
-
//Docs: https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/#plugin-icons
|
91 |
-
$icons = array_intersect_key(
|
92 |
-
$this->icons,
|
93 |
-
array('svg' => true, '1x' => true, '2x' => true, 'default' => true)
|
94 |
-
);
|
95 |
-
if ( !empty($icons) ) {
|
96 |
-
$update->icons = $icons;
|
97 |
-
|
98 |
-
//It appears that the 'default' icon isn't used anywhere in WordPress 4.9,
|
99 |
-
//but lets set it just in case a future release needs it.
|
100 |
-
if ( !isset($update->icons['default']) ) {
|
101 |
-
$update->icons['default'] = current($update->icons);
|
102 |
-
}
|
103 |
-
}
|
104 |
-
}
|
105 |
-
|
106 |
-
return $update;
|
107 |
-
}
|
108 |
-
}
|
109 |
-
|
110 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php
DELETED
@@ -1,740 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_Plugin_UpdateChecker', false) ):
|
3 |
-
|
4 |
-
/**
|
5 |
-
* A custom plugin update checker.
|
6 |
-
*
|
7 |
-
* @author Janis Elsts
|
8 |
-
* @copyright 2016
|
9 |
-
* @access public
|
10 |
-
*/
|
11 |
-
class Puc_v4p4_Plugin_UpdateChecker extends Puc_v4p4_UpdateChecker {
|
12 |
-
protected $updateTransient = 'update_plugins';
|
13 |
-
protected $translationType = 'plugin';
|
14 |
-
|
15 |
-
public $pluginAbsolutePath = ''; //Full path of the main plugin file.
|
16 |
-
public $pluginFile = ''; //Plugin filename relative to the plugins directory. Many WP APIs use this to identify plugins.
|
17 |
-
public $muPluginFile = ''; //For MU plugins, the plugin filename relative to the mu-plugins directory.
|
18 |
-
|
19 |
-
private $cachedInstalledVersion = null;
|
20 |
-
private $manualCheckErrorTransient = '';
|
21 |
-
|
22 |
-
/**
|
23 |
-
* Class constructor.
|
24 |
-
*
|
25 |
-
* @param string $metadataUrl The URL of the plugin's metadata file.
|
26 |
-
* @param string $pluginFile Fully qualified path to the main plugin file.
|
27 |
-
* @param string $slug The plugin's 'slug'. If not specified, the filename part of $pluginFile sans '.php' will be used as the slug.
|
28 |
-
* @param integer $checkPeriod How often to check for updates (in hours). Defaults to checking every 12 hours. Set to 0 to disable automatic update checks.
|
29 |
-
* @param string $optionName Where to store book-keeping info about update checks. Defaults to 'external_updates-$slug'.
|
30 |
-
* @param string $muPluginFile Optional. The plugin filename relative to the mu-plugins directory.
|
31 |
-
*/
|
32 |
-
public function __construct($metadataUrl, $pluginFile, $slug = '', $checkPeriod = 12, $optionName = '', $muPluginFile = ''){
|
33 |
-
$this->pluginAbsolutePath = $pluginFile;
|
34 |
-
$this->pluginFile = plugin_basename($this->pluginAbsolutePath);
|
35 |
-
$this->muPluginFile = $muPluginFile;
|
36 |
-
|
37 |
-
//If no slug is specified, use the name of the main plugin file as the slug.
|
38 |
-
//For example, 'my-cool-plugin/cool-plugin.php' becomes 'cool-plugin'.
|
39 |
-
if ( empty($slug) ){
|
40 |
-
$slug = basename($this->pluginFile, '.php');
|
41 |
-
}
|
42 |
-
|
43 |
-
//Plugin slugs must be unique.
|
44 |
-
$slugCheckFilter = 'puc_is_slug_in_use-' . $this->slug;
|
45 |
-
$slugUsedBy = apply_filters($slugCheckFilter, false);
|
46 |
-
if ( $slugUsedBy ) {
|
47 |
-
$this->triggerError(sprintf(
|
48 |
-
'Plugin slug "%s" is already in use by %s. Slugs must be unique.',
|
49 |
-
htmlentities($this->slug),
|
50 |
-
htmlentities($slugUsedBy)
|
51 |
-
), E_USER_ERROR);
|
52 |
-
}
|
53 |
-
add_filter($slugCheckFilter, array($this, 'getAbsolutePath'));
|
54 |
-
|
55 |
-
//Backwards compatibility: If the plugin is a mu-plugin but no $muPluginFile is specified, assume
|
56 |
-
//it's the same as $pluginFile given that it's not in a subdirectory (WP only looks in the base dir).
|
57 |
-
if ( (strpbrk($this->pluginFile, '/\\') === false) && $this->isUnknownMuPlugin() ) {
|
58 |
-
$this->muPluginFile = $this->pluginFile;
|
59 |
-
}
|
60 |
-
|
61 |
-
//To prevent a crash during plugin uninstallation, remove updater hooks when the user removes the plugin.
|
62 |
-
//Details: https://github.com/YahnisElsts/plugin-update-checker/issues/138#issuecomment-335590964
|
63 |
-
add_action('uninstall_' . $this->pluginFile, array($this, 'removeHooks'));
|
64 |
-
|
65 |
-
$this->manualCheckErrorTransient = $this->getUniqueName('manual_check_errors');
|
66 |
-
|
67 |
-
parent::__construct($metadataUrl, dirname($this->pluginFile), $slug, $checkPeriod, $optionName);
|
68 |
-
}
|
69 |
-
|
70 |
-
/**
|
71 |
-
* Create an instance of the scheduler.
|
72 |
-
*
|
73 |
-
* @param int $checkPeriod
|
74 |
-
* @return Puc_v4p4_Scheduler
|
75 |
-
*/
|
76 |
-
protected function createScheduler($checkPeriod) {
|
77 |
-
$scheduler = new Puc_v4p4_Scheduler($this, $checkPeriod, array('load-plugins.php'));
|
78 |
-
register_deactivation_hook($this->pluginFile, array($scheduler, 'removeUpdaterCron'));
|
79 |
-
return $scheduler;
|
80 |
-
}
|
81 |
-
|
82 |
-
/**
|
83 |
-
* Install the hooks required to run periodic update checks and inject update info
|
84 |
-
* into WP data structures.
|
85 |
-
*
|
86 |
-
* @return void
|
87 |
-
*/
|
88 |
-
protected function installHooks(){
|
89 |
-
//Override requests for plugin information
|
90 |
-
add_filter('plugins_api', array($this, 'injectInfo'), 20, 3);
|
91 |
-
|
92 |
-
add_filter('plugin_row_meta', array($this, 'addViewDetailsLink'), 10, 3);
|
93 |
-
add_filter('plugin_row_meta', array($this, 'addCheckForUpdatesLink'), 10, 2);
|
94 |
-
add_action('admin_init', array($this, 'handleManualCheck'));
|
95 |
-
add_action('all_admin_notices', array($this, 'displayManualCheckResult'));
|
96 |
-
|
97 |
-
//Clear the version number cache when something - anything - is upgraded or WP clears the update cache.
|
98 |
-
add_filter('upgrader_post_install', array($this, 'clearCachedVersion'));
|
99 |
-
add_action('delete_site_transient_update_plugins', array($this, 'clearCachedVersion'));
|
100 |
-
|
101 |
-
parent::installHooks();
|
102 |
-
}
|
103 |
-
|
104 |
-
/**
|
105 |
-
* Remove update checker hooks.
|
106 |
-
*
|
107 |
-
* The intent is to prevent a fatal error that can happen if the plugin has an uninstall
|
108 |
-
* hook. During uninstallation, WP includes the main plugin file (which creates a PUC instance),
|
109 |
-
* the uninstall hook runs, WP deletes the plugin files and then updates some transients.
|
110 |
-
* If PUC hooks are still around at this time, they could throw an error while trying to
|
111 |
-
* autoload classes from files that no longer exist.
|
112 |
-
*
|
113 |
-
* The "site_transient_{$transient}" filter is the main problem here, but let's also remove
|
114 |
-
* most other PUC hooks to be safe.
|
115 |
-
*
|
116 |
-
* @internal
|
117 |
-
*/
|
118 |
-
public function removeHooks() {
|
119 |
-
parent::removeHooks();
|
120 |
-
|
121 |
-
remove_filter('plugins_api', array($this, 'injectInfo'), 20);
|
122 |
-
|
123 |
-
remove_filter('plugin_row_meta', array($this, 'addViewDetailsLink'), 10);
|
124 |
-
remove_filter('plugin_row_meta', array($this, 'addCheckForUpdatesLink'), 10);
|
125 |
-
remove_action('admin_init', array($this, 'handleManualCheck'));
|
126 |
-
remove_action('all_admin_notices', array($this, 'displayManualCheckResult'));
|
127 |
-
|
128 |
-
remove_filter('upgrader_post_install', array($this, 'clearCachedVersion'));
|
129 |
-
remove_action('delete_site_transient_update_plugins', array($this, 'clearCachedVersion'));
|
130 |
-
}
|
131 |
-
|
132 |
-
/**
|
133 |
-
* Retrieve plugin info from the configured API endpoint.
|
134 |
-
*
|
135 |
-
* @uses wp_remote_get()
|
136 |
-
*
|
137 |
-
* @param array $queryArgs Additional query arguments to append to the request. Optional.
|
138 |
-
* @return Puc_v4p4_Plugin_Info
|
139 |
-
*/
|
140 |
-
public function requestInfo($queryArgs = array()) {
|
141 |
-
list($pluginInfo, $result) = $this->requestMetadata('Puc_v4p4_Plugin_Info', 'request_info', $queryArgs);
|
142 |
-
|
143 |
-
if ( $pluginInfo !== null ) {
|
144 |
-
/** @var Puc_v4p4_Plugin_Info $pluginInfo */
|
145 |
-
$pluginInfo->filename = $this->pluginFile;
|
146 |
-
$pluginInfo->slug = $this->slug;
|
147 |
-
}
|
148 |
-
|
149 |
-
$pluginInfo = apply_filters($this->getUniqueName('request_info_result'), $pluginInfo, $result);
|
150 |
-
return $pluginInfo;
|
151 |
-
}
|
152 |
-
|
153 |
-
/**
|
154 |
-
* Retrieve the latest update (if any) from the configured API endpoint.
|
155 |
-
*
|
156 |
-
* @uses PluginUpdateChecker::requestInfo()
|
157 |
-
*
|
158 |
-
* @return Puc_v4p4_Update|null An instance of Plugin_Update, or NULL when no updates are available.
|
159 |
-
*/
|
160 |
-
public function requestUpdate() {
|
161 |
-
//For the sake of simplicity, this function just calls requestInfo()
|
162 |
-
//and transforms the result accordingly.
|
163 |
-
$pluginInfo = $this->requestInfo(array('checking_for_updates' => '1'));
|
164 |
-
if ( $pluginInfo === null ){
|
165 |
-
return null;
|
166 |
-
}
|
167 |
-
$update = Puc_v4p4_Plugin_Update::fromPluginInfo($pluginInfo);
|
168 |
-
|
169 |
-
$update = $this->filterUpdateResult($update);
|
170 |
-
|
171 |
-
return $update;
|
172 |
-
}
|
173 |
-
|
174 |
-
/**
|
175 |
-
* Get the currently installed version of the plugin.
|
176 |
-
*
|
177 |
-
* @return string Version number.
|
178 |
-
*/
|
179 |
-
public function getInstalledVersion(){
|
180 |
-
if ( isset($this->cachedInstalledVersion) ) {
|
181 |
-
return $this->cachedInstalledVersion;
|
182 |
-
}
|
183 |
-
|
184 |
-
$pluginHeader = $this->getPluginHeader();
|
185 |
-
if ( isset($pluginHeader['Version']) ) {
|
186 |
-
$this->cachedInstalledVersion = $pluginHeader['Version'];
|
187 |
-
return $pluginHeader['Version'];
|
188 |
-
} else {
|
189 |
-
//This can happen if the filename points to something that is not a plugin.
|
190 |
-
$this->triggerError(
|
191 |
-
sprintf(
|
192 |
-
"Can't to read the Version header for '%s'. The filename is incorrect or is not a plugin.",
|
193 |
-
$this->pluginFile
|
194 |
-
),
|
195 |
-
E_USER_WARNING
|
196 |
-
);
|
197 |
-
return null;
|
198 |
-
}
|
199 |
-
}
|
200 |
-
|
201 |
-
/**
|
202 |
-
* Get plugin's metadata from its file header.
|
203 |
-
*
|
204 |
-
* @return array
|
205 |
-
*/
|
206 |
-
protected function getPluginHeader() {
|
207 |
-
if ( !is_file($this->pluginAbsolutePath) ) {
|
208 |
-
//This can happen if the plugin filename is wrong.
|
209 |
-
$this->triggerError(
|
210 |
-
sprintf(
|
211 |
-
"Can't to read the plugin header for '%s'. The file does not exist.",
|
212 |
-
$this->pluginFile
|
213 |
-
),
|
214 |
-
E_USER_WARNING
|
215 |
-
);
|
216 |
-
return array();
|
217 |
-
}
|
218 |
-
|
219 |
-
if ( !function_exists('get_plugin_data') ){
|
220 |
-
/** @noinspection PhpIncludeInspection */
|
221 |
-
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
222 |
-
}
|
223 |
-
return get_plugin_data($this->pluginAbsolutePath, false, false);
|
224 |
-
}
|
225 |
-
|
226 |
-
/**
|
227 |
-
* @return array
|
228 |
-
*/
|
229 |
-
protected function getHeaderNames() {
|
230 |
-
return array(
|
231 |
-
'Name' => 'Plugin Name',
|
232 |
-
'PluginURI' => 'Plugin URI',
|
233 |
-
'Version' => 'Version',
|
234 |
-
'Description' => 'Description',
|
235 |
-
'Author' => 'Author',
|
236 |
-
'AuthorURI' => 'Author URI',
|
237 |
-
'TextDomain' => 'Text Domain',
|
238 |
-
'DomainPath' => 'Domain Path',
|
239 |
-
'Network' => 'Network',
|
240 |
-
|
241 |
-
//The newest WordPress version that this plugin requires or has been tested with.
|
242 |
-
//We support several different formats for compatibility with other libraries.
|
243 |
-
'Tested WP' => 'Tested WP',
|
244 |
-
'Requires WP' => 'Requires WP',
|
245 |
-
'Tested up to' => 'Tested up to',
|
246 |
-
'Requires at least' => 'Requires at least',
|
247 |
-
);
|
248 |
-
}
|
249 |
-
|
250 |
-
|
251 |
-
/**
|
252 |
-
* Intercept plugins_api() calls that request information about our plugin and
|
253 |
-
* use the configured API endpoint to satisfy them.
|
254 |
-
*
|
255 |
-
* @see plugins_api()
|
256 |
-
*
|
257 |
-
* @param mixed $result
|
258 |
-
* @param string $action
|
259 |
-
* @param array|object $args
|
260 |
-
* @return mixed
|
261 |
-
*/
|
262 |
-
public function injectInfo($result, $action = null, $args = null){
|
263 |
-
$relevant = ($action == 'plugin_information') && isset($args->slug) && (
|
264 |
-
($args->slug == $this->slug) || ($args->slug == dirname($this->pluginFile))
|
265 |
-
);
|
266 |
-
if ( !$relevant ) {
|
267 |
-
return $result;
|
268 |
-
}
|
269 |
-
|
270 |
-
$pluginInfo = $this->requestInfo();
|
271 |
-
$pluginInfo = apply_filters($this->getUniqueName('pre_inject_info'), $pluginInfo);
|
272 |
-
if ( $pluginInfo ) {
|
273 |
-
return $pluginInfo->toWpFormat();
|
274 |
-
}
|
275 |
-
|
276 |
-
return $result;
|
277 |
-
}
|
278 |
-
|
279 |
-
protected function shouldShowUpdates() {
|
280 |
-
//No update notifications for mu-plugins unless explicitly enabled. The MU plugin file
|
281 |
-
//is usually different from the main plugin file so the update wouldn't show up properly anyway.
|
282 |
-
return !$this->isUnknownMuPlugin();
|
283 |
-
}
|
284 |
-
|
285 |
-
/**
|
286 |
-
* @param stdClass|null $updates
|
287 |
-
* @param stdClass $updateToAdd
|
288 |
-
* @return stdClass
|
289 |
-
*/
|
290 |
-
protected function addUpdateToList($updates, $updateToAdd) {
|
291 |
-
if ( $this->isMuPlugin() ) {
|
292 |
-
//WP does not support automatic update installation for mu-plugins, but we can
|
293 |
-
//still display a notice.
|
294 |
-
$updateToAdd->package = null;
|
295 |
-
}
|
296 |
-
return parent::addUpdateToList($updates, $updateToAdd);
|
297 |
-
}
|
298 |
-
|
299 |
-
/**
|
300 |
-
* @param stdClass|null $updates
|
301 |
-
* @return stdClass|null
|
302 |
-
*/
|
303 |
-
protected function removeUpdateFromList($updates) {
|
304 |
-
$updates = parent::removeUpdateFromList($updates);
|
305 |
-
if ( !empty($this->muPluginFile) && isset($updates, $updates->response) ) {
|
306 |
-
unset($updates->response[$this->muPluginFile]);
|
307 |
-
}
|
308 |
-
return $updates;
|
309 |
-
}
|
310 |
-
|
311 |
-
/**
|
312 |
-
* For plugins, the update array is indexed by the plugin filename relative to the "plugins"
|
313 |
-
* directory. Example: "plugin-name/plugin.php".
|
314 |
-
*
|
315 |
-
* @return string
|
316 |
-
*/
|
317 |
-
protected function getUpdateListKey() {
|
318 |
-
if ( $this->isMuPlugin() ) {
|
319 |
-
return $this->muPluginFile;
|
320 |
-
}
|
321 |
-
return $this->pluginFile;
|
322 |
-
}
|
323 |
-
|
324 |
-
/**
|
325 |
-
* Alias for isBeingUpgraded().
|
326 |
-
*
|
327 |
-
* @deprecated
|
328 |
-
* @param WP_Upgrader|null $upgrader The upgrader that's performing the current update.
|
329 |
-
* @return bool
|
330 |
-
*/
|
331 |
-
public function isPluginBeingUpgraded($upgrader = null) {
|
332 |
-
return $this->isBeingUpgraded($upgrader);
|
333 |
-
}
|
334 |
-
|
335 |
-
/**
|
336 |
-
* Is there an update being installed for this plugin, right now?
|
337 |
-
*
|
338 |
-
* @param WP_Upgrader|null $upgrader
|
339 |
-
* @return bool
|
340 |
-
*/
|
341 |
-
public function isBeingUpgraded($upgrader = null) {
|
342 |
-
return $this->upgraderStatus->isPluginBeingUpgraded($this->pluginFile, $upgrader);
|
343 |
-
}
|
344 |
-
|
345 |
-
/**
|
346 |
-
* Get the details of the currently available update, if any.
|
347 |
-
*
|
348 |
-
* If no updates are available, or if the last known update version is below or equal
|
349 |
-
* to the currently installed version, this method will return NULL.
|
350 |
-
*
|
351 |
-
* Uses cached update data. To retrieve update information straight from
|
352 |
-
* the metadata URL, call requestUpdate() instead.
|
353 |
-
*
|
354 |
-
* @return Puc_v4p4_Plugin_Update|null
|
355 |
-
*/
|
356 |
-
public function getUpdate() {
|
357 |
-
$update = parent::getUpdate();
|
358 |
-
if ( isset($update) ) {
|
359 |
-
/** @var Puc_v4p4_Plugin_Update $update */
|
360 |
-
$update->filename = $this->pluginFile;
|
361 |
-
}
|
362 |
-
return $update;
|
363 |
-
}
|
364 |
-
|
365 |
-
/**
|
366 |
-
* Add a "Check for updates" link to the plugin row in the "Plugins" page. By default,
|
367 |
-
* the new link will appear after the "Visit plugin site" link if present, otherwise
|
368 |
-
* after the "View plugin details" link.
|
369 |
-
*
|
370 |
-
* You can change the link text by using the "puc_manual_check_link-$slug" filter.
|
371 |
-
* Returning an empty string from the filter will disable the link.
|
372 |
-
*
|
373 |
-
* @param array $pluginMeta Array of meta links.
|
374 |
-
* @param string $pluginFile
|
375 |
-
* @return array
|
376 |
-
*/
|
377 |
-
public function addCheckForUpdatesLink($pluginMeta, $pluginFile) {
|
378 |
-
$isRelevant = ($pluginFile == $this->pluginFile)
|
379 |
-
|| (!empty($this->muPluginFile) && $pluginFile == $this->muPluginFile);
|
380 |
-
|
381 |
-
if ( $isRelevant && $this->userCanInstallUpdates() ) {
|
382 |
-
$linkUrl = wp_nonce_url(
|
383 |
-
add_query_arg(
|
384 |
-
array(
|
385 |
-
'puc_check_for_updates' => 1,
|
386 |
-
'puc_slug' => $this->slug,
|
387 |
-
),
|
388 |
-
self_admin_url('plugins.php')
|
389 |
-
),
|
390 |
-
'puc_check_for_updates'
|
391 |
-
);
|
392 |
-
|
393 |
-
$linkText = apply_filters(
|
394 |
-
$this->getUniqueName('manual_check_link'),
|
395 |
-
__('Check for updates', 'plugin-update-checker')
|
396 |
-
);
|
397 |
-
if ( !empty($linkText) ) {
|
398 |
-
/** @noinspection HtmlUnknownTarget */
|
399 |
-
$pluginMeta[] = sprintf('<a href="%s">%s</a>', esc_attr($linkUrl), $linkText);
|
400 |
-
}
|
401 |
-
}
|
402 |
-
return $pluginMeta;
|
403 |
-
}
|
404 |
-
|
405 |
-
/**
|
406 |
-
* Add a "View Details" link to the plugin row in the "Plugins" page. By default,
|
407 |
-
* the new link will appear before the "Visit plugin site" link (if present).
|
408 |
-
*
|
409 |
-
* You can change the link text by using the "puc_view_details_link-$slug" filter.
|
410 |
-
* Returning an empty string from the filter will disable the link.
|
411 |
-
*
|
412 |
-
* You can change the position of the link using the
|
413 |
-
* "puc_view_details_link_position-$slug" filter.
|
414 |
-
* Returning 'before' or 'after' will place the link immediately before/after the
|
415 |
-
* "Visit plugin site" link
|
416 |
-
* Returning 'append' places the link after any existing links at the time of the hook.
|
417 |
-
* Returning 'replace' replaces the "Visit plugin site" link
|
418 |
-
* Returning anything else disables the link when there is a "Visit plugin site" link.
|
419 |
-
*
|
420 |
-
* If there is no "Visit plugin site" link 'append' is always used!
|
421 |
-
*
|
422 |
-
* @param array $pluginMeta Array of meta links.
|
423 |
-
* @param string $pluginFile
|
424 |
-
* @param array $pluginData Array of plugin header data.
|
425 |
-
* @return array
|
426 |
-
*/
|
427 |
-
public function addViewDetailsLink($pluginMeta, $pluginFile, $pluginData = array()) {
|
428 |
-
$isRelevant = ($pluginFile == $this->pluginFile)
|
429 |
-
|| (!empty($this->muPluginFile) && $pluginFile == $this->muPluginFile);
|
430 |
-
|
431 |
-
if ( $isRelevant && $this->userCanInstallUpdates() && !isset($pluginData['slug']) ) {
|
432 |
-
$linkText = apply_filters($this->getUniqueName('view_details_link'), __('View details'));
|
433 |
-
if ( !empty($linkText) ) {
|
434 |
-
$viewDetailsLinkPosition = 'append';
|
435 |
-
|
436 |
-
//Find the "Visit plugin site" link (if present).
|
437 |
-
$visitPluginSiteLinkIndex = count($pluginMeta) - 1;
|
438 |
-
if ( $pluginData['PluginURI'] ) {
|
439 |
-
$escapedPluginUri = esc_url($pluginData['PluginURI']);
|
440 |
-
foreach ($pluginMeta as $linkIndex => $existingLink) {
|
441 |
-
if ( strpos($existingLink, $escapedPluginUri) !== false ) {
|
442 |
-
$visitPluginSiteLinkIndex = $linkIndex;
|
443 |
-
$viewDetailsLinkPosition = apply_filters(
|
444 |
-
$this->getUniqueName('view_details_link_position'),
|
445 |
-
'before'
|
446 |
-
);
|
447 |
-
break;
|
448 |
-
}
|
449 |
-
}
|
450 |
-
}
|
451 |
-
|
452 |
-
$viewDetailsLink = sprintf('<a href="%s" class="thickbox open-plugin-details-modal" aria-label="%s" data-title="%s">%s</a>',
|
453 |
-
esc_url(network_admin_url('plugin-install.php?tab=plugin-information&plugin=' . urlencode($this->slug) .
|
454 |
-
'&TB_iframe=true&width=600&height=550')),
|
455 |
-
esc_attr(sprintf(__('More information about %s'), $pluginData['Name'])),
|
456 |
-
esc_attr($pluginData['Name']),
|
457 |
-
$linkText
|
458 |
-
);
|
459 |
-
switch ($viewDetailsLinkPosition) {
|
460 |
-
case 'before':
|
461 |
-
array_splice($pluginMeta, $visitPluginSiteLinkIndex, 0, $viewDetailsLink);
|
462 |
-
break;
|
463 |
-
case 'after':
|
464 |
-
array_splice($pluginMeta, $visitPluginSiteLinkIndex + 1, 0, $viewDetailsLink);
|
465 |
-
break;
|
466 |
-
case 'replace':
|
467 |
-
$pluginMeta[$visitPluginSiteLinkIndex] = $viewDetailsLink;
|
468 |
-
break;
|
469 |
-
case 'append':
|
470 |
-
default:
|
471 |
-
$pluginMeta[] = $viewDetailsLink;
|
472 |
-
break;
|
473 |
-
}
|
474 |
-
}
|
475 |
-
}
|
476 |
-
return $pluginMeta;
|
477 |
-
}
|
478 |
-
|
479 |
-
|
480 |
-
/**
|
481 |
-
* Check for updates when the user clicks the "Check for updates" link.
|
482 |
-
* @see self::addCheckForUpdatesLink()
|
483 |
-
*
|
484 |
-
* @return void
|
485 |
-
*/
|
486 |
-
public function handleManualCheck() {
|
487 |
-
$shouldCheck =
|
488 |
-
isset($_GET['puc_check_for_updates'], $_GET['puc_slug'])
|
489 |
-
&& $_GET['puc_slug'] == $this->slug
|
490 |
-
&& $this->userCanInstallUpdates()
|
491 |
-
&& check_admin_referer('puc_check_for_updates');
|
492 |
-
|
493 |
-
if ( $shouldCheck ) {
|
494 |
-
$update = $this->checkForUpdates();
|
495 |
-
$status = ($update === null) ? 'no_update' : 'update_available';
|
496 |
-
|
497 |
-
if ( ($update === null) && !empty($this->lastRequestApiErrors) ) {
|
498 |
-
//Some errors are not critical. For example, if PUC tries to retrieve the readme.txt
|
499 |
-
//file from GitHub and gets a 404, that's an API error, but it doesn't prevent updates
|
500 |
-
//from working. Maybe the plugin simply doesn't have a readme.
|
501 |
-
//Let's only show important errors.
|
502 |
-
$foundCriticalErrors = false;
|
503 |
-
$questionableErrorCodes = array(
|
504 |
-
'puc-github-http-error',
|
505 |
-
'puc-gitlab-http-error',
|
506 |
-
'puc-bitbucket-http-error',
|
507 |
-
);
|
508 |
-
|
509 |
-
foreach ($this->lastRequestApiErrors as $item) {
|
510 |
-
$wpError = $item['error'];
|
511 |
-
/** @var WP_Error $wpError */
|
512 |
-
if ( !in_array($wpError->get_error_code(), $questionableErrorCodes) ) {
|
513 |
-
$foundCriticalErrors = true;
|
514 |
-
break;
|
515 |
-
}
|
516 |
-
}
|
517 |
-
|
518 |
-
if ( $foundCriticalErrors ) {
|
519 |
-
$status = 'error';
|
520 |
-
set_site_transient($this->manualCheckErrorTransient, $this->lastRequestApiErrors, 60);
|
521 |
-
}
|
522 |
-
}
|
523 |
-
|
524 |
-
wp_redirect(add_query_arg(
|
525 |
-
array(
|
526 |
-
'puc_update_check_result' => $status,
|
527 |
-
'puc_slug' => $this->slug,
|
528 |
-
),
|
529 |
-
self_admin_url('plugins.php')
|
530 |
-
));
|
531 |
-
}
|
532 |
-
}
|
533 |
-
|
534 |
-
/**
|
535 |
-
* Display the results of a manual update check.
|
536 |
-
* @see self::handleManualCheck()
|
537 |
-
*
|
538 |
-
* You can change the result message by using the "puc_manual_check_message-$slug" filter.
|
539 |
-
*/
|
540 |
-
public function displayManualCheckResult() {
|
541 |
-
if ( isset($_GET['puc_update_check_result'], $_GET['puc_slug']) && ($_GET['puc_slug'] == $this->slug) ) {
|
542 |
-
$status = strval($_GET['puc_update_check_result']);
|
543 |
-
$title = $this->getPluginTitle();
|
544 |
-
$noticeClass = 'updated notice-success';
|
545 |
-
$details = '';
|
546 |
-
|
547 |
-
if ( $status == 'no_update' ) {
|
548 |
-
$message = sprintf(_x('The %s plugin is up to date.', 'the plugin title', 'plugin-update-checker'), $title);
|
549 |
-
} else if ( $status == 'update_available' ) {
|
550 |
-
$message = sprintf(_x('A new version of the %s plugin is available.', 'the plugin title', 'plugin-update-checker'), $title);
|
551 |
-
} else if ( $status === 'error' ) {
|
552 |
-
$message = sprintf(_x('Could not determine if updates are available for %s.', 'the plugin title', 'plugin-update-checker'), $title);
|
553 |
-
$noticeClass = 'error notice-error';
|
554 |
-
|
555 |
-
$details = $this->formatManualCheckErrors(get_site_transient($this->manualCheckErrorTransient));
|
556 |
-
delete_site_transient($this->manualCheckErrorTransient);
|
557 |
-
} else {
|
558 |
-
$message = sprintf(__('Unknown update checker status "%s"', 'plugin-update-checker'), htmlentities($status));
|
559 |
-
$noticeClass = 'error notice-error';
|
560 |
-
}
|
561 |
-
printf(
|
562 |
-
'<div class="notice %s is-dismissible"><p>%s</p>%s</div>',
|
563 |
-
$noticeClass,
|
564 |
-
apply_filters($this->getUniqueName('manual_check_message'), $message, $status),
|
565 |
-
$details
|
566 |
-
);
|
567 |
-
}
|
568 |
-
}
|
569 |
-
|
570 |
-
/**
|
571 |
-
* Format the list of errors that were thrown during an update check.
|
572 |
-
*
|
573 |
-
* @param array $errors
|
574 |
-
* @return string
|
575 |
-
*/
|
576 |
-
protected function formatManualCheckErrors($errors) {
|
577 |
-
if ( empty($errors) ) {
|
578 |
-
return '';
|
579 |
-
}
|
580 |
-
$output = '';
|
581 |
-
|
582 |
-
$showAsList = count($errors) > 1;
|
583 |
-
if ( $showAsList ) {
|
584 |
-
$output .= '<ol>';
|
585 |
-
$formatString = '<li>%1$s <code>%2$s</code></li>';
|
586 |
-
} else {
|
587 |
-
$formatString = '<p>%1$s <code>%2$s</code></p>';
|
588 |
-
}
|
589 |
-
foreach ($errors as $item) {
|
590 |
-
$wpError = $item['error'];
|
591 |
-
/** @var WP_Error $wpError */
|
592 |
-
$output .= sprintf(
|
593 |
-
$formatString,
|
594 |
-
$wpError->get_error_message(),
|
595 |
-
$wpError->get_error_code()
|
596 |
-
);
|
597 |
-
}
|
598 |
-
if ( $showAsList ) {
|
599 |
-
$output .= '</ol>';
|
600 |
-
}
|
601 |
-
|
602 |
-
return $output;
|
603 |
-
}
|
604 |
-
|
605 |
-
/**
|
606 |
-
* Get the translated plugin title.
|
607 |
-
*
|
608 |
-
* @return string
|
609 |
-
*/
|
610 |
-
protected function getPluginTitle() {
|
611 |
-
$title = '';
|
612 |
-
$header = $this->getPluginHeader();
|
613 |
-
if ( $header && !empty($header['Name']) && isset($header['TextDomain']) ) {
|
614 |
-
$title = translate($header['Name'], $header['TextDomain']);
|
615 |
-
}
|
616 |
-
return $title;
|
617 |
-
}
|
618 |
-
|
619 |
-
/**
|
620 |
-
* Check if the current user has the required permissions to install updates.
|
621 |
-
*
|
622 |
-
* @return bool
|
623 |
-
*/
|
624 |
-
public function userCanInstallUpdates() {
|
625 |
-
return current_user_can('update_plugins');
|
626 |
-
}
|
627 |
-
|
628 |
-
/**
|
629 |
-
* Check if the plugin file is inside the mu-plugins directory.
|
630 |
-
*
|
631 |
-
* @return bool
|
632 |
-
*/
|
633 |
-
protected function isMuPlugin() {
|
634 |
-
static $cachedResult = null;
|
635 |
-
|
636 |
-
if ( $cachedResult === null ) {
|
637 |
-
//Convert both paths to the canonical form before comparison.
|
638 |
-
$muPluginDir = realpath(WPMU_PLUGIN_DIR);
|
639 |
-
$pluginPath = realpath($this->pluginAbsolutePath);
|
640 |
-
|
641 |
-
$cachedResult = (strpos($pluginPath, $muPluginDir) === 0);
|
642 |
-
}
|
643 |
-
|
644 |
-
return $cachedResult;
|
645 |
-
}
|
646 |
-
|
647 |
-
/**
|
648 |
-
* MU plugins are partially supported, but only when we know which file in mu-plugins
|
649 |
-
* corresponds to this plugin.
|
650 |
-
*
|
651 |
-
* @return bool
|
652 |
-
*/
|
653 |
-
protected function isUnknownMuPlugin() {
|
654 |
-
return empty($this->muPluginFile) && $this->isMuPlugin();
|
655 |
-
}
|
656 |
-
|
657 |
-
/**
|
658 |
-
* Clear the cached plugin version. This method can be set up as a filter (hook) and will
|
659 |
-
* return the filter argument unmodified.
|
660 |
-
*
|
661 |
-
* @param mixed $filterArgument
|
662 |
-
* @return mixed
|
663 |
-
*/
|
664 |
-
public function clearCachedVersion($filterArgument = null) {
|
665 |
-
$this->cachedInstalledVersion = null;
|
666 |
-
return $filterArgument;
|
667 |
-
}
|
668 |
-
|
669 |
-
/**
|
670 |
-
* Get absolute path to the main plugin file.
|
671 |
-
*
|
672 |
-
* @return string
|
673 |
-
*/
|
674 |
-
public function getAbsolutePath() {
|
675 |
-
return $this->pluginAbsolutePath;
|
676 |
-
}
|
677 |
-
|
678 |
-
/**
|
679 |
-
* @return string
|
680 |
-
*/
|
681 |
-
public function getAbsoluteDirectoryPath() {
|
682 |
-
return dirname($this->pluginAbsolutePath);
|
683 |
-
}
|
684 |
-
|
685 |
-
/**
|
686 |
-
* Register a callback for filtering query arguments.
|
687 |
-
*
|
688 |
-
* The callback function should take one argument - an associative array of query arguments.
|
689 |
-
* It should return a modified array of query arguments.
|
690 |
-
*
|
691 |
-
* @uses add_filter() This method is a convenience wrapper for add_filter().
|
692 |
-
*
|
693 |
-
* @param callable $callback
|
694 |
-
* @return void
|
695 |
-
*/
|
696 |
-
public function addQueryArgFilter($callback){
|
697 |
-
$this->addFilter('request_info_query_args', $callback);
|
698 |
-
}
|
699 |
-
|
700 |
-
/**
|
701 |
-
* Register a callback for filtering arguments passed to wp_remote_get().
|
702 |
-
*
|
703 |
-
* The callback function should take one argument - an associative array of arguments -
|
704 |
-
* and return a modified array or arguments. See the WP documentation on wp_remote_get()
|
705 |
-
* for details on what arguments are available and how they work.
|
706 |
-
*
|
707 |
-
* @uses add_filter() This method is a convenience wrapper for add_filter().
|
708 |
-
*
|
709 |
-
* @param callable $callback
|
710 |
-
* @return void
|
711 |
-
*/
|
712 |
-
public function addHttpRequestArgFilter($callback) {
|
713 |
-
$this->addFilter('request_info_options', $callback);
|
714 |
-
}
|
715 |
-
|
716 |
-
/**
|
717 |
-
* Register a callback for filtering the plugin info retrieved from the external API.
|
718 |
-
*
|
719 |
-
* The callback function should take two arguments. If the plugin info was retrieved
|
720 |
-
* successfully, the first argument passed will be an instance of PluginInfo. Otherwise,
|
721 |
-
* it will be NULL. The second argument will be the corresponding return value of
|
722 |
-
* wp_remote_get (see WP docs for details).
|
723 |
-
*
|
724 |
-
* The callback function should return a new or modified instance of PluginInfo or NULL.
|
725 |
-
*
|
726 |
-
* @uses add_filter() This method is a convenience wrapper for add_filter().
|
727 |
-
*
|
728 |
-
* @param callable $callback
|
729 |
-
* @return void
|
730 |
-
*/
|
731 |
-
public function addResultFilter($callback) {
|
732 |
-
$this->addFilter('request_info_result', $callback, 10, 2);
|
733 |
-
}
|
734 |
-
|
735 |
-
protected function createDebugBarExtension() {
|
736 |
-
return new Puc_v4p4_DebugBar_PluginExtension($this);
|
737 |
-
}
|
738 |
-
}
|
739 |
-
|
740 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Scheduler.php
DELETED
@@ -1,177 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_Scheduler', false) ):
|
3 |
-
|
4 |
-
/**
|
5 |
-
* The scheduler decides when and how often to check for updates.
|
6 |
-
* It calls @see Puc_v4p4_UpdateChecker::checkForUpdates() to perform the actual checks.
|
7 |
-
*/
|
8 |
-
class Puc_v4p4_Scheduler {
|
9 |
-
public $checkPeriod = 12; //How often to check for updates (in hours).
|
10 |
-
public $throttleRedundantChecks = false; //Check less often if we already know that an update is available.
|
11 |
-
public $throttledCheckPeriod = 72;
|
12 |
-
|
13 |
-
protected $hourlyCheckHooks = array('load-update.php');
|
14 |
-
|
15 |
-
/**
|
16 |
-
* @var Puc_v4p4_UpdateChecker
|
17 |
-
*/
|
18 |
-
protected $updateChecker;
|
19 |
-
|
20 |
-
private $cronHook = null;
|
21 |
-
|
22 |
-
/**
|
23 |
-
* Scheduler constructor.
|
24 |
-
*
|
25 |
-
* @param Puc_v4p4_UpdateChecker $updateChecker
|
26 |
-
* @param int $checkPeriod How often to check for updates (in hours).
|
27 |
-
* @param array $hourlyHooks
|
28 |
-
*/
|
29 |
-
public function __construct($updateChecker, $checkPeriod, $hourlyHooks = array('load-plugins.php')) {
|
30 |
-
$this->updateChecker = $updateChecker;
|
31 |
-
$this->checkPeriod = $checkPeriod;
|
32 |
-
|
33 |
-
//Set up the periodic update checks
|
34 |
-
$this->cronHook = $this->updateChecker->getUniqueName('cron_check_updates');
|
35 |
-
if ( $this->checkPeriod > 0 ){
|
36 |
-
|
37 |
-
//Trigger the check via Cron.
|
38 |
-
//Try to use one of the default schedules if possible as it's less likely to conflict
|
39 |
-
//with other plugins and their custom schedules.
|
40 |
-
$defaultSchedules = array(
|
41 |
-
1 => 'hourly',
|
42 |
-
12 => 'twicedaily',
|
43 |
-
24 => 'daily',
|
44 |
-
);
|
45 |
-
if ( array_key_exists($this->checkPeriod, $defaultSchedules) ) {
|
46 |
-
$scheduleName = $defaultSchedules[$this->checkPeriod];
|
47 |
-
} else {
|
48 |
-
//Use a custom cron schedule.
|
49 |
-
$scheduleName = 'every' . $this->checkPeriod . 'hours';
|
50 |
-
add_filter('cron_schedules', array($this, '_addCustomSchedule'));
|
51 |
-
}
|
52 |
-
|
53 |
-
if ( !wp_next_scheduled($this->cronHook) && !defined('WP_INSTALLING') ) {
|
54 |
-
wp_schedule_event(time(), $scheduleName, $this->cronHook);
|
55 |
-
}
|
56 |
-
add_action($this->cronHook, array($this, 'maybeCheckForUpdates'));
|
57 |
-
|
58 |
-
//In case Cron is disabled or unreliable, we also manually trigger
|
59 |
-
//the periodic checks while the user is browsing the Dashboard.
|
60 |
-
add_action( 'admin_init', array($this, 'maybeCheckForUpdates') );
|
61 |
-
|
62 |
-
//Like WordPress itself, we check more often on certain pages.
|
63 |
-
/** @see wp_update_plugins */
|
64 |
-
add_action('load-update-core.php', array($this, 'maybeCheckForUpdates'));
|
65 |
-
//"load-update.php" and "load-plugins.php" or "load-themes.php".
|
66 |
-
$this->hourlyCheckHooks = array_merge($this->hourlyCheckHooks, $hourlyHooks);
|
67 |
-
foreach($this->hourlyCheckHooks as $hook) {
|
68 |
-
add_action($hook, array($this, 'maybeCheckForUpdates'));
|
69 |
-
}
|
70 |
-
//This hook fires after a bulk update is complete.
|
71 |
-
add_action('upgrader_process_complete', array($this, 'maybeCheckForUpdates'), 11, 0);
|
72 |
-
|
73 |
-
} else {
|
74 |
-
//Periodic checks are disabled.
|
75 |
-
wp_clear_scheduled_hook($this->cronHook);
|
76 |
-
}
|
77 |
-
}
|
78 |
-
|
79 |
-
/**
|
80 |
-
* Check for updates if the configured check interval has already elapsed.
|
81 |
-
* Will use a shorter check interval on certain admin pages like "Dashboard -> Updates" or when doing cron.
|
82 |
-
*
|
83 |
-
* You can override the default behaviour by using the "puc_check_now-$slug" filter.
|
84 |
-
* The filter callback will be passed three parameters:
|
85 |
-
* - Current decision. TRUE = check updates now, FALSE = don't check now.
|
86 |
-
* - Last check time as a Unix timestamp.
|
87 |
-
* - Configured check period in hours.
|
88 |
-
* Return TRUE to check for updates immediately, or FALSE to cancel.
|
89 |
-
*
|
90 |
-
* This method is declared public because it's a hook callback. Calling it directly is not recommended.
|
91 |
-
*/
|
92 |
-
public function maybeCheckForUpdates(){
|
93 |
-
if ( empty($this->checkPeriod) ){
|
94 |
-
return;
|
95 |
-
}
|
96 |
-
|
97 |
-
$state = $this->updateChecker->getUpdateState();
|
98 |
-
$shouldCheck = ($state->timeSinceLastCheck() >= $this->getEffectiveCheckPeriod());
|
99 |
-
|
100 |
-
//Let plugin authors substitute their own algorithm.
|
101 |
-
$shouldCheck = apply_filters(
|
102 |
-
$this->updateChecker->getUniqueName('check_now'),
|
103 |
-
$shouldCheck,
|
104 |
-
$state->getLastCheck(),
|
105 |
-
$this->checkPeriod
|
106 |
-
);
|
107 |
-
|
108 |
-
if ( $shouldCheck ) {
|
109 |
-
$this->updateChecker->checkForUpdates();
|
110 |
-
}
|
111 |
-
}
|
112 |
-
|
113 |
-
/**
|
114 |
-
* Calculate the actual check period based on the current status and environment.
|
115 |
-
*
|
116 |
-
* @return int Check period in seconds.
|
117 |
-
*/
|
118 |
-
protected function getEffectiveCheckPeriod() {
|
119 |
-
$currentFilter = current_filter();
|
120 |
-
if ( in_array($currentFilter, array('load-update-core.php', 'upgrader_process_complete')) ) {
|
121 |
-
//Check more often when the user visits "Dashboard -> Updates" or does a bulk update.
|
122 |
-
$period = 60;
|
123 |
-
} else if ( in_array($currentFilter, $this->hourlyCheckHooks) ) {
|
124 |
-
//Also check more often on /wp-admin/update.php and the "Plugins" or "Themes" page.
|
125 |
-
$period = 3600;
|
126 |
-
} else if ( $this->throttleRedundantChecks && ($this->updateChecker->getUpdate() !== null) ) {
|
127 |
-
//Check less frequently if it's already known that an update is available.
|
128 |
-
$period = $this->throttledCheckPeriod * 3600;
|
129 |
-
} else if ( defined('DOING_CRON') && constant('DOING_CRON') ) {
|
130 |
-
//WordPress cron schedules are not exact, so lets do an update check even
|
131 |
-
//if slightly less than $checkPeriod hours have elapsed since the last check.
|
132 |
-
$cronFuzziness = 20 * 60;
|
133 |
-
$period = $this->checkPeriod * 3600 - $cronFuzziness;
|
134 |
-
} else {
|
135 |
-
$period = $this->checkPeriod * 3600;
|
136 |
-
}
|
137 |
-
|
138 |
-
return $period;
|
139 |
-
}
|
140 |
-
|
141 |
-
/**
|
142 |
-
* Add our custom schedule to the array of Cron schedules used by WP.
|
143 |
-
*
|
144 |
-
* @param array $schedules
|
145 |
-
* @return array
|
146 |
-
*/
|
147 |
-
public function _addCustomSchedule($schedules){
|
148 |
-
if ( $this->checkPeriod && ($this->checkPeriod > 0) ){
|
149 |
-
$scheduleName = 'every' . $this->checkPeriod . 'hours';
|
150 |
-
$schedules[$scheduleName] = array(
|
151 |
-
'interval' => $this->checkPeriod * 3600,
|
152 |
-
'display' => sprintf('Every %d hours', $this->checkPeriod),
|
153 |
-
);
|
154 |
-
}
|
155 |
-
return $schedules;
|
156 |
-
}
|
157 |
-
|
158 |
-
/**
|
159 |
-
* Remove the scheduled cron event that the library uses to check for updates.
|
160 |
-
*
|
161 |
-
* @return void
|
162 |
-
*/
|
163 |
-
public function removeUpdaterCron(){
|
164 |
-
wp_clear_scheduled_hook($this->cronHook);
|
165 |
-
}
|
166 |
-
|
167 |
-
/**
|
168 |
-
* Get the name of the update checker's WP-cron hook. Mostly useful for debugging.
|
169 |
-
*
|
170 |
-
* @return string
|
171 |
-
*/
|
172 |
-
public function getCronHookName() {
|
173 |
-
return $this->cronHook;
|
174 |
-
}
|
175 |
-
}
|
176 |
-
|
177 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/StateStore.php
DELETED
@@ -1,207 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('Puc_v4p4_StateStore', false) ):
|
4 |
-
|
5 |
-
class Puc_v4p4_StateStore {
|
6 |
-
/**
|
7 |
-
* @var int Last update check timestamp.
|
8 |
-
*/
|
9 |
-
protected $lastCheck = 0;
|
10 |
-
|
11 |
-
/**
|
12 |
-
* @var string Version number.
|
13 |
-
*/
|
14 |
-
protected $checkedVersion = '';
|
15 |
-
|
16 |
-
/**
|
17 |
-
* @var Puc_v4p4_Update|null Cached update.
|
18 |
-
*/
|
19 |
-
protected $update = null;
|
20 |
-
|
21 |
-
/**
|
22 |
-
* @var string Site option name.
|
23 |
-
*/
|
24 |
-
private $optionName = '';
|
25 |
-
|
26 |
-
/**
|
27 |
-
* @var bool Whether we've already tried to load the state from the database.
|
28 |
-
*/
|
29 |
-
private $isLoaded = false;
|
30 |
-
|
31 |
-
public function __construct($optionName) {
|
32 |
-
$this->optionName = $optionName;
|
33 |
-
}
|
34 |
-
|
35 |
-
/**
|
36 |
-
* Get time elapsed since the last update check.
|
37 |
-
*
|
38 |
-
* If there are no recorded update checks, this method returns a large arbitrary number
|
39 |
-
* (i.e. time since the Unix epoch).
|
40 |
-
*
|
41 |
-
* @return int Elapsed time in seconds.
|
42 |
-
*/
|
43 |
-
public function timeSinceLastCheck() {
|
44 |
-
$this->lazyLoad();
|
45 |
-
return time() - $this->lastCheck;
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
* @return int
|
50 |
-
*/
|
51 |
-
public function getLastCheck() {
|
52 |
-
$this->lazyLoad();
|
53 |
-
return $this->lastCheck;
|
54 |
-
}
|
55 |
-
|
56 |
-
/**
|
57 |
-
* Set the time of the last update check to the current timestamp.
|
58 |
-
*
|
59 |
-
* @return $this
|
60 |
-
*/
|
61 |
-
public function setLastCheckToNow() {
|
62 |
-
$this->lazyLoad();
|
63 |
-
$this->lastCheck = time();
|
64 |
-
return $this;
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* @return null|Puc_v4p4_Update
|
69 |
-
*/
|
70 |
-
public function getUpdate() {
|
71 |
-
$this->lazyLoad();
|
72 |
-
return $this->update;
|
73 |
-
}
|
74 |
-
|
75 |
-
/**
|
76 |
-
* @param Puc_v4p4_Update|null $update
|
77 |
-
* @return $this
|
78 |
-
*/
|
79 |
-
public function setUpdate(Puc_v4p4_Update $update = null) {
|
80 |
-
$this->lazyLoad();
|
81 |
-
$this->update = $update;
|
82 |
-
return $this;
|
83 |
-
}
|
84 |
-
|
85 |
-
/**
|
86 |
-
* @return string
|
87 |
-
*/
|
88 |
-
public function getCheckedVersion() {
|
89 |
-
$this->lazyLoad();
|
90 |
-
return $this->checkedVersion;
|
91 |
-
}
|
92 |
-
|
93 |
-
/**
|
94 |
-
* @param string $version
|
95 |
-
* @return $this
|
96 |
-
*/
|
97 |
-
public function setCheckedVersion($version) {
|
98 |
-
$this->lazyLoad();
|
99 |
-
$this->checkedVersion = strval($version);
|
100 |
-
return $this;
|
101 |
-
}
|
102 |
-
|
103 |
-
/**
|
104 |
-
* Get translation updates.
|
105 |
-
*
|
106 |
-
* @return array
|
107 |
-
*/
|
108 |
-
public function getTranslations() {
|
109 |
-
$this->lazyLoad();
|
110 |
-
if ( isset($this->update, $this->update->translations) ) {
|
111 |
-
return $this->update->translations;
|
112 |
-
}
|
113 |
-
return array();
|
114 |
-
}
|
115 |
-
|
116 |
-
/**
|
117 |
-
* Set translation updates.
|
118 |
-
*
|
119 |
-
* @param array $translationUpdates
|
120 |
-
*/
|
121 |
-
public function setTranslations($translationUpdates) {
|
122 |
-
$this->lazyLoad();
|
123 |
-
if ( isset($this->update) ) {
|
124 |
-
$this->update->translations = $translationUpdates;
|
125 |
-
$this->save();
|
126 |
-
}
|
127 |
-
}
|
128 |
-
|
129 |
-
public function save() {
|
130 |
-
$state = new stdClass();
|
131 |
-
|
132 |
-
$state->lastCheck = $this->lastCheck;
|
133 |
-
$state->checkedVersion = $this->checkedVersion;
|
134 |
-
|
135 |
-
if ( isset($this->update)) {
|
136 |
-
$state->update = $this->update->toStdClass();
|
137 |
-
|
138 |
-
$updateClass = get_class($this->update);
|
139 |
-
$state->updateClass = $updateClass;
|
140 |
-
$prefix = $this->getLibPrefix();
|
141 |
-
if ( Puc_v4p4_Utils::startsWith($updateClass, $prefix) ) {
|
142 |
-
$state->updateBaseClass = substr($updateClass, strlen($prefix));
|
143 |
-
}
|
144 |
-
}
|
145 |
-
|
146 |
-
update_site_option($this->optionName, $state);
|
147 |
-
$this->isLoaded = true;
|
148 |
-
}
|
149 |
-
|
150 |
-
/**
|
151 |
-
* @return $this
|
152 |
-
*/
|
153 |
-
public function lazyLoad() {
|
154 |
-
if ( !$this->isLoaded ) {
|
155 |
-
$this->load();
|
156 |
-
}
|
157 |
-
return $this;
|
158 |
-
}
|
159 |
-
|
160 |
-
protected function load() {
|
161 |
-
$this->isLoaded = true;
|
162 |
-
|
163 |
-
$state = get_site_option($this->optionName, null);
|
164 |
-
|
165 |
-
if ( !is_object($state) ) {
|
166 |
-
$this->lastCheck = 0;
|
167 |
-
$this->checkedVersion = '';
|
168 |
-
$this->update = null;
|
169 |
-
return;
|
170 |
-
}
|
171 |
-
|
172 |
-
$this->lastCheck = intval(Puc_v4p4_Utils::get($state, 'lastCheck', 0));
|
173 |
-
$this->checkedVersion = Puc_v4p4_Utils::get($state, 'checkedVersion', '');
|
174 |
-
$this->update = null;
|
175 |
-
|
176 |
-
if ( isset($state->update) ) {
|
177 |
-
//This mess is due to the fact that the want the update class from this version
|
178 |
-
//of the library, not the version that saved the update.
|
179 |
-
|
180 |
-
$updateClass = null;
|
181 |
-
if ( isset($state->updateBaseClass) ) {
|
182 |
-
$updateClass = $this->getLibPrefix() . $state->updateBaseClass;
|
183 |
-
} else if ( isset($state->updateClass) && class_exists($state->updateClass) ) {
|
184 |
-
$updateClass = $state->updateClass;
|
185 |
-
}
|
186 |
-
|
187 |
-
if ( $updateClass !== null ) {
|
188 |
-
$this->update = call_user_func(array($updateClass, 'fromObject'), $state->update);
|
189 |
-
}
|
190 |
-
}
|
191 |
-
}
|
192 |
-
|
193 |
-
public function delete() {
|
194 |
-
delete_site_option($this->optionName);
|
195 |
-
|
196 |
-
$this->lastCheck = 0;
|
197 |
-
$this->checkedVersion = '';
|
198 |
-
$this->update = null;
|
199 |
-
}
|
200 |
-
|
201 |
-
private function getLibPrefix() {
|
202 |
-
$parts = explode('_', __CLASS__, 3);
|
203 |
-
return $parts[0] . '_' . $parts[1] . '_';
|
204 |
-
}
|
205 |
-
}
|
206 |
-
|
207 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Theme/Update.php
DELETED
@@ -1,84 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('Puc_v4p4_Theme_Update', false) ):
|
4 |
-
|
5 |
-
class Puc_v4p4_Theme_Update extends Puc_v4p4_Update {
|
6 |
-
public $details_url = '';
|
7 |
-
|
8 |
-
protected static $extraFields = array('details_url');
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Transform the metadata into the format used by WordPress core.
|
12 |
-
* Note the inconsistency: WP stores plugin updates as objects and theme updates as arrays.
|
13 |
-
*
|
14 |
-
* @return array
|
15 |
-
*/
|
16 |
-
public function toWpFormat() {
|
17 |
-
$update = array(
|
18 |
-
'theme' => $this->slug,
|
19 |
-
'new_version' => $this->version,
|
20 |
-
'url' => $this->details_url,
|
21 |
-
);
|
22 |
-
|
23 |
-
if ( !empty($this->download_url) ) {
|
24 |
-
$update['package'] = $this->download_url;
|
25 |
-
}
|
26 |
-
|
27 |
-
return $update;
|
28 |
-
}
|
29 |
-
|
30 |
-
/**
|
31 |
-
* Create a new instance of Theme_Update from its JSON-encoded representation.
|
32 |
-
*
|
33 |
-
* @param string $json Valid JSON string representing a theme information object.
|
34 |
-
* @return self New instance of ThemeUpdate, or NULL on error.
|
35 |
-
*/
|
36 |
-
public static function fromJson($json) {
|
37 |
-
$instance = new self();
|
38 |
-
if ( !parent::createFromJson($json, $instance) ) {
|
39 |
-
return null;
|
40 |
-
}
|
41 |
-
return $instance;
|
42 |
-
}
|
43 |
-
|
44 |
-
/**
|
45 |
-
* Create a new instance by copying the necessary fields from another object.
|
46 |
-
*
|
47 |
-
* @param StdClass|Puc_v4p4_Theme_Update $object The source object.
|
48 |
-
* @return Puc_v4p4_Theme_Update The new copy.
|
49 |
-
*/
|
50 |
-
public static function fromObject($object) {
|
51 |
-
$update = new self();
|
52 |
-
$update->copyFields($object, $update);
|
53 |
-
return $update;
|
54 |
-
}
|
55 |
-
|
56 |
-
/**
|
57 |
-
* Basic validation.
|
58 |
-
*
|
59 |
-
* @param StdClass $apiResponse
|
60 |
-
* @return bool|WP_Error
|
61 |
-
*/
|
62 |
-
protected function validateMetadata($apiResponse) {
|
63 |
-
$required = array('version', 'details_url');
|
64 |
-
foreach($required as $key) {
|
65 |
-
if ( !isset($apiResponse->$key) || empty($apiResponse->$key) ) {
|
66 |
-
return new WP_Error(
|
67 |
-
'tuc-invalid-metadata',
|
68 |
-
sprintf('The theme metadata is missing the required "%s" key.', $key)
|
69 |
-
);
|
70 |
-
}
|
71 |
-
}
|
72 |
-
return true;
|
73 |
-
}
|
74 |
-
|
75 |
-
protected function getFieldNames() {
|
76 |
-
return array_merge(parent::getFieldNames(), self::$extraFields);
|
77 |
-
}
|
78 |
-
|
79 |
-
protected function getPrefixedFilter($tag) {
|
80 |
-
return parent::getPrefixedFilter($tag) . '_theme';
|
81 |
-
}
|
82 |
-
}
|
83 |
-
|
84 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Theme/UpdateChecker.php
DELETED
@@ -1,177 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('Puc_v4p4_Theme_UpdateChecker', false) ):
|
4 |
-
|
5 |
-
class Puc_v4p4_Theme_UpdateChecker extends Puc_v4p4_UpdateChecker {
|
6 |
-
protected $filterSuffix = 'theme';
|
7 |
-
protected $updateTransient = 'update_themes';
|
8 |
-
protected $translationType = 'theme';
|
9 |
-
|
10 |
-
/**
|
11 |
-
* @var string Theme directory name.
|
12 |
-
*/
|
13 |
-
protected $stylesheet;
|
14 |
-
|
15 |
-
/**
|
16 |
-
* @var WP_Theme Theme object.
|
17 |
-
*/
|
18 |
-
protected $theme;
|
19 |
-
|
20 |
-
public function __construct($metadataUrl, $stylesheet = null, $customSlug = null, $checkPeriod = 12, $optionName = '') {
|
21 |
-
if ( $stylesheet === null ) {
|
22 |
-
$stylesheet = get_stylesheet();
|
23 |
-
}
|
24 |
-
$this->stylesheet = $stylesheet;
|
25 |
-
$this->theme = wp_get_theme($this->stylesheet);
|
26 |
-
|
27 |
-
parent::__construct(
|
28 |
-
$metadataUrl,
|
29 |
-
$stylesheet,
|
30 |
-
$customSlug ? $customSlug : $stylesheet,
|
31 |
-
$checkPeriod,
|
32 |
-
$optionName
|
33 |
-
);
|
34 |
-
}
|
35 |
-
|
36 |
-
/**
|
37 |
-
* For themes, the update array is indexed by theme directory name.
|
38 |
-
*
|
39 |
-
* @return string
|
40 |
-
*/
|
41 |
-
protected function getUpdateListKey() {
|
42 |
-
return $this->directoryName;
|
43 |
-
}
|
44 |
-
|
45 |
-
/**
|
46 |
-
* Retrieve the latest update (if any) from the configured API endpoint.
|
47 |
-
*
|
48 |
-
* @return Puc_v4p4_Update|null An instance of Update, or NULL when no updates are available.
|
49 |
-
*/
|
50 |
-
public function requestUpdate() {
|
51 |
-
list($themeUpdate, $result) = $this->requestMetadata('Puc_v4p4_Theme_Update', 'request_update');
|
52 |
-
|
53 |
-
if ( $themeUpdate !== null ) {
|
54 |
-
/** @var Puc_v4p4_Theme_Update $themeUpdate */
|
55 |
-
$themeUpdate->slug = $this->slug;
|
56 |
-
}
|
57 |
-
|
58 |
-
$themeUpdate = $this->filterUpdateResult($themeUpdate, $result);
|
59 |
-
return $themeUpdate;
|
60 |
-
}
|
61 |
-
|
62 |
-
public function userCanInstallUpdates() {
|
63 |
-
return current_user_can('update_themes');
|
64 |
-
}
|
65 |
-
|
66 |
-
/**
|
67 |
-
* Get the currently installed version of the plugin or theme.
|
68 |
-
*
|
69 |
-
* @return string Version number.
|
70 |
-
*/
|
71 |
-
public function getInstalledVersion() {
|
72 |
-
return $this->theme->get('Version');
|
73 |
-
}
|
74 |
-
|
75 |
-
/**
|
76 |
-
* @return string
|
77 |
-
*/
|
78 |
-
public function getAbsoluteDirectoryPath() {
|
79 |
-
if ( method_exists($this->theme, 'get_stylesheet_directory') ) {
|
80 |
-
return $this->theme->get_stylesheet_directory(); //Available since WP 3.4.
|
81 |
-
}
|
82 |
-
return get_theme_root($this->stylesheet) . '/' . $this->stylesheet;
|
83 |
-
}
|
84 |
-
|
85 |
-
/**
|
86 |
-
* Create an instance of the scheduler.
|
87 |
-
*
|
88 |
-
* @param int $checkPeriod
|
89 |
-
* @return Puc_v4p4_Scheduler
|
90 |
-
*/
|
91 |
-
protected function createScheduler($checkPeriod) {
|
92 |
-
return new Puc_v4p4_Scheduler($this, $checkPeriod, array('load-themes.php'));
|
93 |
-
}
|
94 |
-
|
95 |
-
/**
|
96 |
-
* Is there an update being installed right now for this theme?
|
97 |
-
*
|
98 |
-
* @param WP_Upgrader|null $upgrader The upgrader that's performing the current update.
|
99 |
-
* @return bool
|
100 |
-
*/
|
101 |
-
public function isBeingUpgraded($upgrader = null) {
|
102 |
-
return $this->upgraderStatus->isThemeBeingUpgraded($this->stylesheet, $upgrader);
|
103 |
-
}
|
104 |
-
|
105 |
-
protected function createDebugBarExtension() {
|
106 |
-
return new Puc_v4p4_DebugBar_Extension($this, 'Puc_v4p4_DebugBar_ThemePanel');
|
107 |
-
}
|
108 |
-
|
109 |
-
/**
|
110 |
-
* Register a callback for filtering query arguments.
|
111 |
-
*
|
112 |
-
* The callback function should take one argument - an associative array of query arguments.
|
113 |
-
* It should return a modified array of query arguments.
|
114 |
-
*
|
115 |
-
* @param callable $callback
|
116 |
-
* @return void
|
117 |
-
*/
|
118 |
-
public function addQueryArgFilter($callback){
|
119 |
-
$this->addFilter('request_update_query_args', $callback);
|
120 |
-
}
|
121 |
-
|
122 |
-
/**
|
123 |
-
* Register a callback for filtering arguments passed to wp_remote_get().
|
124 |
-
*
|
125 |
-
* The callback function should take one argument - an associative array of arguments -
|
126 |
-
* and return a modified array or arguments. See the WP documentation on wp_remote_get()
|
127 |
-
* for details on what arguments are available and how they work.
|
128 |
-
*
|
129 |
-
* @uses add_filter() This method is a convenience wrapper for add_filter().
|
130 |
-
*
|
131 |
-
* @param callable $callback
|
132 |
-
* @return void
|
133 |
-
*/
|
134 |
-
public function addHttpRequestArgFilter($callback) {
|
135 |
-
$this->addFilter('request_update_options', $callback);
|
136 |
-
}
|
137 |
-
|
138 |
-
/**
|
139 |
-
* Register a callback for filtering theme updates retrieved from the external API.
|
140 |
-
*
|
141 |
-
* The callback function should take two arguments. If the theme update was retrieved
|
142 |
-
* successfully, the first argument passed will be an instance of Theme_Update. Otherwise,
|
143 |
-
* it will be NULL. The second argument will be the corresponding return value of
|
144 |
-
* wp_remote_get (see WP docs for details).
|
145 |
-
*
|
146 |
-
* The callback function should return a new or modified instance of Theme_Update or NULL.
|
147 |
-
*
|
148 |
-
* @uses add_filter() This method is a convenience wrapper for add_filter().
|
149 |
-
*
|
150 |
-
* @param callable $callback
|
151 |
-
* @return void
|
152 |
-
*/
|
153 |
-
public function addResultFilter($callback) {
|
154 |
-
$this->addFilter('request_update_result', $callback, 10, 2);
|
155 |
-
}
|
156 |
-
|
157 |
-
/**
|
158 |
-
* @return array
|
159 |
-
*/
|
160 |
-
protected function getHeaderNames() {
|
161 |
-
return array(
|
162 |
-
'Name' => 'Theme Name',
|
163 |
-
'ThemeURI' => 'Theme URI',
|
164 |
-
'Description' => 'Description',
|
165 |
-
'Author' => 'Author',
|
166 |
-
'AuthorURI' => 'Author URI',
|
167 |
-
'Version' => 'Version',
|
168 |
-
'Template' => 'Template',
|
169 |
-
'Status' => 'Status',
|
170 |
-
'Tags' => 'Tags',
|
171 |
-
'TextDomain' => 'Text Domain',
|
172 |
-
'DomainPath' => 'Domain Path',
|
173 |
-
);
|
174 |
-
}
|
175 |
-
}
|
176 |
-
|
177 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Update.php
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_Update', false) ):
|
3 |
-
|
4 |
-
/**
|
5 |
-
* A simple container class for holding information about an available update.
|
6 |
-
*
|
7 |
-
* @author Janis Elsts
|
8 |
-
* @access public
|
9 |
-
*/
|
10 |
-
abstract class Puc_v4p4_Update extends Puc_v4p4_Metadata {
|
11 |
-
public $slug;
|
12 |
-
public $version;
|
13 |
-
public $download_url;
|
14 |
-
public $translations = array();
|
15 |
-
|
16 |
-
/**
|
17 |
-
* @return string[]
|
18 |
-
*/
|
19 |
-
protected function getFieldNames() {
|
20 |
-
return array('slug', 'version', 'download_url', 'translations');
|
21 |
-
}
|
22 |
-
|
23 |
-
public function toWpFormat() {
|
24 |
-
$update = new stdClass();
|
25 |
-
|
26 |
-
$update->slug = $this->slug;
|
27 |
-
$update->new_version = $this->version;
|
28 |
-
$update->package = $this->download_url;
|
29 |
-
|
30 |
-
return $update;
|
31 |
-
}
|
32 |
-
}
|
33 |
-
|
34 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/UpdateChecker.php
DELETED
@@ -1,896 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('Puc_v4p4_UpdateChecker', false) ):
|
4 |
-
|
5 |
-
abstract class Puc_v4p4_UpdateChecker {
|
6 |
-
protected $filterSuffix = '';
|
7 |
-
protected $updateTransient = '';
|
8 |
-
protected $translationType = ''; //"plugin" or "theme".
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Set to TRUE to enable error reporting. Errors are raised using trigger_error()
|
12 |
-
* and should be logged to the standard PHP error log.
|
13 |
-
* @var bool
|
14 |
-
*/
|
15 |
-
public $debugMode = false;
|
16 |
-
|
17 |
-
/**
|
18 |
-
* @var string Where to store the update info.
|
19 |
-
*/
|
20 |
-
public $optionName = '';
|
21 |
-
|
22 |
-
/**
|
23 |
-
* @var string The URL of the metadata file.
|
24 |
-
*/
|
25 |
-
public $metadataUrl = '';
|
26 |
-
|
27 |
-
/**
|
28 |
-
* @var string Plugin or theme directory name.
|
29 |
-
*/
|
30 |
-
public $directoryName = '';
|
31 |
-
|
32 |
-
/**
|
33 |
-
* @var string The slug that will be used in update checker hooks and remote API requests.
|
34 |
-
* Usually matches the directory name unless the plugin/theme directory has been renamed.
|
35 |
-
*/
|
36 |
-
public $slug = '';
|
37 |
-
|
38 |
-
/**
|
39 |
-
* @var Puc_v4p4_Scheduler
|
40 |
-
*/
|
41 |
-
public $scheduler;
|
42 |
-
|
43 |
-
/**
|
44 |
-
* @var Puc_v4p4_UpgraderStatus
|
45 |
-
*/
|
46 |
-
protected $upgraderStatus;
|
47 |
-
|
48 |
-
/**
|
49 |
-
* @var Puc_v4p4_StateStore
|
50 |
-
*/
|
51 |
-
protected $updateState;
|
52 |
-
|
53 |
-
/**
|
54 |
-
* @var array List of API errors triggered during the last checkForUpdates() call.
|
55 |
-
*/
|
56 |
-
protected $lastRequestApiErrors = array();
|
57 |
-
|
58 |
-
public function __construct($metadataUrl, $directoryName, $slug = null, $checkPeriod = 12, $optionName = '') {
|
59 |
-
$this->debugMode = (bool)(constant('WP_DEBUG'));
|
60 |
-
$this->metadataUrl = $metadataUrl;
|
61 |
-
$this->directoryName = $directoryName;
|
62 |
-
$this->slug = !empty($slug) ? $slug : $this->directoryName;
|
63 |
-
|
64 |
-
$this->optionName = $optionName;
|
65 |
-
if ( empty($this->optionName) ) {
|
66 |
-
//BC: Initially the library only supported plugin updates and didn't use type prefixes
|
67 |
-
//in the option name. Lets use the same prefix-less name when possible.
|
68 |
-
if ( $this->filterSuffix === '' ) {
|
69 |
-
$this->optionName = 'external_updates-' . $this->slug;
|
70 |
-
} else {
|
71 |
-
$this->optionName = $this->getUniqueName('external_updates');
|
72 |
-
}
|
73 |
-
}
|
74 |
-
|
75 |
-
$this->scheduler = $this->createScheduler($checkPeriod);
|
76 |
-
$this->upgraderStatus = new Puc_v4p4_UpgraderStatus();
|
77 |
-
$this->updateState = new Puc_v4p4_StateStore($this->optionName);
|
78 |
-
|
79 |
-
if ( did_action('init') ) {
|
80 |
-
$this->loadTextDomain();
|
81 |
-
} else {
|
82 |
-
add_action('init', array($this, 'loadTextDomain'));
|
83 |
-
}
|
84 |
-
|
85 |
-
$this->installHooks();
|
86 |
-
}
|
87 |
-
|
88 |
-
/**
|
89 |
-
* @internal
|
90 |
-
*/
|
91 |
-
public function loadTextDomain() {
|
92 |
-
//We're not using load_plugin_textdomain() or its siblings because figuring out where
|
93 |
-
//the library is located (plugin, mu-plugin, theme, custom wp-content paths) is messy.
|
94 |
-
$domain = 'plugin-update-checker';
|
95 |
-
$locale = apply_filters(
|
96 |
-
'plugin_locale',
|
97 |
-
(is_admin() && function_exists('get_user_locale')) ? get_user_locale() : get_locale(),
|
98 |
-
$domain
|
99 |
-
);
|
100 |
-
|
101 |
-
$moFile = $domain . '-' . $locale . '.mo';
|
102 |
-
$path = realpath(dirname(__FILE__) . '/../../languages');
|
103 |
-
|
104 |
-
if ($path && file_exists($path)) {
|
105 |
-
load_textdomain($domain, $path . '/' . $moFile);
|
106 |
-
}
|
107 |
-
}
|
108 |
-
|
109 |
-
protected function installHooks() {
|
110 |
-
//Insert our update info into the update array maintained by WP.
|
111 |
-
add_filter('site_transient_' . $this->updateTransient, array($this,'injectUpdate'));
|
112 |
-
|
113 |
-
//Insert translation updates into the update list.
|
114 |
-
add_filter('site_transient_' . $this->updateTransient, array($this, 'injectTranslationUpdates'));
|
115 |
-
|
116 |
-
//Clear translation updates when WP clears the update cache.
|
117 |
-
//This needs to be done directly because the library doesn't actually remove obsolete plugin updates,
|
118 |
-
//it just hides them (see getUpdate()). We can't do that with translations - too much disk I/O.
|
119 |
-
add_action(
|
120 |
-
'delete_site_transient_' . $this->updateTransient,
|
121 |
-
array($this, 'clearCachedTranslationUpdates')
|
122 |
-
);
|
123 |
-
|
124 |
-
//Rename the update directory to be the same as the existing directory.
|
125 |
-
if ( $this->directoryName !== '.' ) {
|
126 |
-
add_filter('upgrader_source_selection', array($this, 'fixDirectoryName'), 10, 3);
|
127 |
-
}
|
128 |
-
|
129 |
-
//Allow HTTP requests to the metadata URL even if it's on a local host.
|
130 |
-
add_filter('http_request_host_is_external', array($this, 'allowMetadataHost'), 10, 2);
|
131 |
-
|
132 |
-
//DebugBar integration.
|
133 |
-
if ( did_action('plugins_loaded') ) {
|
134 |
-
$this->maybeInitDebugBar();
|
135 |
-
} else {
|
136 |
-
add_action('plugins_loaded', array($this, 'maybeInitDebugBar'));
|
137 |
-
}
|
138 |
-
}
|
139 |
-
|
140 |
-
/**
|
141 |
-
* Remove hooks that were added by this update checker instance.
|
142 |
-
*/
|
143 |
-
protected function removeHooks() {
|
144 |
-
remove_filter('site_transient_' . $this->updateTransient, array($this,'injectUpdate'));
|
145 |
-
remove_filter('site_transient_' . $this->updateTransient, array($this, 'injectTranslationUpdates'));
|
146 |
-
remove_action(
|
147 |
-
'delete_site_transient_' . $this->updateTransient,
|
148 |
-
array($this, 'clearCachedTranslationUpdates')
|
149 |
-
);
|
150 |
-
|
151 |
-
remove_filter('upgrader_source_selection', array($this, 'fixDirectoryName'), 10);
|
152 |
-
remove_filter('http_request_host_is_external', array($this, 'allowMetadataHost'), 10);
|
153 |
-
remove_action('plugins_loaded', array($this, 'maybeInitDebugBar'));
|
154 |
-
|
155 |
-
remove_action('init', array($this, 'loadTextDomain'));
|
156 |
-
}
|
157 |
-
|
158 |
-
/**
|
159 |
-
* Check if the current user has the required permissions to install updates.
|
160 |
-
*
|
161 |
-
* @return bool
|
162 |
-
*/
|
163 |
-
abstract public function userCanInstallUpdates();
|
164 |
-
|
165 |
-
/**
|
166 |
-
* Explicitly allow HTTP requests to the metadata URL.
|
167 |
-
*
|
168 |
-
* WordPress has a security feature where the HTTP API will reject all requests that are sent to
|
169 |
-
* another site hosted on the same server as the current site (IP match), a local host, or a local
|
170 |
-
* IP, unless the host exactly matches the current site.
|
171 |
-
*
|
172 |
-
* This feature is opt-in (at least in WP 4.4). Apparently some people enable it.
|
173 |
-
*
|
174 |
-
* That can be a problem when you're developing your plugin and you decide to host the update information
|
175 |
-
* on the same server as your test site. Update requests will mysteriously fail.
|
176 |
-
*
|
177 |
-
* We fix that by adding an exception for the metadata host.
|
178 |
-
*
|
179 |
-
* @param bool $allow
|
180 |
-
* @param string $host
|
181 |
-
* @return bool
|
182 |
-
*/
|
183 |
-
public function allowMetadataHost($allow, $host) {
|
184 |
-
static $metadataHost = 0; //Using 0 instead of NULL because parse_url can return NULL.
|
185 |
-
if ( $metadataHost === 0 ) {
|
186 |
-
$metadataHost = @parse_url($this->metadataUrl, PHP_URL_HOST);
|
187 |
-
}
|
188 |
-
|
189 |
-
if ( is_string($metadataHost) && (strtolower($host) === strtolower($metadataHost)) ) {
|
190 |
-
return true;
|
191 |
-
}
|
192 |
-
return $allow;
|
193 |
-
}
|
194 |
-
|
195 |
-
/**
|
196 |
-
* Create an instance of the scheduler.
|
197 |
-
*
|
198 |
-
* This is implemented as a method to make it possible for plugins to subclass the update checker
|
199 |
-
* and substitute their own scheduler.
|
200 |
-
*
|
201 |
-
* @param int $checkPeriod
|
202 |
-
* @return Puc_v4p4_Scheduler
|
203 |
-
*/
|
204 |
-
abstract protected function createScheduler($checkPeriod);
|
205 |
-
|
206 |
-
/**
|
207 |
-
* Check for updates. The results are stored in the DB option specified in $optionName.
|
208 |
-
*
|
209 |
-
* @return Puc_v4p4_Update|null
|
210 |
-
*/
|
211 |
-
public function checkForUpdates() {
|
212 |
-
$installedVersion = $this->getInstalledVersion();
|
213 |
-
//Fail silently if we can't find the plugin/theme or read its header.
|
214 |
-
if ( $installedVersion === null ) {
|
215 |
-
$this->triggerError(
|
216 |
-
sprintf('Skipping update check for %s - installed version unknown.', $this->slug),
|
217 |
-
E_USER_WARNING
|
218 |
-
);
|
219 |
-
return null;
|
220 |
-
}
|
221 |
-
|
222 |
-
//Start collecting API errors.
|
223 |
-
$this->lastRequestApiErrors = array();
|
224 |
-
add_action('puc_api_error', array($this, 'collectApiErrors'), 10, 4);
|
225 |
-
|
226 |
-
$state = $this->updateState;
|
227 |
-
$state->setLastCheckToNow()
|
228 |
-
->setCheckedVersion($installedVersion)
|
229 |
-
->save(); //Save before checking in case something goes wrong
|
230 |
-
|
231 |
-
$state->setUpdate($this->requestUpdate());
|
232 |
-
$state->save();
|
233 |
-
|
234 |
-
//Stop collecting API errors.
|
235 |
-
remove_action('puc_api_error', array($this, 'collectApiErrors'), 10);
|
236 |
-
|
237 |
-
return $this->getUpdate();
|
238 |
-
}
|
239 |
-
|
240 |
-
/**
|
241 |
-
* Load the update checker state from the DB.
|
242 |
-
*
|
243 |
-
* @return Puc_v4p4_StateStore
|
244 |
-
*/
|
245 |
-
public function getUpdateState() {
|
246 |
-
return $this->updateState->lazyLoad();
|
247 |
-
}
|
248 |
-
|
249 |
-
/**
|
250 |
-
* Reset update checker state - i.e. last check time, cached update data and so on.
|
251 |
-
*
|
252 |
-
* Call this when your plugin is being uninstalled, or if you want to
|
253 |
-
* clear the update cache.
|
254 |
-
*/
|
255 |
-
public function resetUpdateState() {
|
256 |
-
$this->updateState->delete();
|
257 |
-
}
|
258 |
-
|
259 |
-
/**
|
260 |
-
* Get the details of the currently available update, if any.
|
261 |
-
*
|
262 |
-
* If no updates are available, or if the last known update version is below or equal
|
263 |
-
* to the currently installed version, this method will return NULL.
|
264 |
-
*
|
265 |
-
* Uses cached update data. To retrieve update information straight from
|
266 |
-
* the metadata URL, call requestUpdate() instead.
|
267 |
-
*
|
268 |
-
* @return Puc_v4p4_Update|null
|
269 |
-
*/
|
270 |
-
public function getUpdate() {
|
271 |
-
$update = $this->updateState->getUpdate();
|
272 |
-
|
273 |
-
//Is there an update available?
|
274 |
-
if ( isset($update) ) {
|
275 |
-
//Check if the update is actually newer than the currently installed version.
|
276 |
-
$installedVersion = $this->getInstalledVersion();
|
277 |
-
if ( ($installedVersion !== null) && version_compare($update->version, $installedVersion, '>') ){
|
278 |
-
return $update;
|
279 |
-
}
|
280 |
-
}
|
281 |
-
return null;
|
282 |
-
}
|
283 |
-
|
284 |
-
/**
|
285 |
-
* Retrieve the latest update (if any) from the configured API endpoint.
|
286 |
-
*
|
287 |
-
* Subclasses should run the update through filterUpdateResult before returning it.
|
288 |
-
*
|
289 |
-
* @return Puc_v4p4_Update An instance of Update, or NULL when no updates are available.
|
290 |
-
*/
|
291 |
-
abstract public function requestUpdate();
|
292 |
-
|
293 |
-
/**
|
294 |
-
* Filter the result of a requestUpdate() call.
|
295 |
-
*
|
296 |
-
* @param Puc_v4p4_Update|null $update
|
297 |
-
* @param array|WP_Error|null $httpResult The value returned by wp_remote_get(), if any.
|
298 |
-
* @return Puc_v4p4_Update
|
299 |
-
*/
|
300 |
-
protected function filterUpdateResult($update, $httpResult = null) {
|
301 |
-
//Let plugins/themes modify the update.
|
302 |
-
$update = apply_filters($this->getUniqueName('request_update_result'), $update, $httpResult);
|
303 |
-
|
304 |
-
if ( isset($update, $update->translations) ) {
|
305 |
-
//Keep only those translation updates that apply to this site.
|
306 |
-
$update->translations = $this->filterApplicableTranslations($update->translations);
|
307 |
-
}
|
308 |
-
|
309 |
-
return $update;
|
310 |
-
}
|
311 |
-
|
312 |
-
/**
|
313 |
-
* Get the currently installed version of the plugin or theme.
|
314 |
-
*
|
315 |
-
* @return string|null Version number.
|
316 |
-
*/
|
317 |
-
abstract public function getInstalledVersion();
|
318 |
-
|
319 |
-
/**
|
320 |
-
* Get the full path of the plugin or theme directory.
|
321 |
-
*
|
322 |
-
* @return string
|
323 |
-
*/
|
324 |
-
abstract public function getAbsoluteDirectoryPath();
|
325 |
-
|
326 |
-
/**
|
327 |
-
* Trigger a PHP error, but only when $debugMode is enabled.
|
328 |
-
*
|
329 |
-
* @param string $message
|
330 |
-
* @param int $errorType
|
331 |
-
*/
|
332 |
-
protected function triggerError($message, $errorType) {
|
333 |
-
if ($this->debugMode) {
|
334 |
-
trigger_error($message, $errorType);
|
335 |
-
}
|
336 |
-
}
|
337 |
-
|
338 |
-
/**
|
339 |
-
* Get the full name of an update checker filter, action or DB entry.
|
340 |
-
*
|
341 |
-
* This method adds the "puc_" prefix and the "-$slug" suffix to the filter name.
|
342 |
-
* For example, "pre_inject_update" becomes "puc_pre_inject_update-plugin-slug".
|
343 |
-
*
|
344 |
-
* @param string $baseTag
|
345 |
-
* @return string
|
346 |
-
*/
|
347 |
-
public function getUniqueName($baseTag) {
|
348 |
-
$name = 'puc_' . $baseTag;
|
349 |
-
if ($this->filterSuffix !== '') {
|
350 |
-
$name .= '_' . $this->filterSuffix;
|
351 |
-
}
|
352 |
-
return $name . '-' . $this->slug;
|
353 |
-
}
|
354 |
-
|
355 |
-
/**
|
356 |
-
* Store API errors that are generated when checking for updates.
|
357 |
-
*
|
358 |
-
* @internal
|
359 |
-
* @param WP_Error $error
|
360 |
-
* @param array|null $httpResponse
|
361 |
-
* @param string|null $url
|
362 |
-
* @param string|null $slug
|
363 |
-
*/
|
364 |
-
public function collectApiErrors($error, $httpResponse = null, $url = null, $slug = null) {
|
365 |
-
if ( isset($slug) && ($slug !== $this->slug) ) {
|
366 |
-
return;
|
367 |
-
}
|
368 |
-
|
369 |
-
$this->lastRequestApiErrors[] = array(
|
370 |
-
'error' => $error,
|
371 |
-
'httpResponse' => $httpResponse,
|
372 |
-
'url' => $url,
|
373 |
-
);
|
374 |
-
}
|
375 |
-
|
376 |
-
/**
|
377 |
-
* @return array
|
378 |
-
*/
|
379 |
-
public function getLastRequestApiErrors() {
|
380 |
-
return $this->lastRequestApiErrors;
|
381 |
-
}
|
382 |
-
|
383 |
-
/* -------------------------------------------------------------------
|
384 |
-
* PUC filters and filter utilities
|
385 |
-
* -------------------------------------------------------------------
|
386 |
-
*/
|
387 |
-
|
388 |
-
/**
|
389 |
-
* Register a callback for one of the update checker filters.
|
390 |
-
*
|
391 |
-
* Identical to add_filter(), except it automatically adds the "puc_" prefix
|
392 |
-
* and the "-$slug" suffix to the filter name. For example, "request_info_result"
|
393 |
-
* becomes "puc_request_info_result-your_plugin_slug".
|
394 |
-
*
|
395 |
-
* @param string $tag
|
396 |
-
* @param callable $callback
|
397 |
-
* @param int $priority
|
398 |
-
* @param int $acceptedArgs
|
399 |
-
*/
|
400 |
-
public function addFilter($tag, $callback, $priority = 10, $acceptedArgs = 1) {
|
401 |
-
add_filter($this->getUniqueName($tag), $callback, $priority, $acceptedArgs);
|
402 |
-
}
|
403 |
-
|
404 |
-
/* -------------------------------------------------------------------
|
405 |
-
* Inject updates
|
406 |
-
* -------------------------------------------------------------------
|
407 |
-
*/
|
408 |
-
|
409 |
-
/**
|
410 |
-
* Insert the latest update (if any) into the update list maintained by WP.
|
411 |
-
*
|
412 |
-
* @param stdClass $updates Update list.
|
413 |
-
* @return stdClass Modified update list.
|
414 |
-
*/
|
415 |
-
public function injectUpdate($updates) {
|
416 |
-
//Is there an update to insert?
|
417 |
-
$update = $this->getUpdate();
|
418 |
-
|
419 |
-
if ( !$this->shouldShowUpdates() ) {
|
420 |
-
$update = null;
|
421 |
-
}
|
422 |
-
|
423 |
-
if ( !empty($update) ) {
|
424 |
-
//Let plugins filter the update info before it's passed on to WordPress.
|
425 |
-
$update = apply_filters($this->getUniqueName('pre_inject_update'), $update);
|
426 |
-
$updates = $this->addUpdateToList($updates, $update->toWpFormat());
|
427 |
-
} else {
|
428 |
-
//Clean up any stale update info.
|
429 |
-
$updates = $this->removeUpdateFromList($updates);
|
430 |
-
}
|
431 |
-
|
432 |
-
return $updates;
|
433 |
-
}
|
434 |
-
|
435 |
-
/**
|
436 |
-
* @param stdClass|null $updates
|
437 |
-
* @param stdClass|array $updateToAdd
|
438 |
-
* @return stdClass
|
439 |
-
*/
|
440 |
-
protected function addUpdateToList($updates, $updateToAdd) {
|
441 |
-
if ( !is_object($updates) ) {
|
442 |
-
$updates = new stdClass();
|
443 |
-
$updates->response = array();
|
444 |
-
}
|
445 |
-
|
446 |
-
$updates->response[$this->getUpdateListKey()] = $updateToAdd;
|
447 |
-
return $updates;
|
448 |
-
}
|
449 |
-
|
450 |
-
/**
|
451 |
-
* @param stdClass|null $updates
|
452 |
-
* @return stdClass|null
|
453 |
-
*/
|
454 |
-
protected function removeUpdateFromList($updates) {
|
455 |
-
if ( isset($updates, $updates->response) ) {
|
456 |
-
unset($updates->response[$this->getUpdateListKey()]);
|
457 |
-
}
|
458 |
-
return $updates;
|
459 |
-
}
|
460 |
-
|
461 |
-
/**
|
462 |
-
* Get the key that will be used when adding updates to the update list that's maintained
|
463 |
-
* by the WordPress core. The list is always an associative array, but the key is different
|
464 |
-
* for plugins and themes.
|
465 |
-
*
|
466 |
-
* @return string
|
467 |
-
*/
|
468 |
-
abstract protected function getUpdateListKey();
|
469 |
-
|
470 |
-
/**
|
471 |
-
* Should we show available updates?
|
472 |
-
*
|
473 |
-
* Usually the answer is "yes", but there are exceptions. For example, WordPress doesn't
|
474 |
-
* support automatic updates installation for mu-plugins, so PUC usually won't show update
|
475 |
-
* notifications in that case. See the plugin-specific subclass for details.
|
476 |
-
*
|
477 |
-
* Note: This method only applies to updates that are displayed (or not) in the WordPress
|
478 |
-
* admin. It doesn't affect APIs like requestUpdate and getUpdate.
|
479 |
-
*
|
480 |
-
* @return bool
|
481 |
-
*/
|
482 |
-
protected function shouldShowUpdates() {
|
483 |
-
return true;
|
484 |
-
}
|
485 |
-
|
486 |
-
/* -------------------------------------------------------------------
|
487 |
-
* JSON-based update API
|
488 |
-
* -------------------------------------------------------------------
|
489 |
-
*/
|
490 |
-
|
491 |
-
/**
|
492 |
-
* Retrieve plugin or theme metadata from the JSON document at $this->metadataUrl.
|
493 |
-
*
|
494 |
-
* @param string $metaClass Parse the JSON as an instance of this class. It must have a static fromJson method.
|
495 |
-
* @param string $filterRoot
|
496 |
-
* @param array $queryArgs Additional query arguments.
|
497 |
-
* @return array [Puc_v4p4_Metadata|null, array|WP_Error] A metadata instance and the value returned by wp_remote_get().
|
498 |
-
*/
|
499 |
-
protected function requestMetadata($metaClass, $filterRoot, $queryArgs = array()) {
|
500 |
-
//Query args to append to the URL. Plugins can add their own by using a filter callback (see addQueryArgFilter()).
|
501 |
-
$queryArgs = array_merge(
|
502 |
-
array(
|
503 |
-
'installed_version' => strval($this->getInstalledVersion()),
|
504 |
-
'php' => phpversion(),
|
505 |
-
'locale' => get_locale(),
|
506 |
-
),
|
507 |
-
$queryArgs
|
508 |
-
);
|
509 |
-
$queryArgs = apply_filters($this->getUniqueName($filterRoot . '_query_args'), $queryArgs);
|
510 |
-
|
511 |
-
//Various options for the wp_remote_get() call. Plugins can filter these, too.
|
512 |
-
$options = array(
|
513 |
-
'timeout' => 10, //seconds
|
514 |
-
'headers' => array(
|
515 |
-
'Accept' => 'application/json',
|
516 |
-
),
|
517 |
-
);
|
518 |
-
$options = apply_filters($this->getUniqueName($filterRoot . '_options'), $options);
|
519 |
-
|
520 |
-
//The metadata file should be at 'http://your-api.com/url/here/$slug/info.json'
|
521 |
-
$url = $this->metadataUrl;
|
522 |
-
if ( !empty($queryArgs) ){
|
523 |
-
$url = add_query_arg($queryArgs, $url);
|
524 |
-
}
|
525 |
-
|
526 |
-
$result = wp_remote_get($url, $options);
|
527 |
-
|
528 |
-
$result = apply_filters($this->getUniqueName('request_metadata_http_result'), $result, $url, $options);
|
529 |
-
|
530 |
-
//Try to parse the response
|
531 |
-
$status = $this->validateApiResponse($result);
|
532 |
-
$metadata = null;
|
533 |
-
if ( !is_wp_error($status) ){
|
534 |
-
$metadata = call_user_func(array($metaClass, 'fromJson'), $result['body']);
|
535 |
-
} else {
|
536 |
-
do_action('puc_api_error', $status, $result, $url, $this->slug);
|
537 |
-
$this->triggerError(
|
538 |
-
sprintf('The URL %s does not point to a valid metadata file. ', $url)
|
539 |
-
. $status->get_error_message(),
|
540 |
-
E_USER_WARNING
|
541 |
-
);
|
542 |
-
}
|
543 |
-
|
544 |
-
return array($metadata, $result);
|
545 |
-
}
|
546 |
-
|
547 |
-
/**
|
548 |
-
* Check if $result is a successful update API response.
|
549 |
-
*
|
550 |
-
* @param array|WP_Error $result
|
551 |
-
* @return true|WP_Error
|
552 |
-
*/
|
553 |
-
protected function validateApiResponse($result) {
|
554 |
-
if ( is_wp_error($result) ) { /** @var WP_Error $result */
|
555 |
-
return new WP_Error($result->get_error_code(), 'WP HTTP Error: ' . $result->get_error_message());
|
556 |
-
}
|
557 |
-
|
558 |
-
if ( !isset($result['response']['code']) ) {
|
559 |
-
return new WP_Error(
|
560 |
-
'puc_no_response_code',
|
561 |
-
'wp_remote_get() returned an unexpected result.'
|
562 |
-
);
|
563 |
-
}
|
564 |
-
|
565 |
-
if ( $result['response']['code'] !== 200 ) {
|
566 |
-
return new WP_Error(
|
567 |
-
'puc_unexpected_response_code',
|
568 |
-
'HTTP response code is ' . $result['response']['code'] . ' (expected: 200)'
|
569 |
-
);
|
570 |
-
}
|
571 |
-
|
572 |
-
if ( empty($result['body']) ) {
|
573 |
-
return new WP_Error('puc_empty_response', 'The metadata file appears to be empty.');
|
574 |
-
}
|
575 |
-
|
576 |
-
return true;
|
577 |
-
}
|
578 |
-
|
579 |
-
/* -------------------------------------------------------------------
|
580 |
-
* Language packs / Translation updates
|
581 |
-
* -------------------------------------------------------------------
|
582 |
-
*/
|
583 |
-
|
584 |
-
/**
|
585 |
-
* Filter a list of translation updates and return a new list that contains only updates
|
586 |
-
* that apply to the current site.
|
587 |
-
*
|
588 |
-
* @param array $translations
|
589 |
-
* @return array
|
590 |
-
*/
|
591 |
-
protected function filterApplicableTranslations($translations) {
|
592 |
-
$languages = array_flip(array_values(get_available_languages()));
|
593 |
-
$installedTranslations = $this->getInstalledTranslations();
|
594 |
-
|
595 |
-
$applicableTranslations = array();
|
596 |
-
foreach($translations as $translation) {
|
597 |
-
//Does it match one of the available core languages?
|
598 |
-
$isApplicable = array_key_exists($translation->language, $languages);
|
599 |
-
//Is it more recent than an already-installed translation?
|
600 |
-
if ( isset($installedTranslations[$translation->language]) ) {
|
601 |
-
$updateTimestamp = strtotime($translation->updated);
|
602 |
-
$installedTimestamp = strtotime($installedTranslations[$translation->language]['PO-Revision-Date']);
|
603 |
-
$isApplicable = $updateTimestamp > $installedTimestamp;
|
604 |
-
}
|
605 |
-
|
606 |
-
if ( $isApplicable ) {
|
607 |
-
$applicableTranslations[] = $translation;
|
608 |
-
}
|
609 |
-
}
|
610 |
-
|
611 |
-
return $applicableTranslations;
|
612 |
-
}
|
613 |
-
|
614 |
-
/**
|
615 |
-
* Get a list of installed translations for this plugin or theme.
|
616 |
-
*
|
617 |
-
* @return array
|
618 |
-
*/
|
619 |
-
protected function getInstalledTranslations() {
|
620 |
-
if ( !function_exists('wp_get_installed_translations') ) {
|
621 |
-
return array();
|
622 |
-
}
|
623 |
-
$installedTranslations = wp_get_installed_translations($this->translationType . 's');
|
624 |
-
if ( isset($installedTranslations[$this->directoryName]) ) {
|
625 |
-
$installedTranslations = $installedTranslations[$this->directoryName];
|
626 |
-
} else {
|
627 |
-
$installedTranslations = array();
|
628 |
-
}
|
629 |
-
return $installedTranslations;
|
630 |
-
}
|
631 |
-
|
632 |
-
/**
|
633 |
-
* Insert translation updates into the list maintained by WordPress.
|
634 |
-
*
|
635 |
-
* @param stdClass $updates
|
636 |
-
* @return stdClass
|
637 |
-
*/
|
638 |
-
public function injectTranslationUpdates($updates) {
|
639 |
-
$translationUpdates = $this->getTranslationUpdates();
|
640 |
-
if ( empty($translationUpdates) ) {
|
641 |
-
return $updates;
|
642 |
-
}
|
643 |
-
|
644 |
-
//Being defensive.
|
645 |
-
if ( !is_object($updates) ) {
|
646 |
-
$updates = new stdClass();
|
647 |
-
}
|
648 |
-
if ( !isset($updates->translations) ) {
|
649 |
-
$updates->translations = array();
|
650 |
-
}
|
651 |
-
|
652 |
-
//In case there's a name collision with a plugin or theme hosted on wordpress.org,
|
653 |
-
//remove any preexisting updates that match our thing.
|
654 |
-
$updates->translations = array_values(array_filter(
|
655 |
-
$updates->translations,
|
656 |
-
array($this, 'isNotMyTranslation')
|
657 |
-
));
|
658 |
-
|
659 |
-
//Add our updates to the list.
|
660 |
-
foreach($translationUpdates as $update) {
|
661 |
-
$convertedUpdate = array_merge(
|
662 |
-
array(
|
663 |
-
'type' => $this->translationType,
|
664 |
-
'slug' => $this->directoryName,
|
665 |
-
'autoupdate' => 0,
|
666 |
-
//AFAICT, WordPress doesn't actually use the "version" field for anything.
|
667 |
-
//But lets make sure it's there, just in case.
|
668 |
-
'version' => isset($update->version) ? $update->version : ('1.' . strtotime($update->updated)),
|
669 |
-
),
|
670 |
-
(array)$update
|
671 |
-
);
|
672 |
-
|
673 |
-
$updates->translations[] = $convertedUpdate;
|
674 |
-
}
|
675 |
-
|
676 |
-
return $updates;
|
677 |
-
}
|
678 |
-
|
679 |
-
/**
|
680 |
-
* Get a list of available translation updates.
|
681 |
-
*
|
682 |
-
* This method will return an empty array if there are no updates.
|
683 |
-
* Uses cached update data.
|
684 |
-
*
|
685 |
-
* @return array
|
686 |
-
*/
|
687 |
-
public function getTranslationUpdates() {
|
688 |
-
return $this->updateState->getTranslations();
|
689 |
-
}
|
690 |
-
|
691 |
-
/**
|
692 |
-
* Remove all cached translation updates.
|
693 |
-
*
|
694 |
-
* @see wp_clean_update_cache
|
695 |
-
*/
|
696 |
-
public function clearCachedTranslationUpdates() {
|
697 |
-
$this->updateState->setTranslations(array());
|
698 |
-
}
|
699 |
-
|
700 |
-
/**
|
701 |
-
* Filter callback. Keeps only translations that *don't* match this plugin or theme.
|
702 |
-
*
|
703 |
-
* @param array $translation
|
704 |
-
* @return bool
|
705 |
-
*/
|
706 |
-
protected function isNotMyTranslation($translation) {
|
707 |
-
$isMatch = isset($translation['type'], $translation['slug'])
|
708 |
-
&& ($translation['type'] === $this->translationType)
|
709 |
-
&& ($translation['slug'] === $this->directoryName);
|
710 |
-
|
711 |
-
return !$isMatch;
|
712 |
-
}
|
713 |
-
|
714 |
-
/* -------------------------------------------------------------------
|
715 |
-
* Fix directory name when installing updates
|
716 |
-
* -------------------------------------------------------------------
|
717 |
-
*/
|
718 |
-
|
719 |
-
/**
|
720 |
-
* Rename the update directory to match the existing plugin/theme directory.
|
721 |
-
*
|
722 |
-
* When WordPress installs a plugin or theme update, it assumes that the ZIP file will contain
|
723 |
-
* exactly one directory, and that the directory name will be the same as the directory where
|
724 |
-
* the plugin or theme is currently installed.
|
725 |
-
*
|
726 |
-
* GitHub and other repositories provide ZIP downloads, but they often use directory names like
|
727 |
-
* "project-branch" or "project-tag-hash". We need to change the name to the actual plugin folder.
|
728 |
-
*
|
729 |
-
* This is a hook callback. Don't call it from a plugin.
|
730 |
-
*
|
731 |
-
* @access protected
|
732 |
-
*
|
733 |
-
* @param string $source The directory to copy to /wp-content/plugins or /wp-content/themes. Usually a subdirectory of $remoteSource.
|
734 |
-
* @param string $remoteSource WordPress has extracted the update to this directory.
|
735 |
-
* @param WP_Upgrader $upgrader
|
736 |
-
* @return string|WP_Error
|
737 |
-
*/
|
738 |
-
public function fixDirectoryName($source, $remoteSource, $upgrader) {
|
739 |
-
global $wp_filesystem;
|
740 |
-
/** @var WP_Filesystem_Base $wp_filesystem */
|
741 |
-
|
742 |
-
//Basic sanity checks.
|
743 |
-
if ( !isset($source, $remoteSource, $upgrader, $upgrader->skin, $wp_filesystem) ) {
|
744 |
-
return $source;
|
745 |
-
}
|
746 |
-
|
747 |
-
//If WordPress is upgrading anything other than our plugin/theme, leave the directory name unchanged.
|
748 |
-
if ( !$this->isBeingUpgraded($upgrader) ) {
|
749 |
-
return $source;
|
750 |
-
}
|
751 |
-
|
752 |
-
//Rename the source to match the existing directory.
|
753 |
-
$correctedSource = trailingslashit($remoteSource) . $this->directoryName . '/';
|
754 |
-
if ( $source !== $correctedSource ) {
|
755 |
-
//The update archive should contain a single directory that contains the rest of plugin/theme files.
|
756 |
-
//Otherwise, WordPress will try to copy the entire working directory ($source == $remoteSource).
|
757 |
-
//We can't rename $remoteSource because that would break WordPress code that cleans up temporary files
|
758 |
-
//after update.
|
759 |
-
if ( $this->isBadDirectoryStructure($remoteSource) ) {
|
760 |
-
return new WP_Error(
|
761 |
-
'puc-incorrect-directory-structure',
|
762 |
-
sprintf(
|
763 |
-
'The directory structure of the update is incorrect. All files should be inside ' .
|
764 |
-
'a directory named <span class="code">%s</span>, not at the root of the ZIP archive.',
|
765 |
-
htmlentities($this->slug)
|
766 |
-
)
|
767 |
-
);
|
768 |
-
}
|
769 |
-
|
770 |
-
/** @var WP_Upgrader_Skin $upgrader ->skin */
|
771 |
-
$upgrader->skin->feedback(sprintf(
|
772 |
-
'Renaming %s to %s…',
|
773 |
-
'<span class="code">' . basename($source) . '</span>',
|
774 |
-
'<span class="code">' . $this->directoryName . '</span>'
|
775 |
-
));
|
776 |
-
|
777 |
-
if ( $wp_filesystem->move($source, $correctedSource, true) ) {
|
778 |
-
$upgrader->skin->feedback('Directory successfully renamed.');
|
779 |
-
return $correctedSource;
|
780 |
-
} else {
|
781 |
-
return new WP_Error(
|
782 |
-
'puc-rename-failed',
|
783 |
-
'Unable to rename the update to match the existing directory.'
|
784 |
-
);
|
785 |
-
}
|
786 |
-
}
|
787 |
-
|
788 |
-
return $source;
|
789 |
-
}
|
790 |
-
|
791 |
-
/**
|
792 |
-
* Is there an update being installed right now, for this plugin or theme?
|
793 |
-
*
|
794 |
-
* @param WP_Upgrader|null $upgrader The upgrader that's performing the current update.
|
795 |
-
* @return bool
|
796 |
-
*/
|
797 |
-
abstract public function isBeingUpgraded($upgrader = null);
|
798 |
-
|
799 |
-
/**
|
800 |
-
* Check for incorrect update directory structure. An update must contain a single directory,
|
801 |
-
* all other files should be inside that directory.
|
802 |
-
*
|
803 |
-
* @param string $remoteSource Directory path.
|
804 |
-
* @return bool
|
805 |
-
*/
|
806 |
-
protected function isBadDirectoryStructure($remoteSource) {
|
807 |
-
global $wp_filesystem;
|
808 |
-
/** @var WP_Filesystem_Base $wp_filesystem */
|
809 |
-
|
810 |
-
$sourceFiles = $wp_filesystem->dirlist($remoteSource);
|
811 |
-
if ( is_array($sourceFiles) ) {
|
812 |
-
$sourceFiles = array_keys($sourceFiles);
|
813 |
-
$firstFilePath = trailingslashit($remoteSource) . $sourceFiles[0];
|
814 |
-
return (count($sourceFiles) > 1) || (!$wp_filesystem->is_dir($firstFilePath));
|
815 |
-
}
|
816 |
-
|
817 |
-
//Assume it's fine.
|
818 |
-
return false;
|
819 |
-
}
|
820 |
-
|
821 |
-
/* -------------------------------------------------------------------
|
822 |
-
* File header parsing
|
823 |
-
* -------------------------------------------------------------------
|
824 |
-
*/
|
825 |
-
|
826 |
-
/**
|
827 |
-
* Parse plugin or theme metadata from the header comment.
|
828 |
-
*
|
829 |
-
* This is basically a simplified version of the get_file_data() function from /wp-includes/functions.php.
|
830 |
-
* It's intended as a utility for subclasses that detect updates by parsing files in a VCS.
|
831 |
-
*
|
832 |
-
* @param string|null $content File contents.
|
833 |
-
* @return string[]
|
834 |
-
*/
|
835 |
-
public function getFileHeader($content) {
|
836 |
-
$content = (string) $content;
|
837 |
-
|
838 |
-
//WordPress only looks at the first 8 KiB of the file, so we do the same.
|
839 |
-
$content = substr($content, 0, 8192);
|
840 |
-
//Normalize line endings.
|
841 |
-
$content = str_replace("\r", "\n", $content);
|
842 |
-
|
843 |
-
$headers = $this->getHeaderNames();
|
844 |
-
$results = array();
|
845 |
-
foreach ($headers as $field => $name) {
|
846 |
-
$success = preg_match('/^[ \t\/*#@]*' . preg_quote($name, '/') . ':(.*)$/mi', $content, $matches);
|
847 |
-
|
848 |
-
if ( ($success === 1) && $matches[1] ) {
|
849 |
-
$value = $matches[1];
|
850 |
-
if ( function_exists('_cleanup_header_comment') ) {
|
851 |
-
$value = _cleanup_header_comment($value);
|
852 |
-
}
|
853 |
-
$results[$field] = $value;
|
854 |
-
} else {
|
855 |
-
$results[$field] = '';
|
856 |
-
}
|
857 |
-
}
|
858 |
-
|
859 |
-
return $results;
|
860 |
-
}
|
861 |
-
|
862 |
-
/**
|
863 |
-
* @return array Format: ['HeaderKey' => 'Header Name']
|
864 |
-
*/
|
865 |
-
abstract protected function getHeaderNames();
|
866 |
-
|
867 |
-
/* -------------------------------------------------------------------
|
868 |
-
* DebugBar integration
|
869 |
-
* -------------------------------------------------------------------
|
870 |
-
*/
|
871 |
-
|
872 |
-
/**
|
873 |
-
* Initialize the update checker Debug Bar plugin/add-on thingy.
|
874 |
-
*/
|
875 |
-
public function maybeInitDebugBar() {
|
876 |
-
if ( class_exists('Debug_Bar', false) && file_exists(dirname(__FILE__ . '/DebugBar')) ) {
|
877 |
-
$this->createDebugBarExtension();
|
878 |
-
}
|
879 |
-
}
|
880 |
-
|
881 |
-
protected function createDebugBarExtension() {
|
882 |
-
return new Puc_v4p4_DebugBar_Extension($this);
|
883 |
-
}
|
884 |
-
|
885 |
-
/**
|
886 |
-
* Display additional configuration details in the Debug Bar panel.
|
887 |
-
*
|
888 |
-
* @param Puc_v4p4_DebugBar_Panel $panel
|
889 |
-
*/
|
890 |
-
public function onDisplayConfiguration($panel) {
|
891 |
-
//Do nothing. Subclasses can use this to add additional info to the panel.
|
892 |
-
}
|
893 |
-
|
894 |
-
}
|
895 |
-
|
896 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/UpgraderStatus.php
DELETED
@@ -1,199 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_UpgraderStatus', false) ):
|
3 |
-
|
4 |
-
/**
|
5 |
-
* A utility class that helps figure out which plugin or theme WordPress is upgrading.
|
6 |
-
*
|
7 |
-
* It may seem strange to have a separate class just for that, but the task is surprisingly complicated.
|
8 |
-
* Core classes like Plugin_Upgrader don't expose the plugin file name during an in-progress update (AFAICT).
|
9 |
-
* This class uses a few workarounds and heuristics to get the file name.
|
10 |
-
*/
|
11 |
-
class Puc_v4p4_UpgraderStatus {
|
12 |
-
private $currentType = null; //"plugin" or "theme".
|
13 |
-
private $currentId = null; //Plugin basename or theme directory name.
|
14 |
-
|
15 |
-
public function __construct() {
|
16 |
-
//Keep track of which plugin/theme WordPress is currently upgrading.
|
17 |
-
add_filter('upgrader_pre_install', array($this, 'setUpgradedThing'), 10, 2);
|
18 |
-
add_filter('upgrader_package_options', array($this, 'setUpgradedPluginFromOptions'), 10, 1);
|
19 |
-
add_filter('upgrader_post_install', array($this, 'clearUpgradedThing'), 10, 1);
|
20 |
-
add_action('upgrader_process_complete', array($this, 'clearUpgradedThing'), 10, 1);
|
21 |
-
}
|
22 |
-
|
23 |
-
/**
|
24 |
-
* Is there and update being installed RIGHT NOW, for a specific plugin?
|
25 |
-
*
|
26 |
-
* Caution: This method is unreliable. WordPress doesn't make it easy to figure out what it is upgrading,
|
27 |
-
* and upgrader implementations are liable to change without notice.
|
28 |
-
*
|
29 |
-
* @param string $pluginFile The plugin to check.
|
30 |
-
* @param WP_Upgrader|null $upgrader The upgrader that's performing the current update.
|
31 |
-
* @return bool True if the plugin identified by $pluginFile is being upgraded.
|
32 |
-
*/
|
33 |
-
public function isPluginBeingUpgraded($pluginFile, $upgrader = null) {
|
34 |
-
return $this->isBeingUpgraded('plugin', $pluginFile, $upgrader);
|
35 |
-
}
|
36 |
-
|
37 |
-
/**
|
38 |
-
* Is there an update being installed for a specific theme?
|
39 |
-
*
|
40 |
-
* @param string $stylesheet Theme directory name.
|
41 |
-
* @param WP_Upgrader|null $upgrader The upgrader that's performing the current update.
|
42 |
-
* @return bool
|
43 |
-
*/
|
44 |
-
public function isThemeBeingUpgraded($stylesheet, $upgrader = null) {
|
45 |
-
return $this->isBeingUpgraded('theme', $stylesheet, $upgrader);
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Check if a specific theme or plugin is being upgraded.
|
50 |
-
*
|
51 |
-
* @param string $type
|
52 |
-
* @param string $id
|
53 |
-
* @param Plugin_Upgrader|WP_Upgrader|null $upgrader
|
54 |
-
* @return bool
|
55 |
-
*/
|
56 |
-
protected function isBeingUpgraded($type, $id, $upgrader = null) {
|
57 |
-
if ( isset($upgrader) ) {
|
58 |
-
list($currentType, $currentId) = $this->getThingBeingUpgradedBy($upgrader);
|
59 |
-
if ( $currentType !== null ) {
|
60 |
-
$this->currentType = $currentType;
|
61 |
-
$this->currentId = $currentId;
|
62 |
-
}
|
63 |
-
}
|
64 |
-
return ($this->currentType === $type) && ($this->currentId === $id);
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Figure out which theme or plugin is being upgraded by a WP_Upgrader instance.
|
69 |
-
*
|
70 |
-
* Returns an array with two items. The first item is the type of the thing that's being
|
71 |
-
* upgraded: "plugin" or "theme". The second item is either the plugin basename or
|
72 |
-
* the theme directory name. If we can't determine what the upgrader is doing, both items
|
73 |
-
* will be NULL.
|
74 |
-
*
|
75 |
-
* Examples:
|
76 |
-
* ['plugin', 'plugin-dir-name/plugin.php']
|
77 |
-
* ['theme', 'theme-dir-name']
|
78 |
-
*
|
79 |
-
* @param Plugin_Upgrader|WP_Upgrader $upgrader
|
80 |
-
* @return array
|
81 |
-
*/
|
82 |
-
private function getThingBeingUpgradedBy($upgrader) {
|
83 |
-
if ( !isset($upgrader, $upgrader->skin) ) {
|
84 |
-
return array(null, null);
|
85 |
-
}
|
86 |
-
|
87 |
-
//Figure out which plugin or theme is being upgraded.
|
88 |
-
$pluginFile = null;
|
89 |
-
$themeDirectoryName = null;
|
90 |
-
|
91 |
-
$skin = $upgrader->skin;
|
92 |
-
if ( isset($skin->theme_info) && ($skin->theme_info instanceof WP_Theme) ) {
|
93 |
-
$themeDirectoryName = $skin->theme_info->get_stylesheet();
|
94 |
-
} elseif ( $skin instanceof Plugin_Upgrader_Skin ) {
|
95 |
-
if ( isset($skin->plugin) && is_string($skin->plugin) && ($skin->plugin !== '') ) {
|
96 |
-
$pluginFile = $skin->plugin;
|
97 |
-
}
|
98 |
-
} elseif ( $skin instanceof Theme_Upgrader_Skin ) {
|
99 |
-
if ( isset($skin->theme) && is_string($skin->theme) && ($skin->theme !== '') ) {
|
100 |
-
$themeDirectoryName = $skin->theme;
|
101 |
-
}
|
102 |
-
} elseif ( isset($skin->plugin_info) && is_array($skin->plugin_info) ) {
|
103 |
-
//This case is tricky because Bulk_Plugin_Upgrader_Skin (etc) doesn't actually store the plugin
|
104 |
-
//filename anywhere. Instead, it has the plugin headers in $plugin_info. So the best we can
|
105 |
-
//do is compare those headers to the headers of installed plugins.
|
106 |
-
$pluginFile = $this->identifyPluginByHeaders($skin->plugin_info);
|
107 |
-
}
|
108 |
-
|
109 |
-
if ( $pluginFile !== null ) {
|
110 |
-
return array('plugin', $pluginFile);
|
111 |
-
} elseif ( $themeDirectoryName !== null ) {
|
112 |
-
return array('theme', $themeDirectoryName);
|
113 |
-
}
|
114 |
-
return array(null, null);
|
115 |
-
}
|
116 |
-
|
117 |
-
/**
|
118 |
-
* Identify an installed plugin based on its headers.
|
119 |
-
*
|
120 |
-
* @param array $searchHeaders The plugin file header to look for.
|
121 |
-
* @return string|null Plugin basename ("foo/bar.php"), or NULL if we can't identify the plugin.
|
122 |
-
*/
|
123 |
-
private function identifyPluginByHeaders($searchHeaders) {
|
124 |
-
if ( !function_exists('get_plugins') ){
|
125 |
-
/** @noinspection PhpIncludeInspection */
|
126 |
-
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
127 |
-
}
|
128 |
-
|
129 |
-
$installedPlugins = get_plugins();
|
130 |
-
$matches = array();
|
131 |
-
foreach($installedPlugins as $pluginBasename => $headers) {
|
132 |
-
$diff1 = array_diff_assoc($headers, $searchHeaders);
|
133 |
-
$diff2 = array_diff_assoc($searchHeaders, $headers);
|
134 |
-
if ( empty($diff1) && empty($diff2) ) {
|
135 |
-
$matches[] = $pluginBasename;
|
136 |
-
}
|
137 |
-
}
|
138 |
-
|
139 |
-
//It's possible (though very unlikely) that there could be two plugins with identical
|
140 |
-
//headers. In that case, we can't unambiguously identify the plugin that's being upgraded.
|
141 |
-
if ( count($matches) !== 1 ) {
|
142 |
-
return null;
|
143 |
-
}
|
144 |
-
|
145 |
-
return reset($matches);
|
146 |
-
}
|
147 |
-
|
148 |
-
/**
|
149 |
-
* @access private
|
150 |
-
*
|
151 |
-
* @param mixed $input
|
152 |
-
* @param array $hookExtra
|
153 |
-
* @return mixed Returns $input unaltered.
|
154 |
-
*/
|
155 |
-
public function setUpgradedThing($input, $hookExtra) {
|
156 |
-
if ( !empty($hookExtra['plugin']) && is_string($hookExtra['plugin']) ) {
|
157 |
-
$this->currentId = $hookExtra['plugin'];
|
158 |
-
$this->currentType = 'plugin';
|
159 |
-
} elseif ( !empty($hookExtra['theme']) && is_string($hookExtra['theme']) ) {
|
160 |
-
$this->currentId = $hookExtra['theme'];
|
161 |
-
$this->currentType = 'theme';
|
162 |
-
} else {
|
163 |
-
$this->currentType = null;
|
164 |
-
$this->currentId = null;
|
165 |
-
}
|
166 |
-
return $input;
|
167 |
-
}
|
168 |
-
|
169 |
-
/**
|
170 |
-
* @access private
|
171 |
-
*
|
172 |
-
* @param array $options
|
173 |
-
* @return array
|
174 |
-
*/
|
175 |
-
public function setUpgradedPluginFromOptions($options) {
|
176 |
-
if ( isset($options['hook_extra']['plugin']) && is_string($options['hook_extra']['plugin']) ) {
|
177 |
-
$this->currentType = 'plugin';
|
178 |
-
$this->currentId = $options['hook_extra']['plugin'];
|
179 |
-
} else {
|
180 |
-
$this->currentType = null;
|
181 |
-
$this->currentId = null;
|
182 |
-
}
|
183 |
-
return $options;
|
184 |
-
}
|
185 |
-
|
186 |
-
/**
|
187 |
-
* @access private
|
188 |
-
*
|
189 |
-
* @param mixed $input
|
190 |
-
* @return mixed Returns $input unaltered.
|
191 |
-
*/
|
192 |
-
public function clearUpgradedThing($input = null) {
|
193 |
-
$this->currentId = null;
|
194 |
-
$this->currentType = null;
|
195 |
-
return $input;
|
196 |
-
}
|
197 |
-
}
|
198 |
-
|
199 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Utils.php
DELETED
@@ -1,69 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('Puc_v4p4_Utils', false) ):
|
4 |
-
|
5 |
-
class Puc_v4p4_Utils {
|
6 |
-
/**
|
7 |
-
* Get a value from a nested array or object based on a path.
|
8 |
-
*
|
9 |
-
* @param array|object|null $collection Get an entry from this array.
|
10 |
-
* @param array|string $path A list of array keys in hierarchy order, or a string path like "foo.bar.baz".
|
11 |
-
* @param mixed $default The value to return if the specified path is not found.
|
12 |
-
* @param string $separator Path element separator. Only applies to string paths.
|
13 |
-
* @return mixed
|
14 |
-
*/
|
15 |
-
public static function get($collection, $path, $default = null, $separator = '.') {
|
16 |
-
if ( is_string($path) ) {
|
17 |
-
$path = explode($separator, $path);
|
18 |
-
}
|
19 |
-
|
20 |
-
//Follow the $path into $input as far as possible.
|
21 |
-
$currentValue = $collection;
|
22 |
-
foreach ($path as $node) {
|
23 |
-
if ( is_array($currentValue) && isset($currentValue[$node]) ) {
|
24 |
-
$currentValue = $currentValue[$node];
|
25 |
-
} else if ( is_object($currentValue) && isset($currentValue->$node) ) {
|
26 |
-
$currentValue = $currentValue->$node;
|
27 |
-
} else {
|
28 |
-
return $default;
|
29 |
-
}
|
30 |
-
}
|
31 |
-
|
32 |
-
return $currentValue;
|
33 |
-
}
|
34 |
-
|
35 |
-
/**
|
36 |
-
* Get the first array element that is not empty.
|
37 |
-
*
|
38 |
-
* @param array $values
|
39 |
-
* @param mixed|null $default Returns this value if there are no non-empty elements.
|
40 |
-
* @return mixed|null
|
41 |
-
*/
|
42 |
-
public static function findNotEmpty($values, $default = null) {
|
43 |
-
if ( empty($values) ) {
|
44 |
-
return $default;
|
45 |
-
}
|
46 |
-
|
47 |
-
foreach ($values as $value) {
|
48 |
-
if ( !empty($value) ) {
|
49 |
-
return $value;
|
50 |
-
}
|
51 |
-
}
|
52 |
-
|
53 |
-
return $default;
|
54 |
-
}
|
55 |
-
|
56 |
-
/**
|
57 |
-
* Check if the input string starts with the specified prefix.
|
58 |
-
*
|
59 |
-
* @param string $input
|
60 |
-
* @param string $prefix
|
61 |
-
* @return bool
|
62 |
-
*/
|
63 |
-
public static function startsWith($input, $prefix) {
|
64 |
-
$length = strlen($prefix);
|
65 |
-
return (substr($input, 0, $length) === $prefix);
|
66 |
-
}
|
67 |
-
}
|
68 |
-
|
69 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Vcs/Api.php
DELETED
@@ -1,302 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_Vcs_Api') ):
|
3 |
-
|
4 |
-
abstract class Puc_v4p4_Vcs_Api {
|
5 |
-
protected $tagNameProperty = 'name';
|
6 |
-
protected $slug = '';
|
7 |
-
|
8 |
-
/**
|
9 |
-
* @var string
|
10 |
-
*/
|
11 |
-
protected $repositoryUrl = '';
|
12 |
-
|
13 |
-
/**
|
14 |
-
* @var mixed Authentication details for private repositories. Format depends on service.
|
15 |
-
*/
|
16 |
-
protected $credentials = null;
|
17 |
-
|
18 |
-
/**
|
19 |
-
* @var string The filter tag that's used to filter options passed to wp_remote_get.
|
20 |
-
* For example, "puc_request_info_options-slug" or "puc_request_update_options_theme-slug".
|
21 |
-
*/
|
22 |
-
protected $httpFilterName = '';
|
23 |
-
|
24 |
-
/**
|
25 |
-
* @var string|null
|
26 |
-
*/
|
27 |
-
protected $localDirectory = null;
|
28 |
-
|
29 |
-
/**
|
30 |
-
* Puc_v4p4_Vcs_Api constructor.
|
31 |
-
*
|
32 |
-
* @param string $repositoryUrl
|
33 |
-
* @param array|string|null $credentials
|
34 |
-
*/
|
35 |
-
public function __construct($repositoryUrl, $credentials = null) {
|
36 |
-
$this->repositoryUrl = $repositoryUrl;
|
37 |
-
$this->setAuthentication($credentials);
|
38 |
-
}
|
39 |
-
|
40 |
-
/**
|
41 |
-
* @return string
|
42 |
-
*/
|
43 |
-
public function getRepositoryUrl() {
|
44 |
-
return $this->repositoryUrl;
|
45 |
-
}
|
46 |
-
|
47 |
-
/**
|
48 |
-
* Figure out which reference (i.e tag or branch) contains the latest version.
|
49 |
-
*
|
50 |
-
* @param string $configBranch Start looking in this branch.
|
51 |
-
* @return null|Puc_v4p4_Vcs_Reference
|
52 |
-
*/
|
53 |
-
abstract public function chooseReference($configBranch);
|
54 |
-
|
55 |
-
/**
|
56 |
-
* Get the readme.txt file from the remote repository and parse it
|
57 |
-
* according to the plugin readme standard.
|
58 |
-
*
|
59 |
-
* @param string $ref Tag or branch name.
|
60 |
-
* @return array Parsed readme.
|
61 |
-
*/
|
62 |
-
public function getRemoteReadme($ref = 'master') {
|
63 |
-
$fileContents = $this->getRemoteFile($this->getLocalReadmeName(), $ref);
|
64 |
-
if ( empty($fileContents) ) {
|
65 |
-
return array();
|
66 |
-
}
|
67 |
-
|
68 |
-
$parser = new PucReadmeParser();
|
69 |
-
return $parser->parse_readme_contents($fileContents);
|
70 |
-
}
|
71 |
-
|
72 |
-
/**
|
73 |
-
* Get the case-sensitive name of the local readme.txt file.
|
74 |
-
*
|
75 |
-
* In most cases it should just be called "readme.txt", but some plugins call it "README.txt",
|
76 |
-
* "README.TXT", or even "Readme.txt". Most VCS are case-sensitive so we need to know the correct
|
77 |
-
* capitalization.
|
78 |
-
*
|
79 |
-
* Defaults to "readme.txt" (all lowercase).
|
80 |
-
*
|
81 |
-
* @return string
|
82 |
-
*/
|
83 |
-
public function getLocalReadmeName() {
|
84 |
-
static $fileName = null;
|
85 |
-
if ( $fileName !== null ) {
|
86 |
-
return $fileName;
|
87 |
-
}
|
88 |
-
|
89 |
-
$fileName = 'readme.txt';
|
90 |
-
if ( isset($this->localDirectory) ) {
|
91 |
-
$files = scandir($this->localDirectory);
|
92 |
-
if ( !empty($files) ) {
|
93 |
-
foreach ($files as $possibleFileName) {
|
94 |
-
if ( strcasecmp($possibleFileName, 'readme.txt') === 0 ) {
|
95 |
-
$fileName = $possibleFileName;
|
96 |
-
break;
|
97 |
-
}
|
98 |
-
}
|
99 |
-
}
|
100 |
-
}
|
101 |
-
return $fileName;
|
102 |
-
}
|
103 |
-
|
104 |
-
/**
|
105 |
-
* Get a branch.
|
106 |
-
*
|
107 |
-
* @param string $branchName
|
108 |
-
* @return Puc_v4p4_Vcs_Reference|null
|
109 |
-
*/
|
110 |
-
abstract public function getBranch($branchName);
|
111 |
-
|
112 |
-
/**
|
113 |
-
* Get a specific tag.
|
114 |
-
*
|
115 |
-
* @param string $tagName
|
116 |
-
* @return Puc_v4p4_Vcs_Reference|null
|
117 |
-
*/
|
118 |
-
abstract public function getTag($tagName);
|
119 |
-
|
120 |
-
/**
|
121 |
-
* Get the tag that looks like the highest version number.
|
122 |
-
* (Implementations should skip pre-release versions if possible.)
|
123 |
-
*
|
124 |
-
* @return Puc_v4p4_Vcs_Reference|null
|
125 |
-
*/
|
126 |
-
abstract public function getLatestTag();
|
127 |
-
|
128 |
-
/**
|
129 |
-
* Check if a tag name string looks like a version number.
|
130 |
-
*
|
131 |
-
* @param string $name
|
132 |
-
* @return bool
|
133 |
-
*/
|
134 |
-
protected function looksLikeVersion($name) {
|
135 |
-
//Tag names may be prefixed with "v", e.g. "v1.2.3".
|
136 |
-
$name = ltrim($name, 'v');
|
137 |
-
|
138 |
-
//The version string must start with a number.
|
139 |
-
if ( !is_numeric(substr($name, 0, 1)) ) {
|
140 |
-
return false;
|
141 |
-
}
|
142 |
-
|
143 |
-
//The goal is to accept any SemVer-compatible or "PHP-standardized" version number.
|
144 |
-
return (preg_match('@^(\d{1,5}?)(\.\d{1,10}?){0,4}?($|[abrdp+_\-]|\s)@i', $name) === 1);
|
145 |
-
}
|
146 |
-
|
147 |
-
/**
|
148 |
-
* Check if a tag appears to be named like a version number.
|
149 |
-
*
|
150 |
-
* @param stdClass $tag
|
151 |
-
* @return bool
|
152 |
-
*/
|
153 |
-
protected function isVersionTag($tag) {
|
154 |
-
$property = $this->tagNameProperty;
|
155 |
-
return isset($tag->$property) && $this->looksLikeVersion($tag->$property);
|
156 |
-
}
|
157 |
-
|
158 |
-
/**
|
159 |
-
* Sort a list of tags as if they were version numbers.
|
160 |
-
* Tags that don't look like version number will be removed.
|
161 |
-
*
|
162 |
-
* @param stdClass[] $tags Array of tag objects.
|
163 |
-
* @return stdClass[] Filtered array of tags sorted in descending order.
|
164 |
-
*/
|
165 |
-
protected function sortTagsByVersion($tags) {
|
166 |
-
//Keep only those tags that look like version numbers.
|
167 |
-
$versionTags = array_filter($tags, array($this, 'isVersionTag'));
|
168 |
-
//Sort them in descending order.
|
169 |
-
usort($versionTags, array($this, 'compareTagNames'));
|
170 |
-
|
171 |
-
return $versionTags;
|
172 |
-
}
|
173 |
-
|
174 |
-
/**
|
175 |
-
* Compare two tags as if they were version number.
|
176 |
-
*
|
177 |
-
* @param stdClass $tag1 Tag object.
|
178 |
-
* @param stdClass $tag2 Another tag object.
|
179 |
-
* @return int
|
180 |
-
*/
|
181 |
-
protected function compareTagNames($tag1, $tag2) {
|
182 |
-
$property = $this->tagNameProperty;
|
183 |
-
if ( !isset($tag1->$property) ) {
|
184 |
-
return 1;
|
185 |
-
}
|
186 |
-
if ( !isset($tag2->$property) ) {
|
187 |
-
return -1;
|
188 |
-
}
|
189 |
-
return -version_compare(ltrim($tag1->$property, 'v'), ltrim($tag2->$property, 'v'));
|
190 |
-
}
|
191 |
-
|
192 |
-
/**
|
193 |
-
* Get the contents of a file from a specific branch or tag.
|
194 |
-
*
|
195 |
-
* @param string $path File name.
|
196 |
-
* @param string $ref
|
197 |
-
* @return null|string Either the contents of the file, or null if the file doesn't exist or there's an error.
|
198 |
-
*/
|
199 |
-
abstract public function getRemoteFile($path, $ref = 'master');
|
200 |
-
|
201 |
-
/**
|
202 |
-
* Get the timestamp of the latest commit that changed the specified branch or tag.
|
203 |
-
*
|
204 |
-
* @param string $ref Reference name (e.g. branch or tag).
|
205 |
-
* @return string|null
|
206 |
-
*/
|
207 |
-
abstract public function getLatestCommitTime($ref);
|
208 |
-
|
209 |
-
/**
|
210 |
-
* Get the contents of the changelog file from the repository.
|
211 |
-
*
|
212 |
-
* @param string $ref
|
213 |
-
* @param string $localDirectory Full path to the local plugin or theme directory.
|
214 |
-
* @return null|string The HTML contents of the changelog.
|
215 |
-
*/
|
216 |
-
public function getRemoteChangelog($ref, $localDirectory) {
|
217 |
-
$filename = $this->findChangelogName($localDirectory);
|
218 |
-
if ( empty($filename) ) {
|
219 |
-
return null;
|
220 |
-
}
|
221 |
-
|
222 |
-
$changelog = $this->getRemoteFile($filename, $ref);
|
223 |
-
if ( $changelog === null ) {
|
224 |
-
return null;
|
225 |
-
}
|
226 |
-
|
227 |
-
/** @noinspection PhpUndefinedClassInspection */
|
228 |
-
return Parsedown::instance()->text($changelog);
|
229 |
-
}
|
230 |
-
|
231 |
-
/**
|
232 |
-
* Guess the name of the changelog file.
|
233 |
-
*
|
234 |
-
* @param string $directory
|
235 |
-
* @return string|null
|
236 |
-
*/
|
237 |
-
protected function findChangelogName($directory = null) {
|
238 |
-
if ( !isset($directory) ) {
|
239 |
-
$directory = $this->localDirectory;
|
240 |
-
}
|
241 |
-
if ( empty($directory) || !is_dir($directory) || ($directory === '.') ) {
|
242 |
-
return null;
|
243 |
-
}
|
244 |
-
|
245 |
-
$possibleNames = array('CHANGES.md', 'CHANGELOG.md', 'changes.md', 'changelog.md');
|
246 |
-
$files = scandir($directory);
|
247 |
-
$foundNames = array_intersect($possibleNames, $files);
|
248 |
-
|
249 |
-
if ( !empty($foundNames) ) {
|
250 |
-
return reset($foundNames);
|
251 |
-
}
|
252 |
-
return null;
|
253 |
-
}
|
254 |
-
|
255 |
-
/**
|
256 |
-
* Set authentication credentials.
|
257 |
-
*
|
258 |
-
* @param $credentials
|
259 |
-
*/
|
260 |
-
public function setAuthentication($credentials) {
|
261 |
-
$this->credentials = $credentials;
|
262 |
-
}
|
263 |
-
|
264 |
-
public function isAuthenticationEnabled() {
|
265 |
-
return !empty($this->credentials);
|
266 |
-
}
|
267 |
-
|
268 |
-
/**
|
269 |
-
* @param string $url
|
270 |
-
* @return string
|
271 |
-
*/
|
272 |
-
public function signDownloadUrl($url) {
|
273 |
-
return $url;
|
274 |
-
}
|
275 |
-
|
276 |
-
/**
|
277 |
-
* @param string $filterName
|
278 |
-
*/
|
279 |
-
public function setHttpFilterName($filterName) {
|
280 |
-
$this->httpFilterName = $filterName;
|
281 |
-
}
|
282 |
-
|
283 |
-
/**
|
284 |
-
* @param string $directory
|
285 |
-
*/
|
286 |
-
public function setLocalDirectory($directory) {
|
287 |
-
if ( empty($directory) || !is_dir($directory) || ($directory === '.') ) {
|
288 |
-
$this->localDirectory = null;
|
289 |
-
} else {
|
290 |
-
$this->localDirectory = $directory;
|
291 |
-
}
|
292 |
-
}
|
293 |
-
|
294 |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Vcs/BaseChecker.php
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !interface_exists('Puc_v4p4_Vcs_BaseChecker', false) ):
|
3 |
-
|
4 |
-
interface Puc_v4p4_Vcs_BaseChecker {
|
5 |
-
/**
|
6 |
-
* Set the repository branch to use for updates. Defaults to 'master'.
|
7 |
-
*
|
8 |
-
* @param string $branch
|
9 |
-
* @return $this
|
10 |
-
*/
|
11 |
-
public function setBranch($branch);
|
12 |
-
|
13 |
-
/**
|
14 |
-
* Set authentication credentials.
|
15 |
-
*
|
16 |
-
* @param array|string $credentials
|
17 |
-
* @return $this
|
18 |
-
*/
|
19 |
-
public function setAuthentication($credentials);
|
20 |
-
|
21 |
-
/**
|
22 |
-
* @return Puc_v4p4_Vcs_Api
|
23 |
-
*/
|
24 |
-
public function getVcsApi();
|
25 |
-
}
|
26 |
-
|
27 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Vcs/BitBucketApi.php
DELETED
@@ -1,256 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_Vcs_BitBucketApi', false) ):
|
3 |
-
|
4 |
-
class Puc_v4p4_Vcs_BitBucketApi extends Puc_v4p4_Vcs_Api {
|
5 |
-
/**
|
6 |
-
* @var Puc_v4p4_OAuthSignature
|
7 |
-
*/
|
8 |
-
private $oauth = null;
|
9 |
-
|
10 |
-
/**
|
11 |
-
* @var string
|
12 |
-
*/
|
13 |
-
private $username;
|
14 |
-
|
15 |
-
/**
|
16 |
-
* @var string
|
17 |
-
*/
|
18 |
-
private $repository;
|
19 |
-
|
20 |
-
public function __construct($repositoryUrl, $credentials = array()) {
|
21 |
-
$path = @parse_url($repositoryUrl, PHP_URL_PATH);
|
22 |
-
if ( preg_match('@^/?(?P<username>[^/]+?)/(?P<repository>[^/#?&]+?)/?$@', $path, $matches) ) {
|
23 |
-
$this->username = $matches['username'];
|
24 |
-
$this->repository = $matches['repository'];
|
25 |
-
} else {
|
26 |
-
throw new InvalidArgumentException('Invalid BitBucket repository URL: "' . $repositoryUrl . '"');
|
27 |
-
}
|
28 |
-
|
29 |
-
parent::__construct($repositoryUrl, $credentials);
|
30 |
-
}
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Figure out which reference (i.e tag or branch) contains the latest version.
|
34 |
-
*
|
35 |
-
* @param string $configBranch Start looking in this branch.
|
36 |
-
* @return null|Puc_v4p4_Vcs_Reference
|
37 |
-
*/
|
38 |
-
public function chooseReference($configBranch) {
|
39 |
-
$updateSource = null;
|
40 |
-
|
41 |
-
//Check if there's a "Stable tag: 1.2.3" header that points to a valid tag.
|
42 |
-
$updateSource = $this->getStableTag($configBranch);
|
43 |
-
|
44 |
-
//Look for version-like tags.
|
45 |
-
if ( !$updateSource && ($configBranch === 'master') ) {
|
46 |
-
$updateSource = $this->getLatestTag();
|
47 |
-
}
|
48 |
-
//If all else fails, use the specified branch itself.
|
49 |
-
if ( !$updateSource ) {
|
50 |
-
$updateSource = $this->getBranch($configBranch);
|
51 |
-
}
|
52 |
-
|
53 |
-
return $updateSource;
|
54 |
-
}
|
55 |
-
|
56 |
-
public function getBranch($branchName) {
|
57 |
-
$branch = $this->api('/refs/branches/' . $branchName);
|
58 |
-
if ( is_wp_error($branch) || empty($branch) ) {
|
59 |
-
return null;
|
60 |
-
}
|
61 |
-
|
62 |
-
return new Puc_v4p4_Vcs_Reference(array(
|
63 |
-
'name' => $branch->name,
|
64 |
-
'updated' => $branch->target->date,
|
65 |
-
'downloadUrl' => $this->getDownloadUrl($branch->name),
|
66 |
-
));
|
67 |
-
}
|
68 |
-
|
69 |
-
/**
|
70 |
-
* Get a specific tag.
|
71 |
-
*
|
72 |
-
* @param string $tagName
|
73 |
-
* @return Puc_v4p4_Vcs_Reference|null
|
74 |
-
*/
|
75 |
-
public function getTag($tagName) {
|
76 |
-
$tag = $this->api('/refs/tags/' . $tagName);
|
77 |
-
if ( is_wp_error($tag) || empty($tag) ) {
|
78 |
-
return null;
|
79 |
-
}
|
80 |
-
|
81 |
-
return new Puc_v4p4_Vcs_Reference(array(
|
82 |
-
'name' => $tag->name,
|
83 |
-
'version' => ltrim($tag->name, 'v'),
|
84 |
-
'updated' => $tag->target->date,
|
85 |
-
'downloadUrl' => $this->getDownloadUrl($tag->name),
|
86 |
-
));
|
87 |
-
}
|
88 |
-
|
89 |
-
/**
|
90 |
-
* Get the tag that looks like the highest version number.
|
91 |
-
*
|
92 |
-
* @return Puc_v4p4_Vcs_Reference|null
|
93 |
-
*/
|
94 |
-
public function getLatestTag() {
|
95 |
-
$tags = $this->api('/refs/tags?sort=-target.date');
|
96 |
-
if ( !isset($tags, $tags->values) || !is_array($tags->values) ) {
|
97 |
-
return null;
|
98 |
-
}
|
99 |
-
|
100 |
-
//Filter and sort the list of tags.
|
101 |
-
$versionTags = $this->sortTagsByVersion($tags->values);
|
102 |
-
|
103 |
-
//Return the first result.
|
104 |
-
if ( !empty($versionTags) ) {
|
105 |
-
$tag = $versionTags[0];
|
106 |
-
return new Puc_v4p4_Vcs_Reference(array(
|
107 |
-
'name' => $tag->name,
|
108 |
-
'version' => ltrim($tag->name, 'v'),
|
109 |
-
'updated' => $tag->target->date,
|
110 |
-
'downloadUrl' => $this->getDownloadUrl($tag->name),
|
111 |
-
));
|
112 |
-
}
|
113 |
-
return null;
|
114 |
-
}
|
115 |
-
|
116 |
-
/**
|
117 |
-
* Get the tag/ref specified by the "Stable tag" header in the readme.txt of a given branch.
|
118 |
-
*
|
119 |
-
* @param string $branch
|
120 |
-
* @return null|Puc_v4p4_Vcs_Reference
|
121 |
-
*/
|
122 |
-
protected function getStableTag($branch) {
|
123 |
-
$remoteReadme = $this->getRemoteReadme($branch);
|
124 |
-
if ( !empty($remoteReadme['stable_tag']) ) {
|
125 |
-
$tag = $remoteReadme['stable_tag'];
|
126 |
-
|
127 |
-
//You can explicitly opt out of using tags by setting "Stable tag" to
|
128 |
-
//"trunk" or the name of the current branch.
|
129 |
-
if ( ($tag === $branch) || ($tag === 'trunk') ) {
|
130 |
-
return $this->getBranch($branch);
|
131 |
-
}
|
132 |
-
|
133 |
-
return $this->getTag($tag);
|
134 |
-
}
|
135 |
-
|
136 |
-
return null;
|
137 |
-
}
|
138 |
-
|
139 |
-
/**
|
140 |
-
* @param string $ref
|
141 |
-
* @return string
|
142 |
-
*/
|
143 |
-
protected function getDownloadUrl($ref) {
|
144 |
-
return sprintf(
|
145 |
-
'https://bitbucket.org/%s/%s/get/%s.zip',
|
146 |
-
$this->username,
|
147 |
-
$this->repository,
|
148 |
-
$ref
|
149 |
-
);
|
150 |
-
}
|
151 |
-
|
152 |
-
/**
|
153 |
-
* Get the contents of a file from a specific branch or tag.
|
154 |
-
*
|
155 |
-
* @param string $path File name.
|
156 |
-
* @param string $ref
|
157 |
-
* @return null|string Either the contents of the file, or null if the file doesn't exist or there's an error.
|
158 |
-
*/
|
159 |
-
public function getRemoteFile($path, $ref = 'master') {
|
160 |
-
$response = $this->api('src/' . $ref . '/' . ltrim($path), '1.0');
|
161 |
-
if ( is_wp_error($response) || !isset($response, $response->data) ) {
|
162 |
-
return null;
|
163 |
-
}
|
164 |
-
return $response->data;
|
165 |
-
}
|
166 |
-
|
167 |
-
/**
|
168 |
-
* Get the timestamp of the latest commit that changed the specified branch or tag.
|
169 |
-
*
|
170 |
-
* @param string $ref Reference name (e.g. branch or tag).
|
171 |
-
* @return string|null
|
172 |
-
*/
|
173 |
-
public function getLatestCommitTime($ref) {
|
174 |
-
$response = $this->api('commits/' . $ref);
|
175 |
-
if ( isset($response->values, $response->values[0], $response->values[0]->date) ) {
|
176 |
-
return $response->values[0]->date;
|
177 |
-
}
|
178 |
-
return null;
|
179 |
-
}
|
180 |
-
|
181 |
-
/**
|
182 |
-
* Perform a BitBucket API 2.0 request.
|
183 |
-
*
|
184 |
-
* @param string $url
|
185 |
-
* @param string $version
|
186 |
-
* @return mixed|WP_Error
|
187 |
-
*/
|
188 |
-
public function api($url, $version = '2.0') {
|
189 |
-
$url = implode('/', array(
|
190 |
-
'https://api.bitbucket.org',
|
191 |
-
$version,
|
192 |
-
'repositories',
|
193 |
-
$this->username,
|
194 |
-
$this->repository,
|
195 |
-
ltrim($url, '/')
|
196 |
-
));
|
197 |
-
$baseUrl = $url;
|
198 |
-
|
199 |
-
if ( $this->oauth ) {
|
200 |
-
$url = $this->oauth->sign($url,'GET');
|
201 |
-
}
|
202 |
-
|
203 |
-
$options = array('timeout' => 10);
|
204 |
-
if ( !empty($this->httpFilterName) ) {
|
205 |
-
$options = apply_filters($this->httpFilterName, $options);
|
206 |
-
}
|
207 |
-
$response = wp_remote_get($url, $options);
|
208 |
-
if ( is_wp_error($response) ) {
|
209 |
-
do_action('puc_api_error', $response, null, $url, $this->slug);
|
210 |
-
return $response;
|
211 |
-
}
|
212 |
-
|
213 |
-
$code = wp_remote_retrieve_response_code($response);
|
214 |
-
$body = wp_remote_retrieve_body($response);
|
215 |
-
if ( $code === 200 ) {
|
216 |
-
$document = json_decode($body);
|
217 |
-
return $document;
|
218 |
-
}
|
219 |
-
|
220 |
-
$error = new WP_Error(
|
221 |
-
'puc-bitbucket-http-error',
|
222 |
-
sprintf('BitBucket API error. Base URL: "%s", HTTP status code: %d.', $baseUrl, $code)
|
223 |
-
);
|
224 |
-
do_action('puc_api_error', $error, $response, $url, $this->slug);
|
225 |
-
|
226 |
-
return $error;
|
227 |
-
}
|
228 |
-
|
229 |
-
/**
|
230 |
-
* @param array $credentials
|
231 |
-
*/
|
232 |
-
public function setAuthentication($credentials) {
|
233 |
-
parent::setAuthentication($credentials);
|
234 |
-
|
235 |
-
if ( !empty($credentials) && !empty($credentials['consumer_key']) ) {
|
236 |
-
$this->oauth = new Puc_v4p4_OAuthSignature(
|
237 |
-
$credentials['consumer_key'],
|
238 |
-
$credentials['consumer_secret']
|
239 |
-
);
|
240 |
-
} else {
|
241 |
-
$this->oauth = null;
|
242 |
-
}
|
243 |
-
}
|
244 |
-
|
245 |
-
public function signDownloadUrl($url) {
|
246 |
-
//Add authentication data to download URLs. Since OAuth signatures incorporate
|
247 |
-
//timestamps, we have to do this immediately before inserting the update. Otherwise
|
248 |
-
//authentication could fail due to a stale timestamp.
|
249 |
-
if ( $this->oauth ) {
|
250 |
-
$url = $this->oauth->sign($url);
|
251 |
-
}
|
252 |
-
return $url;
|
253 |
-
}
|
254 |
-
}
|
255 |
-
|
256 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Vcs/GitHubApi.php
DELETED
@@ -1,413 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('Puc_v4p4_Vcs_GitHubApi', false) ):
|
4 |
-
|
5 |
-
class Puc_v4p4_Vcs_GitHubApi extends Puc_v4p4_Vcs_Api {
|
6 |
-
/**
|
7 |
-
* @var string GitHub username.
|
8 |
-
*/
|
9 |
-
protected $userName;
|
10 |
-
/**
|
11 |
-
* @var string GitHub repository name.
|
12 |
-
*/
|
13 |
-
protected $repositoryName;
|
14 |
-
|
15 |
-
/**
|
16 |
-
* @var string Either a fully qualified repository URL, or just "user/repo-name".
|
17 |
-
*/
|
18 |
-
protected $repositoryUrl;
|
19 |
-
|
20 |
-
/**
|
21 |
-
* @var string GitHub authentication token. Optional.
|
22 |
-
*/
|
23 |
-
protected $accessToken;
|
24 |
-
|
25 |
-
/**
|
26 |
-
* @var bool Whether to download release assets instead of the auto-generated source code archives.
|
27 |
-
*/
|
28 |
-
protected $releaseAssetsEnabled = false;
|
29 |
-
|
30 |
-
/**
|
31 |
-
* @var string|null Regular expression that's used to filter release assets by name. Optional.
|
32 |
-
*/
|
33 |
-
protected $assetFilterRegex = null;
|
34 |
-
|
35 |
-
/**
|
36 |
-
* @var string|null The unchanging part of a release asset URL. Used to identify download attempts.
|
37 |
-
*/
|
38 |
-
protected $assetApiBaseUrl = null;
|
39 |
-
|
40 |
-
public function __construct($repositoryUrl, $accessToken = null) {
|
41 |
-
$path = @parse_url($repositoryUrl, PHP_URL_PATH);
|
42 |
-
if ( preg_match('@^/?(?P<username>[^/]+?)/(?P<repository>[^/#?&]+?)/?$@', $path, $matches) ) {
|
43 |
-
$this->userName = $matches['username'];
|
44 |
-
$this->repositoryName = $matches['repository'];
|
45 |
-
} else {
|
46 |
-
throw new InvalidArgumentException('Invalid GitHub repository URL: "' . $repositoryUrl . '"');
|
47 |
-
}
|
48 |
-
|
49 |
-
parent::__construct($repositoryUrl, $accessToken);
|
50 |
-
}
|
51 |
-
|
52 |
-
/**
|
53 |
-
* Get the latest release from GitHub.
|
54 |
-
*
|
55 |
-
* @return Puc_v4p4_Vcs_Reference|null
|
56 |
-
*/
|
57 |
-
public function getLatestRelease() {
|
58 |
-
$release = $this->api('/repos/:user/:repo/releases/latest');
|
59 |
-
if ( is_wp_error($release) || !is_object($release) || !isset($release->tag_name) ) {
|
60 |
-
return null;
|
61 |
-
}
|
62 |
-
|
63 |
-
$reference = new Puc_v4p4_Vcs_Reference(array(
|
64 |
-
'name' => $release->tag_name,
|
65 |
-
'version' => ltrim($release->tag_name, 'v'), //Remove the "v" prefix from "v1.2.3".
|
66 |
-
'downloadUrl' => $this->signDownloadUrl($release->zipball_url),
|
67 |
-
'updated' => $release->created_at,
|
68 |
-
'apiResponse' => $release,
|
69 |
-
));
|
70 |
-
|
71 |
-
if ( isset($release->assets[0]) ) {
|
72 |
-
$reference->downloadCount = $release->assets[0]->download_count;
|
73 |
-
}
|
74 |
-
|
75 |
-
if ( $this->releaseAssetsEnabled && isset($release->assets, $release->assets[0]) ) {
|
76 |
-
//Use the first release asset that matches the specified regular expression.
|
77 |
-
$matchingAssets = array_filter($release->assets, array($this, 'matchesAssetFilter'));
|
78 |
-
if ( !empty($matchingAssets) ) {
|
79 |
-
if ( $this->isAuthenticationEnabled() ) {
|
80 |
-
/**
|
81 |
-
* Keep in mind that we'll need to add an "Accept" header to download this asset.
|
82 |
-
* @see setReleaseDownloadHeader()
|
83 |
-
*/
|
84 |
-
$reference->downloadUrl = $this->signDownloadUrl($matchingAssets[0]->url);
|
85 |
-
} else {
|
86 |
-
//It seems that browser_download_url only works for public repositories.
|
87 |
-
//Using an access_token doesn't help. Maybe OAuth would work?
|
88 |
-
$reference->downloadUrl = $matchingAssets[0]->browser_download_url;
|
89 |
-
}
|
90 |
-
|
91 |
-
$reference->downloadCount = $matchingAssets[0]->download_count;
|
92 |
-
}
|
93 |
-
}
|
94 |
-
|
95 |
-
if ( !empty($release->body) ) {
|
96 |
-
/** @noinspection PhpUndefinedClassInspection */
|
97 |
-
$reference->changelog = Parsedown::instance()->text($release->body);
|
98 |
-
}
|
99 |
-
|
100 |
-
return $reference;
|
101 |
-
}
|
102 |
-
|
103 |
-
/**
|
104 |
-
* Get the tag that looks like the highest version number.
|
105 |
-
*
|
106 |
-
* @return Puc_v4p4_Vcs_Reference|null
|
107 |
-
*/
|
108 |
-
public function getLatestTag() {
|
109 |
-
$tags = $this->api('/repos/:user/:repo/tags');
|
110 |
-
|
111 |
-
if ( is_wp_error($tags) || empty($tags) || !is_array($tags) ) {
|
112 |
-
return null;
|
113 |
-
}
|
114 |
-
|
115 |
-
$versionTags = $this->sortTagsByVersion($tags);
|
116 |
-
if ( empty($versionTags) ) {
|
117 |
-
return null;
|
118 |
-
}
|
119 |
-
|
120 |
-
$tag = $versionTags[0];
|
121 |
-
return new Puc_v4p4_Vcs_Reference(array(
|
122 |
-
'name' => $tag->name,
|
123 |
-
'version' => ltrim($tag->name, 'v'),
|
124 |
-
'downloadUrl' => $this->signDownloadUrl($tag->zipball_url),
|
125 |
-
'apiResponse' => $tag,
|
126 |
-
));
|
127 |
-
}
|
128 |
-
|
129 |
-
/**
|
130 |
-
* Get a branch by name.
|
131 |
-
*
|
132 |
-
* @param string $branchName
|
133 |
-
* @return null|Puc_v4p4_Vcs_Reference
|
134 |
-
*/
|
135 |
-
public function getBranch($branchName) {
|
136 |
-
$branch = $this->api('/repos/:user/:repo/branches/' . $branchName);
|
137 |
-
if ( is_wp_error($branch) || empty($branch) ) {
|
138 |
-
return null;
|
139 |
-
}
|
140 |
-
|
141 |
-
$reference = new Puc_v4p4_Vcs_Reference(array(
|
142 |
-
'name' => $branch->name,
|
143 |
-
'downloadUrl' => $this->buildArchiveDownloadUrl($branch->name),
|
144 |
-
'apiResponse' => $branch,
|
145 |
-
));
|
146 |
-
|
147 |
-
if ( isset($branch->commit, $branch->commit->commit, $branch->commit->commit->author->date) ) {
|
148 |
-
$reference->updated = $branch->commit->commit->author->date;
|
149 |
-
}
|
150 |
-
|
151 |
-
return $reference;
|
152 |
-
}
|
153 |
-
|
154 |
-
/**
|
155 |
-
* Get the latest commit that changed the specified file.
|
156 |
-
*
|
157 |
-
* @param string $filename
|
158 |
-
* @param string $ref Reference name (e.g. branch or tag).
|
159 |
-
* @return StdClass|null
|
160 |
-
*/
|
161 |
-
public function getLatestCommit($filename, $ref = 'master') {
|
162 |
-
$commits = $this->api(
|
163 |
-
'/repos/:user/:repo/commits',
|
164 |
-
array(
|
165 |
-
'path' => $filename,
|
166 |
-
'sha' => $ref,
|
167 |
-
)
|
168 |
-
);
|
169 |
-
if ( !is_wp_error($commits) && is_array($commits) && isset($commits[0]) ) {
|
170 |
-
return $commits[0];
|
171 |
-
}
|
172 |
-
return null;
|
173 |
-
}
|
174 |
-
|
175 |
-
/**
|
176 |
-
* Get the timestamp of the latest commit that changed the specified branch or tag.
|
177 |
-
*
|
178 |
-
* @param string $ref Reference name (e.g. branch or tag).
|
179 |
-
* @return string|null
|
180 |
-
*/
|
181 |
-
public function getLatestCommitTime($ref) {
|
182 |
-
$commits = $this->api('/repos/:user/:repo/commits', array('sha' => $ref));
|
183 |
-
if ( !is_wp_error($commits) && is_array($commits) && isset($commits[0]) ) {
|
184 |
-
return $commits[0]->commit->author->date;
|
185 |
-
}
|
186 |
-
return null;
|
187 |
-
}
|
188 |
-
|
189 |
-
/**
|
190 |
-
* Perform a GitHub API request.
|
191 |
-
*
|
192 |
-
* @param string $url
|
193 |
-
* @param array $queryParams
|
194 |
-
* @return mixed|WP_Error
|
195 |
-
*/
|
196 |
-
protected function api($url, $queryParams = array()) {
|
197 |
-
$baseUrl = $url;
|
198 |
-
$url = $this->buildApiUrl($url, $queryParams);
|
199 |
-
|
200 |
-
$options = array('timeout' => 10);
|
201 |
-
if ( !empty($this->httpFilterName) ) {
|
202 |
-
$options = apply_filters($this->httpFilterName, $options);
|
203 |
-
}
|
204 |
-
$response = wp_remote_get($url, $options);
|
205 |
-
if ( is_wp_error($response) ) {
|
206 |
-
do_action('puc_api_error', $response, null, $url, $this->slug);
|
207 |
-
return $response;
|
208 |
-
}
|
209 |
-
|
210 |
-
$code = wp_remote_retrieve_response_code($response);
|
211 |
-
$body = wp_remote_retrieve_body($response);
|
212 |
-
if ( $code === 200 ) {
|
213 |
-
$document = json_decode($body);
|
214 |
-
return $document;
|
215 |
-
}
|
216 |
-
|
217 |
-
$error = new WP_Error(
|
218 |
-
'puc-github-http-error',
|
219 |
-
sprintf('GitHub API error. Base URL: "%s", HTTP status code: %d.', $baseUrl, $code)
|
220 |
-
);
|
221 |
-
do_action('puc_api_error', $error, $response, $url, $this->slug);
|
222 |
-
|
223 |
-
return $error;
|
224 |
-
}
|
225 |
-
|
226 |
-
/**
|
227 |
-
* Build a fully qualified URL for an API request.
|
228 |
-
*
|
229 |
-
* @param string $url
|
230 |
-
* @param array $queryParams
|
231 |
-
* @return string
|
232 |
-
*/
|
233 |
-
protected function buildApiUrl($url, $queryParams) {
|
234 |
-
$variables = array(
|
235 |
-
'user' => $this->userName,
|
236 |
-
'repo' => $this->repositoryName,
|
237 |
-
);
|
238 |
-
foreach ($variables as $name => $value) {
|
239 |
-
$url = str_replace('/:' . $name, '/' . urlencode($value), $url);
|
240 |
-
}
|
241 |
-
$url = 'https://api.github.com' . $url;
|
242 |
-
|
243 |
-
if ( !empty($this->accessToken) ) {
|
244 |
-
$queryParams['access_token'] = $this->accessToken;
|
245 |
-
}
|
246 |
-
if ( !empty($queryParams) ) {
|
247 |
-
$url = add_query_arg($queryParams, $url);
|
248 |
-
}
|
249 |
-
|
250 |
-
return $url;
|
251 |
-
}
|
252 |
-
|
253 |
-
/**
|
254 |
-
* Get the contents of a file from a specific branch or tag.
|
255 |
-
*
|
256 |
-
* @param string $path File name.
|
257 |
-
* @param string $ref
|
258 |
-
* @return null|string Either the contents of the file, or null if the file doesn't exist or there's an error.
|
259 |
-
*/
|
260 |
-
public function getRemoteFile($path, $ref = 'master') {
|
261 |
-
$apiUrl = '/repos/:user/:repo/contents/' . $path;
|
262 |
-
$response = $this->api($apiUrl, array('ref' => $ref));
|
263 |
-
|
264 |
-
if ( is_wp_error($response) || !isset($response->content) || ($response->encoding !== 'base64') ) {
|
265 |
-
return null;
|
266 |
-
}
|
267 |
-
return base64_decode($response->content);
|
268 |
-
}
|
269 |
-
|
270 |
-
/**
|
271 |
-
* Generate a URL to download a ZIP archive of the specified branch/tag/etc.
|
272 |
-
*
|
273 |
-
* @param string $ref
|
274 |
-
* @return string
|
275 |
-
*/
|
276 |
-
public function buildArchiveDownloadUrl($ref = 'master') {
|
277 |
-
$url = sprintf(
|
278 |
-
'https://api.github.com/repos/%1$s/%2$s/zipball/%3$s',
|
279 |
-
urlencode($this->userName),
|
280 |
-
urlencode($this->repositoryName),
|
281 |
-
urlencode($ref)
|
282 |
-
);
|
283 |
-
if ( !empty($this->accessToken) ) {
|
284 |
-
$url = $this->signDownloadUrl($url);
|
285 |
-
}
|
286 |
-
return $url;
|
287 |
-
}
|
288 |
-
|
289 |
-
/**
|
290 |
-
* Get a specific tag.
|
291 |
-
*
|
292 |
-
* @param string $tagName
|
293 |
-
* @return Puc_v4p4_Vcs_Reference|null
|
294 |
-
*/
|
295 |
-
public function getTag($tagName) {
|
296 |
-
//The current GitHub update checker doesn't use getTag, so I didn't bother to implement it.
|
297 |
-
throw new LogicException('The ' . __METHOD__ . ' method is not implemented and should not be used.');
|
298 |
-
}
|
299 |
-
|
300 |
-
public function setAuthentication($credentials) {
|
301 |
-
parent::setAuthentication($credentials);
|
302 |
-
$this->accessToken = is_string($credentials) ? $credentials : null;
|
303 |
-
}
|
304 |
-
|
305 |
-
/**
|
306 |
-
* Figure out which reference (i.e tag or branch) contains the latest version.
|
307 |
-
*
|
308 |
-
* @param string $configBranch Start looking in this branch.
|
309 |
-
* @return null|Puc_v4p4_Vcs_Reference
|
310 |
-
*/
|
311 |
-
public function chooseReference($configBranch) {
|
312 |
-
$updateSource = null;
|
313 |
-
|
314 |
-
if ( $configBranch === 'master' ) {
|
315 |
-
//Use the latest release.
|
316 |
-
$updateSource = $this->getLatestRelease();
|
317 |
-
if ( $updateSource === null ) {
|
318 |
-
//Failing that, use the tag with the highest version number.
|
319 |
-
$updateSource = $this->getLatestTag();
|
320 |
-
}
|
321 |
-
}
|
322 |
-
//Alternatively, just use the branch itself.
|
323 |
-
if ( empty($updateSource) ) {
|
324 |
-
$updateSource = $this->getBranch($configBranch);
|
325 |
-
}
|
326 |
-
|
327 |
-
return $updateSource;
|
328 |
-
}
|
329 |
-
|
330 |
-
/**
|
331 |
-
* @param string $url
|
332 |
-
* @return string
|
333 |
-
*/
|
334 |
-
public function signDownloadUrl($url) {
|
335 |
-
if ( empty($this->credentials) ) {
|
336 |
-
return $url;
|
337 |
-
}
|
338 |
-
return add_query_arg('access_token', $this->credentials, $url);
|
339 |
-
}
|
340 |
-
|
341 |
-
/**
|
342 |
-
* Enable updating via release assets.
|
343 |
-
*
|
344 |
-
* If the latest release contains no usable assets, the update checker
|
345 |
-
* will fall back to using the automatically generated ZIP archive.
|
346 |
-
*
|
347 |
-
* Private repositories will only work with WordPress 3.7 or later.
|
348 |
-
*
|
349 |
-
* @param string|null $fileNameRegex Optional. Use only those assets where the file name matches this regex.
|
350 |
-
*/
|
351 |
-
public function enableReleaseAssets($fileNameRegex = null) {
|
352 |
-
$this->releaseAssetsEnabled = true;
|
353 |
-
$this->assetFilterRegex = $fileNameRegex;
|
354 |
-
$this->assetApiBaseUrl = sprintf(
|
355 |
-
'//api.github.com/repos/%1$s/%2$s/releases/assets/',
|
356 |
-
$this->userName,
|
357 |
-
$this->repositoryName
|
358 |
-
);
|
359 |
-
|
360 |
-
//Optimization: Instead of filtering all HTTP requests, let's do it only when
|
361 |
-
//WordPress is about to download an update.
|
362 |
-
add_filter('upgrader_pre_download', array($this, 'addHttpRequestFilter'), 10, 1); //WP 3.7+
|
363 |
-
}
|
364 |
-
|
365 |
-
/**
|
366 |
-
* Does this asset match the file name regex?
|
367 |
-
*
|
368 |
-
* @param stdClass $releaseAsset
|
369 |
-
* @return bool
|
370 |
-
*/
|
371 |
-
protected function matchesAssetFilter($releaseAsset) {
|
372 |
-
if ( $this->assetFilterRegex === null ) {
|
373 |
-
//The default is to accept all assets.
|
374 |
-
return true;
|
375 |
-
}
|
376 |
-
return isset($releaseAsset->name) && preg_match($this->assetFilterRegex, $releaseAsset->name);
|
377 |
-
}
|
378 |
-
|
379 |
-
/**
|
380 |
-
* @internal
|
381 |
-
* @param bool $result
|
382 |
-
* @return bool
|
383 |
-
*/
|
384 |
-
public function addHttpRequestFilter($result) {
|
385 |
-
static $filterAdded = false;
|
386 |
-
if ( $this->releaseAssetsEnabled && !$filterAdded && $this->isAuthenticationEnabled() ) {
|
387 |
-
add_filter('http_request_args', array($this, 'setReleaseDownloadHeader'), 10, 2);
|
388 |
-
$filterAdded = true;
|
389 |
-
}
|
390 |
-
return $result;
|
391 |
-
}
|
392 |
-
|
393 |
-
/**
|
394 |
-
* Set the HTTP header that's necessary to download private release assets.
|
395 |
-
*
|
396 |
-
* See GitHub docs:
|
397 |
-
* @link https://developer.github.com/v3/repos/releases/#get-a-single-release-asset
|
398 |
-
*
|
399 |
-
* @internal
|
400 |
-
* @param array $requestArgs
|
401 |
-
* @param string $url
|
402 |
-
* @return array
|
403 |
-
*/
|
404 |
-
public function setReleaseDownloadHeader($requestArgs, $url = '') {
|
405 |
-
//Is WordPress trying to download one of our assets?
|
406 |
-
if ( strpos($url, $this->assetApiBaseUrl) !== false ) {
|
407 |
-
$requestArgs['headers']['accept'] = 'application/octet-stream';
|
408 |
-
}
|
409 |
-
return $requestArgs;
|
410 |
-
}
|
411 |
-
}
|
412 |
-
|
413 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Vcs/GitLabApi.php
DELETED
@@ -1,274 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('Puc_v4p4_Vcs_GitLabApi', false) ):
|
4 |
-
|
5 |
-
class Puc_v4p4_Vcs_GitLabApi extends Puc_v4p4_Vcs_Api {
|
6 |
-
/**
|
7 |
-
* @var string GitLab username.
|
8 |
-
*/
|
9 |
-
protected $userName;
|
10 |
-
|
11 |
-
/**
|
12 |
-
* @var string GitLab server host.
|
13 |
-
*/
|
14 |
-
private $repositoryHost;
|
15 |
-
|
16 |
-
/**
|
17 |
-
* @var string GitLab repository name.
|
18 |
-
*/
|
19 |
-
protected $repositoryName;
|
20 |
-
|
21 |
-
/**
|
22 |
-
* @var string GitLab authentication token. Optional.
|
23 |
-
*/
|
24 |
-
protected $accessToken;
|
25 |
-
|
26 |
-
public function __construct($repositoryUrl, $accessToken = null) {
|
27 |
-
//Parse the repository host to support custom hosts.
|
28 |
-
$this->repositoryHost = @parse_url($repositoryUrl, PHP_URL_HOST);
|
29 |
-
|
30 |
-
//Find the repository information
|
31 |
-
$path = @parse_url($repositoryUrl, PHP_URL_PATH);
|
32 |
-
if ( preg_match('@^/?(?P<username>[^/]+?)/(?P<repository>[^/#?&]+?)/?$@', $path, $matches) ) {
|
33 |
-
$this->userName = $matches['username'];
|
34 |
-
$this->repositoryName = $matches['repository'];
|
35 |
-
} else {
|
36 |
-
//This is not a traditional url, it could be gitlab is in a deeper subdirectory.
|
37 |
-
//Get the path segments.
|
38 |
-
$segments = explode('/', untrailingslashit(ltrim($path, '/')));
|
39 |
-
|
40 |
-
//We need at least /user-name/repository-name/
|
41 |
-
if ( count($segments) < 2 ) {
|
42 |
-
throw new InvalidArgumentException('Invalid GitLab repository URL: "' . $repositoryUrl . '"');
|
43 |
-
}
|
44 |
-
|
45 |
-
//Get the username and repository name.
|
46 |
-
$usernameRepo = array_splice($segments, -2, 2);
|
47 |
-
$this->userName = $usernameRepo[0];
|
48 |
-
$this->repositoryName = $usernameRepo[1];
|
49 |
-
|
50 |
-
//Append the remaining segments to the host.
|
51 |
-
$this->repositoryHost = trailingslashit($this->repositoryHost) . implode('/', $segments);
|
52 |
-
}
|
53 |
-
|
54 |
-
parent::__construct($repositoryUrl, $accessToken);
|
55 |
-
}
|
56 |
-
|
57 |
-
/**
|
58 |
-
* Get the latest release from GitLab.
|
59 |
-
*
|
60 |
-
* @return Puc_v4p4_Vcs_Reference|null
|
61 |
-
*/
|
62 |
-
public function getLatestRelease() {
|
63 |
-
return $this->getLatestTag();
|
64 |
-
}
|
65 |
-
|
66 |
-
/**
|
67 |
-
* Get the tag that looks like the highest version number.
|
68 |
-
*
|
69 |
-
* @return Puc_v4p4_Vcs_Reference|null
|
70 |
-
*/
|
71 |
-
public function getLatestTag() {
|
72 |
-
$tags = $this->api('/:user/:repo/repository/tags');
|
73 |
-
if ( is_wp_error($tags) || empty($tags) || !is_array($tags) ) {
|
74 |
-
return null;
|
75 |
-
}
|
76 |
-
|
77 |
-
$versionTags = $this->sortTagsByVersion($tags);
|
78 |
-
if ( empty($versionTags) ) {
|
79 |
-
return null;
|
80 |
-
}
|
81 |
-
|
82 |
-
$tag = $versionTags[0];
|
83 |
-
return new Puc_v4p4_Vcs_Reference(array(
|
84 |
-
'name' => $tag->name,
|
85 |
-
'version' => ltrim($tag->name, 'v'),
|
86 |
-
'downloadUrl' => $this->buildArchiveDownloadUrl($tag->name),
|
87 |
-
'apiResponse' => $tag
|
88 |
-
));
|
89 |
-
}
|
90 |
-
|
91 |
-
/**
|
92 |
-
* Get a branch by name.
|
93 |
-
*
|
94 |
-
* @param string $branchName
|
95 |
-
* @return null|Puc_v4p4_Vcs_Reference
|
96 |
-
*/
|
97 |
-
public function getBranch($branchName) {
|
98 |
-
$branch = $this->api('/:user/:repo/repository/branches/' . $branchName);
|
99 |
-
if ( is_wp_error($branch) || empty($branch) ) {
|
100 |
-
return null;
|
101 |
-
}
|
102 |
-
|
103 |
-
$reference = new Puc_v4p4_Vcs_Reference(array(
|
104 |
-
'name' => $branch->name,
|
105 |
-
'downloadUrl' => $this->buildArchiveDownloadUrl($branch->name),
|
106 |
-
'apiResponse' => $branch,
|
107 |
-
));
|
108 |
-
|
109 |
-
if ( isset($branch->commit, $branch->commit->committed_date) ) {
|
110 |
-
$reference->updated = $branch->commit->committed_date;
|
111 |
-
}
|
112 |
-
|
113 |
-
return $reference;
|
114 |
-
}
|
115 |
-
|
116 |
-
/**
|
117 |
-
* Get the timestamp of the latest commit that changed the specified branch or tag.
|
118 |
-
*
|
119 |
-
* @param string $ref Reference name (e.g. branch or tag).
|
120 |
-
* @return string|null
|
121 |
-
*/
|
122 |
-
public function getLatestCommitTime($ref) {
|
123 |
-
$commits = $this->api('/:user/:repo/repository/commits/', array('ref_name' => $ref));
|
124 |
-
if ( is_wp_error($commits) || !is_array($commits) || !isset($commits[0]) ) {
|
125 |
-
return null;
|
126 |
-
}
|
127 |
-
|
128 |
-
return $commits[0]->committed_date;
|
129 |
-
}
|
130 |
-
|
131 |
-
/**
|
132 |
-
* Perform a GitLab API request.
|
133 |
-
*
|
134 |
-
* @param string $url
|
135 |
-
* @param array $queryParams
|
136 |
-
* @return mixed|WP_Error
|
137 |
-
*/
|
138 |
-
protected function api($url, $queryParams = array()) {
|
139 |
-
$baseUrl = $url;
|
140 |
-
$url = $this->buildApiUrl($url, $queryParams);
|
141 |
-
|
142 |
-
$options = array('timeout' => 10);
|
143 |
-
if ( !empty($this->httpFilterName) ) {
|
144 |
-
$options = apply_filters($this->httpFilterName, $options);
|
145 |
-
}
|
146 |
-
|
147 |
-
$response = wp_remote_get($url, $options);
|
148 |
-
if ( is_wp_error($response) ) {
|
149 |
-
do_action('puc_api_error', $response, null, $url, $this->slug);
|
150 |
-
return $response;
|
151 |
-
}
|
152 |
-
|
153 |
-
$code = wp_remote_retrieve_response_code($response);
|
154 |
-
$body = wp_remote_retrieve_body($response);
|
155 |
-
if ( $code === 200 ) {
|
156 |
-
return json_decode($body);
|
157 |
-
}
|
158 |
-
|
159 |
-
$error = new WP_Error(
|
160 |
-
'puc-gitlab-http-error',
|
161 |
-
sprintf('GitLab API error. URL: "%s", HTTP status code: %d.', $baseUrl, $code)
|
162 |
-
);
|
163 |
-
do_action('puc_api_error', $error, $response, $url, $this->slug);
|
164 |
-
|
165 |
-
return $error;
|
166 |
-
}
|
167 |
-
|
168 |
-
/**
|
169 |
-
* Build a fully qualified URL for an API request.
|
170 |
-
*
|
171 |
-
* @param string $url
|
172 |
-
* @param array $queryParams
|
173 |
-
* @return string
|
174 |
-
*/
|
175 |
-
protected function buildApiUrl($url, $queryParams) {
|
176 |
-
$variables = array(
|
177 |
-
'user' => $this->userName,
|
178 |
-
'repo' => $this->repositoryName
|
179 |
-
);
|
180 |
-
|
181 |
-
foreach ($variables as $name => $value) {
|
182 |
-
$url = str_replace("/:{$name}", urlencode('/' . $value), $url);
|
183 |
-
}
|
184 |
-
|
185 |
-
$url = substr($url, 3);
|
186 |
-
$url = sprintf('https://%1$s/api/v4/projects/%2$s', $this->repositoryHost, $url);
|
187 |
-
|
188 |
-
if ( !empty($this->accessToken) ) {
|
189 |
-
$queryParams['private_token'] = $this->accessToken;
|
190 |
-
}
|
191 |
-
|
192 |
-
if ( !empty($queryParams) ) {
|
193 |
-
$url = add_query_arg($queryParams, $url);
|
194 |
-
}
|
195 |
-
|
196 |
-
return $url;
|
197 |
-
}
|
198 |
-
|
199 |
-
/**
|
200 |
-
* Get the contents of a file from a specific branch or tag.
|
201 |
-
*
|
202 |
-
* @param string $path File name.
|
203 |
-
* @param string $ref
|
204 |
-
* @return null|string Either the contents of the file, or null if the file doesn't exist or there's an error.
|
205 |
-
*/
|
206 |
-
public function getRemoteFile($path, $ref = 'master') {
|
207 |
-
$response = $this->api('/:user/:repo/repository/files/' . $path, array('ref' => $ref));
|
208 |
-
if ( is_wp_error($response) || !isset($response->content) || $response->encoding !== 'base64' ) {
|
209 |
-
return null;
|
210 |
-
}
|
211 |
-
|
212 |
-
return base64_decode($response->content);
|
213 |
-
}
|
214 |
-
|
215 |
-
/**
|
216 |
-
* Generate a URL to download a ZIP archive of the specified branch/tag/etc.
|
217 |
-
*
|
218 |
-
* @param string $ref
|
219 |
-
* @return string
|
220 |
-
*/
|
221 |
-
public function buildArchiveDownloadUrl($ref = 'master') {
|
222 |
-
$url = sprintf(
|
223 |
-
'https://%1$s/%2$s/%3$s/repository/%4$s/archive.zip',
|
224 |
-
$this->repositoryHost,
|
225 |
-
urlencode($this->userName),
|
226 |
-
urlencode($this->repositoryName),
|
227 |
-
urlencode($ref)
|
228 |
-
);
|
229 |
-
|
230 |
-
if ( !empty($this->accessToken) ) {
|
231 |
-
$url = add_query_arg('private_token', $this->accessToken, $url);
|
232 |
-
}
|
233 |
-
|
234 |
-
return $url;
|
235 |
-
}
|
236 |
-
|
237 |
-
/**
|
238 |
-
* Get a specific tag.
|
239 |
-
*
|
240 |
-
* @param string $tagName
|
241 |
-
* @return Puc_v4p4_Vcs_Reference|null
|
242 |
-
*/
|
243 |
-
public function getTag($tagName) {
|
244 |
-
throw new LogicException('The ' . __METHOD__ . ' method is not implemented and should not be used.');
|
245 |
-
}
|
246 |
-
|
247 |
-
/**
|
248 |
-
* Figure out which reference (i.e tag or branch) contains the latest version.
|
249 |
-
*
|
250 |
-
* @param string $configBranch Start looking in this branch.
|
251 |
-
* @return null|Puc_v4p4_Vcs_Reference
|
252 |
-
*/
|
253 |
-
public function chooseReference($configBranch) {
|
254 |
-
$updateSource = null;
|
255 |
-
|
256 |
-
// GitLab doesn't handle releases the same as GitHub so just use the latest tag
|
257 |
-
if ( $configBranch === 'master' ) {
|
258 |
-
$updateSource = $this->getLatestTag();
|
259 |
-
}
|
260 |
-
|
261 |
-
if ( empty($updateSource) ) {
|
262 |
-
$updateSource = $this->getBranch($configBranch);
|
263 |
-
}
|
264 |
-
|
265 |
-
return $updateSource;
|
266 |
-
}
|
267 |
-
|
268 |
-
public function setAuthentication($credentials) {
|
269 |
-
parent::setAuthentication($credentials);
|
270 |
-
$this->accessToken = is_string($credentials) ? $credentials : null;
|
271 |
-
}
|
272 |
-
}
|
273 |
-
|
274 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Vcs/PluginUpdateChecker.php
DELETED
@@ -1,217 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_Vcs_PluginUpdateChecker') ):
|
3 |
-
|
4 |
-
class Puc_v4p4_Vcs_PluginUpdateChecker extends Puc_v4p4_Plugin_UpdateChecker implements Puc_v4p4_Vcs_BaseChecker {
|
5 |
-
/**
|
6 |
-
* @var string The branch where to look for updates. Defaults to "master".
|
7 |
-
*/
|
8 |
-
protected $branch = 'master';
|
9 |
-
|
10 |
-
/**
|
11 |
-
* @var Puc_v4p4_Vcs_Api Repository API client.
|
12 |
-
*/
|
13 |
-
protected $api = null;
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Puc_v4p4_Vcs_PluginUpdateChecker constructor.
|
17 |
-
*
|
18 |
-
* @param Puc_v4p4_Vcs_Api $api
|
19 |
-
* @param string $pluginFile
|
20 |
-
* @param string $slug
|
21 |
-
* @param int $checkPeriod
|
22 |
-
* @param string $optionName
|
23 |
-
* @param string $muPluginFile
|
24 |
-
*/
|
25 |
-
public function __construct($api, $pluginFile, $slug = '', $checkPeriod = 12, $optionName = '', $muPluginFile = '') {
|
26 |
-
$this->api = $api;
|
27 |
-
$this->api->setHttpFilterName($this->getUniqueName('request_info_options'));
|
28 |
-
|
29 |
-
parent::__construct($api->getRepositoryUrl(), $pluginFile, $slug, $checkPeriod, $optionName, $muPluginFile);
|
30 |
-
|
31 |
-
$this->api->setSlug($this->slug);
|
32 |
-
}
|
33 |
-
|
34 |
-
public function requestInfo($unusedParameter = null) {
|
35 |
-
//We have to make several remote API requests to gather all the necessary info
|
36 |
-
//which can take a while on slow networks.
|
37 |
-
if ( function_exists('set_time_limit') ) {
|
38 |
-
@set_time_limit(60);
|
39 |
-
}
|
40 |
-
|
41 |
-
$api = $this->api;
|
42 |
-
$api->setLocalDirectory($this->getAbsoluteDirectoryPath());
|
43 |
-
|
44 |
-
$info = new Puc_v4p4_Plugin_Info();
|
45 |
-
$info->filename = $this->pluginFile;
|
46 |
-
$info->slug = $this->slug;
|
47 |
-
|
48 |
-
$this->setInfoFromHeader($this->getPluginHeader(), $info);
|
49 |
-
|
50 |
-
//Pick a branch or tag.
|
51 |
-
$updateSource = $api->chooseReference($this->branch);
|
52 |
-
if ( $updateSource ) {
|
53 |
-
$ref = $updateSource->name;
|
54 |
-
$info->version = $updateSource->version;
|
55 |
-
$info->last_updated = $updateSource->updated;
|
56 |
-
$info->download_url = $updateSource->downloadUrl;
|
57 |
-
|
58 |
-
if ( !empty($updateSource->changelog) ) {
|
59 |
-
$info->sections['changelog'] = $updateSource->changelog;
|
60 |
-
}
|
61 |
-
if ( isset($updateSource->downloadCount) ) {
|
62 |
-
$info->downloaded = $updateSource->downloadCount;
|
63 |
-
}
|
64 |
-
} else {
|
65 |
-
//There's probably a network problem or an authentication error.
|
66 |
-
do_action(
|
67 |
-
'puc_api_error',
|
68 |
-
new WP_Error(
|
69 |
-
'puc-no-update-source',
|
70 |
-
'Could not retrieve version information from the repository. '
|
71 |
-
. 'This usually means that the update checker either can\'t connect '
|
72 |
-
. 'to the repository or it\'s configured incorrectly.'
|
73 |
-
),
|
74 |
-
null, null, $this->slug
|
75 |
-
);
|
76 |
-
return null;
|
77 |
-
}
|
78 |
-
|
79 |
-
//Get headers from the main plugin file in this branch/tag. Its "Version" header and other metadata
|
80 |
-
//are what the WordPress install will actually see after upgrading, so they take precedence over releases/tags.
|
81 |
-
$mainPluginFile = basename($this->pluginFile);
|
82 |
-
$remotePlugin = $api->getRemoteFile($mainPluginFile, $ref);
|
83 |
-
if ( !empty($remotePlugin) ) {
|
84 |
-
$remoteHeader = $this->getFileHeader($remotePlugin);
|
85 |
-
$this->setInfoFromHeader($remoteHeader, $info);
|
86 |
-
}
|
87 |
-
|
88 |
-
//Try parsing readme.txt. If it's formatted according to WordPress.org standards, it will contain
|
89 |
-
//a lot of useful information like the required/tested WP version, changelog, and so on.
|
90 |
-
if ( $this->readmeTxtExistsLocally() ) {
|
91 |
-
$this->setInfoFromRemoteReadme($ref, $info);
|
92 |
-
}
|
93 |
-
|
94 |
-
//The changelog might be in a separate file.
|
95 |
-
if ( empty($info->sections['changelog']) ) {
|
96 |
-
$info->sections['changelog'] = $api->getRemoteChangelog($ref, dirname($this->getAbsolutePath()));
|
97 |
-
if ( empty($info->sections['changelog']) ) {
|
98 |
-
$info->sections['changelog'] = __('There is no changelog available.', 'plugin-update-checker');
|
99 |
-
}
|
100 |
-
}
|
101 |
-
|
102 |
-
if ( empty($info->last_updated) ) {
|
103 |
-
//Fetch the latest commit that changed the tag or branch and use it as the "last_updated" date.
|
104 |
-
$latestCommitTime = $api->getLatestCommitTime($ref);
|
105 |
-
if ( $latestCommitTime !== null ) {
|
106 |
-
$info->last_updated = $latestCommitTime;
|
107 |
-
}
|
108 |
-
}
|
109 |
-
|
110 |
-
$info = apply_filters($this->getUniqueName('request_info_result'), $info, null);
|
111 |
-
return $info;
|
112 |
-
}
|
113 |
-
|
114 |
-
/**
|
115 |
-
* Check if the currently installed version has a readme.txt file.
|
116 |
-
*
|
117 |
-
* @return bool
|
118 |
-
*/
|
119 |
-
protected function readmeTxtExistsLocally() {
|
120 |
-
$pluginDirectory = $this->getAbsoluteDirectoryPath();
|
121 |
-
if ( empty($pluginDirectory) || !is_dir($pluginDirectory) || ($pluginDirectory === '.') ) {
|
122 |
-
return false;
|
123 |
-
}
|
124 |
-
return is_file($pluginDirectory . '/' . $this->api->getLocalReadmeName());
|
125 |
-
}
|
126 |
-
|
127 |
-
/**
|
128 |
-
* Copy plugin metadata from a file header to a Plugin Info object.
|
129 |
-
*
|
130 |
-
* @param array $fileHeader
|
131 |
-
* @param Puc_v4p4_Plugin_Info $pluginInfo
|
132 |
-
*/
|
133 |
-
protected function setInfoFromHeader($fileHeader, $pluginInfo) {
|
134 |
-
$headerToPropertyMap = array(
|
135 |
-
'Version' => 'version',
|
136 |
-
'Name' => 'name',
|
137 |
-
'PluginURI' => 'homepage',
|
138 |
-
'Author' => 'author',
|
139 |
-
'AuthorName' => 'author',
|
140 |
-
'AuthorURI' => 'author_homepage',
|
141 |
-
|
142 |
-
'Requires WP' => 'requires',
|
143 |
-
'Tested WP' => 'tested',
|
144 |
-
'Requires at least' => 'requires',
|
145 |
-
'Tested up to' => 'tested',
|
146 |
-
);
|
147 |
-
foreach ($headerToPropertyMap as $headerName => $property) {
|
148 |
-
if ( isset($fileHeader[$headerName]) && !empty($fileHeader[$headerName]) ) {
|
149 |
-
$pluginInfo->$property = $fileHeader[$headerName];
|
150 |
-
}
|
151 |
-
}
|
152 |
-
|
153 |
-
if ( !empty($fileHeader['Description']) ) {
|
154 |
-
$pluginInfo->sections['description'] = $fileHeader['Description'];
|
155 |
-
}
|
156 |
-
}
|
157 |
-
|
158 |
-
/**
|
159 |
-
* Copy plugin metadata from the remote readme.txt file.
|
160 |
-
*
|
161 |
-
* @param string $ref GitHub tag or branch where to look for the readme.
|
162 |
-
* @param Puc_v4p4_Plugin_Info $pluginInfo
|
163 |
-
*/
|
164 |
-
protected function setInfoFromRemoteReadme($ref, $pluginInfo) {
|
165 |
-
$readme = $this->api->getRemoteReadme($ref);
|
166 |
-
if ( empty($readme) ) {
|
167 |
-
return;
|
168 |
-
}
|
169 |
-
|
170 |
-
if ( isset($readme['sections']) ) {
|
171 |
-
$pluginInfo->sections = array_merge($pluginInfo->sections, $readme['sections']);
|
172 |
-
}
|
173 |
-
if ( !empty($readme['tested_up_to']) ) {
|
174 |
-
$pluginInfo->tested = $readme['tested_up_to'];
|
175 |
-
}
|
176 |
-
if ( !empty($readme['requires_at_least']) ) {
|
177 |
-
$pluginInfo->requires = $readme['requires_at_least'];
|
178 |
-
}
|
179 |
-
|
180 |
-
if ( isset($readme['upgrade_notice'], $readme['upgrade_notice'][$pluginInfo->version]) ) {
|
181 |
-
$pluginInfo->upgrade_notice = $readme['upgrade_notice'][$pluginInfo->version];
|
182 |
-
}
|
183 |
-
}
|
184 |
-
|
185 |
-
public function setBranch($branch) {
|
186 |
-
$this->branch = $branch;
|
187 |
-
return $this;
|
188 |
-
}
|
189 |
-
|
190 |
-
public function setAuthentication($credentials) {
|
191 |
-
$this->api->setAuthentication($credentials);
|
192 |
-
return $this;
|
193 |
-
}
|
194 |
-
|
195 |
-
public function getVcsApi() {
|
196 |
-
return $this->api;
|
197 |
-
}
|
198 |
-
|
199 |
-
public function getUpdate() {
|
200 |
-
$update = parent::getUpdate();
|
201 |
-
|
202 |
-
if ( isset($update) && !empty($update->download_url) ) {
|
203 |
-
$update->download_url = $this->api->signDownloadUrl($update->download_url);
|
204 |
-
}
|
205 |
-
|
206 |
-
return $update;
|
207 |
-
}
|
208 |
-
|
209 |
-
public function onDisplayConfiguration($panel) {
|
210 |
-
parent::onDisplayConfiguration($panel);
|
211 |
-
$panel->row('Branch', $this->branch);
|
212 |
-
$panel->row('Authentication enabled', $this->api->isAuthenticationEnabled() ? 'Yes' : 'No');
|
213 |
-
$panel->row('API client', get_class($this->api));
|
214 |
-
}
|
215 |
-
}
|
216 |
-
|
217 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Vcs/Reference.php
DELETED
@@ -1,49 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
if ( !class_exists('Puc_v4p4_Vcs_Reference', false) ):
|
3 |
-
|
4 |
-
/**
|
5 |
-
* This class represents a VCS branch or tag. It's intended as a read only, short-lived container
|
6 |
-
* that only exists to provide a limited degree of type checking.
|
7 |
-
*
|
8 |
-
* @property string $name
|
9 |
-
* @property string|null version
|
10 |
-
* @property string $downloadUrl
|
11 |
-
* @property string $updated
|
12 |
-
*
|
13 |
-
* @property string|null $changelog
|
14 |
-
* @property int|null $downloadCount
|
15 |
-
*/
|
16 |
-
class Puc_v4p4_Vcs_Reference {
|
17 |
-
private $properties = array();
|
18 |
-
|
19 |
-
public function __construct($properties = array()) {
|
20 |
-
$this->properties = $properties;
|
21 |
-
}
|
22 |
-
|
23 |
-
/**
|
24 |
-
* @param string $name
|
25 |
-
* @return mixed|null
|
26 |
-
*/
|
27 |
-
public function __get($name) {
|
28 |
-
return array_key_exists($name, $this->properties) ? $this->properties[$name] : null;
|
29 |
-
}
|
30 |
-
|
31 |
-
/**
|
32 |
-
* @param string $name
|
33 |
-
* @param mixed $value
|
34 |
-
*/
|
35 |
-
public function __set($name, $value) {
|
36 |
-
$this->properties[$name] = $value;
|
37 |
-
}
|
38 |
-
|
39 |
-
/**
|
40 |
-
* @param string $name
|
41 |
-
* @return bool
|
42 |
-
*/
|
43 |
-
public function __isset($name) {
|
44 |
-
return isset($this->properties[$name]);
|
45 |
-
}
|
46 |
-
|
47 |
-
}
|
48 |
-
|
49 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/Puc/v4p4/Vcs/ThemeUpdateChecker.php
DELETED
@@ -1,118 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('Puc_v4p4_Vcs_ThemeUpdateChecker', false) ):
|
4 |
-
|
5 |
-
class Puc_v4p4_Vcs_ThemeUpdateChecker extends Puc_v4p4_Theme_UpdateChecker implements Puc_v4p4_Vcs_BaseChecker {
|
6 |
-
/**
|
7 |
-
* @var string The branch where to look for updates. Defaults to "master".
|
8 |
-
*/
|
9 |
-
protected $branch = 'master';
|
10 |
-
|
11 |
-
/**
|
12 |
-
* @var Puc_v4p4_Vcs_Api Repository API client.
|
13 |
-
*/
|
14 |
-
protected $api = null;
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Puc_v4p4_Vcs_ThemeUpdateChecker constructor.
|
18 |
-
*
|
19 |
-
* @param Puc_v4p4_Vcs_Api $api
|
20 |
-
* @param null $stylesheet
|
21 |
-
* @param null $customSlug
|
22 |
-
* @param int $checkPeriod
|
23 |
-
* @param string $optionName
|
24 |
-
*/
|
25 |
-
public function __construct($api, $stylesheet = null, $customSlug = null, $checkPeriod = 12, $optionName = '') {
|
26 |
-
$this->api = $api;
|
27 |
-
$this->api->setHttpFilterName($this->getUniqueName('request_update_options'));
|
28 |
-
|
29 |
-
parent::__construct($api->getRepositoryUrl(), $stylesheet, $customSlug, $checkPeriod, $optionName);
|
30 |
-
|
31 |
-
$this->api->setSlug($this->slug);
|
32 |
-
}
|
33 |
-
|
34 |
-
public function requestUpdate() {
|
35 |
-
$api = $this->api;
|
36 |
-
$api->setLocalDirectory($this->getAbsoluteDirectoryPath());
|
37 |
-
|
38 |
-
$update = new Puc_v4p4_Theme_Update();
|
39 |
-
$update->slug = $this->slug;
|
40 |
-
|
41 |
-
//Figure out which reference (tag or branch) we'll use to get the latest version of the theme.
|
42 |
-
$updateSource = $api->chooseReference($this->branch);
|
43 |
-
if ( $updateSource ) {
|
44 |
-
$ref = $updateSource->name;
|
45 |
-
$update->download_url = $updateSource->downloadUrl;
|
46 |
-
} else {
|
47 |
-
do_action(
|
48 |
-
'puc_api_error',
|
49 |
-
new WP_Error(
|
50 |
-
'puc-no-update-source',
|
51 |
-
'Could not retrieve version information from the repository. '
|
52 |
-
. 'This usually means that the update checker either can\'t connect '
|
53 |
-
. 'to the repository or it\'s configured incorrectly.'
|
54 |
-
),
|
55 |
-
null, null, $this->slug
|
56 |
-
);
|
57 |
-
$ref = $this->branch;
|
58 |
-
}
|
59 |
-
|
60 |
-
//Get headers from the main stylesheet in this branch/tag. Its "Version" header and other metadata
|
61 |
-
//are what the WordPress install will actually see after upgrading, so they take precedence over releases/tags.
|
62 |
-
$remoteHeader = $this->getFileHeader($api->getRemoteFile('style.css', $ref));
|
63 |
-
$update->version = Puc_v4p4_Utils::findNotEmpty(array(
|
64 |
-
$remoteHeader['Version'],
|
65 |
-
Puc_v4p4_Utils::get($updateSource, 'version'),
|
66 |
-
));
|
67 |
-
|
68 |
-
//The details URL defaults to the Theme URI header or the repository URL.
|
69 |
-
$update->details_url = Puc_v4p4_Utils::findNotEmpty(array(
|
70 |
-
$remoteHeader['ThemeURI'],
|
71 |
-
$this->theme->get('ThemeURI'),
|
72 |
-
$this->metadataUrl,
|
73 |
-
));
|
74 |
-
|
75 |
-
if ( empty($update->version) ) {
|
76 |
-
//It looks like we didn't find a valid update after all.
|
77 |
-
$update = null;
|
78 |
-
}
|
79 |
-
|
80 |
-
$update = $this->filterUpdateResult($update);
|
81 |
-
return $update;
|
82 |
-
}
|
83 |
-
|
84 |
-
//FIXME: This is duplicated code. Both theme and plugin subclasses that use VCS share these methods.
|
85 |
-
|
86 |
-
public function setBranch($branch) {
|
87 |
-
$this->branch = $branch;
|
88 |
-
return $this;
|
89 |
-
}
|
90 |
-
|
91 |
-
public function setAuthentication($credentials) {
|
92 |
-
$this->api->setAuthentication($credentials);
|
93 |
-
return $this;
|
94 |
-
}
|
95 |
-
|
96 |
-
public function getVcsApi() {
|
97 |
-
return $this->api;
|
98 |
-
}
|
99 |
-
|
100 |
-
public function getUpdate() {
|
101 |
-
$update = parent::getUpdate();
|
102 |
-
|
103 |
-
if ( isset($update) && !empty($update->download_url) ) {
|
104 |
-
$update->download_url = $this->api->signDownloadUrl($update->download_url);
|
105 |
-
}
|
106 |
-
|
107 |
-
return $update;
|
108 |
-
}
|
109 |
-
|
110 |
-
public function onDisplayConfiguration($panel) {
|
111 |
-
parent::onDisplayConfiguration($panel);
|
112 |
-
$panel->row('Branch', $this->branch);
|
113 |
-
$panel->row('Authentication enabled', $this->api->isAuthenticationEnabled() ? 'Yes' : 'No');
|
114 |
-
$panel->row('API client', get_class($this->api));
|
115 |
-
}
|
116 |
-
}
|
117 |
-
|
118 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/README.md
DELETED
@@ -1,274 +0,0 @@
|
|
1 |
-
Plugin Update Checker
|
2 |
-
=====================
|
3 |
-
|
4 |
-
This is a custom update checker library for WordPress plugins and themes. It lets you add automatic update notifications and one-click upgrades to your commercial plugins, private themes, and so on. All you need to do is put your plugin/theme details in a JSON file, place the file on your server, and pass the URL to the library. The library periodically checks the URL to see if there's a new version available and displays an update notification to the user if necessary.
|
5 |
-
|
6 |
-
From the users' perspective, it works just like with plugins and themes hosted on WordPress.org. The update checker uses the default upgrade UI that is familiar to most WordPress users.
|
7 |
-
|
8 |
-
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
9 |
-
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
10 |
-
**Table of Contents**
|
11 |
-
|
12 |
-
- [Getting Started](#getting-started)
|
13 |
-
- [Self-hosted Plugins and Themes](#self-hosted-plugins-and-themes)
|
14 |
-
- [How to Release an Update](#how-to-release-an-update)
|
15 |
-
- [Notes](#notes)
|
16 |
-
- [GitHub Integration](#github-integration)
|
17 |
-
- [How to Release an Update](#how-to-release-an-update-1)
|
18 |
-
- [Notes](#notes-1)
|
19 |
-
- [BitBucket Integration](#bitbucket-integration)
|
20 |
-
- [How to Release an Update](#how-to-release-an-update-2)
|
21 |
-
- [GitLab Integration](#gitlab-integration)
|
22 |
-
- [How to Release an Update](#how-to-release-an-update-3)
|
23 |
-
- [Resources](#resources)
|
24 |
-
|
25 |
-
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
26 |
-
|
27 |
-
Getting Started
|
28 |
-
---------------
|
29 |
-
|
30 |
-
### Self-hosted Plugins and Themes
|
31 |
-
|
32 |
-
1. Download [the latest release](https://github.com/YahnisElsts/plugin-update-checker/releases/latest) and copy the `plugin-update-checker` directory to your plugin or theme.
|
33 |
-
2. Go to the `examples` subdirectory and open the .json file that fits your project type. Replace the placeholder data with your plugin/theme details.
|
34 |
-
- Plugin example:
|
35 |
-
|
36 |
-
```json
|
37 |
-
{
|
38 |
-
"name" : "Plugin Name",
|
39 |
-
"version" : "2.0",
|
40 |
-
"download_url" : "http://example.com/plugin-name-2.0.zip",
|
41 |
-
"sections" : {
|
42 |
-
"description" : "Plugin description here. You can use HTML."
|
43 |
-
}
|
44 |
-
}
|
45 |
-
```
|
46 |
-
|
47 |
-
This is a minimal example that leaves out optional fields. See [this table](https://docs.google.com/spreadsheets/d/1eOBbW7Go2qEQXReOOCdidMTf_tDYRq4JfegcO1CBPIs/edit?usp=sharing&authkey=CK7h9toK&output=html) for a full list of supported fields and their descriptions.
|
48 |
-
- Theme example:
|
49 |
-
|
50 |
-
```json
|
51 |
-
{
|
52 |
-
"version": "2.0",
|
53 |
-
"details_url": "http://example.com/version-2.0-details.html",
|
54 |
-
"download_url": "http://example.com/example-theme-2.0.zip"
|
55 |
-
}
|
56 |
-
```
|
57 |
-
|
58 |
-
This is actually a complete example that shows all theme-related fields. `version` and `download_url` should be self-explanatory. The `details_url` key specifies the page that the user will see if they click the "View version 1.2.3 details" link in an update notification.
|
59 |
-
3. Upload the JSON file to a publicly accessible location.
|
60 |
-
4. Add the following code to the main plugin file or to the `functions.php` file:
|
61 |
-
|
62 |
-
```php
|
63 |
-
require 'path/to/plugin-update-checker/plugin-update-checker.php';
|
64 |
-
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
|
65 |
-
'http://example.com/path/to/details.json',
|
66 |
-
__FILE__,
|
67 |
-
'unique-plugin-or-theme-slug'
|
68 |
-
);
|
69 |
-
```
|
70 |
-
Note: If you're using the Composer autoloader, you don't need to explicitly `require` the library.
|
71 |
-
|
72 |
-
#### How to Release an Update
|
73 |
-
|
74 |
-
Change the `version` number in the JSON file and make sure that `download_url` points to the latest version. Update the other fields if necessary. Tip: You can use [wp-update-server](https://github.com/YahnisElsts/wp-update-server) to automate this process.
|
75 |
-
|
76 |
-
By default, the library will check the specified URL for changes every 12 hours. You can force it to check immediately by clicking the "Check for updates" link on the "Plugins" page (it's next to the "Visit plugin site" link). Themes don't have that link, but you can also trigger an update check like this:
|
77 |
-
|
78 |
-
1. Install [Debug Bar](https://srd.wordpress.org/plugins/debug-bar/).
|
79 |
-
2. Click the "Debug" menu in the Admin Bar (a.k.a Toolbar).
|
80 |
-
3. Open the "PUC (your-slug)" panel.
|
81 |
-
4. Click the "Check Now" button.
|
82 |
-
|
83 |
-
#### Notes
|
84 |
-
- The second argument passed to `buildUpdateChecker` must be the absolute path to the main plugin file or any file in the theme directory. If you followed the "getting started" instructions, you can just use the `__FILE__` constant.
|
85 |
-
- The third argument - i.e. the slug - is optional but recommended. In most cases, the slug should be the same as the name of your plugin directory. For example, if your plugin lives in `/wp-content/plugins/my-plugin`, set the slug to `my-plugin`. If the slug is omitted, the update checker will use the name of the main plugin file as the slug (e.g. `my-cool-plugin.php` → `my-cool-plugin`). This can lead to conflicts if your plugin has a generic file name like `plugin.php`.
|
86 |
-
|
87 |
-
This doesn't affect themes because PUC uses the theme directory name as the default slug. Still, if you're planning to use the slug in your own code - e.g. to filter updates or override update checker behaviour - it can be a good idea to set it explicitly.
|
88 |
-
|
89 |
-
### GitHub Integration
|
90 |
-
|
91 |
-
1. Download [the latest release](https://github.com/YahnisElsts/plugin-update-checker/releases/latest) and copy the `plugin-update-checker` directory to your plugin or theme.
|
92 |
-
2. Add the following code to the main plugin file or `functions.php`:
|
93 |
-
|
94 |
-
```php
|
95 |
-
require 'plugin-update-checker/plugin-update-checker.php';
|
96 |
-
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
|
97 |
-
'https://github.com/user-name/repo-name/',
|
98 |
-
__FILE__,
|
99 |
-
'unique-plugin-or-theme-slug'
|
100 |
-
);
|
101 |
-
|
102 |
-
//Optional: If you're using a private repository, specify the access token like this:
|
103 |
-
$myUpdateChecker->setAuthentication('your-token-here');
|
104 |
-
|
105 |
-
//Optional: Set the branch that contains the stable release.
|
106 |
-
$myUpdateChecker->setBranch('stable-branch-name');
|
107 |
-
```
|
108 |
-
3. Plugins only: Add a `readme.txt` file formatted according to the [WordPress.org plugin readme standard](https://wordpress.org/plugins/about/readme.txt) to your repository. The contents of this file will be shown when the user clicks the "View version 1.2.3 details" link.
|
109 |
-
|
110 |
-
#### How to Release an Update
|
111 |
-
|
112 |
-
This library supports a couple of different ways to release updates on GitHub. Pick the one that best fits your workflow.
|
113 |
-
|
114 |
-
- **GitHub releases**
|
115 |
-
|
116 |
-
Create a new release using the "Releases" feature on GitHub. The tag name and release title don't matter. The description is optional, but if you do provide one, it will be displayed when the user clicks the "View version x.y.z details" link on the "Plugins" page. Note that PUC ignores releases marked as "This is a pre-release".
|
117 |
-
|
118 |
-
- **Tags**
|
119 |
-
|
120 |
-
To release version 1.2.3, create a new Git tag named `v1.2.3` or `1.2.3`. That's it.
|
121 |
-
|
122 |
-
PUC doesn't require strict adherence to [SemVer](http://semver.org/). These are all valid tag names: `v1.2.3`, `v1.2-foo`, `1.2.3_rc1-ABC`, `1.2.3.4.5`. However, be warned that it's not smart enough to filter out alpha/beta/RC versions. If that's a problem, you might want to use GitHub releases or branches instead.
|
123 |
-
|
124 |
-
- **Stable branch**
|
125 |
-
|
126 |
-
Point the update checker at a stable, production-ready branch:
|
127 |
-
```php
|
128 |
-
$updateChecker->setBranch('branch-name');
|
129 |
-
```
|
130 |
-
PUC will periodically check the `Version` header in the main plugin file or `style.css` and display a notification if it's greater than the installed version.
|
131 |
-
|
132 |
-
Caveat: If you set the branch to `master` (the default), the update checker will look for recent releases and tags first. It'll only use the `master` branch if it doesn't find anything else suitable.
|
133 |
-
|
134 |
-
#### Notes
|
135 |
-
|
136 |
-
The library will pull update details from the following parts of a release/tag/branch:
|
137 |
-
|
138 |
-
- Version number
|
139 |
-
- The "Version" plugin header.
|
140 |
-
- The latest GitHub release or tag name.
|
141 |
-
- Changelog
|
142 |
-
- The "Changelog" section of `readme.txt`.
|
143 |
-
- One of the following files:
|
144 |
-
CHANGES.md, CHANGELOG.md, changes.md, changelog.md
|
145 |
-
- GitHub release notes.
|
146 |
-
- Required and tested WordPress versions
|
147 |
-
- The "Requires at least" and "Tested up to" fields in `readme.txt`.
|
148 |
-
- The following plugin headers:
|
149 |
-
`Required WP`, `Tested WP`, `Requires at least`, `Tested up to`
|
150 |
-
- "Last updated" timestamp
|
151 |
-
- The creation timestamp of the latest GitHub release.
|
152 |
-
- The latest commit in the selected tag or branch.
|
153 |
-
- Number of downloads
|
154 |
-
- The `download_count` statistic of the latest release.
|
155 |
-
- If you're not using GitHub releases, there will be no download stats.
|
156 |
-
- Other plugin details - author, homepage URL, description
|
157 |
-
- The "Description" section of `readme.txt`.
|
158 |
-
- Remote plugin headers (i.e. the latest version on GitHub).
|
159 |
-
- Local plugin headers (i.e. the currently installed version).
|
160 |
-
- Ratings, banners, screenshots
|
161 |
-
- Not supported.
|
162 |
-
|
163 |
-
### BitBucket Integration
|
164 |
-
|
165 |
-
1. Download [the latest release](https://github.com/YahnisElsts/plugin-update-checker/releases/latest) and copy the `plugin-update-checker` directory to your plugin or theme.
|
166 |
-
2. Add the following code to the main plugin file or `functions.php`:
|
167 |
-
|
168 |
-
```php
|
169 |
-
require 'plugin-update-checker/plugin-update-checker.php';
|
170 |
-
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
|
171 |
-
'https://bitbucket.org/user-name/repo-name',
|
172 |
-
__FILE__,
|
173 |
-
'unique-plugin-or-theme-slug'
|
174 |
-
);
|
175 |
-
|
176 |
-
//Optional: If you're using a private repository, create an OAuth consumer
|
177 |
-
//and set the authentication credentials like this:
|
178 |
-
//Note: For now you need to check "This is a private consumer" when
|
179 |
-
//creating the consumer to work around #134:
|
180 |
-
// https://github.com/YahnisElsts/plugin-update-checker/issues/134
|
181 |
-
$myUpdateChecker->setAuthentication(array(
|
182 |
-
'consumer_key' => '...',
|
183 |
-
'consumer_secret' => '...',
|
184 |
-
));
|
185 |
-
|
186 |
-
//Optional: Set the branch that contains the stable release.
|
187 |
-
$myUpdateChecker->setBranch('stable-branch-name');
|
188 |
-
```
|
189 |
-
3. Optional: Add a `readme.txt` file formatted according to the [WordPress.org plugin readme standard](https://wordpress.org/plugins/about/readme.txt) to your repository. For plugins, the contents of this file will be shown when the user clicks the "View version 1.2.3 details" link.
|
190 |
-
|
191 |
-
#### How to Release an Update
|
192 |
-
|
193 |
-
BitBucket doesn't have an equivalent to GitHub's releases, so the process is slightly different. You can use any of the following approaches:
|
194 |
-
|
195 |
-
- **`Stable tag` header**
|
196 |
-
|
197 |
-
This is the recommended approach if you're using tags to mark each version. Add a `readme.txt` file formatted according to the [WordPress.org plugin readme standard](https://wordpress.org/plugins/about/readme.txt) to your repository. Set the "stable tag" header to the tag that represents the latest release. Example:
|
198 |
-
```text
|
199 |
-
Stable tag: v1.2.3
|
200 |
-
```
|
201 |
-
The tag doesn't have to start with a "v" or follow any particular format. You can use any name you like as long as it's a valid Git tag.
|
202 |
-
|
203 |
-
Tip: If you explicitly set a stable branch, the update checker will look for a `readme.txt` in that branch. Otherwise it will only look at the `master` branch.
|
204 |
-
|
205 |
-
- **Tags**
|
206 |
-
|
207 |
-
You can skip the "stable tag" bit and just create a new Git tag named `v1.2.3` or `1.2.3`. The update checker will look at the most recent tags and pick the one that looks like the highest version number.
|
208 |
-
|
209 |
-
PUC doesn't require strict adherence to [SemVer](http://semver.org/). These are all valid tag names: `v1.2.3`, `v1.2-foo`, `1.2.3_rc1-ABC`, `1.2.3.4.5`. However, be warned that it's not smart enough to filter out alpha/beta/RC versions.
|
210 |
-
|
211 |
-
- **Stable branch**
|
212 |
-
|
213 |
-
Point the update checker at a stable, production-ready branch:
|
214 |
-
```php
|
215 |
-
$updateChecker->setBranch('branch-name');
|
216 |
-
```
|
217 |
-
PUC will periodically check the `Version` header in the main plugin file or `style.css` and display a notification if it's greater than the installed version. Caveat: If you set the branch to `master`, the update checker will still look for tags first.
|
218 |
-
|
219 |
-
### GitLab Integration
|
220 |
-
|
221 |
-
1. Download [the latest release](https://github.com/YahnisElsts/plugin-update-checker/releases/latest) and copy the `plugin-update-checker` directory to your plugin or theme.
|
222 |
-
2. Add the following code to the main plugin file or `functions.php`:
|
223 |
-
|
224 |
-
```php
|
225 |
-
require 'plugin-update-checker/plugin-update-checker.php';
|
226 |
-
$myUpdateChecker = Puc_v4_Factory::buildUpdateChecker(
|
227 |
-
'https://gitlab.com/user-name/repo-name/',
|
228 |
-
__FILE__,
|
229 |
-
'unique-plugin-or-theme-slug'
|
230 |
-
);
|
231 |
-
|
232 |
-
//Note: Self-hosted instances of GitLab must be initialized like this:
|
233 |
-
$myUpdateChecker = new Puc_v4_Vcs_PluginUpdateChecker(
|
234 |
-
new Puc_v4p4_Vcs_GitLabApi('https://myserver.com/user-name/repo-name/'),
|
235 |
-
__FILE__,
|
236 |
-
'unique-plugin-or-theme-slug'
|
237 |
-
);
|
238 |
-
|
239 |
-
//Optional: If you're using a private repository, specify the access token like this:
|
240 |
-
$myUpdateChecker->setAuthentication('your-token-here');
|
241 |
-
|
242 |
-
//Optional: Set the branch that contains the stable release.
|
243 |
-
$myUpdateChecker->setBranch('stable-branch-name');
|
244 |
-
```
|
245 |
-
3. Plugins only: Add a `readme.txt` file formatted according to the [WordPress.org plugin readme standard](https://wordpress.org/plugins/about/readme.txt) to your repository. The contents of this file will be shown when the user clicks the "View version 1.2.3 details" link.
|
246 |
-
|
247 |
-
#### How to Release an Update
|
248 |
-
|
249 |
-
GitLab doesn't have an equivalent to GitHub's releases, so the process is slightly different. You can use any of the following approaches:
|
250 |
-
|
251 |
-
- **Tags**
|
252 |
-
|
253 |
-
To release version 1.2.3, create a new Git tag named `v1.2.3` or `1.2.3`. That's it.
|
254 |
-
|
255 |
-
PUC doesn't require strict adherence to [SemVer](http://semver.org/). These are all valid tag names: `v1.2.3`, `v1.2-foo`, `1.2.3_rc1-ABC`, `1.2.3.4.5`. However, be warned that it's not smart enough to filter out alpha/beta/RC versions. If that's a problem, you might want to use GitLab branches instead.
|
256 |
-
|
257 |
-
- **Stable branch**
|
258 |
-
|
259 |
-
Point the update checker at a stable, production-ready branch:
|
260 |
-
```php
|
261 |
-
$updateChecker->setBranch('branch-name');
|
262 |
-
```
|
263 |
-
PUC will periodically check the `Version` header in the main plugin file or `style.css` and display a notification if it's greater than the installed version.
|
264 |
-
|
265 |
-
Caveat: If you set the branch to `master` (the default), the update checker will look for recent releases and tags first. It'll only use the `master` branch if it doesn't find anything else suitable.
|
266 |
-
|
267 |
-
Resources
|
268 |
-
---------
|
269 |
-
|
270 |
-
- [This blog post](http://w-shadow.com/blog/2010/09/02/automatic-updates-for-any-plugin/) has more information about the update checker API. *Slightly out of date.*
|
271 |
-
- [Debug Bar](https://wordpress.org/plugins/debug-bar/) - useful for testing and debugging the update checker.
|
272 |
-
- [Securing download links](http://w-shadow.com/blog/2013/03/19/plugin-updates-securing-download-links/) - a general overview.
|
273 |
-
- [A GUI for entering download credentials](http://open-tools.net/documentation/tutorial-automatic-updates.html#wordpress)
|
274 |
-
- [Theme Update Checker](http://w-shadow.com/blog/2011/06/02/automatic-updates-for-commercial-themes/) - an older, theme-only variant of this update checker.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/composer.json
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "yahnis-elsts/plugin-update-checker",
|
3 |
-
"type": "library",
|
4 |
-
"description": "A custom update checker for WordPress plugins and themes. Useful if you can't host your plugin in the official WP repository but still want it to support automatic updates.",
|
5 |
-
"keywords": ["wordpress", "plugin updates", "automatic updates", "theme updates"],
|
6 |
-
"homepage": "https://github.com/YahnisElsts/plugin-update-checker/",
|
7 |
-
"license": "MIT",
|
8 |
-
"authors": [
|
9 |
-
{
|
10 |
-
"name": "Yahnis Elsts",
|
11 |
-
"email": "whiteshadow@w-shadow.com",
|
12 |
-
"homepage": "http://w-shadow.com/",
|
13 |
-
"role": "Developer"
|
14 |
-
}
|
15 |
-
],
|
16 |
-
"require": {
|
17 |
-
"php": ">=5.2.0"
|
18 |
-
},
|
19 |
-
"autoload": {
|
20 |
-
"files": ["plugin-update-checker.php"]
|
21 |
-
}
|
22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/css/puc-debug-bar.css
DELETED
@@ -1,70 +0,0 @@
|
|
1 |
-
.puc-debug-bar-panel-v4 pre {
|
2 |
-
margin-top: 0;
|
3 |
-
}
|
4 |
-
|
5 |
-
/* Style the debug data table to match "widefat" table style used by WordPress. */
|
6 |
-
table.puc-debug-data {
|
7 |
-
width: 100%;
|
8 |
-
clear: both;
|
9 |
-
margin: 0;
|
10 |
-
|
11 |
-
border-spacing: 0;
|
12 |
-
background-color: #f9f9f9;
|
13 |
-
|
14 |
-
border-radius: 3px;
|
15 |
-
border: 1px solid #dfdfdf;
|
16 |
-
border-collapse: separate;
|
17 |
-
}
|
18 |
-
|
19 |
-
table.puc-debug-data * {
|
20 |
-
word-wrap: break-word;
|
21 |
-
}
|
22 |
-
|
23 |
-
table.puc-debug-data th {
|
24 |
-
width: 11em;
|
25 |
-
padding: 7px 7px 8px;
|
26 |
-
text-align: left;
|
27 |
-
|
28 |
-
font-family: "Georgia", "Times New Roman", "Bitstream Charter", "Times", serif;
|
29 |
-
font-weight: 400;
|
30 |
-
font-size: 14px;
|
31 |
-
line-height: 1.3em;
|
32 |
-
text-shadow: rgba(255, 255, 255, 0.804) 0 1px 0;
|
33 |
-
}
|
34 |
-
|
35 |
-
table.puc-debug-data td, table.puc-debug-data th {
|
36 |
-
border-width: 1px 0;
|
37 |
-
border-style: solid;
|
38 |
-
|
39 |
-
border-top-color: #fff;
|
40 |
-
border-bottom-color: #dfdfdf;
|
41 |
-
|
42 |
-
text-transform: none;
|
43 |
-
}
|
44 |
-
|
45 |
-
table.puc-debug-data td {
|
46 |
-
color: #555;
|
47 |
-
font-size: 12px;
|
48 |
-
padding: 4px 7px 2px;
|
49 |
-
vertical-align: top;
|
50 |
-
}
|
51 |
-
|
52 |
-
.puc-ajax-response {
|
53 |
-
border: 1px solid #dfdfdf;
|
54 |
-
border-radius: 3px;
|
55 |
-
padding: 0.5em;
|
56 |
-
margin: 5px 0;
|
57 |
-
background-color: white;
|
58 |
-
}
|
59 |
-
|
60 |
-
.puc-ajax-nonce {
|
61 |
-
display: none;
|
62 |
-
}
|
63 |
-
|
64 |
-
.puc-ajax-response dt {
|
65 |
-
margin: 0;
|
66 |
-
}
|
67 |
-
|
68 |
-
.puc-ajax-response dd {
|
69 |
-
margin: 0 0 1em;
|
70 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/examples/plugin.json
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "My Example Plugin",
|
3 |
-
"version": "2.0",
|
4 |
-
"download_url": "http://example.com/updates/example-plugin.zip",
|
5 |
-
|
6 |
-
"homepage": "http://example.com/",
|
7 |
-
"requires": "4.5",
|
8 |
-
"tested": "4.8",
|
9 |
-
"last_updated": "2017-01-01 16:17:00",
|
10 |
-
"upgrade_notice": "Here's why you should upgrade...",
|
11 |
-
|
12 |
-
"author": "Janis Elsts",
|
13 |
-
"author_homepage": "http://example.com/",
|
14 |
-
|
15 |
-
"sections": {
|
16 |
-
"description": "(Required) Plugin description. Basic HTML can be used in all sections.",
|
17 |
-
"installation": "(Recommended) Installation instructions.",
|
18 |
-
"changelog": "(Recommended) Changelog. <p>This section will be displayed by default when the user clicks 'View version x.y.z details'.</p>",
|
19 |
-
"custom_section": "This is a custom section labeled 'Custom Section'."
|
20 |
-
},
|
21 |
-
|
22 |
-
"icons" : {
|
23 |
-
"1x" : "http://w-shadow.com/files/external-update-example/assets/icon-128x128.png",
|
24 |
-
"2x" : "http://w-shadow.com/files/external-update-example/assets/icon-256x256.png"
|
25 |
-
},
|
26 |
-
|
27 |
-
"banners": {
|
28 |
-
"low": "http://w-shadow.com/files/external-update-example/assets/banner-772x250.png",
|
29 |
-
"high": "http://w-shadow.com/files/external-update-example/assets/banner-1544x500.png"
|
30 |
-
},
|
31 |
-
|
32 |
-
"translations": [
|
33 |
-
{
|
34 |
-
"language": "fr_FR",
|
35 |
-
"version": "4.0",
|
36 |
-
"updated": "2016-04-22 23:22:42",
|
37 |
-
"package": "http://example.com/updates/translations/french-language-pack.zip"
|
38 |
-
},
|
39 |
-
{
|
40 |
-
"language": "de_DE",
|
41 |
-
"version": "5.0",
|
42 |
-
"updated": "2016-04-22 23:22:42",
|
43 |
-
"package": "http://example.com/updates/translations/german-language-pack.zip"
|
44 |
-
}
|
45 |
-
],
|
46 |
-
|
47 |
-
"rating": 90,
|
48 |
-
"num_ratings": 123,
|
49 |
-
|
50 |
-
"downloaded": 1234,
|
51 |
-
"active_installs": 12345
|
52 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/examples/theme.json
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"version": "2.0",
|
3 |
-
"details_url": "http://example.com/version-2.0-details.html",
|
4 |
-
"download_url": "http://example.com/example-theme-2.0.zip"
|
5 |
-
}
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/js/debug-bar.js
DELETED
@@ -1,52 +0,0 @@
|
|
1 |
-
jQuery(function($) {
|
2 |
-
|
3 |
-
function runAjaxAction(button, action) {
|
4 |
-
button = $(button);
|
5 |
-
var panel = button.closest('.puc-debug-bar-panel-v4');
|
6 |
-
var responseBox = button.closest('td').find('.puc-ajax-response');
|
7 |
-
|
8 |
-
responseBox.text('Processing...').show();
|
9 |
-
$.post(
|
10 |
-
ajaxurl,
|
11 |
-
{
|
12 |
-
action : action,
|
13 |
-
uid : panel.data('uid'),
|
14 |
-
_wpnonce: panel.data('nonce')
|
15 |
-
},
|
16 |
-
function(data) {
|
17 |
-
responseBox.html(data);
|
18 |
-
},
|
19 |
-
'html'
|
20 |
-
);
|
21 |
-
}
|
22 |
-
|
23 |
-
$('.puc-debug-bar-panel-v4 input[name="puc-check-now-button"]').click(function() {
|
24 |
-
runAjaxAction(this, 'puc_v4_debug_check_now');
|
25 |
-
return false;
|
26 |
-
});
|
27 |
-
|
28 |
-
$('.puc-debug-bar-panel-v4 input[name="puc-request-info-button"]').click(function() {
|
29 |
-
runAjaxAction(this, 'puc_v4_debug_request_info');
|
30 |
-
return false;
|
31 |
-
});
|
32 |
-
|
33 |
-
|
34 |
-
// Debug Bar uses the panel class name as part of its link and container IDs. This means we can
|
35 |
-
// end up with multiple identical IDs if more than one plugin uses the update checker library.
|
36 |
-
// Fix it by replacing the class name with the plugin slug.
|
37 |
-
var panels = $('#debug-menu-targets').find('.puc-debug-bar-panel-v4');
|
38 |
-
panels.each(function() {
|
39 |
-
var panel = $(this);
|
40 |
-
var uid = panel.data('uid');
|
41 |
-
var target = panel.closest('.debug-menu-target');
|
42 |
-
|
43 |
-
//Change the panel wrapper ID.
|
44 |
-
target.attr('id', 'debug-menu-target-puc-' + uid);
|
45 |
-
|
46 |
-
//Change the menu link ID as well and point it at the new target ID.
|
47 |
-
$('#debug-bar-menu').find('.puc-debug-menu-link-' + uid)
|
48 |
-
.closest('.debug-menu-link')
|
49 |
-
.attr('id', 'debug-menu-link-puc-' + uid)
|
50 |
-
.attr('href', '#' + target.attr('id'));
|
51 |
-
});
|
52 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/languages/plugin-update-checker-cs_CZ.mo
DELETED
Binary file
|
admin/plugin-update-checker/languages/plugin-update-checker-cs_CZ.po
DELETED
@@ -1,45 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: plugin-update-checker\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2017-05-20 10:53+0300\n"
|
6 |
-
"PO-Revision-Date: 2017-07-05 15:39+0000\n"
|
7 |
-
"Last-Translator: Vojtěch Sajdl <vojtech@sajdl.com>\n"
|
8 |
-
"Language-Team: Czech (Czech Republic)\n"
|
9 |
-
"Language: cs-CZ\n"
|
10 |
-
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
|
11 |
-
"MIME-Version: 1.0\n"
|
12 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
-
"Content-Transfer-Encoding: 8bit\n"
|
14 |
-
"X-Loco-Source-Locale: cs_CZ\n"
|
15 |
-
"X-Generator: Loco - https://localise.biz/\n"
|
16 |
-
"X-Poedit-Basepath: ..\n"
|
17 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
18 |
-
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Loco-Parser: loco_parse_po"
|
21 |
-
|
22 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:358
|
23 |
-
msgid "Check for updates"
|
24 |
-
msgstr "Zkontrolovat aktualizace"
|
25 |
-
|
26 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:405
|
27 |
-
#, php-format
|
28 |
-
msgctxt "the plugin title"
|
29 |
-
msgid "The %s plugin is up to date."
|
30 |
-
msgstr "Plugin %s je aktuální."
|
31 |
-
|
32 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:407
|
33 |
-
#, php-format
|
34 |
-
msgctxt "the plugin title"
|
35 |
-
msgid "A new version of the %s plugin is available."
|
36 |
-
msgstr "Nová verze pluginu %s je dostupná."
|
37 |
-
|
38 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:409
|
39 |
-
#, php-format
|
40 |
-
msgid "Unknown update checker status \"%s\""
|
41 |
-
msgstr "Neznámý status kontroly aktualizací \"%s\""
|
42 |
-
|
43 |
-
#: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
|
44 |
-
msgid "There is no changelog available."
|
45 |
-
msgstr "Changelog není dostupný."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/languages/plugin-update-checker-da_DK.mo
DELETED
Binary file
|
admin/plugin-update-checker/languages/plugin-update-checker-da_DK.po
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: plugin-update-checker\n"
|
4 |
-
"POT-Creation-Date: 2017-05-20 10:53+0300\n"
|
5 |
-
"PO-Revision-Date: 2017-10-17 11:07+0200\n"
|
6 |
-
"Last-Translator: Mikk3lRo\n"
|
7 |
-
"Language-Team: Mikk3lRo\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"X-Generator: Poedit 2.0.4\n"
|
12 |
-
"X-Poedit-Basepath: ..\n"
|
13 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
14 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
-
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
|
16 |
-
"Language: da_DK\n"
|
17 |
-
"X-Poedit-SearchPath-0: .\n"
|
18 |
-
|
19 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:358
|
20 |
-
msgid "Check for updates"
|
21 |
-
msgstr "Undersøg for opdateringer"
|
22 |
-
|
23 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:405
|
24 |
-
#, php-format
|
25 |
-
msgctxt "the plugin title"
|
26 |
-
msgid "The %s plugin is up to date."
|
27 |
-
msgstr "Plugin'et %s er allerede opdateret."
|
28 |
-
|
29 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:407
|
30 |
-
#, php-format
|
31 |
-
msgctxt "the plugin title"
|
32 |
-
msgid "A new version of the %s plugin is available."
|
33 |
-
msgstr "En ny version af plugin'et %s er tilgængelig."
|
34 |
-
|
35 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:409
|
36 |
-
#, php-format
|
37 |
-
msgid "Unknown update checker status \"%s\""
|
38 |
-
msgstr "Ukendt opdateringsstatus: \"%s\""
|
39 |
-
|
40 |
-
#: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
|
41 |
-
msgid "There is no changelog available."
|
42 |
-
msgstr "Der er ingen ændringslog tilgængelig."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/languages/plugin-update-checker-de_DE.mo
DELETED
Binary file
|
admin/plugin-update-checker/languages/plugin-update-checker-de_DE.po
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: plugin-update-checker\n"
|
4 |
-
"POT-Creation-Date: 2016-06-29 20:21+0100\n"
|
5 |
-
"PO-Revision-Date: 2016-06-29 20:23+0100\n"
|
6 |
-
"Last-Translator: Igor Lückel <info@igorlueckel.de>\n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"X-Generator: Poedit 1.8.1\n"
|
12 |
-
"X-Poedit-Basepath: ..\n"
|
13 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
14 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
16 |
-
"Language: de_DE\n"
|
17 |
-
"X-Poedit-SearchPath-0: .\n"
|
18 |
-
|
19 |
-
#: github-checker.php:137
|
20 |
-
msgid "There is no changelog available."
|
21 |
-
msgstr "Es ist keine Liste von Programmänderungen verfügbar."
|
22 |
-
|
23 |
-
#: plugin-update-checker.php:852
|
24 |
-
msgid "Check for updates"
|
25 |
-
msgstr "Nach Update suchen"
|
26 |
-
|
27 |
-
#: plugin-update-checker.php:896
|
28 |
-
msgid "This plugin is up to date."
|
29 |
-
msgstr "Das Plugin ist aktuell."
|
30 |
-
|
31 |
-
#: plugin-update-checker.php:898
|
32 |
-
msgid "A new version of this plugin is available."
|
33 |
-
msgstr "Es ist eine neue Version für das Plugin verfügbar."
|
34 |
-
|
35 |
-
#: plugin-update-checker.php:900
|
36 |
-
#, php-format
|
37 |
-
msgid "Unknown update checker status \"%s\""
|
38 |
-
msgstr "Unbekannter Update Status \"%s\""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/languages/plugin-update-checker-fa_IR.mo
DELETED
Binary file
|
admin/plugin-update-checker/languages/plugin-update-checker-fa_IR.po
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: plugin-update-checker\n"
|
4 |
-
"POT-Creation-Date: 2016-02-17 14:21+0100\n"
|
5 |
-
"PO-Revision-Date: 2016-10-28 14:30+0330\n"
|
6 |
-
"Last-Translator: studio RVOLA <hello@rvola.com>\n"
|
7 |
-
"Language-Team: Pro Style <info@prostyle.ir>\n"
|
8 |
-
"Language: fa_IR\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.8.8\n"
|
13 |
-
"X-Poedit-Basepath: ..\n"
|
14 |
-
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
15 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
17 |
-
"X-Poedit-SearchPath-0: .\n"
|
18 |
-
|
19 |
-
#: github-checker.php:120
|
20 |
-
msgid "There is no changelog available."
|
21 |
-
msgstr "شرحی برای تغییرات یافت نشد"
|
22 |
-
|
23 |
-
#: plugin-update-checker.php:637
|
24 |
-
msgid "Check for updates"
|
25 |
-
msgstr "بررسی برای بروزرسانی "
|
26 |
-
|
27 |
-
#: plugin-update-checker.php:681
|
28 |
-
msgid "This plugin is up to date."
|
29 |
-
msgstr "شما از آخرین نسخه استفاده میکنید . بهروز باشید"
|
30 |
-
|
31 |
-
#: plugin-update-checker.php:683
|
32 |
-
msgid "A new version of this plugin is available."
|
33 |
-
msgstr "نسخه جدیدی برای افزونه ارائه شده است ."
|
34 |
-
|
35 |
-
#: plugin-update-checker.php:685
|
36 |
-
#, php-format
|
37 |
-
msgid "Unknown update checker status \"%s\""
|
38 |
-
msgstr "وضعیت ناشناخته برای بروزرسانی \"%s\""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/languages/plugin-update-checker-fr_FR.mo
DELETED
Binary file
|
admin/plugin-update-checker/languages/plugin-update-checker-fr_FR.po
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: plugin-update-checker\n"
|
4 |
-
"POT-Creation-Date: 2017-07-07 14:53+0200\n"
|
5 |
-
"PO-Revision-Date: 2017-07-07 14:54+0200\n"
|
6 |
-
"Language-Team: studio RVOLA <http://www.rvola.com>\n"
|
7 |
-
"Language: fr_FR\n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"X-Generator: Poedit 2.0.2\n"
|
12 |
-
"X-Poedit-Basepath: ..\n"
|
13 |
-
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
14 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
-
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
|
16 |
-
"Last-Translator: Nicolas GEHIN\n"
|
17 |
-
"X-Poedit-SearchPath-0: .\n"
|
18 |
-
|
19 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:358
|
20 |
-
msgid "Check for updates"
|
21 |
-
msgstr "Vérifier les mises à jour"
|
22 |
-
|
23 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:405
|
24 |
-
#, php-format
|
25 |
-
msgctxt "the plugin title"
|
26 |
-
msgid "The %s plugin is up to date."
|
27 |
-
msgstr "L’extension %s est à jour."
|
28 |
-
|
29 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:407
|
30 |
-
#, php-format
|
31 |
-
msgctxt "the plugin title"
|
32 |
-
msgid "A new version of the %s plugin is available."
|
33 |
-
msgstr "Une nouvelle version de l’extension %s est disponible."
|
34 |
-
|
35 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:409
|
36 |
-
#, php-format
|
37 |
-
msgid "Unknown update checker status \"%s\""
|
38 |
-
msgstr "Un problème inconnu est survenu \"%s\""
|
39 |
-
|
40 |
-
#: Puc/v4p1/Vcs/PluginUpdateChecker.php:85
|
41 |
-
msgid "There is no changelog available."
|
42 |
-
msgstr "Il n’y a aucun journal de mise à jour disponible."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/languages/plugin-update-checker-hu_HU.mo
DELETED
Binary file
|
admin/plugin-update-checker/languages/plugin-update-checker-hu_HU.po
DELETED
@@ -1,41 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: plugin-update-checker\n"
|
4 |
-
"POT-Creation-Date: 2016-01-11 21:23+0100\n"
|
5 |
-
"PO-Revision-Date: 2016-01-11 21:25+0100\n"
|
6 |
-
"Last-Translator: Tamás András Horváth <htomy92@gmail.com>\n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"Language: hu_HU\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.8.6\n"
|
13 |
-
"X-Poedit-Basepath: ..\n"
|
14 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
17 |
-
"X-Poedit-SearchPath-0: .\n"
|
18 |
-
|
19 |
-
#: github-checker.php:137
|
20 |
-
msgid "There is no changelog available."
|
21 |
-
msgstr "Nem érhető el a changelog."
|
22 |
-
|
23 |
-
#: plugin-update-checker.php:852
|
24 |
-
msgid "Check for updates"
|
25 |
-
msgstr "Frissítés ellenőrzése"
|
26 |
-
|
27 |
-
#: plugin-update-checker.php:896
|
28 |
-
msgid "This plugin is up to date."
|
29 |
-
msgstr "Ez a plugin naprakész."
|
30 |
-
|
31 |
-
#: plugin-update-checker.php:898
|
32 |
-
msgid "A new version of this plugin is available."
|
33 |
-
msgstr "Új verzió érhető el a kiegészítőhöz"
|
34 |
-
|
35 |
-
#: plugin-update-checker.php:900
|
36 |
-
#, php-format
|
37 |
-
msgid "Unknown update checker status \"%s\""
|
38 |
-
msgstr "Ismeretlen a frissítés ellenőrző státusza \"%s\""
|
39 |
-
|
40 |
-
#~ msgid "Every %d hours"
|
41 |
-
#~ msgstr "Minden %d órában"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/languages/plugin-update-checker-it_IT.mo
DELETED
Binary file
|
admin/plugin-update-checker/languages/plugin-update-checker-it_IT.po
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: plugin-update-checker\n"
|
4 |
-
"POT-Creation-Date: 2016-06-29 20:21+0100\n"
|
5 |
-
"PO-Revision-Date: 2017-01-15 12:24+0100\n"
|
6 |
-
"Last-Translator: Igor Lückel <info@igorlueckel.de>\n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"MIME-Version: 1.0\n"
|
9 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
-
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"X-Generator: Poedit 1.5.5\n"
|
12 |
-
"X-Poedit-Basepath: ..\n"
|
13 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
14 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
16 |
-
"Language: de_DE\n"
|
17 |
-
"X-Poedit-SearchPath-0: .\n"
|
18 |
-
|
19 |
-
#: github-checker.php:137
|
20 |
-
msgid "There is no changelog available."
|
21 |
-
msgstr "Non c'è alcuna sezione di aggiornamento disponibile"
|
22 |
-
|
23 |
-
#: plugin-update-checker.php:852
|
24 |
-
msgid "Check for updates"
|
25 |
-
msgstr "Verifica aggiornamenti"
|
26 |
-
|
27 |
-
#: plugin-update-checker.php:896
|
28 |
-
msgid "This plugin is up to date."
|
29 |
-
msgstr "Il plugin è aggiornato"
|
30 |
-
|
31 |
-
#: plugin-update-checker.php:898
|
32 |
-
msgid "A new version of this plugin is available."
|
33 |
-
msgstr "Una nuova versione del plugin è disponibile"
|
34 |
-
|
35 |
-
#: plugin-update-checker.php:900
|
36 |
-
#, php-format
|
37 |
-
msgid "Unknown update checker status \"%s\""
|
38 |
-
msgstr "Si è verificato un problema sconosciuto \"%s\""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/languages/plugin-update-checker-ja.mo
DELETED
Binary file
|
admin/plugin-update-checker/languages/plugin-update-checker-ja.po
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: plugin-update-checker\n"
|
4 |
-
"POT-Creation-Date: 2017-06-02 18:31+0900\n"
|
5 |
-
"PO-Revision-Date: 2017-06-02 18:32+0900\n"
|
6 |
-
"Last-Translator: tak <tak7725@gmail.com>\n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"Language: ja_JP\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 2.0.2\n"
|
13 |
-
"X-Poedit-Basepath: ..\n"
|
14 |
-
"Plural-Forms: nplurals=1; plural=0;\n"
|
15 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;_x;_x:1,2c\n"
|
17 |
-
"X-Poedit-SearchPath-0: .\n"
|
18 |
-
|
19 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:362
|
20 |
-
msgid "Check for updates"
|
21 |
-
msgstr "アップデートを確認"
|
22 |
-
|
23 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:409
|
24 |
-
#, php-format
|
25 |
-
msgctxt "the plugin title"
|
26 |
-
msgid "The %s plugin is up to date."
|
27 |
-
msgstr "%s プラグインは、最新バージョンです。"
|
28 |
-
|
29 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:411
|
30 |
-
#, php-format
|
31 |
-
msgctxt "the plugin title"
|
32 |
-
msgid "A new version of the %s plugin is available."
|
33 |
-
msgstr "%s プラグインの最新バージョンがあります。"
|
34 |
-
|
35 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:413
|
36 |
-
#, php-format
|
37 |
-
msgid "Unknown update checker status \"%s\""
|
38 |
-
msgstr "バージョンアップの確認で想定外の状態になりました。ステータス:\"%s\""
|
39 |
-
|
40 |
-
#: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
|
41 |
-
msgid "There is no changelog available."
|
42 |
-
msgstr "更新履歴はありません。"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/languages/plugin-update-checker-pt_BR.mo
DELETED
Binary file
|
admin/plugin-update-checker/languages/plugin-update-checker-pt_BR.po
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: plugin-update-checker\n"
|
4 |
-
"POT-Creation-Date: 2017-05-19 15:41-0300\n"
|
5 |
-
"PO-Revision-Date: 2017-05-19 15:42-0300\n"
|
6 |
-
"Last-Translator: \n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"Language: pt_BR\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.8.8\n"
|
13 |
-
"X-Poedit-Basepath: ..\n"
|
14 |
-
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
|
15 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;_x;_x:1,2c\n"
|
17 |
-
"X-Poedit-SearchPath-0: .\n"
|
18 |
-
|
19 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:358
|
20 |
-
msgid "Check for updates"
|
21 |
-
msgstr "Verificar Atualizações"
|
22 |
-
|
23 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:401 Puc/v4p1/Plugin/UpdateChecker.php:406
|
24 |
-
#, php-format
|
25 |
-
msgctxt "the plugin title"
|
26 |
-
msgid "The %s plugin is up to date."
|
27 |
-
msgstr "O plugin %s já está na sua versão mais recente."
|
28 |
-
|
29 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:408
|
30 |
-
#, php-format
|
31 |
-
msgctxt "the plugin title"
|
32 |
-
msgid "A new version of the %s plugin is available."
|
33 |
-
msgstr "Há uma nova versão para o plugin %s disponível para download."
|
34 |
-
|
35 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:410
|
36 |
-
#, php-format
|
37 |
-
msgid "Unknown update checker status \"%s\""
|
38 |
-
msgstr "Status \"%s\" desconhecido."
|
39 |
-
|
40 |
-
#: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
|
41 |
-
msgid "There is no changelog available."
|
42 |
-
msgstr "Não há um changelog disponível."
|
43 |
-
|
44 |
-
#~ msgid "The %s plugin is up to date."
|
45 |
-
#~ msgstr "O plugin %s já está na sua versão mais recente."
|
46 |
-
|
47 |
-
#~ msgid "A new version of the %s plugin is available."
|
48 |
-
#~ msgstr "Há uma nova versão para o plugin %s disponível para download."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/languages/plugin-update-checker-sv_SE.mo
DELETED
Binary file
|
admin/plugin-update-checker/languages/plugin-update-checker-sv_SE.po
DELETED
@@ -1,42 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: plugin-update-checker\n"
|
4 |
-
"POT-Creation-Date: 2017-05-20 10:53+0300\n"
|
5 |
-
"PO-Revision-Date: 2017-10-16 15:02+0200\n"
|
6 |
-
"Language-Team: \n"
|
7 |
-
"MIME-Version: 1.0\n"
|
8 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
-
"Content-Transfer-Encoding: 8bit\n"
|
10 |
-
"X-Generator: Poedit 2.0.4\n"
|
11 |
-
"X-Poedit-Basepath: ..\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
13 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
14 |
-
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
|
15 |
-
"Last-Translator: \n"
|
16 |
-
"Language: sv_SE\n"
|
17 |
-
"X-Poedit-SearchPath-0: .\n"
|
18 |
-
|
19 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:358
|
20 |
-
msgid "Check for updates"
|
21 |
-
msgstr "Sök efter uppdateringar"
|
22 |
-
|
23 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:405
|
24 |
-
#, php-format
|
25 |
-
msgctxt "the plugin title"
|
26 |
-
msgid "The %s plugin is up to date."
|
27 |
-
msgstr "Tillägget %s är uppdaterat."
|
28 |
-
|
29 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:407
|
30 |
-
#, php-format
|
31 |
-
msgctxt "the plugin title"
|
32 |
-
msgid "A new version of the %s plugin is available."
|
33 |
-
msgstr "Det finns en ny version av tillägget %s."
|
34 |
-
|
35 |
-
#: Puc/v4p1/Plugin/UpdateChecker.php:409
|
36 |
-
#, php-format
|
37 |
-
msgid "Unknown update checker status \"%s\""
|
38 |
-
msgstr "Okänd status för kontroll av uppdatering “%s”"
|
39 |
-
|
40 |
-
#: Puc/v4p1/Vcs/PluginUpdateChecker.php:83
|
41 |
-
msgid "There is no changelog available."
|
42 |
-
msgstr "Det finns ingen ändringslogg tillgänglig."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/languages/plugin-update-checker.pot
DELETED
@@ -1,49 +0,0 @@
|
|
1 |
-
#, fuzzy
|
2 |
-
msgid ""
|
3 |
-
msgstr ""
|
4 |
-
"Project-Id-Version: plugin-update-checker\n"
|
5 |
-
"POT-Creation-Date: 2017-11-24 17:02+0200\n"
|
6 |
-
"PO-Revision-Date: 2016-01-10 20:59+0100\n"
|
7 |
-
"Last-Translator: Tamás András Horváth <htomy92@gmail.com>\n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"Language: en_US\n"
|
10 |
-
"MIME-Version: 1.0\n"
|
11 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
-
"Content-Transfer-Encoding: 8bit\n"
|
13 |
-
"X-Generator: Poedit 2.0.4\n"
|
14 |
-
"X-Poedit-Basepath: ..\n"
|
15 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
-
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_x\n"
|
18 |
-
"X-Poedit-SearchPath-0: .\n"
|
19 |
-
|
20 |
-
#: Puc/v4p3/Plugin/UpdateChecker.php:395
|
21 |
-
msgid "Check for updates"
|
22 |
-
msgstr ""
|
23 |
-
|
24 |
-
#: Puc/v4p3/Plugin/UpdateChecker.php:548
|
25 |
-
#, php-format
|
26 |
-
msgctxt "the plugin title"
|
27 |
-
msgid "The %s plugin is up to date."
|
28 |
-
msgstr ""
|
29 |
-
|
30 |
-
#: Puc/v4p3/Plugin/UpdateChecker.php:550
|
31 |
-
#, php-format
|
32 |
-
msgctxt "the plugin title"
|
33 |
-
msgid "A new version of the %s plugin is available."
|
34 |
-
msgstr ""
|
35 |
-
|
36 |
-
#: Puc/v4p3/Plugin/UpdateChecker.php:552
|
37 |
-
#, php-format
|
38 |
-
msgctxt "the plugin title"
|
39 |
-
msgid "Could not determine if updates are available for %s."
|
40 |
-
msgstr ""
|
41 |
-
|
42 |
-
#: Puc/v4p3/Plugin/UpdateChecker.php:558
|
43 |
-
#, php-format
|
44 |
-
msgid "Unknown update checker status \"%s\""
|
45 |
-
msgstr ""
|
46 |
-
|
47 |
-
#: Puc/v4p3/Vcs/PluginUpdateChecker.php:95
|
48 |
-
msgid "There is no changelog available."
|
49 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/license.txt
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
Copyright (c) 2017 Jānis Elsts
|
2 |
-
|
3 |
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4 |
-
|
5 |
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6 |
-
|
7 |
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/plugin-update-checker.php
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Plugin Update Checker Library 4.4
|
4 |
-
* http://w-shadow.com/
|
5 |
-
*
|
6 |
-
* Copyright 2017 Janis Elsts
|
7 |
-
* Released under the MIT license. See license.txt for details.
|
8 |
-
*/
|
9 |
-
|
10 |
-
require dirname(__FILE__) . '/Puc/v4p4/Factory.php';
|
11 |
-
require dirname(__FILE__) . '/Puc/v4/Factory.php';
|
12 |
-
require dirname(__FILE__) . '/Puc/v4p4/Autoloader.php';
|
13 |
-
new Puc_v4p4_Autoloader();
|
14 |
-
|
15 |
-
//Register classes defined in this file with the factory.
|
16 |
-
Puc_v4_Factory::addVersion('Plugin_UpdateChecker', 'Puc_v4p4_Plugin_UpdateChecker', '4.4');
|
17 |
-
Puc_v4_Factory::addVersion('Theme_UpdateChecker', 'Puc_v4p4_Theme_UpdateChecker', '4.4');
|
18 |
-
|
19 |
-
Puc_v4_Factory::addVersion('Vcs_PluginUpdateChecker', 'Puc_v4p4_Vcs_PluginUpdateChecker', '4.4');
|
20 |
-
Puc_v4_Factory::addVersion('Vcs_ThemeUpdateChecker', 'Puc_v4p4_Vcs_ThemeUpdateChecker', '4.4');
|
21 |
-
|
22 |
-
Puc_v4_Factory::addVersion('GitHubApi', 'Puc_v4p4_Vcs_GitHubApi', '4.4');
|
23 |
-
Puc_v4_Factory::addVersion('BitBucketApi', 'Puc_v4p4_Vcs_BitBucketApi', '4.4');
|
24 |
-
Puc_v4_Factory::addVersion('GitLabApi', 'Puc_v4p4_Vcs_GitLabApi', '4.4');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/plugin-update-config.json
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "VK All in One Expansion Unit",
|
3 |
-
"version": "9.0.2",
|
4 |
-
"download_url": "https://lightning.nagoya/wp-content/vk-data-files/vk-all-in-one-expansion-unit/vk-all-in-one-expansion-unit.zip",
|
5 |
-
|
6 |
-
"homepage": "https://ex-unit.nagoya/ja/",
|
7 |
-
"requires": "4.5",
|
8 |
-
"tested": "5.2.1",
|
9 |
-
"last_updated": "2019-05-28 00:17:00",
|
10 |
-
"upgrade_notice": "Here's why you should upgrade...",
|
11 |
-
|
12 |
-
"author": "Vektor,Inc.",
|
13 |
-
"author_homepage": "https://www.vektor-inc.co.jp",
|
14 |
-
|
15 |
-
"sections": {
|
16 |
-
"description": "This plugin is an extended slide for WordPress theme Lightning.",
|
17 |
-
"installation": "",
|
18 |
-
"changelog": "<h4>9.0.3</h4><ul><li>[ デザイン調整 ][ 管理画面 ] ExUnitのmetaboxのCSS調整</li></ul><h4>9.0.2</h4><ul><li>[ 仕様変更 ][ SNSボタン ] CSS指定がきつすぎるので少し軽くなるように調整</li></ul><h4>8.9.4</h4><ul><li>[ 仕様変更 ][ VK Blocks ][ スタッフブロック ] フォント再調整</li></ul><h4>8.9.3</h4><ul><li>[ 仕様変更 ][ VK Blocks ] スタッフブロックのHタグ変更 & Lightningの1カラムテンプレート対応</li></ul><h4>8.9.2</h4><ul><li>[ 不具合修正 ][ VK Blocks ] ブロック読み込み不具合修正</li></ul><h4>8.9.1</h4><ul><li>[ 不具合修正 ][ VK Blocks ] Titleブロックで見出しに余白指定するとalignが効かなくなる不具合修正</li></ul><h4>8.9.0</h4><ul><li>[ 機能追加 ][ VK Blocks ] Staffブロック追加</li></ul><h4>8.8.1</h4><ul><li>[ 翻訳 ] 未翻訳部分翻訳</li></ul><h4>8.8.0</h4><ul><li>[ 機能追加 ] 管理画面からのアップデート対応</li></ul>",
|
19 |
-
"custom_section": ""
|
20 |
-
},
|
21 |
-
|
22 |
-
"rating": 100,
|
23 |
-
"num_ratings": 5,
|
24 |
-
|
25 |
-
"downloaded": 1234,
|
26 |
-
"active_installs": 50000
|
27 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/vendor/Parsedown.php
DELETED
@@ -1,1538 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
#
|
4 |
-
#
|
5 |
-
# Parsedown
|
6 |
-
# http://parsedown.org
|
7 |
-
#
|
8 |
-
# (c) Emanuil Rusev
|
9 |
-
# http://erusev.com
|
10 |
-
#
|
11 |
-
# For the full license information, view the LICENSE file that was distributed
|
12 |
-
# with this source code.
|
13 |
-
#
|
14 |
-
#
|
15 |
-
|
16 |
-
class Parsedown
|
17 |
-
{
|
18 |
-
# ~
|
19 |
-
|
20 |
-
const version = '1.6.0';
|
21 |
-
|
22 |
-
# ~
|
23 |
-
|
24 |
-
function text($text)
|
25 |
-
{
|
26 |
-
# make sure no definitions are set
|
27 |
-
$this->DefinitionData = array();
|
28 |
-
|
29 |
-
# standardize line breaks
|
30 |
-
$text = str_replace(array("\r\n", "\r"), "\n", $text);
|
31 |
-
|
32 |
-
# remove surrounding line breaks
|
33 |
-
$text = trim($text, "\n");
|
34 |
-
|
35 |
-
# split text into lines
|
36 |
-
$lines = explode("\n", $text);
|
37 |
-
|
38 |
-
# iterate through lines to identify blocks
|
39 |
-
$markup = $this->lines($lines);
|
40 |
-
|
41 |
-
# trim line breaks
|
42 |
-
$markup = trim($markup, "\n");
|
43 |
-
|
44 |
-
return $markup;
|
45 |
-
}
|
46 |
-
|
47 |
-
#
|
48 |
-
# Setters
|
49 |
-
#
|
50 |
-
|
51 |
-
function setBreaksEnabled($breaksEnabled)
|
52 |
-
{
|
53 |
-
$this->breaksEnabled = $breaksEnabled;
|
54 |
-
|
55 |
-
return $this;
|
56 |
-
}
|
57 |
-
|
58 |
-
protected $breaksEnabled;
|
59 |
-
|
60 |
-
function setMarkupEscaped($markupEscaped)
|
61 |
-
{
|
62 |
-
$this->markupEscaped = $markupEscaped;
|
63 |
-
|
64 |
-
return $this;
|
65 |
-
}
|
66 |
-
|
67 |
-
protected $markupEscaped;
|
68 |
-
|
69 |
-
function setUrlsLinked($urlsLinked)
|
70 |
-
{
|
71 |
-
$this->urlsLinked = $urlsLinked;
|
72 |
-
|
73 |
-
return $this;
|
74 |
-
}
|
75 |
-
|
76 |
-
protected $urlsLinked = true;
|
77 |
-
|
78 |
-
#
|
79 |
-
# Lines
|
80 |
-
#
|
81 |
-
|
82 |
-
protected $BlockTypes = array(
|
83 |
-
'#' => array('Header'),
|
84 |
-
'*' => array('Rule', 'List'),
|
85 |
-
'+' => array('List'),
|
86 |
-
'-' => array('SetextHeader', 'Table', 'Rule', 'List'),
|
87 |
-
'0' => array('List'),
|
88 |
-
'1' => array('List'),
|
89 |
-
'2' => array('List'),
|
90 |
-
'3' => array('List'),
|
91 |
-
'4' => array('List'),
|
92 |
-
'5' => array('List'),
|
93 |
-
'6' => array('List'),
|
94 |
-
'7' => array('List'),
|
95 |
-
'8' => array('List'),
|
96 |
-
'9' => array('List'),
|
97 |
-
':' => array('Table'),
|
98 |
-
'<' => array('Comment', 'Markup'),
|
99 |
-
'=' => array('SetextHeader'),
|
100 |
-
'>' => array('Quote'),
|
101 |
-
'[' => array('Reference'),
|
102 |
-
'_' => array('Rule'),
|
103 |
-
'`' => array('FencedCode'),
|
104 |
-
'|' => array('Table'),
|
105 |
-
'~' => array('FencedCode'),
|
106 |
-
);
|
107 |
-
|
108 |
-
# ~
|
109 |
-
|
110 |
-
protected $unmarkedBlockTypes = array(
|
111 |
-
'Code',
|
112 |
-
);
|
113 |
-
|
114 |
-
#
|
115 |
-
# Blocks
|
116 |
-
#
|
117 |
-
|
118 |
-
protected function lines(array $lines)
|
119 |
-
{
|
120 |
-
$CurrentBlock = null;
|
121 |
-
|
122 |
-
foreach ($lines as $line)
|
123 |
-
{
|
124 |
-
if (chop($line) === '')
|
125 |
-
{
|
126 |
-
if (isset($CurrentBlock))
|
127 |
-
{
|
128 |
-
$CurrentBlock['interrupted'] = true;
|
129 |
-
}
|
130 |
-
|
131 |
-
continue;
|
132 |
-
}
|
133 |
-
|
134 |
-
if (strpos($line, "\t") !== false)
|
135 |
-
{
|
136 |
-
$parts = explode("\t", $line);
|
137 |
-
|
138 |
-
$line = $parts[0];
|
139 |
-
|
140 |
-
unset($parts[0]);
|
141 |
-
|
142 |
-
foreach ($parts as $part)
|
143 |
-
{
|
144 |
-
$shortage = 4 - mb_strlen($line, 'utf-8') % 4;
|
145 |
-
|
146 |
-
$line .= str_repeat(' ', $shortage);
|
147 |
-
$line .= $part;
|
148 |
-
}
|
149 |
-
}
|
150 |
-
|
151 |
-
$indent = 0;
|
152 |
-
|
153 |
-
while (isset($line[$indent]) and $line[$indent] === ' ')
|
154 |
-
{
|
155 |
-
$indent ++;
|
156 |
-
}
|
157 |
-
|
158 |
-
$text = $indent > 0 ? substr($line, $indent) : $line;
|
159 |
-
|
160 |
-
# ~
|
161 |
-
|
162 |
-
$Line = array('body' => $line, 'indent' => $indent, 'text' => $text);
|
163 |
-
|
164 |
-
# ~
|
165 |
-
|
166 |
-
if (isset($CurrentBlock['continuable']))
|
167 |
-
{
|
168 |
-
$Block = $this->{'block'.$CurrentBlock['type'].'Continue'}($Line, $CurrentBlock);
|
169 |
-
|
170 |
-
if (isset($Block))
|
171 |
-
{
|
172 |
-
$CurrentBlock = $Block;
|
173 |
-
|
174 |
-
continue;
|
175 |
-
}
|
176 |
-
else
|
177 |
-
{
|
178 |
-
if ($this->isBlockCompletable($CurrentBlock['type']))
|
179 |
-
{
|
180 |
-
$CurrentBlock = $this->{'block'.$CurrentBlock['type'].'Complete'}($CurrentBlock);
|
181 |
-
}
|
182 |
-
}
|
183 |
-
}
|
184 |
-
|
185 |
-
# ~
|
186 |
-
|
187 |
-
$marker = $text[0];
|
188 |
-
|
189 |
-
# ~
|
190 |
-
|
191 |
-
$blockTypes = $this->unmarkedBlockTypes;
|
192 |
-
|
193 |
-
if (isset($this->BlockTypes[$marker]))
|
194 |
-
{
|
195 |
-
foreach ($this->BlockTypes[$marker] as $blockType)
|
196 |
-
{
|
197 |
-
$blockTypes []= $blockType;
|
198 |
-
}
|
199 |
-
}
|
200 |
-
|
201 |
-
#
|
202 |
-
# ~
|
203 |
-
|
204 |
-
foreach ($blockTypes as $blockType)
|
205 |
-
{
|
206 |
-
$Block = $this->{'block'.$blockType}($Line, $CurrentBlock);
|
207 |
-
|
208 |
-
if (isset($Block))
|
209 |
-
{
|
210 |
-
$Block['type'] = $blockType;
|
211 |
-
|
212 |
-
if ( ! isset($Block['identified']))
|
213 |
-
{
|
214 |
-
$Blocks []= $CurrentBlock;
|
215 |
-
|
216 |
-
$Block['identified'] = true;
|
217 |
-
}
|
218 |
-
|
219 |
-
if ($this->isBlockContinuable($blockType))
|
220 |
-
{
|
221 |
-
$Block['continuable'] = true;
|
222 |
-
}
|
223 |
-
|
224 |
-
$CurrentBlock = $Block;
|
225 |
-
|
226 |
-
continue 2;
|
227 |
-
}
|
228 |
-
}
|
229 |
-
|
230 |
-
# ~
|
231 |
-
|
232 |
-
if (isset($CurrentBlock) and ! isset($CurrentBlock['type']) and ! isset($CurrentBlock['interrupted']))
|
233 |
-
{
|
234 |
-
$CurrentBlock['element']['text'] .= "\n".$text;
|
235 |
-
}
|
236 |
-
else
|
237 |
-
{
|
238 |
-
$Blocks []= $CurrentBlock;
|
239 |
-
|
240 |
-
$CurrentBlock = $this->paragraph($Line);
|
241 |
-
|
242 |
-
$CurrentBlock['identified'] = true;
|
243 |
-
}
|
244 |
-
}
|
245 |
-
|
246 |
-
# ~
|
247 |
-
|
248 |
-
if (isset($CurrentBlock['continuable']) and $this->isBlockCompletable($CurrentBlock['type']))
|
249 |
-
{
|
250 |
-
$CurrentBlock = $this->{'block'.$CurrentBlock['type'].'Complete'}($CurrentBlock);
|
251 |
-
}
|
252 |
-
|
253 |
-
# ~
|
254 |
-
|
255 |
-
$Blocks []= $CurrentBlock;
|
256 |
-
|
257 |
-
unset($Blocks[0]);
|
258 |
-
|
259 |
-
# ~
|
260 |
-
|
261 |
-
$markup = '';
|
262 |
-
|
263 |
-
foreach ($Blocks as $Block)
|
264 |
-
{
|
265 |
-
if (isset($Block['hidden']))
|
266 |
-
{
|
267 |
-
continue;
|
268 |
-
}
|
269 |
-
|
270 |
-
$markup .= "\n";
|
271 |
-
$markup .= isset($Block['markup']) ? $Block['markup'] : $this->element($Block['element']);
|
272 |
-
}
|
273 |
-
|
274 |
-
$markup .= "\n";
|
275 |
-
|
276 |
-
# ~
|
277 |
-
|
278 |
-
return $markup;
|
279 |
-
}
|
280 |
-
|
281 |
-
protected function isBlockContinuable($Type)
|
282 |
-
{
|
283 |
-
return method_exists($this, 'block'.$Type.'Continue');
|
284 |
-
}
|
285 |
-
|
286 |
-
protected function isBlockCompletable($Type)
|
287 |
-
{
|
288 |
-
return method_exists($this, 'block'.$Type.'Complete');
|
289 |
-
}
|
290 |
-
|
291 |
-
#
|
292 |
-
# Code
|
293 |
-
|
294 |
-
protected function blockCode($Line, $Block = null)
|
295 |
-
{
|
296 |
-
if (isset($Block) and ! isset($Block['type']) and ! isset($Block['interrupted']))
|
297 |
-
{
|
298 |
-
return;
|
299 |
-
}
|
300 |
-
|
301 |
-
if ($Line['indent'] >= 4)
|
302 |
-
{
|
303 |
-
$text = substr($Line['body'], 4);
|
304 |
-
|
305 |
-
$Block = array(
|
306 |
-
'element' => array(
|
307 |
-
'name' => 'pre',
|
308 |
-
'handler' => 'element',
|
309 |
-
'text' => array(
|
310 |
-
'name' => 'code',
|
311 |
-
'text' => $text,
|
312 |
-
),
|
313 |
-
),
|
314 |
-
);
|
315 |
-
|
316 |
-
return $Block;
|
317 |
-
}
|
318 |
-
}
|
319 |
-
|
320 |
-
protected function blockCodeContinue($Line, $Block)
|
321 |
-
{
|
322 |
-
if ($Line['indent'] >= 4)
|
323 |
-
{
|
324 |
-
if (isset($Block['interrupted']))
|
325 |
-
{
|
326 |
-
$Block['element']['text']['text'] .= "\n";
|
327 |
-
|
328 |
-
unset($Block['interrupted']);
|
329 |
-
}
|
330 |
-
|
331 |
-
$Block['element']['text']['text'] .= "\n";
|
332 |
-
|
333 |
-
$text = substr($Line['body'], 4);
|
334 |
-
|
335 |
-
$Block['element']['text']['text'] .= $text;
|
336 |
-
|
337 |
-
return $Block;
|
338 |
-
}
|
339 |
-
}
|
340 |
-
|
341 |
-
protected function blockCodeComplete($Block)
|
342 |
-
{
|
343 |
-
$text = $Block['element']['text']['text'];
|
344 |
-
|
345 |
-
$text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
|
346 |
-
|
347 |
-
$Block['element']['text']['text'] = $text;
|
348 |
-
|
349 |
-
return $Block;
|
350 |
-
}
|
351 |
-
|
352 |
-
#
|
353 |
-
# Comment
|
354 |
-
|
355 |
-
protected function blockComment($Line)
|
356 |
-
{
|
357 |
-
if ($this->markupEscaped)
|
358 |
-
{
|
359 |
-
return;
|
360 |
-
}
|
361 |
-
|
362 |
-
if (isset($Line['text'][3]) and $Line['text'][3] === '-' and $Line['text'][2] === '-' and $Line['text'][1] === '!')
|
363 |
-
{
|
364 |
-
$Block = array(
|
365 |
-
'markup' => $Line['body'],
|
366 |
-
);
|
367 |
-
|
368 |
-
if (preg_match('/-->$/', $Line['text']))
|
369 |
-
{
|
370 |
-
$Block['closed'] = true;
|
371 |
-
}
|
372 |
-
|
373 |
-
return $Block;
|
374 |
-
}
|
375 |
-
}
|
376 |
-
|
377 |
-
protected function blockCommentContinue($Line, array $Block)
|
378 |
-
{
|
379 |
-
if (isset($Block['closed']))
|
380 |
-
{
|
381 |
-
return;
|
382 |
-
}
|
383 |
-
|
384 |
-
$Block['markup'] .= "\n" . $Line['body'];
|
385 |
-
|
386 |
-
if (preg_match('/-->$/', $Line['text']))
|
387 |
-
{
|
388 |
-
$Block['closed'] = true;
|
389 |
-
}
|
390 |
-
|
391 |
-
return $Block;
|
392 |
-
}
|
393 |
-
|
394 |
-
#
|
395 |
-
# Fenced Code
|
396 |
-
|
397 |
-
protected function blockFencedCode($Line)
|
398 |
-
{
|
399 |
-
if (preg_match('/^['.$Line['text'][0].']{3,}[ ]*([\w-]+)?[ ]*$/', $Line['text'], $matches))
|
400 |
-
{
|
401 |
-
$Element = array(
|
402 |
-
'name' => 'code',
|
403 |
-
'text' => '',
|
404 |
-
);
|
405 |
-
|
406 |
-
if (isset($matches[1]))
|
407 |
-
{
|
408 |
-
$class = 'language-'.$matches[1];
|
409 |
-
|
410 |
-
$Element['attributes'] = array(
|
411 |
-
'class' => $class,
|
412 |
-
);
|
413 |
-
}
|
414 |
-
|
415 |
-
$Block = array(
|
416 |
-
'char' => $Line['text'][0],
|
417 |
-
'element' => array(
|
418 |
-
'name' => 'pre',
|
419 |
-
'handler' => 'element',
|
420 |
-
'text' => $Element,
|
421 |
-
),
|
422 |
-
);
|
423 |
-
|
424 |
-
return $Block;
|
425 |
-
}
|
426 |
-
}
|
427 |
-
|
428 |
-
protected function blockFencedCodeContinue($Line, $Block)
|
429 |
-
{
|
430 |
-
if (isset($Block['complete']))
|
431 |
-
{
|
432 |
-
return;
|
433 |
-
}
|
434 |
-
|
435 |
-
if (isset($Block['interrupted']))
|
436 |
-
{
|
437 |
-
$Block['element']['text']['text'] .= "\n";
|
438 |
-
|
439 |
-
unset($Block['interrupted']);
|
440 |
-
}
|
441 |
-
|
442 |
-
if (preg_match('/^'.$Block['char'].'{3,}[ ]*$/', $Line['text']))
|
443 |
-
{
|
444 |
-
$Block['element']['text']['text'] = substr($Block['element']['text']['text'], 1);
|
445 |
-
|
446 |
-
$Block['complete'] = true;
|
447 |
-
|
448 |
-
return $Block;
|
449 |
-
}
|
450 |
-
|
451 |
-
$Block['element']['text']['text'] .= "\n".$Line['body'];;
|
452 |
-
|
453 |
-
return $Block;
|
454 |
-
}
|
455 |
-
|
456 |
-
protected function blockFencedCodeComplete($Block)
|
457 |
-
{
|
458 |
-
$text = $Block['element']['text']['text'];
|
459 |
-
|
460 |
-
$text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
|
461 |
-
|
462 |
-
$Block['element']['text']['text'] = $text;
|
463 |
-
|
464 |
-
return $Block;
|
465 |
-
}
|
466 |
-
|
467 |
-
#
|
468 |
-
# Header
|
469 |
-
|
470 |
-
protected function blockHeader($Line)
|
471 |
-
{
|
472 |
-
if (isset($Line['text'][1]))
|
473 |
-
{
|
474 |
-
$level = 1;
|
475 |
-
|
476 |
-
while (isset($Line['text'][$level]) and $Line['text'][$level] === '#')
|
477 |
-
{
|
478 |
-
$level ++;
|
479 |
-
}
|
480 |
-
|
481 |
-
if ($level > 6)
|
482 |
-
{
|
483 |
-
return;
|
484 |
-
}
|
485 |
-
|
486 |
-
$text = trim($Line['text'], '# ');
|
487 |
-
|
488 |
-
$Block = array(
|
489 |
-
'element' => array(
|
490 |
-
'name' => 'h' . min(6, $level),
|
491 |
-
'text' => $text,
|
492 |
-
'handler' => 'line',
|
493 |
-
),
|
494 |
-
);
|
495 |
-
|
496 |
-
return $Block;
|
497 |
-
}
|
498 |
-
}
|
499 |
-
|
500 |
-
#
|
501 |
-
# List
|
502 |
-
|
503 |
-
protected function blockList($Line)
|
504 |
-
{
|
505 |
-
list($name, $pattern) = $Line['text'][0] <= '-' ? array('ul', '[*+-]') : array('ol', '[0-9]+[.]');
|
506 |
-
|
507 |
-
if (preg_match('/^('.$pattern.'[ ]+)(.*)/', $Line['text'], $matches))
|
508 |
-
{
|
509 |
-
$Block = array(
|
510 |
-
'indent' => $Line['indent'],
|
511 |
-
'pattern' => $pattern,
|
512 |
-
'element' => array(
|
513 |
-
'name' => $name,
|
514 |
-
'handler' => 'elements',
|
515 |
-
),
|
516 |
-
);
|
517 |
-
|
518 |
-
$Block['li'] = array(
|
519 |
-
'name' => 'li',
|
520 |
-
'handler' => 'li',
|
521 |
-
'text' => array(
|
522 |
-
$matches[2],
|
523 |
-
),
|
524 |
-
);
|
525 |
-
|
526 |
-
$Block['element']['text'] []= & $Block['li'];
|
527 |
-
|
528 |
-
return $Block;
|
529 |
-
}
|
530 |
-
}
|
531 |
-
|
532 |
-
protected function blockListContinue($Line, array $Block)
|
533 |
-
{
|
534 |
-
if ($Block['indent'] === $Line['indent'] and preg_match('/^'.$Block['pattern'].'(?:[ ]+(.*)|$)/', $Line['text'], $matches))
|
535 |
-
{
|
536 |
-
if (isset($Block['interrupted']))
|
537 |
-
{
|
538 |
-
$Block['li']['text'] []= '';
|
539 |
-
|
540 |
-
unset($Block['interrupted']);
|
541 |
-
}
|
542 |
-
|
543 |
-
unset($Block['li']);
|
544 |
-
|
545 |
-
$text = isset($matches[1]) ? $matches[1] : '';
|
546 |
-
|
547 |
-
$Block['li'] = array(
|
548 |
-
'name' => 'li',
|
549 |
-
'handler' => 'li',
|
550 |
-
'text' => array(
|
551 |
-
$text,
|
552 |
-
),
|
553 |
-
);
|
554 |
-
|
555 |
-
$Block['element']['text'] []= & $Block['li'];
|
556 |
-
|
557 |
-
return $Block;
|
558 |
-
}
|
559 |
-
|
560 |
-
if ($Line['text'][0] === '[' and $this->blockReference($Line))
|
561 |
-
{
|
562 |
-
return $Block;
|
563 |
-
}
|
564 |
-
|
565 |
-
if ( ! isset($Block['interrupted']))
|
566 |
-
{
|
567 |
-
$text = preg_replace('/^[ ]{0,4}/', '', $Line['body']);
|
568 |
-
|
569 |
-
$Block['li']['text'] []= $text;
|
570 |
-
|
571 |
-
return $Block;
|
572 |
-
}
|
573 |
-
|
574 |
-
if ($Line['indent'] > 0)
|
575 |
-
{
|
576 |
-
$Block['li']['text'] []= '';
|
577 |
-
|
578 |
-
$text = preg_replace('/^[ ]{0,4}/', '', $Line['body']);
|
579 |
-
|
580 |
-
$Block['li']['text'] []= $text;
|
581 |
-
|
582 |
-
unset($Block['interrupted']);
|
583 |
-
|
584 |
-
return $Block;
|
585 |
-
}
|
586 |
-
}
|
587 |
-
|
588 |
-
#
|
589 |
-
# Quote
|
590 |
-
|
591 |
-
protected function blockQuote($Line)
|
592 |
-
{
|
593 |
-
if (preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
|
594 |
-
{
|
595 |
-
$Block = array(
|
596 |
-
'element' => array(
|
597 |
-
'name' => 'blockquote',
|
598 |
-
'handler' => 'lines',
|
599 |
-
'text' => (array) $matches[1],
|
600 |
-
),
|
601 |
-
);
|
602 |
-
|
603 |
-
return $Block;
|
604 |
-
}
|
605 |
-
}
|
606 |
-
|
607 |
-
protected function blockQuoteContinue($Line, array $Block)
|
608 |
-
{
|
609 |
-
if ($Line['text'][0] === '>' and preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
|
610 |
-
{
|
611 |
-
if (isset($Block['interrupted']))
|
612 |
-
{
|
613 |
-
$Block['element']['text'] []= '';
|
614 |
-
|
615 |
-
unset($Block['interrupted']);
|
616 |
-
}
|
617 |
-
|
618 |
-
$Block['element']['text'] []= $matches[1];
|
619 |
-
|
620 |
-
return $Block;
|
621 |
-
}
|
622 |
-
|
623 |
-
if ( ! isset($Block['interrupted']))
|
624 |
-
{
|
625 |
-
$Block['element']['text'] []= $Line['text'];
|
626 |
-
|
627 |
-
return $Block;
|
628 |
-
}
|
629 |
-
}
|
630 |
-
|
631 |
-
#
|
632 |
-
# Rule
|
633 |
-
|
634 |
-
protected function blockRule($Line)
|
635 |
-
{
|
636 |
-
if (preg_match('/^(['.$Line['text'][0].'])([ ]*\1){2,}[ ]*$/', $Line['text']))
|
637 |
-
{
|
638 |
-
$Block = array(
|
639 |
-
'element' => array(
|
640 |
-
'name' => 'hr'
|
641 |
-
),
|
642 |
-
);
|
643 |
-
|
644 |
-
return $Block;
|
645 |
-
}
|
646 |
-
}
|
647 |
-
|
648 |
-
#
|
649 |
-
# Setext
|
650 |
-
|
651 |
-
protected function blockSetextHeader($Line, array $Block = null)
|
652 |
-
{
|
653 |
-
if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
|
654 |
-
{
|
655 |
-
return;
|
656 |
-
}
|
657 |
-
|
658 |
-
if (chop($Line['text'], $Line['text'][0]) === '')
|
659 |
-
{
|
660 |
-
$Block['element']['name'] = $Line['text'][0] === '=' ? 'h1' : 'h2';
|
661 |
-
|
662 |
-
return $Block;
|
663 |
-
}
|
664 |
-
}
|
665 |
-
|
666 |
-
#
|
667 |
-
# Markup
|
668 |
-
|
669 |
-
protected function blockMarkup($Line)
|
670 |
-
{
|
671 |
-
if ($this->markupEscaped)
|
672 |
-
{
|
673 |
-
return;
|
674 |
-
}
|
675 |
-
|
676 |
-
if (preg_match('/^<(\w*)(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*(\/)?>/', $Line['text'], $matches))
|
677 |
-
{
|
678 |
-
$element = strtolower($matches[1]);
|
679 |
-
|
680 |
-
if (in_array($element, $this->textLevelElements))
|
681 |
-
{
|
682 |
-
return;
|
683 |
-
}
|
684 |
-
|
685 |
-
$Block = array(
|
686 |
-
'name' => $matches[1],
|
687 |
-
'depth' => 0,
|
688 |
-
'markup' => $Line['text'],
|
689 |
-
);
|
690 |
-
|
691 |
-
$length = strlen($matches[0]);
|
692 |
-
|
693 |
-
$remainder = substr($Line['text'], $length);
|
694 |
-
|
695 |
-
if (trim($remainder) === '')
|
696 |
-
{
|
697 |
-
if (isset($matches[2]) or in_array($matches[1], $this->voidElements))
|
698 |
-
{
|
699 |
-
$Block['closed'] = true;
|
700 |
-
|
701 |
-
$Block['void'] = true;
|
702 |
-
}
|
703 |
-
}
|
704 |
-
else
|
705 |
-
{
|
706 |
-
if (isset($matches[2]) or in_array($matches[1], $this->voidElements))
|
707 |
-
{
|
708 |
-
return;
|
709 |
-
}
|
710 |
-
|
711 |
-
if (preg_match('/<\/'.$matches[1].'>[ ]*$/i', $remainder))
|
712 |
-
{
|
713 |
-
$Block['closed'] = true;
|
714 |
-
}
|
715 |
-
}
|
716 |
-
|
717 |
-
return $Block;
|
718 |
-
}
|
719 |
-
}
|
720 |
-
|
721 |
-
protected function blockMarkupContinue($Line, array $Block)
|
722 |
-
{
|
723 |
-
if (isset($Block['closed']))
|
724 |
-
{
|
725 |
-
return;
|
726 |
-
}
|
727 |
-
|
728 |
-
if (preg_match('/^<'.$Block['name'].'(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*>/i', $Line['text'])) # open
|
729 |
-
{
|
730 |
-
$Block['depth'] ++;
|
731 |
-
}
|
732 |
-
|
733 |
-
if (preg_match('/(.*?)<\/'.$Block['name'].'>[ ]*$/i', $Line['text'], $matches)) # close
|
734 |
-
{
|
735 |
-
if ($Block['depth'] > 0)
|
736 |
-
{
|
737 |
-
$Block['depth'] --;
|
738 |
-
}
|
739 |
-
else
|
740 |
-
{
|
741 |
-
$Block['closed'] = true;
|
742 |
-
}
|
743 |
-
}
|
744 |
-
|
745 |
-
if (isset($Block['interrupted']))
|
746 |
-
{
|
747 |
-
$Block['markup'] .= "\n";
|
748 |
-
|
749 |
-
unset($Block['interrupted']);
|
750 |
-
}
|
751 |
-
|
752 |
-
$Block['markup'] .= "\n".$Line['body'];
|
753 |
-
|
754 |
-
return $Block;
|
755 |
-
}
|
756 |
-
|
757 |
-
#
|
758 |
-
# Reference
|
759 |
-
|
760 |
-
protected function blockReference($Line)
|
761 |
-
{
|
762 |
-
if (preg_match('/^\[(.+?)\]:[ ]*<?(\S+?)>?(?:[ ]+["\'(](.+)["\')])?[ ]*$/', $Line['text'], $matches))
|
763 |
-
{
|
764 |
-
$id = strtolower($matches[1]);
|
765 |
-
|
766 |
-
$Data = array(
|
767 |
-
'url' => $matches[2],
|
768 |
-
'title' => null,
|
769 |
-
);
|
770 |
-
|
771 |
-
if (isset($matches[3]))
|
772 |
-
{
|
773 |
-
$Data['title'] = $matches[3];
|
774 |
-
}
|
775 |
-
|
776 |
-
$this->DefinitionData['Reference'][$id] = $Data;
|
777 |
-
|
778 |
-
$Block = array(
|
779 |
-
'hidden' => true,
|
780 |
-
);
|
781 |
-
|
782 |
-
return $Block;
|
783 |
-
}
|
784 |
-
}
|
785 |
-
|
786 |
-
#
|
787 |
-
# Table
|
788 |
-
|
789 |
-
protected function blockTable($Line, array $Block = null)
|
790 |
-
{
|
791 |
-
if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
|
792 |
-
{
|
793 |
-
return;
|
794 |
-
}
|
795 |
-
|
796 |
-
if (strpos($Block['element']['text'], '|') !== false and chop($Line['text'], ' -:|') === '')
|
797 |
-
{
|
798 |
-
$alignments = array();
|
799 |
-
|
800 |
-
$divider = $Line['text'];
|
801 |
-
|
802 |
-
$divider = trim($divider);
|
803 |
-
$divider = trim($divider, '|');
|
804 |
-
|
805 |
-
$dividerCells = explode('|', $divider);
|
806 |
-
|
807 |
-
foreach ($dividerCells as $dividerCell)
|
808 |
-
{
|
809 |
-
$dividerCell = trim($dividerCell);
|
810 |
-
|
811 |
-
if ($dividerCell === '')
|
812 |
-
{
|
813 |
-
continue;
|
814 |
-
}
|
815 |
-
|
816 |
-
$alignment = null;
|
817 |
-
|
818 |
-
if ($dividerCell[0] === ':')
|
819 |
-
{
|
820 |
-
$alignment = 'left';
|
821 |
-
}
|
822 |
-
|
823 |
-
if (substr($dividerCell, - 1) === ':')
|
824 |
-
{
|
825 |
-
$alignment = $alignment === 'left' ? 'center' : 'right';
|
826 |
-
}
|
827 |
-
|
828 |
-
$alignments []= $alignment;
|
829 |
-
}
|
830 |
-
|
831 |
-
# ~
|
832 |
-
|
833 |
-
$HeaderElements = array();
|
834 |
-
|
835 |
-
$header = $Block['element']['text'];
|
836 |
-
|
837 |
-
$header = trim($header);
|
838 |
-
$header = trim($header, '|');
|
839 |
-
|
840 |
-
$headerCells = explode('|', $header);
|
841 |
-
|
842 |
-
foreach ($headerCells as $index => $headerCell)
|
843 |
-
{
|
844 |
-
$headerCell = trim($headerCell);
|
845 |
-
|
846 |
-
$HeaderElement = array(
|
847 |
-
'name' => 'th',
|
848 |
-
'text' => $headerCell,
|
849 |
-
'handler' => 'line',
|
850 |
-
);
|
851 |
-
|
852 |
-
if (isset($alignments[$index]))
|
853 |
-
{
|
854 |
-
$alignment = $alignments[$index];
|
855 |
-
|
856 |
-
$HeaderElement['attributes'] = array(
|
857 |
-
'style' => 'text-align: '.$alignment.';',
|
858 |
-
);
|
859 |
-
}
|
860 |
-
|
861 |
-
$HeaderElements []= $HeaderElement;
|
862 |
-
}
|
863 |
-
|
864 |
-
# ~
|
865 |
-
|
866 |
-
$Block = array(
|
867 |
-
'alignments' => $alignments,
|
868 |
-
'identified' => true,
|
869 |
-
'element' => array(
|
870 |
-
'name' => 'table',
|
871 |
-
'handler' => 'elements',
|
872 |
-
),
|
873 |
-
);
|
874 |
-
|
875 |
-
$Block['element']['text'] []= array(
|
876 |
-
'name' => 'thead',
|
877 |
-
'handler' => 'elements',
|
878 |
-
);
|
879 |
-
|
880 |
-
$Block['element']['text'] []= array(
|
881 |
-
'name' => 'tbody',
|
882 |
-
'handler' => 'elements',
|
883 |
-
'text' => array(),
|
884 |
-
);
|
885 |
-
|
886 |
-
$Block['element']['text'][0]['text'] []= array(
|
887 |
-
'name' => 'tr',
|
888 |
-
'handler' => 'elements',
|
889 |
-
'text' => $HeaderElements,
|
890 |
-
);
|
891 |
-
|
892 |
-
return $Block;
|
893 |
-
}
|
894 |
-
}
|
895 |
-
|
896 |
-
protected function blockTableContinue($Line, array $Block)
|
897 |
-
{
|
898 |
-
if (isset($Block['interrupted']))
|
899 |
-
{
|
900 |
-
return;
|
901 |
-
}
|
902 |
-
|
903 |
-
if ($Line['text'][0] === '|' or strpos($Line['text'], '|'))
|
904 |
-
{
|
905 |
-
$Elements = array();
|
906 |
-
|
907 |
-
$row = $Line['text'];
|
908 |
-
|
909 |
-
$row = trim($row);
|
910 |
-
$row = trim($row, '|');
|
911 |
-
|
912 |
-
preg_match_all('/(?:(\\\\[|])|[^|`]|`[^`]+`|`)+/', $row, $matches);
|
913 |
-
|
914 |
-
foreach ($matches[0] as $index => $cell)
|
915 |
-
{
|
916 |
-
$cell = trim($cell);
|
917 |
-
|
918 |
-
$Element = array(
|
919 |
-
'name' => 'td',
|
920 |
-
'handler' => 'line',
|
921 |
-
'text' => $cell,
|
922 |
-
);
|
923 |
-
|
924 |
-
if (isset($Block['alignments'][$index]))
|
925 |
-
{
|
926 |
-
$Element['attributes'] = array(
|
927 |
-
'style' => 'text-align: '.$Block['alignments'][$index].';',
|
928 |
-
);
|
929 |
-
}
|
930 |
-
|
931 |
-
$Elements []= $Element;
|
932 |
-
}
|
933 |
-
|
934 |
-
$Element = array(
|
935 |
-
'name' => 'tr',
|
936 |
-
'handler' => 'elements',
|
937 |
-
'text' => $Elements,
|
938 |
-
);
|
939 |
-
|
940 |
-
$Block['element']['text'][1]['text'] []= $Element;
|
941 |
-
|
942 |
-
return $Block;
|
943 |
-
}
|
944 |
-
}
|
945 |
-
|
946 |
-
#
|
947 |
-
# ~
|
948 |
-
#
|
949 |
-
|
950 |
-
protected function paragraph($Line)
|
951 |
-
{
|
952 |
-
$Block = array(
|
953 |
-
'element' => array(
|
954 |
-
'name' => 'p',
|
955 |
-
'text' => $Line['text'],
|
956 |
-
'handler' => 'line',
|
957 |
-
),
|
958 |
-
);
|
959 |
-
|
960 |
-
return $Block;
|
961 |
-
}
|
962 |
-
|
963 |
-
#
|
964 |
-
# Inline Elements
|
965 |
-
#
|
966 |
-
|
967 |
-
protected $InlineTypes = array(
|
968 |
-
'"' => array('SpecialCharacter'),
|
969 |
-
'!' => array('Image'),
|
970 |
-
'&' => array('SpecialCharacter'),
|
971 |
-
'*' => array('Emphasis'),
|
972 |
-
':' => array('Url'),
|
973 |
-
'<' => array('UrlTag', 'EmailTag', 'Markup', 'SpecialCharacter'),
|
974 |
-
'>' => array('SpecialCharacter'),
|
975 |
-
'[' => array('Link'),
|
976 |
-
'_' => array('Emphasis'),
|
977 |
-
'`' => array('Code'),
|
978 |
-
'~' => array('Strikethrough'),
|
979 |
-
'\\' => array('EscapeSequence'),
|
980 |
-
);
|
981 |
-
|
982 |
-
# ~
|
983 |
-
|
984 |
-
protected $inlineMarkerList = '!"*_&[:<>`~\\';
|
985 |
-
|
986 |
-
#
|
987 |
-
# ~
|
988 |
-
#
|
989 |
-
|
990 |
-
public function line($text)
|
991 |
-
{
|
992 |
-
$markup = '';
|
993 |
-
|
994 |
-
# $excerpt is based on the first occurrence of a marker
|
995 |
-
|
996 |
-
while ($excerpt = strpbrk($text, $this->inlineMarkerList))
|
997 |
-
{
|
998 |
-
$marker = $excerpt[0];
|
999 |
-
|
1000 |
-
$markerPosition = strpos($text, $marker);
|
1001 |
-
|
1002 |
-
$Excerpt = array('text' => $excerpt, 'context' => $text);
|
1003 |
-
|
1004 |
-
foreach ($this->InlineTypes[$marker] as $inlineType)
|
1005 |
-
{
|
1006 |
-
$Inline = $this->{'inline'.$inlineType}($Excerpt);
|
1007 |
-
|
1008 |
-
if ( ! isset($Inline))
|
1009 |
-
{
|
1010 |
-
continue;
|
1011 |
-
}
|
1012 |
-
|
1013 |
-
# makes sure that the inline belongs to "our" marker
|
1014 |
-
|
1015 |
-
if (isset($Inline['position']) and $Inline['position'] > $markerPosition)
|
1016 |
-
{
|
1017 |
-
continue;
|
1018 |
-
}
|
1019 |
-
|
1020 |
-
# sets a default inline position
|
1021 |
-
|
1022 |
-
if ( ! isset($Inline['position']))
|
1023 |
-
{
|
1024 |
-
$Inline['position'] = $markerPosition;
|
1025 |
-
}
|
1026 |
-
|
1027 |
-
# the text that comes before the inline
|
1028 |
-
$unmarkedText = substr($text, 0, $Inline['position']);
|
1029 |
-
|
1030 |
-
# compile the unmarked text
|
1031 |
-
$markup .= $this->unmarkedText($unmarkedText);
|
1032 |
-
|
1033 |
-
# compile the inline
|
1034 |
-
$markup .= isset($Inline['markup']) ? $Inline['markup'] : $this->element($Inline['element']);
|
1035 |
-
|
1036 |
-
# remove the examined text
|
1037 |
-
$text = substr($text, $Inline['position'] + $Inline['extent']);
|
1038 |
-
|
1039 |
-
continue 2;
|
1040 |
-
}
|
1041 |
-
|
1042 |
-
# the marker does not belong to an inline
|
1043 |
-
|
1044 |
-
$unmarkedText = substr($text, 0, $markerPosition + 1);
|
1045 |
-
|
1046 |
-
$markup .= $this->unmarkedText($unmarkedText);
|
1047 |
-
|
1048 |
-
$text = substr($text, $markerPosition + 1);
|
1049 |
-
}
|
1050 |
-
|
1051 |
-
$markup .= $this->unmarkedText($text);
|
1052 |
-
|
1053 |
-
return $markup;
|
1054 |
-
}
|
1055 |
-
|
1056 |
-
#
|
1057 |
-
# ~
|
1058 |
-
#
|
1059 |
-
|
1060 |
-
protected function inlineCode($Excerpt)
|
1061 |
-
{
|
1062 |
-
$marker = $Excerpt['text'][0];
|
1063 |
-
|
1064 |
-
if (preg_match('/^('.$marker.'+)[ ]*(.+?)[ ]*(?<!'.$marker.')\1(?!'.$marker.')/s', $Excerpt['text'], $matches))
|
1065 |
-
{
|
1066 |
-
$text = $matches[2];
|
1067 |
-
$text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
|
1068 |
-
$text = preg_replace("/[ ]*\n/", ' ', $text);
|
1069 |
-
|
1070 |
-
return array(
|
1071 |
-
'extent' => strlen($matches[0]),
|
1072 |
-
'element' => array(
|
1073 |
-
'name' => 'code',
|
1074 |
-
'text' => $text,
|
1075 |
-
),
|
1076 |
-
);
|
1077 |
-
}
|
1078 |
-
}
|
1079 |
-
|
1080 |
-
protected function inlineEmailTag($Excerpt)
|
1081 |
-
{
|
1082 |
-
if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<((mailto:)?\S+?@\S+?)>/i', $Excerpt['text'], $matches))
|
1083 |
-
{
|
1084 |
-
$url = $matches[1];
|
1085 |
-
|
1086 |
-
if ( ! isset($matches[2]))
|
1087 |
-
{
|
1088 |
-
$url = 'mailto:' . $url;
|
1089 |
-
}
|
1090 |
-
|
1091 |
-
return array(
|
1092 |
-
'extent' => strlen($matches[0]),
|
1093 |
-
'element' => array(
|
1094 |
-
'name' => 'a',
|
1095 |
-
'text' => $matches[1],
|
1096 |
-
'attributes' => array(
|
1097 |
-
'href' => $url,
|
1098 |
-
),
|
1099 |
-
),
|
1100 |
-
);
|
1101 |
-
}
|
1102 |
-
}
|
1103 |
-
|
1104 |
-
protected function inlineEmphasis($Excerpt)
|
1105 |
-
{
|
1106 |
-
if ( ! isset($Excerpt['text'][1]))
|
1107 |
-
{
|
1108 |
-
return;
|
1109 |
-
}
|
1110 |
-
|
1111 |
-
$marker = $Excerpt['text'][0];
|
1112 |
-
|
1113 |
-
if ($Excerpt['text'][1] === $marker and preg_match($this->StrongRegex[$marker], $Excerpt['text'], $matches))
|
1114 |
-
{
|
1115 |
-
$emphasis = 'strong';
|
1116 |
-
}
|
1117 |
-
elseif (preg_match($this->EmRegex[$marker], $Excerpt['text'], $matches))
|
1118 |
-
{
|
1119 |
-
$emphasis = 'em';
|
1120 |
-
}
|
1121 |
-
else
|
1122 |
-
{
|
1123 |
-
return;
|
1124 |
-
}
|
1125 |
-
|
1126 |
-
return array(
|
1127 |
-
'extent' => strlen($matches[0]),
|
1128 |
-
'element' => array(
|
1129 |
-
'name' => $emphasis,
|
1130 |
-
'handler' => 'line',
|
1131 |
-
'text' => $matches[1],
|
1132 |
-
),
|
1133 |
-
);
|
1134 |
-
}
|
1135 |
-
|
1136 |
-
protected function inlineEscapeSequence($Excerpt)
|
1137 |
-
{
|
1138 |
-
if (isset($Excerpt['text'][1]) and in_array($Excerpt['text'][1], $this->specialCharacters))
|
1139 |
-
{
|
1140 |
-
return array(
|
1141 |
-
'markup' => $Excerpt['text'][1],
|
1142 |
-
'extent' => 2,
|
1143 |
-
);
|
1144 |
-
}
|
1145 |
-
}
|
1146 |
-
|
1147 |
-
protected function inlineImage($Excerpt)
|
1148 |
-
{
|
1149 |
-
if ( ! isset($Excerpt['text'][1]) or $Excerpt['text'][1] !== '[')
|
1150 |
-
{
|
1151 |
-
return;
|
1152 |
-
}
|
1153 |
-
|
1154 |
-
$Excerpt['text']= substr($Excerpt['text'], 1);
|
1155 |
-
|
1156 |
-
$Link = $this->inlineLink($Excerpt);
|
1157 |
-
|
1158 |
-
if ($Link === null)
|
1159 |
-
{
|
1160 |
-
return;
|
1161 |
-
}
|
1162 |
-
|
1163 |
-
$Inline = array(
|
1164 |
-
'extent' => $Link['extent'] + 1,
|
1165 |
-
'element' => array(
|
1166 |
-
'name' => 'img',
|
1167 |
-
'attributes' => array(
|
1168 |
-
'src' => $Link['element']['attributes']['href'],
|
1169 |
-
'alt' => $Link['element']['text'],
|
1170 |
-
),
|
1171 |
-
),
|
1172 |
-
);
|
1173 |
-
|
1174 |
-
$Inline['element']['attributes'] += $Link['element']['attributes'];
|
1175 |
-
|
1176 |
-
unset($Inline['element']['attributes']['href']);
|
1177 |
-
|
1178 |
-
return $Inline;
|
1179 |
-
}
|
1180 |
-
|
1181 |
-
protected function inlineLink($Excerpt)
|
1182 |
-
{
|
1183 |
-
$Element = array(
|
1184 |
-
'name' => 'a',
|
1185 |
-
'handler' => 'line',
|
1186 |
-
'text' => null,
|
1187 |
-
'attributes' => array(
|
1188 |
-
'href' => null,
|
1189 |
-
'title' => null,
|
1190 |
-
),
|
1191 |
-
);
|
1192 |
-
|
1193 |
-
$extent = 0;
|
1194 |
-
|
1195 |
-
$remainder = $Excerpt['text'];
|
1196 |
-
|
1197 |
-
if (preg_match('/\[((?:[^][]|(?R))*)\]/', $remainder, $matches))
|
1198 |
-
{
|
1199 |
-
$Element['text'] = $matches[1];
|
1200 |
-
|
1201 |
-
$extent += strlen($matches[0]);
|
1202 |
-
|
1203 |
-
$remainder = substr($remainder, $extent);
|
1204 |
-
}
|
1205 |
-
else
|
1206 |
-
{
|
1207 |
-
return;
|
1208 |
-
}
|
1209 |
-
|
1210 |
-
if (preg_match('/^[(]((?:[^ ()]|[(][^ )]+[)])+)(?:[ ]+("[^"]*"|\'[^\']*\'))?[)]/', $remainder, $matches))
|
1211 |
-
{
|
1212 |
-
$Element['attributes']['href'] = $matches[1];
|
1213 |
-
|
1214 |
-
if (isset($matches[2]))
|
1215 |
-
{
|
1216 |
-
$Element['attributes']['title'] = substr($matches[2], 1, - 1);
|
1217 |
-
}
|
1218 |
-
|
1219 |
-
$extent += strlen($matches[0]);
|
1220 |
-
}
|
1221 |
-
else
|
1222 |
-
{
|
1223 |
-
if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches))
|
1224 |
-
{
|
1225 |
-
$definition = strlen($matches[1]) ? $matches[1] : $Element['text'];
|
1226 |
-
$definition = strtolower($definition);
|
1227 |
-
|
1228 |
-
$extent += strlen($matches[0]);
|
1229 |
-
}
|
1230 |
-
else
|
1231 |
-
{
|
1232 |
-
$definition = strtolower($Element['text']);
|
1233 |
-
}
|
1234 |
-
|
1235 |
-
if ( ! isset($this->DefinitionData['Reference'][$definition]))
|
1236 |
-
{
|
1237 |
-
return;
|
1238 |
-
}
|
1239 |
-
|
1240 |
-
$Definition = $this->DefinitionData['Reference'][$definition];
|
1241 |
-
|
1242 |
-
$Element['attributes']['href'] = $Definition['url'];
|
1243 |
-
$Element['attributes']['title'] = $Definition['title'];
|
1244 |
-
}
|
1245 |
-
|
1246 |
-
$Element['attributes']['href'] = str_replace(array('&', '<'), array('&', '<'), $Element['attributes']['href']);
|
1247 |
-
|
1248 |
-
return array(
|
1249 |
-
'extent' => $extent,
|
1250 |
-
'element' => $Element,
|
1251 |
-
);
|
1252 |
-
}
|
1253 |
-
|
1254 |
-
protected function inlineMarkup($Excerpt)
|
1255 |
-
{
|
1256 |
-
if ($this->markupEscaped or strpos($Excerpt['text'], '>') === false)
|
1257 |
-
{
|
1258 |
-
return;
|
1259 |
-
}
|
1260 |
-
|
1261 |
-
if ($Excerpt['text'][1] === '/' and preg_match('/^<\/\w*[ ]*>/s', $Excerpt['text'], $matches))
|
1262 |
-
{
|
1263 |
-
return array(
|
1264 |
-
'markup' => $matches[0],
|
1265 |
-
'extent' => strlen($matches[0]),
|
1266 |
-
);
|
1267 |
-
}
|
1268 |
-
|
1269 |
-
if ($Excerpt['text'][1] === '!' and preg_match('/^<!---?[^>-](?:-?[^-])*-->/s', $Excerpt['text'], $matches))
|
1270 |
-
{
|
1271 |
-
return array(
|
1272 |
-
'markup' => $matches[0],
|
1273 |
-
'extent' => strlen($matches[0]),
|
1274 |
-
);
|
1275 |
-
}
|
1276 |
-
|
1277 |
-
if ($Excerpt['text'][1] !== ' ' and preg_match('/^<\w*(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*\/?>/s', $Excerpt['text'], $matches))
|
1278 |
-
{
|
1279 |
-
return array(
|
1280 |
-
'markup' => $matches[0],
|
1281 |
-
'extent' => strlen($matches[0]),
|
1282 |
-
);
|
1283 |
-
}
|
1284 |
-
}
|
1285 |
-
|
1286 |
-
protected function inlineSpecialCharacter($Excerpt)
|
1287 |
-
{
|
1288 |
-
if ($Excerpt['text'][0] === '&' and ! preg_match('/^&#?\w+;/', $Excerpt['text']))
|
1289 |
-
{
|
1290 |
-
return array(
|
1291 |
-
'markup' => '&',
|
1292 |
-
'extent' => 1,
|
1293 |
-
);
|
1294 |
-
}
|
1295 |
-
|
1296 |
-
$SpecialCharacter = array('>' => 'gt', '<' => 'lt', '"' => 'quot');
|
1297 |
-
|
1298 |
-
if (isset($SpecialCharacter[$Excerpt['text'][0]]))
|
1299 |
-
{
|
1300 |
-
return array(
|
1301 |
-
'markup' => '&'.$SpecialCharacter[$Excerpt['text'][0]].';',
|
1302 |
-
'extent' => 1,
|
1303 |
-
);
|
1304 |
-
}
|
1305 |
-
}
|
1306 |
-
|
1307 |
-
protected function inlineStrikethrough($Excerpt)
|
1308 |
-
{
|
1309 |
-
if ( ! isset($Excerpt['text'][1]))
|
1310 |
-
{
|
1311 |
-
return;
|
1312 |
-
}
|
1313 |
-
|
1314 |
-
if ($Excerpt['text'][1] === '~' and preg_match('/^~~(?=\S)(.+?)(?<=\S)~~/', $Excerpt['text'], $matches))
|
1315 |
-
{
|
1316 |
-
return array(
|
1317 |
-
'extent' => strlen($matches[0]),
|
1318 |
-
'element' => array(
|
1319 |
-
'name' => 'del',
|
1320 |
-
'text' => $matches[1],
|
1321 |
-
'handler' => 'line',
|
1322 |
-
),
|
1323 |
-
);
|
1324 |
-
}
|
1325 |
-
}
|
1326 |
-
|
1327 |
-
protected function inlineUrl($Excerpt)
|
1328 |
-
{
|
1329 |
-
if ($this->urlsLinked !== true or ! isset($Excerpt['text'][2]) or $Excerpt['text'][2] !== '/')
|
1330 |
-
{
|
1331 |
-
return;
|
1332 |
-
}
|
1333 |
-
|
1334 |
-
if (preg_match('/\bhttps?:[\/]{2}[^\s<]+\b\/*/ui', $Excerpt['context'], $matches, PREG_OFFSET_CAPTURE))
|
1335 |
-
{
|
1336 |
-
$Inline = array(
|
1337 |
-
'extent' => strlen($matches[0][0]),
|
1338 |
-
'position' => $matches[0][1],
|
1339 |
-
'element' => array(
|
1340 |
-
'name' => 'a',
|
1341 |
-
'text' => $matches[0][0],
|
1342 |
-
'attributes' => array(
|
1343 |
-
'href' => $matches[0][0],
|
1344 |
-
),
|
1345 |
-
),
|
1346 |
-
);
|
1347 |
-
|
1348 |
-
return $Inline;
|
1349 |
-
}
|
1350 |
-
}
|
1351 |
-
|
1352 |
-
protected function inlineUrlTag($Excerpt)
|
1353 |
-
{
|
1354 |
-
if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<(\w+:\/{2}[^ >]+)>/i', $Excerpt['text'], $matches))
|
1355 |
-
{
|
1356 |
-
$url = str_replace(array('&', '<'), array('&', '<'), $matches[1]);
|
1357 |
-
|
1358 |
-
return array(
|
1359 |
-
'extent' => strlen($matches[0]),
|
1360 |
-
'element' => array(
|
1361 |
-
'name' => 'a',
|
1362 |
-
'text' => $url,
|
1363 |
-
'attributes' => array(
|
1364 |
-
'href' => $url,
|
1365 |
-
),
|
1366 |
-
),
|
1367 |
-
);
|
1368 |
-
}
|
1369 |
-
}
|
1370 |
-
|
1371 |
-
# ~
|
1372 |
-
|
1373 |
-
protected function unmarkedText($text)
|
1374 |
-
{
|
1375 |
-
if ($this->breaksEnabled)
|
1376 |
-
{
|
1377 |
-
$text = preg_replace('/[ ]*\n/', "<br />\n", $text);
|
1378 |
-
}
|
1379 |
-
else
|
1380 |
-
{
|
1381 |
-
$text = preg_replace('/(?:[ ][ ]+|[ ]*\\\\)\n/', "<br />\n", $text);
|
1382 |
-
$text = str_replace(" \n", "\n", $text);
|
1383 |
-
}
|
1384 |
-
|
1385 |
-
return $text;
|
1386 |
-
}
|
1387 |
-
|
1388 |
-
#
|
1389 |
-
# Handlers
|
1390 |
-
#
|
1391 |
-
|
1392 |
-
protected function element(array $Element)
|
1393 |
-
{
|
1394 |
-
$markup = '<'.$Element['name'];
|
1395 |
-
|
1396 |
-
if (isset($Element['attributes']))
|
1397 |
-
{
|
1398 |
-
foreach ($Element['attributes'] as $name => $value)
|
1399 |
-
{
|
1400 |
-
if ($value === null)
|
1401 |
-
{
|
1402 |
-
continue;
|
1403 |
-
}
|
1404 |
-
|
1405 |
-
$markup .= ' '.$name.'="'.$value.'"';
|
1406 |
-
}
|
1407 |
-
}
|
1408 |
-
|
1409 |
-
if (isset($Element['text']))
|
1410 |
-
{
|
1411 |
-
$markup .= '>';
|
1412 |
-
|
1413 |
-
if (isset($Element['handler']))
|
1414 |
-
{
|
1415 |
-
$markup .= $this->{$Element['handler']}($Element['text']);
|
1416 |
-
}
|
1417 |
-
else
|
1418 |
-
{
|
1419 |
-
$markup .= $Element['text'];
|
1420 |
-
}
|
1421 |
-
|
1422 |
-
$markup .= '</'.$Element['name'].'>';
|
1423 |
-
}
|
1424 |
-
else
|
1425 |
-
{
|
1426 |
-
$markup .= ' />';
|
1427 |
-
}
|
1428 |
-
|
1429 |
-
return $markup;
|
1430 |
-
}
|
1431 |
-
|
1432 |
-
protected function elements(array $Elements)
|
1433 |
-
{
|
1434 |
-
$markup = '';
|
1435 |
-
|
1436 |
-
foreach ($Elements as $Element)
|
1437 |
-
{
|
1438 |
-
$markup .= "\n" . $this->element($Element);
|
1439 |
-
}
|
1440 |
-
|
1441 |
-
$markup .= "\n";
|
1442 |
-
|
1443 |
-
return $markup;
|
1444 |
-
}
|
1445 |
-
|
1446 |
-
# ~
|
1447 |
-
|
1448 |
-
protected function li($lines)
|
1449 |
-
{
|
1450 |
-
$markup = $this->lines($lines);
|
1451 |
-
|
1452 |
-
$trimmedMarkup = trim($markup);
|
1453 |
-
|
1454 |
-
if ( ! in_array('', $lines) and substr($trimmedMarkup, 0, 3) === '<p>')
|
1455 |
-
{
|
1456 |
-
$markup = $trimmedMarkup;
|
1457 |
-
$markup = substr($markup, 3);
|
1458 |
-
|
1459 |
-
$position = strpos($markup, "</p>");
|
1460 |
-
|
1461 |
-
$markup = substr_replace($markup, '', $position, 4);
|
1462 |
-
}
|
1463 |
-
|
1464 |
-
return $markup;
|
1465 |
-
}
|
1466 |
-
|
1467 |
-
#
|
1468 |
-
# Deprecated Methods
|
1469 |
-
#
|
1470 |
-
|
1471 |
-
function parse($text)
|
1472 |
-
{
|
1473 |
-
$markup = $this->text($text);
|
1474 |
-
|
1475 |
-
return $markup;
|
1476 |
-
}
|
1477 |
-
|
1478 |
-
#
|
1479 |
-
# Static Methods
|
1480 |
-
#
|
1481 |
-
|
1482 |
-
static function instance($name = 'default')
|
1483 |
-
{
|
1484 |
-
if (isset(self::$instances[$name]))
|
1485 |
-
{
|
1486 |
-
return self::$instances[$name];
|
1487 |
-
}
|
1488 |
-
|
1489 |
-
$instance = new static();
|
1490 |
-
|
1491 |
-
self::$instances[$name] = $instance;
|
1492 |
-
|
1493 |
-
return $instance;
|
1494 |
-
}
|
1495 |
-
|
1496 |
-
private static $instances = array();
|
1497 |
-
|
1498 |
-
#
|
1499 |
-
# Fields
|
1500 |
-
#
|
1501 |
-
|
1502 |
-
protected $DefinitionData;
|
1503 |
-
|
1504 |
-
#
|
1505 |
-
# Read-Only
|
1506 |
-
|
1507 |
-
protected $specialCharacters = array(
|
1508 |
-
'\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!', '|',
|
1509 |
-
);
|
1510 |
-
|
1511 |
-
protected $StrongRegex = array(
|
1512 |
-
'*' => '/^[*]{2}((?:\\\\\*|[^*]|[*][^*]*[*])+?)[*]{2}(?![*])/s',
|
1513 |
-
'_' => '/^__((?:\\\\_|[^_]|_[^_]*_)+?)__(?!_)/us',
|
1514 |
-
);
|
1515 |
-
|
1516 |
-
protected $EmRegex = array(
|
1517 |
-
'*' => '/^[*]((?:\\\\\*|[^*]|[*][*][^*]+?[*][*])+?)[*](?![*])/s',
|
1518 |
-
'_' => '/^_((?:\\\\_|[^_]|__[^_]*__)+?)_(?!_)\b/us',
|
1519 |
-
);
|
1520 |
-
|
1521 |
-
protected $regexHtmlAttribute = '[a-zA-Z_:][\w:.-]*(?:\s*=\s*(?:[^"\'=<>`\s]+|"[^"]*"|\'[^\']*\'))?';
|
1522 |
-
|
1523 |
-
protected $voidElements = array(
|
1524 |
-
'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source',
|
1525 |
-
);
|
1526 |
-
|
1527 |
-
protected $textLevelElements = array(
|
1528 |
-
'a', 'br', 'bdo', 'abbr', 'blink', 'nextid', 'acronym', 'basefont',
|
1529 |
-
'b', 'em', 'big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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/vendor/ParsedownLegacy.php
DELETED
@@ -1,1535 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
#
|
4 |
-
#
|
5 |
-
# Parsedown
|
6 |
-
# http://parsedown.org
|
7 |
-
#
|
8 |
-
# (c) Emanuil Rusev
|
9 |
-
# http://erusev.com
|
10 |
-
#
|
11 |
-
# For the full license information, view the LICENSE file that was distributed
|
12 |
-
# with this source code.
|
13 |
-
#
|
14 |
-
#
|
15 |
-
|
16 |
-
class Parsedown
|
17 |
-
{
|
18 |
-
# ~
|
19 |
-
|
20 |
-
const version = '1.5.0';
|
21 |
-
|
22 |
-
# ~
|
23 |
-
|
24 |
-
function text($text)
|
25 |
-
{
|
26 |
-
# make sure no definitions are set
|
27 |
-
$this->DefinitionData = array();
|
28 |
-
|
29 |
-
# standardize line breaks
|
30 |
-
$text = str_replace(array("\r\n", "\r"), "\n", $text);
|
31 |
-
|
32 |
-
# remove surrounding line breaks
|
33 |
-
$text = trim($text, "\n");
|
34 |
-
|
35 |
-
# split text into lines
|
36 |
-
$lines = explode("\n", $text);
|
37 |
-
|
38 |
-
# iterate through lines to identify blocks
|
39 |
-
$markup = $this->lines($lines);
|
40 |
-
|
41 |
-
# trim line breaks
|
42 |
-
$markup = trim($markup, "\n");
|
43 |
-
|
44 |
-
return $markup;
|
45 |
-
}
|
46 |
-
|
47 |
-
#
|
48 |
-
# Setters
|
49 |
-
#
|
50 |
-
|
51 |
-
function setBreaksEnabled($breaksEnabled)
|
52 |
-
{
|
53 |
-
$this->breaksEnabled = $breaksEnabled;
|
54 |
-
|
55 |
-
return $this;
|
56 |
-
}
|
57 |
-
|
58 |
-
protected $breaksEnabled;
|
59 |
-
|
60 |
-
function setMarkupEscaped($markupEscaped)
|
61 |
-
{
|
62 |
-
$this->markupEscaped = $markupEscaped;
|
63 |
-
|
64 |
-
return $this;
|
65 |
-
}
|
66 |
-
|
67 |
-
protected $markupEscaped;
|
68 |
-
|
69 |
-
function setUrlsLinked($urlsLinked)
|
70 |
-
{
|
71 |
-
$this->urlsLinked = $urlsLinked;
|
72 |
-
|
73 |
-
return $this;
|
74 |
-
}
|
75 |
-
|
76 |
-
protected $urlsLinked = true;
|
77 |
-
|
78 |
-
#
|
79 |
-
# Lines
|
80 |
-
#
|
81 |
-
|
82 |
-
protected $BlockTypes = array(
|
83 |
-
'#' => array('Header'),
|
84 |
-
'*' => array('Rule', 'List'),
|
85 |
-
'+' => array('List'),
|
86 |
-
'-' => array('SetextHeader', 'Table', 'Rule', 'List'),
|
87 |
-
'0' => array('List'),
|
88 |
-
'1' => array('List'),
|
89 |
-
'2' => array('List'),
|
90 |
-
'3' => array('List'),
|
91 |
-
'4' => array('List'),
|
92 |
-
'5' => array('List'),
|
93 |
-
'6' => array('List'),
|
94 |
-
'7' => array('List'),
|
95 |
-
'8' => array('List'),
|
96 |
-
'9' => array('List'),
|
97 |
-
':' => array('Table'),
|
98 |
-
'<' => array('Comment', 'Markup'),
|
99 |
-
'=' => array('SetextHeader'),
|
100 |
-
'>' => array('Quote'),
|
101 |
-
'[' => array('Reference'),
|
102 |
-
'_' => array('Rule'),
|
103 |
-
'`' => array('FencedCode'),
|
104 |
-
'|' => array('Table'),
|
105 |
-
'~' => array('FencedCode'),
|
106 |
-
);
|
107 |
-
|
108 |
-
# ~
|
109 |
-
|
110 |
-
protected $DefinitionTypes = array(
|
111 |
-
'[' => array('Reference'),
|
112 |
-
);
|
113 |
-
|
114 |
-
# ~
|
115 |
-
|
116 |
-
protected $unmarkedBlockTypes = array(
|
117 |
-
'Code',
|
118 |
-
);
|
119 |
-
|
120 |
-
#
|
121 |
-
# Blocks
|
122 |
-
#
|
123 |
-
|
124 |
-
private function lines(array $lines)
|
125 |
-
{
|
126 |
-
$CurrentBlock = null;
|
127 |
-
|
128 |
-
foreach ($lines as $line)
|
129 |
-
{
|
130 |
-
if (chop($line) === '')
|
131 |
-
{
|
132 |
-
if (isset($CurrentBlock))
|
133 |
-
{
|
134 |
-
$CurrentBlock['interrupted'] = true;
|
135 |
-
}
|
136 |
-
|
137 |
-
continue;
|
138 |
-
}
|
139 |
-
|
140 |
-
if (strpos($line, "\t") !== false)
|
141 |
-
{
|
142 |
-
$parts = explode("\t", $line);
|
143 |
-
|
144 |
-
$line = $parts[0];
|
145 |
-
|
146 |
-
unset($parts[0]);
|
147 |
-
|
148 |
-
foreach ($parts as $part)
|
149 |
-
{
|
150 |
-
$shortage = 4 - mb_strlen($line, 'utf-8') % 4;
|
151 |
-
|
152 |
-
$line .= str_repeat(' ', $shortage);
|
153 |
-
$line .= $part;
|
154 |
-
}
|
155 |
-
}
|
156 |
-
|
157 |
-
$indent = 0;
|
158 |
-
|
159 |
-
while (isset($line[$indent]) and $line[$indent] === ' ')
|
160 |
-
{
|
161 |
-
$indent ++;
|
162 |
-
}
|
163 |
-
|
164 |
-
$text = $indent > 0 ? substr($line, $indent) : $line;
|
165 |
-
|
166 |
-
# ~
|
167 |
-
|
168 |
-
$Line = array('body' => $line, 'indent' => $indent, 'text' => $text);
|
169 |
-
|
170 |
-
# ~
|
171 |
-
|
172 |
-
if (isset($CurrentBlock['incomplete']))
|
173 |
-
{
|
174 |
-
$Block = $this->{'block'.$CurrentBlock['type'].'Continue'}($Line, $CurrentBlock);
|
175 |
-
|
176 |
-
if (isset($Block))
|
177 |
-
{
|
178 |
-
$CurrentBlock = $Block;
|
179 |
-
|
180 |
-
continue;
|
181 |
-
}
|
182 |
-
else
|
183 |
-
{
|
184 |
-
if (method_exists($this, 'block'.$CurrentBlock['type'].'Complete'))
|
185 |
-
{
|
186 |
-
$CurrentBlock = $this->{'block'.$CurrentBlock['type'].'Complete'}($CurrentBlock);
|
187 |
-
}
|
188 |
-
|
189 |
-
unset($CurrentBlock['incomplete']);
|
190 |
-
}
|
191 |
-
}
|
192 |
-
|
193 |
-
# ~
|
194 |
-
|
195 |
-
$marker = $text[0];
|
196 |
-
|
197 |
-
# ~
|
198 |
-
|
199 |
-
$blockTypes = $this->unmarkedBlockTypes;
|
200 |
-
|
201 |
-
if (isset($this->BlockTypes[$marker]))
|
202 |
-
{
|
203 |
-
foreach ($this->BlockTypes[$marker] as $blockType)
|
204 |
-
{
|
205 |
-
$blockTypes []= $blockType;
|
206 |
-
}
|
207 |
-
}
|
208 |
-
|
209 |
-
#
|
210 |
-
# ~
|
211 |
-
|
212 |
-
foreach ($blockTypes as $blockType)
|
213 |
-
{
|
214 |
-
$Block = $this->{'block'.$blockType}($Line, $CurrentBlock);
|
215 |
-
|
216 |
-
if (isset($Block))
|
217 |
-
{
|
218 |
-
$Block['type'] = $blockType;
|
219 |
-
|
220 |
-
if ( ! isset($Block['identified']))
|
221 |
-
{
|
222 |
-
$Blocks []= $CurrentBlock;
|
223 |
-
|
224 |
-
$Block['identified'] = true;
|
225 |
-
}
|
226 |
-
|
227 |
-
if (method_exists($this, 'block'.$blockType.'Continue'))
|
228 |
-
{
|
229 |
-
$Block['incomplete'] = true;
|
230 |
-
}
|
231 |
-
|
232 |
-
$CurrentBlock = $Block;
|
233 |
-
|
234 |
-
continue 2;
|
235 |
-
}
|
236 |
-
}
|
237 |
-
|
238 |
-
# ~
|
239 |
-
|
240 |
-
if (isset($CurrentBlock) and ! isset($CurrentBlock['type']) and ! isset($CurrentBlock['interrupted']))
|
241 |
-
{
|
242 |
-
$CurrentBlock['element']['text'] .= "\n".$text;
|
243 |
-
}
|
244 |
-
else
|
245 |
-
{
|
246 |
-
$Blocks []= $CurrentBlock;
|
247 |
-
|
248 |
-
$CurrentBlock = $this->paragraph($Line);
|
249 |
-
|
250 |
-
$CurrentBlock['identified'] = true;
|
251 |
-
}
|
252 |
-
}
|
253 |
-
|
254 |
-
# ~
|
255 |
-
|
256 |
-
if (isset($CurrentBlock['incomplete']) and method_exists($this, 'block'.$CurrentBlock['type'].'Complete'))
|
257 |
-
{
|
258 |
-
$CurrentBlock = $this->{'block'.$CurrentBlock['type'].'Complete'}($CurrentBlock);
|
259 |
-
}
|
260 |
-
|
261 |
-
# ~
|
262 |
-
|
263 |
-
$Blocks []= $CurrentBlock;
|
264 |
-
|
265 |
-
unset($Blocks[0]);
|
266 |
-
|
267 |
-
# ~
|
268 |
-
|
269 |
-
$markup = '';
|
270 |
-
|
271 |
-
foreach ($Blocks as $Block)
|
272 |
-
{
|
273 |
-
if (isset($Block['hidden']))
|
274 |
-
{
|
275 |
-
continue;
|
276 |
-
}
|
277 |
-
|
278 |
-
$markup .= "\n";
|
279 |
-
$markup .= isset($Block['markup']) ? $Block['markup'] : $this->element($Block['element']);
|
280 |
-
}
|
281 |
-
|
282 |
-
$markup .= "\n";
|
283 |
-
|
284 |
-
# ~
|
285 |
-
|
286 |
-
return $markup;
|
287 |
-
}
|
288 |
-
|
289 |
-
#
|
290 |
-
# Code
|
291 |
-
|
292 |
-
protected function blockCode($Line, $Block = null)
|
293 |
-
{
|
294 |
-
if (isset($Block) and ! isset($Block['type']) and ! isset($Block['interrupted']))
|
295 |
-
{
|
296 |
-
return;
|
297 |
-
}
|
298 |
-
|
299 |
-
if ($Line['indent'] >= 4)
|
300 |
-
{
|
301 |
-
$text = substr($Line['body'], 4);
|
302 |
-
|
303 |
-
$Block = array(
|
304 |
-
'element' => array(
|
305 |
-
'name' => 'pre',
|
306 |
-
'handler' => 'element',
|
307 |
-
'text' => array(
|
308 |
-
'name' => 'code',
|
309 |
-
'text' => $text,
|
310 |
-
),
|
311 |
-
),
|
312 |
-
);
|
313 |
-
|
314 |
-
return $Block;
|
315 |
-
}
|
316 |
-
}
|
317 |
-
|
318 |
-
protected function blockCodeContinue($Line, $Block)
|
319 |
-
{
|
320 |
-
if ($Line['indent'] >= 4)
|
321 |
-
{
|
322 |
-
if (isset($Block['interrupted']))
|
323 |
-
{
|
324 |
-
$Block['element']['text']['text'] .= "\n";
|
325 |
-
|
326 |
-
unset($Block['interrupted']);
|
327 |
-
}
|
328 |
-
|
329 |
-
$Block['element']['text']['text'] .= "\n";
|
330 |
-
|
331 |
-
$text = substr($Line['body'], 4);
|
332 |
-
|
333 |
-
$Block['element']['text']['text'] .= $text;
|
334 |
-
|
335 |
-
return $Block;
|
336 |
-
}
|
337 |
-
}
|
338 |
-
|
339 |
-
protected function blockCodeComplete($Block)
|
340 |
-
{
|
341 |
-
$text = $Block['element']['text']['text'];
|
342 |
-
|
343 |
-
$text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
|
344 |
-
|
345 |
-
$Block['element']['text']['text'] = $text;
|
346 |
-
|
347 |
-
return $Block;
|
348 |
-
}
|
349 |
-
|
350 |
-
#
|
351 |
-
# Comment
|
352 |
-
|
353 |
-
protected function blockComment($Line)
|
354 |
-
{
|
355 |
-
if ($this->markupEscaped)
|
356 |
-
{
|
357 |
-
return;
|
358 |
-
}
|
359 |
-
|
360 |
-
if (isset($Line['text'][3]) and $Line['text'][3] === '-' and $Line['text'][2] === '-' and $Line['text'][1] === '!')
|
361 |
-
{
|
362 |
-
$Block = array(
|
363 |
-
'markup' => $Line['body'],
|
364 |
-
);
|
365 |
-
|
366 |
-
if (preg_match('/-->$/', $Line['text']))
|
367 |
-
{
|
368 |
-
$Block['closed'] = true;
|
369 |
-
}
|
370 |
-
|
371 |
-
return $Block;
|
372 |
-
}
|
373 |
-
}
|
374 |
-
|
375 |
-
protected function blockCommentContinue($Line, array $Block)
|
376 |
-
{
|
377 |
-
if (isset($Block['closed']))
|
378 |
-
{
|
379 |
-
return;
|
380 |
-
}
|
381 |
-
|
382 |
-
$Block['markup'] .= "\n" . $Line['body'];
|
383 |
-
|
384 |
-
if (preg_match('/-->$/', $Line['text']))
|
385 |
-
{
|
386 |
-
$Block['closed'] = true;
|
387 |
-
}
|
388 |
-
|
389 |
-
return $Block;
|
390 |
-
}
|
391 |
-
|
392 |
-
#
|
393 |
-
# Fenced Code
|
394 |
-
|
395 |
-
protected function blockFencedCode($Line)
|
396 |
-
{
|
397 |
-
if (preg_match('/^(['.$Line['text'][0].']{3,})[ ]*([\w-]+)?[ ]*$/', $Line['text'], $matches))
|
398 |
-
{
|
399 |
-
$Element = array(
|
400 |
-
'name' => 'code',
|
401 |
-
'text' => '',
|
402 |
-
);
|
403 |
-
|
404 |
-
if (isset($matches[2]))
|
405 |
-
{
|
406 |
-
$class = 'language-'.$matches[2];
|
407 |
-
|
408 |
-
$Element['attributes'] = array(
|
409 |
-
'class' => $class,
|
410 |
-
);
|
411 |
-
}
|
412 |
-
|
413 |
-
$Block = array(
|
414 |
-
'char' => $Line['text'][0],
|
415 |
-
'element' => array(
|
416 |
-
'name' => 'pre',
|
417 |
-
'handler' => 'element',
|
418 |
-
'text' => $Element,
|
419 |
-
),
|
420 |
-
);
|
421 |
-
|
422 |
-
return $Block;
|
423 |
-
}
|
424 |
-
}
|
425 |
-
|
426 |
-
protected function blockFencedCodeContinue($Line, $Block)
|
427 |
-
{
|
428 |
-
if (isset($Block['complete']))
|
429 |
-
{
|
430 |
-
return;
|
431 |
-
}
|
432 |
-
|
433 |
-
if (isset($Block['interrupted']))
|
434 |
-
{
|
435 |
-
$Block['element']['text']['text'] .= "\n";
|
436 |
-
|
437 |
-
unset($Block['interrupted']);
|
438 |
-
}
|
439 |
-
|
440 |
-
if (preg_match('/^'.$Block['char'].'{3,}[ ]*$/', $Line['text']))
|
441 |
-
{
|
442 |
-
$Block['element']['text']['text'] = substr($Block['element']['text']['text'], 1);
|
443 |
-
|
444 |
-
$Block['complete'] = true;
|
445 |
-
|
446 |
-
return $Block;
|
447 |
-
}
|
448 |
-
|
449 |
-
$Block['element']['text']['text'] .= "\n".$Line['body'];;
|
450 |
-
|
451 |
-
return $Block;
|
452 |
-
}
|
453 |
-
|
454 |
-
protected function blockFencedCodeComplete($Block)
|
455 |
-
{
|
456 |
-
$text = $Block['element']['text']['text'];
|
457 |
-
|
458 |
-
$text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
|
459 |
-
|
460 |
-
$Block['element']['text']['text'] = $text;
|
461 |
-
|
462 |
-
return $Block;
|
463 |
-
}
|
464 |
-
|
465 |
-
#
|
466 |
-
# Header
|
467 |
-
|
468 |
-
protected function blockHeader($Line)
|
469 |
-
{
|
470 |
-
if (isset($Line['text'][1]))
|
471 |
-
{
|
472 |
-
$level = 1;
|
473 |
-
|
474 |
-
while (isset($Line['text'][$level]) and $Line['text'][$level] === '#')
|
475 |
-
{
|
476 |
-
$level ++;
|
477 |
-
}
|
478 |
-
|
479 |
-
if ($level > 6)
|
480 |
-
{
|
481 |
-
return;
|
482 |
-
}
|
483 |
-
|
484 |
-
$text = trim($Line['text'], '# ');
|
485 |
-
|
486 |
-
$Block = array(
|
487 |
-
'element' => array(
|
488 |
-
'name' => 'h' . min(6, $level),
|
489 |
-
'text' => $text,
|
490 |
-
'handler' => 'line',
|
491 |
-
),
|
492 |
-
);
|
493 |
-
|
494 |
-
return $Block;
|
495 |
-
}
|
496 |
-
}
|
497 |
-
|
498 |
-
#
|
499 |
-
# List
|
500 |
-
|
501 |
-
protected function blockList($Line)
|
502 |
-
{
|
503 |
-
list($name, $pattern) = $Line['text'][0] <= '-' ? array('ul', '[*+-]') : array('ol', '[0-9]+[.]');
|
504 |
-
|
505 |
-
if (preg_match('/^('.$pattern.'[ ]+)(.*)/', $Line['text'], $matches))
|
506 |
-
{
|
507 |
-
$Block = array(
|
508 |
-
'indent' => $Line['indent'],
|
509 |
-
'pattern' => $pattern,
|
510 |
-
'element' => array(
|
511 |
-
'name' => $name,
|
512 |
-
'handler' => 'elements',
|
513 |
-
),
|
514 |
-
);
|
515 |
-
|
516 |
-
$Block['li'] = array(
|
517 |
-
'name' => 'li',
|
518 |
-
'handler' => 'li',
|
519 |
-
'text' => array(
|
520 |
-
$matches[2],
|
521 |
-
),
|
522 |
-
);
|
523 |
-
|
524 |
-
$Block['element']['text'] []= & $Block['li'];
|
525 |
-
|
526 |
-
return $Block;
|
527 |
-
}
|
528 |
-
}
|
529 |
-
|
530 |
-
protected function blockListContinue($Line, array $Block)
|
531 |
-
{
|
532 |
-
if ($Block['indent'] === $Line['indent'] and preg_match('/^'.$Block['pattern'].'(?:[ ]+(.*)|$)/', $Line['text'], $matches))
|
533 |
-
{
|
534 |
-
if (isset($Block['interrupted']))
|
535 |
-
{
|
536 |
-
$Block['li']['text'] []= '';
|
537 |
-
|
538 |
-
unset($Block['interrupted']);
|
539 |
-
}
|
540 |
-
|
541 |
-
unset($Block['li']);
|
542 |
-
|
543 |
-
$text = isset($matches[1]) ? $matches[1] : '';
|
544 |
-
|
545 |
-
$Block['li'] = array(
|
546 |
-
'name' => 'li',
|
547 |
-
'handler' => 'li',
|
548 |
-
'text' => array(
|
549 |
-
$text,
|
550 |
-
),
|
551 |
-
);
|
552 |
-
|
553 |
-
$Block['element']['text'] []= & $Block['li'];
|
554 |
-
|
555 |
-
return $Block;
|
556 |
-
}
|
557 |
-
|
558 |
-
if ($Line['text'][0] === '[' and $this->blockReference($Line))
|
559 |
-
{
|
560 |
-
return $Block;
|
561 |
-
}
|
562 |
-
|
563 |
-
if ( ! isset($Block['interrupted']))
|
564 |
-
{
|
565 |
-
$text = preg_replace('/^[ ]{0,4}/', '', $Line['body']);
|
566 |
-
|
567 |
-
$Block['li']['text'] []= $text;
|
568 |
-
|
569 |
-
return $Block;
|
570 |
-
}
|
571 |
-
|
572 |
-
if ($Line['indent'] > 0)
|
573 |
-
{
|
574 |
-
$Block['li']['text'] []= '';
|
575 |
-
|
576 |
-
$text = preg_replace('/^[ ]{0,4}/', '', $Line['body']);
|
577 |
-
|
578 |
-
$Block['li']['text'] []= $text;
|
579 |
-
|
580 |
-
unset($Block['interrupted']);
|
581 |
-
|
582 |
-
return $Block;
|
583 |
-
}
|
584 |
-
}
|
585 |
-
|
586 |
-
#
|
587 |
-
# Quote
|
588 |
-
|
589 |
-
protected function blockQuote($Line)
|
590 |
-
{
|
591 |
-
if (preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
|
592 |
-
{
|
593 |
-
$Block = array(
|
594 |
-
'element' => array(
|
595 |
-
'name' => 'blockquote',
|
596 |
-
'handler' => 'lines',
|
597 |
-
'text' => (array) $matches[1],
|
598 |
-
),
|
599 |
-
);
|
600 |
-
|
601 |
-
return $Block;
|
602 |
-
}
|
603 |
-
}
|
604 |
-
|
605 |
-
protected function blockQuoteContinue($Line, array $Block)
|
606 |
-
{
|
607 |
-
if ($Line['text'][0] === '>' and preg_match('/^>[ ]?(.*)/', $Line['text'], $matches))
|
608 |
-
{
|
609 |
-
if (isset($Block['interrupted']))
|
610 |
-
{
|
611 |
-
$Block['element']['text'] []= '';
|
612 |
-
|
613 |
-
unset($Block['interrupted']);
|
614 |
-
}
|
615 |
-
|
616 |
-
$Block['element']['text'] []= $matches[1];
|
617 |
-
|
618 |
-
return $Block;
|
619 |
-
}
|
620 |
-
|
621 |
-
if ( ! isset($Block['interrupted']))
|
622 |
-
{
|
623 |
-
$Block['element']['text'] []= $Line['text'];
|
624 |
-
|
625 |
-
return $Block;
|
626 |
-
}
|
627 |
-
}
|
628 |
-
|
629 |
-
#
|
630 |
-
# Rule
|
631 |
-
|
632 |
-
protected function blockRule($Line)
|
633 |
-
{
|
634 |
-
if (preg_match('/^(['.$Line['text'][0].'])([ ]*\1){2,}[ ]*$/', $Line['text']))
|
635 |
-
{
|
636 |
-
$Block = array(
|
637 |
-
'element' => array(
|
638 |
-
'name' => 'hr'
|
639 |
-
),
|
640 |
-
);
|
641 |
-
|
642 |
-
return $Block;
|
643 |
-
}
|
644 |
-
}
|
645 |
-
|
646 |
-
#
|
647 |
-
# Setext
|
648 |
-
|
649 |
-
protected function blockSetextHeader($Line, array $Block = null)
|
650 |
-
{
|
651 |
-
if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
|
652 |
-
{
|
653 |
-
return;
|
654 |
-
}
|
655 |
-
|
656 |
-
if (chop($Line['text'], $Line['text'][0]) === '')
|
657 |
-
{
|
658 |
-
$Block['element']['name'] = $Line['text'][0] === '=' ? 'h1' : 'h2';
|
659 |
-
|
660 |
-
return $Block;
|
661 |
-
}
|
662 |
-
}
|
663 |
-
|
664 |
-
#
|
665 |
-
# Markup
|
666 |
-
|
667 |
-
protected function blockMarkup($Line)
|
668 |
-
{
|
669 |
-
if ($this->markupEscaped)
|
670 |
-
{
|
671 |
-
return;
|
672 |
-
}
|
673 |
-
|
674 |
-
if (preg_match('/^<(\w*)(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*(\/)?>/', $Line['text'], $matches))
|
675 |
-
{
|
676 |
-
if (in_array($matches[1], $this->textLevelElements))
|
677 |
-
{
|
678 |
-
return;
|
679 |
-
}
|
680 |
-
|
681 |
-
$Block = array(
|
682 |
-
'name' => $matches[1],
|
683 |
-
'depth' => 0,
|
684 |
-
'markup' => $Line['text'],
|
685 |
-
);
|
686 |
-
|
687 |
-
$length = strlen($matches[0]);
|
688 |
-
|
689 |
-
$remainder = substr($Line['text'], $length);
|
690 |
-
|
691 |
-
if (trim($remainder) === '')
|
692 |
-
{
|
693 |
-
if (isset($matches[2]) or in_array($matches[1], $this->voidElements))
|
694 |
-
{
|
695 |
-
$Block['closed'] = true;
|
696 |
-
|
697 |
-
$Block['void'] = true;
|
698 |
-
}
|
699 |
-
}
|
700 |
-
else
|
701 |
-
{
|
702 |
-
if (isset($matches[2]) or in_array($matches[1], $this->voidElements))
|
703 |
-
{
|
704 |
-
return;
|
705 |
-
}
|
706 |
-
|
707 |
-
if (preg_match('/<\/'.$matches[1].'>[ ]*$/i', $remainder))
|
708 |
-
{
|
709 |
-
$Block['closed'] = true;
|
710 |
-
}
|
711 |
-
}
|
712 |
-
|
713 |
-
return $Block;
|
714 |
-
}
|
715 |
-
}
|
716 |
-
|
717 |
-
protected function blockMarkupContinue($Line, array $Block)
|
718 |
-
{
|
719 |
-
if (isset($Block['closed']))
|
720 |
-
{
|
721 |
-
return;
|
722 |
-
}
|
723 |
-
|
724 |
-
if (preg_match('/^<'.$Block['name'].'(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*>/i', $Line['text'])) # open
|
725 |
-
{
|
726 |
-
$Block['depth'] ++;
|
727 |
-
}
|
728 |
-
|
729 |
-
if (preg_match('/(.*?)<\/'.$Block['name'].'>[ ]*$/i', $Line['text'], $matches)) # close
|
730 |
-
{
|
731 |
-
if ($Block['depth'] > 0)
|
732 |
-
{
|
733 |
-
$Block['depth'] --;
|
734 |
-
}
|
735 |
-
else
|
736 |
-
{
|
737 |
-
$Block['closed'] = true;
|
738 |
-
}
|
739 |
-
|
740 |
-
$Block['markup'] .= $matches[1];
|
741 |
-
}
|
742 |
-
|
743 |
-
if (isset($Block['interrupted']))
|
744 |
-
{
|
745 |
-
$Block['markup'] .= "\n";
|
746 |
-
|
747 |
-
unset($Block['interrupted']);
|
748 |
-
}
|
749 |
-
|
750 |
-
$Block['markup'] .= "\n".$Line['body'];
|
751 |
-
|
752 |
-
return $Block;
|
753 |
-
}
|
754 |
-
|
755 |
-
#
|
756 |
-
# Reference
|
757 |
-
|
758 |
-
protected function blockReference($Line)
|
759 |
-
{
|
760 |
-
if (preg_match('/^\[(.+?)\]:[ ]*<?(\S+?)>?(?:[ ]+["\'(](.+)["\')])?[ ]*$/', $Line['text'], $matches))
|
761 |
-
{
|
762 |
-
$id = strtolower($matches[1]);
|
763 |
-
|
764 |
-
$Data = array(
|
765 |
-
'url' => $matches[2],
|
766 |
-
'title' => null,
|
767 |
-
);
|
768 |
-
|
769 |
-
if (isset($matches[3]))
|
770 |
-
{
|
771 |
-
$Data['title'] = $matches[3];
|
772 |
-
}
|
773 |
-
|
774 |
-
$this->DefinitionData['Reference'][$id] = $Data;
|
775 |
-
|
776 |
-
$Block = array(
|
777 |
-
'hidden' => true,
|
778 |
-
);
|
779 |
-
|
780 |
-
return $Block;
|
781 |
-
}
|
782 |
-
}
|
783 |
-
|
784 |
-
#
|
785 |
-
# Table
|
786 |
-
|
787 |
-
protected function blockTable($Line, array $Block = null)
|
788 |
-
{
|
789 |
-
if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted']))
|
790 |
-
{
|
791 |
-
return;
|
792 |
-
}
|
793 |
-
|
794 |
-
if (strpos($Block['element']['text'], '|') !== false and chop($Line['text'], ' -:|') === '')
|
795 |
-
{
|
796 |
-
$alignments = array();
|
797 |
-
|
798 |
-
$divider = $Line['text'];
|
799 |
-
|
800 |
-
$divider = trim($divider);
|
801 |
-
$divider = trim($divider, '|');
|
802 |
-
|
803 |
-
$dividerCells = explode('|', $divider);
|
804 |
-
|
805 |
-
foreach ($dividerCells as $dividerCell)
|
806 |
-
{
|
807 |
-
$dividerCell = trim($dividerCell);
|
808 |
-
|
809 |
-
if ($dividerCell === '')
|
810 |
-
{
|
811 |
-
continue;
|
812 |
-
}
|
813 |
-
|
814 |
-
$alignment = null;
|
815 |
-
|
816 |
-
if ($dividerCell[0] === ':')
|
817 |
-
{
|
818 |
-
$alignment = 'left';
|
819 |
-
}
|
820 |
-
|
821 |
-
if (substr($dividerCell, - 1) === ':')
|
822 |
-
{
|
823 |
-
$alignment = $alignment === 'left' ? 'center' : 'right';
|
824 |
-
}
|
825 |
-
|
826 |
-
$alignments []= $alignment;
|
827 |
-
}
|
828 |
-
|
829 |
-
# ~
|
830 |
-
|
831 |
-
$HeaderElements = array();
|
832 |
-
|
833 |
-
$header = $Block['element']['text'];
|
834 |
-
|
835 |
-
$header = trim($header);
|
836 |
-
$header = trim($header, '|');
|
837 |
-
|
838 |
-
$headerCells = explode('|', $header);
|
839 |
-
|
840 |
-
foreach ($headerCells as $index => $headerCell)
|
841 |
-
{
|
842 |
-
$headerCell = trim($headerCell);
|
843 |
-
|
844 |
-
$HeaderElement = array(
|
845 |
-
'name' => 'th',
|
846 |
-
'text' => $headerCell,
|
847 |
-
'handler' => 'line',
|
848 |
-
);
|
849 |
-
|
850 |
-
if (isset($alignments[$index]))
|
851 |
-
{
|
852 |
-
$alignment = $alignments[$index];
|
853 |
-
|
854 |
-
$HeaderElement['attributes'] = array(
|
855 |
-
'style' => 'text-align: '.$alignment.';',
|
856 |
-
);
|
857 |
-
}
|
858 |
-
|
859 |
-
$HeaderElements []= $HeaderElement;
|
860 |
-
}
|
861 |
-
|
862 |
-
# ~
|
863 |
-
|
864 |
-
$Block = array(
|
865 |
-
'alignments' => $alignments,
|
866 |
-
'identified' => true,
|
867 |
-
'element' => array(
|
868 |
-
'name' => 'table',
|
869 |
-
'handler' => 'elements',
|
870 |
-
),
|
871 |
-
);
|
872 |
-
|
873 |
-
$Block['element']['text'] []= array(
|
874 |
-
'name' => 'thead',
|
875 |
-
'handler' => 'elements',
|
876 |
-
);
|
877 |
-
|
878 |
-
$Block['element']['text'] []= array(
|
879 |
-
'name' => 'tbody',
|
880 |
-
'handler' => 'elements',
|
881 |
-
'text' => array(),
|
882 |
-
);
|
883 |
-
|
884 |
-
$Block['element']['text'][0]['text'] []= array(
|
885 |
-
'name' => 'tr',
|
886 |
-
'handler' => 'elements',
|
887 |
-
'text' => $HeaderElements,
|
888 |
-
);
|
889 |
-
|
890 |
-
return $Block;
|
891 |
-
}
|
892 |
-
}
|
893 |
-
|
894 |
-
protected function blockTableContinue($Line, array $Block)
|
895 |
-
{
|
896 |
-
if (isset($Block['interrupted']))
|
897 |
-
{
|
898 |
-
return;
|
899 |
-
}
|
900 |
-
|
901 |
-
if ($Line['text'][0] === '|' or strpos($Line['text'], '|'))
|
902 |
-
{
|
903 |
-
$Elements = array();
|
904 |
-
|
905 |
-
$row = $Line['text'];
|
906 |
-
|
907 |
-
$row = trim($row);
|
908 |
-
$row = trim($row, '|');
|
909 |
-
|
910 |
-
preg_match_all('/(?:(\\\\[|])|[^|`]|`[^`]+`|`)+/', $row, $matches);
|
911 |
-
|
912 |
-
foreach ($matches[0] as $index => $cell)
|
913 |
-
{
|
914 |
-
$cell = trim($cell);
|
915 |
-
|
916 |
-
$Element = array(
|
917 |
-
'name' => 'td',
|
918 |
-
'handler' => 'line',
|
919 |
-
'text' => $cell,
|
920 |
-
);
|
921 |
-
|
922 |
-
if (isset($Block['alignments'][$index]))
|
923 |
-
{
|
924 |
-
$Element['attributes'] = array(
|
925 |
-
'style' => 'text-align: '.$Block['alignments'][$index].';',
|
926 |
-
);
|
927 |
-
}
|
928 |
-
|
929 |
-
$Elements []= $Element;
|
930 |
-
}
|
931 |
-
|
932 |
-
$Element = array(
|
933 |
-
'name' => 'tr',
|
934 |
-
'handler' => 'elements',
|
935 |
-
'text' => $Elements,
|
936 |
-
);
|
937 |
-
|
938 |
-
$Block['element']['text'][1]['text'] []= $Element;
|
939 |
-
|
940 |
-
return $Block;
|
941 |
-
}
|
942 |
-
}
|
943 |
-
|
944 |
-
#
|
945 |
-
# ~
|
946 |
-
#
|
947 |
-
|
948 |
-
protected function paragraph($Line)
|
949 |
-
{
|
950 |
-
$Block = array(
|
951 |
-
'element' => array(
|
952 |
-
'name' => 'p',
|
953 |
-
'text' => $Line['text'],
|
954 |
-
'handler' => 'line',
|
955 |
-
),
|
956 |
-
);
|
957 |
-
|
958 |
-
return $Block;
|
959 |
-
}
|
960 |
-
|
961 |
-
#
|
962 |
-
# Inline Elements
|
963 |
-
#
|
964 |
-
|
965 |
-
protected $InlineTypes = array(
|
966 |
-
'"' => array('SpecialCharacter'),
|
967 |
-
'!' => array('Image'),
|
968 |
-
'&' => array('SpecialCharacter'),
|
969 |
-
'*' => array('Emphasis'),
|
970 |
-
':' => array('Url'),
|
971 |
-
'<' => array('UrlTag', 'EmailTag', 'Markup', 'SpecialCharacter'),
|
972 |
-
'>' => array('SpecialCharacter'),
|
973 |
-
'[' => array('Link'),
|
974 |
-
'_' => array('Emphasis'),
|
975 |
-
'`' => array('Code'),
|
976 |
-
'~' => array('Strikethrough'),
|
977 |
-
'\\' => array('EscapeSequence'),
|
978 |
-
);
|
979 |
-
|
980 |
-
# ~
|
981 |
-
|
982 |
-
protected $inlineMarkerList = '!"*_&[:<>`~\\';
|
983 |
-
|
984 |
-
#
|
985 |
-
# ~
|
986 |
-
#
|
987 |
-
|
988 |
-
public function line($text)
|
989 |
-
{
|
990 |
-
$markup = '';
|
991 |
-
|
992 |
-
$unexaminedText = $text;
|
993 |
-
|
994 |
-
$markerPosition = 0;
|
995 |
-
|
996 |
-
while ($excerpt = strpbrk($unexaminedText, $this->inlineMarkerList))
|
997 |
-
{
|
998 |
-
$marker = $excerpt[0];
|
999 |
-
|
1000 |
-
$markerPosition += strpos($unexaminedText, $marker);
|
1001 |
-
|
1002 |
-
$Excerpt = array('text' => $excerpt, 'context' => $text);
|
1003 |
-
|
1004 |
-
foreach ($this->InlineTypes[$marker] as $inlineType)
|
1005 |
-
{
|
1006 |
-
$Inline = $this->{'inline'.$inlineType}($Excerpt);
|
1007 |
-
|
1008 |
-
if ( ! isset($Inline))
|
1009 |
-
{
|
1010 |
-
continue;
|
1011 |
-
}
|
1012 |
-
|
1013 |
-
if (isset($Inline['position']) and $Inline['position'] > $markerPosition) # position is ahead of marker
|
1014 |
-
{
|
1015 |
-
continue;
|
1016 |
-
}
|
1017 |
-
|
1018 |
-
if ( ! isset($Inline['position']))
|
1019 |
-
{
|
1020 |
-
$Inline['position'] = $markerPosition;
|
1021 |
-
}
|
1022 |
-
|
1023 |
-
$unmarkedText = substr($text, 0, $Inline['position']);
|
1024 |
-
|
1025 |
-
$markup .= $this->unmarkedText($unmarkedText);
|
1026 |
-
|
1027 |
-
$markup .= isset($Inline['markup']) ? $Inline['markup'] : $this->element($Inline['element']);
|
1028 |
-
|
1029 |
-
$text = substr($text, $Inline['position'] + $Inline['extent']);
|
1030 |
-
|
1031 |
-
$unexaminedText = $text;
|
1032 |
-
|
1033 |
-
$markerPosition = 0;
|
1034 |
-
|
1035 |
-
continue 2;
|
1036 |
-
}
|
1037 |
-
|
1038 |
-
$unexaminedText = substr($excerpt, 1);
|
1039 |
-
|
1040 |
-
$markerPosition ++;
|
1041 |
-
}
|
1042 |
-
|
1043 |
-
$markup .= $this->unmarkedText($text);
|
1044 |
-
|
1045 |
-
return $markup;
|
1046 |
-
}
|
1047 |
-
|
1048 |
-
#
|
1049 |
-
# ~
|
1050 |
-
#
|
1051 |
-
|
1052 |
-
protected function inlineCode($Excerpt)
|
1053 |
-
{
|
1054 |
-
$marker = $Excerpt['text'][0];
|
1055 |
-
|
1056 |
-
if (preg_match('/^('.$marker.'+)[ ]*(.+?)[ ]*(?<!'.$marker.')\1(?!'.$marker.')/s', $Excerpt['text'], $matches))
|
1057 |
-
{
|
1058 |
-
$text = $matches[2];
|
1059 |
-
$text = htmlspecialchars($text, ENT_NOQUOTES, 'UTF-8');
|
1060 |
-
$text = preg_replace("/[ ]*\n/", ' ', $text);
|
1061 |
-
|
1062 |
-
return array(
|
1063 |
-
'extent' => strlen($matches[0]),
|
1064 |
-
'element' => array(
|
1065 |
-
'name' => 'code',
|
1066 |
-
'text' => $text,
|
1067 |
-
),
|
1068 |
-
);
|
1069 |
-
}
|
1070 |
-
}
|
1071 |
-
|
1072 |
-
protected function inlineEmailTag($Excerpt)
|
1073 |
-
{
|
1074 |
-
if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<((mailto:)?\S+?@\S+?)>/i', $Excerpt['text'], $matches))
|
1075 |
-
{
|
1076 |
-
$url = $matches[1];
|
1077 |
-
|
1078 |
-
if ( ! isset($matches[2]))
|
1079 |
-
{
|
1080 |
-
$url = 'mailto:' . $url;
|
1081 |
-
}
|
1082 |
-
|
1083 |
-
return array(
|
1084 |
-
'extent' => strlen($matches[0]),
|
1085 |
-
'element' => array(
|
1086 |
-
'name' => 'a',
|
1087 |
-
'text' => $matches[1],
|
1088 |
-
'attributes' => array(
|
1089 |
-
'href' => $url,
|
1090 |
-
),
|
1091 |
-
),
|
1092 |
-
);
|
1093 |
-
}
|
1094 |
-
}
|
1095 |
-
|
1096 |
-
protected function inlineEmphasis($Excerpt)
|
1097 |
-
{
|
1098 |
-
if ( ! isset($Excerpt['text'][1]))
|
1099 |
-
{
|
1100 |
-
return;
|
1101 |
-
}
|
1102 |
-
|
1103 |
-
$marker = $Excerpt['text'][0];
|
1104 |
-
|
1105 |
-
if ($Excerpt['text'][1] === $marker and preg_match($this->StrongRegex[$marker], $Excerpt['text'], $matches))
|
1106 |
-
{
|
1107 |
-
$emphasis = 'strong';
|
1108 |
-
}
|
1109 |
-
elseif (preg_match($this->EmRegex[$marker], $Excerpt['text'], $matches))
|
1110 |
-
{
|
1111 |
-
$emphasis = 'em';
|
1112 |
-
}
|
1113 |
-
else
|
1114 |
-
{
|
1115 |
-
return;
|
1116 |
-
}
|
1117 |
-
|
1118 |
-
return array(
|
1119 |
-
'extent' => strlen($matches[0]),
|
1120 |
-
'element' => array(
|
1121 |
-
'name' => $emphasis,
|
1122 |
-
'handler' => 'line',
|
1123 |
-
'text' => $matches[1],
|
1124 |
-
),
|
1125 |
-
);
|
1126 |
-
}
|
1127 |
-
|
1128 |
-
protected function inlineEscapeSequence($Excerpt)
|
1129 |
-
{
|
1130 |
-
if (isset($Excerpt['text'][1]) and in_array($Excerpt['text'][1], $this->specialCharacters))
|
1131 |
-
{
|
1132 |
-
return array(
|
1133 |
-
'markup' => $Excerpt['text'][1],
|
1134 |
-
'extent' => 2,
|
1135 |
-
);
|
1136 |
-
}
|
1137 |
-
}
|
1138 |
-
|
1139 |
-
protected function inlineImage($Excerpt)
|
1140 |
-
{
|
1141 |
-
if ( ! isset($Excerpt['text'][1]) or $Excerpt['text'][1] !== '[')
|
1142 |
-
{
|
1143 |
-
return;
|
1144 |
-
}
|
1145 |
-
|
1146 |
-
$Excerpt['text']= substr($Excerpt['text'], 1);
|
1147 |
-
|
1148 |
-
$Link = $this->inlineLink($Excerpt);
|
1149 |
-
|
1150 |
-
if ($Link === null)
|
1151 |
-
{
|
1152 |
-
return;
|
1153 |
-
}
|
1154 |
-
|
1155 |
-
$Inline = array(
|
1156 |
-
'extent' => $Link['extent'] + 1,
|
1157 |
-
'element' => array(
|
1158 |
-
'name' => 'img',
|
1159 |
-
'attributes' => array(
|
1160 |
-
'src' => $Link['element']['attributes']['href'],
|
1161 |
-
'alt' => $Link['element']['text'],
|
1162 |
-
),
|
1163 |
-
),
|
1164 |
-
);
|
1165 |
-
|
1166 |
-
$Inline['element']['attributes'] += $Link['element']['attributes'];
|
1167 |
-
|
1168 |
-
unset($Inline['element']['attributes']['href']);
|
1169 |
-
|
1170 |
-
return $Inline;
|
1171 |
-
}
|
1172 |
-
|
1173 |
-
protected function inlineLink($Excerpt)
|
1174 |
-
{
|
1175 |
-
$Element = array(
|
1176 |
-
'name' => 'a',
|
1177 |
-
'handler' => 'line',
|
1178 |
-
'text' => null,
|
1179 |
-
'attributes' => array(
|
1180 |
-
'href' => null,
|
1181 |
-
'title' => null,
|
1182 |
-
),
|
1183 |
-
);
|
1184 |
-
|
1185 |
-
$extent = 0;
|
1186 |
-
|
1187 |
-
$remainder = $Excerpt['text'];
|
1188 |
-
|
1189 |
-
if (preg_match('/\[((?:[^][]|(?R))*)\]/', $remainder, $matches))
|
1190 |
-
{
|
1191 |
-
$Element['text'] = $matches[1];
|
1192 |
-
|
1193 |
-
$extent += strlen($matches[0]);
|
1194 |
-
|
1195 |
-
$remainder = substr($remainder, $extent);
|
1196 |
-
}
|
1197 |
-
else
|
1198 |
-
{
|
1199 |
-
return;
|
1200 |
-
}
|
1201 |
-
|
1202 |
-
if (preg_match('/^[(]((?:[^ (]|[(][^ )]+[)])+)(?:[ ]+("[^"]+"|\'[^\']+\'))?[)]/', $remainder, $matches))
|
1203 |
-
{
|
1204 |
-
$Element['attributes']['href'] = $matches[1];
|
1205 |
-
|
1206 |
-
if (isset($matches[2]))
|
1207 |
-
{
|
1208 |
-
$Element['attributes']['title'] = substr($matches[2], 1, - 1);
|
1209 |
-
}
|
1210 |
-
|
1211 |
-
$extent += strlen($matches[0]);
|
1212 |
-
}
|
1213 |
-
else
|
1214 |
-
{
|
1215 |
-
if (preg_match('/^\s*\[(.*?)\]/', $remainder, $matches))
|
1216 |
-
{
|
1217 |
-
$definition = $matches[1] ? $matches[1] : $Element['text'];
|
1218 |
-
$definition = strtolower($definition);
|
1219 |
-
|
1220 |
-
$extent += strlen($matches[0]);
|
1221 |
-
}
|
1222 |
-
else
|
1223 |
-
{
|
1224 |
-
$definition = strtolower($Element['text']);
|
1225 |
-
}
|
1226 |
-
|
1227 |
-
if ( ! isset($this->DefinitionData['Reference'][$definition]))
|
1228 |
-
{
|
1229 |
-
return;
|
1230 |
-
}
|
1231 |
-
|
1232 |
-
$Definition = $this->DefinitionData['Reference'][$definition];
|
1233 |
-
|
1234 |
-
$Element['attributes']['href'] = $Definition['url'];
|
1235 |
-
$Element['attributes']['title'] = $Definition['title'];
|
1236 |
-
}
|
1237 |
-
|
1238 |
-
$Element['attributes']['href'] = str_replace(array('&', '<'), array('&', '<'), $Element['attributes']['href']);
|
1239 |
-
|
1240 |
-
return array(
|
1241 |
-
'extent' => $extent,
|
1242 |
-
'element' => $Element,
|
1243 |
-
);
|
1244 |
-
}
|
1245 |
-
|
1246 |
-
protected function inlineMarkup($Excerpt)
|
1247 |
-
{
|
1248 |
-
if ($this->markupEscaped or strpos($Excerpt['text'], '>') === false)
|
1249 |
-
{
|
1250 |
-
return;
|
1251 |
-
}
|
1252 |
-
|
1253 |
-
if ($Excerpt['text'][1] === '/' and preg_match('/^<\/\w*[ ]*>/s', $Excerpt['text'], $matches))
|
1254 |
-
{
|
1255 |
-
return array(
|
1256 |
-
'markup' => $matches[0],
|
1257 |
-
'extent' => strlen($matches[0]),
|
1258 |
-
);
|
1259 |
-
}
|
1260 |
-
|
1261 |
-
if ($Excerpt['text'][1] === '!' and preg_match('/^<!---?[^>-](?:-?[^-])*-->/s', $Excerpt['text'], $matches))
|
1262 |
-
{
|
1263 |
-
return array(
|
1264 |
-
'markup' => $matches[0],
|
1265 |
-
'extent' => strlen($matches[0]),
|
1266 |
-
);
|
1267 |
-
}
|
1268 |
-
|
1269 |
-
if ($Excerpt['text'][1] !== ' ' and preg_match('/^<\w*(?:[ ]*'.$this->regexHtmlAttribute.')*[ ]*\/?>/s', $Excerpt['text'], $matches))
|
1270 |
-
{
|
1271 |
-
return array(
|
1272 |
-
'markup' => $matches[0],
|
1273 |
-
'extent' => strlen($matches[0]),
|
1274 |
-
);
|
1275 |
-
}
|
1276 |
-
}
|
1277 |
-
|
1278 |
-
protected function inlineSpecialCharacter($Excerpt)
|
1279 |
-
{
|
1280 |
-
if ($Excerpt['text'][0] === '&' and ! preg_match('/^&#?\w+;/', $Excerpt['text']))
|
1281 |
-
{
|
1282 |
-
return array(
|
1283 |
-
'markup' => '&',
|
1284 |
-
'extent' => 1,
|
1285 |
-
);
|
1286 |
-
}
|
1287 |
-
|
1288 |
-
$SpecialCharacter = array('>' => 'gt', '<' => 'lt', '"' => 'quot');
|
1289 |
-
|
1290 |
-
if (isset($SpecialCharacter[$Excerpt['text'][0]]))
|
1291 |
-
{
|
1292 |
-
return array(
|
1293 |
-
'markup' => '&'.$SpecialCharacter[$Excerpt['text'][0]].';',
|
1294 |
-
'extent' => 1,
|
1295 |
-
);
|
1296 |
-
}
|
1297 |
-
}
|
1298 |
-
|
1299 |
-
protected function inlineStrikethrough($Excerpt)
|
1300 |
-
{
|
1301 |
-
if ( ! isset($Excerpt['text'][1]))
|
1302 |
-
{
|
1303 |
-
return;
|
1304 |
-
}
|
1305 |
-
|
1306 |
-
if ($Excerpt['text'][1] === '~' and preg_match('/^~~(?=\S)(.+?)(?<=\S)~~/', $Excerpt['text'], $matches))
|
1307 |
-
{
|
1308 |
-
return array(
|
1309 |
-
'extent' => strlen($matches[0]),
|
1310 |
-
'element' => array(
|
1311 |
-
'name' => 'del',
|
1312 |
-
'text' => $matches[1],
|
1313 |
-
'handler' => 'line',
|
1314 |
-
),
|
1315 |
-
);
|
1316 |
-
}
|
1317 |
-
}
|
1318 |
-
|
1319 |
-
protected function inlineUrl($Excerpt)
|
1320 |
-
{
|
1321 |
-
if ($this->urlsLinked !== true or ! isset($Excerpt['text'][2]) or $Excerpt['text'][2] !== '/')
|
1322 |
-
{
|
1323 |
-
return;
|
1324 |
-
}
|
1325 |
-
|
1326 |
-
if (preg_match('/\bhttps?:[\/]{2}[^\s<]+\b\/*/ui', $Excerpt['context'], $matches, PREG_OFFSET_CAPTURE))
|
1327 |
-
{
|
1328 |
-
$Inline = array(
|
1329 |
-
'extent' => strlen($matches[0][0]),
|
1330 |
-
'position' => $matches[0][1],
|
1331 |
-
'element' => array(
|
1332 |
-
'name' => 'a',
|
1333 |
-
'text' => $matches[0][0],
|
1334 |
-
'attributes' => array(
|
1335 |
-
'href' => $matches[0][0],
|
1336 |
-
),
|
1337 |
-
),
|
1338 |
-
);
|
1339 |
-
|
1340 |
-
return $Inline;
|
1341 |
-
}
|
1342 |
-
}
|
1343 |
-
|
1344 |
-
protected function inlineUrlTag($Excerpt)
|
1345 |
-
{
|
1346 |
-
if (strpos($Excerpt['text'], '>') !== false and preg_match('/^<(\w+:\/{2}[^ >]+)>/i', $Excerpt['text'], $matches))
|
1347 |
-
{
|
1348 |
-
$url = str_replace(array('&', '<'), array('&', '<'), $matches[1]);
|
1349 |
-
|
1350 |
-
return array(
|
1351 |
-
'extent' => strlen($matches[0]),
|
1352 |
-
'element' => array(
|
1353 |
-
'name' => 'a',
|
1354 |
-
'text' => $url,
|
1355 |
-
'attributes' => array(
|
1356 |
-
'href' => $url,
|
1357 |
-
),
|
1358 |
-
),
|
1359 |
-
);
|
1360 |
-
}
|
1361 |
-
}
|
1362 |
-
|
1363 |
-
#
|
1364 |
-
# ~
|
1365 |
-
|
1366 |
-
protected $unmarkedInlineTypes = array("\n" => 'Break', '://' => 'Url');
|
1367 |
-
|
1368 |
-
# ~
|
1369 |
-
|
1370 |
-
protected function unmarkedText($text)
|
1371 |
-
{
|
1372 |
-
if ($this->breaksEnabled)
|
1373 |
-
{
|
1374 |
-
$text = preg_replace('/[ ]*\n/', "<br />\n", $text);
|
1375 |
-
}
|
1376 |
-
else
|
1377 |
-
{
|
1378 |
-
$text = preg_replace('/(?:[ ][ ]+|[ ]*\\\\)\n/', "<br />\n", $text);
|
1379 |
-
$text = str_replace(" \n", "\n", $text);
|
1380 |
-
}
|
1381 |
-
|
1382 |
-
return $text;
|
1383 |
-
}
|
1384 |
-
|
1385 |
-
#
|
1386 |
-
# Handlers
|
1387 |
-
#
|
1388 |
-
|
1389 |
-
protected function element(array $Element)
|
1390 |
-
{
|
1391 |
-
$markup = '<'.$Element['name'];
|
1392 |
-
|
1393 |
-
if (isset($Element['attributes']))
|
1394 |
-
{
|
1395 |
-
foreach ($Element['attributes'] as $name => $value)
|
1396 |
-
{
|
1397 |
-
if ($value === null)
|
1398 |
-
{
|
1399 |
-
continue;
|
1400 |
-
}
|
1401 |
-
|
1402 |
-
$markup .= ' '.$name.'="'.$value.'"';
|
1403 |
-
}
|
1404 |
-
}
|
1405 |
-
|
1406 |
-
if (isset($Element['text']))
|
1407 |
-
{
|
1408 |
-
$markup .= '>';
|
1409 |
-
|
1410 |
-
if (isset($Element['handler']))
|
1411 |
-
{
|
1412 |
-
$markup .= $this->{$Element['handler']}($Element['text']);
|
1413 |
-
}
|
1414 |
-
else
|
1415 |
-
{
|
1416 |
-
$markup .= $Element['text'];
|
1417 |
-
}
|
1418 |
-
|
1419 |
-
$markup .= '</'.$Element['name'].'>';
|
1420 |
-
}
|
1421 |
-
else
|
1422 |
-
{
|
1423 |
-
$markup .= ' />';
|
1424 |
-
}
|
1425 |
-
|
1426 |
-
return $markup;
|
1427 |
-
}
|
1428 |
-
|
1429 |
-
protected function elements(array $Elements)
|
1430 |
-
{
|
1431 |
-
$markup = '';
|
1432 |
-
|
1433 |
-
foreach ($Elements as $Element)
|
1434 |
-
{
|
1435 |
-
$markup .= "\n" . $this->element($Element);
|
1436 |
-
}
|
1437 |
-
|
1438 |
-
$markup .= "\n";
|
1439 |
-
|
1440 |
-
return $markup;
|
1441 |
-
}
|
1442 |
-
|
1443 |
-
# ~
|
1444 |
-
|
1445 |
-
protected function li($lines)
|
1446 |
-
{
|
1447 |
-
$markup = $this->lines($lines);
|
1448 |
-
|
1449 |
-
$trimmedMarkup = trim($markup);
|
1450 |
-
|
1451 |
-
if ( ! in_array('', $lines) and substr($trimmedMarkup, 0, 3) === '<p>')
|
1452 |
-
{
|
1453 |
-
$markup = $trimmedMarkup;
|
1454 |
-
$markup = substr($markup, 3);
|
1455 |
-
|
1456 |
-
$position = strpos($markup, "</p>");
|
1457 |
-
|
1458 |
-
$markup = substr_replace($markup, '', $position, 4);
|
1459 |
-
}
|
1460 |
-
|
1461 |
-
return $markup;
|
1462 |
-
}
|
1463 |
-
|
1464 |
-
#
|
1465 |
-
# Deprecated Methods
|
1466 |
-
#
|
1467 |
-
|
1468 |
-
function parse($text)
|
1469 |
-
{
|
1470 |
-
$markup = $this->text($text);
|
1471 |
-
|
1472 |
-
return $markup;
|
1473 |
-
}
|
1474 |
-
|
1475 |
-
#
|
1476 |
-
# Static Methods
|
1477 |
-
#
|
1478 |
-
|
1479 |
-
static function instance($name = 'default')
|
1480 |
-
{
|
1481 |
-
if (isset(self::$instances[$name]))
|
1482 |
-
{
|
1483 |
-
return self::$instances[$name];
|
1484 |
-
}
|
1485 |
-
|
1486 |
-
$instance = new self();
|
1487 |
-
|
1488 |
-
self::$instances[$name] = $instance;
|
1489 |
-
|
1490 |
-
return $instance;
|
1491 |
-
}
|
1492 |
-
|
1493 |
-
private static $instances = array();
|
1494 |
-
|
1495 |
-
#
|
1496 |
-
# Fields
|
1497 |
-
#
|
1498 |
-
|
1499 |
-
protected $DefinitionData;
|
1500 |
-
|
1501 |
-
#
|
1502 |
-
# Read-Only
|
1503 |
-
|
1504 |
-
protected $specialCharacters = array(
|
1505 |
-
'\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '>', '#', '+', '-', '.', '!', '|',
|
1506 |
-
);
|
1507 |
-
|
1508 |
-
protected $StrongRegex = array(
|
1509 |
-
'*' => '/^[*]{2}((?:\\\\\*|[^*]|[*][^*]*[*])+?)[*]{2}(?![*])/s',
|
1510 |
-
'_' => '/^__((?:\\\\_|[^_]|_[^_]*_)+?)__(?!_)/us',
|
1511 |
-
);
|
1512 |
-
|
1513 |
-
protected $EmRegex = array(
|
1514 |
-
'*' => '/^[*]((?:\\\\\*|[^*]|[*][*][^*]+?[*][*])+?)[*](?![*])/s',
|
1515 |
-
'_' => '/^_((?:\\\\_|[^_]|__[^_]*__)+?)_(?!_)\b/us',
|
1516 |
-
);
|
1517 |
-
|
1518 |
-
protected $regexHtmlAttribute = '[a-zA-Z_:][\w:.-]*(?:\s*=\s*(?:[^"\'=<>`\s]+|"[^"]*"|\'[^\']*\'))?';
|
1519 |
-
|
1520 |
-
protected $voidElements = array(
|
1521 |
-
'area', 'base', 'br', 'col', 'command', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source',
|
1522 |
-
);
|
1523 |
-
|
1524 |
-
protected $textLevelElements = array(
|
1525 |
-
'a', 'br', 'bdo', 'abbr', 'blink', 'nextid', 'acronym', 'basefont',
|
1526 |
-
'b', 'em', 'big', 'cite', 'small', 'spacer', 'listing',
|
1527 |
-
'i', 'rp', 'del', 'code', 'strike', 'marquee',
|
1528 |
-
'q', 'rt', 'ins', 'font', 'strong',
|
1529 |
-
's', 'tt', 'sub', 'mark',
|
1530 |
-
'u', 'xm', 'sup', 'nobr',
|
1531 |
-
'var', 'ruby',
|
1532 |
-
'wbr', 'span',
|
1533 |
-
'time',
|
1534 |
-
);
|
1535 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin/plugin-update-checker/vendor/readme-parser.php
DELETED
@@ -1,334 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( !class_exists('PucReadmeParser', false) ):
|
4 |
-
|
5 |
-
/**
|
6 |
-
* This is a slightly modified version of github.com/markjaquith/WordPress-Plugin-Readme-Parser
|
7 |
-
* It uses Parsedown instead of the "Markdown Extra" parser.
|
8 |
-
*/
|
9 |
-
|
10 |
-
class PucReadmeParser {
|
11 |
-
|
12 |
-
function __construct() {
|
13 |
-
// This space intentionally blank
|
14 |
-
}
|
15 |
-
|
16 |
-
function parse_readme( $file ) {
|
17 |
-
$file_contents = @implode('', @file($file));
|
18 |
-
return $this->parse_readme_contents( $file_contents );
|
19 |
-
}
|
20 |
-
|
21 |
-
function parse_readme_contents( $file_contents ) {
|
22 |
-
$file_contents = str_replace(array("\r\n", "\r"), "\n", $file_contents);
|
23 |
-
$file_contents = trim($file_contents);
|
24 |
-
if ( 0 === strpos( $file_contents, "\xEF\xBB\xBF" ) )
|
25 |
-
$file_contents = substr( $file_contents, 3 );
|
26 |
-
|
27 |
-
// Markdown transformations
|
28 |
-
$file_contents = preg_replace( "|^###([^#]+)#*?\s*?\n|im", '=$1='."\n", $file_contents );
|
29 |
-
$file_contents = preg_replace( "|^##([^#]+)#*?\s*?\n|im", '==$1=='."\n", $file_contents );
|
30 |
-
$file_contents = preg_replace( "|^#([^#]+)#*?\s*?\n|im", '===$1==='."\n", $file_contents );
|
31 |
-
|
32 |
-
// === Plugin Name ===
|
33 |
-
// Must be the very first thing.
|
34 |
-
if ( !preg_match('|^===(.*)===|', $file_contents, $_name) )
|
35 |
-
return array(); // require a name
|
36 |
-
$name = trim($_name[1], '=');
|
37 |
-
$name = $this->sanitize_text( $name );
|
38 |
-
|
39 |
-
$file_contents = $this->chop_string( $file_contents, $_name[0] );
|
40 |
-
|
41 |
-
|
42 |
-
// Requires at least: 1.5
|
43 |
-
if ( preg_match('|Requires at least:(.*)|i', $file_contents, $_requires_at_least) )
|
44 |
-
$requires_at_least = $this->sanitize_text($_requires_at_least[1]);
|
45 |
-
else
|
46 |
-
$requires_at_least = NULL;
|
47 |
-
|
48 |
-
|
49 |
-
// Tested up to: 2.1
|
50 |
-
if ( preg_match('|Tested up to:(.*)|i', $file_contents, $_tested_up_to) )
|
51 |
-
$tested_up_to = $this->sanitize_text( $_tested_up_to[1] );
|
52 |
-
else
|
53 |
-
$tested_up_to = NULL;
|
54 |
-
|
55 |
-
|
56 |
-
// Stable tag: 10.4-ride-the-fire-eagle-danger-day
|
57 |
-
if ( preg_match('|Stable tag:(.*)|i', $file_contents, $_stable_tag) )
|
58 |
-
$stable_tag = $this->sanitize_text( $_stable_tag[1] );
|
59 |
-
else
|
60 |
-
$stable_tag = NULL; // we assume trunk, but don't set it here to tell the difference between specified trunk and default trunk
|
61 |
-
|
62 |
-
|
63 |
-
// Tags: some tag, another tag, we like tags
|
64 |
-
if ( preg_match('|Tags:(.*)|i', $file_contents, $_tags) ) {
|
65 |
-
$tags = preg_split('|,[\s]*?|', trim($_tags[1]));
|
66 |
-
foreach ( array_keys($tags) as $t )
|
67 |
-
$tags[$t] = $this->sanitize_text( $tags[$t] );
|
68 |
-
} else {
|
69 |
-
$tags = array();
|
70 |
-
}
|
71 |
-
|
72 |
-
|
73 |
-
// Contributors: markjaquith, mdawaffe, zefrank
|
74 |
-
$contributors = array();
|
75 |
-
if ( preg_match('|Contributors:(.*)|i', $file_contents, $_contributors) ) {
|
76 |
-
$temp_contributors = preg_split('|,[\s]*|', trim($_contributors[1]));
|
77 |
-
foreach ( array_keys($temp_contributors) as $c ) {
|
78 |
-
$tmp_sanitized = $this->user_sanitize( $temp_contributors[$c] );
|
79 |
-
if ( strlen(trim($tmp_sanitized)) > 0 )
|
80 |
-
$contributors[$c] = $tmp_sanitized;
|
81 |
-
unset($tmp_sanitized);
|
82 |
-
}
|
83 |
-
}
|
84 |
-
|
85 |
-
|
86 |
-
// Donate Link: URL
|
87 |
-
if ( preg_match('|Donate link:(.*)|i', $file_contents, $_donate_link) )
|
88 |
-
$donate_link = esc_url( $_donate_link[1] );
|
89 |
-
else
|
90 |
-
$donate_link = NULL;
|
91 |
-
|
92 |
-
|
93 |
-
// togs, conts, etc are optional and order shouldn't matter. So we chop them only after we've grabbed their values.
|
94 |
-
foreach ( array('tags', 'contributors', 'requires_at_least', 'tested_up_to', 'stable_tag', 'donate_link') as $chop ) {
|
95 |
-
if ( $$chop ) {
|
96 |
-
$_chop = '_' . $chop;
|
97 |
-
$file_contents = $this->chop_string( $file_contents, ${$_chop}[0] );
|
98 |
-
}
|
99 |
-
}
|
100 |
-
|
101 |
-
$file_contents = trim($file_contents);
|
102 |
-
|
103 |
-
|
104 |
-
// short-description fu
|
105 |
-
if ( !preg_match('/(^(.*?))^[\s]*=+?[\s]*.+?[\s]*=+?/ms', $file_contents, $_short_description) )
|
106 |
-
$_short_description = array( 1 => &$file_contents, 2 => &$file_contents );
|
107 |
-
$short_desc_filtered = $this->sanitize_text( $_short_description[2] );
|
108 |
-
$short_desc_length = strlen($short_desc_filtered);
|
109 |
-
$short_description = substr($short_desc_filtered, 0, 150);
|
110 |
-
if ( $short_desc_length > strlen($short_description) )
|
111 |
-
$truncated = true;
|
112 |
-
else
|
113 |
-
$truncated = false;
|
114 |
-
if ( $_short_description[1] )
|
115 |
-
$file_contents = $this->chop_string( $file_contents, $_short_description[1] ); // yes, the [1] is intentional
|
116 |
-
|
117 |
-
// == Section ==
|
118 |
-
// Break into sections
|
119 |
-
// $_sections[0] will be the title of the first section, $_sections[1] will be the content of the first section
|
120 |
-
// the array alternates from there: title2, content2, title3, content3... and so forth
|
121 |
-
$_sections = preg_split('/^[\s]*==[\s]*(.+?)[\s]*==/m', $file_contents, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY);
|
122 |
-
|
123 |
-
$sections = array();
|
124 |
-
for ( $i=1; $i <= count($_sections); $i +=2 ) {
|
125 |
-
$_sections[$i] = preg_replace('/(^[\s]*)=[\s]+(.+?)[\s]+=/m', '$1<h4>$2</h4>', $_sections[$i]);
|
126 |
-
$_sections[$i] = $this->filter_text( $_sections[$i], true );
|
127 |
-
$title = $this->sanitize_text( $_sections[$i-1] );
|
128 |
-
$sections[str_replace(' ', '_', strtolower($title))] = array('title' => $title, 'content' => $_sections[$i]);
|
129 |
-
}
|
130 |
-
|
131 |
-
|
132 |
-
// Special sections
|
133 |
-
// This is where we nab our special sections, so we can enforce their order and treat them differently, if needed
|
134 |
-
// upgrade_notice is not a section, but parse it like it is for now
|
135 |
-
$final_sections = array();
|
136 |
-
foreach ( array('description', 'installation', 'frequently_asked_questions', 'screenshots', 'changelog', 'change_log', 'upgrade_notice') as $special_section ) {
|
137 |
-
if ( isset($sections[$special_section]) ) {
|
138 |
-
$final_sections[$special_section] = $sections[$special_section]['content'];
|
139 |
-
unset($sections[$special_section]);
|
140 |
-
}
|
141 |
-
}
|
142 |
-
if ( isset($final_sections['change_log']) && empty($final_sections['changelog']) )
|
143 |
-
$final_sections['changelog'] = $final_sections['change_log'];
|
144 |
-
|
145 |
-
|
146 |
-
$final_screenshots = array();
|
147 |
-
if ( isset($final_sections['screenshots']) ) {
|
148 |
-
preg_match_all('|<li>(.*?)</li>|s', $final_sections['screenshots'], $screenshots, PREG_SET_ORDER);
|
149 |
-
if ( $screenshots ) {
|
150 |
-
foreach ( (array) $screenshots as $ss )
|
151 |
-
$final_screenshots[] = $ss[1];
|
152 |
-
}
|
153 |
-
}
|
154 |
-
|
155 |
-
// Parse the upgrade_notice section specially:
|
156 |
-
// 1.0 => blah, 1.1 => fnord
|
157 |
-
$upgrade_notice = array();
|
158 |
-
if ( isset($final_sections['upgrade_notice']) ) {
|
159 |
-
$split = preg_split( '#<h4>(.*?)</h4>#', $final_sections['upgrade_notice'], -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY );
|
160 |
-
for ( $i = 0; $i < count( $split ); $i += 2 )
|
161 |
-
$upgrade_notice[$this->sanitize_text( $split[$i] )] = substr( $this->sanitize_text( $split[$i + 1] ), 0, 300 );
|
162 |
-
unset( $final_sections['upgrade_notice'] );
|
163 |
-
}
|
164 |
-
|
165 |
-
// No description?
|
166 |
-
// No problem... we'll just fall back to the old style of description
|
167 |
-
// We'll even let you use markup this time!
|
168 |
-
$excerpt = false;
|
169 |
-
if ( !isset($final_sections['description']) ) {
|
170 |
-
$final_sections = array_merge(array('description' => $this->filter_text( $_short_description[2], true )), $final_sections);
|
171 |
-
$excerpt = true;
|
172 |
-
}
|
173 |
-
|
174 |
-
|
175 |
-
// dump the non-special sections into $remaining_content
|
176 |
-
// their order will be determined by their original order in the readme.txt
|
177 |
-
$remaining_content = '';
|
178 |
-
foreach ( $sections as $s_name => $s_data ) {
|
179 |
-
$remaining_content .= "\n<h3>{$s_data['title']}</h3>\n{$s_data['content']}";
|
180 |
-
}
|
181 |
-
$remaining_content = trim($remaining_content);
|
182 |
-
|
183 |
-
|
184 |
-
// All done!
|
185 |
-
// $r['tags'] and $r['contributors'] are simple arrays
|
186 |
-
// $r['sections'] is an array with named elements
|
187 |
-
$r = array(
|
188 |
-
'name' => $name,
|
189 |
-
'tags' => $tags,
|
190 |
-
'requires_at_least' => $requires_at_least,
|
191 |
-
'tested_up_to' => $tested_up_to,
|
192 |
-
'stable_tag' => $stable_tag,
|
193 |
-
'contributors' => $contributors,
|
194 |
-
'donate_link' => $donate_link,
|
195 |
-
'short_description' => $short_description,
|
196 |
-
'screenshots' => $final_screenshots,
|
197 |
-
'is_excerpt' => $excerpt,
|
198 |
-
'is_truncated' => $truncated,
|
199 |
-
'sections' => $final_sections,
|
200 |
-
'remaining_content' => $remaining_content,
|
201 |
-
'upgrade_notice' => $upgrade_notice
|
202 |
-
);
|
203 |
-
|
204 |
-
return $r;
|
205 |
-
}
|
206 |
-
|
207 |
-
function chop_string( $string, $chop ) { // chop a "prefix" from a string: Agressive! uses strstr not 0 === strpos
|
208 |
-
if ( $_string = strstr($string, $chop) ) {
|
209 |
-
$_string = substr($_string, strlen($chop));
|
210 |
-
return trim($_string);
|
211 |
-
} else {
|
212 |
-
return trim($string);
|
213 |
-
}
|
214 |
-
}
|
215 |
-
|
216 |
-
function user_sanitize( $text, $strict = false ) { // whitelisted chars
|
217 |
-
if ( function_exists('user_sanitize') ) // bbPress native
|
218 |
-
return user_sanitize( $text, $strict );
|
219 |
-
|
220 |
-
if ( $strict ) {
|
221 |
-
$text = preg_replace('/[^a-z0-9-]/i', '', $text);
|
222 |
-
$text = preg_replace('|-+|', '-', $text);
|
223 |
-
} else {
|
224 |
-
$text = preg_replace('/[^a-z0-9_-]/i', '', $text);
|
225 |
-
}
|
226 |
-
return $text;
|
227 |
-
}
|
228 |
-
|
229 |
-
function sanitize_text( $text ) { // not fancy
|
230 |
-
$text = strip_tags($text);
|
231 |
-
$text = esc_html($text);
|
232 |
-
$text = trim($text);
|
233 |
-
return $text;
|
234 |
-
}
|
235 |
-
|
236 |
-
function filter_text( $text, $markdown = false ) { // fancy, Markdown
|
237 |
-
$text = trim($text);
|
238 |
-
|
239 |
-
$text = call_user_func( array( __CLASS__, 'code_trick' ), $text, $markdown ); // A better parser than Markdown's for: backticks -> CODE
|
240 |
-
|
241 |
-
if ( $markdown ) { // Parse markdown.
|
242 |
-
if ( !class_exists('Parsedown', false) ) {
|
243 |
-
/** @noinspection PhpIncludeInspection */
|
244 |
-
require_once(dirname(__FILE__) . '/Parsedown' . (version_compare(PHP_VERSION, '5.3.0', '>=') ? '' : 'Legacy') . '.php');
|
245 |
-
}
|
246 |
-
$instance = Parsedown::instance();
|
247 |
-
$text = $instance->text($text);
|
248 |
-
}
|
249 |
-
|
250 |
-
$allowed = array(
|
251 |
-
'a' => array(
|
252 |
-
'href' => array(),
|
253 |
-
'title' => array(),
|
254 |
-
'rel' => array()),
|
255 |
-
'blockquote' => array('cite' => array()),
|
256 |
-
'br' => array(),
|
257 |
-
'p' => array(),
|
258 |
-
'code' => array(),
|
259 |
-
'pre' => array(),
|
260 |
-
'em' => array(),
|
261 |
-
'strong' => array(),
|
262 |
-
'ul' => array(),
|
263 |
-
'ol' => array(),
|
264 |
-
'li' => array(),
|
265 |
-
'h3' => array(),
|
266 |
-
'h4' => array()
|
267 |
-
);
|
268 |
-
|
269 |
-
$text = balanceTags($text);
|
270 |
-
|
271 |
-
$text = wp_kses( $text, $allowed );
|
272 |
-
$text = trim($text);
|
273 |
-
return $text;
|
274 |
-
}
|
275 |
-
|
276 |
-
function code_trick( $text, $markdown ) { // Don't use bbPress native function - it's incompatible with Markdown
|
277 |
-
// If doing markdown, first take any user formatted code blocks and turn them into backticks so that
|
278 |
-
// markdown will preserve things like underscores in code blocks
|
279 |
-
if ( $markdown )
|
280 |
-
$text = preg_replace_callback("!(<pre><code>|<code>)(.*?)(</code></pre>|</code>)!s", array( __CLASS__,'decodeit'), $text);
|
281 |
-
|
282 |
-
$text = str_replace(array("\r\n", "\r"), "\n", $text);
|
283 |
-
if ( !$markdown ) {
|
284 |
-
// This gets the "inline" code blocks, but can't be used with Markdown.
|
285 |
-
$text = preg_replace_callback("|(`)(.*?)`|", array( __CLASS__, 'encodeit'), $text);
|
286 |
-
// This gets the "block level" code blocks and converts them to PRE CODE
|
287 |
-
$text = preg_replace_callback("!(^|\n)`(.*?)`!s", array( __CLASS__, 'encodeit'), $text);
|
288 |
-
} else {
|
289 |
-
// Markdown can do inline code, we convert bbPress style block level code to Markdown style
|
290 |
-
$text = preg_replace_callback("!(^|\n)([ \t]*?)`(.*?)`!s", array( __CLASS__, 'indent'), $text);
|
291 |
-
}
|
292 |
-
return $text;
|
293 |
-
}
|
294 |
-
|
295 |
-
function indent( $matches ) {
|
296 |
-
$text = $matches[3];
|
297 |
-
$text = preg_replace('|^|m', $matches[2] . ' ', $text);
|
298 |
-
return $matches[1] . $text;
|
299 |
-
}
|
300 |
-
|
301 |
-
function encodeit( $matches ) {
|
302 |
-
if ( function_exists('encodeit') ) // bbPress native
|
303 |
-
return encodeit( $matches );
|
304 |
-
|
305 |
-
$text = trim($matches[2]);
|
306 |
-
$text = htmlspecialchars($text, ENT_QUOTES);
|
307 |
-
$text = str_replace(array("\r\n", "\r"), "\n", $text);
|
308 |
-
$text = preg_replace("|\n\n\n+|", "\n\n", $text);
|
309 |
-
$text = str_replace('&lt;', '<', $text);
|
310 |
-
$text = str_replace('&gt;', '>', $text);
|
311 |
-
$text = "<code>$text</code>";
|
312 |
-
if ( "`" != $matches[1] )
|
313 |
-
$text = "<pre>$text</pre>";
|
314 |
-
return $text;
|
315 |
-
}
|
316 |
-
|
317 |
-
function decodeit( $matches ) {
|
318 |
-
if ( function_exists('decodeit') ) // bbPress native
|
319 |
-
return decodeit( $matches );
|
320 |
-
|
321 |
-
$text = $matches[2];
|
322 |
-
$trans_table = array_flip(get_html_translation_table(HTML_ENTITIES));
|
323 |
-
$text = strtr($text, $trans_table);
|
324 |
-
$text = str_replace('<br />', '', $text);
|
325 |
-
$text = str_replace('&', '&', $text);
|
326 |
-
$text = str_replace(''', "'", $text);
|
327 |
-
if ( '<pre><code>' == $matches[1] )
|
328 |
-
$text = "\n$text\n";
|
329 |
-
return "`$text`";
|
330 |
-
}
|
331 |
-
|
332 |
-
} // end class
|
333 |
-
|
334 |
-
endif;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
admin_other_functions.php
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
add_action( 'admin_bar_menu', 'vkExUnit_package_adminbar', 43 );
|
4 |
-
function vkExUnit_package_adminbar( $wp_admin_bar ) {
|
5 |
-
|
6 |
-
if ( ! current_user_can( 'activate_plugins' ) ) { return; }
|
7 |
-
|
8 |
-
global $vkExUnit_options;
|
9 |
-
if (!isset($vkExUnit_options) || !count($vkExUnit_options)) return;
|
10 |
-
|
11 |
-
foreach ($vkExUnit_options as $opt) {
|
12 |
-
$wp_admin_bar->add_node( array(
|
13 |
-
'parent' => 'veu_adminlink_main',
|
14 |
-
'title' => $opt['tab_label'],
|
15 |
-
'id' => 'vew_configbar_'.$opt['option_name'],
|
16 |
-
'href' => admin_url() . 'admin.php?page=vkExUnit_main_setting#'.$opt['option_name']
|
17 |
-
));
|
18 |
-
}
|
19 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
common_helpers.php
DELETED
@@ -1,48 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*-------------------------------------------*/
|
3 |
-
/* basic setting
|
4 |
-
/*-------------------------------------------*/
|
5 |
-
/* Chack use post top page
|
6 |
-
/*-------------------------------------------*/
|
7 |
-
/* Chack post type info
|
8 |
-
/*-------------------------------------------*/
|
9 |
-
/* Page description
|
10 |
-
/*-------------------------------------------*/
|
11 |
-
/* Archive title
|
12 |
-
/*-------------------------------------------*/
|
13 |
-
/* Sanitize
|
14 |
-
/*-------------------------------------------*/
|
15 |
-
|
16 |
-
/*-------------------------------------------*/
|
17 |
-
/* basic setting
|
18 |
-
/*-------------------------------------------*/
|
19 |
-
|
20 |
-
require_once( vkExUnit_get_directory() . '/plugins/template-tags/template-tags.php' );
|
21 |
-
require_once( vkExUnit_get_directory() . '/plugins/template-tags/template-tags-veu.php' );
|
22 |
-
require_once( vkExUnit_get_directory() . '/plugins/template-tags/template-tags-veu-old.php' );
|
23 |
-
|
24 |
-
/*
|
25 |
-
ExUnit独自の関数
|
26 |
-
template-tags-veu.php に書かれているのもExUnit固有の関数だが、
|
27 |
-
ExUnitの機能を複製しているために独立化したプラグインにも使用される関数
|
28 |
-
*/
|
29 |
-
function veu_get_capability_required() {
|
30 |
-
return add_filter( 'veu_get_capability_required', 'edit_theme_options' );
|
31 |
-
}
|
32 |
-
|
33 |
-
function veu_get_systemlogo_html() {
|
34 |
-
$logo = '<div class="logo_exUnit">';
|
35 |
-
$logo .= '<img src="' . apply_filters( 'vkExUnit_news_image_URL_small', vkExUnit_get_directory_uri( '/images/head_logo_ExUnit.png' ) ) . '" alt="VK ExUnit" />';
|
36 |
-
$logo .= '</div>';
|
37 |
-
$logo = apply_filters( 'veu_get_systemlogo_html', $logo );
|
38 |
-
return $logo;
|
39 |
-
}
|
40 |
-
/*
|
41 |
-
7.0 になったら削除
|
42 |
-
*/
|
43 |
-
function vkExUnit_get_capability_required() {
|
44 |
-
return veu_get_capability_required();
|
45 |
-
}
|
46 |
-
function vkExUnit_get_systemlogo() {
|
47 |
-
return veu_get_systemlogo_html();
|
48 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css/vkExUnit_admin.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.wrap.debug_mode tr.dev_object{display:table-row}
|
|
css/vkExUnit_style.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
.veu_leadTxt,p.veu_leadTxt{font-size:1.6em;line-height:150%;padding:0}.veu_caption{font-size:.8em}.fa_v4 .btn.btn-blank::after{margin-left:.7em;font-family:FontAwesome;content:"\f08e"}.fa_v5_css .btn.btn-blank::after{margin-left:.7em;font-family:Font Awesome\ 5 Free;content:"\f35d";font-weight:900}dl.veu_qaItem{display:block;overflow:hidden;border-bottom:1px dotted #ccc;padding:0 0 25px;margin:25px 0;width:100%;position:relative}dl.veu_qaItem dd,dl.veu_qaItem dt{border:none;padding-left:35px}dl.veu_qaItem dd:before,dl.veu_qaItem dt:before{position:absolute;left:0;font-size:24px;line-height:105%}dl.veu_qaItem dt{margin-bottom:15px;font-size:18px}dl.veu_qaItem dt:before{font-family:areal;content:"Q ";color:#e50000}dl.veu_qaItem dd{margin-bottom:0}dl.veu_qaItem dd:before{content:"A ";color:#337ab7;font-family:""}.veu_flowBox{display:block;overflow:hidden}.veu_flowBox:after{content:"";background:url(../images/arrow_bottom.svg) center 50% no-repeat;background-size:50px 50px;display:block;overflow:hidden;height:50px;width:50px;margin:0 auto}.veu_flowBox:last-child{padding-bottom:0;margin-bottom:30px}.veu_flowBox:last-child:after{content:"";font-size:0;background-image:none}.veu_flowBox dl{display:block;overflow:hidden;padding:20px 25px;border:3px solid #e5e5e5;margin:0}.veu_flowBox dl dd,.veu_flowBox dl dt{padding-left:0;border:none}.veu_flowBox dl dt{border-bottom:1px dotted #ccc;margin-bottom:10px;font-size:1.2em}.veu_flowBox dl dd{margin-bottom:0}.veu_flowBox dl dd h4{margin:0;padding:0}.veu_flowBox dl dd p{margin-bottom:10px}.veu_flowBox dl dd ul{margin-bottom:0}.veu_dummyImage{padding:20px;display:block;vertical-align:middle;text-align:center;background-color:#f5f5f5;border:1px solid #ccc;margin-bottom:15px}.veu_floatLeft{float:left;margin-right:20px}.veu_floatRight{float:right;margin-left:20px}.veu_feat_list{background:0 0;border:none;padding:0 0 0 2em;font-size:2em;margin-top:1.5em;position:relative}.veu_feat_list::after,.veu_feat_list::before{border:none;background:0 0}.veu_feat_list::before{position:absolute;left:0;top:-.2em;background-color:#4e7729;color:#fff;border-radius:100%;margin-right:.5em;padding:.2em .5em}.veu_feat_list_1::before{content:"1"}.veu_feat_list_2::before{content:"2"}.veu_feat_list_3::before{content:"3"}.veu_feat_list_4::before{content:"4"}.veu_feat_list_5::before{content:"5"}.veu_feat_list_6::before{content:"6"}.veu_feat_list_7::before{content:"7"}.veu_feat_list_8::before{content:"8"}.veu_feat_list_9::before{content:"9"}html{font-size:inherit}.link-list li{padding:.5em}iframe.wp-embedded-content{width:100%}.veu_adminEdit{margin-top:5px}.veu_contentAddSection{display:block;clear:both;overflow:hidden;margin-top:20px}.btn{white-space:inherit}.media{border-bottom:1px solid #e5e5e5;padding:2em 0;margin-top:0}.media:first-child{border-top:1px solid #e5e5e5}.media .postList_thumbnail{width:160px;margin-bottom:.5em;padding-right:30px;display:block;overflow:hidden;float:left}.media .postList_thumbnail a{position:relative;display:block;overflow:hidden}.media .postList_thumbnail img{width:100%;height:auto}.media .postList_thumbnail .postList_cateLabel{position:absolute;bottom:0;left:0}.media .media-heading{font-size:1.8em;line-height:1.3em;margin-top:0;margin-bottom:.5em;font-weight:400}.media .media-heading a{color:#464646}.media .media-heading a:hover{text-decoration:none}.media p{margin-bottom:0}.media a.media-body_excerpt{color:#464646}.relatedPosts h2{margin-bottom:10px}.veu_autoEyeCatchBox{display:block;overflow:hidden;margin-bottom:2em}.veu_sitemap .sectionBox{padding-top:0}.veu_sitemap .sitemap-col{padding-bottom:2em}.veu_sitemap .sitemap-col{margin-top:1em}.veu_sitemap .sitemap-col .link-list{margin-top:0;margin-bottom:0}.veu_sitemap .sitemap-col .page_item{padding:0}.veu_sitemap .sitemap-col .cat-item{padding:0}.veu_socialSet-position-before{margin-top:-1em;margin-bottom:2em}.veu_socialSet-position-after{margin-top:3em}.veu_socialSet.veu_contentAddSection ul{margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex}.veu_socialSet.veu_contentAddSection ul li{position:relative;display:block;overflow:visible;width:50%;margin:3px;padding:0;background:0 0}.veu_socialSet.veu_contentAddSection ul li.sb_icon a{display:block;overflow:hidden;padding:5px 10px;border-radius:4px;color:#fff;text-decoration:none;line-height:100%;font-size:90%}.veu_socialSet.veu_contentAddSection ul li.sb_icon a:hover{-webkit-box-shadow:none;box-shadow:none;transform:translate3d(0,2px,0);-webkit-transform:translate3d(0,2px,0)}.veu_socialSet.veu_contentAddSection ul li.sb_icon a .sns_txt{position:relative;top:-1px}.veu_socialSet.veu_contentAddSection ul li iframe{border:none}.veu_socialSet.veu_contentAddSection ul li a .icon_sns{font-size:100%;padding:5px 8px 5px 0;display:inline-block}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_facebook a{background:#425dab;-webkit-box-shadow:0 4px 0 #344e84;box-shadow:0 4px 0 #344e84}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_hatena a{background:#007fc5;-webkit-box-shadow:0 4px 0 #00679f;box-shadow:0 4px 0 #00679f}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_twitter a{background:#00abec;-webkit-box-shadow:0 4px 0 #007eaa;box-shadow:0 4px 0 #007eaa}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_google a{background:#dd4b39;-webkit-box-shadow:0 4px 0 #a03524;box-shadow:0 4px 0 #a03524}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_line a{background:#6ebd30;-webkit-box-shadow:0 4px 0 #5b9c28;box-shadow:0 4px 0 #5b9c28}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_pocket a{background:#ea4654;-webkit-box-shadow:0 4px 0 #c1303c;box-shadow:0 4px 0 #c1303c}.veu_count_sns_fb,.veu_count_sns_hb,.veu_count_sns_pocket{position:absolute;bottom:5px;right:5px;font-size:77%;line-height:1;font-weight:700}@font-face{font-weight:400;font-style:normal;font-family:vk_sns;src:url(../plugins/sns/icons/fonts/vk_sns.eot?-bq20cj);src:url(../plugins/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj) format("embedded-opentype"),url(../plugins/sns/icons/fonts/vk_sns.woff?-bq20cj) format("woff"),url(../plugins/sns/icons/fonts/vk_sns.ttf?-bq20cj) format("truetype"),url(../plugins/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns) format("svg")}[class*=" vk_icon_w_r_sns_"],[class^=vk_icon_w_r_sns_]{text-transform:none;font-weight:400;font-style:normal;font-variant:normal;font-family:vk_sns;line-height:1;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vk_icon_w_r_sns_twitter:before{content:"\e600"}.vk_icon_w_r_sns_line:before{content:"\e601"}.vk_icon_w_r_sns_hatena:before{content:"\e602"}.vk_icon_w_r_sns_google:before{content:"\e603"}.vk_icon_w_r_sns_fb:before{content:"\e604"}.vk_icon_w_r_sns_pocket:before{content:"\e605"}.veu_childPage_list{margin:2.5em 0 1em}.veu_childPage_list .childPage_list_box{display:block;margin-bottom:1.5em;width:100%;text-decoration:none}.veu_childPage_list .childPage_list_box_inner{position:relative;display:block;overflow:hidden;padding:0 20px;border:3px solid #efefef;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_childPage_list .childPage_list_title{margin-top:20px;color:#464646;font-size:16px;line-height:1.4}.veu_childPage_list .wp-post-image{float:left;margin-right:1em;margin-bottom:1em;width:30%;height:auto;border:solid 1px #ddd}.veu_childPage_list .childPage_list_body{overflow:hidden;margin-bottom:5px;color:#333;font-size:14px}.veu_childPage_list .childPage_list_body:hover{text-decoration:underline}.veu_childPage_list p{line-height:1.5em}.veu_childPage_list .childPage_list_text{overflow:hidden;margin-bottom:1em}.veu_childPage_list .childPage_list_more{float:right;margin-bottom:20px}.veu_pageList_ancestor{clear:both;margin:2.5em 0 1em;padding:20px 20px 0;border:3px solid #efefef;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_pageList_ancestor h3{margin:.5em 0}.veu_pageList_ancestor h3 a{color:#333;font-size:16px}.veu_pageList_ancestor ul.pageList{margin-top:1em;padding-left:0}.veu_pageList_ancestor ul.pageList a{display:block;padding:8px 5px;border-bottom:solid 1px #ddd;color:#333;font-size:14px}.veu_pageList_ancestor ul.pageList a:hover{text-decoration:underline}.veu_pageList_ancestor ul.pageList>.page_item{list-style:none}.veu_pageList_ancestor ul.pageList li{margin-bottom:0}.veu_pageList_ancestor ul.pageList ul{margin:0;padding-left:0;padding-bottom:0}.veu_pageList_ancestor ul.pageList ul li{position:relative;list-style:none}.veu_pageList_ancestor ul.pageList ul li:before{position:absolute;top:.26em;left:5px;display:inline-block}.veu_pageList_ancestor ul.pageList ul li a{padding-left:20px}.veu_pageList_ancestor ul.pageList ul li li a{padding-left:30px}.veu_pageList_ancestor ul.pageList ul li li li a{padding-left:40px}.veu_pageList_ancestor .current_page_item>a{font-weight:700}.veu_followSet{margin:30px 0;display:table;table-layout:fixed;width:100%;background-color:#2b2b2b;color:#fff}.veu_followSet .followSet_img{display:table-cell;min-width:240px;background-position:center;background-size:cover}.veu_followSet .followSet_body{display:table-cell;padding:15px;text-align:center;vertical-align:middle;line-height:1.4;font-size:20px}.veu_followSet .followSet_fb_page{margin-top:0;display:block;width:100%;-webkit-transform:scale(1.2);transform:scale(1.2)}.veu_followSet .followSet_tw_follow{width:100%;padding:15px 0 0}.veu_followSet .followSet_feedly{text-align:center}.veu_cta{display:block;overflow:hidden;margin-top:30px;margin-bottom:30px;background-color:#efefef}.veu_cta .cta_title{display:block;overflow:hidden;margin:0;padding:12px 20px 10px;background-color:#333;color:#fff;font-size:22px;line-height:1.2em}.veu_cta .cta_body{display:block;overflow:hidden;padding:1.5em 1.5em 2em;line-height:170%}.veu_cta .cta_body_image{margin-bottom:1.5em}.veu_cta .cta_body_image img{max-width:250px}.veu_cta .cta_body_image_center{display:block;overflow:hidden;text-align:center}.veu_cta .cta_body_image_center img{display:block;margin:0 auto 15px;max-width:100%}.veu_cta .cta_body_txt{display:block;overflow:hidden}.veu_cta .cta_body_link{clear:both;margin-top:1.5em}.veu_contact{display:block;overflow:hidden}.veu_contact .contact_frame{display:block;overflow:hidden;padding:25px 24px 21px;border:3px solid #efefef;background-color:#f9f9f9;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_contact .contact_txt_catch,.veu_contact .contact_txt_tel,.veu_contact .contact_txt_time{display:block;overflow:hidden}.veu_contact .contact_txt_catch,.veu_contact .contact_txt_time{font-size:14px;line-height:128.6%}.veu_contact .contact_txt_tel{padding:4px 0;font-size:28px;line-height:105%;font-weight:700}.veu_contact .contact_txt_tel_icon{margin-right:.3rem}.veu_contact .contact_bt_subTxt{display:block;overflow:hidden;font-size:12px;margin-top:.4rem}.veu_contact .contact_txt{text-align:center}.veu_contact .contact_bt{display:block}.widget .veu_contact>.contact_bt{display:inline-block;float:none}.veu_insertAds{margin-top:1em;margin-bottom:2em}.veu_relatedPosts>.row{display:-ms-flexbox;display:-webkit-box;display:flex;margin:0;margin-right:-3%;-ms-flex-wrap:wrap;flex-wrap:wrap}.veu_relatedPosts .relatedPosts_item{float:none;margin-right:2.9%;padding-right:0;padding-left:0;width:47%;border-bottom:solid 1px #e5e5e5}.veu_relatedPosts .relatedPosts_item>.media:first-child{border:none}.veu_relatedPosts .relatedPosts_item>.media{padding:1em 0 .8em;margin-top:0;border:none}.veu_relatedPosts .relatedPosts_item>.media .media-body{font-size:14px}.veu_relatedPosts .relatedPosts_item>.media .postList_thumbnail{width:80px;padding-right:15px;margin-bottom:0}.veu_relatedPosts .relatedPosts_item>.media .media-heading{font-size:14px}.veu_relatedPosts .relatedPosts_item:nth-child(1){border-top:solid 1px #e5e5e5}.veu_relatedPosts .relatedPosts_item:nth-child(2){border-top:solid 1px #e5e5e5}.page_top_btn{position:fixed;right:2%;bottom:3%;z-index:99999;width:40px;height:38px;text-indent:100%;white-space:nowrap;overflow:hidden;border:none;background:rgba(0,0,0,.8);outline:1px solid rgba(0,0,0,.8);border:1px solid rgba(255,255,255,.8);background-image:url(../images/to-top-btn-icon.svg);background-size:50%;background-repeat:no-repeat;background-position:center;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s}.page_top_btn:hover{-webkit-transition:opacity .3s;transition:opacity .3s}.scrolled .page_top_btn{display:block;opacity:1}.veu_fbPagePlugin .fbPagePlugin_body{margin:0 auto;border:4px solid #efefef;background-color:#f9f9f9;text-align:center}iframe.twitter-timeline{margin-right:auto;margin-left:auto;width:740px!important}.veu_postList{margin-bottom:30px}.veu_postList .subSection-title,.veu_postList h1.mainSection-title{margin-bottom:0}.veu_postList ul.postList{margin:0;padding:0}.veu_postList ul.postList li{display:block;clear:both;overflow:hidden;margin:0;padding:15px 0;border-bottom:1px dotted #666;line-height:1.4em}.veu_postList .postList a{color:#464646;text-decoration:none}.veu_postList .postList a:hover{text-decoration:underline}.veu_postList .postList_title{display:block;clear:both;margin:3px 0 0}.veu_postList .postList_meta_items{font-size:14px;color:#666}.veu_postList .postList_date{margin-right:10px;color:#d44950}.veu_postList .postList_date:before{content:"";margin-right:0}.veu_postList .postList_terms a{margin-right:3px;padding:2px 5px 1px;border-radius:3px;background-color:#efefef;font-size:12px}.veu_postList .postList_more{margin:10px 5px 0 0;text-align:right}.veu_postList .postList_miniThumb .postList_item{display:block;overflow:hidden;clear:both;position:relative;padding:15px 0;border-bottom:1px dotted #666;margin-bottom:0}.veu_postList .postList_miniThumb .postList_thumbnail{float:left;margin-right:15px}.veu_postList .postList_miniThumb .postList_thumbnail a{position:relative;display:block;overflow:hidden;border:1px solid #e5e5e5}.veu_postList .postList_miniThumb .postList_thumbnail img{width:80px;height:auto}.veu_postList .postList_miniThumb .postList_body{display:block;overflow:hidden;width:auto}.veu_postList .postList_miniThumb .postList_title{font-size:14px}.mainSection .veu_postList.pt_0 .postList.postList_miniThumb{padding:0;margin-left:0;margin-right:0}.veu_profile .profile{overflow:hidden}.veu_profile .media_outer{position:relative;display:block;overflow:hidden;margin:.8em 0 .8em;-webkit-box-sizing:border-box;box-sizing:border-box}.veu_profile .media_outer img{max-width:100%;height:auto}.veu_profile .media_round{border-radius:50%;width:120px;height:120px;position:relative}.veu_profile .media_round img{position:absolute;left:-9999px}.veu_profile .media_center{margin-left:auto;margin-right:auto}.veu_profile .media_center img{display:block;margin-left:auto;margin-right:auto}.veu_profile .media_float{float:left;margin-right:1em}.veu_profile .media_float+.profile_text{padding-top:.8em}.veu_profile .profile_text{margin-bottom:1em;font-size:14px}.veu_profile .sns_btns{margin:0;padding:0;width:100%}.veu_profile .sns_btns li{float:left;margin-right:.45em;list-style:none;text-align:center}.veu_profile .sns_btns a{display:block;position:relative;width:40px;height:40px;border-radius:23px;color:#fff;text-decoration:none;font-size:20px}.veu_profile .sns_btns a:hover{color:#fff;text-decoration:none;opacity:.8}.veu_profile .sns_btns .icon{position:absolute;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%)}.veu_profile .sns_btns .facebook_btn a{background:#3b5998}.veu_profile .sns_btns .twitter_btn a{background:#55acee}.veu_profile .sns_btns .mail_btn a{background:#2f915f}.veu_profile .sns_btns .youtube_btn a{background:#c81d1c}.veu_profile .sns_btns .rss_btn a{background:#f26522}.veu_profile .sns_btns .instagram_btn a{background:#3f729b}.veu_profile .sns_btns .linkedin_btn a{background:#0077b5}.veu_3prArea .subSection-title{font-size:18px;margin-top:.8em}.veu_3prArea .summary{margin-bottom:.5em;font-size:14px;line-height:1.6em}.veu_3prArea .linkurl a{text-decoration:none}.veu_3prArea_image{margin-bottom:.8em;border:1px solid #e5e5e5}.veu_3prArea_image .image_pc{display:block}.veu_3prArea_image .image_sp{display:none}.veu_3prArea_image img{width:100%}.veu_3prArea_image_link{border:1px solid #fff;display:block;overflow:hidden}.prBlock a{color:#333}.prBlock a:hover{color:#333;text-decoration:none}.prBlock a .prBlock_summary:hover{text-decoration:underline}.prBlock .prBlock_icon_outer{display:block;position:relative;margin:0 auto;width:80px;height:80px;border-radius:50%}.prBlock .prBlock_icon{position:absolute;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%);font-size:36px}.prBlock .prBlock_title{margin-top:.9em;margin-bottom:.7em;text-align:center;font-size:18px;line-height:1.4em}.prBlock .prBlock_image{position:relative;display:block;width:120px;height:120px;margin:0 auto;overflow:hidden;border-radius:50%;text-indent:-9999px}.prBlock .prBlock_summary{margin-bottom:.5em;text-align:center;font-size:14px;line-height:1.6em}.veu_button i,.veu_button svg{margin-left:.3em;margin-right:.3em}.veu_button .button_mainText,.veu_button .button_subText{display:block}.veu_button .btn.btn-sm{padding-top:.6em;padding-bottom:.45em}.veu_button .btn{padding-top:.8em;padding-bottom:.6em}.veu_button .btn.btn-lg{padding-top:.8em;padding-bottom:.7em}.veu_banner{text-align:center;display:block;overflow:hidden}@media (min-width:481px){.veu_followSet .followSet_body{padding:40px}.veu_followSet .followSet_title{font-size:18px;margin-bottom:10px}}@media (min-width:541px){.veu_childPage_list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.veu_childPage_list .childPage_list_box{width:48%}}@media (min-width:768px){.veu_leadTxt,p.veu_leadTxt{font-size:2em;margin-bottom:.7em}.veu_cta .cta_body_image_right{float:right;margin-left:30px}.veu_cta .cta_body_image_left{float:left;margin-right:30px}}@media (min-width:992px){.mainSection .veu_postList.pt_0.postList_item .postList_thumbnail{margin-right:30px;margin-left:0}.mainSection .veu_postList.pt_0.postList_item.even .postList_thumbnail{margin-left:30px;margin-right:0}}@media (min-width:1200px){.veu_contact p.contact_txt{margin-bottom:0}.veu_contact .contact_txt{float:left;text-align:left}.veu_contact .contact_bt{float:right;padding:.7em 2em}}@media screen and (max-width:992px){.prBlock{margin-bottom:1.5em}}@media (max-width:971px){.veu_insertAds{margin-bottom:.5em}.veu_insertAds .col-md-6{margin-bottom:1em}}@media (max-width:768px){.veu_relatedPosts .relatedPosts_item{display:block;width:100%}.veu_relatedPosts .relatedPosts_item:nth-child(2){border-top:none}}@media screen and (max-width:768px){.veu_3prArea .prArea{margin-bottom:1em;display:block;overflow:hidden}.veu_3prArea .image_pc{display:none}.veu_3prArea .image_sp{display:block}.veu_3prArea .linkurl{margin-bottom:1.5em}.veu_3prArea_image{width:138px;margin:0 1em 0 0;float:left}}@media (max-width:767px){.media .postList_thumbnail{padding-right:20px}.media .media-body .media-heading{font-size:1.2em;line-height:1.3em;margin-bottom:.5em}.veu_socialSet.veu_contentAddSection ul{-ms-flex-wrap:wrap;flex-wrap:wrap}.veu_socialSet.veu_contentAddSection ul li{width:48%;margin-bottom:9px}.veu_socialSet.veu_contentAddSection ul li:nth-child(even){margin-right:0}.veu_socialSet.veu_contentAddSection ul li.sb_icon a{padding:8px 10px}.pocket-count,.veu_count_sns_fb,.veu_count_sns_hb{bottom:2px}.veu_childPage_list .wp-post-image{width:25%}.veu_cta .cta_body_image img{display:block;margin:0 auto 1.5em;max-width:100%}}@media (max-width:500px){.media .postList_thumbnail{width:100px}}@media (max-width:480px){.veu_followSet .followSet_title{font-size:12px;margin-bottom:0}}
|
|
css/vkExUnit_style_in_bs.css
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
/*!
|
2 |
-
* Bootstrap v3.3.7 (http://getbootstrap.com)
|
3 |
-
* Copyright 2011-2017 Twitter, Inc.
|
4 |
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
5 |
-
*//*!
|
6 |
-
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=a2c5715a18a0533068e5185c0f8861a9)
|
7 |
-
* Config saved to config.json and https://gist.github.com/a2c5715a18a0533068e5185c0f8861a9
|
8 |
-
*//*!
|
9 |
-
* Bootstrap v3.3.7 (http://getbootstrap.com)
|
10 |
-
* Copyright 2011-2016 Twitter, Inc.
|
11 |
-
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
12 |
-
*//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */[role=button]{cursor:pointer}.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{overflow-x:auto;min-height:.01%}.btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;opacity:.65;-webkit-box-shadow:none;box-shadow:none}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{color:#337ab7;font-weight:400;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.veu_leadTxt,p.veu_leadTxt{font-size:1.6em;line-height:150%;padding:0}.veu_caption{font-size:.8em}.fa_v4 .btn.btn-blank::after{margin-left:.7em;font-family:FontAwesome;content:"\f08e"}.fa_v5_css .btn.btn-blank::after{margin-left:.7em;font-family:Font Awesome\ 5 Free;content:"\f35d";font-weight:900}dl.veu_qaItem{display:block;overflow:hidden;border-bottom:1px dotted #ccc;padding:0 0 25px;margin:25px 0;width:100%;position:relative}dl.veu_qaItem dd,dl.veu_qaItem dt{border:none;padding-left:35px}dl.veu_qaItem dd:before,dl.veu_qaItem dt:before{position:absolute;left:0;font-size:24px;line-height:105%}dl.veu_qaItem dt{margin-bottom:15px;font-size:18px}dl.veu_qaItem dt:before{font-family:areal;content:"Q ";color:#e50000}dl.veu_qaItem dd{margin-bottom:0}dl.veu_qaItem dd:before{content:"A ";color:#337ab7;font-family:""}.veu_flowBox{display:block;overflow:hidden}.veu_flowBox:after{content:"";background:url(../images/arrow_bottom.svg) center 50% no-repeat;background-size:50px 50px;display:block;overflow:hidden;height:50px;width:50px;margin:0 auto}.veu_flowBox:last-child{padding-bottom:0;margin-bottom:30px}.veu_flowBox:last-child:after{content:"";font-size:0;background-image:none}.veu_flowBox dl{display:block;overflow:hidden;padding:20px 25px;border:3px solid #e5e5e5;margin:0}.veu_flowBox dl dd,.veu_flowBox dl dt{padding-left:0;border:none}.veu_flowBox dl dt{border-bottom:1px dotted #ccc;margin-bottom:10px;font-size:1.2em}.veu_flowBox dl dd{margin-bottom:0}.veu_flowBox dl dd h4{margin:0;padding:0}.veu_flowBox dl dd p{margin-bottom:10px}.veu_flowBox dl dd ul{margin-bottom:0}.veu_dummyImage{padding:20px;display:block;vertical-align:middle;text-align:center;background-color:#f5f5f5;border:1px solid #ccc;margin-bottom:15px}.veu_floatLeft{float:left;margin-right:20px}.veu_floatRight{float:right;margin-left:20px}.veu_feat_list{background:0 0;border:none;padding:0 0 0 2em;font-size:2em;margin-top:1.5em;position:relative}.veu_feat_list::after,.veu_feat_list::before{border:none;background:0 0}.veu_feat_list::before{position:absolute;left:0;top:-.2em;background-color:#4e7729;color:#fff;border-radius:100%;margin-right:.5em;padding:.2em .5em}.veu_feat_list_1::before{content:"1"}.veu_feat_list_2::before{content:"2"}.veu_feat_list_3::before{content:"3"}.veu_feat_list_4::before{content:"4"}.veu_feat_list_5::before{content:"5"}.veu_feat_list_6::before{content:"6"}.veu_feat_list_7::before{content:"7"}.veu_feat_list_8::before{content:"8"}.veu_feat_list_9::before{content:"9"}html{font-size:inherit}.link-list li{padding:.5em}iframe.wp-embedded-content{width:100%}.veu_adminEdit{margin-top:5px}.veu_contentAddSection{display:block;clear:both;overflow:hidden;margin-top:20px}.btn{white-space:inherit}.media{border-bottom:1px solid #e5e5e5;padding:2em 0;margin-top:0}.media:first-child{border-top:1px solid #e5e5e5}.media .postList_thumbnail{width:160px;margin-bottom:.5em;padding-right:30px;display:block;overflow:hidden;float:left}.media .postList_thumbnail a{position:relative;display:block;overflow:hidden}.media .postList_thumbnail img{width:100%;height:auto}.media .postList_thumbnail .postList_cateLabel{position:absolute;bottom:0;left:0}.media .media-heading{font-size:1.8em;line-height:1.3em;margin-top:0;margin-bottom:.5em;font-weight:400}.media .media-heading a{color:#464646}.media .media-heading a:hover{text-decoration:none}.media p{margin-bottom:0}.media a.media-body_excerpt{color:#464646}.relatedPosts h2{margin-bottom:10px}.veu_autoEyeCatchBox{display:block;overflow:hidden;margin-bottom:2em}.veu_sitemap .sectionBox{padding-top:0}.veu_sitemap .sitemap-col{padding-bottom:2em}.veu_sitemap .sitemap-col{margin-top:1em}.veu_sitemap .sitemap-col .link-list{margin-top:0;margin-bottom:0}.veu_sitemap .sitemap-col .page_item{padding:0}.veu_sitemap .sitemap-col .cat-item{padding:0}.veu_socialSet-position-before{margin-top:-1em;margin-bottom:2em}.veu_socialSet-position-after{margin-top:3em}.veu_socialSet.veu_contentAddSection ul{margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex}.veu_socialSet.veu_contentAddSection ul li{position:relative;display:block;overflow:visible;width:50%;margin:3px;padding:0;background:0 0}.veu_socialSet.veu_contentAddSection ul li.sb_icon a{display:block;overflow:hidden;padding:5px 10px;border-radius:4px;color:#fff;text-decoration:none;line-height:100%;font-size:90%}.veu_socialSet.veu_contentAddSection ul li.sb_icon a:hover{-webkit-box-shadow:none;box-shadow:none;transform:translate3d(0,2px,0);-webkit-transform:translate3d(0,2px,0)}.veu_socialSet.veu_contentAddSection ul li.sb_icon a .sns_txt{position:relative;top:-1px}.veu_socialSet.veu_contentAddSection ul li iframe{border:none}.veu_socialSet.veu_contentAddSection ul li a .icon_sns{font-size:100%;padding:5px 8px 5px 0;display:inline-block}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_facebook a{background:#425dab;-webkit-box-shadow:0 4px 0 #344e84;box-shadow:0 4px 0 #344e84}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_hatena a{background:#007fc5;-webkit-box-shadow:0 4px 0 #00679f;box-shadow:0 4px 0 #00679f}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_twitter a{background:#00abec;-webkit-box-shadow:0 4px 0 #007eaa;box-shadow:0 4px 0 #007eaa}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_google a{background:#dd4b39;-webkit-box-shadow:0 4px 0 #a03524;box-shadow:0 4px 0 #a03524}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_line a{background:#6ebd30;-webkit-box-shadow:0 4px 0 #5b9c28;box-shadow:0 4px 0 #5b9c28}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_pocket a{background:#ea4654;-webkit-box-shadow:0 4px 0 #c1303c;box-shadow:0 4px 0 #c1303c}.veu_count_sns_fb,.veu_count_sns_hb,.veu_count_sns_pocket{position:absolute;bottom:5px;right:5px;font-size:77%;line-height:1;font-weight:700}@font-face{font-weight:400;font-style:normal;font-family:vk_sns;src:url(../plugins/sns/icons/fonts/vk_sns.eot?-bq20cj);src:url(../plugins/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj) format("embedded-opentype"),url(../plugins/sns/icons/fonts/vk_sns.woff?-bq20cj) format("woff"),url(../plugins/sns/icons/fonts/vk_sns.ttf?-bq20cj) format("truetype"),url(../plugins/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns) format("svg")}[class*=" vk_icon_w_r_sns_"],[class^=vk_icon_w_r_sns_]{text-transform:none;font-weight:400;font-style:normal;font-variant:normal;font-family:vk_sns;line-height:1;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vk_icon_w_r_sns_twitter:before{content:"\e600"}.vk_icon_w_r_sns_line:before{content:"\e601"}.vk_icon_w_r_sns_hatena:before{content:"\e602"}.vk_icon_w_r_sns_google:before{content:"\e603"}.vk_icon_w_r_sns_fb:before{content:"\e604"}.vk_icon_w_r_sns_pocket:before{content:"\e605"}.veu_childPage_list{margin:2.5em 0 1em}.veu_childPage_list .childPage_list_box{display:block;margin-bottom:1.5em;width:100%;text-decoration:none}.veu_childPage_list .childPage_list_box_inner{position:relative;display:block;overflow:hidden;padding:0 20px;border:3px solid #efefef;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_childPage_list .childPage_list_title{margin-top:20px;color:#464646;font-size:16px;line-height:1.4}.veu_childPage_list .wp-post-image{float:left;margin-right:1em;margin-bottom:1em;width:30%;height:auto;border:solid 1px #ddd}.veu_childPage_list .childPage_list_body{overflow:hidden;margin-bottom:5px;color:#333;font-size:14px}.veu_childPage_list .childPage_list_body:hover{text-decoration:underline}.veu_childPage_list p{line-height:1.5em}.veu_childPage_list .childPage_list_text{overflow:hidden;margin-bottom:1em}.veu_childPage_list .childPage_list_more{float:right;margin-bottom:20px}.veu_pageList_ancestor{clear:both;margin:2.5em 0 1em;padding:20px 20px 0;border:3px solid #efefef;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_pageList_ancestor h3{margin:.5em 0}.veu_pageList_ancestor h3 a{color:#333;font-size:16px}.veu_pageList_ancestor ul.pageList{margin-top:1em;padding-left:0}.veu_pageList_ancestor ul.pageList a{display:block;padding:8px 5px;border-bottom:solid 1px #ddd;color:#333;font-size:14px}.veu_pageList_ancestor ul.pageList a:hover{text-decoration:underline}.veu_pageList_ancestor ul.pageList>.page_item{list-style:none}.veu_pageList_ancestor ul.pageList li{margin-bottom:0}.veu_pageList_ancestor ul.pageList ul{margin:0;padding-left:0;padding-bottom:0}.veu_pageList_ancestor ul.pageList ul li{position:relative;list-style:none}.veu_pageList_ancestor ul.pageList ul li:before{position:absolute;top:.26em;left:5px;display:inline-block}.veu_pageList_ancestor ul.pageList ul li a{padding-left:20px}.veu_pageList_ancestor ul.pageList ul li li a{padding-left:30px}.veu_pageList_ancestor ul.pageList ul li li li a{padding-left:40px}.veu_pageList_ancestor .current_page_item>a{font-weight:700}.veu_followSet{margin:30px 0;display:table;table-layout:fixed;width:100%;background-color:#2b2b2b;color:#fff}.veu_followSet .followSet_img{display:table-cell;min-width:240px;background-position:center;background-size:cover}.veu_followSet .followSet_body{display:table-cell;padding:15px;text-align:center;vertical-align:middle;line-height:1.4;font-size:20px}.veu_followSet .followSet_fb_page{margin-top:0;display:block;width:100%;-webkit-transform:scale(1.2);transform:scale(1.2)}.veu_followSet .followSet_tw_follow{width:100%;padding:15px 0 0}.veu_followSet .followSet_feedly{text-align:center}.veu_cta{display:block;overflow:hidden;margin-top:30px;margin-bottom:30px;background-color:#efefef}.veu_cta .cta_title{display:block;overflow:hidden;margin:0;padding:12px 20px 10px;background-color:#333;color:#fff;font-size:22px;line-height:1.2em}.veu_cta .cta_body{display:block;overflow:hidden;padding:1.5em 1.5em 2em;line-height:170%}.veu_cta .cta_body_image{margin-bottom:1.5em}.veu_cta .cta_body_image img{max-width:250px}.veu_cta .cta_body_image_center{display:block;overflow:hidden;text-align:center}.veu_cta .cta_body_image_center img{display:block;margin:0 auto 15px;max-width:100%}.veu_cta .cta_body_txt{display:block;overflow:hidden}.veu_cta .cta_body_link{clear:both;margin-top:1.5em}.veu_contact{display:block;overflow:hidden}.veu_contact .contact_frame{display:block;overflow:hidden;padding:25px 24px 21px;border:3px solid #efefef;background-color:#f9f9f9;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_contact .contact_txt_catch,.veu_contact .contact_txt_tel,.veu_contact .contact_txt_time{display:block;overflow:hidden}.veu_contact .contact_txt_catch,.veu_contact .contact_txt_time{font-size:14px;line-height:128.6%}.veu_contact .contact_txt_tel{padding:4px 0;font-size:28px;line-height:105%;font-weight:700}.veu_contact .contact_txt_tel_icon{margin-right:.3rem}.veu_contact .contact_bt_subTxt{display:block;overflow:hidden;font-size:12px;margin-top:.4rem}.veu_contact .contact_txt{text-align:center}.veu_contact .contact_bt{display:block}.widget .veu_contact>.contact_bt{display:inline-block;float:none}.veu_insertAds{margin-top:1em;margin-bottom:2em}.veu_relatedPosts>.row{display:-ms-flexbox;display:-webkit-box;display:flex;margin:0;margin-right:-3%;-ms-flex-wrap:wrap;flex-wrap:wrap}.veu_relatedPosts .relatedPosts_item{float:none;margin-right:2.9%;padding-right:0;padding-left:0;width:47%;border-bottom:solid 1px #e5e5e5}.veu_relatedPosts .relatedPosts_item>.media:first-child{border:none}.veu_relatedPosts .relatedPosts_item>.media{padding:1em 0 .8em;margin-top:0;border:none}.veu_relatedPosts .relatedPosts_item>.media .media-body{font-size:14px}.veu_relatedPosts .relatedPosts_item>.media .postList_thumbnail{width:80px;padding-right:15px;margin-bottom:0}.veu_relatedPosts .relatedPosts_item>.media .media-heading{font-size:14px}.veu_relatedPosts .relatedPosts_item:nth-child(1){border-top:solid 1px #e5e5e5}.veu_relatedPosts .relatedPosts_item:nth-child(2){border-top:solid 1px #e5e5e5}.page_top_btn{position:fixed;right:2%;bottom:3%;z-index:99999;width:40px;height:38px;text-indent:100%;white-space:nowrap;overflow:hidden;border:none;background:rgba(0,0,0,.8);outline:1px solid rgba(0,0,0,.8);border:1px solid rgba(255,255,255,.8);background-image:url(../images/to-top-btn-icon.svg);background-size:50%;background-repeat:no-repeat;background-position:center;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s}.page_top_btn:hover{-webkit-transition:opacity .3s;transition:opacity .3s}.scrolled .page_top_btn{display:block;opacity:1}.veu_fbPagePlugin .fbPagePlugin_body{margin:0 auto;border:4px solid #efefef;background-color:#f9f9f9;text-align:center}iframe.twitter-timeline{margin-right:auto;margin-left:auto;width:740px!important}.veu_postList{margin-bottom:30px}.veu_postList .subSection-title,.veu_postList h1.mainSection-title{margin-bottom:0}.veu_postList ul.postList{margin:0;padding:0}.veu_postList ul.postList li{display:block;clear:both;overflow:hidden;margin:0;padding:15px 0;border-bottom:1px dotted #666;line-height:1.4em}.veu_postList .postList a{color:#464646;text-decoration:none}.veu_postList .postList a:hover{text-decoration:underline}.veu_postList .postList_title{display:block;clear:both;margin:3px 0 0}.veu_postList .postList_meta_items{font-size:14px;color:#666}.veu_postList .postList_date{margin-right:10px;color:#d44950}.veu_postList .postList_date:before{content:"";margin-right:0}.veu_postList .postList_terms a{margin-right:3px;padding:2px 5px 1px;border-radius:3px;background-color:#efefef;font-size:12px}.veu_postList .postList_more{margin:10px 5px 0 0;text-align:right}.veu_postList .postList_miniThumb .postList_item{display:block;overflow:hidden;clear:both;position:relative;padding:15px 0;border-bottom:1px dotted #666;margin-bottom:0}.veu_postList .postList_miniThumb .postList_thumbnail{float:left;margin-right:15px}.veu_postList .postList_miniThumb .postList_thumbnail a{position:relative;display:block;overflow:hidden;border:1px solid #e5e5e5}.veu_postList .postList_miniThumb .postList_thumbnail img{width:80px;height:auto}.veu_postList .postList_miniThumb .postList_body{display:block;overflow:hidden;width:auto}.veu_postList .postList_miniThumb .postList_title{font-size:14px}.mainSection .veu_postList.pt_0 .postList.postList_miniThumb{padding:0;margin-left:0;margin-right:0}.veu_profile .profile{overflow:hidden}.veu_profile .media_outer{position:relative;display:block;overflow:hidden;margin:.8em 0 .8em;-webkit-box-sizing:border-box;box-sizing:border-box}.veu_profile .media_outer img{max-width:100%;height:auto}.veu_profile .media_round{border-radius:50%;width:120px;height:120px;position:relative}.veu_profile .media_round img{position:absolute;left:-9999px}.veu_profile .media_center{margin-left:auto;margin-right:auto}.veu_profile .media_center img{display:block;margin-left:auto;margin-right:auto}.veu_profile .media_float{float:left;margin-right:1em}.veu_profile .media_float+.profile_text{padding-top:.8em}.veu_profile .profile_text{margin-bottom:1em;font-size:14px}.veu_profile .sns_btns{margin:0;padding:0;width:100%}.veu_profile .sns_btns li{float:left;margin-right:.45em;list-style:none;text-align:center}.veu_profile .sns_btns a{display:block;position:relative;width:40px;height:40px;border-radius:23px;color:#fff;text-decoration:none;font-size:20px}.veu_profile .sns_btns a:hover{color:#fff;text-decoration:none;opacity:.8}.veu_profile .sns_btns .icon{position:absolute;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%)}.veu_profile .sns_btns .facebook_btn a{background:#3b5998}.veu_profile .sns_btns .twitter_btn a{background:#55acee}.veu_profile .sns_btns .mail_btn a{background:#2f915f}.veu_profile .sns_btns .youtube_btn a{background:#c81d1c}.veu_profile .sns_btns .rss_btn a{background:#f26522}.veu_profile .sns_btns .instagram_btn a{background:#3f729b}.veu_profile .sns_btns .linkedin_btn a{background:#0077b5}.veu_3prArea .subSection-title{font-size:18px;margin-top:.8em}.veu_3prArea .summary{margin-bottom:.5em;font-size:14px;line-height:1.6em}.veu_3prArea .linkurl a{text-decoration:none}.veu_3prArea_image{margin-bottom:.8em;border:1px solid #e5e5e5}.veu_3prArea_image .image_pc{display:block}.veu_3prArea_image .image_sp{display:none}.veu_3prArea_image img{width:100%}.veu_3prArea_image_link{border:1px solid #fff;display:block;overflow:hidden}.prBlock a{color:#333}.prBlock a:hover{color:#333;text-decoration:none}.prBlock a .prBlock_summary:hover{text-decoration:underline}.prBlock .prBlock_icon_outer{display:block;position:relative;margin:0 auto;width:80px;height:80px;border-radius:50%}.prBlock .prBlock_icon{position:absolute;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%);font-size:36px}.prBlock .prBlock_title{margin-top:.9em;margin-bottom:.7em;text-align:center;font-size:18px;line-height:1.4em}.prBlock .prBlock_image{position:relative;display:block;width:120px;height:120px;margin:0 auto;overflow:hidden;border-radius:50%;text-indent:-9999px}.prBlock .prBlock_summary{margin-bottom:.5em;text-align:center;font-size:14px;line-height:1.6em}.veu_button i,.veu_button svg{margin-left:.3em;margin-right:.3em}.veu_button .button_mainText,.veu_button .button_subText{display:block}.veu_button .btn.btn-sm{padding-top:.6em;padding-bottom:.45em}.veu_button .btn{padding-top:.8em;padding-bottom:.6em}.veu_button .btn.btn-lg{padding-top:.8em;padding-bottom:.7em}.veu_banner{text-align:center;display:block;overflow:hidden}@media (min-width:481px){.veu_followSet .followSet_body{padding:40px}.veu_followSet .followSet_title{font-size:18px;margin-bottom:10px}}@media (min-width:541px){.veu_childPage_list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.veu_childPage_list .childPage_list_box{width:48%}}@media (min-width:768px){.container{width:750px}.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}.veu_leadTxt,p.veu_leadTxt{font-size:2em;margin-bottom:.7em}.veu_cta .cta_body_image_right{float:right;margin-left:30px}.veu_cta .cta_body_image_left{float:left;margin-right:30px}}@media (min-width:992px){.container{width:970px}.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}.mainSection .veu_postList.pt_0.postList_item .postList_thumbnail{margin-right:30px;margin-left:0}.mainSection .veu_postList.pt_0.postList_item.even .postList_thumbnail{margin-left:30px;margin-right:0}}@media (min-width:1200px){.container{width:1170px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}.veu_contact p.contact_txt{margin-bottom:0}.veu_contact .contact_txt{float:left;text-align:left}.veu_contact .contact_bt{float:right;padding:.7em 2em}}@media screen and (max-width:992px){.prBlock{margin-bottom:1.5em}}@media (max-width:971px){.veu_insertAds{margin-bottom:.5em}.veu_insertAds .col-md-6{margin-bottom:1em}}@media (max-width:768px){.veu_relatedPosts .relatedPosts_item{display:block;width:100%}.veu_relatedPosts .relatedPosts_item:nth-child(2){border-top:none}}@media screen and (max-width:768px){.veu_3prArea .prArea{margin-bottom:1em;display:block;overflow:hidden}.veu_3prArea .image_pc{display:none}.veu_3prArea .image_sp{display:block}.veu_3prArea .linkurl{margin-bottom:1.5em}.veu_3prArea_image{width:138px;margin:0 1em 0 0;float:left}}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}@media (max-width:767px){.media .postList_thumbnail{padding-right:20px}.media .media-body .media-heading{font-size:1.2em;line-height:1.3em;margin-bottom:.5em}.veu_socialSet.veu_contentAddSection ul{-ms-flex-wrap:wrap;flex-wrap:wrap}.veu_socialSet.veu_contentAddSection ul li{width:48%;margin-bottom:9px}.veu_socialSet.veu_contentAddSection ul li:nth-child(even){margin-right:0}.veu_socialSet.veu_contentAddSection ul li.sb_icon a{padding:8px 10px}.pocket-count,.veu_count_sns_fb,.veu_count_sns_hb{bottom:2px}.veu_childPage_list .wp-post-image{width:25%}.veu_cta .cta_body_image img{display:block;margin:0 auto 1.5em;max-width:100%}}@media (max-width:500px){.media .postList_thumbnail{width:100px}}@media (max-width:480px){.veu_followSet .followSet_title{font-size:12px;margin-bottom:0}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/css-customize/css-customize.php
CHANGED
@@ -16,7 +16,7 @@ class veu_css_customize {
|
|
16 |
// 編集画面への反映
|
17 |
// add_filter( 'tiny_mce_before_init', array( $this, 'css_customize_push_editor_css' ) );
|
18 |
//
|
19 |
-
add_action( 'admin_menu', array( $this, 'css_customize_menu' ) );
|
20 |
add_action( 'vkExUnit_action_adminbar', array( $this, 'admin_bar' ) );
|
21 |
require_once( dirname( __FILE__ ) . '/css-customize-single.php' );
|
22 |
|
16 |
// 編集画面への反映
|
17 |
// add_filter( 'tiny_mce_before_init', array( $this, 'css_customize_push_editor_css' ) );
|
18 |
//
|
19 |
+
add_action( 'admin_menu', array( $this, 'css_customize_menu' ), 20 );
|
20 |
add_action( 'vkExUnit_action_adminbar', array( $this, 'admin_bar' ) );
|
21 |
require_once( dirname( __FILE__ ) . '/css-customize-single.php' );
|
22 |
|
inc/font-awesome/package/versions/5.6.0/LICENSE.txt
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/css/all.min.css
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/js/all.min.js
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/metadata/categories.yml
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/metadata/icons.json
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/metadata/icons.yml
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/metadata/shims.json
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/metadata/shims.yml
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/metadata/sponsors.yml
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/sprites/brands.svg
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/sprites/regular.svg
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/sprites/solid.svg
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-brands-400.eot
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-brands-400.svg
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-brands-400.ttf
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-brands-400.woff
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-brands-400.woff2
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-regular-400.eot
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-regular-400.svg
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-regular-400.ttf
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-regular-400.woff
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-regular-400.woff2
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-solid-900.eot
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-solid-900.svg
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-solid-900.ttf
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-solid-900.woff
CHANGED
File without changes
|
inc/font-awesome/package/versions/5.6.0/webfonts/fa-solid-900.woff2
CHANGED
File without changes
|
inc/{other_widget → other-widget}/js/admin-widget.js
RENAMED
File without changes
|
inc/{other_widget/other_widget.php → other-widget/other-widget.php}
RENAMED
File without changes
|
inc/{other_widget → other-widget}/widget-3pr-area.php
RENAMED
File without changes
|
inc/{other_widget → other-widget}/widget-archives.php
RENAMED
File without changes
|
inc/{other_widget → other-widget}/widget-banner.php
RENAMED
File without changes
|
inc/{other_widget → other-widget}/widget-button.php
RENAMED
File without changes
|
inc/{other_widget → other-widget}/widget-child-page-list.php
RENAMED
File without changes
|
inc/{other_widget → other-widget}/widget-new-posts.php
RENAMED
@@ -146,7 +146,14 @@ class WP_Widget_vkExUnit_post_list extends WP_Widget {
|
|
146 |
<div class="postList_body">
|
147 |
<?php
|
148 |
do_action( 'vk_post_list_widget_media_body_prepend' );
|
149 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
if ( $is_modified ) {
|
151 |
$media_body_output .= '<div class="modified postList_date postList_meta_items">' . esc_html( get_the_modified_date() ) . '</div>';
|
152 |
} else {
|
@@ -179,7 +186,14 @@ class WP_Widget_vkExUnit_post_list extends WP_Widget {
|
|
179 |
$li_items_output = '<span class="published postList_date postList_meta_items">' . esc_html( get_the_date() ) . '</span>';
|
180 |
}
|
181 |
$li_items_output .= '<span class="postList_terms postList_meta_items">' . $this->taxonomy_list( get_the_id(), '', '', '' ) . '</span>';
|
182 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
echo apply_filters( 'vk_post_list_widget_li_items', $li_items_output );
|
184 |
do_action( 'vk_post_list_widget_li_append' );
|
185 |
?>
|
146 |
<div class="postList_body">
|
147 |
<?php
|
148 |
do_action( 'vk_post_list_widget_media_body_prepend' );
|
149 |
+
|
150 |
+
$allowed_html = array(
|
151 |
+
'span' => array( 'class' => array() ),
|
152 |
+
'b' => array(),
|
153 |
+
'strong' => array(),
|
154 |
+
);
|
155 |
+
|
156 |
+
$media_body_output = '<div class="postList_title entry-title"><a href="' . esc_url( get_the_permalink() ) . '">' . wp_kses( get_the_title(), $allowed_html ) . '</a></div>';
|
157 |
if ( $is_modified ) {
|
158 |
$media_body_output .= '<div class="modified postList_date postList_meta_items">' . esc_html( get_the_modified_date() ) . '</div>';
|
159 |
} else {
|
186 |
$li_items_output = '<span class="published postList_date postList_meta_items">' . esc_html( get_the_date() ) . '</span>';
|
187 |
}
|
188 |
$li_items_output .= '<span class="postList_terms postList_meta_items">' . $this->taxonomy_list( get_the_id(), '', '', '' ) . '</span>';
|
189 |
+
|
190 |
+
$allowed_html = array(
|
191 |
+
'span' => array( 'class' => array() ),
|
192 |
+
'b' => array(),
|
193 |
+
'strong' => array(),
|
194 |
+
);
|
195 |
+
|
196 |
+
$li_items_output .= '<span class="postList_title entry-title"><a href="' . esc_url( get_the_permalink() ) . '">' . wp_kses( get_the_title(), $allowed_html ) . '</a></span>';
|
197 |
echo apply_filters( 'vk_post_list_widget_li_items', $li_items_output );
|
198 |
do_action( 'vk_post_list_widget_li_append' );
|
199 |
?>
|
inc/{other_widget → other-widget}/widget-page.php
RENAMED
File without changes
|
inc/{other_widget → other-widget}/widget-pr-blocks.php
RENAMED
File without changes
|
inc/{other_widget → other-widget}/widget-profile.php
RENAMED
File without changes
|
inc/{other_widget → other-widget}/widget-side-child-page-list.php
RENAMED
File without changes
|
inc/{other_widget → other-widget}/widget-taxonomies.php
RENAMED
File without changes
|
inc/template-tags/template-tags.php
CHANGED
@@ -83,8 +83,12 @@ if ( ! function_exists( 'vk_get_post_type' ) ) {
|
|
83 |
/*-------------------------------------------*/
|
84 |
$post_type_object = get_post_type_object( $postType['slug'] );
|
85 |
if ( $post_type_object ) {
|
|
|
|
|
|
|
|
|
86 |
if ( $page_for_posts['post_top_use'] && $postType['slug'] == 'post' ) {
|
87 |
-
$postType['name'] =
|
88 |
} else {
|
89 |
$postType['name'] = esc_html( $post_type_object->labels->name );
|
90 |
}
|
83 |
/*-------------------------------------------*/
|
84 |
$post_type_object = get_post_type_object( $postType['slug'] );
|
85 |
if ( $post_type_object ) {
|
86 |
+
$allowed_html = array(
|
87 |
+
'span' => array( 'class' => array() ),
|
88 |
+
'b' => array(),
|
89 |
+
);
|
90 |
if ( $page_for_posts['post_top_use'] && $postType['slug'] == 'post' ) {
|
91 |
+
$postType['name'] = wp_kses( get_the_title( $page_for_posts['post_top_id'] ), $allowed_html );
|
92 |
} else {
|
93 |
$postType['name'] = esc_html( $post_type_object->labels->name );
|
94 |
}
|
initialize.php
CHANGED
@@ -1,128 +1,59 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
Add Parent menu
|
4 |
-
Load master setting page
|
5 |
Load modules
|
6 |
Add vkExUnit css
|
7 |
Add vkExUnit js
|
8 |
/*-------------------------------------------*/
|
9 |
|
10 |
-
|
11 |
-
/*
|
12 |
-
Add Parent menu
|
13 |
-
/*-------------------------------------------*/
|
14 |
-
add_action( 'admin_menu', 'vkExUnit_setting_menu_parent' );
|
15 |
-
function vkExUnit_setting_menu_parent() {
|
16 |
-
global $menu;
|
17 |
-
$parent_name = vkExUnit_get_little_short_name();
|
18 |
-
$Capability_required = 'activate_plugins';
|
19 |
-
|
20 |
-
$custom_page = add_menu_page(
|
21 |
-
$parent_name, // Name of page
|
22 |
-
$parent_name, // Label in menu
|
23 |
-
$Capability_required,
|
24 |
-
'vkExUnit_setting_page', // ユニークなこのサブメニューページの識別子
|
25 |
-
'vkExUnit_add_setting_page' // メニューページのコンテンツを出力する関数
|
26 |
-
);
|
27 |
-
if ( ! $custom_page ) {
|
28 |
-
return; }
|
29 |
-
}
|
30 |
-
|
31 |
-
|
32 |
-
/*
|
33 |
-
Load master setting page
|
34 |
-
/*-------------------------------------------*/
|
35 |
-
function vkExUnit_add_setting_page() {
|
36 |
-
require dirname( __FILE__ ) . '/admin_active_setting_page.php';
|
37 |
-
}
|
38 |
-
|
39 |
-
require_once( 'admin_main_setting_page.php' );
|
40 |
-
require_once( 'admin_other_functions.php' );
|
41 |
-
|
42 |
-
|
43 |
/*
|
44 |
Load modules
|
45 |
/*-------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
-
|
48 |
-
require vkExUnit_get_directory() . '/common_helpers.php';
|
49 |
-
require vkExUnit_get_directory() . '/veu-package-manager.php';
|
50 |
-
require vkExUnit_get_directory() . '/veu-packages.php';
|
51 |
-
$options = vkExUnit_get_common_options();
|
52 |
-
|
53 |
-
require vkExUnit_get_directory() . '/plugins/footer_copyright_change.php';
|
54 |
-
|
55 |
-
require vkExUnit_get_directory() . '/plugins_admin/disable_guide.php';
|
56 |
-
require vkExUnit_get_directory() . '/plugins_admin/vk-admin-config.php';
|
57 |
-
require vkExUnit_get_directory() . '/plugins_admin/customizer.php';
|
58 |
-
require vkExUnit_get_directory() . '/plugins_admin/content-meta-box.php';
|
59 |
-
|
60 |
-
vkExUnit_package_include(); // package_manager.php
|
61 |
-
|
62 |
|
63 |
/*
|
64 |
Add vkExUnit css
|
65 |
/*-------------------------------------------*/
|
66 |
-
add_action( 'wp_enqueue_scripts', '
|
67 |
-
function
|
68 |
global $vkExUnit_version;
|
69 |
-
$options =
|
70 |
if ( isset( $options['active_bootstrap'] ) && $options['active_bootstrap'] ) {
|
71 |
-
wp_enqueue_style( 'vkExUnit_common_style', plugins_url( '', __FILE__ ) . '/css/vkExUnit_style_in_bs.css', array(), $vkExUnit_version, 'all' );
|
72 |
} else {
|
73 |
-
wp_enqueue_style( 'vkExUnit_common_style', plugins_url( '', __FILE__ ) . '/css/vkExUnit_style.css', array(), $vkExUnit_version, 'all' );
|
74 |
}
|
75 |
}
|
76 |
|
77 |
-
function
|
78 |
-
add_editor_style( plugins_url( '', __FILE__ ) . '/css/vkExUnit_editor_style.css' );
|
79 |
}
|
80 |
-
add_action( 'after_setup_theme', '
|
81 |
|
82 |
|
83 |
/*
|
84 |
Add vkExUnit js
|
85 |
/*-------------------------------------------*/
|
86 |
-
add_action( 'wp_head', '
|
87 |
-
function
|
88 |
global $vkExUnit_version;
|
89 |
-
wp_register_script( 'vkExUnit_master-js', plugins_url( '', __FILE__ ) . '/js/all.min.js', array( 'jquery' ), $vkExUnit_version, true );
|
90 |
wp_localize_script( 'vkExUnit_master-js', 'vkExOpt', apply_filters( 'vkExUnit_localize_options', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ) );
|
91 |
wp_enqueue_script( 'vkExUnit_master-js' );
|
92 |
}
|
93 |
|
94 |
-
|
95 |
-
/*
|
96 |
-
Print admin js
|
97 |
-
/*-------------------------------------------*/
|
98 |
-
add_action( 'admin_print_scripts-exunit_page_vkExUnit_main_setting', 'vkExUnit_admin_add_js' );
|
99 |
-
function vkExUnit_admin_add_js( $hook_suffix ) {
|
100 |
-
global $vkExUnit_version;
|
101 |
-
wp_enqueue_media();
|
102 |
-
wp_register_script( 'vkExUnit_admin_js', plugins_url( '', __FILE__ ) . '/js/vkExUnit_admin.js', array( 'jquery' ), $vkExUnit_version );
|
103 |
-
wp_enqueue_script( 'jquery' );
|
104 |
-
wp_enqueue_script( 'vkExUnit_admin_js' );
|
105 |
-
}
|
106 |
-
|
107 |
-
|
108 |
-
/*
|
109 |
-
管理画面_admin_head JavaScriptのデバッグコンソールにhook_suffixの値を出力
|
110 |
-
/*-------------------------------------------*/
|
111 |
-
|
112 |
-
// add_action("admin_head", 'vkExUnit_suffix2console');
|
113 |
-
// function vkExUnit_suffix2console() {
|
114 |
-
// global $hook_suffix;
|
115 |
-
// if (is_user_logged_in()) {
|
116 |
-
// $str = "<script type=\"text/javascript\">console.log('%s')</script>";
|
117 |
-
// printf($str, $hook_suffix);
|
118 |
-
// }
|
119 |
-
// }
|
120 |
if ( function_exists( 'register_activation_hook' ) ) {
|
121 |
-
register_activation_hook( __FILE__, '
|
122 |
}
|
123 |
-
function
|
124 |
$opt = get_option( 'vkExUnit_common_options' );
|
125 |
if ( ! $opt ) {
|
126 |
-
add_option( 'vkExUnit_common_options',
|
127 |
}
|
128 |
}
|
1 |
<?php
|
2 |
/*
|
|
|
|
|
3 |
Load modules
|
4 |
Add vkExUnit css
|
5 |
Add vkExUnit js
|
6 |
/*-------------------------------------------*/
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
/*
|
9 |
Load modules
|
10 |
/*-------------------------------------------*/
|
11 |
+
require_once veu_get_directory() . '/inc/template-tags/template-tags.php';
|
12 |
+
require_once veu_get_directory() . '/inc/template-tags/template-tags-veu.php';
|
13 |
+
require_once veu_get_directory() . '/inc/template-tags/template-tags-veu-old.php';
|
14 |
+
require veu_get_directory() . '/admin/admin.php';
|
15 |
+
require veu_get_directory() . '/veu-package-manager.php';
|
16 |
+
require veu_get_directory() . '/inc/footer-copyright-change.php';
|
17 |
|
18 |
+
veu_package_include(); // package_manager.php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
/*
|
21 |
Add vkExUnit css
|
22 |
/*-------------------------------------------*/
|
23 |
+
add_action( 'wp_enqueue_scripts', 'veu_print_css' );
|
24 |
+
function veu_print_css() {
|
25 |
global $vkExUnit_version;
|
26 |
+
$options = veu_get_common_options();
|
27 |
if ( isset( $options['active_bootstrap'] ) && $options['active_bootstrap'] ) {
|
28 |
+
wp_enqueue_style( 'vkExUnit_common_style', plugins_url( '', __FILE__ ) . '/assets/css/vkExUnit_style_in_bs.css', array(), $vkExUnit_version, 'all' );
|
29 |
} else {
|
30 |
+
wp_enqueue_style( 'vkExUnit_common_style', plugins_url( '', __FILE__ ) . '/assets/css/vkExUnit_style.css', array(), $vkExUnit_version, 'all' );
|
31 |
}
|
32 |
}
|
33 |
|
34 |
+
function veu_print_editor_css() {
|
35 |
+
add_editor_style( plugins_url( '', __FILE__ ) . '/assets/css/vkExUnit_editor_style.css' );
|
36 |
}
|
37 |
+
add_action( 'after_setup_theme', 'veu_print_editor_css' );
|
38 |
|
39 |
|
40 |
/*
|
41 |
Add vkExUnit js
|
42 |
/*-------------------------------------------*/
|
43 |
+
add_action( 'wp_head', 'veu_print_js' );
|
44 |
+
function veu_print_js() {
|
45 |
global $vkExUnit_version;
|
46 |
+
wp_register_script( 'vkExUnit_master-js', plugins_url( '', __FILE__ ) . '/assets/js/all.min.js', array( 'jquery' ), $vkExUnit_version, true );
|
47 |
wp_localize_script( 'vkExUnit_master-js', 'vkExOpt', apply_filters( 'vkExUnit_localize_options', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ) );
|
48 |
wp_enqueue_script( 'vkExUnit_master-js' );
|
49 |
}
|
50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
if ( function_exists( 'register_activation_hook' ) ) {
|
52 |
+
register_activation_hook( __FILE__, 'veu_install_function' );
|
53 |
}
|
54 |
+
function veu_install_function() {
|
55 |
$opt = get_option( 'vkExUnit_common_options' );
|
56 |
if ( ! $opt ) {
|
57 |
+
add_option( 'vkExUnit_common_options', veu_get_common_options_default() );
|
58 |
}
|
59 |
}
|
js/vkExUnit_admin.js
DELETED
@@ -1,4 +0,0 @@
|
|
1 |
-
/// all.jsのも同じコードがあるので注意
|
2 |
-
;(function($,d){var a=false,b='',c='',f=function(){
|
3 |
-
if(a){a=false;c.show();b.removeClass('active');}else{a=true;c.hide();b.addClass('active');}
|
4 |
-
};$(d).ready(function(){b=$('#wp-admin-bar-veu_disable_admin_edit .ab-item').on('click',f);c=$('.veu_adminEdit');});})(jQuery,document);
|
|
|
|
|
|
|
|
languages/vk-all-in-one-expansion-unit-ja.mo
CHANGED
Binary file
|
languages/vk-all-in-one-expansion-unit-ja.po
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
-
"POT-Creation-Date: 2019-
|
5 |
"PO-Revision-Date: \n"
|
6 |
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
|
7 |
"Language-Team: Vektor translate Team <info@vektor-inc.co.jp>\n"
|
@@ -16,150 +16,264 @@ msgstr ""
|
|
16 |
"X-Poedit-SearchPath-0: .\n"
|
17 |
"X-Poedit-SearchPathExcluded-0: node_modules\n"
|
18 |
|
19 |
-
#:
|
20 |
msgid "Enable setting"
|
21 |
msgstr "有効化設定"
|
22 |
|
23 |
-
#:
|
24 |
-
#:
|
|
|
25 |
msgid "Select all"
|
26 |
msgstr "全てを選択"
|
27 |
|
28 |
-
#:
|
29 |
-
#:
|
|
|
30 |
msgid "Function"
|
31 |
msgstr "有効化"
|
32 |
|
33 |
-
#:
|
34 |
-
#:
|
|
|
35 |
msgid "Description"
|
36 |
msgstr "説明"
|
37 |
|
38 |
-
#:
|
39 |
-
#: dist/veu-packages.php:441 veu-packages.php:
|
40 |
msgid "Automatic Eye Catch insert"
|
41 |
msgstr "アイキャッチ画像自動挿入"
|
42 |
|
43 |
-
#:
|
44 |
msgid "Extension Setting"
|
45 |
msgstr "拡張設定"
|
46 |
|
47 |
-
#:
|
|
|
48 |
msgid "Extention contents"
|
49 |
msgstr "拡張コンテンツ"
|
50 |
|
51 |
-
#:
|
|
|
52 |
msgid "set extension contents to loop_end hook"
|
53 |
msgstr "ループ終了時にコンテンツを追加する"
|
54 |
|
55 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
msgid "Plugin setting options"
|
57 |
msgstr "プラグイン設定オプション"
|
58 |
|
59 |
-
#:
|
|
|
60 |
msgid "Delete myOptions when deactivate me."
|
61 |
msgstr "プラグインを無効化する際にDBに保存したオプション項目を削除します。"
|
62 |
|
63 |
-
#:
|
64 |
#: dist/admin_main_setting_page.php:10 dist/admin_main_setting_page.php:11
|
65 |
-
#: dist/plugins/meta_keyword.php:103
|
|
|
66 |
msgid "Main setting"
|
67 |
msgstr "メイン設定"
|
68 |
|
69 |
-
#:
|
70 |
msgid "Activated Packages is noting. please activate some package."
|
71 |
msgstr ""
|
72 |
"有効化されているパッケージがありません。何かの機能を有効化してください。"
|
73 |
|
74 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
msgid "Automatic EyeCatch"
|
76 |
msgstr "アイキャッチ自動挿入"
|
77 |
|
78 |
-
#: dist/plugins/auto_eyecatch.php:60
|
|
|
79 |
msgid "Do not set eyecatch image automatic."
|
80 |
msgstr "アイキャッチ画像を自動挿入しない"
|
81 |
|
82 |
-
#: dist/plugins/bootstrap.php:
|
83 |
-
#: plugins/bootstrap.php:9 plugins_admin/customizer.php:38
|
84 |
-
msgid "Settings"
|
85 |
-
msgstr "設定"
|
86 |
-
|
87 |
-
#: dist/plugins/bootstrap.php:36 plugins/bootstrap.php:36
|
88 |
msgid "Key color"
|
89 |
msgstr "キーカラー"
|
90 |
|
91 |
-
#: dist/plugins/bootstrap.php:47
|
92 |
msgid "Key color(dark)"
|
93 |
msgstr "キーカラー(暗)"
|
94 |
|
95 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:63
|
96 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:425
|
97 |
-
#:
|
98 |
-
#:
|
99 |
msgid "Edit CTA"
|
100 |
msgstr "CTAの編集"
|
101 |
|
102 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:64
|
103 |
-
#:
|
104 |
msgid "Add new CTA"
|
105 |
msgstr "CTAの新規作成"
|
106 |
|
107 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:65
|
108 |
-
#:
|
109 |
msgid "New CTA"
|
110 |
msgstr "CTA 新規作成"
|
111 |
|
112 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:98
|
113 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:100
|
114 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:101
|
115 |
-
#:
|
116 |
-
#: plugins/call-to-action/class-vk-call-to-action.php:100
|
117 |
-
#: plugins/call-to-action/class-vk-call-to-action.php:101
|
118 |
msgid "Call to Action setting"
|
119 |
msgstr "CTA設定"
|
120 |
|
121 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:103
|
122 |
-
#:
|
123 |
msgid "CTA Contents"
|
124 |
msgstr "CTA Contents"
|
125 |
|
126 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:129
|
127 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:631
|
128 |
#: dist/plugins/call-to-action/widget-call-to-action.php:74
|
129 |
-
#:
|
130 |
-
#:
|
131 |
-
#:
|
132 |
msgid "Random"
|
133 |
msgstr "ランダム表示"
|
134 |
|
135 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:135
|
136 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:638
|
137 |
-
#:
|
138 |
-
#:
|
139 |
msgid "Disable display"
|
140 |
msgstr "表示しない"
|
141 |
|
142 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:141
|
143 |
-
#:
|
144 |
msgid "Follow common setting"
|
145 |
msgstr "共通設定を使用"
|
146 |
|
147 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:154
|
148 |
-
#:
|
149 |
msgid "CTA common setting"
|
150 |
msgstr "CTA共通設定"
|
151 |
|
152 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:155
|
153 |
#: dist/plugins/call-to-action/view-adminsetting.php:31
|
154 |
#: dist/plugins/call-to-action/widget-call-to-action.php:88
|
155 |
-
#:
|
156 |
-
#:
|
157 |
-
#:
|
158 |
msgid "Show CTA index page"
|
159 |
msgstr "CTAの一覧を表示"
|
160 |
|
161 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:220
|
162 |
-
#:
|
163 |
msgid ""
|
164 |
"You can create it with a free layout in the content field using, such as "
|
165 |
"Outer block and PR Content block in VK Blocks."
|
@@ -168,7 +282,7 @@ msgstr ""
|
|
168 |
"アウトで作成する事もできます。"
|
169 |
|
170 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:221
|
171 |
-
#:
|
172 |
msgid ""
|
173 |
"If the contents field is entered, the contents of the body will be displayed "
|
174 |
"with priority, so the following contents will be ignored."
|
@@ -177,127 +291,130 @@ msgstr ""
|
|
177 |
"視されます。"
|
178 |
|
179 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:222
|
180 |
-
|
|
|
|
|
|
|
181 |
msgid ""
|
182 |
"The entered contents are displayed directly. You can not use short codes, "
|
183 |
"reuse blocks, etc."
|
184 |
msgstr ""
|
185 |
-
"入力された内容は直接表示されます。
|
186 |
-
"
|
187 |
|
188 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:226
|
189 |
-
#:
|
190 |
msgid "CTA image"
|
191 |
msgstr "CTA画像"
|
192 |
|
193 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:232
|
194 |
-
#:
|
195 |
msgid "Add image"
|
196 |
msgstr "画像を追加"
|
197 |
|
198 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:233
|
199 |
-
#:
|
200 |
msgid "Change image"
|
201 |
msgstr "画像を変更"
|
202 |
|
203 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:234
|
204 |
-
#:
|
205 |
msgid "Remove image"
|
206 |
msgstr "画像を削除"
|
207 |
|
208 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:239
|
209 |
-
#:
|
210 |
msgid "CTA image position"
|
211 |
msgstr "CTA画像の位置"
|
212 |
|
213 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:242
|
214 |
-
#:
|
215 |
msgid "right"
|
216 |
msgstr "右寄せ"
|
217 |
|
218 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:243
|
219 |
-
#:
|
220 |
msgid "center"
|
221 |
msgstr "中央"
|
222 |
|
223 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:244
|
224 |
-
#:
|
225 |
msgid "left"
|
226 |
msgstr "左寄せ"
|
227 |
|
228 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:248
|
229 |
-
#:
|
230 |
msgid "Button text"
|
231 |
msgstr "ボタンの表記文言"
|
232 |
|
233 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:252
|
234 |
-
#:
|
235 |
msgid "Button icon"
|
236 |
msgstr "ボタンアイコン"
|
237 |
|
238 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:253
|
239 |
#: dist/plugins/other_widget/widget-button.php:122
|
240 |
-
#:
|
241 |
-
#:
|
242 |
msgid "To choose your favorite icon, and enter the class."
|
243 |
msgstr "アイコンフォントを選んでそのクラス名を入力してください。"
|
244 |
|
245 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:254
|
246 |
#: dist/plugins/other_widget/widget-button.php:123
|
247 |
-
#:
|
248 |
-
#:
|
249 |
msgid "Before :"
|
250 |
msgstr "文字の前 :"
|
251 |
|
252 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:256
|
253 |
#: dist/plugins/other_widget/widget-button.php:125
|
254 |
-
#:
|
255 |
-
#:
|
256 |
msgid "After :"
|
257 |
msgstr "文字の後 :"
|
258 |
|
259 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:268
|
260 |
-
#:
|
261 |
msgid "Button link url"
|
262 |
msgstr "ボタンのリンク先URL"
|
263 |
|
264 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:281
|
265 |
-
#:
|
266 |
msgid "Target window"
|
267 |
msgstr "リンク先ターゲット"
|
268 |
|
269 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:283
|
270 |
-
#:
|
271 |
msgid "Open in a self window"
|
272 |
msgstr "同じウィンドウで開く"
|
273 |
|
274 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:285
|
275 |
-
#:
|
276 |
msgid "Text message"
|
277 |
msgstr "テキストメッセージ"
|
278 |
|
279 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:291
|
280 |
#: dist/plugins/call-to-action/widget-call-to-action.php:91
|
281 |
-
#:
|
282 |
-
#:
|
283 |
msgid "CTA setting"
|
284 |
msgstr "CTA設定"
|
285 |
|
286 |
#: dist/plugins/call-to-action/view-adminsetting.php:15
|
287 |
-
#: dist/veu-packages.php:299
|
288 |
-
#: veu-packages.php:
|
289 |
msgid "Call To Action"
|
290 |
msgstr "Call To Action"
|
291 |
|
292 |
#: dist/plugins/call-to-action/view-adminsetting.php:19
|
293 |
-
#: dist/veu-packages.php:291
|
294 |
-
#: veu-packages.php:
|
295 |
msgid "Display the CTA at the end of the post content."
|
296 |
msgstr "投稿内容の最後にCTAを表示します。"
|
297 |
|
298 |
#: dist/plugins/call-to-action/view-adminsetting.php:20
|
299 |
-
#: dist/veu-packages.php:293
|
300 |
-
#: veu-packages.php:
|
301 |
msgid ""
|
302 |
"The CTA stands for \"Call to action\" and this is the area that prompts the "
|
303 |
"user behavior."
|
@@ -306,8 +423,8 @@ msgstr ""
|
|
306 |
"情報を表示します。"
|
307 |
|
308 |
#: dist/plugins/call-to-action/view-adminsetting.php:21
|
309 |
-
#: dist/veu-packages.php:295
|
310 |
-
#: veu-packages.php:
|
311 |
msgid ""
|
312 |
"As an example, text message and a link button for induction to the free "
|
313 |
"sample download page."
|
@@ -316,24 +433,24 @@ msgstr ""
|
|
316 |
"ンなどです。"
|
317 |
|
318 |
#: dist/plugins/call-to-action/view-adminsetting.php:23
|
319 |
-
#:
|
320 |
msgid "How to use"
|
321 |
msgstr "使い方"
|
322 |
|
323 |
#: dist/plugins/call-to-action/view-adminsetting.php:26
|
324 |
-
#:
|
325 |
msgid ""
|
326 |
"You register the contents on \"CTA\" that you want to display to bottom of "
|
327 |
"the content."
|
328 |
msgstr "まずは投稿タイプCTAで、本文の最後に表示させたい内容を登録します。"
|
329 |
|
330 |
#: dist/plugins/call-to-action/view-adminsetting.php:27
|
331 |
-
#:
|
332 |
msgid "Choose the CTA to be displayed from the following."
|
333 |
msgstr "下記のプルダウンで、投稿タイプ別に表示するCTAを選択して保存します。"
|
334 |
|
335 |
#: dist/plugins/call-to-action/view-adminsetting.php:28
|
336 |
-
#:
|
337 |
msgid ""
|
338 |
"If you want to switch the CTA to be displayed on each post, please set in "
|
339 |
"the details page of such posting."
|
@@ -342,46 +459,46 @@ msgstr ""
|
|
342 |
"い。"
|
343 |
|
344 |
#: dist/plugins/call-to-action/view-adminsetting.php:41
|
345 |
-
#:
|
346 |
msgid "Show index page"
|
347 |
msgstr "一覧ページを表示する"
|
348 |
|
349 |
#: dist/plugins/call-to-action/widget-call-to-action.php:20
|
350 |
-
#:
|
351 |
msgid "CTA"
|
352 |
msgstr "CTA"
|
353 |
|
354 |
#: dist/plugins/call-to-action/widget-call-to-action.php:26
|
355 |
-
#:
|
356 |
msgid "Select CTA and display it."
|
357 |
msgstr "CTAを選択して表示します。"
|
358 |
|
359 |
#: dist/plugins/call-to-action/widget-call-to-action.php:66
|
360 |
-
#:
|
361 |
msgid "Please select CTA to display."
|
362 |
msgstr "表示するCTAを選択してください。"
|
363 |
|
364 |
#: dist/plugins/call-to-action/widget-call-to-action.php:80
|
365 |
-
#:
|
366 |
msgid "Please select"
|
367 |
msgstr "選択してください"
|
368 |
|
369 |
#: dist/plugins/child_page_index.php:79
|
370 |
#: dist/plugins/other_widget/widget-3pr-area.php:198
|
371 |
-
#:
|
372 |
msgid "Read more"
|
373 |
msgstr "詳しくはこちら"
|
374 |
|
375 |
#: dist/plugins/child_page_index.php:150
|
376 |
-
#: dist/plugins/other_widget/widget-page.php:166
|
377 |
-
#:
|
378 |
msgid "Display a child page index"
|
379 |
msgstr "子ページ一覧の表示"
|
380 |
|
381 |
#: dist/plugins/contact-section/contact-section.php:107
|
382 |
#: dist/plugins/contact-section/contact-section.php:138
|
383 |
-
#:
|
384 |
-
#:
|
385 |
msgid "Contact Information"
|
386 |
msgstr "お問い合わせ情報"
|
387 |
|
@@ -389,17 +506,16 @@ msgstr "お問い合わせ情報"
|
|
389 |
#: dist/plugins/contact-section/contact-section.php:149
|
390 |
#: dist/plugins/contact-section/customizer.php:53
|
391 |
#: dist/plugins/contact-section/customizer.php:67
|
392 |
-
#:
|
393 |
-
#:
|
394 |
-
#:
|
395 |
-
#: plugins/contact-section/customizer.php:67
|
396 |
msgid "Please feel free to inquire."
|
397 |
msgstr "お気軽にお問い合わせください。"
|
398 |
|
399 |
#: dist/plugins/contact-section/contact-section.php:120
|
400 |
#: dist/plugins/contact-section/customizer.php:116
|
401 |
-
#:
|
402 |
-
#:
|
403 |
msgid "Office hours 9:00 - 18:00 [ Weekdays except holidays ]"
|
404 |
msgstr "受付時間 9:00-18:00 [ 土・日・祝日除く ]"
|
405 |
|
@@ -407,17 +523,17 @@ msgstr "受付時間 9:00-18:00 [ 土・日・祝日除く ]"
|
|
407 |
#: dist/plugins/contact-section/contact-section.php:124
|
408 |
#: dist/plugins/contact-section/customizer.php:158
|
409 |
#: dist/plugins/contact-section/customizer.php:200
|
410 |
-
#:
|
411 |
-
#:
|
412 |
-
#:
|
413 |
-
#:
|
414 |
msgid "Contact us"
|
415 |
msgstr "お問い合わせ"
|
416 |
|
417 |
#: dist/plugins/contact-section/contact-section.php:140
|
418 |
#: dist/plugins/contact-section/customizer.php:33
|
419 |
-
#:
|
420 |
-
#:
|
421 |
msgid ""
|
422 |
"The contents entered here will be reflected in the bottom of each fixed "
|
423 |
"page, the \"Contact Section\" widget, the \"Contact Button\" widget, etc."
|
@@ -427,8 +543,8 @@ msgstr ""
|
|
427 |
|
428 |
#: dist/plugins/contact-section/contact-section.php:142
|
429 |
#: dist/plugins/contact-section/customizer.php:35
|
430 |
-
#:
|
431 |
-
#:
|
432 |
msgid ""
|
433 |
"When I display it on the page, it is necessary to classify a check into "
|
434 |
"\"Display Contact Section\" checkbox with the edit page of each page."
|
@@ -438,8 +554,8 @@ msgstr ""
|
|
438 |
|
439 |
#: dist/plugins/contact-section/contact-section.php:146
|
440 |
#: dist/plugins/contact-section/customizer.php:62
|
441 |
-
#:
|
442 |
-
#:
|
443 |
msgid "Message"
|
444 |
msgstr "メッセージ"
|
445 |
|
@@ -459,35 +575,34 @@ msgstr "メッセージ"
|
|
459 |
#: dist/plugins/contact-section/customizer.php:193
|
460 |
#: dist/plugins/google_analytics/ga_admin.php:16
|
461 |
#: dist/plugins/sns/sns_admin.php:38
|
462 |
-
#:
|
463 |
-
#:
|
464 |
-
#:
|
465 |
-
#:
|
466 |
-
#:
|
467 |
-
#:
|
468 |
-
#:
|
469 |
-
#:
|
470 |
-
#:
|
471 |
-
#:
|
472 |
-
#:
|
473 |
-
#:
|
474 |
-
#:
|
475 |
-
#:
|
476 |
-
#: plugins/google_analytics/ga_admin.php:16 plugins/sns/sns_admin.php:38
|
477 |
msgid "ex) "
|
478 |
msgstr "例) "
|
479 |
|
480 |
#: dist/plugins/contact-section/contact-section.php:153
|
481 |
#: dist/plugins/contact-section/customizer.php:83
|
482 |
-
#:
|
483 |
-
#:
|
484 |
msgid "Phone number"
|
485 |
msgstr "電話番号"
|
486 |
|
487 |
#: dist/plugins/contact-section/contact-section.php:160
|
488 |
#: dist/plugins/contact-section/customizer.php:104
|
489 |
-
#:
|
490 |
-
#:
|
491 |
msgid "Phone icon"
|
492 |
msgstr "電話アイコン"
|
493 |
|
@@ -495,152 +610,152 @@ msgstr "電話アイコン"
|
|
495 |
#: dist/plugins/contact-section/contact-section.php:170
|
496 |
#: dist/plugins/contact-section/customizer.php:125
|
497 |
#: dist/plugins/contact-section/customizer.php:130
|
498 |
-
#:
|
499 |
-
#:
|
500 |
-
#:
|
501 |
-
#:
|
502 |
msgid "Office hours"
|
503 |
msgstr "営業時間"
|
504 |
|
505 |
#: dist/plugins/contact-section/contact-section.php:170
|
506 |
#: dist/plugins/contact-section/customizer.php:130
|
507 |
-
#:
|
508 |
-
#:
|
509 |
msgid "Weekdays except holidays"
|
510 |
msgstr "土日・祝日除く"
|
511 |
|
512 |
#: dist/plugins/contact-section/contact-section.php:175
|
513 |
#: dist/plugins/contact-section/customizer.php:146
|
514 |
-
#:
|
515 |
-
#:
|
516 |
msgid "The contact page URL"
|
517 |
msgstr "お問い合わせ先URL"
|
518 |
|
519 |
#: dist/plugins/contact-section/contact-section.php:178
|
520 |
#: dist/plugins/contact-section/customizer.php:151
|
521 |
-
#:
|
522 |
-
#:
|
523 |
msgid "or"
|
524 |
msgstr "もしくは"
|
525 |
|
526 |
#: dist/plugins/contact-section/contact-section.php:179
|
527 |
#: dist/plugins/contact-section/customizer.php:151
|
528 |
-
#:
|
529 |
-
#:
|
530 |
msgid "* If you fill in the blank, widget's contact button does not appear."
|
531 |
msgstr "※ 未入力の場合、お問い合わせウィジェットには何も表示されません。"
|
532 |
|
533 |
#: dist/plugins/contact-section/contact-section.php:183
|
534 |
#: dist/plugins/contact-section/customizer.php:167
|
535 |
-
#:
|
536 |
-
#:
|
537 |
msgid "Contact button Text"
|
538 |
msgstr "お問い合わせボタンに表示するテキスト"
|
539 |
|
540 |
#: dist/plugins/contact-section/contact-section.php:186
|
541 |
#: dist/plugins/contact-section/customizer.php:172
|
542 |
-
#:
|
543 |
-
#:
|
544 |
msgid "Contact Us from email."
|
545 |
msgstr "メールでのお問い合わせはこちら"
|
546 |
|
547 |
#: dist/plugins/contact-section/contact-section.php:191
|
548 |
#: dist/plugins/contact-section/customizer.php:188
|
549 |
-
#:
|
550 |
-
#:
|
551 |
msgid "Contact button text( sub )"
|
552 |
msgstr "お問い合わせボタンに表示するテキスト2(オプション)"
|
553 |
|
554 |
#: dist/plugins/contact-section/contact-section.php:195
|
555 |
#: dist/plugins/contact-section/customizer.php:193
|
556 |
-
#:
|
557 |
-
#:
|
558 |
msgid "Email contact form"
|
559 |
msgstr "お気軽にお問い合わせください。"
|
560 |
|
561 |
#: dist/plugins/contact-section/contact-section.php:200
|
562 |
#: dist/plugins/contact-section/customizer.php:209
|
563 |
-
#:
|
564 |
-
#:
|
565 |
msgid "Contact button short text for side widget"
|
566 |
msgstr "お問い合わせボタンウィジェットに表示するテキスト"
|
567 |
|
568 |
#: dist/plugins/contact-section/contact-section.php:204
|
569 |
#: dist/plugins/contact-section/customizer.php:214
|
570 |
-
#:
|
571 |
-
#:
|
572 |
msgid "This will used to \"Contact Button\" widget."
|
573 |
msgstr ""
|
574 |
"このテキストはお問い合わせボタンウィジェットで使用されます。サイドバーでの利"
|
575 |
"用を想定していますので少ない文字数で設定してください。"
|
576 |
|
577 |
#: dist/plugins/contact-section/contact-section.php:208
|
578 |
-
#:
|
579 |
msgid "Advanced Setting"
|
580 |
msgstr "高度な設定"
|
581 |
|
582 |
#: dist/plugins/contact-section/contact-section.php:217
|
583 |
#: dist/plugins/contact-section/customizer.php:238
|
584 |
-
#:
|
585 |
-
#:
|
586 |
msgid "Inquiry Banner image"
|
587 |
msgstr "お問い合わせバナー画像"
|
588 |
|
589 |
#: dist/plugins/contact-section/contact-section.php:219
|
590 |
-
#:
|
591 |
msgid "Select Image"
|
592 |
msgstr "画像を選択"
|
593 |
|
594 |
#: dist/plugins/contact-section/contact-section.php:220
|
595 |
#: dist/plugins/contact-section/customizer.php:228
|
596 |
-
#:
|
597 |
-
#:
|
598 |
msgid "Display the image instead of the above inquiry information"
|
599 |
msgstr ""
|
600 |
"画像が登録されている場合は標準のお問い合わせ情報ではなく画像が表示されます。"
|
601 |
|
602 |
#: dist/plugins/contact-section/contact-section.php:224
|
603 |
#: dist/plugins/contact-section/customizer.php:264
|
604 |
-
#:
|
605 |
-
#:
|
606 |
msgid "Display HTML message instead of the standard"
|
607 |
msgstr "お問い合わせ情報として表示するHTML"
|
608 |
|
609 |
#: dist/plugins/contact-section/contact-section.php:226
|
610 |
#: dist/plugins/contact-section/customizer.php:257
|
611 |
-
#:
|
612 |
-
#:
|
613 |
msgid "HTML takes precedence over image"
|
614 |
msgstr "HTMLが登録されている場合は画像より優先されます。"
|
615 |
|
616 |
#: dist/plugins/contact-section/contact-section.php:248
|
617 |
-
#:
|
618 |
msgid "Display Contact Section"
|
619 |
msgstr "お問い合わせ情報の表示"
|
620 |
|
621 |
#: dist/plugins/contact-section/contact-section.php:388
|
622 |
#: dist/plugins/contact-section/contact-section.php:441
|
623 |
-
#:
|
624 |
-
#:
|
625 |
msgid "Edit contact information"
|
626 |
msgstr "Contact情報を編集"
|
627 |
|
628 |
#: dist/plugins/contact-section/contact-section.php:457
|
629 |
-
#:
|
630 |
msgid "Contact Button"
|
631 |
msgstr "お問い合わせボタン"
|
632 |
|
633 |
#: dist/plugins/contact-section/contact-section.php:458
|
634 |
-
#:
|
635 |
msgid "Display contact button."
|
636 |
msgstr "お問い合わせボタンを表示します。"
|
637 |
|
638 |
#: dist/plugins/contact-section/contact-section.php:459
|
639 |
#: dist/plugins/contact-section/contact-section.php:487
|
640 |
#: dist/plugins/contact-section/contact-section.php:509
|
641 |
-
#:
|
642 |
-
#:
|
643 |
-
#:
|
644 |
#, php-format
|
645 |
msgid ""
|
646 |
"It is necessary to set the \"%s\" -> \"Contact Information\" section in "
|
@@ -649,23 +764,23 @@ msgstr ""
|
|
649 |
"「%s」→ 「メイン設定」ページで『お問い合わせ情報』を設定する必要があります。"
|
650 |
|
651 |
#: dist/plugins/contact-section/contact-section.php:486
|
652 |
-
#:
|
653 |
msgid "Display contact button"
|
654 |
msgstr "お問い合わせボタンを表示します。"
|
655 |
|
656 |
#: dist/plugins/contact-section/contact-section.php:507
|
657 |
-
#: dist/veu-packages.php:264
|
658 |
-
#: veu-packages.php:
|
659 |
msgid "Contact Section"
|
660 |
msgstr "お問い合わせ情報"
|
661 |
|
662 |
#: dist/plugins/contact-section/contact-section.php:508
|
663 |
-
#:
|
664 |
msgid "Display Phone number and contact button etc."
|
665 |
msgstr "電話番号とお問い合わせボタンなどを表示します。"
|
666 |
|
667 |
#: dist/plugins/contact-section/contact-section.php:537
|
668 |
-
#:
|
669 |
#, php-format
|
670 |
msgid ""
|
671 |
"*It is necessary to set the \"%s\" -> \"Contact Information\" section in "
|
@@ -675,14 +790,14 @@ msgstr ""
|
|
675 |
"す。"
|
676 |
|
677 |
#: dist/plugins/contact-section/customizer.php:23
|
678 |
-
#:
|
679 |
msgid "Contact Settings"
|
680 |
msgstr "お問い合わせ情報"
|
681 |
|
682 |
#: dist/plugins/contact-section/customizer.php:231
|
683 |
#: dist/plugins/contact-section/customizer.php:260
|
684 |
-
#:
|
685 |
-
#:
|
686 |
msgid "It is not reflected in the header."
|
687 |
msgstr "ヘッダーには反映されません。"
|
688 |
|
@@ -690,69 +805,68 @@ msgstr "ヘッダーには反映されません。"
|
|
690 |
#: dist/plugins/css_customize/css_customize.php:30
|
691 |
#: dist/plugins/css_customize/css_customize.php:44
|
692 |
#: dist/plugins/css_customize/css_customize.php:45
|
693 |
-
#:
|
694 |
-
#:
|
695 |
-
#:
|
696 |
-
#:
|
697 |
msgid "CSS Customize"
|
698 |
msgstr "CSSカスタマイズ"
|
699 |
|
700 |
#: dist/plugins/css_customize/css_customize-edit.php:5
|
701 |
-
#:
|
702 |
msgid "You can add custom CSS here."
|
703 |
msgstr "デザインをカスタマイズする場合は下のテキストエリアにCSSを入力します"
|
704 |
|
705 |
#: dist/plugins/css_customize/css_customize-edit.php:13
|
706 |
-
#:
|
707 |
msgid "Save CSS"
|
708 |
msgstr "CSSを保存する"
|
709 |
|
710 |
#: dist/plugins/css_customize/css_customize-single.php:22
|
711 |
-
#:
|
712 |
msgid "Custom CSS"
|
713 |
msgstr "カスタムCSS"
|
714 |
|
715 |
#: dist/plugins/css_customize/css_customize.php:100
|
716 |
-
#:
|
717 |
msgid "Your custom CSS was saved."
|
718 |
msgstr "CSSが保存されました"
|
719 |
|
720 |
#: dist/plugins/css_customize/css_customize.php:103
|
721 |
-
#:
|
722 |
msgid "Error occured. Please try again."
|
723 |
msgstr "何らかのエラー!! また試してみてください"
|
724 |
|
725 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:22
|
726 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:37
|
727 |
-
#:
|
728 |
-
#:
|
729 |
msgid "Not recommended"
|
730 |
msgstr "非推奨"
|
731 |
|
732 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:69
|
733 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:71
|
734 |
-
#:
|
735 |
-
#:
|
736 |
msgid "Ex ) "
|
737 |
msgstr "例 ) "
|
738 |
|
739 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:169
|
740 |
-
#:
|
741 |
msgid "Font Awesome"
|
742 |
msgstr "Font Awesome"
|
743 |
|
744 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:190
|
745 |
-
#:
|
746 |
msgid "Font Awesome Version"
|
747 |
msgstr "Font Awesome Version"
|
748 |
|
749 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:193
|
750 |
-
#:
|
751 |
msgid "4.7 will be abolished in the near future."
|
752 |
msgstr "4.7は将来的に廃止します。"
|
753 |
|
754 |
-
#: dist/plugins/footer_copyright_change.php:6
|
755 |
-
#: plugins/footer_copyright_change.php:6
|
756 |
msgid ""
|
757 |
"<p>Powered by <a href=\"https://wordpress.org/\">WordPress</a> with <a href="
|
758 |
"\"https://lightning.nagoya\" target=\"_blank\" title=\"Free WordPress Theme "
|
@@ -769,21 +883,20 @@ msgstr ""
|
|
769 |
#: dist/plugins/google_analytics/ga_admin.php:9
|
770 |
#: dist/plugins/google_analytics/ga_admin.php:13
|
771 |
#: dist/plugins/google_analytics/google_analytics.php:23
|
772 |
-
#:
|
773 |
-
#:
|
774 |
-
#: plugins/google_analytics/google_analytics.php:23
|
775 |
msgid "Google Analytics Settings"
|
776 |
msgstr "Google Analytics設定"
|
777 |
|
778 |
#: dist/plugins/google_analytics/ga_admin.php:14
|
779 |
-
#:
|
780 |
msgid ""
|
781 |
"Please fill in the Google Analytics ID from the Analytics embed code used in "
|
782 |
"the site."
|
783 |
msgstr "このサイトで使用する Google アナリティクスの ID を入力して下さい。"
|
784 |
|
785 |
#: dist/plugins/google_analytics/ga_admin.php:19
|
786 |
-
#:
|
787 |
msgid ""
|
788 |
"Please select the type of Analytics code . (If you are unsure you can skip "
|
789 |
"this.)"
|
@@ -793,37 +906,37 @@ msgstr ""
|
|
793 |
|
794 |
#: dist/plugins/google_analytics/ga_admin.php:23
|
795 |
#: dist/plugins/google_analytics/ga_customizer.php:74
|
796 |
-
#:
|
797 |
-
#:
|
798 |
msgid "Recommendation ( gtag )"
|
799 |
msgstr "推奨 ( gtag )"
|
800 |
|
801 |
#: dist/plugins/google_analytics/ga_admin.php:24
|
802 |
#: dist/plugins/google_analytics/ga_customizer.php:75
|
803 |
-
#:
|
804 |
-
#:
|
805 |
msgid "Universal Analytics code ( analytics.js )"
|
806 |
msgstr "ユニバーサル アナリティクスのコード ( analytics.js )"
|
807 |
|
808 |
#: dist/plugins/google_analytics/ga_admin.php:25
|
809 |
#: dist/plugins/google_analytics/ga_customizer.php:76
|
810 |
-
#:
|
811 |
-
#:
|
812 |
msgid "Normal code ( analytics.js )"
|
813 |
msgstr "ノーマルのコード ( analytics.js )"
|
814 |
|
815 |
#: dist/plugins/google_analytics/ga_customizer.php:24
|
816 |
-
#:
|
817 |
msgid "Google Analtics Settings"
|
818 |
msgstr "Google Analytics設定"
|
819 |
|
820 |
#: dist/plugins/google_analytics/ga_customizer.php:45
|
821 |
-
#:
|
822 |
msgid "Google Analytics ID"
|
823 |
msgstr "Google Analyticsの ID"
|
824 |
|
825 |
#: dist/plugins/google_analytics/ga_customizer.php:49
|
826 |
-
#:
|
827 |
msgid ""
|
828 |
"Please fill in the Google Analytics ID from the Analytics embed code used in "
|
829 |
"the site.<br>ex) XXXXXXXX-X"
|
@@ -832,12 +945,12 @@ msgstr ""
|
|
832 |
"XXXXXXXX-X"
|
833 |
|
834 |
#: dist/plugins/google_analytics/ga_customizer.php:68
|
835 |
-
#:
|
836 |
msgid "Select the type of Analytics code"
|
837 |
msgstr "アナリティクスコードの種類を選択"
|
838 |
|
839 |
#: dist/plugins/google_analytics/ga_customizer.php:78
|
840 |
-
#:
|
841 |
msgid ""
|
842 |
"Print the select the type of Analytics code.<br>(If you are unsure you can "
|
843 |
"skip this.)"
|
@@ -845,12 +958,12 @@ msgstr ""
|
|
845 |
"アナリティクスコードの種類を選択して下さい。( 不明な場合この設定は省略できま"
|
846 |
"す。)"
|
847 |
|
848 |
-
#: dist/plugins/icons.php:38 dist/plugins/icons.php:68
|
849 |
-
#:
|
850 |
msgid "icon setting"
|
851 |
msgstr "アイコン設定"
|
852 |
|
853 |
-
#: dist/plugins/icons.php:74
|
854 |
#, php-format
|
855 |
msgid ""
|
856 |
"This feature will be discontinued shortly.<br>You can set the site icon from "
|
@@ -861,62 +974,62 @@ msgstr ""
|
|
861 |
"サイトアイコンは「<a href=%s>外観 > カスタマイズ</a>」の「サイト基本情報」パ"
|
862 |
"ネルから設定できます。"
|
863 |
|
864 |
-
#: dist/plugins/icons.php:81
|
865 |
msgid "Favicon Setting"
|
866 |
msgstr "ファビコン設定"
|
867 |
|
868 |
-
#: dist/plugins/icons.php:83
|
869 |
msgid "Choose icon"
|
870 |
msgstr "アイコンを選択"
|
871 |
|
872 |
-
#: dist/plugins/icons.php:84
|
873 |
msgid "Please upload your \".ico\" file"
|
874 |
msgstr "作成したicoファイルをアップロードしてください"
|
875 |
|
876 |
#: dist/plugins/insert_ads.php:38 dist/plugins/insert_ads.php:218
|
877 |
-
#: dist/veu-packages.php:322
|
878 |
-
#:
|
879 |
msgid "Insert ads"
|
880 |
msgstr "広告の挿入"
|
881 |
|
882 |
-
#: dist/plugins/insert_ads.php:228
|
883 |
msgid "Google Auto ads"
|
884 |
msgstr "Google自動広告"
|
885 |
|
886 |
-
#: dist/plugins/insert_ads.php:233
|
887 |
msgid "About Google Auto ads"
|
888 |
msgstr "Google自動広告について"
|
889 |
|
890 |
-
#: dist/plugins/insert_ads.php:236
|
891 |
msgid ""
|
892 |
"If you would like to set to Google Auto ads,Please fill in Publisher ID."
|
893 |
msgstr ""
|
894 |
"Google自動広告を設定する場合はチェックを入れて、サイト運営者IDを入力してくだ"
|
895 |
"さい。"
|
896 |
|
897 |
-
#: dist/plugins/insert_ads.php:238
|
898 |
msgid "Enable Google Auto ads"
|
899 |
msgstr "Google自動広告を有効にする"
|
900 |
|
901 |
-
#: dist/plugins/insert_ads.php:240
|
902 |
msgid "Publisher ID"
|
903 |
msgstr "サイト運営者ID"
|
904 |
|
905 |
-
#: dist/plugins/insert_ads.php:244
|
906 |
msgid "Google AdSense dashboard"
|
907 |
msgstr "Google AdSense 管理画面"
|
908 |
|
909 |
-
#: dist/plugins/insert_ads.php:246
|
910 |
#, php-format
|
911 |
msgid ""
|
912 |
"Publisher ID is you can investigate from the %s > Account information page."
|
913 |
msgstr "サイト運営者IDは %s > アカウント情報 から確認できます。"
|
914 |
|
915 |
-
#: dist/plugins/insert_ads.php:249
|
916 |
msgid "Designate anchor ads at the bottom."
|
917 |
msgstr "アンカー広告を下部に指定する"
|
918 |
|
919 |
-
#: dist/plugins/insert_ads.php:251
|
920 |
msgid ""
|
921 |
"The layout may collapse by inserting Google Auto ads, but the correspondence "
|
922 |
"varies depending on the kind, specification, theme etc. of advertisement, so "
|
@@ -927,37 +1040,37 @@ msgstr ""
|
|
927 |
"中のテーマなどにより対応は様々ですので、表示崩れについては各自必要に応じてCSS"
|
928 |
"を書いて修正してください。"
|
929 |
|
930 |
-
#: dist/plugins/insert_ads.php:259
|
931 |
msgid "Insert ads to post."
|
932 |
msgstr "投稿に広告を挿入"
|
933 |
|
934 |
-
#: dist/plugins/insert_ads.php:261
|
935 |
msgid "Insert ads to before content and more tag and after content."
|
936 |
msgstr "記事の直前 / moreタグの直後 / 記事の最後に広告を挿入できます。"
|
937 |
|
938 |
-
#: dist/plugins/insert_ads.php:261
|
939 |
msgid "If you want to separate ads area, you fill two fields."
|
940 |
msgstr "2つのフィールドに分けて挿入すると、横並び(col-md-6)に表示されます。"
|
941 |
|
942 |
-
#: dist/plugins/insert_ads.php:263
|
943 |
msgid "insert the ad [ before content ]"
|
944 |
msgstr "広告を挿入 [ 記事の最初 ]"
|
945 |
|
946 |
-
#: dist/plugins/insert_ads.php:271
|
947 |
msgid "insert the ad [ more tag ]"
|
948 |
msgstr "広告を挿入 [ moreタグ ]"
|
949 |
|
950 |
-
#: dist/plugins/insert_ads.php:279
|
951 |
msgid "insert the ad [ after content ]"
|
952 |
msgstr "広告を挿入 [ 記事の最後 ]"
|
953 |
|
954 |
#: dist/plugins/meta_description.php:20 dist/plugins/meta_description.php:31
|
955 |
-
#: dist/plugins/meta_description.php:34
|
956 |
-
#:
|
957 |
msgid "Meta Description"
|
958 |
msgstr "メタディスクリプション"
|
959 |
|
960 |
-
#: dist/plugins/meta_description.php:37
|
961 |
msgid ""
|
962 |
"What you have to complete the \"excerpt\" column of the edit screen of each "
|
963 |
"page will be reflected in the description of the meta tag."
|
@@ -965,7 +1078,7 @@ msgstr ""
|
|
965 |
"各ページの編集画面の「抜粋」欄に記入した内容がmetaタグのディスクリプションに"
|
966 |
"反映されます"
|
967 |
|
968 |
-
#: dist/plugins/meta_description.php:38
|
969 |
msgid ""
|
970 |
"Description of meta tags in the search results screen of search sites such "
|
971 |
"as Google, will be Displayed, such as the bottom of the site title. If the "
|
@@ -976,7 +1089,7 @@ msgstr ""
|
|
976 |
"す。しかし、トップページに設定した固定ページに抜粋が記入されている場合はその"
|
977 |
"内容が反映されます。"
|
978 |
|
979 |
-
#: dist/plugins/meta_description.php:39
|
980 |
msgid ""
|
981 |
"The meta description of the top page is subject to the catchphrase of the "
|
982 |
"site. However, its contents will be reflected if the excerpt is entered in "
|
@@ -986,7 +1099,7 @@ msgstr ""
|
|
986 |
"す。しかし、トップページに設定した固定ページに抜粋が記入されている場合はその"
|
987 |
"内容が反映されます。"
|
988 |
|
989 |
-
#: dist/plugins/meta_description.php:40
|
990 |
msgid ""
|
991 |
"If \"excerpt\" column is not found, Click \"Display Option\" of page top at "
|
992 |
"each article edit page, and check the expert column display."
|
@@ -997,21 +1110,21 @@ msgstr ""
|
|
997 |
|
998 |
#: dist/plugins/meta_keyword.php:40 dist/plugins/meta_keyword.php:91
|
999 |
#: dist/plugins/meta_keyword.php:93 dist/plugins/meta_keyword.php:94
|
1000 |
-
#: dist/plugins/meta_keyword.php:101
|
1001 |
-
#:
|
1002 |
-
#:
|
1003 |
msgid "Meta Keywords"
|
1004 |
msgstr "メタキーワード"
|
1005 |
|
1006 |
-
#: dist/plugins/meta_keyword.php:68
|
1007 |
msgid "Meta Keyword"
|
1008 |
msgstr "メタキーワード"
|
1009 |
|
1010 |
-
#: dist/plugins/meta_keyword.php:71
|
1011 |
msgid "Common Keywords"
|
1012 |
msgstr "共通キーワード設定"
|
1013 |
|
1014 |
-
#: dist/plugins/meta_keyword.php:72
|
1015 |
msgid ""
|
1016 |
"Keywords for meta tag. This words will set Meta Keyword with post keywords. "
|
1017 |
"if you want multiple keywords, enter with separator of \",\"."
|
@@ -1019,13 +1132,13 @@ msgstr ""
|
|
1019 |
"メタタグに入力するキーワードを入力します。ここでは全てのページで使用する共通"
|
1020 |
"のキーワードを設定します。複数ある場合は「,」で区切ってください。"
|
1021 |
|
1022 |
-
#: dist/plugins/meta_keyword.php:75
|
1023 |
msgid "This is not seriously, Because the SearchEngine does not care this."
|
1024 |
msgstr ""
|
1025 |
"あまり深く考える必要はありません。現状のサーチエンジンではそこまで重要なファ"
|
1026 |
"クターとはなりません。"
|
1027 |
|
1028 |
-
#: dist/plugins/meta_keyword.php:76
|
1029 |
msgid ""
|
1030 |
"For each page individual keyword is enter at the edit screen of each "
|
1031 |
"article. 10 keywords maximum, together with a each article keywords is "
|
@@ -1034,54 +1147,56 @@ msgstr ""
|
|
1034 |
"個々のページのキーワードはそれぞれの投稿ページのキーワード入力欄から追加して"
|
1035 |
"ください。それらと合わせて10個程度のキーワード数であることが望ましいです。"
|
1036 |
|
1037 |
-
#: dist/plugins/meta_keyword.php:77
|
1038 |
msgid "\",\" separator at end of the last keyword is do not need."
|
1039 |
msgstr "最後のキーワードの後ろに「,」は必要ありません。"
|
1040 |
|
1041 |
-
#: dist/plugins/meta_keyword.php:78
|
1042 |
msgid "Example: WordPress,template,theme,free,GPL"
|
1043 |
msgstr "【例】 WordPress,テンプレート,テーマ,無料,GPL"
|
1044 |
|
1045 |
-
#: dist/plugins/meta_keyword.php:102
|
|
|
1046 |
msgid ""
|
1047 |
"To distinguish between individual keywords, please enter a , delimiter "
|
1048 |
"(optional)."
|
1049 |
msgstr "キーワードを複数入力する場合は , ( カンマ )で区切って下さい。"
|
1050 |
|
1051 |
-
#: dist/plugins/meta_keyword.php:104
|
|
|
1052 |
#, php-format
|
1053 |
msgid "* keywords common to the entire site can be set from %s."
|
1054 |
msgstr "サイト全体のキーワードは %s より設定することができます。"
|
1055 |
|
1056 |
#: dist/plugins/other_widget/widget-3pr-area.php:9
|
1057 |
#: dist/plugins/other_widget/widget-3pr-area.php:161
|
1058 |
-
#:
|
1059 |
-
#:
|
1060 |
msgid "3PR area"
|
1061 |
msgstr "3PR エリア"
|
1062 |
|
1063 |
#: dist/plugins/other_widget/widget-3pr-area.php:14
|
1064 |
-
#:
|
1065 |
msgid "Displays a 3PR area"
|
1066 |
msgstr "3PR エリアを表示します。"
|
1067 |
|
1068 |
#: dist/plugins/other_widget/widget-3pr-area.php:20
|
1069 |
-
#:
|
1070 |
msgid "3PR area1 title"
|
1071 |
msgstr "3PR エリア1 タイトル"
|
1072 |
|
1073 |
#: dist/plugins/other_widget/widget-3pr-area.php:28
|
1074 |
-
#:
|
1075 |
msgid "3PR area2 title"
|
1076 |
msgstr "3PR エリア2 タイトル"
|
1077 |
|
1078 |
#: dist/plugins/other_widget/widget-3pr-area.php:36
|
1079 |
-
#:
|
1080 |
msgid "3PR area3 title"
|
1081 |
msgstr "3PR エリア3 タイトル"
|
1082 |
|
1083 |
#: dist/plugins/other_widget/widget-3pr-area.php:54
|
1084 |
-
#:
|
1085 |
msgid "3PR area setting"
|
1086 |
msgstr "3PR エリア設定"
|
1087 |
|
@@ -1093,18 +1208,18 @@ msgstr "3PR エリア設定"
|
|
1093 |
#: dist/plugins/related_posts/related_posts.php:261
|
1094 |
#: dist/plugins/sns/widget-fb-page-plugin.php:79
|
1095 |
#: dist/plugins/sns/widget-twitter.php:84
|
1096 |
-
#:
|
1097 |
-
#:
|
1098 |
-
#:
|
1099 |
-
#:
|
1100 |
-
#:
|
1101 |
-
#:
|
1102 |
-
#:
|
1103 |
msgid "Title:"
|
1104 |
msgstr "タイトル"
|
1105 |
|
1106 |
#: dist/plugins/other_widget/widget-3pr-area.php:62
|
1107 |
-
#:
|
1108 |
msgid "Select image for PC:"
|
1109 |
msgstr "PC 用に表示される画像を選択(横 300px 程度推奨)"
|
1110 |
|
@@ -1113,11 +1228,11 @@ msgstr "PC 用に表示される画像を選択(横 300px 程度推奨)"
|
|
1113 |
#: dist/plugins/other_widget/widget-new-posts.php:290
|
1114 |
#: dist/plugins/other_widget/widget-pr-blocks.php:174
|
1115 |
#: dist/plugins/other_widget/widget-profile.php:70
|
1116 |
-
#:
|
1117 |
-
#:
|
1118 |
-
#:
|
1119 |
-
#:
|
1120 |
-
#:
|
1121 |
msgid "Select image"
|
1122 |
msgstr "画像を選択"
|
1123 |
|
@@ -1126,16 +1241,16 @@ msgstr "画像を選択"
|
|
1126 |
#: dist/plugins/other_widget/widget-new-posts.php:291
|
1127 |
#: dist/plugins/other_widget/widget-pr-blocks.php:175
|
1128 |
#: dist/plugins/other_widget/widget-profile.php:71
|
1129 |
-
#:
|
1130 |
-
#:
|
1131 |
-
#:
|
1132 |
-
#:
|
1133 |
-
#:
|
1134 |
msgid "Clear image"
|
1135 |
msgstr "画像クリア"
|
1136 |
|
1137 |
#: dist/plugins/other_widget/widget-3pr-area.php:80
|
1138 |
-
#:
|
1139 |
msgid "Select image for Mobile:"
|
1140 |
msgstr ""
|
1141 |
"スマホ用(ウィンドウサイズが 768px 以下の場合)に表示される画像を選択(橫 "
|
@@ -1143,34 +1258,34 @@ msgstr ""
|
|
1143 |
|
1144 |
#: dist/plugins/other_widget/widget-3pr-area.php:102
|
1145 |
#: dist/plugins/other_widget/widget-pr-blocks.php:115
|
1146 |
-
#:
|
1147 |
-
#:
|
1148 |
msgid "Summary Text:"
|
1149 |
msgstr "概要となるテキスト"
|
1150 |
|
1151 |
#: dist/plugins/other_widget/widget-3pr-area.php:108
|
1152 |
#: dist/plugins/other_widget/widget-pr-blocks.php:120
|
1153 |
-
#:
|
1154 |
-
#:
|
1155 |
msgid "Link URL:"
|
1156 |
msgstr "リンク先ページのURL"
|
1157 |
|
1158 |
#: dist/plugins/other_widget/widget-3pr-area.php:116
|
1159 |
#: dist/plugins/other_widget/widget-banner.php:106
|
1160 |
#: dist/plugins/other_widget/widget-pr-blocks.php:124
|
1161 |
-
#:
|
1162 |
-
#:
|
1163 |
-
#:
|
1164 |
msgid "Open link new tab."
|
1165 |
msgstr "リンクを別ウィンドウで開く"
|
1166 |
|
1167 |
#: dist/plugins/other_widget/widget-archives.php:9 dist/veu-packages.php:200
|
1168 |
-
#:
|
1169 |
msgid "archive list"
|
1170 |
msgstr "アーカイブリスト"
|
1171 |
|
1172 |
#: dist/plugins/other_widget/widget-archives.php:14 dist/veu-packages.php:200
|
1173 |
-
#:
|
1174 |
msgid ""
|
1175 |
"Displays a list of archives. You can choose the post type and also to "
|
1176 |
"display archives by month or by year."
|
@@ -1180,190 +1295,190 @@ msgstr ""
|
|
1180 |
|
1181 |
#: dist/plugins/other_widget/widget-archives.php:53
|
1182 |
#: dist/plugins/other_widget/widget-archives.php:54
|
1183 |
-
#:
|
1184 |
-
#:
|
1185 |
msgid "Monthly archives"
|
1186 |
msgstr "月別アーカイブ"
|
1187 |
|
1188 |
#: dist/plugins/other_widget/widget-archives.php:68
|
1189 |
#: dist/plugins/other_widget/widget-new-posts.php:261
|
1190 |
#: dist/plugins/other_widget/widget-new-posts.php:268
|
1191 |
-
#:
|
1192 |
-
#:
|
1193 |
-
#:
|
1194 |
msgid "Title"
|
1195 |
msgstr "タイトル"
|
1196 |
|
1197 |
#: dist/plugins/other_widget/widget-archives.php:72
|
1198 |
-
#:
|
1199 |
msgid "Post type"
|
1200 |
msgstr "ポストタイプ"
|
1201 |
|
1202 |
#: dist/plugins/other_widget/widget-archives.php:92
|
1203 |
-
#:
|
1204 |
msgid "Monthly"
|
1205 |
msgstr "月別"
|
1206 |
|
1207 |
#: dist/plugins/other_widget/widget-archives.php:99
|
1208 |
-
#:
|
1209 |
msgid "Yearly"
|
1210 |
msgstr "年別"
|
1211 |
|
1212 |
#: dist/plugins/other_widget/widget-archives.php:117
|
1213 |
-
#:
|
1214 |
msgid "archive"
|
1215 |
msgstr "アーカイブ"
|
1216 |
|
1217 |
#: dist/plugins/other_widget/widget-banner.php:15
|
1218 |
-
#:
|
1219 |
msgid "Banner"
|
1220 |
msgstr "バナー"
|
1221 |
|
1222 |
#: dist/plugins/other_widget/widget-banner.php:21
|
1223 |
-
#:
|
1224 |
msgid ""
|
1225 |
"You can easily set up a banner simply by registering images and link "
|
1226 |
"destinations."
|
1227 |
msgstr "画像とリンク先を登録するだけで簡単にバナーを設定できます。"
|
1228 |
|
1229 |
#: dist/plugins/other_widget/widget-banner.php:97
|
1230 |
-
#:
|
1231 |
msgid "Set image"
|
1232 |
msgstr "画像を選択"
|
1233 |
|
1234 |
#: dist/plugins/other_widget/widget-banner.php:107
|
1235 |
-
#:
|
1236 |
msgid "Alternative text"
|
1237 |
msgstr "代替テキスト(alt)"
|
1238 |
|
1239 |
#: dist/plugins/other_widget/widget-button.php:32
|
1240 |
-
#:
|
1241 |
msgid "Button"
|
1242 |
msgstr "ボタン"
|
1243 |
|
1244 |
#: dist/plugins/other_widget/widget-button.php:37
|
1245 |
-
#:
|
1246 |
msgid "You can set buttons for arbitrary text."
|
1247 |
msgstr "任意のテキストのボタンを設定できます。"
|
1248 |
|
1249 |
#: dist/plugins/other_widget/widget-button.php:116
|
1250 |
-
#:
|
1251 |
msgid "Main text(Required):"
|
1252 |
msgstr "ボタンテキスト(必須):"
|
1253 |
|
1254 |
#: dist/plugins/other_widget/widget-button.php:121
|
1255 |
-
#:
|
1256 |
msgid "Class name of the icon font"
|
1257 |
msgstr "使用したいアイコンフォント"
|
1258 |
|
1259 |
#: dist/plugins/other_widget/widget-button.php:134
|
1260 |
-
#:
|
1261 |
msgid "Sub text:"
|
1262 |
msgstr "サブテキスト:"
|
1263 |
|
1264 |
#: dist/plugins/other_widget/widget-button.php:138
|
1265 |
-
#:
|
1266 |
msgid "Link URL(Required):"
|
1267 |
msgstr "リンク先ページのURL(必須):"
|
1268 |
|
1269 |
#: dist/plugins/other_widget/widget-button.php:148
|
1270 |
-
#:
|
1271 |
msgid "Open with new tab"
|
1272 |
msgstr "リンクを別ウィンドウで開く"
|
1273 |
|
1274 |
#: dist/plugins/other_widget/widget-button.php:151
|
1275 |
-
#:
|
1276 |
msgid "Size"
|
1277 |
msgstr "サイズ"
|
1278 |
|
1279 |
#: dist/plugins/other_widget/widget-button.php:158
|
1280 |
-
#:
|
1281 |
msgid "Small"
|
1282 |
msgstr "小"
|
1283 |
|
1284 |
#: dist/plugins/other_widget/widget-button.php:164
|
1285 |
-
#:
|
1286 |
msgid "Medium"
|
1287 |
msgstr "中"
|
1288 |
|
1289 |
#: dist/plugins/other_widget/widget-button.php:170
|
1290 |
-
#:
|
1291 |
msgid "Large"
|
1292 |
msgstr "大"
|
1293 |
|
1294 |
#: dist/plugins/other_widget/widget-button.php:174
|
1295 |
-
#:
|
1296 |
msgid "Button color:"
|
1297 |
msgstr "ボタンの色:"
|
1298 |
|
1299 |
#: dist/plugins/other_widget/widget-button.php:211
|
1300 |
-
#:
|
1301 |
msgid "Key Color(.primary)"
|
1302 |
msgstr "キーカラー(.primary)"
|
1303 |
|
1304 |
#: dist/plugins/other_widget/widget-button.php:212
|
1305 |
-
#:
|
1306 |
msgid "No paint(.default)"
|
1307 |
msgstr "塗りなし(.default)"
|
1308 |
|
1309 |
#: dist/plugins/other_widget/widget-button.php:213
|
1310 |
-
#:
|
1311 |
msgid "Light green(.success)"
|
1312 |
msgstr "明るい緑(.success)"
|
1313 |
|
1314 |
#: dist/plugins/other_widget/widget-button.php:214
|
1315 |
-
#:
|
1316 |
msgid "Light blue(.info)"
|
1317 |
msgstr "空色(.info)"
|
1318 |
|
1319 |
#: dist/plugins/other_widget/widget-button.php:215
|
1320 |
-
#:
|
1321 |
msgid "Orange(.warning)"
|
1322 |
msgstr "オレンジ(.warning)"
|
1323 |
|
1324 |
#: dist/plugins/other_widget/widget-button.php:216
|
1325 |
-
#:
|
1326 |
msgid "Red(.danger)"
|
1327 |
msgstr "赤(.danger)"
|
1328 |
|
1329 |
#: dist/plugins/other_widget/widget-child-page-list.php:10
|
1330 |
-
#:
|
1331 |
msgid "Child Page List"
|
1332 |
msgstr "子ページのリスト"
|
1333 |
|
1334 |
#: dist/plugins/other_widget/widget-child-page-list.php:15
|
1335 |
#: dist/plugins/other_widget/widget-child-page-list.php:59
|
1336 |
-
#:
|
1337 |
-
#:
|
1338 |
msgid "Display the child pages list from ancestor page."
|
1339 |
msgstr "表示しているページの先祖階層からの子ページリストを表示します。"
|
1340 |
|
1341 |
#: dist/plugins/other_widget/widget-new-posts.php:12
|
1342 |
#: dist/plugins/other_widget/widget-new-posts.php:217
|
1343 |
-
#:
|
1344 |
-
#:
|
1345 |
msgid "Recent Posts"
|
1346 |
msgstr "最新記事"
|
1347 |
|
1348 |
#: dist/plugins/other_widget/widget-new-posts.php:17
|
1349 |
-
#:
|
1350 |
msgid "Displays a list of your most recent posts"
|
1351 |
msgstr "最新の投稿記事リストを表示します。"
|
1352 |
|
1353 |
#: dist/plugins/other_widget/widget-new-posts.php:254
|
1354 |
-
#:
|
1355 |
msgid "Display Format"
|
1356 |
msgstr "表示形式"
|
1357 |
|
1358 |
#: dist/plugins/other_widget/widget-new-posts.php:261
|
1359 |
-
#:
|
1360 |
msgid "Thumbnail"
|
1361 |
msgstr "サムネイル画像"
|
1362 |
|
1363 |
#: dist/plugins/other_widget/widget-new-posts.php:261
|
1364 |
#: dist/plugins/other_widget/widget-new-posts.php:268
|
1365 |
-
#:
|
1366 |
-
#:
|
1367 |
msgid "Date"
|
1368 |
msgstr "日付"
|
1369 |
|
@@ -1371,156 +1486,156 @@ msgstr "日付"
|
|
1371 |
#: dist/plugins/other_widget/widget-taxonomies.php:26
|
1372 |
#: dist/plugins/other_widget/widget-taxonomies.php:56
|
1373 |
#: dist/plugins/other_widget/widget-taxonomies.php:57
|
1374 |
-
#:
|
1375 |
-
#:
|
1376 |
-
#:
|
1377 |
-
#:
|
1378 |
msgid "Category"
|
1379 |
msgstr "カテゴリー"
|
1380 |
|
1381 |
#: dist/plugins/other_widget/widget-new-posts.php:281
|
1382 |
-
#:
|
1383 |
msgid "Default thumbnail image:"
|
1384 |
msgstr "デフォルトのサムネイル画像:"
|
1385 |
|
1386 |
#: dist/plugins/other_widget/widget-new-posts.php:302
|
1387 |
-
#:
|
1388 |
msgid "Order by"
|
1389 |
msgstr "表示順"
|
1390 |
|
1391 |
#: dist/plugins/other_widget/widget-new-posts.php:309
|
1392 |
-
#:
|
1393 |
msgid "Publish date"
|
1394 |
msgstr "公開日"
|
1395 |
|
1396 |
#: dist/plugins/other_widget/widget-new-posts.php:315
|
1397 |
-
#:
|
1398 |
msgid "Modified date"
|
1399 |
msgstr "最終更新日"
|
1400 |
|
1401 |
#: dist/plugins/other_widget/widget-new-posts.php:319
|
1402 |
#: dist/plugins/related_posts/related_posts.php:281
|
1403 |
-
#:
|
1404 |
-
#:
|
1405 |
msgid "Display count"
|
1406 |
msgstr "表示する記事数"
|
1407 |
|
1408 |
#: dist/plugins/other_widget/widget-new-posts.php:324
|
1409 |
-
#:
|
1410 |
msgid "Slug for the custom type you want to display"
|
1411 |
msgstr "表示したい記事タイプ"
|
1412 |
|
1413 |
#: dist/plugins/other_widget/widget-new-posts.php:329
|
1414 |
-
#:
|
1415 |
msgid "taxonomy ID"
|
1416 |
msgstr "カテゴリー(タクソノミー)ID"
|
1417 |
|
1418 |
#: dist/plugins/other_widget/widget-new-posts.php:332
|
1419 |
-
#:
|
1420 |
msgid "if you need filtering by term, add the term ID separate by \",\"."
|
1421 |
msgstr ""
|
1422 |
"特定のカテゴリーのみ表示したい場合は<br/>カンマ(,)区切りでカテゴリーIDを入力"
|
1423 |
"します。"
|
1424 |
|
1425 |
#: dist/plugins/other_widget/widget-new-posts.php:334
|
1426 |
-
#: dist/plugins/sns/sns_admin.php:92
|
1427 |
-
#:
|
1428 |
msgid "if empty this area, I will do not filtering."
|
1429 |
msgstr "空欄の場合はフィルタリングは行いません。"
|
1430 |
|
1431 |
#: dist/plugins/other_widget/widget-new-posts.php:339
|
1432 |
-
#:
|
1433 |
msgid "Destination URL:"
|
1434 |
msgstr "リンク先URL:"
|
1435 |
|
1436 |
#: dist/plugins/other_widget/widget-new-posts.php:342
|
1437 |
-
#:
|
1438 |
msgid "Notation text:"
|
1439 |
msgstr "表記テキスト:"
|
1440 |
|
1441 |
#: dist/plugins/other_widget/widget-page.php:9
|
1442 |
-
#:
|
1443 |
msgid "page content to widget"
|
1444 |
msgstr "固定ページ本文"
|
1445 |
|
1446 |
#: dist/plugins/other_widget/widget-page.php:14
|
1447 |
-
#:
|
1448 |
msgid "Displays a page contents to widget."
|
1449 |
msgstr "選択したページの内容を表示します。"
|
1450 |
|
1451 |
#: dist/plugins/other_widget/widget-page.php:135
|
1452 |
-
#:
|
1453 |
msgid "Display the entered title"
|
1454 |
msgstr "入力したタイトルを表示する"
|
1455 |
|
1456 |
#: dist/plugins/other_widget/widget-page.php:139
|
1457 |
-
#:
|
1458 |
msgid "Display the title of page"
|
1459 |
msgstr "固定ページのタイトルを表示する"
|
1460 |
|
1461 |
#: dist/plugins/other_widget/widget-page.php:143
|
1462 |
-
#:
|
1463 |
msgid "Do not display titles"
|
1464 |
msgstr "タイトルを表示しない"
|
1465 |
|
1466 |
#: dist/plugins/other_widget/widget-page.php:175
|
1467 |
-
#: dist/plugins/pageList_ancestor.php:96
|
1468 |
-
#:
|
1469 |
msgid "Display a page list from ancestor"
|
1470 |
msgstr "現在のページの先祖階層からの子ページリストを表示"
|
1471 |
|
1472 |
#: dist/plugins/other_widget/widget-page.php:243
|
1473 |
-
#:
|
1474 |
msgid "Edit"
|
1475 |
msgstr "編集"
|
1476 |
|
1477 |
#: dist/plugins/other_widget/widget-pr-blocks.php:17
|
1478 |
-
#:
|
1479 |
msgid "PR Blocks"
|
1480 |
msgstr "PR Blocks"
|
1481 |
|
1482 |
#: dist/plugins/other_widget/widget-pr-blocks.php:22
|
1483 |
-
#:
|
1484 |
msgid "Displays a circle image or icon font for pr blocks"
|
1485 |
msgstr "丸抜きの画像やアイコンフォントをPRブロックに表示"
|
1486 |
|
1487 |
#: dist/plugins/other_widget/widget-pr-blocks.php:30
|
1488 |
-
#:
|
1489 |
msgid "Service"
|
1490 |
msgstr "サービス紹介"
|
1491 |
|
1492 |
#: dist/plugins/other_widget/widget-pr-blocks.php:40
|
1493 |
-
#:
|
1494 |
msgid "Company"
|
1495 |
msgstr "会社案内"
|
1496 |
|
1497 |
#: dist/plugins/other_widget/widget-pr-blocks.php:50
|
1498 |
-
#:
|
1499 |
msgid "Recruit"
|
1500 |
msgstr "採用情報"
|
1501 |
|
1502 |
#: dist/plugins/other_widget/widget-pr-blocks.php:60
|
1503 |
-
#:
|
1504 |
msgid "Contact"
|
1505 |
msgstr "Contact"
|
1506 |
|
1507 |
#: dist/plugins/other_widget/widget-pr-blocks.php:83
|
1508 |
-
#:
|
1509 |
msgid "The choice of the number of columns:"
|
1510 |
msgstr "列の数"
|
1511 |
|
1512 |
#: dist/plugins/other_widget/widget-pr-blocks.php:90
|
1513 |
-
#:
|
1514 |
msgid "3column"
|
1515 |
msgstr "3列"
|
1516 |
|
1517 |
#: dist/plugins/other_widget/widget-pr-blocks.php:96
|
1518 |
-
#:
|
1519 |
msgid "4column"
|
1520 |
msgstr "4列"
|
1521 |
|
1522 |
#: dist/plugins/other_widget/widget-pr-blocks.php:98
|
1523 |
-
#:
|
1524 |
msgid ""
|
1525 |
"If you change the number of columns, click to \"Save\" botton and exit the "
|
1526 |
"edit page. When restart the edit page, the column input form is increased or "
|
@@ -1531,151 +1646,149 @@ msgstr ""
|
|
1531 |
|
1532 |
#: dist/plugins/other_widget/widget-pr-blocks.php:107
|
1533 |
#: dist/plugins/other_widget/widget-pr-blocks.php:277
|
1534 |
-
#:
|
1535 |
-
#:
|
1536 |
msgid "PR Block"
|
1537 |
msgstr "PRブロック"
|
1538 |
|
1539 |
#: dist/plugins/other_widget/widget-pr-blocks.php:129
|
1540 |
-
#:
|
1541 |
msgid "Icon"
|
1542 |
msgstr "アイコン"
|
1543 |
|
1544 |
#: dist/plugins/other_widget/widget-pr-blocks.php:132
|
1545 |
-
#:
|
1546 |
msgid "Class name of the icon font you want to use:"
|
1547 |
msgstr "使用したいアイコンフォントのクラス名:"
|
1548 |
|
1549 |
#: dist/plugins/other_widget/widget-pr-blocks.php:143
|
1550 |
#: dist/plugins/other_widget/widget-profile.php:157
|
1551 |
-
#:
|
1552 |
-
#:
|
1553 |
msgid "Icon color:"
|
1554 |
msgstr "アイコンの色:"
|
1555 |
|
1556 |
#: dist/plugins/other_widget/widget-pr-blocks.php:147
|
1557 |
#: dist/plugins/other_widget/widget-profile.php:142
|
1558 |
-
#:
|
1559 |
-
#:
|
1560 |
msgid "Icon Background:"
|
1561 |
msgstr "アイコン背景:"
|
1562 |
|
1563 |
#: dist/plugins/other_widget/widget-pr-blocks.php:151
|
1564 |
#: dist/plugins/other_widget/widget-profile.php:148
|
1565 |
-
#:
|
1566 |
-
#:
|
1567 |
msgid "Solid color"
|
1568 |
msgstr "塗りつぶし"
|
1569 |
|
1570 |
#: dist/plugins/other_widget/widget-pr-blocks.php:155
|
1571 |
#: dist/plugins/other_widget/widget-profile.php:151
|
1572 |
-
#: dist/plugins/sns/sns_customizer.php:
|
1573 |
-
#:
|
1574 |
-
#:
|
1575 |
-
#: plugins/sns/sns_customizer.php:318
|
1576 |
msgid "No background"
|
1577 |
msgstr "背景なし"
|
1578 |
|
1579 |
#: dist/plugins/other_widget/widget-pr-blocks.php:161
|
1580 |
-
#:
|
1581 |
msgid "PR Image"
|
1582 |
msgstr "画像"
|
1583 |
|
1584 |
#: dist/plugins/other_widget/widget-pr-blocks.php:162
|
1585 |
-
#:
|
1586 |
msgid "When you have an image. Image is displayed with priority"
|
1587 |
msgstr "画像を設定するとアイコンフォントよりも画像が優先されます。"
|
1588 |
|
1589 |
#: dist/plugins/other_widget/widget-profile.php:9
|
1590 |
#: dist/plugins/other_widget/widget-profile.php:32
|
1591 |
-
#:
|
1592 |
-
#: plugins/other_widget/widget-profile.php:32
|
1593 |
msgid "Profile"
|
1594 |
msgstr "プロフィール"
|
1595 |
|
1596 |
#: dist/plugins/other_widget/widget-profile.php:14
|
1597 |
-
#:
|
1598 |
msgid "Displays a your profile"
|
1599 |
msgstr ""
|
1600 |
"ブログのサイドバーに運営者情報を表示したり、フッターに企業情報を表示します。"
|
1601 |
|
1602 |
#: dist/plugins/other_widget/widget-profile.php:40
|
1603 |
-
#:
|
1604 |
msgid "Profile Text"
|
1605 |
msgstr "プロフィールテキスト"
|
1606 |
|
1607 |
#: dist/plugins/other_widget/widget-profile.php:60
|
1608 |
-
#:
|
1609 |
msgid "Select Profile image:"
|
1610 |
msgstr "プロフィール用画像を選択"
|
1611 |
|
1612 |
#: dist/plugins/other_widget/widget-profile.php:79
|
1613 |
-
#:
|
1614 |
msgid "Cut out round the image."
|
1615 |
msgstr "画像を丸く切り抜いて表示する"
|
1616 |
|
1617 |
#: dist/plugins/other_widget/widget-profile.php:83
|
1618 |
-
#:
|
1619 |
msgid "Media size (Optional)"
|
1620 |
msgstr "画像の大きさ( 任意 )"
|
1621 |
|
1622 |
#: dist/plugins/other_widget/widget-profile.php:93
|
1623 |
-
#:
|
1624 |
msgid "Align left"
|
1625 |
msgstr "画像左揃え"
|
1626 |
|
1627 |
#: dist/plugins/other_widget/widget-profile.php:96
|
1628 |
-
#:
|
1629 |
msgid "Align center"
|
1630 |
msgstr "画像中央揃え"
|
1631 |
|
1632 |
#: dist/plugins/other_widget/widget-profile.php:100
|
1633 |
-
#:
|
1634 |
msgid "Text float to image."
|
1635 |
msgstr "テキストを画像に回りこませる"
|
1636 |
|
1637 |
#: dist/plugins/other_widget/widget-profile.php:104
|
1638 |
-
#:
|
1639 |
msgid "Profile Text:"
|
1640 |
msgstr "プロフィールテキスト"
|
1641 |
|
1642 |
#: dist/plugins/other_widget/widget-profile.php:108
|
1643 |
-
#:
|
1644 |
msgid "Facebook URL:"
|
1645 |
msgstr "Facebook リンク先ページのURL"
|
1646 |
|
1647 |
#: dist/plugins/other_widget/widget-profile.php:113
|
1648 |
-
#:
|
1649 |
msgid "Twitter URL:"
|
1650 |
msgstr "twitterリンク先ページのURL"
|
1651 |
|
1652 |
#: dist/plugins/other_widget/widget-profile.php:118
|
1653 |
-
#:
|
1654 |
msgid "Email Address:"
|
1655 |
msgstr "Email リンク先ページのURL"
|
1656 |
|
1657 |
#: dist/plugins/other_widget/widget-profile.php:123
|
1658 |
-
#:
|
1659 |
msgid "Youtube URL:"
|
1660 |
msgstr "Youtube リンク先ページのURL"
|
1661 |
|
1662 |
#: dist/plugins/other_widget/widget-profile.php:128
|
1663 |
-
#:
|
1664 |
msgid "RSS URL:"
|
1665 |
msgstr "RSS リンク先ページのURL"
|
1666 |
|
1667 |
#: dist/plugins/other_widget/widget-profile.php:133
|
1668 |
-
#:
|
1669 |
msgid "instagram URL:"
|
1670 |
msgstr "instagram リンク先ページのURL"
|
1671 |
|
1672 |
#: dist/plugins/other_widget/widget-profile.php:137
|
1673 |
-
#:
|
1674 |
msgid "linkedin URL:"
|
1675 |
msgstr "linkedin リンク先ページのURL"
|
1676 |
|
1677 |
#: dist/plugins/other_widget/widget-profile.php:153
|
1678 |
-
#:
|
1679 |
msgid ""
|
1680 |
"* When \"Icon Background: Fill\" is selected and \"Icon color\" is not "
|
1681 |
"specified, each brand color will be painted."
|
@@ -1684,150 +1797,150 @@ msgstr ""
|
|
1684 |
"きは各ブランドカラーで塗りつぶしされます。"
|
1685 |
|
1686 |
#: dist/plugins/other_widget/widget-side-child-page-list.php:12
|
1687 |
-
#:
|
1688 |
msgid "child pages list"
|
1689 |
msgstr "子ページのリスト"
|
1690 |
|
1691 |
#: dist/plugins/other_widget/widget-side-child-page-list.php:17
|
1692 |
-
#:
|
1693 |
msgid "Displays list of child page for the current page."
|
1694 |
msgstr "表示しているページの先祖階層からの子ページリストを表示します。"
|
1695 |
|
1696 |
#: dist/plugins/other_widget/widget-taxonomies.php:10
|
1697 |
-
#:
|
1698 |
msgid "Categories/Custom taxonomies list"
|
1699 |
msgstr "カテゴリー/カスタム分類リスト"
|
1700 |
|
1701 |
#: dist/plugins/other_widget/widget-taxonomies.php:15
|
1702 |
-
#:
|
1703 |
msgid "Displays a categories and custom taxonomies list."
|
1704 |
msgstr "カテゴリーやカスタム分類のリストを表示します。"
|
1705 |
|
1706 |
#: dist/plugins/other_widget/widget-taxonomies.php:71
|
1707 |
-
#:
|
1708 |
msgid "Label to display"
|
1709 |
msgstr "表示するラベル"
|
1710 |
|
1711 |
#: dist/plugins/other_widget/widget-taxonomies.php:75
|
1712 |
-
#:
|
1713 |
msgid "Display page"
|
1714 |
msgstr "ページを表示"
|
1715 |
|
1716 |
#: dist/plugins/other_widget/widget-taxonomies.php:94
|
1717 |
-
#:
|
1718 |
msgid "Do not display terms without posts"
|
1719 |
msgstr "投稿のない分類項目を表示しない"
|
1720 |
|
1721 |
#: dist/plugins/other_widget/widget-taxonomies.php:106
|
1722 |
-
#:
|
1723 |
msgid "Blog"
|
1724 |
msgstr "ブログ"
|
1725 |
|
1726 |
#: dist/plugins/other_widget/widget-taxonomies.php:111
|
1727 |
#: dist/plugins/template-tags/template-tags.php:157
|
1728 |
-
#:
|
1729 |
-
#:
|
1730 |
msgid "Archives"
|
1731 |
msgstr "アーカイブ"
|
1732 |
|
1733 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:22
|
1734 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:23
|
1735 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:65
|
1736 |
-
#:
|
1737 |
-
#:
|
1738 |
-
#:
|
1739 |
msgid "Custom Post Type Setting"
|
1740 |
msgstr "カスタム投稿タイプ設定"
|
1741 |
|
1742 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:88
|
1743 |
-
#:
|
1744 |
msgid "Post Type ID(Required)"
|
1745 |
msgstr "投稿タイプID(必須)"
|
1746 |
|
1747 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:89
|
1748 |
-
#:
|
1749 |
msgid "20 characters or less in alphanumeric"
|
1750 |
msgstr "半角英数字20文字以内で入力ください"
|
1751 |
|
1752 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:94
|
1753 |
-
#:
|
1754 |
msgid "title"
|
1755 |
msgstr "タイトル"
|
1756 |
|
1757 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:95
|
1758 |
-
#:
|
1759 |
msgid "editor"
|
1760 |
msgstr "本文"
|
1761 |
|
1762 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:96
|
1763 |
-
#:
|
1764 |
msgid "author"
|
1765 |
msgstr "投稿者"
|
1766 |
|
1767 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:97
|
1768 |
-
#:
|
1769 |
msgid "thumbnail"
|
1770 |
msgstr "アイキャッチ画像"
|
1771 |
|
1772 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:98
|
1773 |
-
#:
|
1774 |
msgid "excerpt"
|
1775 |
msgstr "抜粋"
|
1776 |
|
1777 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:99
|
1778 |
-
#:
|
1779 |
msgid "comments"
|
1780 |
msgstr "コメント"
|
1781 |
|
1782 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:100
|
1783 |
-
#:
|
1784 |
msgid "revisions"
|
1785 |
msgstr "リビジョン"
|
1786 |
|
1787 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:105
|
1788 |
-
#:
|
1789 |
msgid "Supports(Required)"
|
1790 |
msgstr "有効にする項目(必須)"
|
1791 |
|
1792 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:118
|
1793 |
-
#:
|
1794 |
msgid "Menu position(optional)"
|
1795 |
msgstr "メニューの位置( 任意 )"
|
1796 |
|
1797 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:119
|
1798 |
-
#:
|
1799 |
msgid "Please enter a number."
|
1800 |
msgstr "数字を入力してください。数字が小さいほど上に表示されます。"
|
1801 |
|
1802 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:126
|
1803 |
-
#:
|
1804 |
msgid "Export to REST API(optional)"
|
1805 |
msgstr "REST API に出力する( 任意 )"
|
1806 |
|
1807 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:138
|
1808 |
-
#:
|
1809 |
msgid "Export to REST API"
|
1810 |
msgstr "REST API に出力する"
|
1811 |
|
1812 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:143
|
1813 |
-
#:
|
1814 |
msgid "Custom taxonomies(optional)"
|
1815 |
msgstr "カスタム分類(任意)"
|
1816 |
|
1817 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:146
|
1818 |
-
#:
|
1819 |
msgid "Custom taxonomy is like a category in post."
|
1820 |
msgstr "カスタム分類とは投稿で言うカテゴリーです。"
|
1821 |
|
1822 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:147
|
1823 |
-
#:
|
1824 |
msgid ""
|
1825 |
"However, it refers to the \"category\" itself, not to the “item” of the "
|
1826 |
"category."
|
1827 |
msgstr "しかし、カテゴリーの”項目”ではなく、”カテゴリー”そのものを指します。"
|
1828 |
|
1829 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:148
|
1830 |
-
#:
|
1831 |
msgid ""
|
1832 |
"For example, if you create a post type \"construction result\", Custom "
|
1833 |
"taxonomy will be \"construction type\", \"construction area\", etc."
|
@@ -1836,42 +1949,42 @@ msgstr ""
|
|
1836 |
"プ」「施工地域」等になります。"
|
1837 |
|
1838 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:172
|
1839 |
-
#:
|
1840 |
msgid "Custon taxonomy name(slug)"
|
1841 |
msgstr "カスタム分類名(スラッグ)"
|
1842 |
|
1843 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:176
|
1844 |
-
#:
|
1845 |
msgid "* Please be sure to enter it with one-byte alphanumeric characters"
|
1846 |
msgstr "※ 必ず半角英数字にて入力してください"
|
1847 |
|
1848 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:182
|
1849 |
-
#:
|
1850 |
msgid "Custon taxonomy label"
|
1851 |
msgstr "カスタム分類名(表示名)"
|
1852 |
|
1853 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:189
|
1854 |
-
#:
|
1855 |
msgid "Hierarchy"
|
1856 |
msgstr "階層"
|
1857 |
|
1858 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:190
|
1859 |
-
#:
|
1860 |
msgid "Make it a tag (do not hierarchize)"
|
1861 |
msgstr "タグにする(階層化しない)"
|
1862 |
|
1863 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:199
|
1864 |
-
#:
|
1865 |
msgid "REST API(optional)"
|
1866 |
msgstr "REST API ( 任意 )"
|
1867 |
|
1868 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:200
|
1869 |
-
#:
|
1870 |
msgid "Use for REST API"
|
1871 |
msgstr "REST API に利用する"
|
1872 |
|
1873 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:262
|
1874 |
-
#:
|
1875 |
#, php-format
|
1876 |
msgid ""
|
1877 |
"Please save a <a href=\"%s\">permanent link configuration</a> After updating "
|
@@ -1880,122 +1993,123 @@ msgstr ""
|
|
1880 |
"設定を更新したら<a href=\"%s\">パーマリンク設定</a>を保存してください。"
|
1881 |
|
1882 |
#: dist/plugins/related_posts/related_posts.php:210 dist/veu-packages.php:339
|
1883 |
-
#:
|
1884 |
msgid "Related posts"
|
1885 |
msgstr "関連記事を表示"
|
1886 |
|
1887 |
#: dist/plugins/related_posts/related_posts.php:244
|
1888 |
-
#:
|
1889 |
msgid "Related Settings"
|
1890 |
msgstr "関連記事設定"
|
1891 |
|
1892 |
#: dist/plugins/sitemap_page/hide-controller.php:17
|
1893 |
-
#: plugins/sitemap_page/hide-controller.php:17
|
1894 |
msgid "Site Map Hide"
|
1895 |
msgstr "サイトマップ非表示設定"
|
1896 |
|
1897 |
#: dist/plugins/sitemap_page/hide-controller.php:46
|
1898 |
-
#: plugins/sitemap_page/hide-controller.php:46
|
1899 |
msgid "Don't display on Sitemap."
|
1900 |
msgstr "サイトマップに表示しない"
|
1901 |
|
1902 |
#: dist/plugins/sitemap_page/sitemap_admin.php:9
|
1903 |
-
#:
|
1904 |
msgid "HTML Sitemap Settings"
|
1905 |
msgstr "HTMLサイトマップ設定"
|
1906 |
|
1907 |
#: dist/plugins/sitemap_page/sitemap_admin.php:13
|
1908 |
-
#:
|
1909 |
msgid "Exclude page Settings"
|
1910 |
msgstr "除外ページ設定"
|
1911 |
|
1912 |
#: dist/plugins/sitemap_page/sitemap_admin.php:15
|
1913 |
-
#:
|
1914 |
msgid "Input you want to exclude page id."
|
1915 |
msgstr "HTMLサイトマップから除外したい固定ページのIDを入力してください。"
|
1916 |
|
1917 |
#: dist/plugins/sitemap_page/sitemap_admin.php:17
|
1918 |
-
#:
|
1919 |
msgid ""
|
1920 |
"* Please enter separated by \",\"(commas) if there is more than one page ID "
|
1921 |
"that you want to exclude."
|
1922 |
msgstr "複数のページを除外する場合は , (コンマ)で区切って入力してください。"
|
1923 |
|
1924 |
#: dist/plugins/sitemap_page/sitemap_page.php:34
|
1925 |
-
#:
|
1926 |
msgid "HTML Sitemap"
|
1927 |
msgstr "HTMLサイトマップ"
|
1928 |
|
1929 |
#: dist/plugins/sitemap_page/sitemap_page.php:261
|
1930 |
-
#:
|
1931 |
msgid "Display a HTML sitemap"
|
1932 |
msgstr "HTMLサイトマップの表示"
|
1933 |
|
1934 |
-
#: dist/plugins/sns/function_follow.php:25
|
1935 |
msgid "Follow me"
|
1936 |
msgstr "このサイトをフォローする"
|
1937 |
|
1938 |
-
#: dist/plugins/sns/function_follow.php:73
|
1939 |
msgid "Edit follow button"
|
1940 |
msgstr "Follow me box の編集"
|
1941 |
|
1942 |
#: dist/plugins/sns/function_meta_box.php:29
|
1943 |
-
|
|
|
1944 |
msgid "Sns Title"
|
1945 |
msgstr "OGPタイトル"
|
1946 |
|
1947 |
#: dist/plugins/sns/function_meta_box.php:40
|
1948 |
-
#:
|
1949 |
msgid "if filled this area then override title of OGP and Twitter Card"
|
1950 |
msgstr ""
|
1951 |
"このエリアにタイトルを入力すると、このページのOGP,ツイッターカードに出力され"
|
1952 |
"るタイトルを上書きすることができます"
|
1953 |
|
1954 |
-
#: dist/plugins/sns/hide_controller.php:28
|
1955 |
msgid "Share bottons"
|
1956 |
msgstr "ソーシャルボタン"
|
1957 |
|
1958 |
-
#: dist/plugins/sns/hide_controller.php:72
|
|
|
1959 |
msgid "This post type is not set to display the share button."
|
1960 |
msgstr "この投稿タイプはシェアボタンを表示するように設定されていません。"
|
1961 |
|
1962 |
-
#: dist/plugins/sns/hide_controller.php:93
|
|
|
1963 |
msgid "Don't display share bottons."
|
1964 |
msgstr "ソーシャルボタンを表示しない"
|
1965 |
|
1966 |
-
#: dist/plugins/sns/sns.php:21
|
1967 |
msgid "SNS"
|
1968 |
msgstr "SNS"
|
1969 |
|
1970 |
-
#: dist/plugins/sns/sns.php:
|
1971 |
msgctxt "facebook language code"
|
1972 |
msgid "en_US"
|
1973 |
msgstr "ja_JP"
|
1974 |
|
1975 |
-
#: dist/plugins/sns/sns_admin.php:1 dist/plugins/sns/sns_customizer.php:
|
1976 |
-
#:
|
1977 |
msgid "SNS Settings"
|
1978 |
msgstr "SNS設定"
|
1979 |
|
1980 |
-
#: dist/plugins/sns/sns_admin.php:14 dist/plugins/sns/sns_customizer.php:
|
1981 |
-
#:
|
1982 |
msgid "Post title custom for SNS"
|
1983 |
msgstr "OGPなどの投稿タイトルの変更"
|
1984 |
|
1985 |
-
#: dist/plugins/sns/sns_admin.php:16 dist/plugins/sns/sns_customizer.php:
|
1986 |
-
#:
|
1987 |
msgid "For SNS title be composed by post title only."
|
1988 |
msgstr "投稿タイトルだけにする(サイトタイトルなど含めない)。"
|
1989 |
|
1990 |
-
#: dist/plugins/sns/sns_admin.php:20
|
1991 |
msgid "facebook application ID"
|
1992 |
msgstr "facebookアプリケーションID"
|
1993 |
|
1994 |
-
#: dist/plugins/sns/sns_admin.php:22
|
1995 |
msgid "I will check and get the application ID"
|
1996 |
msgstr "アプリケーションIDを確認・取得する "
|
1997 |
|
1998 |
-
#: dist/plugins/sns/sns_admin.php:23
|
1999 |
msgid ""
|
2000 |
"* If an application ID is not specified, neither a Like button nor the "
|
2001 |
"comment field displays and operates correctly."
|
@@ -2003,7 +2117,7 @@ msgstr ""
|
|
2003 |
"※アプリケーションIDを入力しないとボタンやコメント欄が表示・正しく動作しませ"
|
2004 |
"ん。"
|
2005 |
|
2006 |
-
#: dist/plugins/sns/sns_admin.php:24
|
2007 |
msgid ""
|
2008 |
"Please search for terms as [get Facebook application ID] If you do not know "
|
2009 |
"much about how to get application ID for Facebook."
|
@@ -2011,16 +2125,16 @@ msgstr ""
|
|
2011 |
"facebookのアプリケーションIDの取得方法についてよくわからない場合は「facebook "
|
2012 |
"アプリケーションID 取得」などで検索して下さい。"
|
2013 |
|
2014 |
-
#: dist/plugins/sns/sns_admin.php:28
|
2015 |
msgid "facebook page URL"
|
2016 |
msgstr "FacebookページURL"
|
2017 |
|
2018 |
-
#: dist/plugins/sns/sns_admin.php:33 dist/plugins/sns/sns_customizer.php:
|
2019 |
-
#:
|
2020 |
msgid "OG default image"
|
2021 |
msgstr "デフォルトのOGPイメージ"
|
2022 |
|
2023 |
-
#: dist/plugins/sns/sns_admin.php:34
|
2024 |
msgid ""
|
2025 |
"If, for example someone pressed the Facebook [Like] button, this is the "
|
2026 |
"image that appears on the Facebook timeline."
|
@@ -2028,37 +2142,37 @@ msgstr ""
|
|
2028 |
"Facebookの「いいね!」ボタンを押した際、ここで設定した画像が Facebook のタイ"
|
2029 |
"ムラインに表示されます。"
|
2030 |
|
2031 |
-
#: dist/plugins/sns/sns_admin.php:35
|
2032 |
msgid "If a featured image is specified for the page, it takes precedence."
|
2033 |
msgstr ""
|
2034 |
"ページにアイキャッチ画像が指定されている場合は、アイキャッチ画像が優先されま"
|
2035 |
"す。"
|
2036 |
|
2037 |
-
#: dist/plugins/sns/sns_admin.php:37
|
2038 |
msgid "Select an image"
|
2039 |
msgstr "画像を選択"
|
2040 |
|
2041 |
-
#: dist/plugins/sns/sns_admin.php:39
|
2042 |
msgid ""
|
2043 |
"* Picture sizes are 1280x720 pixels or more and picture ratio 16:9 is "
|
2044 |
"recommended."
|
2045 |
msgstr "画像サイズ 橫 1280px 縦 720px 以上、画像比率 16:9 を推奨します。"
|
2046 |
|
2047 |
-
#: dist/plugins/sns/sns_admin.php:43
|
2048 |
msgid "twitter ID"
|
2049 |
msgstr "twitterアカウント"
|
2050 |
|
2051 |
-
#: dist/plugins/sns/sns_admin.php:48
|
2052 |
msgid "OG tags"
|
2053 |
msgstr "OGタグ"
|
2054 |
|
2055 |
-
#: dist/plugins/sns/sns_admin.php:50 dist/plugins/sns/sns_customizer.php:
|
2056 |
-
#:
|
2057 |
msgid "Print the OG tags"
|
2058 |
msgstr "OGタグを出力する"
|
2059 |
|
2060 |
-
#: dist/plugins/sns/sns_admin.php:51 dist/plugins/sns/sns_customizer.php:
|
2061 |
-
#:
|
2062 |
msgid ""
|
2063 |
"If other plug-ins are used for the OG, do not output the OG using this "
|
2064 |
"plugin."
|
@@ -2066,104 +2180,119 @@ msgstr ""
|
|
2066 |
"OGタグの出力を選択して下さい。もし他のプラグインやテーマでOGタグを出力してい"
|
2067 |
"る場合は、このプラグインでの出力は必要ありません。"
|
2068 |
|
2069 |
-
#: dist/plugins/sns/sns_admin.php:56 dist/plugins/sns/sns_customizer.php:
|
2070 |
-
#:
|
2071 |
msgid "Twitter Card tags"
|
2072 |
msgstr "Twitterカードタグ"
|
2073 |
|
2074 |
-
#: dist/plugins/sns/sns_admin.php:58 dist/plugins/sns/sns_customizer.php:
|
2075 |
-
#:
|
2076 |
msgid "Print the Twitter Card tags"
|
2077 |
msgstr "Twitter カードタグを html head 内へ出力します。"
|
2078 |
|
2079 |
-
#: dist/plugins/sns/sns_admin.php:63 dist/plugins/sns/sns_customizer.php:
|
2080 |
-
#:
|
2081 |
msgid "Social bookmark buttons"
|
2082 |
msgstr "ソーシャルボタン"
|
2083 |
|
2084 |
-
#: dist/plugins/sns/sns_admin.php:64 dist/plugins/sns/sns_customizer.php:
|
2085 |
-
#:
|
2086 |
msgid "Print the social bookmark buttons"
|
2087 |
msgstr "ソーシャルブックマーク(シェアボタンやtweetボタン)を表示します。"
|
2088 |
|
2089 |
-
#: dist/plugins/sns/sns_admin.php:67 dist/plugins/sns/sns_customizer.php:
|
2090 |
-
#:
|
2091 |
msgid "Exclude Post Types"
|
2092 |
msgstr "シェアボタンを表示しない投稿タイプ"
|
2093 |
|
2094 |
-
#: dist/plugins/sns/sns_admin.php:80
|
2095 |
msgid "Exclude Post ID"
|
2096 |
msgstr "シェアボタンを表示しない投稿のID"
|
2097 |
|
2098 |
-
#: dist/plugins/sns/sns_admin.php:90
|
2099 |
msgid ""
|
2100 |
"if you need filtering by post_ID, add the ignore post_ID separate by \",\"."
|
2101 |
msgstr ""
|
2102 |
"特定のポストのみSNSボタンを表示したくない場合、カンマ(,)区切りでポストIDを入"
|
2103 |
"力します。"
|
2104 |
|
2105 |
-
#: dist/plugins/sns/sns_admin.php:94
|
2106 |
msgid "example"
|
2107 |
msgstr "例"
|
2108 |
|
2109 |
-
#: dist/plugins/sns/sns_admin.php:103 dist/plugins/sns/sns_customizer.php:
|
2110 |
-
#:
|
2111 |
-
msgid "Follow me box"
|
2112 |
-
msgstr "Follow me box"
|
2113 |
-
|
2114 |
-
#: dist/plugins/sns/sns_admin.php:104 plugins/sns/sns_admin.php:162
|
2115 |
-
#: plugins/sns/sns_customizer.php:593
|
2116 |
-
msgid "Print the Follow me box"
|
2117 |
-
msgstr "Follow me ユニットを本文の下に表示する"
|
2118 |
-
|
2119 |
-
#: dist/plugins/sns/sns_admin.php:106 dist/plugins/sns/sns_customizer.php:543
|
2120 |
-
#: plugins/sns/sns_admin.php:164 plugins/sns/sns_customizer.php:613
|
2121 |
-
msgid "Follow me box title"
|
2122 |
-
msgstr "Follow me box の見出しテキスト"
|
2123 |
-
|
2124 |
-
#: dist/plugins/sns/sns_admin.php:113 dist/plugins/sns/sns_customizer.php:393
|
2125 |
-
#: plugins/sns/sns_admin.php:103 plugins/sns/sns_customizer.php:452
|
2126 |
msgid "Share button for display"
|
2127 |
msgstr "表示するボタン"
|
2128 |
|
2129 |
-
#: dist/plugins/sns/sns_admin.php:
|
2130 |
msgid "Facebook"
|
2131 |
msgstr "Facebook"
|
2132 |
|
2133 |
-
#: dist/plugins/sns/sns_admin.php:
|
2134 |
-
#: dist/plugins/sns/widget-twitter.php:9
|
2135 |
-
#:
|
2136 |
msgid "Twitter"
|
2137 |
msgstr "Twitter"
|
2138 |
|
2139 |
-
#: dist/plugins/sns/sns_admin.php:
|
2140 |
-
#:
|
2141 |
msgid "Hatena"
|
2142 |
msgstr "はてな"
|
2143 |
|
2144 |
-
#: dist/plugins/sns/sns_admin.php:
|
2145 |
-
#:
|
2146 |
msgid "Pocket"
|
2147 |
msgstr "Pocket"
|
2148 |
|
2149 |
-
#: dist/plugins/sns/sns_admin.php:
|
2150 |
-
#:
|
2151 |
msgid "LINE (mobile only)"
|
2152 |
msgstr "LINE (mobile only)"
|
2153 |
|
2154 |
-
#: dist/plugins/sns/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2155 |
msgid "Facebook Settings"
|
2156 |
msgstr "Facebook 設定"
|
2157 |
|
2158 |
-
#: dist/plugins/sns/sns_customizer.php:
|
2159 |
msgid "Facebook application ID"
|
2160 |
msgstr "facebookアプリケーションID"
|
2161 |
|
2162 |
-
#: dist/plugins/sns/sns_customizer.php:
|
2163 |
msgid "Facebook Page URL"
|
2164 |
msgstr "FacebookページURL"
|
2165 |
|
2166 |
-
#: dist/plugins/sns/sns_customizer.php:
|
2167 |
msgid ""
|
2168 |
"If, for example someone pressed the Facebook [Like] button, this is the "
|
2169 |
"image that appears on the Facebook timeline.<br>If a featured image is "
|
@@ -2175,175 +2304,175 @@ msgstr ""
|
|
2175 |
"アイキャッチ画像が優先されます。<br>画像サイズ 橫 1280px 縦 720px 以上、画像"
|
2176 |
"比率 16:9 程度を推奨します。"
|
2177 |
|
2178 |
-
#: dist/plugins/sns/sns_customizer.php:
|
2179 |
msgid "OG Settings"
|
2180 |
msgstr "OG 設定"
|
2181 |
|
2182 |
-
#: dist/plugins/sns/sns_customizer.php:
|
2183 |
msgid "Twitter Settings"
|
2184 |
msgstr "Twitter 設定"
|
2185 |
|
2186 |
-
#: dist/plugins/sns/sns_customizer.php:
|
2187 |
#, fuzzy
|
2188 |
#| msgid "twitter ID"
|
2189 |
msgid "Twitter ID"
|
2190 |
msgstr "twitterアカウント"
|
2191 |
|
2192 |
-
#: dist/plugins/sns/sns_customizer.php:
|
2193 |
msgid "Social button style setting"
|
2194 |
msgstr "ソーシャルボタンのスタイル設定"
|
2195 |
|
2196 |
-
#: dist/plugins/sns/sns_customizer.php:
|
2197 |
msgid "Btn color"
|
2198 |
msgstr "ボタンの色:"
|
2199 |
|
2200 |
-
#: dist/plugins/sns/sns_customizer.php:
|
2201 |
#, fuzzy
|
2202 |
#| msgid "Facebook URL:"
|
2203 |
msgid "Facebook "
|
2204 |
msgstr "Facebook リンク先ページのURL"
|
2205 |
|
2206 |
#: dist/plugins/sns/widget-fb-page-plugin.php:13
|
2207 |
-
#:
|
2208 |
msgid "Displays a Facebook Page Plugin"
|
2209 |
msgstr "Facebook ページプラグインを表示します。"
|
2210 |
|
2211 |
#: dist/plugins/sns/widget-fb-page-plugin.php:89
|
2212 |
-
#:
|
2213 |
msgid "Height"
|
2214 |
msgstr "高さ"
|
2215 |
|
2216 |
#: dist/plugins/sns/widget-fb-page-plugin.php:94
|
2217 |
-
#:
|
2218 |
msgid "Show Friend's Faces"
|
2219 |
msgstr "アイコンを表示する"
|
2220 |
|
2221 |
#: dist/plugins/sns/widget-fb-page-plugin.php:99
|
2222 |
-
#:
|
2223 |
msgid "Hide Cover Photo"
|
2224 |
msgstr "カバー画像を表示しない"
|
2225 |
|
2226 |
#: dist/plugins/sns/widget-fb-page-plugin.php:104
|
2227 |
-
#:
|
2228 |
msgid "Show Page Posts"
|
2229 |
msgstr "タイムラインを表示"
|
2230 |
|
2231 |
-
#: dist/plugins/sns/widget-twitter.php:13
|
2232 |
msgid "Display Twitter timeline."
|
2233 |
msgstr "Twitter のタイムラインを表示します。"
|
2234 |
|
2235 |
-
#: dist/plugins/sns/widget-twitter.php:89
|
2236 |
msgid "Account:<br>Please enter your Twitter account."
|
2237 |
msgstr "アカウント:<br>Twitter アカウントを入力してください。"
|
2238 |
|
2239 |
-
#: dist/plugins/sns/widget-twitter.php:90
|
2240 |
msgid "@"
|
2241 |
msgstr "@"
|
2242 |
|
2243 |
-
#: dist/plugins/sns/widget-twitter.php:94
|
2244 |
msgid "Height:<br>Please enter an arbitrary number.(Example: 300)"
|
2245 |
msgstr "高さ:<br>任意の数値を入力してください(例:300)"
|
2246 |
|
2247 |
-
#: dist/plugins/sns/widget-twitter.php:99
|
2248 |
msgid "Background color:"
|
2249 |
msgstr "背景の色:"
|
2250 |
|
2251 |
-
#: dist/plugins/sns/widget-twitter.php:122
|
2252 |
msgid "Link color:"
|
2253 |
msgstr "リンクの色:"
|
2254 |
|
2255 |
#: dist/plugins/template-tags/template-tags.php:116
|
2256 |
-
#:
|
2257 |
#, php-format
|
2258 |
msgid "Author: %s"
|
2259 |
msgstr "著者: %s"
|
2260 |
|
2261 |
#: dist/plugins/template-tags/template-tags.php:118
|
2262 |
#: dist/plugins/template-tags/template-tags.php:200
|
2263 |
-
#:
|
2264 |
-
#:
|
2265 |
msgctxt "yearly archives date format"
|
2266 |
msgid "Y"
|
2267 |
msgstr "Y年"
|
2268 |
|
2269 |
#: dist/plugins/template-tags/template-tags.php:120
|
2270 |
#: dist/plugins/template-tags/template-tags.php:204
|
2271 |
-
#:
|
2272 |
-
#:
|
2273 |
msgctxt "monthly archives date format"
|
2274 |
msgid "F Y"
|
2275 |
msgstr "Y年F"
|
2276 |
|
2277 |
#: dist/plugins/template-tags/template-tags.php:122
|
2278 |
-
#:
|
2279 |
msgctxt "daily archives date format"
|
2280 |
msgid "F j, Y"
|
2281 |
msgstr "Y年Fj日"
|
2282 |
|
2283 |
#: dist/plugins/template-tags/template-tags.php:125
|
2284 |
-
#:
|
2285 |
msgctxt "post format archive title"
|
2286 |
msgid "Asides"
|
2287 |
msgstr "サイド"
|
2288 |
|
2289 |
#: dist/plugins/template-tags/template-tags.php:127
|
2290 |
-
#:
|
2291 |
msgctxt "post format archive title"
|
2292 |
msgid "Galleries"
|
2293 |
msgstr "ギャラリー"
|
2294 |
|
2295 |
#: dist/plugins/template-tags/template-tags.php:129
|
2296 |
-
#:
|
2297 |
msgctxt "post format archive title"
|
2298 |
msgid "Images"
|
2299 |
msgstr "画像"
|
2300 |
|
2301 |
#: dist/plugins/template-tags/template-tags.php:131
|
2302 |
-
#:
|
2303 |
msgctxt "post format archive title"
|
2304 |
msgid "Videos"
|
2305 |
msgstr "ビデオ"
|
2306 |
|
2307 |
#: dist/plugins/template-tags/template-tags.php:133
|
2308 |
-
#:
|
2309 |
msgctxt "post format archive title"
|
2310 |
msgid "Quotes"
|
2311 |
msgstr "引用"
|
2312 |
|
2313 |
#: dist/plugins/template-tags/template-tags.php:135
|
2314 |
-
#:
|
2315 |
msgctxt "post format archive title"
|
2316 |
msgid "Links"
|
2317 |
msgstr "リンク"
|
2318 |
|
2319 |
#: dist/plugins/template-tags/template-tags.php:137
|
2320 |
-
#:
|
2321 |
msgctxt "post format archive title"
|
2322 |
msgid "Statuses"
|
2323 |
msgstr "ステータス"
|
2324 |
|
2325 |
#: dist/plugins/template-tags/template-tags.php:139
|
2326 |
-
#:
|
2327 |
msgctxt "post format archive title"
|
2328 |
msgid "Audio"
|
2329 |
msgstr "オーディオ"
|
2330 |
|
2331 |
#: dist/plugins/template-tags/template-tags.php:141
|
2332 |
-
#:
|
2333 |
msgctxt "post format archive title"
|
2334 |
msgid "Chats"
|
2335 |
msgstr "チャット"
|
2336 |
|
2337 |
#: dist/plugins/template-tags/template-tags.php:188
|
2338 |
#: dist/plugins/template-tags/template-tags.php:196
|
2339 |
-
#:
|
2340 |
-
#:
|
2341 |
#, php-format
|
2342 |
msgid "About %s"
|
2343 |
msgstr "%s について"
|
2344 |
|
2345 |
#: dist/plugins/template-tags/template-tags.php:201
|
2346 |
-
#:
|
2347 |
#, php-format
|
2348 |
msgctxt "Yearly archive description"
|
2349 |
msgid "Article of %s."
|
@@ -2352,56 +2481,56 @@ msgstr "%s の記事"
|
|
2352 |
#: dist/plugins/template-tags/template-tags.php:205
|
2353 |
#: dist/plugins/template-tags/template-tags.php:209
|
2354 |
#: dist/plugins/template-tags/template-tags.php:214
|
2355 |
-
#:
|
2356 |
-
#:
|
2357 |
-
#:
|
2358 |
#, php-format
|
2359 |
msgctxt "Archive description"
|
2360 |
msgid "Article of %s."
|
2361 |
msgstr "%s の記事"
|
2362 |
|
2363 |
#: dist/plugins/template-tags/template-tags.php:231
|
2364 |
-
#: dist/plugins/wp_title.php:59
|
2365 |
-
#:
|
2366 |
#, php-format
|
2367 |
msgid "Page of %s"
|
2368 |
msgstr "%sページ目"
|
2369 |
|
2370 |
#: dist/plugins/vk-blocks/vk-blocks-functions.php:58
|
2371 |
-
#:
|
2372 |
msgid "Blocks(Beta)"
|
2373 |
msgstr ""
|
2374 |
|
2375 |
#: dist/plugins/vk-blocks/vk-blocks-functions.php:63
|
2376 |
-
#:
|
2377 |
msgid "Blocks Layout(Beta)"
|
2378 |
msgstr ""
|
2379 |
|
2380 |
-
#: dist/plugins/wp_title.php:47
|
2381 |
#, php-format
|
2382 |
msgid "Search Results for : %s"
|
2383 |
msgstr "検索結果 : %s"
|
2384 |
|
2385 |
-
#: dist/plugins/wp_title.php:50
|
2386 |
msgid "Not found"
|
2387 |
msgstr "見つかりません"
|
2388 |
|
2389 |
#: dist/plugins/wp_title.php:70 dist/plugins/wp_title.php:82
|
2390 |
-
#: dist/plugins/wp_title.php:86
|
2391 |
-
#:
|
2392 |
msgid "<title> tag of homepage"
|
2393 |
msgstr "トップページの<title>タグ"
|
2394 |
|
2395 |
-
#: dist/plugins/wp_title.php:90
|
2396 |
msgid "title of the site"
|
2397 |
msgstr "サイトのタイトル"
|
2398 |
|
2399 |
-
#: dist/plugins/wp_title.php:91
|
2400 |
#, php-format
|
2401 |
msgid "Normally \"%1$s\" is placed in the title tags of all the pages."
|
2402 |
msgstr "通常「%1$s」が全ページのタイトルタグに入ります。"
|
2403 |
|
2404 |
-
#: dist/plugins/wp_title.php:94
|
2405 |
#, php-format
|
2406 |
msgid ""
|
2407 |
"For example, it appears in the form of <br /><title>page title | "
|
@@ -2410,7 +2539,7 @@ msgstr ""
|
|
2410 |
"例えば固定ページであれば<br><title>固定ページ名 | %1$s</title>"
|
2411 |
"<br>というような形式で出力されます。"
|
2412 |
|
2413 |
-
#: dist/plugins/wp_title.php:96
|
2414 |
#, php-format
|
2415 |
msgid ""
|
2416 |
"However, it might have negative impact on search engine rankings if the <"
|
@@ -2422,11 +2551,11 @@ msgstr ""
|
|
2422 |
"くなるので、%s は一番検索されたいキーワードを盛り込みつつなるべく短くまとめる"
|
2423 |
"事が望ましいです。"
|
2424 |
|
2425 |
-
#: dist/plugins/wp_title.php:100
|
2426 |
msgid "Tagline"
|
2427 |
msgstr "キャッチフレーズ"
|
2428 |
|
2429 |
-
#: dist/plugins/wp_title.php:101
|
2430 |
#, php-format
|
2431 |
msgid ""
|
2432 |
"In the top page will be output usually in the form of <br /><title>"
|
@@ -2435,7 +2564,7 @@ msgstr ""
|
|
2435 |
"トップページでは<br><title>%1$s | %2$s</title><br>というような形"
|
2436 |
"式で出力されます。"
|
2437 |
|
2438 |
-
#: dist/plugins/wp_title.php:104
|
2439 |
msgid ""
|
2440 |
"However, it may be too long in the above format. If the input to the input "
|
2441 |
"field of the following, its contents will be reflected."
|
@@ -2443,57 +2572,30 @@ msgstr ""
|
|
2443 |
"しかし、上記の形式では長くなりすぎる事があります。その場合は下記の入力欄に入"
|
2444 |
"力すれば、その内容が反映されます。"
|
2445 |
|
2446 |
-
#: dist/
|
2447 |
-
msgid "Active Setting"
|
2448 |
-
msgstr "有効化設定"
|
2449 |
-
|
2450 |
-
#: dist/plugins_admin/admin_bar.php:44 plugins_admin/admin_bar.php:44
|
2451 |
-
msgid "Main Setting"
|
2452 |
-
msgstr "メイン設定"
|
2453 |
-
|
2454 |
-
#: dist/plugins_admin/content-meta-box.php:11
|
2455 |
-
#: plugins_admin/content-meta-box.php:11
|
2456 |
-
msgid "Setting of insert items"
|
2457 |
-
msgstr "挿入アイテムの設定"
|
2458 |
-
|
2459 |
-
#: dist/plugins_admin/disable_guide.php:17 plugins_admin/disable_guide.php:17
|
2460 |
-
msgid "Edit Guide"
|
2461 |
-
msgstr "編集ガイド"
|
2462 |
-
|
2463 |
-
#: dist/plugins_admin/vk-admin/class-vk-admin.php:290
|
2464 |
-
#: plugins_admin/vk-admin/class-vk-admin.php:290
|
2465 |
-
msgid "Sorry, there is no post"
|
2466 |
-
msgstr "お知らせはありません。"
|
2467 |
-
|
2468 |
-
#: dist/plugins_admin/vk-admin/class-vk-admin.php:344
|
2469 |
-
#: plugins_admin/vk-admin/class-vk-admin.php:344
|
2470 |
-
msgid "Vektor WordPress Information"
|
2471 |
-
msgstr "Vektor WordPress Information"
|
2472 |
-
|
2473 |
-
#: dist/veu-packages.php:78 veu-packages.php:78
|
2474 |
msgid "Print link fontawesome"
|
2475 |
msgstr "fontawesome link タグを出力"
|
2476 |
|
2477 |
-
#: dist/veu-packages.php:79 veu-packages.php:
|
2478 |
msgid "Print fontawesome link tag to html head."
|
2479 |
msgstr ""
|
2480 |
"fontawesome を読み込むための link タグを html head 内へ出力します。使用中の"
|
2481 |
"テーマやプラグインで fontawesome を既に読み込んでいる場合はチェックを外して下"
|
2482 |
"さい。"
|
2483 |
|
2484 |
-
#: dist/veu-packages.php:89 veu-packages.php:
|
2485 |
msgid "VK Blocks ( Beta )"
|
2486 |
msgstr "VK Blocks ( Beta )"
|
2487 |
|
2488 |
-
#: dist/veu-packages.php:90 veu-packages.php:
|
2489 |
msgid "Extends Gutenberg's blocks."
|
2490 |
msgstr "Gutenbergのブロックを拡張します。"
|
2491 |
|
2492 |
-
#: dist/veu-packages.php:100 veu-packages.php:
|
2493 |
msgid "Rewrite the title tag"
|
2494 |
msgstr "タイトルタグの書き換え"
|
2495 |
|
2496 |
-
#: dist/veu-packages.php:101 veu-packages.php:
|
2497 |
msgid "Print is rewritten by its own rules to html head."
|
2498 |
msgstr ""
|
2499 |
"head title タグ内へ出力される内容を VK EX Unit のルールで出力します。 ( VK "
|
@@ -2504,66 +2606,66 @@ msgstr ""
|
|
2504 |
#: dist/veu-packages.php:161 dist/veu-packages.php:179
|
2505 |
#: dist/veu-packages.php:209 dist/veu-packages.php:227
|
2506 |
#: dist/veu-packages.php:268 dist/veu-packages.php:303
|
2507 |
-
#: dist/veu-packages.php:326 dist/veu-packages.php:383 veu-packages.php:
|
2508 |
-
#: veu-packages.php:
|
2509 |
-
#: veu-packages.php:
|
2510 |
-
#: veu-packages.php:
|
2511 |
msgid "Setting"
|
2512 |
msgstr "設定"
|
2513 |
|
2514 |
-
#: dist/veu-packages.php:118 veu-packages.php:
|
2515 |
msgid "Print meta Keyword"
|
2516 |
msgstr "メタキーワードを出力"
|
2517 |
|
2518 |
-
#: dist/veu-packages.php:119 veu-packages.php:
|
2519 |
msgid "Print meta Keyword to html head."
|
2520 |
msgstr "ヘッダーにメタキーワードを出力します。"
|
2521 |
|
2522 |
-
#: dist/veu-packages.php:135 veu-packages.php:
|
2523 |
msgid "Print meta description"
|
2524 |
msgstr "メタディスクリプションタグを出力"
|
2525 |
|
2526 |
-
#: dist/veu-packages.php:136 veu-packages.php:
|
2527 |
msgid "Print meta description to html head."
|
2528 |
msgstr ""
|
2529 |
"投稿画面「抜粋」欄に入力されたテキストを meta description タグとして html "
|
2530 |
"head 内へ出力します。使用中のテーマやプラグインで meta description タグを出力"
|
2531 |
"している場合はチェックを外して下さい。"
|
2532 |
|
2533 |
-
#: dist/veu-packages.php:145 veu-packages.php:
|
2534 |
msgid "Main setting page"
|
2535 |
msgstr "メイン設定画面"
|
2536 |
|
2537 |
-
#: dist/veu-packages.php:147 veu-packages.php:
|
2538 |
msgid "Print og tags to html head."
|
2539 |
msgstr "OG タグを html head 内へ出力します。"
|
2540 |
|
2541 |
-
#: dist/veu-packages.php:148 veu-packages.php:
|
2542 |
msgid "Print twitter card tags to html head."
|
2543 |
msgstr "Twitter カードタグを html head 内へ出力します。"
|
2544 |
|
2545 |
-
#: dist/veu-packages.php:149 veu-packages.php:
|
2546 |
msgid "Print social bookmark buttons."
|
2547 |
msgstr "ソーシャルブックマークボタンを表示します。"
|
2548 |
|
2549 |
-
#: dist/veu-packages.php:150 veu-packages.php:
|
2550 |
msgid "Facebook Page Plugin widget."
|
2551 |
msgstr "Facebookページプラグインウィジェット"
|
2552 |
|
2553 |
-
#: dist/veu-packages.php:151 veu-packages.php:
|
2554 |
msgid "Print Follow me box to content bottom."
|
2555 |
msgstr "Follow me box を記事コンテンツ下のエリアへ表示します。"
|
2556 |
|
2557 |
-
#: dist/veu-packages.php:153 veu-packages.php:
|
2558 |
#, php-format
|
2559 |
msgid "* You can stop the function separately from the %s."
|
2560 |
msgstr "%s から個別に機能を停止する事ができます。"
|
2561 |
|
2562 |
-
#: dist/veu-packages.php:157 veu-packages.php:
|
2563 |
msgid "Social media cooperation"
|
2564 |
msgstr "ソーシャルメディア連携"
|
2565 |
|
2566 |
-
#: dist/veu-packages.php:176 veu-packages.php:
|
2567 |
msgid "Print Google Analytics tracking code."
|
2568 |
msgstr ""
|
2569 |
"Google アナリティクスのトラッキングコードを出力します。有効化した後「設定」の"
|
@@ -2571,64 +2673,64 @@ msgstr ""
|
|
2571 |
"のテーマやプラグインで Google アナリティクスのトラッキングコードを埋め込む場"
|
2572 |
"合はチェックを外して下さい。"
|
2573 |
|
2574 |
-
#: dist/veu-packages.php:192 veu-packages.php:
|
2575 |
msgid "You can use various widgets."
|
2576 |
msgstr ""
|
2577 |
"以下の機能を持ったウィジェットを追加します。各ウィジェットの設定は「外観」"
|
2578 |
"→「ウィジェット」の設定画面より行って下さい。"
|
2579 |
|
2580 |
-
#: dist/veu-packages.php:194 veu-packages.php:
|
2581 |
msgid ""
|
2582 |
"VK_Recent Posts - display the link text and the date of the latest article "
|
2583 |
"title."
|
2584 |
msgstr "VK_最新記事 - 最新記事タイトルのリンクテキストと日付を表示します。"
|
2585 |
|
2586 |
-
#: dist/veu-packages.php:195 veu-packages.php:
|
2587 |
msgid ""
|
2588 |
"VK_Page content to widget - display the contents of the page to the widgets."
|
2589 |
msgstr ""
|
2590 |
"VK_固定ページ本文 - 固定ページのコンテンツ部分をウィジェットに表示します。"
|
2591 |
|
2592 |
-
#: dist/veu-packages.php:196 veu-packages.php:
|
2593 |
msgid "VK_Profile - display the profile entered in the widget."
|
2594 |
msgstr "VK_プロフィール - ウィジェットに入力されたプロフィールを表示します。"
|
2595 |
|
2596 |
-
#: dist/veu-packages.php:197 veu-packages.php:
|
2597 |
msgid "VK_FB Page Plugin - display the Facebook Page Plugin."
|
2598 |
msgstr "VK_FB Page Plugin - Facebook ページプラグインを表示します。"
|
2599 |
|
2600 |
-
#: dist/veu-packages.php:198 veu-packages.php:
|
2601 |
msgid "VK_3PR area - display the 3PR area."
|
2602 |
msgstr "VK_3PR エリア - 3PR エリアを表示します。"
|
2603 |
|
2604 |
-
#: dist/veu-packages.php:199 veu-packages.php:
|
2605 |
msgid "categories/tags list"
|
2606 |
msgstr "カテゴリー/タグ リスト"
|
2607 |
|
2608 |
-
#: dist/veu-packages.php:199 veu-packages.php:
|
2609 |
msgid "Displays a categories, tags or format list."
|
2610 |
msgstr "カテゴリ・タグまたは、フォーマットリストを表示します。"
|
2611 |
|
2612 |
-
#: dist/veu-packages.php:205 veu-packages.php:
|
2613 |
msgid "Widgets"
|
2614 |
msgstr "ウィジェット"
|
2615 |
|
2616 |
-
#: dist/veu-packages.php:223 veu-packages.php:
|
2617 |
msgid "CSS customize"
|
2618 |
msgstr "CSSカスタマイズ"
|
2619 |
|
2620 |
-
#: dist/veu-packages.php:224 veu-packages.php:
|
2621 |
msgid "You can set Customize CSS."
|
2622 |
msgstr ""
|
2623 |
"テーマデザインをカスタマイズする CSS を管理画面より追加できるようになります。"
|
2624 |
"追加する CSS コードは「VK Ex Unit」→「CSS カスタマイズ」の画面にて入力して下"
|
2625 |
"さい。"
|
2626 |
|
2627 |
-
#: dist/veu-packages.php:242 veu-packages.php:
|
2628 |
msgid "Child page index"
|
2629 |
msgstr "子ページの一覧表示"
|
2630 |
|
2631 |
-
#: dist/veu-packages.php:243 veu-packages.php:
|
2632 |
msgid ""
|
2633 |
"At the bottom of the specified page, it will display a list of the child "
|
2634 |
"page."
|
@@ -2636,126 +2738,126 @@ msgstr ""
|
|
2636 |
"指定した固定ページの下部へ、その固定ページの下層子ページの「ページタイトル / "
|
2637 |
"サムネイル / 抜粋文 / 該当ページへのリンク」をセットで一覧表示します。"
|
2638 |
|
2639 |
-
#: dist/veu-packages.php:253 veu-packages.php:
|
2640 |
msgid "Page list from ancestor"
|
2641 |
msgstr "先祖階層からの子ページリスト表示"
|
2642 |
|
2643 |
-
#: dist/veu-packages.php:254 veu-packages.php:
|
2644 |
msgid "Display Page list from ancestor at after content."
|
2645 |
msgstr ""
|
2646 |
"現在のページの先祖階層からの子ページリストをページ本文の下に表示します。"
|
2647 |
|
2648 |
-
#: dist/veu-packages.php:265 veu-packages.php:
|
2649 |
msgid "Display Contact Section at after content."
|
2650 |
msgstr "お問い合わせ情報を本文の下に表示する"
|
2651 |
|
2652 |
-
#: dist/veu-packages.php:282 veu-packages.php:
|
2653 |
msgid "Display HTML Site Map"
|
2654 |
msgstr "HTMLサイトマップの表示"
|
2655 |
|
2656 |
-
#: dist/veu-packages.php:283 veu-packages.php:
|
2657 |
msgid "It displays a HTML Site Map to the specified page."
|
2658 |
msgstr "指定した固定ページにHTMLサイトマップを表示します。"
|
2659 |
|
2660 |
-
#: dist/veu-packages.php:308 veu-packages.php:
|
2661 |
msgid "Contents setting"
|
2662 |
msgstr "CTA表示内容設定"
|
2663 |
|
2664 |
-
#: dist/veu-packages.php:323 veu-packages.php:
|
2665 |
msgid "Insert ads to content."
|
2666 |
msgstr "記事に広告を挿入します"
|
2667 |
|
2668 |
-
#: dist/veu-packages.php:340 veu-packages.php:
|
2669 |
msgid "Print Related posts lists to post content bottom."
|
2670 |
msgstr "関連記事を記事コンテンツ下のエリアへ表示します。"
|
2671 |
|
2672 |
-
#: dist/veu-packages.php:350 veu-packages.php:
|
2673 |
msgid "Disable ping back"
|
2674 |
msgstr "ping backを停止"
|
2675 |
|
2676 |
-
#: dist/veu-packages.php:351 veu-packages.php:
|
2677 |
msgid "Disable xmlrpc ping back."
|
2678 |
msgstr "xmlrpcを停止"
|
2679 |
|
2680 |
-
#: dist/veu-packages.php:359 dist/veu-packages.php:360 veu-packages.php:
|
2681 |
-
#: veu-packages.php:
|
2682 |
msgid "Disable dashbord"
|
2683 |
msgstr "ダッシュボードに最新情報を表示しない"
|
2684 |
|
2685 |
-
#: dist/veu-packages.php:368 veu-packages.php:
|
2686 |
msgid "Admin bar manu"
|
2687 |
msgstr "管理バーメニュー"
|
2688 |
|
2689 |
-
#: dist/veu-packages.php:369 veu-packages.php:
|
2690 |
msgid "Add ExUnit menu to admin bar."
|
2691 |
msgstr "ExUnitのメニューを管理バーに表示する"
|
2692 |
|
2693 |
-
#: dist/veu-packages.php:379 veu-packages.php:
|
2694 |
msgid "Post Type Manager"
|
2695 |
msgstr "カスタム投稿タイプマネージャー"
|
2696 |
|
2697 |
-
#: dist/veu-packages.php:380 veu-packages.php:
|
2698 |
msgid "Add custom post types and custom taxonomies."
|
2699 |
msgstr "カスタム投稿タイプやカスタム分類を追加します。"
|
2700 |
|
2701 |
-
#: dist/veu-packages.php:397 veu-packages.php:
|
2702 |
msgid "Page Top Button"
|
2703 |
msgstr "ページトップへ戻るボタン"
|
2704 |
|
2705 |
-
#: dist/veu-packages.php:398 veu-packages.php:
|
2706 |
msgid ""
|
2707 |
"The page top button is displayed in the lower right corner of the screen."
|
2708 |
msgstr "ページトップへ戻るボタンは、画面の右下隅に表示されます。"
|
2709 |
|
2710 |
-
#: dist/veu-packages.php:408 veu-packages.php:
|
2711 |
msgid "Smooth scroll"
|
2712 |
msgstr "スムーススクロール"
|
2713 |
|
2714 |
-
#: dist/veu-packages.php:409 veu-packages.php:
|
2715 |
msgid "Add smooth scroll at anchor link in same page."
|
2716 |
msgstr ""
|
2717 |
"ページ内のアンカーリンククリックした際にスムーズにスクロースします。<br>※他の"
|
2718 |
"jsと干渉する事があります。独自にjsで制御している箇所をクリックしても正しく動"
|
2719 |
"作しない場合はこの機能を停止してみてください。"
|
2720 |
|
2721 |
-
#: dist/veu-packages.php:419 veu-packages.php:
|
2722 |
msgid "Add body class"
|
2723 |
msgstr "Body class の追加"
|
2724 |
|
2725 |
-
#: dist/veu-packages.php:420 veu-packages.php:
|
2726 |
msgid "Add \"Post type\", \"Page slug\" etc class name to the body class."
|
2727 |
msgstr "投稿タイプ名や固定ページのスラッグ名をbodyタグのクラスに追加します。"
|
2728 |
|
2729 |
-
#: dist/veu-packages.php:430 veu-packages.php:
|
2730 |
msgid "Navi menu class custom"
|
2731 |
msgstr "ナビメニューclassの改変"
|
2732 |
|
2733 |
-
#: dist/veu-packages.php:431 veu-packages.php:
|
2734 |
msgid "Current class tuning of navi menu."
|
2735 |
msgstr ""
|
2736 |
"メニューに投稿トップやカスタム投稿タイプアーカイブページが設定された時に、詳"
|
2737 |
"細ページや関連するカスタム分類ページを表示している時でも適切にcurrentクラスが"
|
2738 |
"追加されるように調整します。"
|
2739 |
|
2740 |
-
#: dist/veu-packages.php:442 veu-packages.php:
|
2741 |
msgid "Display Eye Catch image at before content."
|
2742 |
msgstr ""
|
2743 |
"アイキャッチ画像を本文の最初に表示します。各記事毎に非表示にする事も出来ま"
|
2744 |
"す。"
|
2745 |
|
2746 |
-
#: dist/veu-packages.php:452 veu-packages.php:
|
2747 |
msgid "TinyMCE Style Tags"
|
2748 |
msgstr "TinyMCE スタイルタグ"
|
2749 |
|
2750 |
-
#: dist/veu-packages.php:453 veu-packages.php:
|
2751 |
msgid "Add TinyMCE Editor to style tags."
|
2752 |
msgstr "スタイルタグにTinyMCEエディタを追加する"
|
2753 |
|
2754 |
-
#: dist/veu-packages.php:463 veu-packages.php:
|
2755 |
msgid "Print Bootstrap css ( grid / button / table )"
|
2756 |
msgstr "Bootstrap の CSS(grid/button/tableのみ)を出力"
|
2757 |
|
2758 |
-
#: dist/veu-packages.php:464 veu-packages.php:
|
2759 |
msgid ""
|
2760 |
"If your using theme has already including Bootstrap, you deactivate this "
|
2761 |
"item."
|
@@ -2764,17 +2866,17 @@ msgstr ""
|
|
2764 |
"(Lightningなど)やプラグインで Bootstrap を既に読み込んでいる場合はチェック"
|
2765 |
"を外して下さい。"
|
2766 |
|
2767 |
-
#: dist/veu-packages.php:474 veu-packages.php:
|
2768 |
msgid "Favicon setting"
|
2769 |
msgstr "ファビコン設定"
|
2770 |
|
2771 |
-
#: dist/veu-packages.php:475 veu-packages.php:
|
2772 |
msgid "About favicon."
|
2773 |
msgstr ""
|
2774 |
"ブラウザでページを表示した際にタブやウィンドウのタイトルに表示されるアイコン"
|
2775 |
"(ファビコン)を設定します。"
|
2776 |
|
2777 |
-
#: dist/veu-packages.php:475 veu-packages.php:
|
2778 |
msgid ""
|
2779 |
"This feature will be discontinued shortly.<br>You can set the site icon from "
|
2780 |
"\"Site Identity\" panel of \"Themes > Customize\"."
|
@@ -2783,36 +2885,81 @@ msgstr ""
|
|
2783 |
"サイトアイコンは「外観 > カスタマイズ」の「サイト基本情報」パネルから設定でき"
|
2784 |
"ます。"
|
2785 |
|
2786 |
-
#: dist/vkExUnit.php:
|
2787 |
#, php-format
|
2788 |
msgid "The current PHP version(%s) is too old, so VK ExUnit will not work."
|
2789 |
msgstr "使用中のPHPのバージョン(%s) が古すぎるので VK ExUnit は動作しません。"
|
2790 |
|
2791 |
-
#: dist/vkExUnit.php:
|
2792 |
msgid "VK ExUnit supports PHP5.6 or later."
|
2793 |
msgstr "VKExUnit がサポートしているPHPのバージョンは5.6以降です"
|
2794 |
|
2795 |
-
#: dist/vkExUnit.php:
|
2796 |
#, php-format
|
2797 |
msgid "Current PHP Version(%s) is old."
|
2798 |
msgstr "使用中のPHPのバージョン(%s) が古いです。"
|
2799 |
|
2800 |
-
#: dist/vkExUnit.php:
|
2801 |
#, php-format
|
2802 |
msgid "%s supports PHP5.6 or later."
|
2803 |
msgstr "%s はPHP5.6以降をサポートしています。"
|
2804 |
|
2805 |
-
#:
|
2806 |
-
msgid "
|
2807 |
-
|
|
|
|
|
|
|
|
|
2808 |
|
2809 |
-
#:
|
2810 |
-
msgid "
|
2811 |
-
msgstr "
|
2812 |
|
2813 |
-
#:
|
2814 |
-
msgid "
|
2815 |
-
msgstr "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2816 |
|
2817 |
#, fuzzy
|
2818 |
#~| msgid "Display count"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: 2019-05-22 00:17+0900\n"
|
5 |
"PO-Revision-Date: \n"
|
6 |
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
|
7 |
"Language-Team: Vektor translate Team <info@vektor-inc.co.jp>\n"
|
16 |
"X-Poedit-SearchPath-0: .\n"
|
17 |
"X-Poedit-SearchPathExcluded-0: node_modules\n"
|
18 |
|
19 |
+
#: admin/admin-active-setting-page.php:3 dist/admin_active_setting_page.php:3
|
20 |
msgid "Enable setting"
|
21 |
msgstr "有効化設定"
|
22 |
|
23 |
+
#: admin/admin-active-setting-page.php:16
|
24 |
+
#: admin/admin-active-setting-page.php:89 dist/admin_active_setting_page.php:16
|
25 |
+
#: dist/admin_active_setting_page.php:89
|
26 |
msgid "Select all"
|
27 |
msgstr "全てを選択"
|
28 |
|
29 |
+
#: admin/admin-active-setting-page.php:16
|
30 |
+
#: admin/admin-active-setting-page.php:89 dist/admin_active_setting_page.php:16
|
31 |
+
#: dist/admin_active_setting_page.php:89
|
32 |
msgid "Function"
|
33 |
msgstr "有効化"
|
34 |
|
35 |
+
#: admin/admin-active-setting-page.php:16
|
36 |
+
#: admin/admin-active-setting-page.php:89 dist/admin_active_setting_page.php:16
|
37 |
+
#: dist/admin_active_setting_page.php:89
|
38 |
msgid "Description"
|
39 |
msgstr "説明"
|
40 |
|
41 |
+
#: admin/admin-active-setting-page.php:35 dist/admin_active_setting_page.php:35
|
42 |
+
#: dist/veu-packages.php:441 veu-packages.php:412
|
43 |
msgid "Automatic Eye Catch insert"
|
44 |
msgstr "アイキャッチ画像自動挿入"
|
45 |
|
46 |
+
#: admin/admin-active-setting-page.php:95 dist/admin_active_setting_page.php:95
|
47 |
msgid "Extension Setting"
|
48 |
msgstr "拡張設定"
|
49 |
|
50 |
+
#: admin/admin-active-setting-page.php:100
|
51 |
+
#: dist/admin_active_setting_page.php:100
|
52 |
msgid "Extention contents"
|
53 |
msgstr "拡張コンテンツ"
|
54 |
|
55 |
+
#: admin/admin-active-setting-page.php:106
|
56 |
+
#: dist/admin_active_setting_page.php:106
|
57 |
msgid "set extension contents to loop_end hook"
|
58 |
msgstr "ループ終了時にコンテンツを追加する"
|
59 |
|
60 |
+
#: admin/admin-active-setting-page.php:112
|
61 |
+
msgid "Post edit page metabox settings"
|
62 |
+
msgstr "投稿編集画面metabox設定"
|
63 |
+
|
64 |
+
#: admin/admin-active-setting-page.php:114
|
65 |
+
msgid "Do not combine ExUnit's meta box"
|
66 |
+
msgstr "ExUnitのmetaboxを統合しない"
|
67 |
+
|
68 |
+
#: admin/admin-active-setting-page.php:117
|
69 |
+
#: dist/admin_active_setting_page.php:112
|
70 |
+
msgid "Test version update"
|
71 |
+
msgstr "テストバージョンのアップデート"
|
72 |
+
|
73 |
+
#: admin/admin-active-setting-page.php:119
|
74 |
+
#: dist/admin_active_setting_page.php:114
|
75 |
+
msgid "Active test version update"
|
76 |
+
msgstr "テストバージョンのアップデートを有効にする"
|
77 |
+
|
78 |
+
#: admin/admin-active-setting-page.php:122
|
79 |
+
#: dist/admin_active_setting_page.php:117
|
80 |
msgid "Plugin setting options"
|
81 |
msgstr "プラグイン設定オプション"
|
82 |
|
83 |
+
#: admin/admin-active-setting-page.php:124
|
84 |
+
#: dist/admin_active_setting_page.php:119
|
85 |
msgid "Delete myOptions when deactivate me."
|
86 |
msgstr "プラグインを無効化する際にDBに保存したオプション項目を削除します。"
|
87 |
|
88 |
+
#: admin/admin-main-setting-page.php:16 admin/admin-main-setting-page.php:17
|
89 |
#: dist/admin_main_setting_page.php:10 dist/admin_main_setting_page.php:11
|
90 |
+
#: dist/plugins/meta_keyword.php:103
|
91 |
+
#: inc/meta-keyword/class-veu-metabox-meta-keyword.php:30
|
92 |
msgid "Main setting"
|
93 |
msgstr "メイン設定"
|
94 |
|
95 |
+
#: admin/admin-main-setting-page.php:94 dist/admin_main_setting_page.php:82
|
96 |
msgid "Activated Packages is noting. please activate some package."
|
97 |
msgstr ""
|
98 |
"有効化されているパッケージがありません。何かの機能を有効化してください。"
|
99 |
|
100 |
+
#: admin/admin-post-metabox.php:47
|
101 |
+
msgid "Open all"
|
102 |
+
msgstr "すべて開く"
|
103 |
+
|
104 |
+
#: admin/admin-post-metabox.php:48
|
105 |
+
msgid "Close all"
|
106 |
+
msgstr "全て閉じる"
|
107 |
+
|
108 |
+
#: admin/admin_bar.php:33 dist/plugins_admin/admin_bar.php:33
|
109 |
+
msgid "Active Setting"
|
110 |
+
msgstr "有効化設定"
|
111 |
+
|
112 |
+
#: admin/admin_bar.php:44 dist/plugins_admin/admin_bar.php:44
|
113 |
+
msgid "Main Setting"
|
114 |
+
msgstr "メイン設定"
|
115 |
+
|
116 |
+
#: admin/class-veu-metabox-insert-items.php:12
|
117 |
+
#: dist/plugins_admin/content-meta-box.php:11
|
118 |
+
msgid "Setting of insert items"
|
119 |
+
msgstr "挿入アイテムの設定"
|
120 |
+
|
121 |
+
#: admin/class-veu-metabox.php:126
|
122 |
+
#: inc/sitemap-page/class-veu-metabox-sitemap.php:37
|
123 |
+
msgid "Hide this page to HTML Sitemap."
|
124 |
+
msgstr "このページをHTMLサイトマップに表示しない。"
|
125 |
+
|
126 |
+
#: admin/customizer.php:38 dist/plugins/bootstrap.php:9
|
127 |
+
#: dist/plugins_admin/customizer.php:38 inc/bootstrap.php:9
|
128 |
+
msgid "Settings"
|
129 |
+
msgstr "設定"
|
130 |
+
|
131 |
+
#: admin/disable-guide.php:17 dist/plugins_admin/disable_guide.php:17
|
132 |
+
msgid "Edit Guide"
|
133 |
+
msgstr "編集ガイド"
|
134 |
+
|
135 |
+
#: admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:395
|
136 |
+
#: dist/plugins_admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:395
|
137 |
+
msgid "Check for updates"
|
138 |
+
msgstr ""
|
139 |
+
|
140 |
+
#: admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:432
|
141 |
+
#: dist/plugins_admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:432
|
142 |
+
msgid "View details"
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:455
|
146 |
+
#: dist/plugins_admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:455
|
147 |
+
#, php-format
|
148 |
+
msgid "More information about %s"
|
149 |
+
msgstr ""
|
150 |
+
|
151 |
+
#: admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:548
|
152 |
+
#: dist/plugins_admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:548
|
153 |
+
#, php-format
|
154 |
+
msgctxt "the plugin title"
|
155 |
+
msgid "The %s plugin is up to date."
|
156 |
+
msgstr ""
|
157 |
+
|
158 |
+
#: admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:550
|
159 |
+
#: dist/plugins_admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:550
|
160 |
+
#, php-format
|
161 |
+
msgctxt "the plugin title"
|
162 |
+
msgid "A new version of the %s plugin is available."
|
163 |
+
msgstr ""
|
164 |
+
|
165 |
+
#: admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:552
|
166 |
+
#: dist/plugins_admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:552
|
167 |
+
#, php-format
|
168 |
+
msgctxt "the plugin title"
|
169 |
+
msgid "Could not determine if updates are available for %s."
|
170 |
+
msgstr ""
|
171 |
+
|
172 |
+
#: admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:558
|
173 |
+
#: dist/plugins_admin/plugin-update-checker/Puc/v4p4/Plugin/UpdateChecker.php:558
|
174 |
+
#, php-format
|
175 |
+
msgid "Unknown update checker status \"%s\""
|
176 |
+
msgstr ""
|
177 |
+
|
178 |
+
#: admin/plugin-update-checker/Puc/v4p4/Vcs/PluginUpdateChecker.php:98
|
179 |
+
#: dist/plugins_admin/plugin-update-checker/Puc/v4p4/Vcs/PluginUpdateChecker.php:98
|
180 |
+
msgid "There is no changelog available."
|
181 |
+
msgstr ""
|
182 |
+
|
183 |
+
#: admin/vk-admin/package/class-vk-admin.php:290
|
184 |
+
#: dist/plugins_admin/vk-admin/class-vk-admin.php:290
|
185 |
+
msgid "Sorry, there is no post"
|
186 |
+
msgstr "お知らせはありません。"
|
187 |
+
|
188 |
+
#: admin/vk-admin/package/class-vk-admin.php:344
|
189 |
+
#: dist/plugins_admin/vk-admin/class-vk-admin.php:344
|
190 |
+
msgid "Vektor WordPress Information"
|
191 |
+
msgstr "Vektor WordPress Information"
|
192 |
+
|
193 |
+
#: dist/plugins/auto_eyecatch.php:50
|
194 |
+
#: inc/auto-eyecatch/class-veu-metabox-eyecatch.php:10
|
195 |
msgid "Automatic EyeCatch"
|
196 |
msgstr "アイキャッチ自動挿入"
|
197 |
|
198 |
+
#: dist/plugins/auto_eyecatch.php:60
|
199 |
+
#: inc/auto-eyecatch/class-veu-metabox-eyecatch.php:33
|
200 |
msgid "Do not set eyecatch image automatic."
|
201 |
msgstr "アイキャッチ画像を自動挿入しない"
|
202 |
|
203 |
+
#: dist/plugins/bootstrap.php:36 inc/bootstrap.php:36
|
|
|
|
|
|
|
|
|
|
|
204 |
msgid "Key color"
|
205 |
msgstr "キーカラー"
|
206 |
|
207 |
+
#: dist/plugins/bootstrap.php:47 inc/bootstrap.php:47
|
208 |
msgid "Key color(dark)"
|
209 |
msgstr "キーカラー(暗)"
|
210 |
|
211 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:63
|
212 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:425
|
213 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:63
|
214 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:394
|
215 |
msgid "Edit CTA"
|
216 |
msgstr "CTAの編集"
|
217 |
|
218 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:64
|
219 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:64
|
220 |
msgid "Add new CTA"
|
221 |
msgstr "CTAの新規作成"
|
222 |
|
223 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:65
|
224 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:65
|
225 |
msgid "New CTA"
|
226 |
msgstr "CTA 新規作成"
|
227 |
|
228 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:98
|
229 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:100
|
230 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:101
|
231 |
+
#: inc/call-to-action/package/class-veu-metabox-cta.php:14
|
|
|
|
|
232 |
msgid "Call to Action setting"
|
233 |
msgstr "CTA設定"
|
234 |
|
235 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:103
|
236 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:92
|
237 |
msgid "CTA Contents"
|
238 |
msgstr "CTA Contents"
|
239 |
|
240 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:129
|
241 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:631
|
242 |
#: dist/plugins/call-to-action/widget-call-to-action.php:74
|
243 |
+
#: inc/call-to-action/package/class-veu-metabox-cta.php:39
|
244 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:602
|
245 |
+
#: inc/call-to-action/package/widget-call-to-action.php:74
|
246 |
msgid "Random"
|
247 |
msgstr "ランダム表示"
|
248 |
|
249 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:135
|
250 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:638
|
251 |
+
#: inc/call-to-action/package/class-veu-metabox-cta.php:45
|
252 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:609
|
253 |
msgid "Disable display"
|
254 |
msgstr "表示しない"
|
255 |
|
256 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:141
|
257 |
+
#: inc/call-to-action/package/class-veu-metabox-cta.php:51
|
258 |
msgid "Follow common setting"
|
259 |
msgstr "共通設定を使用"
|
260 |
|
261 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:154
|
262 |
+
#: inc/call-to-action/package/class-veu-metabox-cta.php:62
|
263 |
msgid "CTA common setting"
|
264 |
msgstr "CTA共通設定"
|
265 |
|
266 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:155
|
267 |
#: dist/plugins/call-to-action/view-adminsetting.php:31
|
268 |
#: dist/plugins/call-to-action/widget-call-to-action.php:88
|
269 |
+
#: inc/call-to-action/package/class-veu-metabox-cta.php:63
|
270 |
+
#: inc/call-to-action/package/view-adminsetting.php:31
|
271 |
+
#: inc/call-to-action/package/widget-call-to-action.php:88
|
272 |
msgid "Show CTA index page"
|
273 |
msgstr "CTAの一覧を表示"
|
274 |
|
275 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:220
|
276 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:268
|
277 |
msgid ""
|
278 |
"You can create it with a free layout in the content field using, such as "
|
279 |
"Outer block and PR Content block in VK Blocks."
|
282 |
"アウトで作成する事もできます。"
|
283 |
|
284 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:221
|
285 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:269
|
286 |
msgid ""
|
287 |
"If the contents field is entered, the contents of the body will be displayed "
|
288 |
"with priority, so the following contents will be ignored."
|
291 |
"視されます。"
|
292 |
|
293 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:222
|
294 |
+
#, fuzzy
|
295 |
+
#| msgid ""
|
296 |
+
#| "The entered contents are displayed directly. You can not use Dynamic "
|
297 |
+
#| "blocks, reuse blocks, etc."
|
298 |
msgid ""
|
299 |
"The entered contents are displayed directly. You can not use short codes, "
|
300 |
"reuse blocks, etc."
|
301 |
msgstr ""
|
302 |
+
"入力された内容は直接表示されます。 動的ブロックや再利用ブロックなどは使用でき"
|
303 |
+
"ません。"
|
304 |
|
305 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:226
|
306 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:274
|
307 |
msgid "CTA image"
|
308 |
msgstr "CTA画像"
|
309 |
|
310 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:232
|
311 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:280
|
312 |
msgid "Add image"
|
313 |
msgstr "画像を追加"
|
314 |
|
315 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:233
|
316 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:281
|
317 |
msgid "Change image"
|
318 |
msgstr "画像を変更"
|
319 |
|
320 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:234
|
321 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:282
|
322 |
msgid "Remove image"
|
323 |
msgstr "画像を削除"
|
324 |
|
325 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:239
|
326 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:287
|
327 |
msgid "CTA image position"
|
328 |
msgstr "CTA画像の位置"
|
329 |
|
330 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:242
|
331 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:290
|
332 |
msgid "right"
|
333 |
msgstr "右寄せ"
|
334 |
|
335 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:243
|
336 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:291
|
337 |
msgid "center"
|
338 |
msgstr "中央"
|
339 |
|
340 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:244
|
341 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:292
|
342 |
msgid "left"
|
343 |
msgstr "左寄せ"
|
344 |
|
345 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:248
|
346 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:296
|
347 |
msgid "Button text"
|
348 |
msgstr "ボタンの表記文言"
|
349 |
|
350 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:252
|
351 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:300
|
352 |
msgid "Button icon"
|
353 |
msgstr "ボタンアイコン"
|
354 |
|
355 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:253
|
356 |
#: dist/plugins/other_widget/widget-button.php:122
|
357 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:301
|
358 |
+
#: inc/other_widget/widget-button.php:122
|
359 |
msgid "To choose your favorite icon, and enter the class."
|
360 |
msgstr "アイコンフォントを選んでそのクラス名を入力してください。"
|
361 |
|
362 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:254
|
363 |
#: dist/plugins/other_widget/widget-button.php:123
|
364 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:302
|
365 |
+
#: inc/other_widget/widget-button.php:123
|
366 |
msgid "Before :"
|
367 |
msgstr "文字の前 :"
|
368 |
|
369 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:256
|
370 |
#: dist/plugins/other_widget/widget-button.php:125
|
371 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:304
|
372 |
+
#: inc/other_widget/widget-button.php:125
|
373 |
msgid "After :"
|
374 |
msgstr "文字の後 :"
|
375 |
|
376 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:268
|
377 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:316
|
378 |
msgid "Button link url"
|
379 |
msgstr "ボタンのリンク先URL"
|
380 |
|
381 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:281
|
382 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:329
|
383 |
msgid "Target window"
|
384 |
msgstr "リンク先ターゲット"
|
385 |
|
386 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:283
|
387 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:331
|
388 |
msgid "Open in a self window"
|
389 |
msgstr "同じウィンドウで開く"
|
390 |
|
391 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:285
|
392 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:333
|
393 |
msgid "Text message"
|
394 |
msgstr "テキストメッセージ"
|
395 |
|
396 |
#: dist/plugins/call-to-action/class-vk-call-to-action.php:291
|
397 |
#: dist/plugins/call-to-action/widget-call-to-action.php:91
|
398 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:339
|
399 |
+
#: inc/call-to-action/package/widget-call-to-action.php:91
|
400 |
msgid "CTA setting"
|
401 |
msgstr "CTA設定"
|
402 |
|
403 |
#: dist/plugins/call-to-action/view-adminsetting.php:15
|
404 |
+
#: dist/veu-packages.php:299
|
405 |
+
#: inc/call-to-action/package/view-adminsetting.php:15 veu-packages.php:259
|
406 |
msgid "Call To Action"
|
407 |
msgstr "Call To Action"
|
408 |
|
409 |
#: dist/plugins/call-to-action/view-adminsetting.php:19
|
410 |
+
#: dist/veu-packages.php:291
|
411 |
+
#: inc/call-to-action/package/view-adminsetting.php:19 veu-packages.php:251
|
412 |
msgid "Display the CTA at the end of the post content."
|
413 |
msgstr "投稿内容の最後にCTAを表示します。"
|
414 |
|
415 |
#: dist/plugins/call-to-action/view-adminsetting.php:20
|
416 |
+
#: dist/veu-packages.php:293
|
417 |
+
#: inc/call-to-action/package/view-adminsetting.php:20 veu-packages.php:253
|
418 |
msgid ""
|
419 |
"The CTA stands for \"Call to action\" and this is the area that prompts the "
|
420 |
"user behavior."
|
423 |
"情報を表示します。"
|
424 |
|
425 |
#: dist/plugins/call-to-action/view-adminsetting.php:21
|
426 |
+
#: dist/veu-packages.php:295
|
427 |
+
#: inc/call-to-action/package/view-adminsetting.php:21 veu-packages.php:255
|
428 |
msgid ""
|
429 |
"As an example, text message and a link button for induction to the free "
|
430 |
"sample download page."
|
433 |
"ンなどです。"
|
434 |
|
435 |
#: dist/plugins/call-to-action/view-adminsetting.php:23
|
436 |
+
#: inc/call-to-action/package/view-adminsetting.php:23
|
437 |
msgid "How to use"
|
438 |
msgstr "使い方"
|
439 |
|
440 |
#: dist/plugins/call-to-action/view-adminsetting.php:26
|
441 |
+
#: inc/call-to-action/package/view-adminsetting.php:26
|
442 |
msgid ""
|
443 |
"You register the contents on \"CTA\" that you want to display to bottom of "
|
444 |
"the content."
|
445 |
msgstr "まずは投稿タイプCTAで、本文の最後に表示させたい内容を登録します。"
|
446 |
|
447 |
#: dist/plugins/call-to-action/view-adminsetting.php:27
|
448 |
+
#: inc/call-to-action/package/view-adminsetting.php:27
|
449 |
msgid "Choose the CTA to be displayed from the following."
|
450 |
msgstr "下記のプルダウンで、投稿タイプ別に表示するCTAを選択して保存します。"
|
451 |
|
452 |
#: dist/plugins/call-to-action/view-adminsetting.php:28
|
453 |
+
#: inc/call-to-action/package/view-adminsetting.php:28
|
454 |
msgid ""
|
455 |
"If you want to switch the CTA to be displayed on each post, please set in "
|
456 |
"the details page of such posting."
|
459 |
"い。"
|
460 |
|
461 |
#: dist/plugins/call-to-action/view-adminsetting.php:41
|
462 |
+
#: inc/call-to-action/package/view-adminsetting.php:41
|
463 |
msgid "Show index page"
|
464 |
msgstr "一覧ページを表示する"
|
465 |
|
466 |
#: dist/plugins/call-to-action/widget-call-to-action.php:20
|
467 |
+
#: inc/call-to-action/package/widget-call-to-action.php:20
|
468 |
msgid "CTA"
|
469 |
msgstr "CTA"
|
470 |
|
471 |
#: dist/plugins/call-to-action/widget-call-to-action.php:26
|
472 |
+
#: inc/call-to-action/package/widget-call-to-action.php:26
|
473 |
msgid "Select CTA and display it."
|
474 |
msgstr "CTAを選択して表示します。"
|
475 |
|
476 |
#: dist/plugins/call-to-action/widget-call-to-action.php:66
|
477 |
+
#: inc/call-to-action/package/widget-call-to-action.php:66
|
478 |
msgid "Please select CTA to display."
|
479 |
msgstr "表示するCTAを選択してください。"
|
480 |
|
481 |
#: dist/plugins/call-to-action/widget-call-to-action.php:80
|
482 |
+
#: inc/call-to-action/package/widget-call-to-action.php:80
|
483 |
msgid "Please select"
|
484 |
msgstr "選択してください"
|
485 |
|
486 |
#: dist/plugins/child_page_index.php:79
|
487 |
#: dist/plugins/other_widget/widget-3pr-area.php:198
|
488 |
+
#: inc/child-page-index.php:79 inc/other_widget/widget-3pr-area.php:198
|
489 |
msgid "Read more"
|
490 |
msgstr "詳しくはこちら"
|
491 |
|
492 |
#: dist/plugins/child_page_index.php:150
|
493 |
+
#: dist/plugins/other_widget/widget-page.php:166 inc/child-page-index.php:142
|
494 |
+
#: inc/other_widget/widget-page.php:166
|
495 |
msgid "Display a child page index"
|
496 |
msgstr "子ページ一覧の表示"
|
497 |
|
498 |
#: dist/plugins/contact-section/contact-section.php:107
|
499 |
#: dist/plugins/contact-section/contact-section.php:138
|
500 |
+
#: inc/contact-section/contact-section.php:106
|
501 |
+
#: inc/contact-section/contact-section.php:137
|
502 |
msgid "Contact Information"
|
503 |
msgstr "お問い合わせ情報"
|
504 |
|
506 |
#: dist/plugins/contact-section/contact-section.php:149
|
507 |
#: dist/plugins/contact-section/customizer.php:53
|
508 |
#: dist/plugins/contact-section/customizer.php:67
|
509 |
+
#: inc/contact-section/contact-section.php:116
|
510 |
+
#: inc/contact-section/contact-section.php:148
|
511 |
+
#: inc/contact-section/customizer.php:53 inc/contact-section/customizer.php:67
|
|
|
512 |
msgid "Please feel free to inquire."
|
513 |
msgstr "お気軽にお問い合わせください。"
|
514 |
|
515 |
#: dist/plugins/contact-section/contact-section.php:120
|
516 |
#: dist/plugins/contact-section/customizer.php:116
|
517 |
+
#: inc/contact-section/contact-section.php:119
|
518 |
+
#: inc/contact-section/customizer.php:116
|
519 |
msgid "Office hours 9:00 - 18:00 [ Weekdays except holidays ]"
|
520 |
msgstr "受付時間 9:00-18:00 [ 土・日・祝日除く ]"
|
521 |
|
523 |
#: dist/plugins/contact-section/contact-section.php:124
|
524 |
#: dist/plugins/contact-section/customizer.php:158
|
525 |
#: dist/plugins/contact-section/customizer.php:200
|
526 |
+
#: inc/contact-section/contact-section.php:121
|
527 |
+
#: inc/contact-section/contact-section.php:123
|
528 |
+
#: inc/contact-section/customizer.php:158
|
529 |
+
#: inc/contact-section/customizer.php:200
|
530 |
msgid "Contact us"
|
531 |
msgstr "お問い合わせ"
|
532 |
|
533 |
#: dist/plugins/contact-section/contact-section.php:140
|
534 |
#: dist/plugins/contact-section/customizer.php:33
|
535 |
+
#: inc/contact-section/contact-section.php:139
|
536 |
+
#: inc/contact-section/customizer.php:33
|
537 |
msgid ""
|
538 |
"The contents entered here will be reflected in the bottom of each fixed "
|
539 |
"page, the \"Contact Section\" widget, the \"Contact Button\" widget, etc."
|
543 |
|
544 |
#: dist/plugins/contact-section/contact-section.php:142
|
545 |
#: dist/plugins/contact-section/customizer.php:35
|
546 |
+
#: inc/contact-section/contact-section.php:141
|
547 |
+
#: inc/contact-section/customizer.php:35
|
548 |
msgid ""
|
549 |
"When I display it on the page, it is necessary to classify a check into "
|
550 |
"\"Display Contact Section\" checkbox with the edit page of each page."
|
554 |
|
555 |
#: dist/plugins/contact-section/contact-section.php:146
|
556 |
#: dist/plugins/contact-section/customizer.php:62
|
557 |
+
#: inc/contact-section/contact-section.php:145
|
558 |
+
#: inc/contact-section/customizer.php:62
|
559 |
msgid "Message"
|
560 |
msgstr "メッセージ"
|
561 |
|
575 |
#: dist/plugins/contact-section/customizer.php:193
|
576 |
#: dist/plugins/google_analytics/ga_admin.php:16
|
577 |
#: dist/plugins/sns/sns_admin.php:38
|
578 |
+
#: inc/contact-section/contact-section.php:148
|
579 |
+
#: inc/contact-section/contact-section.php:155
|
580 |
+
#: inc/contact-section/contact-section.php:162
|
581 |
+
#: inc/contact-section/contact-section.php:169
|
582 |
+
#: inc/contact-section/contact-section.php:177
|
583 |
+
#: inc/contact-section/contact-section.php:185
|
584 |
+
#: inc/contact-section/contact-section.php:193
|
585 |
+
#: inc/contact-section/customizer.php:67 inc/contact-section/customizer.php:88
|
586 |
+
#: inc/contact-section/customizer.php:109
|
587 |
+
#: inc/contact-section/customizer.php:130
|
588 |
+
#: inc/contact-section/customizer.php:151
|
589 |
+
#: inc/contact-section/customizer.php:172
|
590 |
+
#: inc/contact-section/customizer.php:193 inc/google_analytics/ga_admin.php:16
|
591 |
+
#: inc/sns/sns_admin.php:38
|
|
|
592 |
msgid "ex) "
|
593 |
msgstr "例) "
|
594 |
|
595 |
#: dist/plugins/contact-section/contact-section.php:153
|
596 |
#: dist/plugins/contact-section/customizer.php:83
|
597 |
+
#: inc/contact-section/contact-section.php:152
|
598 |
+
#: inc/contact-section/customizer.php:83
|
599 |
msgid "Phone number"
|
600 |
msgstr "電話番号"
|
601 |
|
602 |
#: dist/plugins/contact-section/contact-section.php:160
|
603 |
#: dist/plugins/contact-section/customizer.php:104
|
604 |
+
#: inc/contact-section/contact-section.php:159
|
605 |
+
#: inc/contact-section/customizer.php:104
|
606 |
msgid "Phone icon"
|
607 |
msgstr "電話アイコン"
|
608 |
|
610 |
#: dist/plugins/contact-section/contact-section.php:170
|
611 |
#: dist/plugins/contact-section/customizer.php:125
|
612 |
#: dist/plugins/contact-section/customizer.php:130
|
613 |
+
#: inc/contact-section/contact-section.php:166
|
614 |
+
#: inc/contact-section/contact-section.php:169
|
615 |
+
#: inc/contact-section/customizer.php:125
|
616 |
+
#: inc/contact-section/customizer.php:130
|
617 |
msgid "Office hours"
|
618 |
msgstr "営業時間"
|
619 |
|
620 |
#: dist/plugins/contact-section/contact-section.php:170
|
621 |
#: dist/plugins/contact-section/customizer.php:130
|
622 |
+
#: inc/contact-section/contact-section.php:169
|
623 |
+
#: inc/contact-section/customizer.php:130
|
624 |
msgid "Weekdays except holidays"
|
625 |
msgstr "土日・祝日除く"
|
626 |
|
627 |
#: dist/plugins/contact-section/contact-section.php:175
|
628 |
#: dist/plugins/contact-section/customizer.php:146
|
629 |
+
#: inc/contact-section/contact-section.php:174
|
630 |
+
#: inc/contact-section/customizer.php:146
|
631 |
msgid "The contact page URL"
|
632 |
msgstr "お問い合わせ先URL"
|
633 |
|
634 |
#: dist/plugins/contact-section/contact-section.php:178
|
635 |
#: dist/plugins/contact-section/customizer.php:151
|
636 |
+
#: inc/contact-section/contact-section.php:177
|
637 |
+
#: inc/contact-section/customizer.php:151
|
638 |
msgid "or"
|
639 |
msgstr "もしくは"
|
640 |
|
641 |
#: dist/plugins/contact-section/contact-section.php:179
|
642 |
#: dist/plugins/contact-section/customizer.php:151
|
643 |
+
#: inc/contact-section/contact-section.php:178
|
644 |
+
#: inc/contact-section/customizer.php:151
|
645 |
msgid "* If you fill in the blank, widget's contact button does not appear."
|
646 |
msgstr "※ 未入力の場合、お問い合わせウィジェットには何も表示されません。"
|
647 |
|
648 |
#: dist/plugins/contact-section/contact-section.php:183
|
649 |
#: dist/plugins/contact-section/customizer.php:167
|
650 |
+
#: inc/contact-section/contact-section.php:182
|
651 |
+
#: inc/contact-section/customizer.php:167
|
652 |
msgid "Contact button Text"
|
653 |
msgstr "お問い合わせボタンに表示するテキスト"
|
654 |
|
655 |
#: dist/plugins/contact-section/contact-section.php:186
|
656 |
#: dist/plugins/contact-section/customizer.php:172
|
657 |
+
#: inc/contact-section/contact-section.php:185
|
658 |
+
#: inc/contact-section/customizer.php:172
|
659 |
msgid "Contact Us from email."
|
660 |
msgstr "メールでのお問い合わせはこちら"
|
661 |
|
662 |
#: dist/plugins/contact-section/contact-section.php:191
|
663 |
#: dist/plugins/contact-section/customizer.php:188
|
664 |
+
#: inc/contact-section/contact-section.php:190
|
665 |
+
#: inc/contact-section/customizer.php:188
|
666 |
msgid "Contact button text( sub )"
|
667 |
msgstr "お問い合わせボタンに表示するテキスト2(オプション)"
|
668 |
|
669 |
#: dist/plugins/contact-section/contact-section.php:195
|
670 |
#: dist/plugins/contact-section/customizer.php:193
|
671 |
+
#: inc/contact-section/contact-section.php:194
|
672 |
+
#: inc/contact-section/customizer.php:193
|
673 |
msgid "Email contact form"
|
674 |
msgstr "お気軽にお問い合わせください。"
|
675 |
|
676 |
#: dist/plugins/contact-section/contact-section.php:200
|
677 |
#: dist/plugins/contact-section/customizer.php:209
|
678 |
+
#: inc/contact-section/contact-section.php:199
|
679 |
+
#: inc/contact-section/customizer.php:209
|
680 |
msgid "Contact button short text for side widget"
|
681 |
msgstr "お問い合わせボタンウィジェットに表示するテキスト"
|
682 |
|
683 |
#: dist/plugins/contact-section/contact-section.php:204
|
684 |
#: dist/plugins/contact-section/customizer.php:214
|
685 |
+
#: inc/contact-section/contact-section.php:203
|
686 |
+
#: inc/contact-section/customizer.php:214
|
687 |
msgid "This will used to \"Contact Button\" widget."
|
688 |
msgstr ""
|
689 |
"このテキストはお問い合わせボタンウィジェットで使用されます。サイドバーでの利"
|
690 |
"用を想定していますので少ない文字数で設定してください。"
|
691 |
|
692 |
#: dist/plugins/contact-section/contact-section.php:208
|
693 |
+
#: inc/contact-section/contact-section.php:207
|
694 |
msgid "Advanced Setting"
|
695 |
msgstr "高度な設定"
|
696 |
|
697 |
#: dist/plugins/contact-section/contact-section.php:217
|
698 |
#: dist/plugins/contact-section/customizer.php:238
|
699 |
+
#: inc/contact-section/contact-section.php:216
|
700 |
+
#: inc/contact-section/customizer.php:238
|
701 |
msgid "Inquiry Banner image"
|
702 |
msgstr "お問い合わせバナー画像"
|
703 |
|
704 |
#: dist/plugins/contact-section/contact-section.php:219
|
705 |
+
#: inc/contact-section/contact-section.php:218
|
706 |
msgid "Select Image"
|
707 |
msgstr "画像を選択"
|
708 |
|
709 |
#: dist/plugins/contact-section/contact-section.php:220
|
710 |
#: dist/plugins/contact-section/customizer.php:228
|
711 |
+
#: inc/contact-section/contact-section.php:219
|
712 |
+
#: inc/contact-section/customizer.php:228
|
713 |
msgid "Display the image instead of the above inquiry information"
|
714 |
msgstr ""
|
715 |
"画像が登録されている場合は標準のお問い合わせ情報ではなく画像が表示されます。"
|
716 |
|
717 |
#: dist/plugins/contact-section/contact-section.php:224
|
718 |
#: dist/plugins/contact-section/customizer.php:264
|
719 |
+
#: inc/contact-section/contact-section.php:223
|
720 |
+
#: inc/contact-section/customizer.php:264
|
721 |
msgid "Display HTML message instead of the standard"
|
722 |
msgstr "お問い合わせ情報として表示するHTML"
|
723 |
|
724 |
#: dist/plugins/contact-section/contact-section.php:226
|
725 |
#: dist/plugins/contact-section/customizer.php:257
|
726 |
+
#: inc/contact-section/contact-section.php:225
|
727 |
+
#: inc/contact-section/customizer.php:257
|
728 |
msgid "HTML takes precedence over image"
|
729 |
msgstr "HTMLが登録されている場合は画像より優先されます。"
|
730 |
|
731 |
#: dist/plugins/contact-section/contact-section.php:248
|
732 |
+
#: inc/contact-section/contact-section.php:247
|
733 |
msgid "Display Contact Section"
|
734 |
msgstr "お問い合わせ情報の表示"
|
735 |
|
736 |
#: dist/plugins/contact-section/contact-section.php:388
|
737 |
#: dist/plugins/contact-section/contact-section.php:441
|
738 |
+
#: inc/contact-section/contact-section.php:387
|
739 |
+
#: inc/contact-section/contact-section.php:440
|
740 |
msgid "Edit contact information"
|
741 |
msgstr "Contact情報を編集"
|
742 |
|
743 |
#: dist/plugins/contact-section/contact-section.php:457
|
744 |
+
#: inc/contact-section/contact-section.php:456
|
745 |
msgid "Contact Button"
|
746 |
msgstr "お問い合わせボタン"
|
747 |
|
748 |
#: dist/plugins/contact-section/contact-section.php:458
|
749 |
+
#: inc/contact-section/contact-section.php:457
|
750 |
msgid "Display contact button."
|
751 |
msgstr "お問い合わせボタンを表示します。"
|
752 |
|
753 |
#: dist/plugins/contact-section/contact-section.php:459
|
754 |
#: dist/plugins/contact-section/contact-section.php:487
|
755 |
#: dist/plugins/contact-section/contact-section.php:509
|
756 |
+
#: inc/contact-section/contact-section.php:458
|
757 |
+
#: inc/contact-section/contact-section.php:486
|
758 |
+
#: inc/contact-section/contact-section.php:508
|
759 |
#, php-format
|
760 |
msgid ""
|
761 |
"It is necessary to set the \"%s\" -> \"Contact Information\" section in "
|
764 |
"「%s」→ 「メイン設定」ページで『お問い合わせ情報』を設定する必要があります。"
|
765 |
|
766 |
#: dist/plugins/contact-section/contact-section.php:486
|
767 |
+
#: inc/contact-section/contact-section.php:485
|
768 |
msgid "Display contact button"
|
769 |
msgstr "お問い合わせボタンを表示します。"
|
770 |
|
771 |
#: dist/plugins/contact-section/contact-section.php:507
|
772 |
+
#: dist/veu-packages.php:264 inc/contact-section/contact-section.php:506
|
773 |
+
#: veu-packages.php:224
|
774 |
msgid "Contact Section"
|
775 |
msgstr "お問い合わせ情報"
|
776 |
|
777 |
#: dist/plugins/contact-section/contact-section.php:508
|
778 |
+
#: inc/contact-section/contact-section.php:507
|
779 |
msgid "Display Phone number and contact button etc."
|
780 |
msgstr "電話番号とお問い合わせボタンなどを表示します。"
|
781 |
|
782 |
#: dist/plugins/contact-section/contact-section.php:537
|
783 |
+
#: inc/contact-section/contact-section.php:536
|
784 |
#, php-format
|
785 |
msgid ""
|
786 |
"*It is necessary to set the \"%s\" -> \"Contact Information\" section in "
|
790 |
"す。"
|
791 |
|
792 |
#: dist/plugins/contact-section/customizer.php:23
|
793 |
+
#: inc/contact-section/customizer.php:23
|
794 |
msgid "Contact Settings"
|
795 |
msgstr "お問い合わせ情報"
|
796 |
|
797 |
#: dist/plugins/contact-section/customizer.php:231
|
798 |
#: dist/plugins/contact-section/customizer.php:260
|
799 |
+
#: inc/contact-section/customizer.php:231
|
800 |
+
#: inc/contact-section/customizer.php:260
|
801 |
msgid "It is not reflected in the header."
|
802 |
msgstr "ヘッダーには反映されません。"
|
803 |
|
805 |
#: dist/plugins/css_customize/css_customize.php:30
|
806 |
#: dist/plugins/css_customize/css_customize.php:44
|
807 |
#: dist/plugins/css_customize/css_customize.php:45
|
808 |
+
#: inc/css-customize/css-customize-edit.php:2
|
809 |
+
#: inc/css-customize/css-customize.php:43
|
810 |
+
#: inc/css-customize/css-customize.php:57
|
811 |
+
#: inc/css-customize/css-customize.php:58
|
812 |
msgid "CSS Customize"
|
813 |
msgstr "CSSカスタマイズ"
|
814 |
|
815 |
#: dist/plugins/css_customize/css_customize-edit.php:5
|
816 |
+
#: inc/css-customize/css-customize-edit.php:5
|
817 |
msgid "You can add custom CSS here."
|
818 |
msgstr "デザインをカスタマイズする場合は下のテキストエリアにCSSを入力します"
|
819 |
|
820 |
#: dist/plugins/css_customize/css_customize-edit.php:13
|
821 |
+
#: inc/css-customize/css-customize-edit.php:13
|
822 |
msgid "Save CSS"
|
823 |
msgstr "CSSを保存する"
|
824 |
|
825 |
#: dist/plugins/css_customize/css_customize-single.php:22
|
826 |
+
#: inc/css-customize/class-veu-metabox-css-customize.php:14
|
827 |
msgid "Custom CSS"
|
828 |
msgstr "カスタムCSS"
|
829 |
|
830 |
#: dist/plugins/css_customize/css_customize.php:100
|
831 |
+
#: inc/css-customize/css-customize.php:113
|
832 |
msgid "Your custom CSS was saved."
|
833 |
msgstr "CSSが保存されました"
|
834 |
|
835 |
#: dist/plugins/css_customize/css_customize.php:103
|
836 |
+
#: inc/css-customize/css-customize.php:116
|
837 |
msgid "Error occured. Please try again."
|
838 |
msgstr "何らかのエラー!! また試してみてください"
|
839 |
|
840 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:22
|
841 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:37
|
842 |
+
#: inc/font-awesome/package/class-vk-font-awesome-versions.php:22
|
843 |
+
#: inc/font-awesome/package/class-vk-font-awesome-versions.php:37
|
844 |
msgid "Not recommended"
|
845 |
msgstr "非推奨"
|
846 |
|
847 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:69
|
848 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:71
|
849 |
+
#: inc/font-awesome/package/class-vk-font-awesome-versions.php:69
|
850 |
+
#: inc/font-awesome/package/class-vk-font-awesome-versions.php:71
|
851 |
msgid "Ex ) "
|
852 |
msgstr "例 ) "
|
853 |
|
854 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:169
|
855 |
+
#: inc/font-awesome/package/class-vk-font-awesome-versions.php:169
|
856 |
msgid "Font Awesome"
|
857 |
msgstr "Font Awesome"
|
858 |
|
859 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:190
|
860 |
+
#: inc/font-awesome/package/class-vk-font-awesome-versions.php:190
|
861 |
msgid "Font Awesome Version"
|
862 |
msgstr "Font Awesome Version"
|
863 |
|
864 |
#: dist/plugins/font-awesome/class-vk-font-awesome-versions.php:193
|
865 |
+
#: inc/font-awesome/package/class-vk-font-awesome-versions.php:193
|
866 |
msgid "4.7 will be abolished in the near future."
|
867 |
msgstr "4.7は将来的に廃止します。"
|
868 |
|
869 |
+
#: dist/plugins/footer_copyright_change.php:6 inc/footer-copyright-change.php:6
|
|
|
870 |
msgid ""
|
871 |
"<p>Powered by <a href=\"https://wordpress.org/\">WordPress</a> with <a href="
|
872 |
"\"https://lightning.nagoya\" target=\"_blank\" title=\"Free WordPress Theme "
|
883 |
#: dist/plugins/google_analytics/ga_admin.php:9
|
884 |
#: dist/plugins/google_analytics/ga_admin.php:13
|
885 |
#: dist/plugins/google_analytics/google_analytics.php:23
|
886 |
+
#: inc/google_analytics/ga_admin.php:9 inc/google_analytics/ga_admin.php:13
|
887 |
+
#: inc/google_analytics/google_analytics.php:23
|
|
|
888 |
msgid "Google Analytics Settings"
|
889 |
msgstr "Google Analytics設定"
|
890 |
|
891 |
#: dist/plugins/google_analytics/ga_admin.php:14
|
892 |
+
#: inc/google_analytics/ga_admin.php:14
|
893 |
msgid ""
|
894 |
"Please fill in the Google Analytics ID from the Analytics embed code used in "
|
895 |
"the site."
|
896 |
msgstr "このサイトで使用する Google アナリティクスの ID を入力して下さい。"
|
897 |
|
898 |
#: dist/plugins/google_analytics/ga_admin.php:19
|
899 |
+
#: inc/google_analytics/ga_admin.php:19
|
900 |
msgid ""
|
901 |
"Please select the type of Analytics code . (If you are unsure you can skip "
|
902 |
"this.)"
|
906 |
|
907 |
#: dist/plugins/google_analytics/ga_admin.php:23
|
908 |
#: dist/plugins/google_analytics/ga_customizer.php:74
|
909 |
+
#: inc/google_analytics/ga_admin.php:23
|
910 |
+
#: inc/google_analytics/ga_customizer.php:74
|
911 |
msgid "Recommendation ( gtag )"
|
912 |
msgstr "推奨 ( gtag )"
|
913 |
|
914 |
#: dist/plugins/google_analytics/ga_admin.php:24
|
915 |
#: dist/plugins/google_analytics/ga_customizer.php:75
|
916 |
+
#: inc/google_analytics/ga_admin.php:24
|
917 |
+
#: inc/google_analytics/ga_customizer.php:75
|
918 |
msgid "Universal Analytics code ( analytics.js )"
|
919 |
msgstr "ユニバーサル アナリティクスのコード ( analytics.js )"
|
920 |
|
921 |
#: dist/plugins/google_analytics/ga_admin.php:25
|
922 |
#: dist/plugins/google_analytics/ga_customizer.php:76
|
923 |
+
#: inc/google_analytics/ga_admin.php:25
|
924 |
+
#: inc/google_analytics/ga_customizer.php:76
|
925 |
msgid "Normal code ( analytics.js )"
|
926 |
msgstr "ノーマルのコード ( analytics.js )"
|
927 |
|
928 |
#: dist/plugins/google_analytics/ga_customizer.php:24
|
929 |
+
#: inc/google_analytics/ga_customizer.php:24
|
930 |
msgid "Google Analtics Settings"
|
931 |
msgstr "Google Analytics設定"
|
932 |
|
933 |
#: dist/plugins/google_analytics/ga_customizer.php:45
|
934 |
+
#: inc/google_analytics/ga_customizer.php:45
|
935 |
msgid "Google Analytics ID"
|
936 |
msgstr "Google Analyticsの ID"
|
937 |
|
938 |
#: dist/plugins/google_analytics/ga_customizer.php:49
|
939 |
+
#: inc/google_analytics/ga_customizer.php:49
|
940 |
msgid ""
|
941 |
"Please fill in the Google Analytics ID from the Analytics embed code used in "
|
942 |
"the site.<br>ex) XXXXXXXX-X"
|
945 |
"XXXXXXXX-X"
|
946 |
|
947 |
#: dist/plugins/google_analytics/ga_customizer.php:68
|
948 |
+
#: inc/google_analytics/ga_customizer.php:68
|
949 |
msgid "Select the type of Analytics code"
|
950 |
msgstr "アナリティクスコードの種類を選択"
|
951 |
|
952 |
#: dist/plugins/google_analytics/ga_customizer.php:78
|
953 |
+
#: inc/google_analytics/ga_customizer.php:78
|
954 |
msgid ""
|
955 |
"Print the select the type of Analytics code.<br>(If you are unsure you can "
|
956 |
"skip this.)"
|
958 |
"アナリティクスコードの種類を選択して下さい。( 不明な場合この設定は省略できま"
|
959 |
"す。)"
|
960 |
|
961 |
+
#: dist/plugins/icons.php:38 dist/plugins/icons.php:68 inc/icons.php:38
|
962 |
+
#: inc/icons.php:68
|
963 |
msgid "icon setting"
|
964 |
msgstr "アイコン設定"
|
965 |
|
966 |
+
#: dist/plugins/icons.php:74 inc/icons.php:74
|
967 |
#, php-format
|
968 |
msgid ""
|
969 |
"This feature will be discontinued shortly.<br>You can set the site icon from "
|
974 |
"サイトアイコンは「<a href=%s>外観 > カスタマイズ</a>」の「サイト基本情報」パ"
|
975 |
"ネルから設定できます。"
|
976 |
|
977 |
+
#: dist/plugins/icons.php:81 inc/icons.php:81
|
978 |
msgid "Favicon Setting"
|
979 |
msgstr "ファビコン設定"
|
980 |
|
981 |
+
#: dist/plugins/icons.php:83 inc/icons.php:83
|
982 |
msgid "Choose icon"
|
983 |
msgstr "アイコンを選択"
|
984 |
|
985 |
+
#: dist/plugins/icons.php:84 inc/icons.php:84
|
986 |
msgid "Please upload your \".ico\" file"
|
987 |
msgstr "作成したicoファイルをアップロードしてください"
|
988 |
|
989 |
#: dist/plugins/insert_ads.php:38 dist/plugins/insert_ads.php:218
|
990 |
+
#: dist/veu-packages.php:322 inc/insert-ads.php:38 inc/insert-ads.php:218
|
991 |
+
#: veu-packages.php:282
|
992 |
msgid "Insert ads"
|
993 |
msgstr "広告の挿入"
|
994 |
|
995 |
+
#: dist/plugins/insert_ads.php:228 inc/insert-ads.php:228
|
996 |
msgid "Google Auto ads"
|
997 |
msgstr "Google自動広告"
|
998 |
|
999 |
+
#: dist/plugins/insert_ads.php:233 inc/insert-ads.php:233
|
1000 |
msgid "About Google Auto ads"
|
1001 |
msgstr "Google自動広告について"
|
1002 |
|
1003 |
+
#: dist/plugins/insert_ads.php:236 inc/insert-ads.php:236
|
1004 |
msgid ""
|
1005 |
"If you would like to set to Google Auto ads,Please fill in Publisher ID."
|
1006 |
msgstr ""
|
1007 |
"Google自動広告を設定する場合はチェックを入れて、サイト運営者IDを入力してくだ"
|
1008 |
"さい。"
|
1009 |
|
1010 |
+
#: dist/plugins/insert_ads.php:238 inc/insert-ads.php:238
|
1011 |
msgid "Enable Google Auto ads"
|
1012 |
msgstr "Google自動広告を有効にする"
|
1013 |
|
1014 |
+
#: dist/plugins/insert_ads.php:240 inc/insert-ads.php:240
|
1015 |
msgid "Publisher ID"
|
1016 |
msgstr "サイト運営者ID"
|
1017 |
|
1018 |
+
#: dist/plugins/insert_ads.php:244 inc/insert-ads.php:244
|
1019 |
msgid "Google AdSense dashboard"
|
1020 |
msgstr "Google AdSense 管理画面"
|
1021 |
|
1022 |
+
#: dist/plugins/insert_ads.php:246 inc/insert-ads.php:246
|
1023 |
#, php-format
|
1024 |
msgid ""
|
1025 |
"Publisher ID is you can investigate from the %s > Account information page."
|
1026 |
msgstr "サイト運営者IDは %s > アカウント情報 から確認できます。"
|
1027 |
|
1028 |
+
#: dist/plugins/insert_ads.php:249 inc/insert-ads.php:249
|
1029 |
msgid "Designate anchor ads at the bottom."
|
1030 |
msgstr "アンカー広告を下部に指定する"
|
1031 |
|
1032 |
+
#: dist/plugins/insert_ads.php:251 inc/insert-ads.php:251
|
1033 |
msgid ""
|
1034 |
"The layout may collapse by inserting Google Auto ads, but the correspondence "
|
1035 |
"varies depending on the kind, specification, theme etc. of advertisement, so "
|
1040 |
"中のテーマなどにより対応は様々ですので、表示崩れについては各自必要に応じてCSS"
|
1041 |
"を書いて修正してください。"
|
1042 |
|
1043 |
+
#: dist/plugins/insert_ads.php:259 inc/insert-ads.php:259
|
1044 |
msgid "Insert ads to post."
|
1045 |
msgstr "投稿に広告を挿入"
|
1046 |
|
1047 |
+
#: dist/plugins/insert_ads.php:261 inc/insert-ads.php:261
|
1048 |
msgid "Insert ads to before content and more tag and after content."
|
1049 |
msgstr "記事の直前 / moreタグの直後 / 記事の最後に広告を挿入できます。"
|
1050 |
|
1051 |
+
#: dist/plugins/insert_ads.php:261 inc/insert-ads.php:261
|
1052 |
msgid "If you want to separate ads area, you fill two fields."
|
1053 |
msgstr "2つのフィールドに分けて挿入すると、横並び(col-md-6)に表示されます。"
|
1054 |
|
1055 |
+
#: dist/plugins/insert_ads.php:263 inc/insert-ads.php:263
|
1056 |
msgid "insert the ad [ before content ]"
|
1057 |
msgstr "広告を挿入 [ 記事の最初 ]"
|
1058 |
|
1059 |
+
#: dist/plugins/insert_ads.php:271 inc/insert-ads.php:271
|
1060 |
msgid "insert the ad [ more tag ]"
|
1061 |
msgstr "広告を挿入 [ moreタグ ]"
|
1062 |
|
1063 |
+
#: dist/plugins/insert_ads.php:279 inc/insert-ads.php:279
|
1064 |
msgid "insert the ad [ after content ]"
|
1065 |
msgstr "広告を挿入 [ 記事の最後 ]"
|
1066 |
|
1067 |
#: dist/plugins/meta_description.php:20 dist/plugins/meta_description.php:31
|
1068 |
+
#: dist/plugins/meta_description.php:34 inc/meta-description.php:20
|
1069 |
+
#: inc/meta-description.php:31 inc/meta-description.php:34
|
1070 |
msgid "Meta Description"
|
1071 |
msgstr "メタディスクリプション"
|
1072 |
|
1073 |
+
#: dist/plugins/meta_description.php:37 inc/meta-description.php:37
|
1074 |
msgid ""
|
1075 |
"What you have to complete the \"excerpt\" column of the edit screen of each "
|
1076 |
"page will be reflected in the description of the meta tag."
|
1078 |
"各ページの編集画面の「抜粋」欄に記入した内容がmetaタグのディスクリプションに"
|
1079 |
"反映されます"
|
1080 |
|
1081 |
+
#: dist/plugins/meta_description.php:38 inc/meta-description.php:38
|
1082 |
msgid ""
|
1083 |
"Description of meta tags in the search results screen of search sites such "
|
1084 |
"as Google, will be Displayed, such as the bottom of the site title. If the "
|
1089 |
"す。しかし、トップページに設定した固定ページに抜粋が記入されている場合はその"
|
1090 |
"内容が反映されます。"
|
1091 |
|
1092 |
+
#: dist/plugins/meta_description.php:39 inc/meta-description.php:39
|
1093 |
msgid ""
|
1094 |
"The meta description of the top page is subject to the catchphrase of the "
|
1095 |
"site. However, its contents will be reflected if the excerpt is entered in "
|
1099 |
"す。しかし、トップページに設定した固定ページに抜粋が記入されている場合はその"
|
1100 |
"内容が反映されます。"
|
1101 |
|
1102 |
+
#: dist/plugins/meta_description.php:40 inc/meta-description.php:40
|
1103 |
msgid ""
|
1104 |
"If \"excerpt\" column is not found, Click \"Display Option\" of page top at "
|
1105 |
"each article edit page, and check the expert column display."
|
1110 |
|
1111 |
#: dist/plugins/meta_keyword.php:40 dist/plugins/meta_keyword.php:91
|
1112 |
#: dist/plugins/meta_keyword.php:93 dist/plugins/meta_keyword.php:94
|
1113 |
+
#: dist/plugins/meta_keyword.php:101
|
1114 |
+
#: inc/meta-keyword/class-veu-metabox-meta-keyword.php:14
|
1115 |
+
#: inc/meta-keyword/meta-keyword.php:51
|
1116 |
msgid "Meta Keywords"
|
1117 |
msgstr "メタキーワード"
|
1118 |
|
1119 |
+
#: dist/plugins/meta_keyword.php:68 inc/meta-keyword/meta-keyword.php:79
|
1120 |
msgid "Meta Keyword"
|
1121 |
msgstr "メタキーワード"
|
1122 |
|
1123 |
+
#: dist/plugins/meta_keyword.php:71 inc/meta-keyword/meta-keyword.php:82
|
1124 |
msgid "Common Keywords"
|
1125 |
msgstr "共通キーワード設定"
|
1126 |
|
1127 |
+
#: dist/plugins/meta_keyword.php:72 inc/meta-keyword/meta-keyword.php:83
|
1128 |
msgid ""
|
1129 |
"Keywords for meta tag. This words will set Meta Keyword with post keywords. "
|
1130 |
"if you want multiple keywords, enter with separator of \",\"."
|
1132 |
"メタタグに入力するキーワードを入力します。ここでは全てのページで使用する共通"
|
1133 |
"のキーワードを設定します。複数ある場合は「,」で区切ってください。"
|
1134 |
|
1135 |
+
#: dist/plugins/meta_keyword.php:75 inc/meta-keyword/meta-keyword.php:86
|
1136 |
msgid "This is not seriously, Because the SearchEngine does not care this."
|
1137 |
msgstr ""
|
1138 |
"あまり深く考える必要はありません。現状のサーチエンジンではそこまで重要なファ"
|
1139 |
"クターとはなりません。"
|
1140 |
|
1141 |
+
#: dist/plugins/meta_keyword.php:76 inc/meta-keyword/meta-keyword.php:87
|
1142 |
msgid ""
|
1143 |
"For each page individual keyword is enter at the edit screen of each "
|
1144 |
"article. 10 keywords maximum, together with a each article keywords is "
|
1147 |
"個々のページのキーワードはそれぞれの投稿ページのキーワード入力欄から追加して"
|
1148 |
"ください。それらと合わせて10個程度のキーワード数であることが望ましいです。"
|
1149 |
|
1150 |
+
#: dist/plugins/meta_keyword.php:77 inc/meta-keyword/meta-keyword.php:88
|
1151 |
msgid "\",\" separator at end of the last keyword is do not need."
|
1152 |
msgstr "最後のキーワードの後ろに「,」は必要ありません。"
|
1153 |
|
1154 |
+
#: dist/plugins/meta_keyword.php:78 inc/meta-keyword/meta-keyword.php:89
|
1155 |
msgid "Example: WordPress,template,theme,free,GPL"
|
1156 |
msgstr "【例】 WordPress,テンプレート,テーマ,無料,GPL"
|
1157 |
|
1158 |
+
#: dist/plugins/meta_keyword.php:102
|
1159 |
+
#: inc/meta-keyword/class-veu-metabox-meta-keyword.php:34
|
1160 |
msgid ""
|
1161 |
"To distinguish between individual keywords, please enter a , delimiter "
|
1162 |
"(optional)."
|
1163 |
msgstr "キーワードを複数入力する場合は , ( カンマ )で区切って下さい。"
|
1164 |
|
1165 |
+
#: dist/plugins/meta_keyword.php:104
|
1166 |
+
#: inc/meta-keyword/class-veu-metabox-meta-keyword.php:35
|
1167 |
#, php-format
|
1168 |
msgid "* keywords common to the entire site can be set from %s."
|
1169 |
msgstr "サイト全体のキーワードは %s より設定することができます。"
|
1170 |
|
1171 |
#: dist/plugins/other_widget/widget-3pr-area.php:9
|
1172 |
#: dist/plugins/other_widget/widget-3pr-area.php:161
|
1173 |
+
#: inc/other_widget/widget-3pr-area.php:9
|
1174 |
+
#: inc/other_widget/widget-3pr-area.php:161
|
1175 |
msgid "3PR area"
|
1176 |
msgstr "3PR エリア"
|
1177 |
|
1178 |
#: dist/plugins/other_widget/widget-3pr-area.php:14
|
1179 |
+
#: inc/other_widget/widget-3pr-area.php:14
|
1180 |
msgid "Displays a 3PR area"
|
1181 |
msgstr "3PR エリアを表示します。"
|
1182 |
|
1183 |
#: dist/plugins/other_widget/widget-3pr-area.php:20
|
1184 |
+
#: inc/other_widget/widget-3pr-area.php:20
|
1185 |
msgid "3PR area1 title"
|
1186 |
msgstr "3PR エリア1 タイトル"
|
1187 |
|
1188 |
#: dist/plugins/other_widget/widget-3pr-area.php:28
|
1189 |
+
#: inc/other_widget/widget-3pr-area.php:28
|
1190 |
msgid "3PR area2 title"
|
1191 |
msgstr "3PR エリア2 タイトル"
|
1192 |
|
1193 |
#: dist/plugins/other_widget/widget-3pr-area.php:36
|
1194 |
+
#: inc/other_widget/widget-3pr-area.php:36
|
1195 |
msgid "3PR area3 title"
|
1196 |
msgstr "3PR エリア3 タイトル"
|
1197 |
|
1198 |
#: dist/plugins/other_widget/widget-3pr-area.php:54
|
1199 |
+
#: inc/other_widget/widget-3pr-area.php:54
|
1200 |
msgid "3PR area setting"
|
1201 |
msgstr "3PR エリア設定"
|
1202 |
|
1208 |
#: dist/plugins/related_posts/related_posts.php:261
|
1209 |
#: dist/plugins/sns/widget-fb-page-plugin.php:79
|
1210 |
#: dist/plugins/sns/widget-twitter.php:84
|
1211 |
+
#: inc/other_widget/widget-3pr-area.php:56
|
1212 |
+
#: inc/other_widget/widget-new-posts.php:243
|
1213 |
+
#: inc/other_widget/widget-page.php:126
|
1214 |
+
#: inc/other_widget/widget-pr-blocks.php:111
|
1215 |
+
#: inc/other_widget/widget-profile.php:55
|
1216 |
+
#: inc/related_posts/related_posts.php:261 inc/sns/widget-fb-page-plugin.php:79
|
1217 |
+
#: inc/sns/widget-twitter.php:84
|
1218 |
msgid "Title:"
|
1219 |
msgstr "タイトル"
|
1220 |
|
1221 |
#: dist/plugins/other_widget/widget-3pr-area.php:62
|
1222 |
+
#: inc/other_widget/widget-3pr-area.php:62
|
1223 |
msgid "Select image for PC:"
|
1224 |
msgstr "PC 用に表示される画像を選択(横 300px 程度推奨)"
|
1225 |
|
1228 |
#: dist/plugins/other_widget/widget-new-posts.php:290
|
1229 |
#: dist/plugins/other_widget/widget-pr-blocks.php:174
|
1230 |
#: dist/plugins/other_widget/widget-profile.php:70
|
1231 |
+
#: inc/other_widget/widget-3pr-area.php:72
|
1232 |
+
#: inc/other_widget/widget-3pr-area.php:90
|
1233 |
+
#: inc/other_widget/widget-new-posts.php:290
|
1234 |
+
#: inc/other_widget/widget-pr-blocks.php:174
|
1235 |
+
#: inc/other_widget/widget-profile.php:70
|
1236 |
msgid "Select image"
|
1237 |
msgstr "画像を選択"
|
1238 |
|
1241 |
#: dist/plugins/other_widget/widget-new-posts.php:291
|
1242 |
#: dist/plugins/other_widget/widget-pr-blocks.php:175
|
1243 |
#: dist/plugins/other_widget/widget-profile.php:71
|
1244 |
+
#: inc/other_widget/widget-3pr-area.php:73
|
1245 |
+
#: inc/other_widget/widget-3pr-area.php:91
|
1246 |
+
#: inc/other_widget/widget-new-posts.php:291
|
1247 |
+
#: inc/other_widget/widget-pr-blocks.php:175
|
1248 |
+
#: inc/other_widget/widget-profile.php:71
|
1249 |
msgid "Clear image"
|
1250 |
msgstr "画像クリア"
|
1251 |
|
1252 |
#: dist/plugins/other_widget/widget-3pr-area.php:80
|
1253 |
+
#: inc/other_widget/widget-3pr-area.php:80
|
1254 |
msgid "Select image for Mobile:"
|
1255 |
msgstr ""
|
1256 |
"スマホ用(ウィンドウサイズが 768px 以下の場合)に表示される画像を選択(橫 "
|
1258 |
|
1259 |
#: dist/plugins/other_widget/widget-3pr-area.php:102
|
1260 |
#: dist/plugins/other_widget/widget-pr-blocks.php:115
|
1261 |
+
#: inc/other_widget/widget-3pr-area.php:102
|
1262 |
+
#: inc/other_widget/widget-pr-blocks.php:115
|
1263 |
msgid "Summary Text:"
|
1264 |
msgstr "概要となるテキスト"
|
1265 |
|
1266 |
#: dist/plugins/other_widget/widget-3pr-area.php:108
|
1267 |
#: dist/plugins/other_widget/widget-pr-blocks.php:120
|
1268 |
+
#: inc/other_widget/widget-3pr-area.php:108
|
1269 |
+
#: inc/other_widget/widget-pr-blocks.php:120
|
1270 |
msgid "Link URL:"
|
1271 |
msgstr "リンク先ページのURL"
|
1272 |
|
1273 |
#: dist/plugins/other_widget/widget-3pr-area.php:116
|
1274 |
#: dist/plugins/other_widget/widget-banner.php:106
|
1275 |
#: dist/plugins/other_widget/widget-pr-blocks.php:124
|
1276 |
+
#: inc/other_widget/widget-3pr-area.php:116
|
1277 |
+
#: inc/other_widget/widget-banner.php:106
|
1278 |
+
#: inc/other_widget/widget-pr-blocks.php:124
|
1279 |
msgid "Open link new tab."
|
1280 |
msgstr "リンクを別ウィンドウで開く"
|
1281 |
|
1282 |
#: dist/plugins/other_widget/widget-archives.php:9 dist/veu-packages.php:200
|
1283 |
+
#: inc/other_widget/widget-archives.php:9 veu-packages.php:160
|
1284 |
msgid "archive list"
|
1285 |
msgstr "アーカイブリスト"
|
1286 |
|
1287 |
#: dist/plugins/other_widget/widget-archives.php:14 dist/veu-packages.php:200
|
1288 |
+
#: inc/other_widget/widget-archives.php:14 veu-packages.php:160
|
1289 |
msgid ""
|
1290 |
"Displays a list of archives. You can choose the post type and also to "
|
1291 |
"display archives by month or by year."
|
1295 |
|
1296 |
#: dist/plugins/other_widget/widget-archives.php:53
|
1297 |
#: dist/plugins/other_widget/widget-archives.php:54
|
1298 |
+
#: inc/other_widget/widget-archives.php:53
|
1299 |
+
#: inc/other_widget/widget-archives.php:54
|
1300 |
msgid "Monthly archives"
|
1301 |
msgstr "月別アーカイブ"
|
1302 |
|
1303 |
#: dist/plugins/other_widget/widget-archives.php:68
|
1304 |
#: dist/plugins/other_widget/widget-new-posts.php:261
|
1305 |
#: dist/plugins/other_widget/widget-new-posts.php:268
|
1306 |
+
#: inc/other_widget/widget-archives.php:68
|
1307 |
+
#: inc/other_widget/widget-new-posts.php:261
|
1308 |
+
#: inc/other_widget/widget-new-posts.php:268
|
1309 |
msgid "Title"
|
1310 |
msgstr "タイトル"
|
1311 |
|
1312 |
#: dist/plugins/other_widget/widget-archives.php:72
|
1313 |
+
#: inc/other_widget/widget-archives.php:72
|
1314 |
msgid "Post type"
|
1315 |
msgstr "ポストタイプ"
|
1316 |
|
1317 |
#: dist/plugins/other_widget/widget-archives.php:92
|
1318 |
+
#: inc/other_widget/widget-archives.php:92
|
1319 |
msgid "Monthly"
|
1320 |
msgstr "月別"
|
1321 |
|
1322 |
#: dist/plugins/other_widget/widget-archives.php:99
|
1323 |
+
#: inc/other_widget/widget-archives.php:99
|
1324 |
msgid "Yearly"
|
1325 |
msgstr "年別"
|
1326 |
|
1327 |
#: dist/plugins/other_widget/widget-archives.php:117
|
1328 |
+
#: inc/other_widget/widget-archives.php:117
|
1329 |
msgid "archive"
|
1330 |
msgstr "アーカイブ"
|
1331 |
|
1332 |
#: dist/plugins/other_widget/widget-banner.php:15
|
1333 |
+
#: inc/other_widget/widget-banner.php:15
|
1334 |
msgid "Banner"
|
1335 |
msgstr "バナー"
|
1336 |
|
1337 |
#: dist/plugins/other_widget/widget-banner.php:21
|
1338 |
+
#: inc/other_widget/widget-banner.php:21
|
1339 |
msgid ""
|
1340 |
"You can easily set up a banner simply by registering images and link "
|
1341 |
"destinations."
|
1342 |
msgstr "画像とリンク先を登録するだけで簡単にバナーを設定できます。"
|
1343 |
|
1344 |
#: dist/plugins/other_widget/widget-banner.php:97
|
1345 |
+
#: inc/other_widget/widget-banner.php:97
|
1346 |
msgid "Set image"
|
1347 |
msgstr "画像を選択"
|
1348 |
|
1349 |
#: dist/plugins/other_widget/widget-banner.php:107
|
1350 |
+
#: inc/other_widget/widget-banner.php:107
|
1351 |
msgid "Alternative text"
|
1352 |
msgstr "代替テキスト(alt)"
|
1353 |
|
1354 |
#: dist/plugins/other_widget/widget-button.php:32
|
1355 |
+
#: inc/other_widget/widget-button.php:32
|
1356 |
msgid "Button"
|
1357 |
msgstr "ボタン"
|
1358 |
|
1359 |
#: dist/plugins/other_widget/widget-button.php:37
|
1360 |
+
#: inc/other_widget/widget-button.php:37
|
1361 |
msgid "You can set buttons for arbitrary text."
|
1362 |
msgstr "任意のテキストのボタンを設定できます。"
|
1363 |
|
1364 |
#: dist/plugins/other_widget/widget-button.php:116
|
1365 |
+
#: inc/other_widget/widget-button.php:116
|
1366 |
msgid "Main text(Required):"
|
1367 |
msgstr "ボタンテキスト(必須):"
|
1368 |
|
1369 |
#: dist/plugins/other_widget/widget-button.php:121
|
1370 |
+
#: inc/other_widget/widget-button.php:121
|
1371 |
msgid "Class name of the icon font"
|
1372 |
msgstr "使用したいアイコンフォント"
|
1373 |
|
1374 |
#: dist/plugins/other_widget/widget-button.php:134
|
1375 |
+
#: inc/other_widget/widget-button.php:134
|
1376 |
msgid "Sub text:"
|
1377 |
msgstr "サブテキスト:"
|
1378 |
|
1379 |
#: dist/plugins/other_widget/widget-button.php:138
|
1380 |
+
#: inc/other_widget/widget-button.php:138
|
1381 |
msgid "Link URL(Required):"
|
1382 |
msgstr "リンク先ページのURL(必須):"
|
1383 |
|
1384 |
#: dist/plugins/other_widget/widget-button.php:148
|
1385 |
+
#: inc/other_widget/widget-button.php:148
|
1386 |
msgid "Open with new tab"
|
1387 |
msgstr "リンクを別ウィンドウで開く"
|
1388 |
|
1389 |
#: dist/plugins/other_widget/widget-button.php:151
|
1390 |
+
#: inc/other_widget/widget-button.php:151
|
1391 |
msgid "Size"
|
1392 |
msgstr "サイズ"
|
1393 |
|
1394 |
#: dist/plugins/other_widget/widget-button.php:158
|
1395 |
+
#: inc/other_widget/widget-button.php:158
|
1396 |
msgid "Small"
|
1397 |
msgstr "小"
|
1398 |
|
1399 |
#: dist/plugins/other_widget/widget-button.php:164
|
1400 |
+
#: inc/other_widget/widget-button.php:164
|
1401 |
msgid "Medium"
|
1402 |
msgstr "中"
|
1403 |
|
1404 |
#: dist/plugins/other_widget/widget-button.php:170
|
1405 |
+
#: inc/other_widget/widget-button.php:170
|
1406 |
msgid "Large"
|
1407 |
msgstr "大"
|
1408 |
|
1409 |
#: dist/plugins/other_widget/widget-button.php:174
|
1410 |
+
#: inc/other_widget/widget-button.php:174
|
1411 |
msgid "Button color:"
|
1412 |
msgstr "ボタンの色:"
|
1413 |
|
1414 |
#: dist/plugins/other_widget/widget-button.php:211
|
1415 |
+
#: inc/other_widget/widget-button.php:211
|
1416 |
msgid "Key Color(.primary)"
|
1417 |
msgstr "キーカラー(.primary)"
|
1418 |
|
1419 |
#: dist/plugins/other_widget/widget-button.php:212
|
1420 |
+
#: inc/other_widget/widget-button.php:212
|
1421 |
msgid "No paint(.default)"
|
1422 |
msgstr "塗りなし(.default)"
|
1423 |
|
1424 |
#: dist/plugins/other_widget/widget-button.php:213
|
1425 |
+
#: inc/other_widget/widget-button.php:213
|
1426 |
msgid "Light green(.success)"
|
1427 |
msgstr "明るい緑(.success)"
|
1428 |
|
1429 |
#: dist/plugins/other_widget/widget-button.php:214
|
1430 |
+
#: inc/other_widget/widget-button.php:214
|
1431 |
msgid "Light blue(.info)"
|
1432 |
msgstr "空色(.info)"
|
1433 |
|
1434 |
#: dist/plugins/other_widget/widget-button.php:215
|
1435 |
+
#: inc/other_widget/widget-button.php:215
|
1436 |
msgid "Orange(.warning)"
|
1437 |
msgstr "オレンジ(.warning)"
|
1438 |
|
1439 |
#: dist/plugins/other_widget/widget-button.php:216
|
1440 |
+
#: inc/other_widget/widget-button.php:216
|
1441 |
msgid "Red(.danger)"
|
1442 |
msgstr "赤(.danger)"
|
1443 |
|
1444 |
#: dist/plugins/other_widget/widget-child-page-list.php:10
|
1445 |
+
#: inc/other_widget/widget-child-page-list.php:10
|
1446 |
msgid "Child Page List"
|
1447 |
msgstr "子ページのリスト"
|
1448 |
|
1449 |
#: dist/plugins/other_widget/widget-child-page-list.php:15
|
1450 |
#: dist/plugins/other_widget/widget-child-page-list.php:59
|
1451 |
+
#: inc/other_widget/widget-child-page-list.php:15
|
1452 |
+
#: inc/other_widget/widget-child-page-list.php:59
|
1453 |
msgid "Display the child pages list from ancestor page."
|
1454 |
msgstr "表示しているページの先祖階層からの子ページリストを表示します。"
|
1455 |
|
1456 |
#: dist/plugins/other_widget/widget-new-posts.php:12
|
1457 |
#: dist/plugins/other_widget/widget-new-posts.php:217
|
1458 |
+
#: inc/other_widget/widget-new-posts.php:12
|
1459 |
+
#: inc/other_widget/widget-new-posts.php:217
|
1460 |
msgid "Recent Posts"
|
1461 |
msgstr "最新記事"
|
1462 |
|
1463 |
#: dist/plugins/other_widget/widget-new-posts.php:17
|
1464 |
+
#: inc/other_widget/widget-new-posts.php:17
|
1465 |
msgid "Displays a list of your most recent posts"
|
1466 |
msgstr "最新の投稿記事リストを表示します。"
|
1467 |
|
1468 |
#: dist/plugins/other_widget/widget-new-posts.php:254
|
1469 |
+
#: inc/other_widget/widget-new-posts.php:254
|
1470 |
msgid "Display Format"
|
1471 |
msgstr "表示形式"
|
1472 |
|
1473 |
#: dist/plugins/other_widget/widget-new-posts.php:261
|
1474 |
+
#: inc/other_widget/widget-new-posts.php:261
|
1475 |
msgid "Thumbnail"
|
1476 |
msgstr "サムネイル画像"
|
1477 |
|
1478 |
#: dist/plugins/other_widget/widget-new-posts.php:261
|
1479 |
#: dist/plugins/other_widget/widget-new-posts.php:268
|
1480 |
+
#: inc/other_widget/widget-new-posts.php:261
|
1481 |
+
#: inc/other_widget/widget-new-posts.php:268
|
1482 |
msgid "Date"
|
1483 |
msgstr "日付"
|
1484 |
|
1486 |
#: dist/plugins/other_widget/widget-taxonomies.php:26
|
1487 |
#: dist/plugins/other_widget/widget-taxonomies.php:56
|
1488 |
#: dist/plugins/other_widget/widget-taxonomies.php:57
|
1489 |
+
#: inc/other_widget/widget-new-posts.php:268
|
1490 |
+
#: inc/other_widget/widget-taxonomies.php:26
|
1491 |
+
#: inc/other_widget/widget-taxonomies.php:56
|
1492 |
+
#: inc/other_widget/widget-taxonomies.php:57
|
1493 |
msgid "Category"
|
1494 |
msgstr "カテゴリー"
|
1495 |
|
1496 |
#: dist/plugins/other_widget/widget-new-posts.php:281
|
1497 |
+
#: inc/other_widget/widget-new-posts.php:281
|
1498 |
msgid "Default thumbnail image:"
|
1499 |
msgstr "デフォルトのサムネイル画像:"
|
1500 |
|
1501 |
#: dist/plugins/other_widget/widget-new-posts.php:302
|
1502 |
+
#: inc/other_widget/widget-new-posts.php:302
|
1503 |
msgid "Order by"
|
1504 |
msgstr "表示順"
|
1505 |
|
1506 |
#: dist/plugins/other_widget/widget-new-posts.php:309
|
1507 |
+
#: inc/other_widget/widget-new-posts.php:309
|
1508 |
msgid "Publish date"
|
1509 |
msgstr "公開日"
|
1510 |
|
1511 |
#: dist/plugins/other_widget/widget-new-posts.php:315
|
1512 |
+
#: inc/other_widget/widget-new-posts.php:315
|
1513 |
msgid "Modified date"
|
1514 |
msgstr "最終更新日"
|
1515 |
|
1516 |
#: dist/plugins/other_widget/widget-new-posts.php:319
|
1517 |
#: dist/plugins/related_posts/related_posts.php:281
|
1518 |
+
#: inc/other_widget/widget-new-posts.php:319
|
1519 |
+
#: inc/related_posts/related_posts.php:281
|
1520 |
msgid "Display count"
|
1521 |
msgstr "表示する記事数"
|
1522 |
|
1523 |
#: dist/plugins/other_widget/widget-new-posts.php:324
|
1524 |
+
#: inc/other_widget/widget-new-posts.php:324
|
1525 |
msgid "Slug for the custom type you want to display"
|
1526 |
msgstr "表示したい記事タイプ"
|
1527 |
|
1528 |
#: dist/plugins/other_widget/widget-new-posts.php:329
|
1529 |
+
#: inc/other_widget/widget-new-posts.php:329
|
1530 |
msgid "taxonomy ID"
|
1531 |
msgstr "カテゴリー(タクソノミー)ID"
|
1532 |
|
1533 |
#: dist/plugins/other_widget/widget-new-posts.php:332
|
1534 |
+
#: inc/other_widget/widget-new-posts.php:332
|
1535 |
msgid "if you need filtering by term, add the term ID separate by \",\"."
|
1536 |
msgstr ""
|
1537 |
"特定のカテゴリーのみ表示したい場合は<br/>カンマ(,)区切りでカテゴリーIDを入力"
|
1538 |
"します。"
|
1539 |
|
1540 |
#: dist/plugins/other_widget/widget-new-posts.php:334
|
1541 |
+
#: dist/plugins/sns/sns_admin.php:92 inc/other_widget/widget-new-posts.php:334
|
1542 |
+
#: inc/sns/sns_admin.php:92
|
1543 |
msgid "if empty this area, I will do not filtering."
|
1544 |
msgstr "空欄の場合はフィルタリングは行いません。"
|
1545 |
|
1546 |
#: dist/plugins/other_widget/widget-new-posts.php:339
|
1547 |
+
#: inc/other_widget/widget-new-posts.php:339
|
1548 |
msgid "Destination URL:"
|
1549 |
msgstr "リンク先URL:"
|
1550 |
|
1551 |
#: dist/plugins/other_widget/widget-new-posts.php:342
|
1552 |
+
#: inc/other_widget/widget-new-posts.php:342
|
1553 |
msgid "Notation text:"
|
1554 |
msgstr "表記テキスト:"
|
1555 |
|
1556 |
#: dist/plugins/other_widget/widget-page.php:9
|
1557 |
+
#: inc/other_widget/widget-page.php:9
|
1558 |
msgid "page content to widget"
|
1559 |
msgstr "固定ページ本文"
|
1560 |
|
1561 |
#: dist/plugins/other_widget/widget-page.php:14
|
1562 |
+
#: inc/other_widget/widget-page.php:14
|
1563 |
msgid "Displays a page contents to widget."
|
1564 |
msgstr "選択したページの内容を表示します。"
|
1565 |
|
1566 |
#: dist/plugins/other_widget/widget-page.php:135
|
1567 |
+
#: inc/other_widget/widget-page.php:135
|
1568 |
msgid "Display the entered title"
|
1569 |
msgstr "入力したタイトルを表示する"
|
1570 |
|
1571 |
#: dist/plugins/other_widget/widget-page.php:139
|
1572 |
+
#: inc/other_widget/widget-page.php:139
|
1573 |
msgid "Display the title of page"
|
1574 |
msgstr "固定ページのタイトルを表示する"
|
1575 |
|
1576 |
#: dist/plugins/other_widget/widget-page.php:143
|
1577 |
+
#: inc/other_widget/widget-page.php:143
|
1578 |
msgid "Do not display titles"
|
1579 |
msgstr "タイトルを表示しない"
|
1580 |
|
1581 |
#: dist/plugins/other_widget/widget-page.php:175
|
1582 |
+
#: dist/plugins/pageList_ancestor.php:96 inc/other_widget/widget-page.php:175
|
1583 |
+
#: inc/page-list-ancestor.php:93
|
1584 |
msgid "Display a page list from ancestor"
|
1585 |
msgstr "現在のページの先祖階層からの子ページリストを表示"
|
1586 |
|
1587 |
#: dist/plugins/other_widget/widget-page.php:243
|
1588 |
+
#: inc/other_widget/widget-page.php:243
|
1589 |
msgid "Edit"
|
1590 |
msgstr "編集"
|
1591 |
|
1592 |
#: dist/plugins/other_widget/widget-pr-blocks.php:17
|
1593 |
+
#: inc/other_widget/widget-pr-blocks.php:17
|
1594 |
msgid "PR Blocks"
|
1595 |
msgstr "PR Blocks"
|
1596 |
|
1597 |
#: dist/plugins/other_widget/widget-pr-blocks.php:22
|
1598 |
+
#: inc/other_widget/widget-pr-blocks.php:22
|
1599 |
msgid "Displays a circle image or icon font for pr blocks"
|
1600 |
msgstr "丸抜きの画像やアイコンフォントをPRブロックに表示"
|
1601 |
|
1602 |
#: dist/plugins/other_widget/widget-pr-blocks.php:30
|
1603 |
+
#: inc/other_widget/widget-pr-blocks.php:30
|
1604 |
msgid "Service"
|
1605 |
msgstr "サービス紹介"
|
1606 |
|
1607 |
#: dist/plugins/other_widget/widget-pr-blocks.php:40
|
1608 |
+
#: inc/other_widget/widget-pr-blocks.php:40
|
1609 |
msgid "Company"
|
1610 |
msgstr "会社案内"
|
1611 |
|
1612 |
#: dist/plugins/other_widget/widget-pr-blocks.php:50
|
1613 |
+
#: inc/other_widget/widget-pr-blocks.php:50
|
1614 |
msgid "Recruit"
|
1615 |
msgstr "採用情報"
|
1616 |
|
1617 |
#: dist/plugins/other_widget/widget-pr-blocks.php:60
|
1618 |
+
#: inc/other_widget/widget-pr-blocks.php:60
|
1619 |
msgid "Contact"
|
1620 |
msgstr "Contact"
|
1621 |
|
1622 |
#: dist/plugins/other_widget/widget-pr-blocks.php:83
|
1623 |
+
#: inc/other_widget/widget-pr-blocks.php:83
|
1624 |
msgid "The choice of the number of columns:"
|
1625 |
msgstr "列の数"
|
1626 |
|
1627 |
#: dist/plugins/other_widget/widget-pr-blocks.php:90
|
1628 |
+
#: inc/other_widget/widget-pr-blocks.php:90
|
1629 |
msgid "3column"
|
1630 |
msgstr "3列"
|
1631 |
|
1632 |
#: dist/plugins/other_widget/widget-pr-blocks.php:96
|
1633 |
+
#: inc/other_widget/widget-pr-blocks.php:96
|
1634 |
msgid "4column"
|
1635 |
msgstr "4列"
|
1636 |
|
1637 |
#: dist/plugins/other_widget/widget-pr-blocks.php:98
|
1638 |
+
#: inc/other_widget/widget-pr-blocks.php:98
|
1639 |
msgid ""
|
1640 |
"If you change the number of columns, click to \"Save\" botton and exit the "
|
1641 |
"edit page. When restart the edit page, the column input form is increased or "
|
1646 |
|
1647 |
#: dist/plugins/other_widget/widget-pr-blocks.php:107
|
1648 |
#: dist/plugins/other_widget/widget-pr-blocks.php:277
|
1649 |
+
#: inc/other_widget/widget-pr-blocks.php:107
|
1650 |
+
#: inc/other_widget/widget-pr-blocks.php:277
|
1651 |
msgid "PR Block"
|
1652 |
msgstr "PRブロック"
|
1653 |
|
1654 |
#: dist/plugins/other_widget/widget-pr-blocks.php:129
|
1655 |
+
#: inc/other_widget/widget-pr-blocks.php:129
|
1656 |
msgid "Icon"
|
1657 |
msgstr "アイコン"
|
1658 |
|
1659 |
#: dist/plugins/other_widget/widget-pr-blocks.php:132
|
1660 |
+
#: inc/other_widget/widget-pr-blocks.php:132
|
1661 |
msgid "Class name of the icon font you want to use:"
|
1662 |
msgstr "使用したいアイコンフォントのクラス名:"
|
1663 |
|
1664 |
#: dist/plugins/other_widget/widget-pr-blocks.php:143
|
1665 |
#: dist/plugins/other_widget/widget-profile.php:157
|
1666 |
+
#: inc/other_widget/widget-pr-blocks.php:143
|
1667 |
+
#: inc/other_widget/widget-profile.php:157
|
1668 |
msgid "Icon color:"
|
1669 |
msgstr "アイコンの色:"
|
1670 |
|
1671 |
#: dist/plugins/other_widget/widget-pr-blocks.php:147
|
1672 |
#: dist/plugins/other_widget/widget-profile.php:142
|
1673 |
+
#: inc/other_widget/widget-pr-blocks.php:147
|
1674 |
+
#: inc/other_widget/widget-profile.php:142
|
1675 |
msgid "Icon Background:"
|
1676 |
msgstr "アイコン背景:"
|
1677 |
|
1678 |
#: dist/plugins/other_widget/widget-pr-blocks.php:151
|
1679 |
#: dist/plugins/other_widget/widget-profile.php:148
|
1680 |
+
#: inc/other_widget/widget-pr-blocks.php:151
|
1681 |
+
#: inc/other_widget/widget-profile.php:148
|
1682 |
msgid "Solid color"
|
1683 |
msgstr "塗りつぶし"
|
1684 |
|
1685 |
#: dist/plugins/other_widget/widget-pr-blocks.php:155
|
1686 |
#: dist/plugins/other_widget/widget-profile.php:151
|
1687 |
+
#: dist/plugins/sns/sns_customizer.php:318
|
1688 |
+
#: inc/other_widget/widget-pr-blocks.php:155
|
1689 |
+
#: inc/other_widget/widget-profile.php:151 inc/sns/sns_customizer.php:318
|
|
|
1690 |
msgid "No background"
|
1691 |
msgstr "背景なし"
|
1692 |
|
1693 |
#: dist/plugins/other_widget/widget-pr-blocks.php:161
|
1694 |
+
#: inc/other_widget/widget-pr-blocks.php:161
|
1695 |
msgid "PR Image"
|
1696 |
msgstr "画像"
|
1697 |
|
1698 |
#: dist/plugins/other_widget/widget-pr-blocks.php:162
|
1699 |
+
#: inc/other_widget/widget-pr-blocks.php:162
|
1700 |
msgid "When you have an image. Image is displayed with priority"
|
1701 |
msgstr "画像を設定するとアイコンフォントよりも画像が優先されます。"
|
1702 |
|
1703 |
#: dist/plugins/other_widget/widget-profile.php:9
|
1704 |
#: dist/plugins/other_widget/widget-profile.php:32
|
1705 |
+
#: inc/other_widget/widget-profile.php:9 inc/other_widget/widget-profile.php:32
|
|
|
1706 |
msgid "Profile"
|
1707 |
msgstr "プロフィール"
|
1708 |
|
1709 |
#: dist/plugins/other_widget/widget-profile.php:14
|
1710 |
+
#: inc/other_widget/widget-profile.php:14
|
1711 |
msgid "Displays a your profile"
|
1712 |
msgstr ""
|
1713 |
"ブログのサイドバーに運営者情報を表示したり、フッターに企業情報を表示します。"
|
1714 |
|
1715 |
#: dist/plugins/other_widget/widget-profile.php:40
|
1716 |
+
#: inc/other_widget/widget-profile.php:40
|
1717 |
msgid "Profile Text"
|
1718 |
msgstr "プロフィールテキスト"
|
1719 |
|
1720 |
#: dist/plugins/other_widget/widget-profile.php:60
|
1721 |
+
#: inc/other_widget/widget-profile.php:60
|
1722 |
msgid "Select Profile image:"
|
1723 |
msgstr "プロフィール用画像を選択"
|
1724 |
|
1725 |
#: dist/plugins/other_widget/widget-profile.php:79
|
1726 |
+
#: inc/other_widget/widget-profile.php:79
|
1727 |
msgid "Cut out round the image."
|
1728 |
msgstr "画像を丸く切り抜いて表示する"
|
1729 |
|
1730 |
#: dist/plugins/other_widget/widget-profile.php:83
|
1731 |
+
#: inc/other_widget/widget-profile.php:83
|
1732 |
msgid "Media size (Optional)"
|
1733 |
msgstr "画像の大きさ( 任意 )"
|
1734 |
|
1735 |
#: dist/plugins/other_widget/widget-profile.php:93
|
1736 |
+
#: inc/other_widget/widget-profile.php:93
|
1737 |
msgid "Align left"
|
1738 |
msgstr "画像左揃え"
|
1739 |
|
1740 |
#: dist/plugins/other_widget/widget-profile.php:96
|
1741 |
+
#: inc/other_widget/widget-profile.php:96
|
1742 |
msgid "Align center"
|
1743 |
msgstr "画像中央揃え"
|
1744 |
|
1745 |
#: dist/plugins/other_widget/widget-profile.php:100
|
1746 |
+
#: inc/other_widget/widget-profile.php:100
|
1747 |
msgid "Text float to image."
|
1748 |
msgstr "テキストを画像に回りこませる"
|
1749 |
|
1750 |
#: dist/plugins/other_widget/widget-profile.php:104
|
1751 |
+
#: inc/other_widget/widget-profile.php:104
|
1752 |
msgid "Profile Text:"
|
1753 |
msgstr "プロフィールテキスト"
|
1754 |
|
1755 |
#: dist/plugins/other_widget/widget-profile.php:108
|
1756 |
+
#: inc/other_widget/widget-profile.php:108
|
1757 |
msgid "Facebook URL:"
|
1758 |
msgstr "Facebook リンク先ページのURL"
|
1759 |
|
1760 |
#: dist/plugins/other_widget/widget-profile.php:113
|
1761 |
+
#: inc/other_widget/widget-profile.php:113
|
1762 |
msgid "Twitter URL:"
|
1763 |
msgstr "twitterリンク先ページのURL"
|
1764 |
|
1765 |
#: dist/plugins/other_widget/widget-profile.php:118
|
1766 |
+
#: inc/other_widget/widget-profile.php:118
|
1767 |
msgid "Email Address:"
|
1768 |
msgstr "Email リンク先ページのURL"
|
1769 |
|
1770 |
#: dist/plugins/other_widget/widget-profile.php:123
|
1771 |
+
#: inc/other_widget/widget-profile.php:123
|
1772 |
msgid "Youtube URL:"
|
1773 |
msgstr "Youtube リンク先ページのURL"
|
1774 |
|
1775 |
#: dist/plugins/other_widget/widget-profile.php:128
|
1776 |
+
#: inc/other_widget/widget-profile.php:128
|
1777 |
msgid "RSS URL:"
|
1778 |
msgstr "RSS リンク先ページのURL"
|
1779 |
|
1780 |
#: dist/plugins/other_widget/widget-profile.php:133
|
1781 |
+
#: inc/other_widget/widget-profile.php:133
|
1782 |
msgid "instagram URL:"
|
1783 |
msgstr "instagram リンク先ページのURL"
|
1784 |
|
1785 |
#: dist/plugins/other_widget/widget-profile.php:137
|
1786 |
+
#: inc/other_widget/widget-profile.php:137
|
1787 |
msgid "linkedin URL:"
|
1788 |
msgstr "linkedin リンク先ページのURL"
|
1789 |
|
1790 |
#: dist/plugins/other_widget/widget-profile.php:153
|
1791 |
+
#: inc/other_widget/widget-profile.php:153
|
1792 |
msgid ""
|
1793 |
"* When \"Icon Background: Fill\" is selected and \"Icon color\" is not "
|
1794 |
"specified, each brand color will be painted."
|
1797 |
"きは各ブランドカラーで塗りつぶしされます。"
|
1798 |
|
1799 |
#: dist/plugins/other_widget/widget-side-child-page-list.php:12
|
1800 |
+
#: inc/other_widget/widget-side-child-page-list.php:12
|
1801 |
msgid "child pages list"
|
1802 |
msgstr "子ページのリスト"
|
1803 |
|
1804 |
#: dist/plugins/other_widget/widget-side-child-page-list.php:17
|
1805 |
+
#: inc/other_widget/widget-side-child-page-list.php:17
|
1806 |
msgid "Displays list of child page for the current page."
|
1807 |
msgstr "表示しているページの先祖階層からの子ページリストを表示します。"
|
1808 |
|
1809 |
#: dist/plugins/other_widget/widget-taxonomies.php:10
|
1810 |
+
#: inc/other_widget/widget-taxonomies.php:10
|
1811 |
msgid "Categories/Custom taxonomies list"
|
1812 |
msgstr "カテゴリー/カスタム分類リスト"
|
1813 |
|
1814 |
#: dist/plugins/other_widget/widget-taxonomies.php:15
|
1815 |
+
#: inc/other_widget/widget-taxonomies.php:15
|
1816 |
msgid "Displays a categories and custom taxonomies list."
|
1817 |
msgstr "カテゴリーやカスタム分類のリストを表示します。"
|
1818 |
|
1819 |
#: dist/plugins/other_widget/widget-taxonomies.php:71
|
1820 |
+
#: inc/other_widget/widget-taxonomies.php:71
|
1821 |
msgid "Label to display"
|
1822 |
msgstr "表示するラベル"
|
1823 |
|
1824 |
#: dist/plugins/other_widget/widget-taxonomies.php:75
|
1825 |
+
#: inc/other_widget/widget-taxonomies.php:75
|
1826 |
msgid "Display page"
|
1827 |
msgstr "ページを表示"
|
1828 |
|
1829 |
#: dist/plugins/other_widget/widget-taxonomies.php:94
|
1830 |
+
#: inc/other_widget/widget-taxonomies.php:94
|
1831 |
msgid "Do not display terms without posts"
|
1832 |
msgstr "投稿のない分類項目を表示しない"
|
1833 |
|
1834 |
#: dist/plugins/other_widget/widget-taxonomies.php:106
|
1835 |
+
#: inc/other_widget/widget-taxonomies.php:106
|
1836 |
msgid "Blog"
|
1837 |
msgstr "ブログ"
|
1838 |
|
1839 |
#: dist/plugins/other_widget/widget-taxonomies.php:111
|
1840 |
#: dist/plugins/template-tags/template-tags.php:157
|
1841 |
+
#: inc/other_widget/widget-taxonomies.php:111
|
1842 |
+
#: inc/template-tags/template-tags.php:157
|
1843 |
msgid "Archives"
|
1844 |
msgstr "アーカイブ"
|
1845 |
|
1846 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:22
|
1847 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:23
|
1848 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:65
|
1849 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:22
|
1850 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:23
|
1851 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:65
|
1852 |
msgid "Custom Post Type Setting"
|
1853 |
msgstr "カスタム投稿タイプ設定"
|
1854 |
|
1855 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:88
|
1856 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:88
|
1857 |
msgid "Post Type ID(Required)"
|
1858 |
msgstr "投稿タイプID(必須)"
|
1859 |
|
1860 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:89
|
1861 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:89
|
1862 |
msgid "20 characters or less in alphanumeric"
|
1863 |
msgstr "半角英数字20文字以内で入力ください"
|
1864 |
|
1865 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:94
|
1866 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:94
|
1867 |
msgid "title"
|
1868 |
msgstr "タイトル"
|
1869 |
|
1870 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:95
|
1871 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:95
|
1872 |
msgid "editor"
|
1873 |
msgstr "本文"
|
1874 |
|
1875 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:96
|
1876 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:96
|
1877 |
msgid "author"
|
1878 |
msgstr "投稿者"
|
1879 |
|
1880 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:97
|
1881 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:97
|
1882 |
msgid "thumbnail"
|
1883 |
msgstr "アイキャッチ画像"
|
1884 |
|
1885 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:98
|
1886 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:98
|
1887 |
msgid "excerpt"
|
1888 |
msgstr "抜粋"
|
1889 |
|
1890 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:99
|
1891 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:99
|
1892 |
msgid "comments"
|
1893 |
msgstr "コメント"
|
1894 |
|
1895 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:100
|
1896 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:100
|
1897 |
msgid "revisions"
|
1898 |
msgstr "リビジョン"
|
1899 |
|
1900 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:105
|
1901 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:105
|
1902 |
msgid "Supports(Required)"
|
1903 |
msgstr "有効にする項目(必須)"
|
1904 |
|
1905 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:118
|
1906 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:118
|
1907 |
msgid "Menu position(optional)"
|
1908 |
msgstr "メニューの位置( 任意 )"
|
1909 |
|
1910 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:119
|
1911 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:119
|
1912 |
msgid "Please enter a number."
|
1913 |
msgstr "数字を入力してください。数字が小さいほど上に表示されます。"
|
1914 |
|
1915 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:126
|
1916 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:126
|
1917 |
msgid "Export to REST API(optional)"
|
1918 |
msgstr "REST API に出力する( 任意 )"
|
1919 |
|
1920 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:138
|
1921 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:138
|
1922 |
msgid "Export to REST API"
|
1923 |
msgstr "REST API に出力する"
|
1924 |
|
1925 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:143
|
1926 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:143
|
1927 |
msgid "Custom taxonomies(optional)"
|
1928 |
msgstr "カスタム分類(任意)"
|
1929 |
|
1930 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:146
|
1931 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:146
|
1932 |
msgid "Custom taxonomy is like a category in post."
|
1933 |
msgstr "カスタム分類とは投稿で言うカテゴリーです。"
|
1934 |
|
1935 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:147
|
1936 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:147
|
1937 |
msgid ""
|
1938 |
"However, it refers to the \"category\" itself, not to the “item” of the "
|
1939 |
"category."
|
1940 |
msgstr "しかし、カテゴリーの”項目”ではなく、”カテゴリー”そのものを指します。"
|
1941 |
|
1942 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:148
|
1943 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:148
|
1944 |
msgid ""
|
1945 |
"For example, if you create a post type \"construction result\", Custom "
|
1946 |
"taxonomy will be \"construction type\", \"construction area\", etc."
|
1949 |
"プ」「施工地域」等になります。"
|
1950 |
|
1951 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:172
|
1952 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:172
|
1953 |
msgid "Custon taxonomy name(slug)"
|
1954 |
msgstr "カスタム分類名(スラッグ)"
|
1955 |
|
1956 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:176
|
1957 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:176
|
1958 |
msgid "* Please be sure to enter it with one-byte alphanumeric characters"
|
1959 |
msgstr "※ 必ず半角英数字にて入力してください"
|
1960 |
|
1961 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:182
|
1962 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:182
|
1963 |
msgid "Custon taxonomy label"
|
1964 |
msgstr "カスタム分類名(表示名)"
|
1965 |
|
1966 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:189
|
1967 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:189
|
1968 |
msgid "Hierarchy"
|
1969 |
msgstr "階層"
|
1970 |
|
1971 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:190
|
1972 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:190
|
1973 |
msgid "Make it a tag (do not hierarchize)"
|
1974 |
msgstr "タグにする(階層化しない)"
|
1975 |
|
1976 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:199
|
1977 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:199
|
1978 |
msgid "REST API(optional)"
|
1979 |
msgstr "REST API ( 任意 )"
|
1980 |
|
1981 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:200
|
1982 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:200
|
1983 |
msgid "Use for REST API"
|
1984 |
msgstr "REST API に利用する"
|
1985 |
|
1986 |
#: dist/plugins/post-type-manager/class.post-type-manager.php:262
|
1987 |
+
#: inc/post-type-manager/package/class.post-type-manager.php:262
|
1988 |
#, php-format
|
1989 |
msgid ""
|
1990 |
"Please save a <a href=\"%s\">permanent link configuration</a> After updating "
|
1993 |
"設定を更新したら<a href=\"%s\">パーマリンク設定</a>を保存してください。"
|
1994 |
|
1995 |
#: dist/plugins/related_posts/related_posts.php:210 dist/veu-packages.php:339
|
1996 |
+
#: inc/related_posts/related_posts.php:210 veu-packages.php:299
|
1997 |
msgid "Related posts"
|
1998 |
msgstr "関連記事を表示"
|
1999 |
|
2000 |
#: dist/plugins/related_posts/related_posts.php:244
|
2001 |
+
#: inc/related_posts/related_posts.php:244
|
2002 |
msgid "Related Settings"
|
2003 |
msgstr "関連記事設定"
|
2004 |
|
2005 |
#: dist/plugins/sitemap_page/hide-controller.php:17
|
|
|
2006 |
msgid "Site Map Hide"
|
2007 |
msgstr "サイトマップ非表示設定"
|
2008 |
|
2009 |
#: dist/plugins/sitemap_page/hide-controller.php:46
|
|
|
2010 |
msgid "Don't display on Sitemap."
|
2011 |
msgstr "サイトマップに表示しない"
|
2012 |
|
2013 |
#: dist/plugins/sitemap_page/sitemap_admin.php:9
|
2014 |
+
#: inc/sitemap-page/sitemap-page-admin-main-setting.php:39
|
2015 |
msgid "HTML Sitemap Settings"
|
2016 |
msgstr "HTMLサイトマップ設定"
|
2017 |
|
2018 |
#: dist/plugins/sitemap_page/sitemap_admin.php:13
|
2019 |
+
#: inc/sitemap-page/sitemap-page-admin-main-setting.php:43
|
2020 |
msgid "Exclude page Settings"
|
2021 |
msgstr "除外ページ設定"
|
2022 |
|
2023 |
#: dist/plugins/sitemap_page/sitemap_admin.php:15
|
2024 |
+
#: inc/sitemap-page/sitemap-page-admin-main-setting.php:45
|
2025 |
msgid "Input you want to exclude page id."
|
2026 |
msgstr "HTMLサイトマップから除外したい固定ページのIDを入力してください。"
|
2027 |
|
2028 |
#: dist/plugins/sitemap_page/sitemap_admin.php:17
|
2029 |
+
#: inc/sitemap-page/sitemap-page-admin-main-setting.php:47
|
2030 |
msgid ""
|
2031 |
"* Please enter separated by \",\"(commas) if there is more than one page ID "
|
2032 |
"that you want to exclude."
|
2033 |
msgstr "複数のページを除外する場合は , (コンマ)で区切って入力してください。"
|
2034 |
|
2035 |
#: dist/plugins/sitemap_page/sitemap_page.php:34
|
2036 |
+
#: inc/sitemap-page/sitemap-page-admin-main-setting.php:8
|
2037 |
msgid "HTML Sitemap"
|
2038 |
msgstr "HTMLサイトマップ"
|
2039 |
|
2040 |
#: dist/plugins/sitemap_page/sitemap_page.php:261
|
2041 |
+
#: inc/sitemap-page/sitemap-page.php:217
|
2042 |
msgid "Display a HTML sitemap"
|
2043 |
msgstr "HTMLサイトマップの表示"
|
2044 |
|
2045 |
+
#: dist/plugins/sns/function_follow.php:25 inc/sns/function_follow.php:25
|
2046 |
msgid "Follow me"
|
2047 |
msgstr "このサイトをフォローする"
|
2048 |
|
2049 |
+
#: dist/plugins/sns/function_follow.php:73 inc/sns/function_follow.php:73
|
2050 |
msgid "Edit follow button"
|
2051 |
msgstr "Follow me box の編集"
|
2052 |
|
2053 |
#: dist/plugins/sns/function_meta_box.php:29
|
2054 |
+
#, fuzzy
|
2055 |
+
#| msgid "SNS Title"
|
2056 |
msgid "Sns Title"
|
2057 |
msgstr "OGPタイトル"
|
2058 |
|
2059 |
#: dist/plugins/sns/function_meta_box.php:40
|
2060 |
+
#: inc/sns/class-veu-metabox-sns-title.php:32
|
2061 |
msgid "if filled this area then override title of OGP and Twitter Card"
|
2062 |
msgstr ""
|
2063 |
"このエリアにタイトルを入力すると、このページのOGP,ツイッターカードに出力され"
|
2064 |
"るタイトルを上書きすることができます"
|
2065 |
|
2066 |
+
#: dist/plugins/sns/hide_controller.php:28
|
2067 |
msgid "Share bottons"
|
2068 |
msgstr "ソーシャルボタン"
|
2069 |
|
2070 |
+
#: dist/plugins/sns/hide_controller.php:72
|
2071 |
+
#: inc/sns/class-veu-metabox-sns-button.php:38
|
2072 |
msgid "This post type is not set to display the share button."
|
2073 |
msgstr "この投稿タイプはシェアボタンを表示するように設定されていません。"
|
2074 |
|
2075 |
+
#: dist/plugins/sns/hide_controller.php:93
|
2076 |
+
#: inc/sns/class-veu-metabox-sns-button.php:49
|
2077 |
msgid "Don't display share bottons."
|
2078 |
msgstr "ソーシャルボタンを表示しない"
|
2079 |
|
2080 |
+
#: dist/plugins/sns/sns.php:21 inc/sns/sns.php:19
|
2081 |
msgid "SNS"
|
2082 |
msgstr "SNS"
|
2083 |
|
2084 |
+
#: dist/plugins/sns/sns.php:156 inc/sns/sns.php:154
|
2085 |
msgctxt "facebook language code"
|
2086 |
msgid "en_US"
|
2087 |
msgstr "ja_JP"
|
2088 |
|
2089 |
+
#: dist/plugins/sns/sns_admin.php:1 dist/plugins/sns/sns_customizer.php:22
|
2090 |
+
#: inc/sns/sns_admin.php:1 inc/sns/sns_customizer.php:22
|
2091 |
msgid "SNS Settings"
|
2092 |
msgstr "SNS設定"
|
2093 |
|
2094 |
+
#: dist/plugins/sns/sns_admin.php:14 dist/plugins/sns/sns_customizer.php:36
|
2095 |
+
#: inc/sns/sns_admin.php:14 inc/sns/sns_customizer.php:36
|
2096 |
msgid "Post title custom for SNS"
|
2097 |
msgstr "OGPなどの投稿タイトルの変更"
|
2098 |
|
2099 |
+
#: dist/plugins/sns/sns_admin.php:16 dist/plugins/sns/sns_customizer.php:58
|
2100 |
+
#: inc/sns/sns_admin.php:16 inc/sns/sns_customizer.php:58
|
2101 |
msgid "For SNS title be composed by post title only."
|
2102 |
msgstr "投稿タイトルだけにする(サイトタイトルなど含めない)。"
|
2103 |
|
2104 |
+
#: dist/plugins/sns/sns_admin.php:20 inc/sns/sns_admin.php:20
|
2105 |
msgid "facebook application ID"
|
2106 |
msgstr "facebookアプリケーションID"
|
2107 |
|
2108 |
+
#: dist/plugins/sns/sns_admin.php:22 inc/sns/sns_admin.php:22
|
2109 |
msgid "I will check and get the application ID"
|
2110 |
msgstr "アプリケーションIDを確認・取得する "
|
2111 |
|
2112 |
+
#: dist/plugins/sns/sns_admin.php:23 inc/sns/sns_admin.php:23
|
2113 |
msgid ""
|
2114 |
"* If an application ID is not specified, neither a Like button nor the "
|
2115 |
"comment field displays and operates correctly."
|
2117 |
"※アプリケーションIDを入力しないとボタンやコメント欄が表示・正しく動作しませ"
|
2118 |
"ん。"
|
2119 |
|
2120 |
+
#: dist/plugins/sns/sns_admin.php:24 inc/sns/sns_admin.php:24
|
2121 |
msgid ""
|
2122 |
"Please search for terms as [get Facebook application ID] If you do not know "
|
2123 |
"much about how to get application ID for Facebook."
|
2125 |
"facebookのアプリケーションIDの取得方法についてよくわからない場合は「facebook "
|
2126 |
"アプリケーションID 取得」などで検索して下さい。"
|
2127 |
|
2128 |
+
#: dist/plugins/sns/sns_admin.php:28 inc/sns/sns_admin.php:28
|
2129 |
msgid "facebook page URL"
|
2130 |
msgstr "FacebookページURL"
|
2131 |
|
2132 |
+
#: dist/plugins/sns/sns_admin.php:33 dist/plugins/sns/sns_customizer.php:141
|
2133 |
+
#: inc/sns/sns_admin.php:33 inc/sns/sns_customizer.php:141
|
2134 |
msgid "OG default image"
|
2135 |
msgstr "デフォルトのOGPイメージ"
|
2136 |
|
2137 |
+
#: dist/plugins/sns/sns_admin.php:34 inc/sns/sns_admin.php:34
|
2138 |
msgid ""
|
2139 |
"If, for example someone pressed the Facebook [Like] button, this is the "
|
2140 |
"image that appears on the Facebook timeline."
|
2142 |
"Facebookの「いいね!」ボタンを押した際、ここで設定した画像が Facebook のタイ"
|
2143 |
"ムラインに表示されます。"
|
2144 |
|
2145 |
+
#: dist/plugins/sns/sns_admin.php:35 inc/sns/sns_admin.php:35
|
2146 |
msgid "If a featured image is specified for the page, it takes precedence."
|
2147 |
msgstr ""
|
2148 |
"ページにアイキャッチ画像が指定されている場合は、アイキャッチ画像が優先されま"
|
2149 |
"す。"
|
2150 |
|
2151 |
+
#: dist/plugins/sns/sns_admin.php:37 inc/sns/sns_admin.php:37
|
2152 |
msgid "Select an image"
|
2153 |
msgstr "画像を選択"
|
2154 |
|
2155 |
+
#: dist/plugins/sns/sns_admin.php:39 inc/sns/sns_admin.php:39
|
2156 |
msgid ""
|
2157 |
"* Picture sizes are 1280x720 pixels or more and picture ratio 16:9 is "
|
2158 |
"recommended."
|
2159 |
msgstr "画像サイズ 橫 1280px 縦 720px 以上、画像比率 16:9 を推奨します。"
|
2160 |
|
2161 |
+
#: dist/plugins/sns/sns_admin.php:43 inc/sns/sns_admin.php:43
|
2162 |
msgid "twitter ID"
|
2163 |
msgstr "twitterアカウント"
|
2164 |
|
2165 |
+
#: dist/plugins/sns/sns_admin.php:48 inc/sns/sns_admin.php:48
|
2166 |
msgid "OG tags"
|
2167 |
msgstr "OGタグ"
|
2168 |
|
2169 |
+
#: dist/plugins/sns/sns_admin.php:50 dist/plugins/sns/sns_customizer.php:180
|
2170 |
+
#: inc/sns/sns_admin.php:50 inc/sns/sns_customizer.php:180
|
2171 |
msgid "Print the OG tags"
|
2172 |
msgstr "OGタグを出力する"
|
2173 |
|
2174 |
+
#: dist/plugins/sns/sns_admin.php:51 dist/plugins/sns/sns_customizer.php:184
|
2175 |
+
#: inc/sns/sns_admin.php:51 inc/sns/sns_customizer.php:184
|
2176 |
msgid ""
|
2177 |
"If other plug-ins are used for the OG, do not output the OG using this "
|
2178 |
"plugin."
|
2180 |
"OGタグの出力を選択して下さい。もし他のプラグインやテーマでOGタグを出力してい"
|
2181 |
"る場合は、このプラグインでの出力は必要ありません。"
|
2182 |
|
2183 |
+
#: dist/plugins/sns/sns_admin.php:56 dist/plugins/sns/sns_customizer.php:243
|
2184 |
+
#: inc/sns/sns_admin.php:56 inc/sns/sns_customizer.php:243
|
2185 |
msgid "Twitter Card tags"
|
2186 |
msgstr "Twitterカードタグ"
|
2187 |
|
2188 |
+
#: dist/plugins/sns/sns_admin.php:58 dist/plugins/sns/sns_customizer.php:247
|
2189 |
+
#: inc/sns/sns_admin.php:58 inc/sns/sns_customizer.php:247
|
2190 |
msgid "Print the Twitter Card tags"
|
2191 |
msgstr "Twitter カードタグを html head 内へ出力します。"
|
2192 |
|
2193 |
+
#: dist/plugins/sns/sns_admin.php:63 dist/plugins/sns/sns_customizer.php:260
|
2194 |
+
#: inc/sns/sns_admin.php:63 inc/sns/sns_customizer.php:260
|
2195 |
msgid "Social bookmark buttons"
|
2196 |
msgstr "ソーシャルボタン"
|
2197 |
|
2198 |
+
#: dist/plugins/sns/sns_admin.php:64 dist/plugins/sns/sns_customizer.php:283
|
2199 |
+
#: inc/sns/sns_admin.php:64 inc/sns/sns_customizer.php:283
|
2200 |
msgid "Print the social bookmark buttons"
|
2201 |
msgstr "ソーシャルブックマーク(シェアボタンやtweetボタン)を表示します。"
|
2202 |
|
2203 |
+
#: dist/plugins/sns/sns_admin.php:67 dist/plugins/sns/sns_customizer.php:409
|
2204 |
+
#: inc/sns/sns_admin.php:67 inc/sns/sns_customizer.php:409
|
2205 |
msgid "Exclude Post Types"
|
2206 |
msgstr "シェアボタンを表示しない投稿タイプ"
|
2207 |
|
2208 |
+
#: dist/plugins/sns/sns_admin.php:80 inc/sns/sns_admin.php:80
|
2209 |
msgid "Exclude Post ID"
|
2210 |
msgstr "シェアボタンを表示しない投稿のID"
|
2211 |
|
2212 |
+
#: dist/plugins/sns/sns_admin.php:90 inc/sns/sns_admin.php:90
|
2213 |
msgid ""
|
2214 |
"if you need filtering by post_ID, add the ignore post_ID separate by \",\"."
|
2215 |
msgstr ""
|
2216 |
"特定のポストのみSNSボタンを表示したくない場合、カンマ(,)区切りでポストIDを入"
|
2217 |
"力します。"
|
2218 |
|
2219 |
+
#: dist/plugins/sns/sns_admin.php:94 inc/sns/sns_admin.php:94
|
2220 |
msgid "example"
|
2221 |
msgstr "例"
|
2222 |
|
2223 |
+
#: dist/plugins/sns/sns_admin.php:103 dist/plugins/sns/sns_customizer.php:452
|
2224 |
+
#: inc/sns/sns_admin.php:103 inc/sns/sns_customizer.php:452
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2225 |
msgid "Share button for display"
|
2226 |
msgstr "表示するボタン"
|
2227 |
|
2228 |
+
#: dist/plugins/sns/sns_admin.php:111 inc/sns/sns_admin.php:111
|
2229 |
msgid "Facebook"
|
2230 |
msgstr "Facebook"
|
2231 |
|
2232 |
+
#: dist/plugins/sns/sns_admin.php:117 dist/plugins/sns/sns_customizer.php:493
|
2233 |
+
#: dist/plugins/sns/widget-twitter.php:9 inc/sns/sns_admin.php:117
|
2234 |
+
#: inc/sns/sns_customizer.php:493 inc/sns/widget-twitter.php:9
|
2235 |
msgid "Twitter"
|
2236 |
msgstr "Twitter"
|
2237 |
|
2238 |
+
#: dist/plugins/sns/sns_admin.php:123 dist/plugins/sns/sns_customizer.php:514
|
2239 |
+
#: inc/sns/sns_admin.php:123 inc/sns/sns_customizer.php:514
|
2240 |
msgid "Hatena"
|
2241 |
msgstr "はてな"
|
2242 |
|
2243 |
+
#: dist/plugins/sns/sns_admin.php:129 dist/plugins/sns/sns_customizer.php:535
|
2244 |
+
#: inc/sns/sns_admin.php:129 inc/sns/sns_customizer.php:535
|
2245 |
msgid "Pocket"
|
2246 |
msgstr "Pocket"
|
2247 |
|
2248 |
+
#: dist/plugins/sns/sns_admin.php:135 dist/plugins/sns/sns_customizer.php:556
|
2249 |
+
#: inc/sns/sns_admin.php:135 inc/sns/sns_customizer.php:556
|
2250 |
msgid "LINE (mobile only)"
|
2251 |
msgstr "LINE (mobile only)"
|
2252 |
|
2253 |
+
#: dist/plugins/sns/sns_admin.php:141 dist/plugins/sns/sns_customizer.php:355
|
2254 |
+
#: inc/sns/sns_admin.php:141 inc/sns/sns_customizer.php:355
|
2255 |
+
msgid "Share button display Position"
|
2256 |
+
msgstr "シェアボタンの表示位置"
|
2257 |
+
|
2258 |
+
#: dist/plugins/sns/sns_admin.php:149 dist/plugins/sns/sns_customizer.php:374
|
2259 |
+
#: inc/sns/sns_admin.php:149 inc/sns/sns_customizer.php:374
|
2260 |
+
msgid "Before content"
|
2261 |
+
msgstr "本文の前"
|
2262 |
+
|
2263 |
+
#: dist/plugins/sns/sns_admin.php:155 dist/plugins/sns/sns_customizer.php:394
|
2264 |
+
#: inc/sns/sns_admin.php:155 inc/sns/sns_customizer.php:394
|
2265 |
+
msgid "After content"
|
2266 |
+
msgstr "本文の後"
|
2267 |
+
|
2268 |
+
#: dist/plugins/sns/sns_admin.php:161 dist/plugins/sns/sns_customizer.php:571
|
2269 |
+
#: inc/sns/sns_admin.php:161 inc/sns/sns_customizer.php:571
|
2270 |
+
msgid "Follow me box"
|
2271 |
+
msgstr "Follow me box"
|
2272 |
+
|
2273 |
+
#: dist/plugins/sns/sns_admin.php:162 dist/plugins/sns/sns_customizer.php:593
|
2274 |
+
#: inc/sns/sns_admin.php:162 inc/sns/sns_customizer.php:593
|
2275 |
+
msgid "Print the Follow me box"
|
2276 |
+
msgstr "Follow me ユニットを本文の下に表示する"
|
2277 |
+
|
2278 |
+
#: dist/plugins/sns/sns_admin.php:164 dist/plugins/sns/sns_customizer.php:613
|
2279 |
+
#: inc/sns/sns_admin.php:164 inc/sns/sns_customizer.php:613
|
2280 |
+
msgid "Follow me box title"
|
2281 |
+
msgstr "Follow me box の見出しテキスト"
|
2282 |
+
|
2283 |
+
#: dist/plugins/sns/sns_customizer.php:74 inc/sns/sns_customizer.php:74
|
2284 |
msgid "Facebook Settings"
|
2285 |
msgstr "Facebook 設定"
|
2286 |
|
2287 |
+
#: dist/plugins/sns/sns_customizer.php:97 inc/sns/sns_customizer.php:97
|
2288 |
msgid "Facebook application ID"
|
2289 |
msgstr "facebookアプリケーションID"
|
2290 |
|
2291 |
+
#: dist/plugins/sns/sns_customizer.php:118 inc/sns/sns_customizer.php:118
|
2292 |
msgid "Facebook Page URL"
|
2293 |
msgstr "FacebookページURL"
|
2294 |
|
2295 |
+
#: dist/plugins/sns/sns_customizer.php:144 inc/sns/sns_customizer.php:144
|
2296 |
msgid ""
|
2297 |
"If, for example someone pressed the Facebook [Like] button, this is the "
|
2298 |
"image that appears on the Facebook timeline.<br>If a featured image is "
|
2304 |
"アイキャッチ画像が優先されます。<br>画像サイズ 橫 1280px 縦 720px 以上、画像"
|
2305 |
"比率 16:9 程度を推奨します。"
|
2306 |
|
2307 |
+
#: dist/plugins/sns/sns_customizer.php:157 inc/sns/sns_customizer.php:157
|
2308 |
msgid "OG Settings"
|
2309 |
msgstr "OG 設定"
|
2310 |
|
2311 |
+
#: dist/plugins/sns/sns_customizer.php:196 inc/sns/sns_customizer.php:196
|
2312 |
msgid "Twitter Settings"
|
2313 |
msgstr "Twitter 設定"
|
2314 |
|
2315 |
+
#: dist/plugins/sns/sns_customizer.php:219 inc/sns/sns_customizer.php:219
|
2316 |
#, fuzzy
|
2317 |
#| msgid "twitter ID"
|
2318 |
msgid "Twitter ID"
|
2319 |
msgstr "twitterアカウント"
|
2320 |
|
2321 |
+
#: dist/plugins/sns/sns_customizer.php:298 inc/sns/sns_customizer.php:298
|
2322 |
msgid "Social button style setting"
|
2323 |
msgstr "ソーシャルボタンのスタイル設定"
|
2324 |
|
2325 |
+
#: dist/plugins/sns/sns_customizer.php:340 inc/sns/sns_customizer.php:340
|
2326 |
msgid "Btn color"
|
2327 |
msgstr "ボタンの色:"
|
2328 |
|
2329 |
+
#: dist/plugins/sns/sns_customizer.php:472 inc/sns/sns_customizer.php:472
|
2330 |
#, fuzzy
|
2331 |
#| msgid "Facebook URL:"
|
2332 |
msgid "Facebook "
|
2333 |
msgstr "Facebook リンク先ページのURL"
|
2334 |
|
2335 |
#: dist/plugins/sns/widget-fb-page-plugin.php:13
|
2336 |
+
#: inc/sns/widget-fb-page-plugin.php:13
|
2337 |
msgid "Displays a Facebook Page Plugin"
|
2338 |
msgstr "Facebook ページプラグインを表示します。"
|
2339 |
|
2340 |
#: dist/plugins/sns/widget-fb-page-plugin.php:89
|
2341 |
+
#: inc/sns/widget-fb-page-plugin.php:89
|
2342 |
msgid "Height"
|
2343 |
msgstr "高さ"
|
2344 |
|
2345 |
#: dist/plugins/sns/widget-fb-page-plugin.php:94
|
2346 |
+
#: inc/sns/widget-fb-page-plugin.php:94
|
2347 |
msgid "Show Friend's Faces"
|
2348 |
msgstr "アイコンを表示する"
|
2349 |
|
2350 |
#: dist/plugins/sns/widget-fb-page-plugin.php:99
|
2351 |
+
#: inc/sns/widget-fb-page-plugin.php:99
|
2352 |
msgid "Hide Cover Photo"
|
2353 |
msgstr "カバー画像を表示しない"
|
2354 |
|
2355 |
#: dist/plugins/sns/widget-fb-page-plugin.php:104
|
2356 |
+
#: inc/sns/widget-fb-page-plugin.php:104
|
2357 |
msgid "Show Page Posts"
|
2358 |
msgstr "タイムラインを表示"
|
2359 |
|
2360 |
+
#: dist/plugins/sns/widget-twitter.php:13 inc/sns/widget-twitter.php:13
|
2361 |
msgid "Display Twitter timeline."
|
2362 |
msgstr "Twitter のタイムラインを表示します。"
|
2363 |
|
2364 |
+
#: dist/plugins/sns/widget-twitter.php:89 inc/sns/widget-twitter.php:89
|
2365 |
msgid "Account:<br>Please enter your Twitter account."
|
2366 |
msgstr "アカウント:<br>Twitter アカウントを入力してください。"
|
2367 |
|
2368 |
+
#: dist/plugins/sns/widget-twitter.php:90 inc/sns/widget-twitter.php:90
|
2369 |
msgid "@"
|
2370 |
msgstr "@"
|
2371 |
|
2372 |
+
#: dist/plugins/sns/widget-twitter.php:94 inc/sns/widget-twitter.php:94
|
2373 |
msgid "Height:<br>Please enter an arbitrary number.(Example: 300)"
|
2374 |
msgstr "高さ:<br>任意の数値を入力してください(例:300)"
|
2375 |
|
2376 |
+
#: dist/plugins/sns/widget-twitter.php:99 inc/sns/widget-twitter.php:99
|
2377 |
msgid "Background color:"
|
2378 |
msgstr "背景の色:"
|
2379 |
|
2380 |
+
#: dist/plugins/sns/widget-twitter.php:122 inc/sns/widget-twitter.php:122
|
2381 |
msgid "Link color:"
|
2382 |
msgstr "リンクの色:"
|
2383 |
|
2384 |
#: dist/plugins/template-tags/template-tags.php:116
|
2385 |
+
#: inc/template-tags/template-tags.php:116
|
2386 |
#, php-format
|
2387 |
msgid "Author: %s"
|
2388 |
msgstr "著者: %s"
|
2389 |
|
2390 |
#: dist/plugins/template-tags/template-tags.php:118
|
2391 |
#: dist/plugins/template-tags/template-tags.php:200
|
2392 |
+
#: inc/template-tags/template-tags.php:118
|
2393 |
+
#: inc/template-tags/template-tags.php:200
|
2394 |
msgctxt "yearly archives date format"
|
2395 |
msgid "Y"
|
2396 |
msgstr "Y年"
|
2397 |
|
2398 |
#: dist/plugins/template-tags/template-tags.php:120
|
2399 |
#: dist/plugins/template-tags/template-tags.php:204
|
2400 |
+
#: inc/template-tags/template-tags.php:120
|
2401 |
+
#: inc/template-tags/template-tags.php:204
|
2402 |
msgctxt "monthly archives date format"
|
2403 |
msgid "F Y"
|
2404 |
msgstr "Y年F"
|
2405 |
|
2406 |
#: dist/plugins/template-tags/template-tags.php:122
|
2407 |
+
#: inc/template-tags/template-tags.php:122
|
2408 |
msgctxt "daily archives date format"
|
2409 |
msgid "F j, Y"
|
2410 |
msgstr "Y年Fj日"
|
2411 |
|
2412 |
#: dist/plugins/template-tags/template-tags.php:125
|
2413 |
+
#: inc/template-tags/template-tags.php:125
|
2414 |
msgctxt "post format archive title"
|
2415 |
msgid "Asides"
|
2416 |
msgstr "サイド"
|
2417 |
|
2418 |
#: dist/plugins/template-tags/template-tags.php:127
|
2419 |
+
#: inc/template-tags/template-tags.php:127
|
2420 |
msgctxt "post format archive title"
|
2421 |
msgid "Galleries"
|
2422 |
msgstr "ギャラリー"
|
2423 |
|
2424 |
#: dist/plugins/template-tags/template-tags.php:129
|
2425 |
+
#: inc/template-tags/template-tags.php:129
|
2426 |
msgctxt "post format archive title"
|
2427 |
msgid "Images"
|
2428 |
msgstr "画像"
|
2429 |
|
2430 |
#: dist/plugins/template-tags/template-tags.php:131
|
2431 |
+
#: inc/template-tags/template-tags.php:131
|
2432 |
msgctxt "post format archive title"
|
2433 |
msgid "Videos"
|
2434 |
msgstr "ビデオ"
|
2435 |
|
2436 |
#: dist/plugins/template-tags/template-tags.php:133
|
2437 |
+
#: inc/template-tags/template-tags.php:133
|
2438 |
msgctxt "post format archive title"
|
2439 |
msgid "Quotes"
|
2440 |
msgstr "引用"
|
2441 |
|
2442 |
#: dist/plugins/template-tags/template-tags.php:135
|
2443 |
+
#: inc/template-tags/template-tags.php:135
|
2444 |
msgctxt "post format archive title"
|
2445 |
msgid "Links"
|
2446 |
msgstr "リンク"
|
2447 |
|
2448 |
#: dist/plugins/template-tags/template-tags.php:137
|
2449 |
+
#: inc/template-tags/template-tags.php:137
|
2450 |
msgctxt "post format archive title"
|
2451 |
msgid "Statuses"
|
2452 |
msgstr "ステータス"
|
2453 |
|
2454 |
#: dist/plugins/template-tags/template-tags.php:139
|
2455 |
+
#: inc/template-tags/template-tags.php:139
|
2456 |
msgctxt "post format archive title"
|
2457 |
msgid "Audio"
|
2458 |
msgstr "オーディオ"
|
2459 |
|
2460 |
#: dist/plugins/template-tags/template-tags.php:141
|
2461 |
+
#: inc/template-tags/template-tags.php:141
|
2462 |
msgctxt "post format archive title"
|
2463 |
msgid "Chats"
|
2464 |
msgstr "チャット"
|
2465 |
|
2466 |
#: dist/plugins/template-tags/template-tags.php:188
|
2467 |
#: dist/plugins/template-tags/template-tags.php:196
|
2468 |
+
#: inc/template-tags/template-tags.php:188
|
2469 |
+
#: inc/template-tags/template-tags.php:196
|
2470 |
#, php-format
|
2471 |
msgid "About %s"
|
2472 |
msgstr "%s について"
|
2473 |
|
2474 |
#: dist/plugins/template-tags/template-tags.php:201
|
2475 |
+
#: inc/template-tags/template-tags.php:201
|
2476 |
#, php-format
|
2477 |
msgctxt "Yearly archive description"
|
2478 |
msgid "Article of %s."
|
2481 |
#: dist/plugins/template-tags/template-tags.php:205
|
2482 |
#: dist/plugins/template-tags/template-tags.php:209
|
2483 |
#: dist/plugins/template-tags/template-tags.php:214
|
2484 |
+
#: inc/template-tags/template-tags.php:205
|
2485 |
+
#: inc/template-tags/template-tags.php:209
|
2486 |
+
#: inc/template-tags/template-tags.php:214
|
2487 |
#, php-format
|
2488 |
msgctxt "Archive description"
|
2489 |
msgid "Article of %s."
|
2490 |
msgstr "%s の記事"
|
2491 |
|
2492 |
#: dist/plugins/template-tags/template-tags.php:231
|
2493 |
+
#: dist/plugins/wp_title.php:59 inc/template-tags/template-tags.php:231
|
2494 |
+
#: inc/wp-title.php:59
|
2495 |
#, php-format
|
2496 |
msgid "Page of %s"
|
2497 |
msgstr "%sページ目"
|
2498 |
|
2499 |
#: dist/plugins/vk-blocks/vk-blocks-functions.php:58
|
2500 |
+
#: inc/vk-blocks/package/vk-blocks-functions.php:58
|
2501 |
msgid "Blocks(Beta)"
|
2502 |
msgstr ""
|
2503 |
|
2504 |
#: dist/plugins/vk-blocks/vk-blocks-functions.php:63
|
2505 |
+
#: inc/vk-blocks/package/vk-blocks-functions.php:63
|
2506 |
msgid "Blocks Layout(Beta)"
|
2507 |
msgstr ""
|
2508 |
|
2509 |
+
#: dist/plugins/wp_title.php:47 inc/wp-title.php:47
|
2510 |
#, php-format
|
2511 |
msgid "Search Results for : %s"
|
2512 |
msgstr "検索結果 : %s"
|
2513 |
|
2514 |
+
#: dist/plugins/wp_title.php:50 inc/wp-title.php:50
|
2515 |
msgid "Not found"
|
2516 |
msgstr "見つかりません"
|
2517 |
|
2518 |
#: dist/plugins/wp_title.php:70 dist/plugins/wp_title.php:82
|
2519 |
+
#: dist/plugins/wp_title.php:86 inc/wp-title.php:70 inc/wp-title.php:82
|
2520 |
+
#: inc/wp-title.php:86
|
2521 |
msgid "<title> tag of homepage"
|
2522 |
msgstr "トップページの<title>タグ"
|
2523 |
|
2524 |
+
#: dist/plugins/wp_title.php:90 inc/wp-title.php:90
|
2525 |
msgid "title of the site"
|
2526 |
msgstr "サイトのタイトル"
|
2527 |
|
2528 |
+
#: dist/plugins/wp_title.php:91 inc/wp-title.php:91
|
2529 |
#, php-format
|
2530 |
msgid "Normally \"%1$s\" is placed in the title tags of all the pages."
|
2531 |
msgstr "通常「%1$s」が全ページのタイトルタグに入ります。"
|
2532 |
|
2533 |
+
#: dist/plugins/wp_title.php:94 inc/wp-title.php:94
|
2534 |
#, php-format
|
2535 |
msgid ""
|
2536 |
"For example, it appears in the form of <br /><title>page title | "
|
2539 |
"例えば固定ページであれば<br><title>固定ページ名 | %1$s</title>"
|
2540 |
"<br>というような形式で出力されます。"
|
2541 |
|
2542 |
+
#: dist/plugins/wp_title.php:96 inc/wp-title.php:96
|
2543 |
#, php-format
|
2544 |
msgid ""
|
2545 |
"However, it might have negative impact on search engine rankings if the <"
|
2551 |
"くなるので、%s は一番検索されたいキーワードを盛り込みつつなるべく短くまとめる"
|
2552 |
"事が望ましいです。"
|
2553 |
|
2554 |
+
#: dist/plugins/wp_title.php:100 inc/wp-title.php:100
|
2555 |
msgid "Tagline"
|
2556 |
msgstr "キャッチフレーズ"
|
2557 |
|
2558 |
+
#: dist/plugins/wp_title.php:101 inc/wp-title.php:101
|
2559 |
#, php-format
|
2560 |
msgid ""
|
2561 |
"In the top page will be output usually in the form of <br /><title>"
|
2564 |
"トップページでは<br><title>%1$s | %2$s</title><br>というような形"
|
2565 |
"式で出力されます。"
|
2566 |
|
2567 |
+
#: dist/plugins/wp_title.php:104 inc/wp-title.php:104
|
2568 |
msgid ""
|
2569 |
"However, it may be too long in the above format. If the input to the input "
|
2570 |
"field of the following, its contents will be reflected."
|
2572 |
"しかし、上記の形式では長くなりすぎる事があります。その場合は下記の入力欄に入"
|
2573 |
"力すれば、その内容が反映されます。"
|
2574 |
|
2575 |
+
#: dist/veu-packages.php:78 veu-packages.php:55
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2576 |
msgid "Print link fontawesome"
|
2577 |
msgstr "fontawesome link タグを出力"
|
2578 |
|
2579 |
+
#: dist/veu-packages.php:79 veu-packages.php:56
|
2580 |
msgid "Print fontawesome link tag to html head."
|
2581 |
msgstr ""
|
2582 |
"fontawesome を読み込むための link タグを html head 内へ出力します。使用中の"
|
2583 |
"テーマやプラグインで fontawesome を既に読み込んでいる場合はチェックを外して下"
|
2584 |
"さい。"
|
2585 |
|
2586 |
+
#: dist/veu-packages.php:89 veu-packages.php:66
|
2587 |
msgid "VK Blocks ( Beta )"
|
2588 |
msgstr "VK Blocks ( Beta )"
|
2589 |
|
2590 |
+
#: dist/veu-packages.php:90 veu-packages.php:67
|
2591 |
msgid "Extends Gutenberg's blocks."
|
2592 |
msgstr "Gutenbergのブロックを拡張します。"
|
2593 |
|
2594 |
+
#: dist/veu-packages.php:100 veu-packages.php:77
|
2595 |
msgid "Rewrite the title tag"
|
2596 |
msgstr "タイトルタグの書き換え"
|
2597 |
|
2598 |
+
#: dist/veu-packages.php:101 veu-packages.php:78
|
2599 |
msgid "Print is rewritten by its own rules to html head."
|
2600 |
msgstr ""
|
2601 |
"head title タグ内へ出力される内容を VK EX Unit のルールで出力します。 ( VK "
|
2606 |
#: dist/veu-packages.php:161 dist/veu-packages.php:179
|
2607 |
#: dist/veu-packages.php:209 dist/veu-packages.php:227
|
2608 |
#: dist/veu-packages.php:268 dist/veu-packages.php:303
|
2609 |
+
#: dist/veu-packages.php:326 dist/veu-packages.php:383 veu-packages.php:81
|
2610 |
+
#: veu-packages.php:121 veu-packages.php:139 veu-packages.php:169
|
2611 |
+
#: veu-packages.php:187 veu-packages.php:228 veu-packages.php:263
|
2612 |
+
#: veu-packages.php:286 veu-packages.php:354 veu-packages.php:449
|
2613 |
msgid "Setting"
|
2614 |
msgstr "設定"
|
2615 |
|
2616 |
+
#: dist/veu-packages.php:118 veu-packages.php:445
|
2617 |
msgid "Print meta Keyword"
|
2618 |
msgstr "メタキーワードを出力"
|
2619 |
|
2620 |
+
#: dist/veu-packages.php:119 veu-packages.php:446
|
2621 |
msgid "Print meta Keyword to html head."
|
2622 |
msgstr "ヘッダーにメタキーワードを出力します。"
|
2623 |
|
2624 |
+
#: dist/veu-packages.php:135 veu-packages.php:95
|
2625 |
msgid "Print meta description"
|
2626 |
msgstr "メタディスクリプションタグを出力"
|
2627 |
|
2628 |
+
#: dist/veu-packages.php:136 veu-packages.php:96
|
2629 |
msgid "Print meta description to html head."
|
2630 |
msgstr ""
|
2631 |
"投稿画面「抜粋」欄に入力されたテキストを meta description タグとして html "
|
2632 |
"head 内へ出力します。使用中のテーマやプラグインで meta description タグを出力"
|
2633 |
"している場合はチェックを外して下さい。"
|
2634 |
|
2635 |
+
#: dist/veu-packages.php:145 veu-packages.php:105
|
2636 |
msgid "Main setting page"
|
2637 |
msgstr "メイン設定画面"
|
2638 |
|
2639 |
+
#: dist/veu-packages.php:147 veu-packages.php:107
|
2640 |
msgid "Print og tags to html head."
|
2641 |
msgstr "OG タグを html head 内へ出力します。"
|
2642 |
|
2643 |
+
#: dist/veu-packages.php:148 veu-packages.php:108
|
2644 |
msgid "Print twitter card tags to html head."
|
2645 |
msgstr "Twitter カードタグを html head 内へ出力します。"
|
2646 |
|
2647 |
+
#: dist/veu-packages.php:149 veu-packages.php:109
|
2648 |
msgid "Print social bookmark buttons."
|
2649 |
msgstr "ソーシャルブックマークボタンを表示します。"
|
2650 |
|
2651 |
+
#: dist/veu-packages.php:150 veu-packages.php:110
|
2652 |
msgid "Facebook Page Plugin widget."
|
2653 |
msgstr "Facebookページプラグインウィジェット"
|
2654 |
|
2655 |
+
#: dist/veu-packages.php:151 veu-packages.php:111
|
2656 |
msgid "Print Follow me box to content bottom."
|
2657 |
msgstr "Follow me box を記事コンテンツ下のエリアへ表示します。"
|
2658 |
|
2659 |
+
#: dist/veu-packages.php:153 veu-packages.php:113
|
2660 |
#, php-format
|
2661 |
msgid "* You can stop the function separately from the %s."
|
2662 |
msgstr "%s から個別に機能を停止する事ができます。"
|
2663 |
|
2664 |
+
#: dist/veu-packages.php:157 veu-packages.php:117
|
2665 |
msgid "Social media cooperation"
|
2666 |
msgstr "ソーシャルメディア連携"
|
2667 |
|
2668 |
+
#: dist/veu-packages.php:176 veu-packages.php:136
|
2669 |
msgid "Print Google Analytics tracking code."
|
2670 |
msgstr ""
|
2671 |
"Google アナリティクスのトラッキングコードを出力します。有効化した後「設定」の"
|
2673 |
"のテーマやプラグインで Google アナリティクスのトラッキングコードを埋め込む場"
|
2674 |
"合はチェックを外して下さい。"
|
2675 |
|
2676 |
+
#: dist/veu-packages.php:192 veu-packages.php:152
|
2677 |
msgid "You can use various widgets."
|
2678 |
msgstr ""
|
2679 |
"以下の機能を持ったウィジェットを追加します。各ウィジェットの設定は「外観」"
|
2680 |
"→「ウィジェット」の設定画面より行って下さい。"
|
2681 |
|
2682 |
+
#: dist/veu-packages.php:194 veu-packages.php:154
|
2683 |
msgid ""
|
2684 |
"VK_Recent Posts - display the link text and the date of the latest article "
|
2685 |
"title."
|
2686 |
msgstr "VK_最新記事 - 最新記事タイトルのリンクテキストと日付を表示します。"
|
2687 |
|
2688 |
+
#: dist/veu-packages.php:195 veu-packages.php:155
|
2689 |
msgid ""
|
2690 |
"VK_Page content to widget - display the contents of the page to the widgets."
|
2691 |
msgstr ""
|
2692 |
"VK_固定ページ本文 - 固定ページのコンテンツ部分をウィジェットに表示します。"
|
2693 |
|
2694 |
+
#: dist/veu-packages.php:196 veu-packages.php:156
|
2695 |
msgid "VK_Profile - display the profile entered in the widget."
|
2696 |
msgstr "VK_プロフィール - ウィジェットに入力されたプロフィールを表示します。"
|
2697 |
|
2698 |
+
#: dist/veu-packages.php:197 veu-packages.php:157
|
2699 |
msgid "VK_FB Page Plugin - display the Facebook Page Plugin."
|
2700 |
msgstr "VK_FB Page Plugin - Facebook ページプラグインを表示します。"
|
2701 |
|
2702 |
+
#: dist/veu-packages.php:198 veu-packages.php:158
|
2703 |
msgid "VK_3PR area - display the 3PR area."
|
2704 |
msgstr "VK_3PR エリア - 3PR エリアを表示します。"
|
2705 |
|
2706 |
+
#: dist/veu-packages.php:199 veu-packages.php:159
|
2707 |
msgid "categories/tags list"
|
2708 |
msgstr "カテゴリー/タグ リスト"
|
2709 |
|
2710 |
+
#: dist/veu-packages.php:199 veu-packages.php:159
|
2711 |
msgid "Displays a categories, tags or format list."
|
2712 |
msgstr "カテゴリ・タグまたは、フォーマットリストを表示します。"
|
2713 |
|
2714 |
+
#: dist/veu-packages.php:205 veu-packages.php:165
|
2715 |
msgid "Widgets"
|
2716 |
msgstr "ウィジェット"
|
2717 |
|
2718 |
+
#: dist/veu-packages.php:223 veu-packages.php:183
|
2719 |
msgid "CSS customize"
|
2720 |
msgstr "CSSカスタマイズ"
|
2721 |
|
2722 |
+
#: dist/veu-packages.php:224 veu-packages.php:184
|
2723 |
msgid "You can set Customize CSS."
|
2724 |
msgstr ""
|
2725 |
"テーマデザインをカスタマイズする CSS を管理画面より追加できるようになります。"
|
2726 |
"追加する CSS コードは「VK Ex Unit」→「CSS カスタマイズ」の画面にて入力して下"
|
2727 |
"さい。"
|
2728 |
|
2729 |
+
#: dist/veu-packages.php:242 veu-packages.php:202
|
2730 |
msgid "Child page index"
|
2731 |
msgstr "子ページの一覧表示"
|
2732 |
|
2733 |
+
#: dist/veu-packages.php:243 veu-packages.php:203
|
2734 |
msgid ""
|
2735 |
"At the bottom of the specified page, it will display a list of the child "
|
2736 |
"page."
|
2738 |
"指定した固定ページの下部へ、その固定ページの下層子ページの「ページタイトル / "
|
2739 |
"サムネイル / 抜粋文 / 該当ページへのリンク」をセットで一覧表示します。"
|
2740 |
|
2741 |
+
#: dist/veu-packages.php:253 veu-packages.php:213
|
2742 |
msgid "Page list from ancestor"
|
2743 |
msgstr "先祖階層からの子ページリスト表示"
|
2744 |
|
2745 |
+
#: dist/veu-packages.php:254 veu-packages.php:214
|
2746 |
msgid "Display Page list from ancestor at after content."
|
2747 |
msgstr ""
|
2748 |
"現在のページの先祖階層からの子ページリストをページ本文の下に表示します。"
|
2749 |
|
2750 |
+
#: dist/veu-packages.php:265 veu-packages.php:225
|
2751 |
msgid "Display Contact Section at after content."
|
2752 |
msgstr "お問い合わせ情報を本文の下に表示する"
|
2753 |
|
2754 |
+
#: dist/veu-packages.php:282 veu-packages.php:242
|
2755 |
msgid "Display HTML Site Map"
|
2756 |
msgstr "HTMLサイトマップの表示"
|
2757 |
|
2758 |
+
#: dist/veu-packages.php:283 veu-packages.php:243
|
2759 |
msgid "It displays a HTML Site Map to the specified page."
|
2760 |
msgstr "指定した固定ページにHTMLサイトマップを表示します。"
|
2761 |
|
2762 |
+
#: dist/veu-packages.php:308 veu-packages.php:268
|
2763 |
msgid "Contents setting"
|
2764 |
msgstr "CTA表示内容設定"
|
2765 |
|
2766 |
+
#: dist/veu-packages.php:323 veu-packages.php:283
|
2767 |
msgid "Insert ads to content."
|
2768 |
msgstr "記事に広告を挿入します"
|
2769 |
|
2770 |
+
#: dist/veu-packages.php:340 veu-packages.php:300
|
2771 |
msgid "Print Related posts lists to post content bottom."
|
2772 |
msgstr "関連記事を記事コンテンツ下のエリアへ表示します。"
|
2773 |
|
2774 |
+
#: dist/veu-packages.php:350 veu-packages.php:321
|
2775 |
msgid "Disable ping back"
|
2776 |
msgstr "ping backを停止"
|
2777 |
|
2778 |
+
#: dist/veu-packages.php:351 veu-packages.php:322
|
2779 |
msgid "Disable xmlrpc ping back."
|
2780 |
msgstr "xmlrpcを停止"
|
2781 |
|
2782 |
+
#: dist/veu-packages.php:359 dist/veu-packages.php:360 veu-packages.php:330
|
2783 |
+
#: veu-packages.php:331
|
2784 |
msgid "Disable dashbord"
|
2785 |
msgstr "ダッシュボードに最新情報を表示しない"
|
2786 |
|
2787 |
+
#: dist/veu-packages.php:368 veu-packages.php:339
|
2788 |
msgid "Admin bar manu"
|
2789 |
msgstr "管理バーメニュー"
|
2790 |
|
2791 |
+
#: dist/veu-packages.php:369 veu-packages.php:340
|
2792 |
msgid "Add ExUnit menu to admin bar."
|
2793 |
msgstr "ExUnitのメニューを管理バーに表示する"
|
2794 |
|
2795 |
+
#: dist/veu-packages.php:379 veu-packages.php:350
|
2796 |
msgid "Post Type Manager"
|
2797 |
msgstr "カスタム投稿タイプマネージャー"
|
2798 |
|
2799 |
+
#: dist/veu-packages.php:380 veu-packages.php:351
|
2800 |
msgid "Add custom post types and custom taxonomies."
|
2801 |
msgstr "カスタム投稿タイプやカスタム分類を追加します。"
|
2802 |
|
2803 |
+
#: dist/veu-packages.php:397 veu-packages.php:368
|
2804 |
msgid "Page Top Button"
|
2805 |
msgstr "ページトップへ戻るボタン"
|
2806 |
|
2807 |
+
#: dist/veu-packages.php:398 veu-packages.php:369
|
2808 |
msgid ""
|
2809 |
"The page top button is displayed in the lower right corner of the screen."
|
2810 |
msgstr "ページトップへ戻るボタンは、画面の右下隅に表示されます。"
|
2811 |
|
2812 |
+
#: dist/veu-packages.php:408 veu-packages.php:379
|
2813 |
msgid "Smooth scroll"
|
2814 |
msgstr "スムーススクロール"
|
2815 |
|
2816 |
+
#: dist/veu-packages.php:409 veu-packages.php:380
|
2817 |
msgid "Add smooth scroll at anchor link in same page."
|
2818 |
msgstr ""
|
2819 |
"ページ内のアンカーリンククリックした際にスムーズにスクロースします。<br>※他の"
|
2820 |
"jsと干渉する事があります。独自にjsで制御している箇所をクリックしても正しく動"
|
2821 |
"作しない場合はこの機能を停止してみてください。"
|
2822 |
|
2823 |
+
#: dist/veu-packages.php:419 veu-packages.php:390
|
2824 |
msgid "Add body class"
|
2825 |
msgstr "Body class の追加"
|
2826 |
|
2827 |
+
#: dist/veu-packages.php:420 veu-packages.php:391
|
2828 |
msgid "Add \"Post type\", \"Page slug\" etc class name to the body class."
|
2829 |
msgstr "投稿タイプ名や固定ページのスラッグ名をbodyタグのクラスに追加します。"
|
2830 |
|
2831 |
+
#: dist/veu-packages.php:430 veu-packages.php:401
|
2832 |
msgid "Navi menu class custom"
|
2833 |
msgstr "ナビメニューclassの改変"
|
2834 |
|
2835 |
+
#: dist/veu-packages.php:431 veu-packages.php:402
|
2836 |
msgid "Current class tuning of navi menu."
|
2837 |
msgstr ""
|
2838 |
"メニューに投稿トップやカスタム投稿タイプアーカイブページが設定された時に、詳"
|
2839 |
"細ページや関連するカスタム分類ページを表示している時でも適切にcurrentクラスが"
|
2840 |
"追加されるように調整します。"
|
2841 |
|
2842 |
+
#: dist/veu-packages.php:442 veu-packages.php:413
|
2843 |
msgid "Display Eye Catch image at before content."
|
2844 |
msgstr ""
|
2845 |
"アイキャッチ画像を本文の最初に表示します。各記事毎に非表示にする事も出来ま"
|
2846 |
"す。"
|
2847 |
|
2848 |
+
#: dist/veu-packages.php:452 veu-packages.php:423
|
2849 |
msgid "TinyMCE Style Tags"
|
2850 |
msgstr "TinyMCE スタイルタグ"
|
2851 |
|
2852 |
+
#: dist/veu-packages.php:453 veu-packages.php:424
|
2853 |
msgid "Add TinyMCE Editor to style tags."
|
2854 |
msgstr "スタイルタグにTinyMCEエディタを追加する"
|
2855 |
|
2856 |
+
#: dist/veu-packages.php:463 veu-packages.php:434
|
2857 |
msgid "Print Bootstrap css ( grid / button / table )"
|
2858 |
msgstr "Bootstrap の CSS(grid/button/tableのみ)を出力"
|
2859 |
|
2860 |
+
#: dist/veu-packages.php:464 veu-packages.php:435
|
2861 |
msgid ""
|
2862 |
"If your using theme has already including Bootstrap, you deactivate this "
|
2863 |
"item."
|
2866 |
"(Lightningなど)やプラグインで Bootstrap を既に読み込んでいる場合はチェック"
|
2867 |
"を外して下さい。"
|
2868 |
|
2869 |
+
#: dist/veu-packages.php:474 veu-packages.php:463
|
2870 |
msgid "Favicon setting"
|
2871 |
msgstr "ファビコン設定"
|
2872 |
|
2873 |
+
#: dist/veu-packages.php:475 veu-packages.php:464
|
2874 |
msgid "About favicon."
|
2875 |
msgstr ""
|
2876 |
"ブラウザでページを表示した際にタブやウィンドウのタイトルに表示されるアイコン"
|
2877 |
"(ファビコン)を設定します。"
|
2878 |
|
2879 |
+
#: dist/veu-packages.php:475 veu-packages.php:464
|
2880 |
msgid ""
|
2881 |
"This feature will be discontinued shortly.<br>You can set the site icon from "
|
2882 |
"\"Site Identity\" panel of \"Themes > Customize\"."
|
2885 |
"サイトアイコンは「外観 > カスタマイズ」の「サイト基本情報」パネルから設定でき"
|
2886 |
"ます。"
|
2887 |
|
2888 |
+
#: dist/vkExUnit.php:97 vkExUnit.php:96
|
2889 |
#, php-format
|
2890 |
msgid "The current PHP version(%s) is too old, so VK ExUnit will not work."
|
2891 |
msgstr "使用中のPHPのバージョン(%s) が古すぎるので VK ExUnit は動作しません。"
|
2892 |
|
2893 |
+
#: dist/vkExUnit.php:100 vkExUnit.php:99
|
2894 |
msgid "VK ExUnit supports PHP5.6 or later."
|
2895 |
msgstr "VKExUnit がサポートしているPHPのバージョンは5.6以降です"
|
2896 |
|
2897 |
+
#: dist/vkExUnit.php:116 vkExUnit.php:115
|
2898 |
#, php-format
|
2899 |
msgid "Current PHP Version(%s) is old."
|
2900 |
msgstr "使用中のPHPのバージョン(%s) が古いです。"
|
2901 |
|
2902 |
+
#: dist/vkExUnit.php:117 vkExUnit.php:116
|
2903 |
#, php-format
|
2904 |
msgid "%s supports PHP5.6 or later."
|
2905 |
msgstr "%s はPHP5.6以降をサポートしています。"
|
2906 |
|
2907 |
+
#: inc/call-to-action/package/class-vk-call-to-action.php:270
|
2908 |
+
msgid ""
|
2909 |
+
"The entered contents are displayed directly. You can not use Dynamic blocks, "
|
2910 |
+
"reuse blocks, etc."
|
2911 |
+
msgstr ""
|
2912 |
+
"入力された内容は直接表示されます。 動的ブロックや再利用ブロックなどは使用でき"
|
2913 |
+
"ません。"
|
2914 |
|
2915 |
+
#: inc/noindex/class-veu-metabox-noindex.php:10
|
2916 |
+
msgid "Noindex setting"
|
2917 |
+
msgstr "noindex設定"
|
2918 |
|
2919 |
+
#: inc/noindex/class-veu-metabox-noindex.php:34
|
2920 |
+
msgid "Print noindex tag that to be do not display on search result."
|
2921 |
+
msgstr "検索結果に表示されないようにnoindexタグを出力する。"
|
2922 |
+
|
2923 |
+
#: inc/sitemap-page/class-veu-metabox-sitemap.php:14
|
2924 |
+
msgid "Hide setting of HTML sitemap"
|
2925 |
+
msgstr "HTMLサイトマップの非表示設定"
|
2926 |
+
|
2927 |
+
#: inc/sns/class-veu-metabox-sns-button.php:14
|
2928 |
+
msgid "Hide setting of share button"
|
2929 |
+
msgstr "シェアボタンの非表示設定"
|
2930 |
+
|
2931 |
+
#: inc/sns/class-veu-metabox-sns-button.php:39
|
2932 |
+
msgid "Display setting of share button"
|
2933 |
+
msgstr "ソーシャルボタンの表示設定"
|
2934 |
+
|
2935 |
+
#: inc/sns/class-veu-metabox-sns-title.php:14
|
2936 |
+
msgid "SNS Title"
|
2937 |
+
msgstr "OGPタイトル"
|
2938 |
+
|
2939 |
+
#: veu-packages.php:310
|
2940 |
+
msgid "Noindex additional function"
|
2941 |
+
msgstr "noindex 追加機能"
|
2942 |
+
|
2943 |
+
#: veu-packages.php:311
|
2944 |
+
msgid "Print noindex tag to html head."
|
2945 |
+
msgstr "noindex タグを html head 内へ出力します。"
|
2946 |
+
|
2947 |
+
#: veu-packages.php:446
|
2948 |
+
msgid "This feature will be discontinued shortly."
|
2949 |
+
msgstr "この機能は間もなく廃止されます。"
|
2950 |
+
|
2951 |
+
#, fuzzy
|
2952 |
+
#~| msgid "CTA common setting"
|
2953 |
+
#~ msgid "Common setting"
|
2954 |
+
#~ msgstr "CTA共通設定"
|
2955 |
+
|
2956 |
+
#, fuzzy
|
2957 |
+
#~| msgid "CTA common setting"
|
2958 |
+
#~ msgid "Common Settings"
|
2959 |
+
#~ msgstr "CTA共通設定"
|
2960 |
+
|
2961 |
+
#~ msgid "Print noindex tag."
|
2962 |
+
#~ msgstr "noindexタグを出力する。"
|
2963 |
|
2964 |
#, fuzzy
|
2965 |
#~| msgid "Display count"
|
languages/vk-all-in-one-expansion-unit.pot
CHANGED
@@ -653,7 +653,7 @@ msgstr ""
|
|
653 |
msgid "Error occured. Please try again."
|
654 |
msgstr ""
|
655 |
|
656 |
-
#: plugins/
|
657 |
msgid ""
|
658 |
"<p>Powered by <a href=\"https://wordpress.org/\">WordPress</a> with <a href="
|
659 |
"\"https://lightning.nagoya\" target=\"_blank\" title=\"Free WordPress Theme "
|
@@ -1760,31 +1760,31 @@ msgid ""
|
|
1760 |
"field of the following, its contents will be reflected."
|
1761 |
msgstr ""
|
1762 |
|
1763 |
-
#:
|
1764 |
msgid "Active Setting"
|
1765 |
msgstr ""
|
1766 |
|
1767 |
-
#:
|
1768 |
msgid "Main Setting"
|
1769 |
msgstr ""
|
1770 |
|
1771 |
-
#:
|
1772 |
msgid "Setting of insert items"
|
1773 |
msgstr ""
|
1774 |
|
1775 |
-
#:
|
1776 |
msgid "ExUnit Settings"
|
1777 |
msgstr ""
|
1778 |
|
1779 |
-
#:
|
1780 |
msgid "News from VK All in One Expansion Unit"
|
1781 |
msgstr ""
|
1782 |
|
1783 |
-
#:
|
1784 |
msgid "Edit Guide"
|
1785 |
msgstr ""
|
1786 |
|
1787 |
-
#:
|
1788 |
msgid "Sorry, there is no post"
|
1789 |
msgstr ""
|
1790 |
|
653 |
msgid "Error occured. Please try again."
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: plugins/footer-copyright-change.php:6
|
657 |
msgid ""
|
658 |
"<p>Powered by <a href=\"https://wordpress.org/\">WordPress</a> with <a href="
|
659 |
"\"https://lightning.nagoya\" target=\"_blank\" title=\"Free WordPress Theme "
|
1760 |
"field of the following, its contents will be reflected."
|
1761 |
msgstr ""
|
1762 |
|
1763 |
+
#: admin/admin_bar.php:28
|
1764 |
msgid "Active Setting"
|
1765 |
msgstr ""
|
1766 |
|
1767 |
+
#: admin/admin_bar.php:36
|
1768 |
msgid "Main Setting"
|
1769 |
msgstr ""
|
1770 |
|
1771 |
+
#: admin/content-meta-box.php:11
|
1772 |
msgid "Setting of insert items"
|
1773 |
msgstr ""
|
1774 |
|
1775 |
+
#: admin/customize-panel.php:28
|
1776 |
msgid "ExUnit Settings"
|
1777 |
msgstr ""
|
1778 |
|
1779 |
+
#: admin/dashboard_info_widget.php:18
|
1780 |
msgid "News from VK All in One Expansion Unit"
|
1781 |
msgstr ""
|
1782 |
|
1783 |
+
#: admin/disable_guide.php:17
|
1784 |
msgid "Edit Guide"
|
1785 |
msgstr ""
|
1786 |
|
1787 |
+
#: admin/vk-admin/class.vk-admin.php:100
|
1788 |
msgid "Sorry, there is no post"
|
1789 |
msgstr ""
|
1790 |
|
plugins/auto_eyecatch.php
DELETED
@@ -1,138 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* VkExUnit auto_eyecatch.php
|
4 |
-
* insert thumbnail for top of content automatically
|
5 |
-
*
|
6 |
-
* @package VkExUnit
|
7 |
-
* @author shoji imamura<imamura@vektor-inc.co.jp>
|
8 |
-
* @since 8/Jul/2015
|
9 |
-
*/
|
10 |
-
|
11 |
-
class vExUnit_eyecatch {
|
12 |
-
private static $instance;
|
13 |
-
|
14 |
-
public static function instance() {
|
15 |
-
if ( isset( self::$instance ) ) {
|
16 |
-
return self::$instance; }
|
17 |
-
|
18 |
-
self::$instance = new vExUnit_eyecatch;
|
19 |
-
self::$instance->run_init();
|
20 |
-
return self::$instance;
|
21 |
-
}
|
22 |
-
|
23 |
-
private function __construct() {
|
24 |
-
/*** do noting */
|
25 |
-
}
|
26 |
-
|
27 |
-
|
28 |
-
protected function run_init() {
|
29 |
-
add_action( 'admin_menu', array( $this, 'add_custom_field' ) );
|
30 |
-
add_action( 'save_post', array( $this, 'save_custom_field' ) );
|
31 |
-
add_filter( 'the_content', array( $this, 'set_eyecatch' ), 1 );
|
32 |
-
}
|
33 |
-
|
34 |
-
public static function post_types() {
|
35 |
-
$allowed_post_types = array( 'post', 'page' );
|
36 |
-
|
37 |
-
// 綴間違いでリリースしてしまったので こちらは近日削除
|
38 |
-
$allowed_post_types = apply_filters( 'veu_auto_eye_chatch_post_types', $allowed_post_types );
|
39 |
-
|
40 |
-
$allowed_post_types = apply_filters( 'veu_auto_eye_catch_post_types', $allowed_post_types );
|
41 |
-
|
42 |
-
return $allowed_post_types;
|
43 |
-
}
|
44 |
-
|
45 |
-
public function add_custom_field() {
|
46 |
-
|
47 |
-
$post_types = self::post_types();
|
48 |
-
|
49 |
-
foreach ( $post_types as $post_type ) {
|
50 |
-
add_meta_box( 'vkExUnit_EyeCatch', __( 'Automatic EyeCatch', 'vk-all-in-one-expansion-unit' ), array( $this, 'render_meta_box' ), $post_type, 'normal', 'high' );
|
51 |
-
}
|
52 |
-
}
|
53 |
-
|
54 |
-
|
55 |
-
public function render_meta_box() {
|
56 |
-
global $post;
|
57 |
-
$disable_autoeyecatch = get_post_meta( get_the_id(), 'vkExUnit_EyeCatch_disable', true );
|
58 |
-
|
59 |
-
echo '<input type="hidden" name="_nonce_vkExUnit__custom_auto_eyecatch" id="_nonce_vkExUnit__custom_auto_eyecatch_noonce" value="' . wp_create_nonce( 'vkEx_AYC_' . get_the_id() ) . '" />';
|
60 |
-
echo '<label ><input type="checkbox" name="vkExUnit_auto_eyecatch" value="true" ' . ( ( $disable_autoeyecatch ) ? 'checked' : '' ) . ' />' . __( 'Do not set eyecatch image automatic.', 'vk-all-in-one-expansion-unit' ) . '</label>';
|
61 |
-
|
62 |
-
}
|
63 |
-
|
64 |
-
|
65 |
-
public function save_custom_field( $post_id ) {
|
66 |
-
|
67 |
-
$metaKeyword = isset( $_POST['_nonce_vkExUnit__custom_auto_eyecatch'] ) ? htmlspecialchars( $_POST['_nonce_vkExUnit__custom_auto_eyecatch'] ) : null;
|
68 |
-
|
69 |
-
$keyword = get_post_meta( $post_id, 'vkExUnit_metaKeyword', true );
|
70 |
-
|
71 |
-
// if autosave then deny
|
72 |
-
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
|
73 |
-
return $post_id; }
|
74 |
-
|
75 |
-
if ( ! wp_verify_nonce( $metaKeyword, 'vkEx_AYC_' . $post_id ) ) {
|
76 |
-
return $post_id;
|
77 |
-
}
|
78 |
-
|
79 |
-
delete_post_meta( $post_id, 'vkExUnit_EyeCatch_disable' );
|
80 |
-
if ( isset( $_POST['vkExUnit_auto_eyecatch'] ) && $_POST['vkExUnit_auto_eyecatch'] ) {
|
81 |
-
add_post_meta( $post_id, 'vkExUnit_EyeCatch_disable', true );
|
82 |
-
}
|
83 |
-
}
|
84 |
-
|
85 |
-
|
86 |
-
public static function is_my_turn() {
|
87 |
-
|
88 |
-
if ( vkExUnit_is_excerpt() ) {
|
89 |
-
return false; }
|
90 |
-
|
91 |
-
global $is_pagewidget;
|
92 |
-
if ( $is_pagewidget ) {
|
93 |
-
return false; }
|
94 |
-
|
95 |
-
if ( get_the_id() ) {
|
96 |
-
|
97 |
-
$post_types = self::post_types();
|
98 |
-
|
99 |
-
if ( in_array( get_post_type( get_the_id() ), $post_types ) ) {
|
100 |
-
|
101 |
-
if ( has_post_thumbnail( get_the_id() ) ) {
|
102 |
-
|
103 |
-
if ( ! get_post_meta( get_the_id(), 'vkExUnit_EyeCatch_disable', true ) ) {
|
104 |
-
|
105 |
-
return true;
|
106 |
-
}
|
107 |
-
}
|
108 |
-
}
|
109 |
-
}
|
110 |
-
|
111 |
-
return false;
|
112 |
-
}
|
113 |
-
|
114 |
-
|
115 |
-
public function set_eyecatch( $content ) {
|
116 |
-
|
117 |
-
if ( ! self::is_my_turn() ) {
|
118 |
-
return $content; }
|
119 |
-
|
120 |
-
$imageHtml = self::render_eyecatch( get_the_id() );
|
121 |
-
|
122 |
-
$content = $imageHtml . $content;
|
123 |
-
|
124 |
-
return $content;
|
125 |
-
}
|
126 |
-
|
127 |
-
|
128 |
-
public function render_eyecatch( $post_id ) {
|
129 |
-
$html = '';
|
130 |
-
|
131 |
-
$image_tag = get_the_post_thumbnail( $post_id, 'large' );
|
132 |
-
|
133 |
-
$html = '<div class="veu_autoEyeCatchBox">' . $image_tag . '</div>';
|
134 |
-
return $html;
|
135 |
-
}
|
136 |
-
}
|
137 |
-
|
138 |
-
vExUnit_eyecatch::instance();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins/css_customize/css_customize-single.php
DELETED
@@ -1,102 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Custom CSS Widget
|
4 |
-
/* ------------------------------------------- */
|
5 |
-
|
6 |
-
add_action( 'admin_menu', 'veu_custom_css_hooks' );
|
7 |
-
add_action( 'save_post', 'veu_save_custom_css' );
|
8 |
-
// </head>タグの直上に出力させたいので第三引数に 50 を設定
|
9 |
-
add_action( 'wp_head', 'veu_insert_custom_css', 201 );
|
10 |
-
|
11 |
-
|
12 |
-
/*
|
13 |
-
メタボックス生成
|
14 |
-
/* ------------------------------------------------ */
|
15 |
-
function veu_custom_css_hooks() {
|
16 |
-
|
17 |
-
$post_types = get_post_types( array( 'public' => true ) );
|
18 |
-
|
19 |
-
foreach ( $post_types as $post_type ) {
|
20 |
-
add_meta_box(
|
21 |
-
'veu_custom_css', // (必須) 編集画面セクションの HTML ID
|
22 |
-
__( 'Custom CSS', 'vk-all-in-one-expansion-unit' ), // (必須) 編集画面セクションのタイトル、画面上に表示される
|
23 |
-
'veu_custom_css_input', // (必須) 編集画面セクションに HTML 出力する関数.
|
24 |
-
$post_type, // (オプション)編集画面セクションを表示する書き込み画面のタイプ(例: 'post'、 'page'、 'dashboard'、 'link'、 'attachment'、 'custom_post_type'、 'comment')
|
25 |
-
'normal', // (オプション) 編集画面セクションが表示される部分 ('normal', 'advanced' または (2.7 以降) 'side')
|
26 |
-
'high' // (オプション) ボックスが表示される優先度 ('high', 'core', 'default' または 'low')
|
27 |
-
);
|
28 |
-
}
|
29 |
-
|
30 |
-
} // function veu_custom_css_hooks() {
|
31 |
-
|
32 |
-
|
33 |
-
/*
|
34 |
-
入力用テキストエリアを生成
|
35 |
-
/* ------------------------------------------------ */
|
36 |
-
function veu_custom_css_input() {
|
37 |
-
global $post;
|
38 |
-
// wp_create_nonce( 'veu_custom-css' ) の引数は「(オプション) アクションの名前」
|
39 |
-
// Nonce はウェブサイトやデータベースを、予期せぬまたは重複したリクエストによって取り返しの付かない変更が起きてしまうことから保護する処理
|
40 |
-
echo '<input type="hidden" name="veu_custom_css_noncename" id="veu_custom_css_noncename" value="' . wp_create_nonce( 'veu_custom-css' ) . '" />';
|
41 |
-
// 投稿/ページの編集画面でメタ情報をカスタムフィールド欄に表示させないために、
|
42 |
-
// get_post_meta の「カスタムフィールドの名前」の前にアンダースコアをつける
|
43 |
-
echo '<textarea name="veu_custom_css" id="veu_custom_css" rows="5" cols="30" style="width:100%;">' . get_post_meta( $post->ID, '_veu_custom_css', true ) . '</textarea>';
|
44 |
-
|
45 |
-
} // function veu_custom_css_input() {
|
46 |
-
|
47 |
-
|
48 |
-
/*
|
49 |
-
入力されたテキストエリアの内容を保存
|
50 |
-
/* ------------------------------------------------ */
|
51 |
-
function veu_save_custom_css( $post_id ) {
|
52 |
-
|
53 |
-
// wp_verify_nonce( $_POST['veu_custom_css_noncename'], 'veu_custom-css' )の引数は「(必須) 検証する nonce,(オプション) アクションの名前」
|
54 |
-
// nonce が正しいもので有効期限が切れていないことを、指定されたアクションとの関係も含めて確かめる処理
|
55 |
-
$noonce = isset( $_POST['veu_custom_css_noncename'] ) ? htmlspecialchars( $_POST['veu_custom_css_noncename'] ) : null;
|
56 |
-
if ( ! wp_verify_nonce( $noonce, 'veu_custom-css' ) ) {
|
57 |
-
return $post_id;
|
58 |
-
}
|
59 |
-
// 自動保存時には処理をしないように
|
60 |
-
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
|
61 |
-
return $post_id;
|
62 |
-
}
|
63 |
-
$custom_css = $_POST['veu_custom_css'];
|
64 |
-
// 指定した投稿に存在するカスタムフィールドの値を更新
|
65 |
-
update_post_meta( $post_id, '_veu_custom_css', $custom_css );
|
66 |
-
|
67 |
-
} // function veu_save_custom_css($post_id) {
|
68 |
-
|
69 |
-
|
70 |
-
function veu_get_the_custom_css_single( $post ) {
|
71 |
-
$css_customize = get_post_meta( $post->ID, '_veu_custom_css', true );
|
72 |
-
if ( $css_customize ) {
|
73 |
-
// delete br
|
74 |
-
$css_customize = str_replace( PHP_EOL, '', $css_customize );
|
75 |
-
// delete tab
|
76 |
-
$css_customize = preg_replace( '/[\n\r\t]/', '', $css_customize );
|
77 |
-
// multi space convert to single space
|
78 |
-
$css_customize = preg_replace( '/\s(?=\s)/', '', $css_customize );
|
79 |
-
}
|
80 |
-
return strip_tags( $css_customize );
|
81 |
-
}
|
82 |
-
|
83 |
-
/*
|
84 |
-
入力された CSS をソースに出力
|
85 |
-
/* ------------------------------------------------ */
|
86 |
-
function veu_insert_custom_css() {
|
87 |
-
|
88 |
-
if ( is_singular() ) {
|
89 |
-
// if 現在の WordPress クエリにループできる結果があるかどうか
|
90 |
-
// while 記事がある間ループして1件ずつ処理する
|
91 |
-
if ( have_posts() ) :
|
92 |
-
while ( have_posts() ) :
|
93 |
-
the_post();
|
94 |
-
global $post;
|
95 |
-
echo '<style type="text/css">' . veu_get_the_custom_css_single( $post ) . '</style>';
|
96 |
-
endwhile;
|
97 |
-
endif;
|
98 |
-
// ページ上の別の場所で同じクエリを再利用するために、ループの投稿情報を巻き戻し、前回と同じ順序で先頭の投稿を取得できるように
|
99 |
-
rewind_posts();
|
100 |
-
}
|
101 |
-
|
102 |
-
} // function veu_insert_custom_css() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins/meta_keyword.php
DELETED
@@ -1,162 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* VkExUnit meta_keyword.php
|
4 |
-
* Set meta tag of keyword for single page each
|
5 |
-
*
|
6 |
-
* @package VkExUnit
|
7 |
-
* @author shoji imamura<imamura@vektor-inc.co.jp>
|
8 |
-
* @since 26/Jun/2015
|
9 |
-
*/
|
10 |
-
|
11 |
-
class vExUnit_meta_keywords {
|
12 |
-
|
13 |
-
private static $instance;
|
14 |
-
|
15 |
-
public static function instance() {
|
16 |
-
if ( isset( self::$instance ) ) {
|
17 |
-
return self::$instance; }
|
18 |
-
|
19 |
-
self::$instance = new vExUnit_meta_keywords;
|
20 |
-
self::$instance->run_init();
|
21 |
-
return self::$instance;
|
22 |
-
}
|
23 |
-
|
24 |
-
|
25 |
-
private function __construct() {
|
26 |
-
/*** do noting ***/
|
27 |
-
}
|
28 |
-
|
29 |
-
|
30 |
-
protected function run_init() {
|
31 |
-
add_action( 'vkExUnit_package_init', array( $this, 'option_init' ) );
|
32 |
-
add_action( 'admin_menu', array( $this, 'add_custom_field' ) );
|
33 |
-
add_action( 'save_post' , array( $this, 'save_custom_field' ) );
|
34 |
-
add_action( 'wp_head', array( $this, 'set_HeadKeywords' ), 1 );
|
35 |
-
}
|
36 |
-
|
37 |
-
|
38 |
-
public function option_init() {
|
39 |
-
vkExUnit_register_setting(
|
40 |
-
__( 'Meta Keywords', 'vk-all-in-one-expansion-unit' ), // tab label.
|
41 |
-
'vkExUnit_common_keywords', // name attr
|
42 |
-
array( $this, 'sanitize_config' ), // sanitaise function name
|
43 |
-
array( $this, 'render_configPage' ) // setting_page function name
|
44 |
-
);
|
45 |
-
}
|
46 |
-
|
47 |
-
|
48 |
-
public function get_default_option() {
|
49 |
-
$option = '';
|
50 |
-
return $option;
|
51 |
-
}
|
52 |
-
|
53 |
-
|
54 |
-
public function sanitize_config( $option ) {
|
55 |
-
$option = preg_replace( '/^,*(.+)$/', '$1', $option );
|
56 |
-
$option = preg_replace( '/,*$/', '', $option );
|
57 |
-
return $option;
|
58 |
-
}
|
59 |
-
|
60 |
-
|
61 |
-
public static function get_option() {
|
62 |
-
return get_option( 'vkExUnit_common_keywords', '' );
|
63 |
-
}
|
64 |
-
|
65 |
-
|
66 |
-
public function render_configPage() {
|
67 |
-
?>
|
68 |
-
<h3><?php _e( 'Meta Keyword', 'vk-all-in-one-expansion-unit' ); ?></h3>
|
69 |
-
<div id="meta_keyword" class="sectionBox">
|
70 |
-
<table class="form-table">
|
71 |
-
<tr><th><?php _e( 'Common Keywords', 'vk-all-in-one-expansion-unit' ); ?></th>
|
72 |
-
<td><?php _e( 'Keywords for meta tag. This words will set Meta Keyword with post keywords. if you want multiple keywords, enter with separator of ",".', 'vk-all-in-one-expansion-unit' ); ?><br />
|
73 |
-
<input type="text" name="vkExUnit_common_keywords" id="commonKeyWords" value="<?php echo self::get_option(); ?>" style="width:90%;" /><br />
|
74 |
-
|
75 |
-
* <?php _e( 'This is not seriously, Because the SearchEngine does not care this.', 'vk-all-in-one-expansion-unit' ) ?><br/>
|
76 |
-
* <?php _e( 'For each page individual keyword is enter at the edit screen of each article. 10 keywords maximum, together with a each article keywords is desirable.', 'vk-all-in-one-expansion-unit' ) ?><br/>
|
77 |
-
* <?php _e( '"," separator at end of the last keyword is do not need.', 'vk-all-in-one-expansion-unit' ) ?><br/>
|
78 |
-
<?php _e( 'Example: WordPress,template,theme,free,GPL', 'vk-all-in-one-expansion-unit' ); ?></td></tr>
|
79 |
-
</table>
|
80 |
-
<?php submit_button(); ?>
|
81 |
-
</div>
|
82 |
-
<?php
|
83 |
-
}
|
84 |
-
|
85 |
-
|
86 |
-
public function add_custom_field() {
|
87 |
-
$post_types = get_post_types( array(),'objects' );
|
88 |
-
foreach ( $post_types as $post ) {
|
89 |
-
if ( $post->_builtin ) { continue; }
|
90 |
-
if ( ! $post->public ) { continue; }
|
91 |
-
add_meta_box( 'div1', __( 'Meta Keywords', 'vk-all-in-one-expansion-unit' ), array( $this, 'render_meta_box' ), $post->name, 'normal', 'high' );
|
92 |
-
}
|
93 |
-
add_meta_box( 'div1', __( 'Meta Keywords', 'vk-all-in-one-expansion-unit' ), array( $this, 'render_meta_box' ), 'page', 'normal', 'high' );
|
94 |
-
add_meta_box( 'div1', __( 'Meta Keywords', 'vk-all-in-one-expansion-unit' ), array( $this, 'render_meta_box' ), 'post', 'normal', 'high' );
|
95 |
-
}
|
96 |
-
|
97 |
-
|
98 |
-
public function render_meta_box() {
|
99 |
-
global $post;
|
100 |
-
echo '<input type="hidden" name="_nonce_vkExUnit__custom_field_metaKeyword" id="_nonce_vkExUnit__custom_field_metaKeyword" value="'.wp_create_nonce( plugin_basename( __FILE__ ) ).'" />';
|
101 |
-
echo '<label class="hidden" for="vkExUnit_metaKeyword">'.__( 'Meta Keywords', 'biz-vektor' ).'</label><input type="text" id="vkExUnit_metaKeyword" name="vkExUnit_metaKeyword" size="50" value="'.get_post_meta( $post->ID, 'vkExUnit_metaKeyword', true ).'" />';
|
102 |
-
echo '<p>'.__( 'To distinguish between individual keywords, please enter a , delimiter (optional).', 'vk-all-in-one-expansion-unit' ).'<br />';
|
103 |
-
$theme_option_seo_link = '<a href="'.get_admin_url().'/admin.php?page=vkExUnit_main_setting#vkExUnit_common_keywords" target="_blank">'.vkExUnit_get_name().' '.__( 'Main setting', 'vk-all-in-one-expansion-unit' ).'</a>';
|
104 |
-
echo sprintf( __( '* keywords common to the entire site can be set from %s.', 'vk-all-in-one-expansion-unit' ),$theme_option_seo_link );
|
105 |
-
echo '</p>';
|
106 |
-
}
|
107 |
-
|
108 |
-
|
109 |
-
public function save_custom_field( $post_id ) {
|
110 |
-
$metaKeyword = isset( $_POST['_nonce_vkExUnit__custom_field_metaKeyword'] ) ? htmlspecialchars( $_POST['_nonce_vkExUnit__custom_field_metaKeyword'] ) : null;
|
111 |
-
|
112 |
-
// if autosave is to deny
|
113 |
-
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
|
114 |
-
return $post_id; }
|
115 |
-
|
116 |
-
if ( ! wp_verify_nonce( $metaKeyword, plugin_basename( __FILE__ ) ) ) {
|
117 |
-
return $post_id;
|
118 |
-
}
|
119 |
-
if ( 'page' == $_POST['vkExUnit_metaKeyword'] ) {
|
120 |
-
if ( ! current_user_can( 'edit_page', $post_id ) ) { return $post_id; }
|
121 |
-
} else {
|
122 |
-
if ( ! current_user_can( 'edit_post', $post_id ) ) { return $post_id; }
|
123 |
-
}
|
124 |
-
|
125 |
-
$data = $_POST['vkExUnit_metaKeyword'];
|
126 |
-
|
127 |
-
if ( get_post_meta( $post_id, 'vkExUnit_metaKeyword' ) == '' ) {
|
128 |
-
add_post_meta( $post_id, 'vkExUnit_metaKeyword', $data, true );
|
129 |
-
} elseif ( $data != get_post_meta( $post_id, 'vkExUnit_metaKeyword', true ) ) {
|
130 |
-
update_post_meta( $post_id, 'vkExUnit_metaKeyword', $data );
|
131 |
-
} elseif ( $data == '' ) {
|
132 |
-
delete_post_meta( $post_id, 'vkExUnit_metaKeyword', get_post_meta( $post_id, 'vkExUnit_metaKeyword', true ) );
|
133 |
-
}
|
134 |
-
}
|
135 |
-
|
136 |
-
|
137 |
-
public function get_postKeyword() {
|
138 |
-
$post_id = get_the_id();
|
139 |
-
|
140 |
-
if ( empty( $post_id ) ) {
|
141 |
-
return null; }
|
142 |
-
|
143 |
-
$keyword = get_post_meta( $post_id, 'vkExUnit_metaKeyword', true );
|
144 |
-
return $keyword;
|
145 |
-
}
|
146 |
-
|
147 |
-
|
148 |
-
public function set_HeadKeywords() {
|
149 |
-
$commonKeyWords = self::get_option();
|
150 |
-
// get custom field
|
151 |
-
$entryKeyWords = self::get_postKeyword();
|
152 |
-
$keywords = array();
|
153 |
-
if ( $commonKeyWords ) { $keywords[] = $commonKeyWords; }
|
154 |
-
if ( $entryKeyWords ) { $keywords[] = $entryKeyWords; }
|
155 |
-
$key = implode( ',', $keywords );
|
156 |
-
// print individual keywords
|
157 |
-
if ( ! $key ) { return; }
|
158 |
-
echo '<meta name="keywords" content="' . $key. '" />'."\n";
|
159 |
-
}
|
160 |
-
}
|
161 |
-
|
162 |
-
vExUnit_meta_keywords::instance();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins/other_widget/other_widget.php
DELETED
@@ -1,90 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
require vkExUnit_get_directory() . '/plugins/other_widget/widget-new-posts.php';
|
3 |
-
require vkExUnit_get_directory() . '/plugins/other_widget/widget-profile.php';
|
4 |
-
require vkExUnit_get_directory() . '/plugins/other_widget/widget-3pr-area.php';
|
5 |
-
require vkExUnit_get_directory() . '/plugins/other_widget/widget-page.php';
|
6 |
-
require vkExUnit_get_directory() . '/plugins/other_widget/widget-taxonomies.php';
|
7 |
-
require vkExUnit_get_directory() . '/plugins/other_widget/widget-archives.php';
|
8 |
-
require vkExUnit_get_directory() . '/plugins/other_widget/widget-pr-blocks.php';
|
9 |
-
require vkExUnit_get_directory() . '/plugins/other_widget/widget-side-child-page-list.php';
|
10 |
-
require vkExUnit_get_directory() . '/plugins/other_widget/widget-button.php';
|
11 |
-
require vkExUnit_get_directory() . '/plugins/other_widget/widget-banner.php';
|
12 |
-
// require vkExUnit_get_directory() . '/plugins/other_widget/widget-child-page-list.php';
|
13 |
-
|
14 |
-
/*-------------------------------------------*/
|
15 |
-
/* color picker
|
16 |
-
/*-------------------------------------------*/
|
17 |
-
// color picker js
|
18 |
-
add_action( 'admin_enqueue_scripts', 'vkExUnit_admin_scripts_color_picker' );
|
19 |
-
function vkExUnit_admin_scripts_color_picker() {
|
20 |
-
wp_enqueue_style( 'wp-color-picker' );
|
21 |
-
wp_enqueue_script( 'wp-color-picker' );
|
22 |
-
// カラーピッカー対象class指定 ( 外観 > ウィジェット 画面で効かないので一旦コメントアウト )
|
23 |
-
// wp_enqueue_script( 'colorpicker_script', plugins_url( 'js/admin-widget.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
|
24 |
-
}
|
25 |
-
// 外観 > ウィジェット 画面で動作させるために必要
|
26 |
-
add_action( 'admin_footer-widgets.php', 'print_scripts_pr_color' );
|
27 |
-
function print_scripts_pr_color() {
|
28 |
-
?>
|
29 |
-
<script type="text/javascript">
|
30 |
-
(function($){
|
31 |
-
function initColorPicker(widget) {
|
32 |
-
widget.find( '.color_picker' ).wpColorPicker( {
|
33 |
-
change: _.throttle( function() {
|
34 |
-
$(this).trigger('change');
|
35 |
-
}, 3000 )
|
36 |
-
});
|
37 |
-
}
|
38 |
-
|
39 |
-
function onFormUpdate(event, widget) {
|
40 |
-
initColorPicker(widget);
|
41 |
-
}
|
42 |
-
$(document).on('widget-added widget-updated', onFormUpdate );
|
43 |
-
$(document).ready( function() {
|
44 |
-
$('#widgets-right .widget:has(.color_picker)').each( function () {
|
45 |
-
initColorPicker( $(this) );
|
46 |
-
});
|
47 |
-
});
|
48 |
-
}(jQuery));
|
49 |
-
</script>
|
50 |
-
<?php }
|
51 |
-
|
52 |
-
/*-------------------------------------------*/
|
53 |
-
/* archives_where
|
54 |
-
/*-------------------------------------------*/
|
55 |
-
add_filter( 'getarchives_where', 'vkExUnit_info_getarchives_where', 10, 2 );
|
56 |
-
function vkExUnit_info_getarchives_where( $where, $r ) {
|
57 |
-
global $my_archives_post_type;
|
58 |
-
if ( isset( $r['post_type'] ) ) {
|
59 |
-
$my_archives_post_type = $r['post_type'];
|
60 |
-
$where = str_replace( '\'post\'', '\'' . $r['post_type'] . '\'', $where );
|
61 |
-
} else {
|
62 |
-
$my_archives_post_type = '';
|
63 |
-
}
|
64 |
-
return $where;
|
65 |
-
}
|
66 |
-
|
67 |
-
add_filter( 'get_archives_link', 'vkExUnit_rewrite_archives_link' );
|
68 |
-
function vkExUnit_rewrite_archives_link( $link_html ) {
|
69 |
-
global $my_archives_post_type;
|
70 |
-
if ( $my_archives_post_type && $my_archives_post_type != 'post' ) {
|
71 |
-
|
72 |
-
$link_url_before = preg_replace("/^.+<a.+href=\'(.+)\'.+$/is", "$1", $link_html );
|
73 |
-
if( $link_html == $link_url_before ) return $link_html;
|
74 |
-
|
75 |
-
$olink = parse_url($link_url_before);
|
76 |
-
if( preg_match("/\/".$my_archives_post_type."\/?/", $olink['path'] ) ) return $link_html;
|
77 |
-
|
78 |
-
if( ! isset( $olink['query'] ) ) $olink['query'] = '';
|
79 |
-
parse_str( $olink['query'], $query );
|
80 |
-
if( isset( $query['post_type'] ) && $query['post_type'] ) return $link_html;
|
81 |
-
|
82 |
-
$query['post_type'] = $my_archives_post_type;
|
83 |
-
$new_query = '?' . http_build_query($query);
|
84 |
-
$new_url = $olink['scheme'] . '://' . $olink['host'] . $olink['path'] . $new_query;
|
85 |
-
|
86 |
-
$link_html = preg_replace( "/href=\'(.+)\'/", "href='" . $new_url. "'", $link_html );
|
87 |
-
return $link_html;
|
88 |
-
}
|
89 |
-
return $link_html;
|
90 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins/post-type-manager-config.php
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*-------------------------------------------*/
|
3 |
-
/* Load modules
|
4 |
-
/*-------------------------------------------*/
|
5 |
-
if ( ! class_exists( 'Vk_post_type_manager' ) )
|
6 |
-
{
|
7 |
-
|
8 |
-
global $vk_post_type_manager_textdomain;
|
9 |
-
$vk_post_type_manager_textdomain = 'vkExUnit';
|
10 |
-
|
11 |
-
require( 'post-type-manager/class.post-type-manager.php' );
|
12 |
-
|
13 |
-
// /* transrate
|
14 |
-
// /*-------------------------------------------*/
|
15 |
-
// function XXXX_post_type_manager_translate(){
|
16 |
-
// __( 'Color', 'XXXX_plugin_text_domain_XXXX' );
|
17 |
-
// }
|
18 |
-
|
19 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins/sitemap_page/hide-controller.php
DELETED
@@ -1,126 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*-------------------------------------------*/
|
4 |
-
/* サイトマップ非表示用のメタボックスを追加
|
5 |
-
/*-------------------------------------------*/
|
6 |
-
|
7 |
-
/** アクションフックを使用して作成した関数を登録 */
|
8 |
-
add_action( 'admin_menu', 'veu_sitemap_hide_menu' );
|
9 |
-
|
10 |
-
/** メニュー作成用のコードを含む関数を作成 */
|
11 |
-
function veu_sitemap_hide_menu() {
|
12 |
-
|
13 |
-
// 現在存在する固定ページを取得
|
14 |
-
/*-------------------------------------------*/
|
15 |
-
add_meta_box(
|
16 |
-
'sitemap-meta-box', // metaboxのID
|
17 |
-
veu_get_little_short_name() . ' ' . __( 'Site Map Hide', 'vk-all-in-one-expansion-unit' ), // metaboxの表示名
|
18 |
-
'veu_sitemap_meta_box_callback', // このメタボックスに表示する中身の関数名
|
19 |
-
'page', // このメタボックスをどの投稿タイプで表示するのか?
|
20 |
-
'side' // 表示する位置
|
21 |
-
);
|
22 |
-
}
|
23 |
-
|
24 |
-
|
25 |
-
/*-------------------------------------------*/
|
26 |
-
/* 入力フィールドの生成
|
27 |
-
/*-------------------------------------------*/
|
28 |
-
|
29 |
-
function veu_sitemap_meta_box_callback() {
|
30 |
-
|
31 |
-
//CSRF対策の設定(フォームにhiddenフィールドとして追加するためのnonceを「'noncename__sitemap_hide」として設定)
|
32 |
-
wp_nonce_field( wp_create_nonce( __FILE__ ), 'noncename__sitemap_hide' );
|
33 |
-
|
34 |
-
global $post;
|
35 |
-
// カスタムフィールド 'sitemap_hide' の値を取得
|
36 |
-
$sitemap_hide = array();
|
37 |
-
$sitemap_hide = get_post_meta( $post->ID, 'sitemap_hide', true );
|
38 |
-
|
39 |
-
// チェックが入っている場合( 表示しない )
|
40 |
-
if ( $sitemap_hide ) {
|
41 |
-
$checked = ' checked';
|
42 |
-
} else {
|
43 |
-
$checked = '';
|
44 |
-
}
|
45 |
-
|
46 |
-
$label = __( 'Don\'t display on Sitemap.', 'vk-all-in-one-expansion-unit' );
|
47 |
-
echo '<ul>';
|
48 |
-
echo '<li><label>' . '<input type="checkbox" id="sitemap_hide" name="sitemap_hide" value="true"' . $checked . '> ' . $label . '</label></li>';
|
49 |
-
echo '</ul>';
|
50 |
-
|
51 |
-
}
|
52 |
-
|
53 |
-
|
54 |
-
/*-------------------------------------------*/
|
55 |
-
/* 入力された値の保存
|
56 |
-
/*-------------------------------------------*/
|
57 |
-
|
58 |
-
add_action( 'save_post', 'veu_sitemap_hide_controller_save' );
|
59 |
-
|
60 |
-
function veu_sitemap_hide_controller_save( $post_id ) {
|
61 |
-
global $post;
|
62 |
-
//設定したnonce を取得(CSRF対策)
|
63 |
-
$noncename__sitemap_hide = isset( $_POST['noncename__sitemap_hide'] ) ? $_POST['noncename__sitemap_hide'] : null;
|
64 |
-
//nonce を確認し、値が書き換えられていれば、何もしない(CSRF対策)
|
65 |
-
if ( ! wp_verify_nonce( $noncename__sitemap_hide, wp_create_nonce( __FILE__ ) ) ) {
|
66 |
-
return $post_id;
|
67 |
-
}
|
68 |
-
|
69 |
-
//自動保存ルーチンかどうかチェック。そうだった場合は何もしない(記事の自動保存処理として呼び出された場合の対策)
|
70 |
-
// if(defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { return $post_id; }
|
71 |
-
|
72 |
-
$field = 'sitemap_hide';
|
73 |
-
$field_value = ( isset( $_POST[ $field ] ) ) ? $_POST[ $field ] : '';
|
74 |
-
// データが空だったら入れる
|
75 |
-
if ( get_post_meta( $post_id, $field ) == '' ) {
|
76 |
-
add_post_meta( $post_id, $field, $field_value, true );
|
77 |
-
// 今入ってる値と違ってたらアップデートする
|
78 |
-
} elseif ( $field_value != get_post_meta( $post_id, $field, true ) ) {
|
79 |
-
update_post_meta( $post_id, $field, $field_value );
|
80 |
-
// 入力がなかったら消す
|
81 |
-
} elseif ( $field_value == '' ) {
|
82 |
-
delete_post_meta( $post_id, $field, get_post_meta( $post_id, $field, true ) );
|
83 |
-
}
|
84 |
-
|
85 |
-
} // function veu_sitemap_hide_controller_save(){
|
86 |
-
|
87 |
-
|
88 |
-
/*-------------------------------------------*/
|
89 |
-
/* サイトマップで非表示にする
|
90 |
-
/*-------------------------------------------*/
|
91 |
-
|
92 |
-
function veu_sitemap_exclude_page_ids() {
|
93 |
-
|
94 |
-
// meta_key が sitemap_hide が true で post_type が page の投稿を取得する
|
95 |
-
$args = array(
|
96 |
-
'posts_per_page' => -1, // 取得する数
|
97 |
-
'post_type' => 'page', // 投稿タイプ名
|
98 |
-
'meta_query' => array(
|
99 |
-
array(
|
100 |
-
'key' => 'sitemap_hide',
|
101 |
-
'value' => 'true',
|
102 |
-
),
|
103 |
-
),
|
104 |
-
);
|
105 |
-
$sitemap_hide_customPosts = get_posts( $args );
|
106 |
-
|
107 |
-
// 取得した投稿データをループして、id名を $excludes に追加していく
|
108 |
-
// 「sitemap_hide」フィールドの値が格納されていたら「$excludes」に ID を追加する処理を開始
|
109 |
-
if ( $sitemap_hide_customPosts ) {
|
110 |
-
$excludes = '';
|
111 |
-
foreach ( $sitemap_hide_customPosts as $key => $value ) {
|
112 |
-
// print_r($value);
|
113 |
-
|
114 |
-
if ( ! $excludes ) {
|
115 |
-
$excludes .= $value->ID;
|
116 |
-
} else {
|
117 |
-
$excludes .= ',' . $value->ID;
|
118 |
-
}
|
119 |
-
|
120 |
-
$excludes = esc_attr( $excludes );
|
121 |
-
}
|
122 |
-
|
123 |
-
return $excludes;
|
124 |
-
} // if( $sitemap_hide_customPosts ) {
|
125 |
-
|
126 |
-
} // function veu_sitemap_exclude_page_ids() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins/sitemap_page/sitemap_admin.php
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$options = veu_get_sitemap_options();
|
3 |
-
// $options_default = veu_get_sns_options_default();
|
4 |
-
/*-------------------------------------------*/
|
5 |
-
/* sitemap page
|
6 |
-
/*-------------------------------------------*/
|
7 |
-
?>
|
8 |
-
<div id="sitemapSetting" class="sectionBox">
|
9 |
-
<h3><?php _e( 'HTML Sitemap Settings', 'vk-all-in-one-expansion-unit' ); ?></h3>
|
10 |
-
<table class="form-table">
|
11 |
-
<!-- sitemap -->
|
12 |
-
<tr>
|
13 |
-
<th><?php _e( 'Exclude page Settings', 'vk-all-in-one-expansion-unit' ); ?></th>
|
14 |
-
<td>
|
15 |
-
<?php _e( 'Input you want to exclude page id.', 'vk-all-in-one-expansion-unit' ); ?><br />
|
16 |
-
<p><input type="text" name="vkExUnit_sitemap_options[excludeId]" id="excludeId" value="<?php echo esc_attr( $options['excludeId'] ); ?>" style="width:50%;" /></p>
|
17 |
-
<?php _e( '* Please enter separated by ","(commas) if there is more than one page ID that you want to exclude.', 'vk-all-in-one-expansion-unit' ); ?>
|
18 |
-
</td>
|
19 |
-
</tr>
|
20 |
-
</table>
|
21 |
-
<?php submit_button(); ?>
|
22 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins/sns/function_meta_box.php
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class vkExUnit_sns_metabox {
|
4 |
-
|
5 |
-
private static $instance;
|
6 |
-
|
7 |
-
public static function instance() {
|
8 |
-
if ( isset( self::$instance ) ) {
|
9 |
-
return self::$instance; }
|
10 |
-
|
11 |
-
self::$instance = new vkExUnit_sns_metabox;
|
12 |
-
self::$instance->run_init();
|
13 |
-
return self::$instance;
|
14 |
-
}
|
15 |
-
|
16 |
-
|
17 |
-
protected function run_init() {
|
18 |
-
add_action( 'admin_menu', array( $this, 'add_custom_field' ) );
|
19 |
-
add_action( 'save_post', array( $this, 'save_custom_field' ) );
|
20 |
-
}
|
21 |
-
|
22 |
-
|
23 |
-
public function add_custom_field() {
|
24 |
-
$args = array(
|
25 |
-
'public' => true,
|
26 |
-
);
|
27 |
-
$post_types = get_post_types( $args, 'object' );
|
28 |
-
foreach ( $post_types as $key => $post_type ) {
|
29 |
-
add_meta_box( 'vkExUnit_SnsTitle', __( 'Sns Title', 'vk-all-in-one-expansion-unit' ), array( $this, 'render_meta_box' ), $key, 'normal', 'high' );
|
30 |
-
}
|
31 |
-
}
|
32 |
-
|
33 |
-
|
34 |
-
public function render_meta_box() {
|
35 |
-
global $post;
|
36 |
-
$disable_autoeyecatch = get_post_meta( get_the_id(), 'vkExUnit_sns_title', true );
|
37 |
-
|
38 |
-
echo '<input type="hidden" name="_nonce_vkExUnit_sns_title" id="_nonce_vkExUnit_sns_title_noonce" value="' . wp_create_nonce( plugin_basename( __FILE__ ) ) . '" />';
|
39 |
-
echo '<input type=text name="vkExUnit_sns_title" value="' . $disable_autoeyecatch . '" size=50 />';
|
40 |
-
echo '<p>' . __( 'if filled this area then override title of OGP and Twitter Card', 'vk-all-in-one-expansion-unit' ) . '</p>';
|
41 |
-
|
42 |
-
}
|
43 |
-
|
44 |
-
|
45 |
-
public function save_custom_field( $post_id ) {
|
46 |
-
|
47 |
-
$metaKeyword = isset( $_POST['_nonce_vkExUnit_sns_title'] ) ? htmlspecialchars( $_POST['_nonce_vkExUnit_sns_title'] ) : null;
|
48 |
-
|
49 |
-
// if autosave then deny
|
50 |
-
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
|
51 |
-
return $post_id; }
|
52 |
-
|
53 |
-
if ( ! wp_verify_nonce( $metaKeyword, plugin_basename( __FILE__ ) ) ) {
|
54 |
-
return $post_id;
|
55 |
-
}
|
56 |
-
|
57 |
-
delete_post_meta( $post_id, 'vkExUnit_sns_title' );
|
58 |
-
if ( isset( $_POST['vkExUnit_sns_title'] ) ) {
|
59 |
-
add_post_meta( $post_id, 'vkExUnit_sns_title', $_POST['vkExUnit_sns_title'] );
|
60 |
-
}
|
61 |
-
}
|
62 |
-
}
|
63 |
-
|
64 |
-
|
65 |
-
vkExUnit_sns_metabox::instance();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins/sns/hide_controller.php
DELETED
@@ -1,139 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*-------------------------------------------*/
|
3 |
-
/* SNS非表示用のメタボックスを追加
|
4 |
-
/*-------------------------------------------*/
|
5 |
-
add_action( 'admin_menu', 'veu_sns_add_hide_meta_box' );
|
6 |
-
|
7 |
-
// add meta_box
|
8 |
-
function veu_sns_add_hide_meta_box() {
|
9 |
-
$options = veu_get_sns_options();
|
10 |
-
// ExUnitのメイン設定画面で「シェアボタンを表示する」にチェックが入っていない場合
|
11 |
-
if ( empty( $options['enableSnsBtns'] ) ) {
|
12 |
-
// 何も表示しないで終了
|
13 |
-
return;
|
14 |
-
}
|
15 |
-
|
16 |
-
// 現在存在する投稿タイプを取得
|
17 |
-
/*-------------------------------------------*/
|
18 |
-
// 取得する条件
|
19 |
-
$args = array(
|
20 |
-
'public' => true,
|
21 |
-
);
|
22 |
-
// タイプの取得を実行
|
23 |
-
$post_types = get_post_types( $args );
|
24 |
-
|
25 |
-
foreach ( (array) $post_types as $post_type ) {
|
26 |
-
add_meta_box(
|
27 |
-
'sns', // metaboxのID
|
28 |
-
veu_get_little_short_name() . ' ' . __( 'Share bottons', 'vk-all-in-one-expansion-unit' ), // metaboxの表示名
|
29 |
-
'veu_sns_share_botton_hide_meta_box_body', // このメタボックスに表示する中身の関数名
|
30 |
-
$post_type, // このメタボックスをどの投稿タイプで表示するのか?
|
31 |
-
'side' // 表示する位置
|
32 |
-
);
|
33 |
-
} // foreach ( (array) $post_types as $post_type ) {
|
34 |
-
|
35 |
-
}
|
36 |
-
|
37 |
-
/*-------------------------------------------*/
|
38 |
-
/* 入力フィールドの生成
|
39 |
-
/*-------------------------------------------*/
|
40 |
-
function veu_sns_is_display_hide_chekbox( $post_type ) {
|
41 |
-
// SNS設定のオプション値を取得
|
42 |
-
$options = veu_get_sns_options();
|
43 |
-
|
44 |
-
// 表示する にチェックが入っていない場合は 投稿詳細画面でボタン非表示のチェックボックスを表示しない
|
45 |
-
if ( empty( $options['enableSnsBtns'] ) ) {
|
46 |
-
return false;
|
47 |
-
}
|
48 |
-
|
49 |
-
// シェアボタンを表示しない投稿タイプが配列で指定されている場合(チェックが入ってたら)
|
50 |
-
if ( isset( $options['snsBtn_exclude_post_types'] ) && is_array( $options['snsBtn_exclude_post_types'] ) ) {
|
51 |
-
foreach ( $options['snsBtn_exclude_post_types'] as $key => $value ) {
|
52 |
-
// 非表示チェックが入っている場合
|
53 |
-
if ( $value ) {
|
54 |
-
// 今の投稿タイプと比較。同じだったら...
|
55 |
-
if ( $post_type == $key ) {
|
56 |
-
return false;
|
57 |
-
}
|
58 |
-
}
|
59 |
-
}
|
60 |
-
}
|
61 |
-
return true;
|
62 |
-
}
|
63 |
-
function veu_sns_share_botton_hide_meta_box_body() {
|
64 |
-
|
65 |
-
//今編集している投稿の投稿タイプを取得
|
66 |
-
$post_type = get_post_type();
|
67 |
-
|
68 |
-
// 編集中のページの投稿タイプ が シェアボタンを表示しない投稿タイプに含まれている場合
|
69 |
-
if ( ! veu_sns_is_display_hide_chekbox( $post_type ) ) {
|
70 |
-
|
71 |
-
// 「この投稿タイプではシェアボタンを表示しないように設定されています。」を表示
|
72 |
-
echo __( 'This post type is not set to display the share button.', 'vk-all-in-one-expansion-unit' ) . '<br>';
|
73 |
-
echo' <a href="' . admin_url( '/admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options' ) . '" target="_blank">シェアボタンの表示設定</a>';
|
74 |
-
|
75 |
-
} else {
|
76 |
-
|
77 |
-
// シェアボタンを表示しない設定をするチェックボックスを表示
|
78 |
-
|
79 |
-
//CSRF対策の設定(フォームにhiddenフィールドとして追加するためのnonceを「'noncename__sns_share_botton_hide」として設定)
|
80 |
-
wp_nonce_field( wp_create_nonce( __FILE__ ), 'noncename__sns_share_botton_hide' );
|
81 |
-
|
82 |
-
global $post;
|
83 |
-
// カスタムフィールド 'sns_share_botton_hide' の値を取得
|
84 |
-
$sns_share_botton_hide = get_post_meta( $post->ID, 'sns_share_botton_hide', true );
|
85 |
-
|
86 |
-
// チェックが入っている場合( 表示しない )
|
87 |
-
if ( $sns_share_botton_hide ) {
|
88 |
-
$checked = ' checked';
|
89 |
-
} else {
|
90 |
-
$checked = '';
|
91 |
-
}
|
92 |
-
|
93 |
-
$label = __( 'Don\'t display share bottons.', 'vk-all-in-one-expansion-unit' );
|
94 |
-
echo '<ul>';
|
95 |
-
echo '<li><label>' . '<input type="checkbox" id="sns_share_botton_hide" name="sns_share_botton_hide" value="true"' . $checked . '> ' . $label . '</label></li>';
|
96 |
-
echo '</ul>';
|
97 |
-
|
98 |
-
}
|
99 |
-
|
100 |
-
}
|
101 |
-
|
102 |
-
/*-------------------------------------------*/
|
103 |
-
/* 入力された値の保存
|
104 |
-
/*-------------------------------------------*/
|
105 |
-
add_action( 'save_post', 'sns_save_hide_items' );
|
106 |
-
|
107 |
-
function sns_save_hide_items( $post_id ) {
|
108 |
-
global $post;
|
109 |
-
|
110 |
-
//設定したnonce を取得(CSRF対策)
|
111 |
-
$noncename__sns_share_botton_hide = isset( $_POST['noncename__sns_share_botton_hide'] ) ? $_POST['noncename__sns_share_botton_hide'] : null;
|
112 |
-
|
113 |
-
//nonce を確認し、値が書き換えられていれば、何もしない(CSRF対策)
|
114 |
-
if ( ! wp_verify_nonce( $noncename__sns_share_botton_hide, wp_create_nonce( __FILE__ ) ) ) {
|
115 |
-
return $post_id;
|
116 |
-
}
|
117 |
-
|
118 |
-
//自動保存ルーチンかどうかチェック。そうだった場合は何もしない(記事の自動保存処理として呼び出された場合の対策)
|
119 |
-
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
|
120 |
-
return $post_id; }
|
121 |
-
|
122 |
-
$field = 'sns_share_botton_hide';
|
123 |
-
$field_value = ( isset( $_POST[ $field ] ) ) ? $_POST[ $field ] : '';
|
124 |
-
// データが空だったら入れる
|
125 |
-
if ( get_post_meta( $post_id, $field ) == '' ) {
|
126 |
-
add_post_meta( $post_id, $field, $field_value, true );
|
127 |
-
// 今入ってる値と違ってたらアップデートする
|
128 |
-
} elseif ( $field_value != get_post_meta( $post_id, $field, true ) ) {
|
129 |
-
update_post_meta( $post_id, $field, $field_value );
|
130 |
-
// 入力がなかったら消す
|
131 |
-
} elseif ( $field_value == '' ) {
|
132 |
-
delete_post_meta( $post_id, $field, get_post_meta( $post_id, $field, true ) );
|
133 |
-
}
|
134 |
-
|
135 |
-
}
|
136 |
-
|
137 |
-
/*-------------------------------------------*/
|
138 |
-
/* 非表示を実行
|
139 |
-
/*-------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins/template-tags/template-tags-veu-old.php
DELETED
@@ -1,57 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/*
|
4 |
-
このファイルの元ファイルは
|
5 |
-
https://github.com/vektor-inc/vektor-wp-libraries
|
6 |
-
にあります。修正の際は上記リポジトリのデータを修正してください。
|
7 |
-
*/
|
8 |
-
|
9 |
-
if ( ! function_exists( 'vkExUnit_is_excerpt' ) ){
|
10 |
-
function vkExUnit_is_excerpt(){
|
11 |
-
return vk_is_excerpt();
|
12 |
-
}
|
13 |
-
}
|
14 |
-
|
15 |
-
if ( ! function_exists( 'vkExUnit_get_name' ) ){
|
16 |
-
function vkExUnit_get_name() {
|
17 |
-
return veu_get_name();
|
18 |
-
}
|
19 |
-
}
|
20 |
-
|
21 |
-
if ( ! function_exists( 'vkExUnit_get_little_short_name' ) ){
|
22 |
-
function vkExUnit_get_little_short_name(){
|
23 |
-
return veu_get_little_short_name();
|
24 |
-
}
|
25 |
-
}
|
26 |
-
|
27 |
-
if ( ! function_exists( 'vkExUnit_get_short_name' ) ){
|
28 |
-
function vkExUnit_get_short_name(){
|
29 |
-
return veu_get_short_name();
|
30 |
-
}
|
31 |
-
}
|
32 |
-
|
33 |
-
if ( ! function_exists( 'vkExUnit_get_page_for_posts' ) ){
|
34 |
-
function vkExUnit_get_page_for_posts(){
|
35 |
-
return vk_get_page_for_posts();
|
36 |
-
}
|
37 |
-
}
|
38 |
-
|
39 |
-
if ( ! function_exists( 'vkExUnit_get_post_type' ) ){
|
40 |
-
function vkExUnit_get_post_type(){
|
41 |
-
return vk_get_post_type();
|
42 |
-
}
|
43 |
-
}
|
44 |
-
|
45 |
-
if ( ! function_exists( 'vkExUnit_get_the_archive_title' ) ){
|
46 |
-
function vkExUnit_get_the_archive_title(){
|
47 |
-
$title = vk_get_the_archive_title();
|
48 |
-
return apply_filters( 'vkExUnit_get_the_archive_title', $title );
|
49 |
-
}
|
50 |
-
}
|
51 |
-
|
52 |
-
if ( ! function_exists( 'vkExUnit_get_pageDescription' ) ){
|
53 |
-
function vkExUnit_get_pageDescription(){
|
54 |
-
$title = vk_get_page_description();
|
55 |
-
return apply_filters( 'vkExUnit_pageDescriptionCustom', $title );
|
56 |
-
}
|
57 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins/vk-blocks/build/block-build.js
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){"use strict";e.exports=n(2)},function(e,t,n){var o;
|
2 |
-
/*!
|
3 |
-
Copyright (c) 2017 Jed Watson.
|
4 |
-
Licensed under the MIT License (MIT), see
|
5 |
-
http://jedwatson.github.io/classnames
|
6 |
-
*/
|
7 |
-
/*!
|
8 |
-
Copyright (c) 2017 Jed Watson.
|
9 |
-
Licensed under the MIT License (MIT), see
|
10 |
-
http://jedwatson.github.io/classnames
|
11 |
-
*/
|
12 |
-
!function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)&&o.length){var l=r.apply(null,o);l&&e.push(l)}else if("object"===a)for(var c in o)n.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){"use strict";
|
13 |
-
/** @license React v16.7.0
|
14 |
-
* react.production.min.js
|
15 |
-
*
|
16 |
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
17 |
-
*
|
18 |
-
* This source code is licensed under the MIT license found in the
|
19 |
-
* LICENSE file in the root directory of this source tree.
|
20 |
-
*/var o=n(3),r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,c=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,p=r?Symbol.for("react.context"):60110,m=r?Symbol.for("react.concurrent_mode"):60111,b=r?Symbol.for("react.forward_ref"):60112,f=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.memo"):60115,k=r?Symbol.for("react.lazy"):60116,d="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);!function(e,t,n,o,r,a,l,c){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=[n,o,r,a,l,c],s=0;(e=Error(t.replace(/%s/g,function(){return i[s++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function h(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||y}function E(){}function C(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||y}h.prototype.isReactComponent={},h.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&g("85"),this.updater.enqueueSetState(this,e,t,"setState")},h.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=h.prototype;var w=C.prototype=new E;w.constructor=C,o(w,h.prototype),w.isPureReactComponent=!0;var N={current:null,currentDispatcher:null},x=Object.prototype.hasOwnProperty,B={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var o=void 0,r={},l=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(l=""+t.key),t)x.call(t,o)&&!B.hasOwnProperty(o)&&(r[o]=t[o]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var s=Array(i),u=0;u<i;u++)s[u]=arguments[u+2];r.children=s}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===r[o]&&(r[o]=i[o]);return{$$typeof:a,type:e,key:l,ref:c,props:r,_owner:N.current}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var O=/\/+/g,R=[];function I(e,t,n,o){if(R.length){var r=R.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=o,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:o,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>R.length&&R.push(e)}function P(e,t,n){return null==e?0:function e(t,n,o,r){var c=typeof t;"undefined"!==c&&"boolean"!==c||(t=null);var i=!1;if(null===t)i=!0;else switch(c){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case a:case l:i=!0}}if(i)return o(r,t,""===n?"."+j(t,0):n),1;if(i=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var u=n+j(c=t[s],s);i+=e(c,u,o,r)}else if(u=null===t||"object"!=typeof t?null:"function"==typeof(u=d&&t[d]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),s=0;!(c=t.next()).done;)i+=e(c=c.value,u=n+j(c,s++),o,r);else"object"===c&&g("31","[object Object]"==(o=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":o,"");return i}(e,"",t,n)}function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function z(e,t){e.func.call(e.context,t,e.count++)}function M(e,t,n){var o=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,o,n,function(e){return e}):null!=e&&(T(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+n)),o.push(e))}function F(e,t,n,o,r){var a="";null!=n&&(a=(""+n).replace(O,"$&/")+"/"),P(e,M,t=I(t,a,o,r)),A(t)}var L={Children:{map:function(e,t,n){if(null==e)return e;var o=[];return F(e,o,null,t,n),o},forEach:function(e,t,n){if(null==e)return e;P(e,z,t=I(null,null,t,n)),A(t)},count:function(e){return P(e,function(){return null},null)},toArray:function(e){var t=[];return F(e,t,null,function(e){return e}),t},only:function(e){return T(e)||g("143"),e}},createRef:function(){return{current:null}},Component:h,PureComponent:C,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:b,render:e}},lazy:function(e){return{$$typeof:k,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:v,type:e,compare:void 0===t?null:t}},Fragment:c,StrictMode:i,Suspense:f,createElement:S,cloneElement:function(e,t,n){null==e&&g("267",e);var r=void 0,l=o({},e.props),c=e.key,i=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(i=t.ref,s=N.current),void 0!==t.key&&(c=""+t.key);var u=void 0;for(r in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)x.call(t,r)&&!B.hasOwnProperty(r)&&(l[r]=void 0===t[r]&&void 0!==u?u[r]:t[r])}if(1===(r=arguments.length-2))l.children=n;else if(1<r){u=Array(r);for(var p=0;p<r;p++)u[p]=arguments[p+2];l.children=u}return{$$typeof:a,type:e.type,key:c,ref:i,props:l,_owner:s}},createFactory:function(e){var t=S.bind(null,e);return t.type=e,t},isValidElement:T,version:"16.7.0",unstable_ConcurrentMode:m,unstable_Profiler:s,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:N,assign:o}},U={default:L},W=U&&L||U;e.exports=W.default||W},function(e,t,n){"use strict";
|
21 |
-
/*
|
22 |
-
object-assign
|
23 |
-
(c) Sindre Sorhus
|
24 |
-
@license MIT
|
25 |
-
*/var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var s in n=Object(arguments[i]))r.call(n,s)&&(c[s]=n[s]);if(o){l=o(n);for(var u=0;u<l.length;u++)a.call(n,l[u])&&(c[l[u]]=n[l[u]])}}return c}},function(e,t){var n=wp.i18n.__,o=wp.blocks.registerBlockType,r=wp.components,a=(r.RangeControl,r.RadioControl),l=r.PanelBody,c=r.Button,i=wp.element.Fragment,s=wp.editor,u=s.RichText,p=s.InspectorControls,m=s.MediaUpload,b=s.ColorPalette,f=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},React.createElement("path",{d:"M544 450.583c0 22.75 13.014 42.454 32 52.092v7.969c-5.313 0.727-10.736 1.112-16.25 1.112-34.004 0-64.674-14.264-86.361-37.132-13.111 3.491-27.001 5.376-41.389 5.376-79.529 0-144-57.308-144-128s64.471-128 144-128c79.529 0 144 57.308 144 128 0 27.674-9.882 53.296-26.678 74.233-3.412 7.412-5.322 15.656-5.322 24.35zM115.339 110.593c-33.107 26.899-51.339 61.492-51.339 97.407 0 20.149 5.594 39.689 16.626 58.075 11.376 18.96 28.491 36.293 49.494 50.126 15.178 9.996 25.39 25.974 28.088 43.947 0.9 5.992 1.464 12.044 1.685 18.062 3.735-3.097 7.375-6.423 10.94-9.988 12.077-12.076 28.39-18.745 45.251-18.745 2.684 0 5.381 0.168 8.078 0.512 10.474 1.331 21.172 2.008 31.797 2.010v64c-13.564-0.001-26.877-0.869-39.871-2.521-54.989 54.989-120.625 64.85-184.088 66.298v-13.458c34.268-16.789 64-47.37 64-82.318 0-4.877-0.379-9.665-1.082-14.348-57.898-38.132-94.918-96.377-94.918-161.652 0-114.875 114.615-208 256-208 139.229 0 252.496 90.307 255.918 202.76-20.548-9.158-42.92-14.711-66.131-16.289-5.765-28.034-22.701-54.408-49.126-75.878-17.661-14.349-38.458-25.695-61.814-33.722-24.853-8.54-51.38-12.871-78.847-12.871s-53.994 4.331-78.847 12.871c-23.356 8.027-44.153 19.372-61.814 33.722z"}));o("vk-blocks/balloon",{title:n("Ballon","vk-blocks"),icon:f,category:"vk-blocks-cat",attributes:{content:{source:"html",selector:"p"},balloonName:{source:"html",selector:"figcaption"},balloonType:{type:"string",default:"type-serif"},balloonBgColor:{type:"string"},balloonAlign:{type:"string",default:"position-left"},IconImage:{type:"string",default:null}},edit:function(e){var t=e.attributes,o=e.className,r=e.setAttributes,s=t.content,f=t.balloonName,v=t.balloonType,k=t.balloonBgColor,d=t.balloonAlign,g=t.IconImage;return React.createElement(i,null,React.createElement(p,null,React.createElement(l,{title:n("Balloon setting","vk-blocks")},React.createElement(a,{label:n("Position","vk-blocks"),help:n("Please specify the layout of the balloon.","vk-blocks"),selected:d,options:[{label:n("Left","vk-blocks"),value:"position-left"},{label:n("Right","vk-blocks"),value:"position-right"}],onChange:function(e){return r({balloonAlign:e})}}),React.createElement(a,{label:n("Type","vk-blocks"),help:n("Please select the type of balloon.","vk-blocks"),selected:v,options:[{label:n("Serif","vk-blocks"),value:"type-serif"},{label:n("Thinking","vk-blocks"),value:"type-think"}],onChange:function(e){return r({balloonType:e})}}),React.createElement(b,{value:k,onChange:function(e){return r({balloonBgColor:e})}}))),React.createElement("div",{className:"".concat(o," vk_balloon vk_balloon-").concat(d," vk_balloon-").concat(v)},React.createElement("div",{className:"vk_balloon_icon"},React.createElement(m,{onSelect:function(e){return r({IconImage:e.sizes.full.url})},type:"image",className:"vk_balloon_icon_image",value:g,render:function(e){var t=e.open;return React.createElement(c,{onClick:t,className:g?"image-button":"button button-large"},g?React.createElement("img",{className:"vk_balloon_icon_image",src:g,alt:n("Upload image","vk-blocks")}):n("Select image","vk-blocks"))}}),React.createElement(u,{tagName:"figcaption",className:"vk_balloon_icon_name",onChange:function(e){return r({balloonName:e})},value:f,placeholder:n("Icon Name","vk-blocks")})),React.createElement(u,{style:{background:k,border:k},tagName:"p",className:"vk_balloon_content",onChange:function(e){return r({content:e})},value:s,placeholder:n("Input text","vk-blocks")})))},save:function(e){var t=e.attributes,n=(e.className,t.content),o=t.balloonName,r=t.balloonType,a=t.balloonBgColor,l=t.balloonAlign,c=t.IconImage;return React.createElement("div",{className:"vk_balloon vk_balloon-".concat(l," vk_balloon-").concat(r)},React.createElement("div",{className:"vk_balloon_icon"},c?React.createElement("figure",null,React.createElement("img",{className:"vk_balloon_icon_image",src:c,alt:""}),React.createElement(u.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:o})):""),React.createElement(u.Content,{className:"vk_balloon_content",style:{background:a,border:a},tagName:"p",value:n}))}})},function(e,t,n){"use strict";n.r(t);var o=n(0),r=n.n(o);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,i(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.attributes,t=e.unit,n=e.pc,o=e.tablet,a=e.mobile,l=this.props.className;return r.a.createElement("div",{className:"".concat(l," vk_spacer")},r.a.createElement("div",{className:"vk_spacer-display-pc",style:{height:n+t}}),r.a.createElement("div",{className:"vk_spacer-display-tablet",style:{height:o+t}}),r.a.createElement("div",{className:"vk_spacer-display-mobile",style:{height:a+t}}))}}])&&l(n.prototype,o),a&&l(n,a),t}();function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var k=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),b(this,f(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.attributes,t=e.unit,n=e.pc,o=e.tablet,a=e.mobile;return r.a.createElement("div",{className:"vk_spacer"},r.a.createElement("div",{className:"vk_spacer-display-pc",style:{height:n+t}}),r.a.createElement("div",{className:"vk_spacer-display-tablet",style:{height:o+t}}),r.a.createElement("div",{className:"vk_spacer-display-mobile",style:{height:a+t}}))}}])&&m(n.prototype,o),a&&m(n,a),t}(),d=(wp.editor.RichText,[{attributes:{unit:{type:"string",default:"px"},pc:{type:"number",default:50},tablet:{type:"number",default:10},mobile:{type:"number",default:10}},save:function(e){var t=e.attributes;return r.a.createElement(k,{attributes:t})}}]),g=wp.i18n.__,y=wp.blocks.registerBlockType,_=wp.components,h=_.RangeControl,E=_.PanelBody,C=_.BaseControl,w=_.SelectControl,N=wp.element.Fragment,x=wp.editor.InspectorControls,B=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("g",null,r.a.createElement("rect",{x:"108.8",y:"18.7",width:"358.5",height:"40"}),r.a.createElement("rect",{x:"108.8",y:"453.3",width:"358.5",height:"40"}),r.a.createElement("polygon",{points:"171.4,253.2 131.4,253.2 131.4,412.6 290.8,412.6 290.8,372.6 199.7,372.6 404.6,167.7 404.6,258.8 444.6,258.8 444.6,99.4 285.2,99.4 285.2,139.4 376.3,139.4 171.4,344.3 \t"})));y("vk-blocks/spacer",{title:g("Responsive Spacer","vk-blocks"),icon:B,category:"vk-blocks-cat-layout",attributes:{unit:{type:"string",default:"px"},pc:{type:"number",default:50},tablet:{type:"number",default:10},mobile:{type:"number",default:10}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,a=t.unit,l=t.pc,c=t.tablet,i=t.mobile;return r.a.createElement(N,null,r.a.createElement(x,null,r.a.createElement(E,null,r.a.createElement(w,{label:g("Unit Type","vk-blocks"),value:a,onChange:function(e){return n({unit:e})},options:[{value:"px",label:g("px","vk-blocks")},{value:"em",label:g("em","vk-blocks")},{value:"rem",label:g("rem","vk-blocks")},{value:"vw",label:g("vw","vk-blocks")}]}),r.a.createElement(C,{label:g("Height for each device.","vk-blocks")},r.a.createElement(h,{label:g("PC","vk-blocks"),value:l,onChange:function(e){return n({pc:e})}}),r.a.createElement(h,{label:g("Tablet","vk-blocks"),value:c,onChange:function(e){return n({tablet:e})}}),r.a.createElement(h,{label:g("Mobile","vk-blocks"),value:i,onChange:function(e){return n({mobile:e})}})))),r.a.createElement(u,{attributes:t,className:o}))},save:function(e){var t=e.attributes;return r.a.createElement(u,{attributes:t})},deprecated:d});var S=function(e,t,n,o){var r,a,l;return t||(t="#fff"),"tilt"===o?(r=Math.abs(e),l=function(e,t){if(e>0)return React.createElement("path",{d:"m0,".concat(100-e," L100,100 L0,100 z"),strokeWidth:"0",fill:t});if(e<0){var n=Math.abs(e);return React.createElement("path",{d:"m100,".concat(100-n," L0,100 L100,100 z"),strokeWidth:"0",fill:t})}}(e,t)):"curve"===o?(e>0?r=Math.abs(e):e<0&&(r=2*Math.abs(e)),l=function(e,t){return e>0?React.createElement("path",{d:"m0,".concat(100-e," q50,").concat(2*e,",100,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):e<0?React.createElement("path",{d:"m0,100 q50,".concat(2*e,",100,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):void 0}(e,t)):"wave"===o?(r=Math.abs(e),l=function(e,t){return e>0?React.createElement("path",{d:"m0,".concat(100-e/2," q20,").concat(e,",40,0 t40,0 t40,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):e<0?React.createElement("path",{d:"m0,".concat(e/2+100," q20,").concat(e,",40,0 t40,0 t40,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):void 0}(e,t)):"triangle"===o&&(r=Math.abs(e),l=function(e,t){var n=Math.abs(e),o=n/4;return e>0?React.createElement("path",{d:"m0,100 h".concat(50-o," l").concat(o,",-").concat(n," l").concat(o,",").concat(n," h").concat(o," v100 h-100 z"),strokeWidth:"0",fill:t}):e<0?React.createElement("path",{d:"m0,".concat(100-n," h").concat(50-o," l").concat(o,",").concat(n," l").concat(o,",-").concat(n," h").concat(50-o," v").concat(n+1," h-100 z"),strokeWidth:"0",fill:t}):void 0}(e,t)),a=o,"upper"===n?React.createElement("div",{className:"vk_outer_separator vk_outer_separator-position-upper vk_outer_separator-type-".concat(a),style:{paddingBottom:r+"px"}},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"none"},l)):"lower"===n?React.createElement("div",{className:"vk_outer_separator vk_outer_separator-position-lower vk_outer_separator-type-".concat(a),style:{paddingTop:r+"px"}},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"none"},l)):void 0};function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function R(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var P=wp.editor.InnerBlocks;function j(e,t){var n=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i),o=null;return n&&(o=n.slice(1,4).map(function(e){return parseInt(e,16)})),(n=e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(o=n.slice(1,4).map(function(e){return 17*parseInt(e,16)})),o?"rgba(".concat(o[0],", ").concat(o[1],", ").concat(o[2],", ").concat(t,")"):null}var z=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),R(this,I(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e,t,n,o,a,l,c,i,s,u,p,m=this.props.attributes,b=m.bgColor,f=m.bgImage,v=m.bgPosition,k=m.outerWidth,d=m.padding_left_and_right,g=m.padding_top_and_bottom,y=m.opacity,_=m.upper_level,h=m.lower_level,E=m.upperDividerBgColor,C=m.lowerDividerBgColor,w=m.dividerType,N=m.borderWidth,x=m.borderStyle,B=m.borderColor,T=m.borderRadius,O=m.anchor,R=this.props.className,I=this.props.for_;return o=" vk_outer-width-".concat(k),b=j(b||"#fff",y),n="parallax"===v?" vk_outer-bgPosition-parallax vk-prlx":"fixed"===v?" vk_outer-bgPosition-fixed":" vk_outer-bgPosition-normal",e="1"===d?" vk_outer-paddingLR-use":" vk_outer-paddingLR-none",t="1"===g?" vk_outer-paddingVertical-use":" vk_outer-paddingVertical-none",_&&(c="upper"),h&&(i="lower"),"edit"===I?a=r.a.createElement(P,null):(a=r.a.createElement(P.Content,null),l="vk_outer_container"),s=f?"linear-gradient(".concat(b,", ").concat(b,"), url(").concat(f,")"):"linear-gradient(".concat(b,", ").concat(b,")"),B||(B="#fff"),0===_&&0===h?(u="".concat(N,"px ").concat(x," ").concat(B),p="".concat(T,"px")):(u="none",p="0px"),r.a.createElement("div",{id:O,className:R+" vk_outer"+o+e+t+n,style:{background:s,border:u,borderRadius:p}},S(_,E,c,w),r.a.createElement("div",{className:l},a),S(h,C,i,w))}}])&&O(n.prototype,o),a&&O(n,a),t}(),M=function(e,t,n,o){var r,a,l;return t||(t="#fff"),"tilt"===o?(r=Math.abs(e),l=function(e,t){if(e>0)return React.createElement("path",{d:"m0,".concat(100-e," L100,100 L0,100 z"),strokeWidth:"0",fill:t});if(e<0){var n=Math.abs(e);return React.createElement("path",{d:"m100,".concat(100-n," L0,100 L100,100 z"),strokeWidth:"0",fill:t})}}(e,t)):"curve"===o?(e>0?r=Math.abs(e):e<0&&(r=2*Math.abs(e)),l=function(e,t){return e>0?React.createElement("path",{d:"m0,".concat(100-e," q50,").concat(2*e,",100,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):e<0?React.createElement("path",{d:"m0,100 q50,".concat(2*e,",100,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):void 0}(e,t)):"wave"===o?(r=Math.abs(e),l=function(e,t){return e>0?React.createElement("path",{d:"m0,".concat(100-e/2," q20,").concat(e,",40,0 t40,0 t40,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):e<0?React.createElement("path",{d:"m0,".concat(e/2+100," q20,").concat(e,",40,0 t40,0 t40,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):void 0}(e,t)):"triangle"===o&&(r=Math.abs(e),l=function(e,t){var n=Math.abs(e),o=n/4;return e>0?React.createElement("path",{d:"m0,100 h".concat(50-o," l").concat(o,",-").concat(n," l").concat(o,",").concat(n," h").concat(o," v100 h-100 z"),strokeWidth:"0",fill:t}):e<0?React.createElement("path",{d:"m0,".concat(100-n," h").concat(50-o," l").concat(o,",").concat(n," l").concat(o,",-").concat(n," h").concat(50-o," v").concat(n+1," h-100 z"),strokeWidth:"0",fill:t}):void 0}(e,t)),a=o,"upper"===n?React.createElement("div",{className:"vk_outer_separator vk_outer_separator-position-upper vk_outer_separator-type-".concat(a),style:{paddingBottom:r+"px"}},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"none"},l)):"lower"===n?React.createElement("div",{className:"vk_outer_separator vk_outer_separator-position-lower vk_outer_separator-type-".concat(a),style:{paddingTop:r+"px"}},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"none"},l)):void 0};function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function U(e,t){return!t||"object"!==F(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var D=wp.editor.InnerBlocks;function $(e,t){var n=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i),o=null;return n&&(o=n.slice(1,4).map(function(e){return parseInt(e,16)})),(n=e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(o=n.slice(1,4).map(function(e){return 17*parseInt(e,16)})),o?"rgba(".concat(o[0],", ").concat(o[1],", ").concat(o[2],", ").concat(t,")"):null}var q=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),U(this,W(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e,t,n,o,a,l,c,i,s,u,p,m=this.props.attributes,b=m.bgColor,f=m.bgImage,v=m.bgPosition,k=m.outerWidth,d=m.padding_left_and_right,g=m.padding_top_and_bottom,y=m.opacity,_=m.upper_level,h=m.lower_level,E=m.upperDividerBgColor,C=m.lowerDividerBgColor,w=m.dividerType,N=m.borderWidth,x=m.borderStyle,B=m.borderColor,S=m.borderRadius,T=m.anchor,O=this.props.for_;return o=" vk_outer-width-".concat(k),b=$(b||"#fff",y),n="parallax"===v?" vk_outer-bgPosition-parallax vk-prlx":"fixed"===v?" vk_outer-bgPosition-fixed":" vk_outer-bgPosition-normal",e="1"===d?" vk_outer-paddingLR-use":" vk_outer-paddingLR-none",t="1"===g?" vk_outer-paddingVertical-use":" vk_outer-paddingVertical-none",_&&(c="upper"),h&&(i="lower"),"edit"===O?a=r.a.createElement(D,null):(a=r.a.createElement(D.Content,null),l="vk_outer_container"),s=f?"linear-gradient(".concat(b,", ").concat(b,"), url(").concat(f,")"):"linear-gradient(".concat(b,", ").concat(b,")"),B||(B="#fff"),0===_&&0===h?(u="".concat(N,"px ").concat(x," ").concat(B),p="".concat(S,"px")):(u="none",p="0px"),r.a.createElement("div",{id:T,className:"vk_outer"+o+e+t+n,style:{background:s,border:u,borderRadius:p}},M(_,E,c,w),r.a.createElement("div",{className:l},a),M(h,C,i,w))}}])&&L(n.prototype,o),a&&L(n,a),t}(),H=[{attributes:{bgColor:{type:"string",default:"#f3f4f5"},bgImage:{type:"string",default:null},outerWidth:{type:"string",default:"normal"},bgPosition:{type:"string",default:"normal"},padding_left_and_right:{type:"string",default:"0"},padding_top_and_bottom:{type:"string",default:"1"},opacity:{type:"number",default:.5},upper_level:{type:"number",default:0},lower_level:{type:"number",default:0},dividerType:{type:"string",default:"tilt"},upperDividerBgColor:{type:"string",default:"#fff"},lowerDividerBgColor:{type:"string",default:"#fff"},borderWidth:{type:"number",default:0},borderStyle:{type:"string",default:"none"},borderColor:{type:"string",default:"#000"},borderRadius:{type:"number",default:0}},save:function(e){var t=e.attributes;if(vk_blocks_check.is_pro)return r.a.createElement(q,{attributes:t,for_:"save"})}}];function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e=Number(e),(isNaN(e)||e<t)&&(e=t),null!==n&&e>n&&(e=n),e}var Q=wp.i18n.__,Y=wp.blocks.registerBlockType,J=wp.components,K=J.RangeControl,X=J.RadioControl,Z=J.PanelBody,ee=J.Button,te=J.BaseControl,ne=J.SelectControl,oe=wp.element.Fragment,re=wp.editor,ae=re.InspectorControls,le=re.MediaUpload,ce=re.ColorPalette,ie=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("path",{d:"M288,381c50.7,0,92-41.3,92-92s-41.3-92-92-92s-92,41.3-92,92S237.3,381,288,381z M288,227c34.2,0,62,27.8,62,62 s-27.8,62-62,62s-62-27.8-62-62S253.8,227,288,227z"}),r.a.createElement("polygon",{points:"273,342 303,342 303,304 341,304 341,274 303,274 303,236 273,236 273,274 235,274 235,304 273,304 "}),r.a.createElement("path",{d:"M1.8,155.5v267h572.5v-267H1.8z M544.2,392.5H31.8v-207h512.5L544.2,392.5L544.2,392.5z"}),r.a.createElement("g",null,r.a.createElement("path",{d:"M39.8,10.3c-13.3,0-25.7,0.9-37.6,2.6L2,136.9h33.3l0.1-39c3,0.4,6.7,0.5,11.1,0.5c16.7,0,29.5-3.9,38.3-11.7 c8.7-7.7,13.1-19.3,13.1-34.4C98,24.3,78.6,10.4,39.8,10.3z M62,68.5c-3.6,3.4-9.2,5.2-16.6,5.2c-0.6,0-1.1,0-1.6,0 c-0.2,0-0.4,0-0.6,0c-2.8,0-5.4-0.1-7.7-0.5l0-22l-1.3-14.3c2.6-0.6,5.2-0.9,7.7-0.9c0.2,0,0.5,0,0.7,0c0.2,0,0.4,0,0.7,0 c13.6,0,21.1,4.7,22.7,14c0.3,1.2,0.6,2.6,0.7,4C67.2,60.2,65.6,65,62,68.5z"}),r.a.createElement("path",{d:"M141.3,65H141l0-17.1h-32.5l-0.2,88.9h33.3l0.1-35c0.1-8.6,3.2-15.7,9.7-21.4c6.5-5.7,14.9-8.5,25.4-8.5h3.4l0-23.9h-3.4 C161.7,48.1,149.8,53.7,141.3,65z"}),r.a.createElement("path",{d:"M266.7,58.5c-8-8.1-19.3-12.2-34-12.2c-14.6,0-25.9,4.1-34,12.2c-8.1,8.1-12.2,19.4-12.2,33.9c-0.1,14.5,4,25.8,12,33.9 c8,8.1,19.3,12.2,34,12.2c14.6,0,25.9-4.1,34-12.2c8.1-8.1,12.2-19.4,12.2-33.9C278.7,78,274.7,66.6,266.7,58.5z M246.2,92.5 c0,8.9-1.2,15-3.3,18.6c-2.1,3.6-5.6,5.4-10.4,5.4s-8.3-1.8-10.5-5.4c-2.2-3.6-3.3-9.8-3.2-18.6c0-8.9,1.2-15,3.3-18.6 c2.1-3.6,5.6-5.4,10.4-5.4c4.8,0,8.3,1.8,10.5,5.4S246.3,83.7,246.2,92.5z"})));Y("vk-blocks/outer",{title:Q("Outer","vk-blocks"),icon:ie,category:"vk-blocks-cat-layout",attributes:{bgColor:{type:"string",default:"#f3f4f5"},bgImage:{type:"string",default:null},outerWidth:{type:"string",default:"normal"},bgPosition:{type:"string",default:"normal"},padding_left_and_right:{type:"string",default:"0"},padding_top_and_bottom:{type:"string",default:"1"},opacity:{type:"number",default:.5},upper_level:{type:"number",default:0},lower_level:{type:"number",default:0},dividerType:{type:"string",default:"tilt"},upperDividerBgColor:{type:"string",default:"#fff"},lowerDividerBgColor:{type:"string",default:"#fff"},borderWidth:{type:"number",default:0},borderStyle:{type:"string",default:"none"},borderColor:{type:"string",default:"#000"},borderRadius:{type:"number",default:0}},supports:{anchor:!0},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,a=t.bgColor,l=t.bgImage,c=t.bgPosition,i=t.outerWidth,s=t.padding_left_and_right,u=t.padding_top_and_bottom,p=t.opacity,m=t.upper_level,b=t.lower_level,f=t.upperDividerBgColor,v=t.lowerDividerBgColor,k=t.dividerType,d=t.borderWidth,g=t.borderStyle,y=t.borderColor,_=t.borderRadius;return r.a.createElement(oe,null,r.a.createElement(ae,null,r.a.createElement(Z,{title:Q("Background Setting","vk-blocks")},r.a.createElement(te,{label:Q("Color Setting","vk-blocks"),help:Q("Color will overcome background image. If you want to display image, clear background color or set opacity 0.","vk-blocks")},r.a.createElement(ce,{value:a,onChange:function(e){return n({bgColor:e})}})),r.a.createElement(te,{label:Q("Opacity Setting","vk-blocks")},r.a.createElement(K,{value:p,onChange:function(e){n({opacity:e})},min:0,max:1,step:.1})),r.a.createElement(te,{label:Q("Background Image","vk-blocks"),help:""},r.a.createElement(le,{onSelect:function(e){return n({bgImage:e.url})},type:"image",value:l,render:function(e){var t=e.open;return r.a.createElement(ee,{onClick:t,className:l?"image-button":"button button-large"},l?r.a.createElement("img",{className:"icon-image",src:l,alt:Q("Upload image","vk-blocks")}):Q("Select image","vk-blocks"))}})),r.a.createElement(te,{label:Q("Background image Position","vk-blocks"),help:""},r.a.createElement(X,{selected:c,options:[{label:Q("normal","vk-blocks"),value:"normal"},{label:Q("Fixed","vk-blocks"),value:"fixed"},{label:Q("Parallax (It will not work in preview)","vk-blocks"),value:"parallax"}],onChange:function(e){return n({bgPosition:e})}}))),r.a.createElement(Z,{title:Q("Layout Setting","vk-blocks")},r.a.createElement(te,null,r.a.createElement(X,{label:Q("Outer width","vk-blocks"),selected:i,options:[{label:Q("Normal","vk-blocks"),value:"normal"},{label:Q("Full Wide","vk-blocks"),value:"full"}],onChange:function(e){return n({outerWidth:e})}}),r.a.createElement(X,{label:Q("Contents area padding (left and right)","vk-blocks"),selected:s,options:[{label:Q("Do not use contents area default padding (When case of full width etc.).","vk-blocks"),value:"0"},{label:Q("Use contents area default padding (When case of not full width and use background etc.).","vk-blocks"),value:"1"}],onChange:function(e){return n({padding_left_and_right:e})}}),r.a.createElement(X,{label:Q("Padding (top and bottom)","vk-blocks"),selected:u,options:[{label:Q("Use default padding","vk-blocks"),value:"1"},{label:Q("Do not use default padding (Set it yourself using a spacer block etc.).","vk-blocks"),value:"0"}],onChange:function(e){return n({padding_top_and_bottom:e})}}))),r.a.createElement(Z,{title:Q("Divider Setting","vk-blocks")},r.a.createElement(te,null,r.a.createElement(ne,{label:Q("Type","vk-blocks"),value:k,onChange:function(e){return n({dividerType:e})},options:[{value:"tilt",label:Q("Tilt","vk-blocks")},{value:"curve",label:Q("Curve","vk-blocks")},{value:"wave",label:Q("Wave","vk-blocks")},{value:"triangle",label:Q("Triangle","vk-blocks")}]})),r.a.createElement(te,{label:Q("Upper Divider Level","vk-blocks")},r.a.createElement(K,{value:m,onChange:function(e){return n({upper_level:G(e,-100,100)})},min:"-100",max:"100"})),r.a.createElement(te,null,r.a.createElement(ce,{value:f,onChange:function(e){return n({upperDividerBgColor:e})}})),r.a.createElement(te,{label:Q("Lower Divider Level","vk-blocks")},r.a.createElement(K,{value:b,onChange:function(e){return n({lower_level:G(e,-100,100)})},min:"-100",max:"100"})),r.a.createElement(te,null,r.a.createElement(ce,{value:v,onChange:function(e){return n({lowerDividerBgColor:e})}}))),r.a.createElement(Z,{title:Q("Border Setting","vk-blocks")},r.a.createElement(te,null,r.a.createElement("p",null,Q("Border will disappear when divider effect is applied.","vk-blocks")),r.a.createElement(ne,{label:Q("Border type","vk-blocks"),value:g,onChange:function(e){return n({borderStyle:e})},options:[{value:"none",label:Q("None","vk-blocks")},{value:"solid",label:Q("Solid","vk-blocks")},{value:"dotted",label:Q("Dotted","vk-blocks")},{value:"dashed",label:Q("Dashed","vk-blocks")},{value:"double",label:Q("Double","vk-blocks")},{value:"groove",label:Q("Groove","vk-blocks")},{value:"ridge",label:Q("Ridge","vk-blocks")},{value:"inset",label:Q("Inset","vk-blocks")},{value:"outset",label:Q("Outset","vk-blocks")}]})),r.a.createElement(te,null,r.a.createElement(ce,{value:y,onChange:function(e){return n({borderColor:e})}})),r.a.createElement(te,{label:Q("Border width","vk-blocks")},r.a.createElement(K,{value:d,onChange:function(e){return n({borderWidth:e})},min:"0"})),r.a.createElement(te,{label:Q("Border radius","vk-blocks")},r.a.createElement(K,{value:_,onChange:function(e){return n({borderRadius:G(e,-100,100)})},min:"-100",max:"100"})))),vk_blocks_check.is_pro?r.a.createElement(z,{attributes:t,className:o,for_:"edit"}):r.a.createElement("div",null,Q("This block is only for users who bought Lightning Pro.","vk-blocks")))},save:function(e){var t=e.attributes,n=e.className;if(vk_blocks_check.is_pro)return r.a.createElement(z,{attributes:t,className:n,for_:"save"})},deprecated:H});var se=n(1),ue=n.n(se);function pe(e){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function me(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function be(e,t){return!t||"object"!==pe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ve(e,t){return(ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ke=window.lodash.range,de=wp.i18n,ge=de.__,ye=de.sprintf,_e=wp.element.Component,he=wp.components.Toolbar,Ee=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),be(this,fe(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ve(e,t)}(t,_e),n=t,(o=[{key:"createLevelControl",value:function(e,t,n){return{icon:"heading",title:ye(ge("Heading %d"),e),isActive:e===t,onClick:function(){return n(e)},subscript:String(e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.minLevel,o=t.maxLevel,a=t.selectedLevel,l=t.onChange;return r.a.createElement(he,{controls:ke(n,o).map(function(t){return e.createLevelControl(t,a,l)})})}}])&&me(n.prototype,o),a&&me(n,a),t}();function Ce(e){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function we(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ne(e,t){return!t||"object"!==Ce(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Se=wp.editor.RichText,Te=wp.i18n.__,Oe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ne(this,xe(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Be(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.level,a=n.align,l=n.title,c=n.titleColor,i=n.titleSize,s=n.subText,u=n.subTextFlag,p=n.subTextColor,m=n.subTextSize,b=n.titleStyle,f=n.titleMarginBottom,v=n.outerMarginBottom,k=this.props.setAttributes,d=this.props.className,g=this.props.for_,y=ue()(d,"vk_heading vk_heading-style-".concat(b)),_="h"+o;return null!=v&&(e={marginBottom:v+"rem"}),t=null!=f?{color:c,fontSize:i+"rem",marginBottom:f+"rem"}:{color:c,fontSize:i+"rem",textAlign:a},"edit"===g?r.a.createElement("div",{className:y,style:e},r.a.createElement(Se,{tagName:_,value:l,onChange:function(e){return k({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(b),placeholder:Te("Input title…","vk-blocks")}),function(){if("on"===u)return r.a.createElement(Se,{tagName:"p",value:s,onChange:function(e){return k({subText:e})},style:{color:p,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(b),placeholder:Te("Input sub text…","vk-blocks")})}()):"save"===g?r.a.createElement("div",{className:y,style:e},r.a.createElement(Se.Content,{tagName:_,value:l,onChange:function(e){return k({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(b),placeholder:Te("Input title…","vk-blocks")}),function(){if("on"===u)return r.a.createElement(Se.Content,{tagName:"p",value:s,onChange:function(e){return k({subText:e})},style:{color:p,fontSize:m+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(b),placeholder:Te("Input sub text…","vk-blocks")})}()):void 0}}])&&we(n.prototype,o),a&&we(n,a),t}();function Re(e){throw new Error('"'+e+'" is read-only')}var Ie=wp.element.Fragment,Ae=wp.editor,Pe=Ae.RichText;Ae.InspectorControls,Ae.ColorPalette,Ae.BlockControls,Ae.AlignmentToolbar;var je=[{attributes:{level:{type:"number",default:2},align:{type:"string"},titleStyle:{type:"string",default:"default"},outerMarginBottom:{type:"number"},title:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},titleColor:{type:"string",default:"#000000"},titleSize:{type:"number",default:2.6},titleMarginBottom:{type:"number"},subText:{source:"html",selector:"p",default:""},subTextFlag:{type:"string",default:"on"},subTextColor:{type:"string",default:"#000000"},subTextSize:{type:"number",default:1.8}},supports:{className:!1,anchor:!0},save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,l=t.titleColor,c=t.titleSize,i=t.subText,s=t.subTextFlag,u=t.subTextColor,p=t.subTextSize,m=t.titleStyle,b=t.titleMarginBottom,f=t.outerMarginBottom,v="h"+n;return r.a.createElement("div",{className:"vk_heading vk_heading-style-".concat(m),style:{marginBottom:f+"rem"}},r.a.createElement(Pe.Content,{tagName:v,value:a,style:{color:l,fontSize:c+"rem",textAlign:o,marginBottom:b+"rem"},className:"vk_heading_title vk_heading_title-style-".concat(m)}),function(){if("on"===s)return r.a.createElement(Pe.Content,{tagName:"p",value:i,style:{color:u,fontSize:p+"rem",textAlign:o},className:"vk_heading_subtext vk_heading_subtext-style-".concat(m)})}())}},{attributes:function(e){for(var t={},n=1;n<=e;n++)t["heading"+n]={type:"string",source:"html",selector:"h1.vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(4),save:function(e){var t=e.attributes,n=t.heading1,o=t.heading2,a=t.heading3,l=t.content1,c=t.content2,i=t.content3,s=t.url1,u=t.url2,p=t.url3,m=t.urlOpenType1,b=t.urlOpenType2,f=t.urlOpenType3,v=t.icon1,k=t.icon2,d=t.icon3,g=t.color1,y=t.color2,_=t.color3,h=t.bgType1,E=t.bgType2,C=t.bgType3,w=t.insertImage1,N=t.insertImage2,x=t.insertImage3;return r.a.createElement("article",{className:"vk_prBlocks row"},r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:s,target:m?"_blank":"_self",className:"vk_prBlocks_item_link"},w?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+w+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:w,alt:""})):(g||(Re("color1"),g="#0693e3"),"0"===h?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:g,border:"1px solid ".concat(g)}},r.a.createElement("i",{className:"".concat(v," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+g}},r.a.createElement("i",{className:"".concat(v," vk_prBlocks_item_icon"),style:{color:g}}))),r.a.createElement(Pe.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h1",value:n}),r.a.createElement(Pe.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",value:l}))),r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:u,target:b?"_blank":"_self",className:"vk_prBlocks_item_link"},N?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+N+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:N,alt:""})):(y||(Re("color2"),y="#0693e3"),"0"===E?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:y,border:"1px solid ".concat(y)}},r.a.createElement("i",{className:"".concat(k," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+y}},r.a.createElement("i",{className:"".concat(k," vk_prBlocks_item_icon"),style:{color:y}}))),r.a.createElement(Pe.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h1",value:o}),r.a.createElement(Pe.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",value:c}))),r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:p,target:f?"_blank":"_self",className:"vk_prBlocks_item_link"},x?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+x+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:x,alt:""})):(_||(Re("color3"),_="#0693e3"),"0"===C?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:_,border:"1px solid ".concat(_)}},r.a.createElement("i",{className:"".concat(d," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+_}},r.a.createElement("i",{className:"".concat(d," vk_prBlocks_item_icon"),style:{color:_}}))),r.a.createElement(Pe.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h1",value:a}),r.a.createElement(Pe.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",value:i}))))}},{attributes:{level:{type:"number",default:2},align:{type:"string"},titleStyle:{type:"string",default:"default"},outerMarginBottom:{type:"number",default:null},title:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},titleColor:{type:"string",default:"#000000"},titleSize:{type:"number",default:2.6},titleMarginBottom:{type:"number",default:null},subText:{source:"html",selector:"p",default:""},subTextFlag:{type:"string",default:"on"},subTextColor:{type:"string",default:"#000000"},subTextSize:{type:"number",default:1.8}},supports:{className:!1,anchor:!0},save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,l=t.titleColor,c=t.titleSize,i=t.subText,s=t.subTextFlag,u=t.subTextColor,p=t.subTextSize,m=t.titleStyle,b=t.titleMarginBottom,f=t.outerMarginBottom,v="h"+n;return r.a.createElement(Ie,null,null==f?r.a.createElement("div",{className:"vk_heading vk_heading-style-".concat(m)},r.a.createElement(Pe.Content,{tagName:v,value:a,style:{color:l,fontSize:c+"rem",textAlign:o},className:"vk_heading_title vk_heading_title-style-".concat(m)}),function(){if("on"===s)return r.a.createElement(Pe.Content,{tagName:"p",value:i,style:{color:u,fontSize:p+"rem",textAlign:o},className:"vk_heading_subtext vk_heading_subtext-style-".concat(m)})}()):r.a.createElement("div",{className:"vk_heading vk_heading-style-".concat(m),style:{marginBottom:f+"rem"}},r.a.createElement(Pe.Content,{tagName:v,value:a,style:{color:l,fontSize:c+"rem",textAlign:o,marginBottom:b+"rem"},className:"vk_heading_title vk_heading_title-style-".concat(m)}),function(){if("on"===s)return r.a.createElement(Pe.Content,{tagName:"p",value:i,style:{color:u,fontSize:p+"rem",textAlign:o},className:"vk_heading_subtext vk_heading_subtext-style-".concat(m)})}()))}}],ze=wp.i18n.__,Me=wp.blocks.registerBlockType,Fe=wp.components,Le=Fe.RangeControl,Ue=Fe.PanelBody,We=Fe.RadioControl,Ve=Fe.SelectControl,De=wp.element.Fragment,$e=wp.editor,qe=($e.RichText,$e.InspectorControls),He=$e.ColorPalette,Ge=$e.BlockControls,Qe=$e.AlignmentToolbar,Ye=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("g",null,r.a.createElement("g",null,r.a.createElement("path",{d:"M242.1,366.7l0-281.4l-212.6,0l0-77.1l516.6,0v77.1l-213.2,0l0,281.4H242.1z"})),r.a.createElement("g",null,r.a.createElement("path",{d:"M33,467.3l30.8-1.9c0.7,5,2,8.8,4.1,11.4c3.3,4.2,8.1,6.4,14.3,6.4c4.6,0,8.2-1.1,10.7-3.3c2.5-2.2,3.8-4.7,3.8-7.5 c0-2.7-1.2-5.1-3.6-7.3c-2.4-2.1-7.9-4.2-16.6-6.1c-14.2-3.2-24.3-7.4-30.4-12.7c-6.1-5.3-9.1-12-9.1-20.2 c0-5.4,1.6-10.5,4.7-15.3c3.1-4.8,7.8-8.6,14.1-11.3c6.3-2.7,14.8-4.1,25.8-4.1c13.4,0,23.6,2.5,30.6,7.5c7,5,11.2,12.9,12.5,23.8 l-30.5,1.8c-0.8-4.7-2.5-8.1-5.1-10.3c-2.6-2.1-6.2-3.2-10.8-3.2c-3.8,0-6.6,0.8-8.5,2.4c-1.9,1.6-2.9,3.5-2.9,5.8 c0,1.7,0.8,3.2,2.4,4.5c1.5,1.4,5.1,2.7,10.9,3.9c14.1,3,24.3,6.1,30.4,9.3c6.1,3.1,10.6,7,13.4,11.6c2.8,4.6,4.2,9.8,4.2,15.5 c0,6.7-1.9,12.9-5.6,18.6c-3.7,5.7-8.9,10-15.6,12.9c-6.7,2.9-15.1,4.4-25.2,4.4c-17.8,0-30.2-3.4-37-10.3 C37.8,486.6,33.9,477.8,33,467.3z"}),r.a.createElement("path",{d:"M215,501.9h-27.2v-12.3c-4,5-8.1,8.6-12.3,10.8c-4.1,2.1-9.2,3.2-15.2,3.2c-8,0-14.3-2.4-18.8-7.2 c-4.5-4.8-6.8-12.2-6.8-22.1V426H164v41.7c0,4.8,0.9,8.1,2.6,10.1c1.8,2,4.2,3,7.4,3c3.5,0,6.3-1.3,8.5-4 c2.2-2.7,3.3-7.5,3.3-14.4V426H215V501.9z"}),r.a.createElement("path",{d:"M225.5,397.2h29.4v36.3c2.9-3,6.2-5.3,9.9-6.9c3.7-1.5,7.8-2.3,12.3-2.3c9.2,0,16.9,3.3,22.9,10 c6.1,6.6,9.1,16.2,9.1,28.6c0,8.3-1.4,15.6-4.1,21.9c-2.8,6.3-6.6,11-11.5,14.1c-4.9,3.1-10.3,4.7-16.3,4.7c-5.1,0-9.8-1.1-14-3.3 c-3.2-1.7-6.7-4.9-10.4-9.6v11.2h-27.2V397.2z M254.6,463.8c0,6.5,1.2,11.3,3.7,14.2c2.5,2.9,5.6,4.4,9.3,4.4 c3.5,0,6.4-1.4,8.8-4.3c2.4-2.9,3.5-7.7,3.5-14.5c0-6-1.2-10.4-3.5-13.2c-2.3-2.8-5.1-4.2-8.4-4.2c-4,0-7.2,1.5-9.7,4.4 C255.9,453.4,254.6,457.8,254.6,463.8z"}),r.a.createElement("path",{d:"M304.4,397.2h98.4V423h-33v78.9h-32.4V423h-33V397.2z"}),r.a.createElement("path",{d:"M395.8,426h34.5l12,21.2l14-21.2h32.1l-25.9,36.2l27.7,39.7h-33.9l-14-24.4l-16.5,24.4h-31.5l27.6-39.7L395.8,426z"}),r.a.createElement("path",{d:"M530.6,397.2V426h16v21.3h-16v26.9c0,3.2,0.3,5.4,0.9,6.4c1,1.6,2.6,2.4,5,2.4c2.1,0,5.1-0.6,9-1.9l2.1,20.1 c-7.2,1.6-13.9,2.4-20.1,2.4c-7.2,0-12.6-0.9-16-2.8c-3.4-1.9-6-4.7-7.6-8.5s-2.5-9.9-2.5-18.4v-26.7h-10.7V426h10.7v-13.9 L530.6,397.2z"}))));Me("vk-blocks/heading",{title:ze("Heading","vk-blocks"),icon:Ye,category:"vk-blocks-cat",attributes:{level:{type:"number",default:2},align:{type:"string"},titleStyle:{type:"string",default:"default"},outerMarginBottom:{type:"number",default:null},title:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},titleColor:{type:"string",default:"#000000"},titleSize:{type:"number",default:2.6},titleMarginBottom:{type:"number",default:null},subText:{source:"html",selector:"p",default:""},subTextFlag:{type:"string",default:"on"},subTextColor:{type:"string",default:"#000000"},subTextSize:{type:"number",default:1.8}},supports:{className:!0,customClassName:!0,anchor:!0},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,a=t.level,l=t.align,c=(t.title,t.titleColor),i=t.titleSize,s=(t.subText,t.subTextFlag),u=t.subTextColor,p=t.subTextSize,m=t.titleStyle,b=t.titleMarginBottom,f=t.outerMarginBottom,v=function(e){switch(n({level:e}),e){case 1:n({titleSize:3.6});break;case 2:n({titleSize:2.8});break;case 3:n({titleSize:2.2});break;case 4:n({titleSize:2});break;case 5:n({titleSize:1.8});break;case 6:n({titleSize:1.6})}};return r.a.createElement(De,null,r.a.createElement(Ge,null,r.a.createElement(Ee,{minLevel:2,maxLevel:5,selectedLevel:a,onChange:v})),r.a.createElement(qe,null,r.a.createElement(Ue,{title:ze("Style Settings","vk-blocks")},r.a.createElement(Ve,{label:ze("Heading style","vk-blocks"),value:m,onChange:function(e){return n({titleStyle:e})},options:[{label:ze("Default","vk-blocks"),value:"default"},{label:ze("Plain","vk-blocks"),value:"plain"}]}),r.a.createElement("label",null,ze("Margin bottom size (rem)","vk-blocks")),r.a.createElement(Le,{value:f,onChange:function(e){n({outerMarginBottom:e})},min:-1,max:8,step:.1})),r.a.createElement(Ue,{title:ze("Heading Settings","vk-blocks")},r.a.createElement("label",null,ze("Level","vk-blocks")),r.a.createElement(Ee,{minLevel:1,maxLevel:7,selectedLevel:a,onChange:v}),r.a.createElement("p",null,ze("Text Alignment")),r.a.createElement(Qe,{value:l,onChange:function(e){n({align:e})}}),r.a.createElement("label",null,ze("Text size (rem)","vk-blocks")),r.a.createElement(Le,{value:i,onChange:function(e){n({titleSize:e})},min:.5,max:4,step:.1}),r.a.createElement("label",null,ze("Heading margin bottom size (rem)","vk-blocks")),r.a.createElement(Le,{value:b,onChange:function(e){n({titleMarginBottom:e})},min:-1,max:3,step:.1}),r.a.createElement(He,{value:c,onChange:function(e){return n({titleColor:e})}})),r.a.createElement(Ue,{title:ze("Sub Text Settings","vk-blocks")},r.a.createElement(We,{label:ze("Position","vk-blocks"),selected:s,options:[{label:ze("Display","vk-blocks"),value:"on"},{label:ze("Hide","vk-blocks"),value:"off"}],onChange:function(e){return n({subTextFlag:e})}}),r.a.createElement("label",null,ze("Text size (rem)","vk-blocks")),r.a.createElement(Le,{value:p,onChange:function(e){n({subTextSize:e})},min:.5,max:3,step:.1}),r.a.createElement(He,{value:u,onChange:function(e){return n({subTextColor:e})}}))),r.a.createElement(Oe,{attributes:t,setAttributes:n,className:o,for_:"edit"}))},save:function(e){var t=e.attributes,n=e.className;return r.a.createElement(Oe,{attributes:t,className:n,for_:"save"})},deprecated:je});var Je=wp.editor.RichText,Ke=[{attributes:{style:{type:"string",default:"info"},content:{type:"string",source:"html",selector:"p"}},save:function(e){var t=e.attributes,n=t.style,o=t.content;return r.a.createElement("div",{className:"alert alert-".concat(n)},r.a.createElement(Je.Content,{tagName:"p",value:o}))}}],Xe=wp.i18n.__,Ze=wp.blocks.registerBlockType,et=wp.editor.RichText;Ze("vk-blocks/alert",{title:Xe("Alert","vk-blocks"),icon:"info",category:"vk-blocks-cat",attributes:{style:{type:"string",default:"info"},content:{type:"string",source:"html",selector:"p"}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,r=t.style,a=t.content;return React.createElement("div",{className:"".concat(o," alert alert-").concat(r)},React.createElement("select",{onChange:function(e){n({style:e.target.value})}},React.createElement("option",{value:"success",selected:"success"===r},"Success"),React.createElement("option",{value:"info",selected:"info"===r},"Info"),React.createElement("option",{value:"warning",selected:"warning"===r},"Warning"),React.createElement("option",{value:"danger",selected:"danger"===r},"Danger")),React.createElement(et,{tagName:"p",onChange:function(e){n({content:e})},value:a}))},save:function(e){var t=e.attributes,n=e.className,o=t.style,r=t.content;return React.createElement("div",{className:"".concat(n," alert alert-").concat(o)},React.createElement(et.Content,{tagName:"p",value:r}))},deprecated:Ke});n(4);function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ot(e,t){return!t||"object"!==tt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rt(e){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function at(e,t){return(at=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var lt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ot(this,rt(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&at(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,p=this.props.lbsubCaption,m="",b={},f="",v="";return m="btn vk_button_link",e?(m="".concat(m," btn-primary btn-").concat(a),"0"===n?b={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===n&&(b={backgroundColor:"transparent",border:"1px solid "+e,color:e})):e||("0"===n?(m="".concat(m," btn-").concat(a," btn-").concat(t),b=null):"1"===n&&(m="".concat(m," btn-").concat(a," btn-outline-").concat(t),b=null)),"block"===o&&(m="".concat(m," btn-block")),i&&(f=r.a.createElement("i",{className:"".concat(i," vk_button_link_before")})),s&&(v=r.a.createElement("i",{className:"".concat(s," vk_button_link_after")})),r.a.createElement("a",{href:l,id:"vk_button_link",style:b,className:m,role:"button","aria-pressed":!0,target:c?"_blank":null,rel:"noopener noreferrer"},f,u,v,p&&r.a.createElement("p",{className:"vk_button_link_subCaption"},p))}}])&&nt(n.prototype,o),a&&nt(n,a),t}();function ct(e){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function it(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function st(e,t){return!t||"object"!==ct(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ut(e){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pt(e,t){return(pt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var mt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),st(this,ut(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pt(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,p=(this.props.lbsubCaption,""),m={},b="",f="";return p="btn vk_button_link",e?(p="".concat(p," btn-primary btn-").concat(a),"0"===n?m={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===n&&(m={backgroundColor:"transparent",border:"1px solid "+e,color:e})):e||("0"===n?(p="".concat(p," btn-").concat(a," btn-").concat(t),m=null):"1"===n&&(p="".concat(p," btn-").concat(a," btn-outline-").concat(t),m=null)),"block"===o&&(p="".concat(p," btn-block")),i&&(b=r.a.createElement("i",{className:"".concat(i," vk_button_link_before")})),s&&(f=r.a.createElement("i",{className:"".concat(s," vk_button_link_after")})),r.a.createElement("a",{href:l,className:p,role:"button","aria-pressed":!0,style:m,target:c?"_blank":null},b,u,f)}}])&&it(n.prototype,o),a&&it(n,a),t}();function bt(e){return(bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ft(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function vt(e,t){return!t||"object"!==bt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dt(e,t){return(dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),vt(this,kt(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dt(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,p=(this.props.lbsubCaption,""),m={},b="",f="";return p="btn vk_button_link",e?(p="".concat(p," btn-primary btn-").concat(a),"0"===n?m={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===n&&(m={backgroundColor:"transparent",border:"1px solid "+e,color:e})):e||("0"===n?(p="".concat(p," btn-").concat(a," btn-").concat(t),m=null):"1"===n&&(p="".concat(p," btn-").concat(a," btn-outline-").concat(t),m=null)),"block"===o&&(p="".concat(p," btn-block")),i&&(b=r.a.createElement("i",{className:"".concat(i," vk_button_link_before")})),s&&(f=r.a.createElement("i",{className:"".concat(s," vk_button_link_after")})),r.a.createElement("a",{href:l,id:"vk_button_link",className:p,role:"button","aria-pressed":!0,style:m,target:c?"_blank":null},b,u,f)}}])&&ft(n.prototype,o),a&&ft(n,a),t}();function yt(e){return(yt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _t(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ht(e,t){return!t||"object"!==yt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Et(e){return(Et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ct(e,t){return(Ct=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var wt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ht(this,Et(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ct(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,p=this.props.lbsubCaption,m="",b={},f="",v="";return m="btn vk_button_link",e?(m="".concat(m," btn-primary btn-").concat(a),"0"===n?b={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===n&&(b={backgroundColor:"transparent",border:"1px solid "+e,color:e})):e||("0"===n?(m="".concat(m," btn-").concat(a," btn-").concat(t),b=null):"1"===n&&(m="".concat(m," btn-").concat(a," btn-outline-").concat(t),b=null)),"block"===o&&(m="".concat(m," btn-block")),i&&(f=r.a.createElement("i",{className:"".concat(i," vk_button_link_before")})),s&&(v=r.a.createElement("i",{className:"".concat(s," vk_button_link_after")})),r.a.createElement("a",{href:l,id:"vk_button_link",className:m,role:"button","aria-pressed":!0,style:b,target:c?"_blank":null,rel:"noopener noreferrer"},f,u,v,p&&r.a.createElement("p",{className:"vk_button_link_subCaption"},p))}}])&&_t(n.prototype,o),a&&_t(n,a),t}();function Nt(e){return(Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Bt(e,t){return!t||"object"!==Nt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function St(e){return(St=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tt(e,t){return(Tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ot=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Bt(this,St(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tt(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,p=this.props.lbsubCaption,m="",b={},f="",v="";return m="btn vk_button_link",e?(m="".concat(m," btn-primary btn-").concat(a),"0"===n?b={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===n&&(b={backgroundColor:"transparent",border:"1px solid "+e,color:e})):e||("0"===n?(m="".concat(m," btn-").concat(a," btn-").concat(t),b=null):"1"===n&&(m="".concat(m," btn-").concat(a," btn-outline-").concat(t),b=null)),"block"===o&&(m="".concat(m," btn-block")),i&&(f=r.a.createElement("i",{className:"".concat(i," vk_button_link_before")})),s&&(v=r.a.createElement("i",{className:"".concat(s," vk_button_link_after")})),r.a.createElement("a",{href:l,id:"vk_button_link",className:m,role:"button","aria-pressed":!0,style:b,target:c?"_blank":null},f,u,v,p&&r.a.createElement("p",{className:"vk_button_link_subCaption"},p))}}])&&xt(n.prototype,o),a&&xt(n,a),t}(),Rt=wp.editor.RichText,It=[{attributes:{content:{source:"html",selector:"span"},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}},save:function(e){var t=e.attributes,n=t.content,o=t.buttonUrl,a=t.buttonTarget,l=t.buttonSize,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonAlign,p=t.fontAwesomeIconBefore,m=t.fontAwesomeIconAfter,b="";return s?b="vk_button vk_button-color-custom vk_button-align-".concat(u):s||(b="vk_button vk_button-align-".concat(u)),r.a.createElement("div",{className:b},r.a.createElement(mt,{lbColorCustom:s,lbColor:i,lbType:c,lbAlign:u,lbSize:l,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:m,lbRichtext:r.a.createElement(Rt.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}},{attributes:{content:{source:"html",selector:"span"},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}},save:function(e){var t=e.attributes,n=t.content,o=t.buttonUrl,a=t.buttonTarget,l=t.buttonSize,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonAlign,p=t.fontAwesomeIconBefore,m=t.fontAwesomeIconAfter,b="";return s?b="vk_button vk_button-color-custom vk_button-align-".concat(u):s||(b="vk_button vk_button-align-".concat(u)),r.a.createElement("div",{className:b},r.a.createElement(gt,{lbColorCustom:s,lbColor:i,lbType:c,lbAlign:u,lbSize:l,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:m,lbRichtext:r.a.createElement(Rt.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}},{attributes:{content:{source:"html",selector:"span"},subCaption:{type:"string",default:null},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}},save:function(e){var t=e.attributes,n=(e.className,t.content),o=t.subCaption,a=t.buttonUrl,l=t.buttonTarget,c=t.buttonSize,i=t.buttonType,s=t.buttonColor,u=t.buttonColorCustom,p=t.buttonAlign,m=t.fontAwesomeIconBefore,b=t.fontAwesomeIconAfter,f="";return u?f="vk_button vk_button-color-custom vk_button-align-".concat(p):u||(f="vk_button vk_button-align-".concat(p)),r.a.createElement("div",{className:f},r.a.createElement(wt,{lbColorCustom:u,lbColor:s,lbType:i,lbAlign:p,lbSize:c,lbUrl:a,lbTarget:l,lbFontAwesomeIconBefore:m,lbFontAwesomeIconAfter:b,lbsubCaption:o,lbRichtext:r.a.createElement(Rt.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}},{attributes:{content:{source:"html",selector:"span"},subCaption:{type:"string",default:null},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}},save:function(e){var t=e.attributes,n=(e.className,t.content),o=t.subCaption,a=t.buttonUrl,l=t.buttonTarget,c=t.buttonSize,i=t.buttonType,s=t.buttonColor,u=t.buttonColorCustom,p=t.buttonAlign,m=t.fontAwesomeIconBefore,b=t.fontAwesomeIconAfter,f="";return u?f="vk_button vk_button-color-custom vk_button-align-".concat(p):u||(f="vk_button vk_button-align-".concat(p)),r.a.createElement("div",{className:f},r.a.createElement(Ot,{lbColorCustom:u,lbColor:s,lbType:i,lbAlign:p,lbSize:c,lbUrl:a,lbTarget:l,lbFontAwesomeIconBefore:m,lbFontAwesomeIconAfter:b,lbsubCaption:o,lbRichtext:r.a.createElement(Rt.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}}],At=wp.i18n.__,Pt=wp.blocks.registerBlockType,jt=wp.components,zt=(jt.RangeControl,jt.RadioControl),Mt=jt.PanelBody,Ft=(jt.Button,jt.BaseControl),Lt=jt.CheckboxControl,Ut=jt.TextControl,Wt=jt.Dashicon,Vt=jt.IconButton,Dt=wp.element.Fragment,$t=wp.editor,qt=$t.RichText,Ht=$t.InspectorControls,Gt=($t.MediaUpload,$t.ColorPalette),Qt=$t.URLInput,Yt=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("g",null,r.a.createElement("path",{d:"M506,185v142H70V185H506 M526.4,137H49.6C34.4,137,22,149.4,22,164.6v182.8c0,15.2,12.4,27.6,27.6,27.6h476.8 c15.2,0,27.6-12.4,27.6-27.6V164.6C554,149.4,541.6,137,526.4,137L526.4,137z"})),r.a.createElement("g",null,r.a.createElement("path",{d:"M83.8,206.9h55.9c9.3,0,16.5,2.3,21.5,6.9c5,4.6,7.5,10.3,7.5,17.1c0,5.7-1.8,10.6-5.3,14.7c-2.4,2.7-5.8,4.9-10.4,6.5 c6.9,1.7,12.1,4.5,15.3,8.6c3.3,4.1,4.9,9.2,4.9,15.3c0,5-1.2,9.5-3.5,13.5c-2.3,4-5.5,7.2-9.6,9.5c-2.5,1.5-6.3,2.5-11.3,3.2 c-6.7,0.9-11.2,1.3-13.4,1.3H83.8V206.9z M113.9,244.8h13c4.7,0,7.9-0.8,9.7-2.4c1.8-1.6,2.7-3.9,2.7-7c0-2.8-0.9-5-2.7-6.6 c-1.8-1.6-5-2.4-9.5-2.4h-13.2V244.8z M113.9,282.8h15.2c5.1,0,8.8-0.9,10.9-2.7s3.2-4.3,3.2-7.4c0-2.9-1-5.2-3.1-6.9 c-2.1-1.7-5.7-2.6-11-2.6h-15.2V282.8z"}),r.a.createElement("path",{d:"M245.9,303.5h-25.1v-11.3c-3.7,4.7-7.5,8-11.3,10c-3.8,2-8.5,3-14,3c-7.4,0-13.2-2.2-17.4-6.6c-4.2-4.4-6.3-11.2-6.3-20.4 v-44.6h27V272c0,4.4,0.8,7.5,2.4,9.4c1.6,1.8,3.9,2.8,6.9,2.8c3.2,0,5.8-1.2,7.9-3.7s3.1-6.9,3.1-13.3v-33.7h26.8V303.5z"}),r.a.createElement("path",{d:"M282.4,206.9v26.6h14.8v19.7h-14.8V278c0,3,0.3,5,0.9,5.9c0.9,1.5,2.4,2.2,4.6,2.2c2,0,4.7-0.6,8.3-1.7l2,18.5 c-6.6,1.5-12.8,2.2-18.6,2.2c-6.7,0-11.6-0.9-14.8-2.6c-3.2-1.7-5.5-4.3-7-7.8c-1.5-3.5-2.3-9.1-2.3-17v-24.6h-9.9v-19.7h9.9v-12.9 L282.4,206.9z"}),r.a.createElement("path",{d:"M330.2,206.9v26.6H345v19.7h-14.8V278c0,3,0.3,5,0.9,5.9c0.9,1.5,2.4,2.2,4.6,2.2c2,0,4.7-0.6,8.3-1.7l2,18.5 c-6.6,1.5-12.8,2.2-18.6,2.2c-6.7,0-11.6-0.9-14.8-2.6c-3.2-1.7-5.5-4.3-7-7.8c-1.5-3.5-2.3-9.1-2.3-17v-24.6h-9.9v-19.7h9.9v-12.9 L330.2,206.9z"}),r.a.createElement("path",{d:"M339.6,268.7c0-10.7,3.6-19.5,10.8-26.4s16.9-10.4,29.2-10.4c14,0,24.6,4.1,31.8,12.2c5.8,6.6,8.6,14.6,8.6,24.2 c0,10.8-3.6,19.6-10.7,26.5c-7.1,6.9-17,10.3-29.6,10.3c-11.3,0-20.4-2.9-27.3-8.6C343.9,289.5,339.6,280.2,339.6,268.7z M366.5,268.7c0,6.2,1.3,10.9,3.8,13.8c2.5,3,5.7,4.5,9.5,4.5c3.9,0,7-1.5,9.5-4.4c2.5-2.9,3.7-7.7,3.7-14.2 c0-6.1-1.3-10.6-3.8-13.6s-5.6-4.5-9.3-4.5c-3.9,0-7.1,1.5-9.7,4.5C367.8,257.9,366.5,262.5,366.5,268.7z"}),r.a.createElement("path",{d:"M418.2,233.5h25v11.4c3.7-4.7,7.5-8,11.3-10c3.8-2,8.5-3,14-3c7.4,0,13.2,2.2,17.4,6.6c4.2,4.4,6.3,11.2,6.3,20.5v44.5h-27 V265c0-4.4-0.8-7.5-2.4-9.3c-1.6-1.8-3.9-2.7-6.9-2.7c-3.3,0-5.9,1.2-7.9,3.7c-2,2.5-3,6.9-3,13.3v33.6h-26.8V233.5z"})));Pt("vk-blocks/button",{title:At("Button","vk-blocks"),icon:Yt,category:"vk-blocks-cat",attributes:{content:{source:"html",selector:"span"},subCaption:{type:"string",default:null},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}},edit:function(e){var t,n=e.attributes,o=e.className,a=e.setAttributes,l=e.isSelected,c=n.content,i=n.subCaption,s=n.buttonUrl,u=n.buttonTarget,p=n.buttonSize,m=n.buttonType,b=n.buttonColor,f=n.buttonColorCustom,v=n.buttonAlign,k=n.fontAwesomeIconBefore,d=n.fontAwesomeIconAfter;return t=f?"vk_button vk_button-align-".concat(v," vk_button-color-custom"):"vk_button vk_button-align-".concat(v),t=o?"".concat(o," vk_button vk_button-align-").concat(v," vk_button-color-custom"):"".concat(o," vk_button vk_button-align-").concat(v),r.a.createElement(Dt,null,r.a.createElement(Ht,null,r.a.createElement(Mt,{title:At("Button setting","vk-blocks")},r.a.createElement(Ut,{label:At("Sub Caption","vk-blocks"),value:i,onChange:function(e){return a({subCaption:e})},placeholder:"Sub Caption"}),r.a.createElement(Lt,{label:At("Open link new tab.","vk-blocks"),checked:u,onChange:function(e){return a({buttonTarget:e})}}),r.a.createElement(zt,{label:At("Button Size:","vk-blocks"),selected:p,options:[{label:At("Large","vk-blocks"),value:"lg"},{label:At("normal","vk-blocks"),value:"md"},{label:At("Small","vk-blocks"),value:"sm"}],onChange:function(e){return a({buttonSize:e})}}),r.a.createElement(zt,{label:At("Button Position:","vk-blocks"),selected:v,options:[{label:At("Left","vk-blocks"),value:"left"},{label:At("Center","vk-blocks"),value:"center"},{label:At("Right","vk-blocks"),value:"right"},{label:At("Block","vk-blocks"),value:"block"}],onChange:function(e){return a({buttonAlign:e})}}),r.a.createElement(zt,{label:At("Button Style:","vk-blocks"),selected:m,options:[{label:At("Solid color","vk-blocks"),value:"0"},{label:At("No background","vk-blocks"),value:"1"}],help:At('If you select "No background", that you need to select a Custom Color.',"vk-blocks"),onChange:function(e){return a({buttonType:e})}}),r.a.createElement(zt,{label:At("Default Color:","vk-blocks"),selected:b,options:[{label:At("Primary","vk-blocks"),value:"primary"},{label:At("Secondary","vk-blocks"),value:"secondary"},{label:At("Success","vk-blocks"),value:"success"},{label:At("Info","vk-blocks"),value:"info"},{label:At("Warning","vk-blocks"),value:"warning"},{label:At("Danger","vk-blocks"),value:"danger"},{label:At("Light","vk-blocks"),value:"light"},{label:At("Dark","vk-blocks"),value:"dark"}],onChange:function(e){return a({buttonColor:e})}}),r.a.createElement(Ft,{label:At("Custom Color","vk-blocks"),help:At("This custom color overrides the default color. If you want to use the default color, click the clear button.","vk-blocks")},r.a.createElement(Gt,{value:f,onChange:function(e){return a({buttonColorCustom:e})}})),r.a.createElement(Ft,{label:At("Font Awesome:","vk-blocks"),help:r.a.createElement("a",{href:"https://fontawesome.com/icons?d=gallery&m=free",target:"_blank"},At("Font Awesome icon list","vk-blocks"))},r.a.createElement(Ut,{label:At("Before text","vk-blocks"),help:At("Enter Font Awesome Class.This icon will appear before text. Ex) fas fa-arrow-circle-right","vk-blocks"),value:k,onChange:function(e){return a({fontAwesomeIconBefore:e})},placeholder:"fas fa-arrow-circle-right"}),r.a.createElement(Ut,{label:At("After text","vk-blocks"),help:At("Enter Font Awesome Class.This icon will appear after text. Ex) fas fa-external-link-alt","vk-blocks"),value:d,onChange:function(e){return a({fontAwesomeIconAfter:e})},placeholder:"fas fa-external-link-alt"})))),r.a.createElement("div",{className:t},r.a.createElement(lt,{lbColorCustom:f,lbColor:b,lbType:m,lbAlign:v,lbSize:p,lbFontAwesomeIconBefore:k,lbFontAwesomeIconAfter:d,lbsubCaption:i,lbRichtext:r.a.createElement(qt,{tagName:"span",className:"vk_button_link_txt",onChange:function(e){return a({content:e})},value:c,placeholder:At("Input text","vk-blocks"),formattingControls:["bold","italic","strikethrough"],keepPlaceholderOnFocus:!0})}),l&&r.a.createElement("form",{className:"block-library-button__inline-link",onSubmit:function(e){return e.preventDefault()}},r.a.createElement(Wt,{icon:"admin-links"}),r.a.createElement(Qt,{value:s,onChange:function(e){return a({buttonUrl:e})}}),r.a.createElement(Vt,{icon:"editor-break",label:At("Apply","vk-blocks"),type:"submit"}))))},save:function(e){var t=e.attributes,n=e.className,o=t.content,a=t.subCaption,l=t.buttonUrl,c=t.buttonTarget,i=t.buttonSize,s=t.buttonType,u=t.buttonColor,p=t.buttonColorCustom,m=t.buttonAlign,b=t.fontAwesomeIconBefore,f=t.fontAwesomeIconAfter,v="";return p?v="vk_button vk_button-color-custom vk_button-align-".concat(m):p||(v="vk_button vk_button-align-".concat(m)),n&&(v=n+" "+v),r.a.createElement("div",{className:v},r.a.createElement(lt,{lbColorCustom:p,lbColor:u,lbType:s,lbAlign:m,lbSize:i,lbUrl:l,lbTarget:c,lbFontAwesomeIconBefore:b,lbFontAwesomeIconAfter:f,lbsubCaption:a,lbRichtext:r.a.createElement(qt.Content,{tagName:"span",className:"vk_button_link_txt",value:o})}))},deprecated:It});var Jt=wp.editor.RichText,Kt=[{attributes:{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"}},save:function(e){var t=e.attributes,n=t.heading,o=t.content;return r.a.createElement("dl",{className:"vk_faq"},r.a.createElement(Jt.Content,{tagName:"dt",className:"vk_faq_title",value:n}),r.a.createElement(Jt.Content,{tagName:"dd",className:"vk_faq_content",value:o}))}}],Xt=wp.i18n.__,Zt=wp.blocks.registerBlockType,en=wp.editor.RichText,tn=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},React.createElement("path",{d:"M178.9,191.6c7.2,5,12,8.2,14.2,9.4c3.3,1.9,7.8,4,13.4,6.5l-16.1,32.4c-8.1-3.9-16.1-8.6-24-14 c-7.9-5.4-13.4-9.5-16.6-12.2c-12.8,5.5-28.8,8.3-48,8.3c-28.4,0-50.9-7.4-67.3-22.2c-19.4-17.5-29.1-42.2-29.1-73.9 c0-30.8,8.5-54.7,25.5-71.8c17-17.1,40.7-25.6,71.2-25.6c31.1,0,55,8.3,71.9,25c16.9,16.7,25.3,40.6,25.3,71.6 C199.3,152.8,192.5,175,178.9,191.6z M134.6,161.9c4.6-8.3,6.9-20.6,6.9-37c0-18.9-3.5-32.4-10.5-40.5c-7-8.1-16.7-12.1-29-12.1 c-11.5,0-20.8,4.1-28,12.4c-7.1,8.3-10.7,21.2-10.7,38.7c0,20.4,3.5,34.8,10.5,43c7,8.3,16.6,12.4,28.7,12.4 c3.9,0,7.6-0.4,11.1-1.1c-4.9-4.7-12.5-9.1-23-13.3l9.1-20.8c5.1,0.9,9.1,2.1,11.9,3.4c2.9,1.4,8.4,4.9,16.7,10.7 C130.1,159.1,132.3,160.5,134.6,161.9z"}),React.createElement("path",{d:"M137.9,452.6H72.2l-9.1,30.9l-59,0l70.3-187.2h63.1l70.3,187.2h-60.6L137.9,452.6z M125.9,412.1l-20.7-67.3l-20.4,67.3 H125.9z"}),React.createElement("path",{d:"M553.9,239.9h-303c-10,0-18.1-8.1-18.1-18.1c0-10,8.1-18.1,18.1-18.1h303c10,0,18.1,8.1,18.1,18.1 C572,231.8,563.9,239.9,553.9,239.9z"}),React.createElement("path",{d:"M553.9,483.5h-303c-10,0-18.1-8.1-18.1-18.1c0-10,8.1-18.1,18.1-18.1h303c10,0,18.1,8.1,18.1,18.1 C572,475.4,563.9,483.5,553.9,483.5z"}));Zt("vk-blocks/faq",{title:Xt("FAQ","vk-blocks"),icon:tn,category:"vk-blocks-cat",attributes:{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,r=t.heading,a=t.content;return React.createElement("dl",{className:"".concat(o," vk_faq")},React.createElement(en,{tagName:"dt",className:"vk_faq_title",onChange:function(e){return n({heading:e})},value:r,placeholder:Xt("Please enter a question.","vk-blocks")}),React.createElement(en,{tagName:"dd",className:"vk_faq_content",onChange:function(e){return n({content:e})},value:a,placeholder:Xt("Please enter a answer.","vk-blocks")}))},save:function(e){var t=e.attributes,n=e.className,o=t.heading,r=t.content;return React.createElement("dl",{className:"".concat(n," vk_faq")},React.createElement(en.Content,{tagName:"dt",className:"vk_faq_title",value:o}),React.createElement(en.Content,{tagName:"dd",className:"vk_faq_content",value:r}))},deprecated:Kt});var nn=wp.editor.RichText,on=[{attributes:{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"},arrowFlag:{type:"string",default:"vk_flow-arrow-on"},insertImage:{type:"string",default:null}},save:function(e){var t=e.attributes,n=t.heading,o=t.content,a=t.insertImage,l=t.arrowFlag;return r.a.createElement("div",{className:"".concat(l," vk_flow")},r.a.createElement("div",{className:"vk_flow_frame"},r.a.createElement("dl",{className:"vk_flow_frame_text"},r.a.createElement(nn.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:n}),r.a.createElement(nn.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:o})),a?r.a.createElement("div",{className:"vk_flow_frame_image"},r.a.createElement("img",{src:a,alt:""})):""))}}],rn=wp.i18n.__,an=wp.blocks.registerBlockType,ln=wp.components,cn=(ln.RangeControl,ln.RadioControl),sn=ln.PanelBody,un=ln.Button,pn=(ln.PanelColor,wp.element.Fragment),mn=wp.editor,bn=mn.RichText,fn=mn.InspectorControls,vn=mn.MediaUpload;mn.ColorPalette;function kn(e){return(kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function gn(e,t){return!t||"object"!==kn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yn(e){return(yn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _n(e,t){return(_n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}an("vk-blocks/flow",{title:rn("Flow","vk-blocks"),icon:"arrow-down",category:"vk-blocks-cat",attributes:{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"},arrowFlag:{type:"string",default:"vk_flow-arrow-on"},insertImage:{type:"string",default:null}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,r=t.heading,a=t.content,l=t.insertImage,c=t.arrowFlag;return[React.createElement(pn,null,React.createElement(fn,null,React.createElement(sn,{title:rn("Display of arrow","vk-blocks")},React.createElement(cn,{selected:c,options:[{label:rn("Arrow display","vk-blocks"),value:"vk_flow-arrow-on"},{label:rn("Arrow hidden","vk-blocks"),value:"vk_flow-arrow-off"}],onChange:function(e){return n({arrowFlag:e})}}))),React.createElement("div",{className:"".concat(o," ").concat(c," vk_flow")},React.createElement("div",{className:"vk_flow_frame"},React.createElement("dl",{className:"vk_flow_frame_text"},React.createElement(bn,{tagName:"dt",className:"vk_flow_frame_text_title",onChange:function(e){return n({heading:e})},value:r,placeholder:rn("Input title","vk-blocks")}),React.createElement(bn,{tagName:"dd",className:"vk_flow_frame_text_content",onChange:function(e){return n({content:e})},value:a,placeholder:rn("Input content","vk-blocks")})),React.createElement("div",{className:"vk_flow_frame_image"},React.createElement(vn,{onSelect:function(e){return n({insertImage:e.url})},type:"image",className:"vk_flow_frame_image",value:l,render:function(e){var t=e.open;return React.createElement(un,{onClick:t,className:l?"image-button":"button button-large"},l?React.createElement("img",{className:"icon-image",src:l,alt:rn("Upload image","vk-blocks")}):rn("Select image","vk-blocks"))}})))))]},save:function(e){var t=e.attributes,n=e.className,o=t.heading,r=t.content,a=t.insertImage,l=t.arrowFlag;return React.createElement("div",{className:"".concat(n," ").concat(l," vk_flow")},React.createElement("div",{className:"vk_flow_frame"},React.createElement("dl",{className:"vk_flow_frame_text"},React.createElement(bn.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:o}),React.createElement(bn.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:r})),a?React.createElement("div",{className:"vk_flow_frame_image"},React.createElement("img",{src:a,alt:""})):""))},deprecated:on});var hn=wp.i18n.__,En=wp.editor.RichText,Cn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),gn(this,yn(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_n(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.heading1,o=t.heading2,a=t.heading3,l=t.content1,c=t.content2,i=t.content3,s=t.url1,u=t.url2,p=t.url3,m=t.urlOpenType1,b=t.urlOpenType2,f=t.urlOpenType3,v=t.icon1,k=t.icon2,d=t.icon3,g=t.color1,y=t.color2,_=t.color3,h=t.bgType1,E=t.bgType2,C=t.bgType3,w=t.insertImage1,N=t.insertImage2,x=t.insertImage3,B=this.props.for_,S=this.props.blockNum,T=this.props.blockNum-1,O=[n,o,a],R=[l,c,i],I=[s,u,p],A=[m,b,f],P=[v,k,d],j=[g,y,_],z=[h,E,C],M=[w,N,x],F="",L="",U=M[T]?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url(".concat(M[T],")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:M[T],alt:""})):(j[T]||(j[T]="#0693e3"),"0"===z[T]?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:j[T],border:"1px solid ".concat(j[T])}},r.a.createElement("i",{className:"".concat(P[T]," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+j[T]}},r.a.createElement("i",{className:"".concat(P[T]," vk_prBlocks_item_icon"),style:{color:j[T]}})));return"edit"===B?1===S?(F=r.a.createElement(En,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h1",onChange:function(t){return e({heading1:t})},value:n,placeholder:hn("Input Title","vk-blocks")}),L=r.a.createElement(En,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",onChange:function(t){return e({content1:t})},value:l,placeholder:hn("Input Content","vk-blocks")})):2===S?(F=r.a.createElement(En,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h1",onChange:function(t){return e({heading2:t})},value:o,placeholder:hn("Input Title","vk-blocks")}),L=r.a.createElement(En,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",onChange:function(t){return e({content2:t})},value:c,placeholder:hn("Input Content","vk-blocks")})):3===S&&(F=r.a.createElement(En,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h1",onChange:function(t){return e({heading3:t})},value:a,placeholder:hn("Input Title","vk-blocks")}),L=r.a.createElement(En,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",onChange:function(t){return e({content3:t})},value:i,placeholder:hn("Input Content","vk-blocks")})):"save"===B&&(F=r.a.createElement(En.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(S),tagName:"h1",value:O[T]}),L=r.a.createElement(En.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(S),tagName:"p",value:R[T]})),r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:I[T],target:A[T]?"_blank":"_self",className:"vk_prBlocks_item_link",rel:"noopener noreferrer"},U,F,L))}}])&&dn(n.prototype,o),a&&dn(n,a),t}();function wn(e){throw new Error('"'+e+'" is read-only')}wp.i18n.__;var Nn=wp.components,xn=(Nn.RadioControl,Nn.PanelBody,Nn.Button,Nn.BaseControl,Nn.CheckboxControl,Nn.TextControl,wp.element.Fragment,wp.editor),Bn=xn.RichText;xn.InspectorControls,xn.MediaUpload,xn.ColorPalette;var Sn=[{attributes:function(e){for(var t={},n=1;n<=e;n++)t["heading"+n]={type:"string",source:"html",selector:"h3.vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(4),save:function(e){var t=e.attributes,n=t.heading1,o=t.heading2,a=t.heading3,l=t.content1,c=t.content2,i=t.content3,s=t.url1,u=t.url2,p=t.url3,m=t.urlOpenType1,b=t.urlOpenType2,f=t.urlOpenType3,v=t.icon1,k=t.icon2,d=t.icon3,g=t.color1,y=t.color2,_=t.color3,h=t.bgType1,E=t.bgType2,C=t.bgType3,w=t.insertImage1,N=t.insertImage2,x=t.insertImage3;return r.a.createElement("div",{className:"vk_prBlocks row"},r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:s,target:m?"_blank":"_self",className:"vk_prBlocks_item_link"},w?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+w+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:w,alt:""})):(g||(wn("color1"),g="#0693e3"),"0"===h?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:g,border:"1px solid ".concat(g)}},r.a.createElement("i",{className:"".concat(v," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+g}},r.a.createElement("i",{className:"".concat(v," vk_prBlocks_item_icon"),style:{color:g}}))),r.a.createElement(Bn.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h1",value:n}),r.a.createElement(Bn.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",value:l}))),r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:u,target:b?"_blank":"_self",className:"vk_prBlocks_item_link"},N?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+N+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:N,alt:""})):(y||(wn("color2"),y="#0693e3"),"0"===E?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:y,border:"1px solid ".concat(y)}},r.a.createElement("i",{className:"".concat(k," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+y}},r.a.createElement("i",{className:"".concat(k," vk_prBlocks_item_icon"),style:{color:y}}))),r.a.createElement(Bn.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h1",value:o}),r.a.createElement(Bn.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",value:c}))),r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:p,target:f?"_blank":"_self",className:"vk_prBlocks_item_link"},x?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+x+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:x,alt:""})):(_||(wn("color3"),_="#0693e3"),"0"===C?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:_,border:"1px solid ".concat(_)}},r.a.createElement("i",{className:"".concat(d," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+_}},r.a.createElement("i",{className:"".concat(d," vk_prBlocks_item_icon"),style:{color:_}}))),r.a.createElement(Bn.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h1",value:a}),r.a.createElement(Bn.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",value:i}))))}},{attributes:function(e){for(var t={},n=1;n<=e;n++)t["heading"+n]={type:"string",source:"html",selector:"h1.vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(4),save:function(e){var t=e.attributes;return r.a.createElement("article",{className:"vk_prBlocks row"},r.a.createElement(Cn,{attributes:t,blockNum:1,for_:"save"}),r.a.createElement(Cn,{attributes:t,blockNum:2,for_:"save"}),r.a.createElement(Cn,{attributes:t,blockNum:3,for_:"save"}))}}];function Tn(e){return(Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function On(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Rn(e,t){return!t||"object"!==Tn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function An(e,t){return(An=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Pn=wp.i18n.__,jn=wp.editor.RichText,zn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Rn(this,In(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&An(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.heading1,o=t.heading2,a=t.heading3,l=t.content1,c=t.content2,i=t.content3,s=t.url1,u=t.url2,p=t.url3,m=t.urlOpenType1,b=t.urlOpenType2,f=t.urlOpenType3,v=t.icon1,k=t.icon2,d=t.icon3,g=t.color1,y=t.color2,_=t.color3,h=t.bgType1,E=t.bgType2,C=t.bgType3,w=t.insertImage1,N=t.insertImage2,x=t.insertImage3,B=this.props.for_,S=this.props.blockNum,T=this.props.blockNum-1,O=[n,o,a],R=[l,c,i],I=[s,u,p],A=[m,b,f],P=[v,k,d],j=[g,y,_],z=[h,E,C],M=[w,N,x],F="",L="",U=M[T]?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url(".concat(M[T],")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:M[T],alt:""})):(j[T]||(j[T]="#0693e3"),"0"===z[T]?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:j[T],border:"1px solid ".concat(j[T])}},r.a.createElement("i",{className:"".concat(P[T]," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+j[T]}},r.a.createElement("i",{className:"".concat(P[T]," vk_prBlocks_item_icon"),style:{color:j[T]}})));return"edit"===B?1===S?(F=r.a.createElement(jn,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h3",onChange:function(t){return e({heading1:t})},value:n,placeholder:Pn("Input Title","vk-blocks")}),L=r.a.createElement(jn,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",onChange:function(t){return e({content1:t})},value:l,placeholder:Pn("Input Content","vk-blocks")})):2===S?(F=r.a.createElement(jn,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h3",onChange:function(t){return e({heading2:t})},value:o,placeholder:Pn("Input Title","vk-blocks")}),L=r.a.createElement(jn,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",onChange:function(t){return e({content2:t})},value:c,placeholder:Pn("Input Content","vk-blocks")})):3===S&&(F=r.a.createElement(jn,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h3",onChange:function(t){return e({heading3:t})},value:a,placeholder:Pn("Input Title","vk-blocks")}),L=r.a.createElement(jn,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",onChange:function(t){return e({content3:t})},value:i,placeholder:Pn("Input Content","vk-blocks")})):"save"===B&&(F=r.a.createElement(jn.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(S),tagName:"h3",value:O[T]}),L=r.a.createElement(jn.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(S),tagName:"p",value:R[T]})),I[T]&&"save"===B?r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:I[T],className:"vk_prBlocks_item_link",target:A[T]?"_blank":"_self",rel:"noopener noreferrer"},U,F,L)):r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},U,F,L)}}])&&On(n.prototype,o),a&&On(n,a),t}(),Mn=wp.i18n.__,Fn=wp.blocks.registerBlockType,Ln=wp.components,Un=Ln.RadioControl,Wn=Ln.PanelBody,Vn=Ln.Button,Dn=Ln.BaseControl,$n=Ln.CheckboxControl,qn=Ln.TextControl,Hn=wp.element.Fragment,Gn=wp.editor,Qn=(Gn.RichText,Gn.InspectorControls),Yn=Gn.MediaUpload,Jn=Gn.ColorPalette,Kn=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("g",null,r.a.createElement("g",null,r.a.createElement("circle",{cx:"288",cy:"186.2",r:"60"}),r.a.createElement("rect",{x:"213.5",y:"278.8",width:"149",height:"107"})),r.a.createElement("g",null,r.a.createElement("circle",{cx:"74.5",cy:"186.2",r:"60"}),r.a.createElement("rect",{y:"278.8",width:"149",height:"107"})),r.a.createElement("g",null,r.a.createElement("circle",{cx:"501.5",cy:"186.2",r:"60"}),r.a.createElement("rect",{x:"427",y:"278.8",width:"149",height:"107"}))));Fn("vk-blocks/pr-blocks",{title:Mn("PR Blocks (Beta)","vk-blocks"),icon:Kn,category:"vk-blocks-cat",attributes:function(e){for(var t={},n=1;n<=e;n++)t["heading"+n]={type:"string",source:"html",selector:".vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(4),edit:function(e){var t,n=e.attributes,o=e.setAttributes,a=e.className,l=(n.heading1,n.heading2,n.heading3,n.content1,n.content2,n.content3,n.url1),c=n.url2,i=n.url3,s=n.urlOpenType1,u=n.urlOpenType2,p=n.urlOpenType3,m=n.icon1,b=n.icon2,f=n.icon3,v=n.color1,k=n.color2,d=n.color3,g=n.bgType1,y=n.bgType2,_=n.bgType3,h=n.insertImage1,E=n.insertImage2,C=n.insertImage3;return t=a?"".concat(a," vk_prBlocks row"):"vk_prBlocks row",[r.a.createElement(Hn,null,r.a.createElement(Qn,null,r.a.createElement(Wn,{title:Mn("PR Block1 Setting","vk-blocks")},r.a.createElement(Dn,{label:Mn("Link URL:","vk-blocks")},r.a.createElement(qn,{value:l,onChange:function(e){return o({url1:e})}}),r.a.createElement($n,{label:Mn("Open link new tab.","vk-blocks"),checked:s,onChange:function(e){return o({urlOpenType1:e})}})),r.a.createElement(Dn,{label:Mn("Icon 1","vk-blocks")},r.a.createElement(qn,{label:Mn("Class name of the Font Awesome icon font you want to use:","vk-blocks"),value:m,onChange:function(e){return o({icon1:e})},placeholder:"fas fa-file",help:r.a.createElement("a",{href:"https://fontawesome.com/icons?d=gallery&m=free",target:"_blank"},Mn("Font Awesome icon list","vk-blocks"))}),r.a.createElement(Jn,{value:v,onChange:function(e){e?o({color1:e}):(o({color1:"#0693e3"}),o({bgType1:"0"}))}}),r.a.createElement(Un,{label:Mn("Icon Background:","vk-blocks"),selected:g,options:[{label:Mn("Solid color","vk-blocks"),value:"0"},{label:Mn("No background","vk-blocks"),value:"1"}],onChange:function(e){return o({bgType1:e})}})),r.a.createElement(Dn,{label:Mn("PR Image 1","vk-blocks"),help:Mn("When you have an image. Image is displayed with priority","vk-blocks")},r.a.createElement(Yn,{onSelect:function(e){return o({insertImage1:e.url})},type:"image",value:h,render:function(e){var t=e.open;return r.a.createElement(Vn,{onClick:t,className:h?"image-button":"button button-large"},h?r.a.createElement("img",{className:"icon-image",src:h,alt:Mn("Upload image","vk-blocks")}):Mn("Select image","vk-blocks"))}}))),r.a.createElement(Wn,{title:Mn("PR Block2 Setting","vk-blocks")},r.a.createElement(Dn,{label:Mn("Link URL:","vk-blocks")},r.a.createElement(qn,{value:c,onChange:function(e){return o({url2:e})}}),r.a.createElement($n,{label:Mn("Open link new tab.","vk-blocks"),checked:u,onChange:function(e){return o({urlOpenType2:e})}})),r.a.createElement(Dn,{label:Mn("Icon 2","vk-blocks")},r.a.createElement(qn,{label:Mn("Class name of the Font Awesome icon font you want to use:","vk-blocks"),value:b,onChange:function(e){return o({icon2:e})},placeholder:"fas fa-file",help:r.a.createElement("a",{href:"https://fontawesome.com/icons?d=gallery&m=free",target:"_blank"},Mn("Font Awesome icon list","vk-blocks"))}),r.a.createElement(Jn,{value:k,onChange:function(e){e?o({color2:e}):(o({color2:"#0693e3"}),o({bgType2:"0"}))}}),r.a.createElement(Un,{label:Mn("Icon Background:","vk-blocks"),selected:y,options:[{label:Mn("Solid color","vk-blocks"),value:"0"},{label:Mn("No background","vk-blocks"),value:"1"}],onChange:function(e){return o({bgType2:e})}})),r.a.createElement(Dn,{label:Mn("PR Image 2","vk-blocks"),help:Mn("When you have an image. Image is displayed with priority.","vk-blocks")},r.a.createElement(Yn,{onSelect:function(e){return o({insertImage2:e.url})},type:"image",value:E,render:function(e){var t=e.open;return r.a.createElement(Vn,{onClick:t,className:E?"image-button":"button button-large"},E?r.a.createElement("img",{className:"icon-image",src:E,alt:Mn("Upload image","vk-blocks")}):Mn("Select image","vk-blocks"))}}))),r.a.createElement(Wn,{title:Mn("PR Block3 Setting","vk-blocks")},r.a.createElement(Dn,{label:Mn("Link URL:","vk-blocks")},r.a.createElement(qn,{value:i,onChange:function(e){return o({url3:e})}}),r.a.createElement($n,{label:Mn("Open link new tab.","vk-blocks"),checked:p,onChange:function(e){return o({urlOpenType3:e})}})),r.a.createElement(Dn,{label:Mn("Icon 3","vk-blocks")},r.a.createElement(qn,{label:Mn("Class name of the Font Awesome icon font you want to use:","vk-blocks"),value:f,onChange:function(e){return o({icon3:e})},placeholder:"fas fa-file",help:r.a.createElement("a",{href:"https://fontawesome.com/icons?d=gallery&m=free",target:"_blank"},Mn("Font Awesome icon list","vk-blocks"))}),r.a.createElement(Jn,{value:d,onChange:function(e){e?o({color3:e}):(o({color3:"#0693e3"}),o({bgType3:"0"}))}}),r.a.createElement(Un,{label:Mn("Icon Background:","vk-blocks"),selected:_,options:[{label:Mn("Solid color","vk-blocks"),value:"0"},{label:Mn("No background","vk-blocks"),value:"1"}],onChange:function(e){return o({bgType3:e})}})),r.a.createElement(Dn,{label:Mn("PR Image 3","vk-blocks"),help:Mn("When you have an image. Image is displayed with priority.","vk-blocks")},r.a.createElement(Yn,{onSelect:function(e){return o({insertImage3:e.url})},type:"image",value:C,render:function(e){var t=e.open;return r.a.createElement(Vn,{onClick:t,className:C?"image-button":"button button-large"},C?r.a.createElement("img",{className:"icon-image",src:C,alt:Mn("Upload image","vk-blocks")}):Mn("Select image","vk-blocks"))}})))),r.a.createElement("div",{className:t},r.a.createElement(zn,{attributes:n,setAttributes:o,blockNum:1,for_:"edit"}),r.a.createElement(zn,{attributes:n,setAttributes:o,blockNum:2,for_:"edit"}),r.a.createElement(zn,{attributes:n,setAttributes:o,blockNum:3,for_:"edit"})))]},save:function(e){var t,n=e.attributes,o=e.className;return t=o?"".concat(o," vk_prBlocks row"):"vk_prBlocks row",r.a.createElement("div",{className:t},r.a.createElement(zn,{attributes:n,blockNum:1,for_:"save"}),r.a.createElement(zn,{attributes:n,blockNum:2,for_:"save"}),r.a.createElement(zn,{attributes:n,blockNum:3,for_:"save"}))},deprecated:Sn});function Xn(e){return(Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function eo(e,t){return!t||"object"!==Xn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function to(e){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function no(e,t){return(no=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var oo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),eo(this,to(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&no(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonText,n=e.fontAwesomeIconBefore,o=e.fontAwesomeIconAfter,a="",l="";return n&&(a=r.a.createElement("i",{className:"".concat(n," vk_button_link_before")})),o&&(l=r.a.createElement("i",{className:"".concat(o," vk_button_link_after")})),r.a.createElement(r.a.Fragment,null,a,r.a.createElement("span",{className:"vk_button_link_txt"},t),l)}}])&&Zn(n.prototype,o),a&&Zn(n,a),t}();function ro(e){return(ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ao(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function lo(e,t){return!t||"object"!==ro(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function co(e){return(co=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function io(e,t){return(io=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var so=wp.i18n.__,uo=wp.components.Button,po=wp.editor.MediaUpload,mo=wp.editor.RichText,bo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),lo(this,co(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&io(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.attributes,t=e.title,n=e.titleColor,o=e.content,a=e.contentColor,l=e.url,c=e.buttonType,i=e.buttonColor,s=e.buttonColorCustom,u=e.buttonText,p=e.buttonTarget,m=e.Image,b=e.ImageBorderColor,f=e.layout,v=(e.fontAwesomeIconBefore,e.fontAwesomeIconAfter,this.props.setAttributes),k=this.props.className,d=this.props.for_,g="vk_prContent",y="vk_button",_="btn btn-block vk_button_link vk_prContent_colTxt_btn",h={},E="";return g="right"===f?ue()(k,g,"vk_prContent-layout-imageRight"):ue()(k,g,"vk_prContent-layout-imageLeft"),s?(y="".concat(y," vk_button-color-custom"),_="".concat(_," btn-primary"),"0"===c?h={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(h={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(_="".concat(_," btn-").concat(i),h=null):"1"===c&&(_="".concat(_," btn-outline-").concat(i),h=null)),E=null==b?"none":"1px solid ".concat(b),r.a.createElement("div",{className:g},r.a.createElement("div",{className:"col-sm-6 vk_prContent_colImg"},"edit"===d?r.a.createElement(po,{onSelect:function(e){return v({Image:e.sizes.full.url})},type:" image",value:m,render:function(e){var t=e.open;return r.a.createElement(uo,{onClick:t,className:m?"image-button":"button button-large"},m?r.a.createElement("img",{className:"vk_prContent_colImg_image",src:m,alt:so("Upload image","vk-blocks"),style:{border:E}}):so("Select image","vk-blocks"))}}):m?r.a.createElement("img",{className:"vk_prContent_colImg_image",src:m,alt:so("Upload image","vk-blocks"),style:{border:E}}):so("Select image","vk-blocks")),r.a.createElement("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===d?r.a.createElement(r.a.Fragment,null,r.a.createElement(mo,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return v({title:e})},value:t,placeholder:so("Input title.","vk-blocks"),style:{color:n}}),r.a.createElement(mo,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return v({content:e})},value:o,placeholder:so("Input content.","vk-blocks"),style:{color:a}})):r.a.createElement(r.a.Fragment,null,r.a.createElement(mo.Content,{tagName:"h3",value:t,className:"vk_prContent_colTxt_title",style:{color:n}}),r.a.createElement(mo.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:o,style:{color:a}})),function(){if(""!==u&&void 0!==u)return r.a.createElement("div",{className:y},r.a.createElement("a",{href:l,className:_,target:p?"_blank":null,style:h,rel:"noopener noreferrer"},r.a.createElement(oo,{attributes:e})))}()))}}])&&ao(n.prototype,o),a&&ao(n,a),t}();function fo(e){return(fo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ko(e,t){return!t||"object"!==fo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function go(e){return(go=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yo(e,t){return(yo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var _o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ko(this,go(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yo(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonText,n=e.fontAwesomeIconBefore,o=e.fontAwesomeIconAfter,a="",l="";return n&&(a=r.a.createElement("i",{className:"".concat(n," vk_button_link_before")})),o&&(l=r.a.createElement("i",{className:"".concat(o," vk_button_link_after")})),r.a.createElement(r.a.Fragment,null,a,r.a.createElement("span",{className:"vk_button_link_txt"},t),l)}}])&&vo(n.prototype,o),a&&vo(n,a),t}();function ho(e){return(ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Eo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Co(e,t){return!t||"object"!==ho(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wo(e){return(wo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function No(e,t){return(No=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var xo=wp.i18n.__,Bo=wp.components.Button,So=wp.editor.MediaUpload,To=wp.editor.RichText,Oo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Co(this,wo(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&No(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.attributes,t=e.title,n=e.titleColor,o=e.content,a=e.contentColor,l=e.url,c=e.buttonType,i=e.buttonColor,s=e.buttonColorCustom,u=e.buttonText,p=e.buttonTarget,m=e.Image,b=e.ImageBorderColor,f=e.layout,v=(e.fontAwesomeIconBefore,e.fontAwesomeIconAfter,this.props.setAttributes),k=this.props.for_,d="vk_prContent",g="vk_button",y="btn btn-block vk_button_link vk_prContent_colTxt_btn",_={};return d="".concat(d,"right"===f?" vk_prContent-layout-imageRight":" vk_prContent-layout-imageLeft"),s?(g="".concat(g," vk_button-color-custom"),y="".concat(y," btn-primary"),"0"===c?_={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(_={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(y="".concat(y," btn-").concat(i),_=null):"1"===c&&(y="".concat(y," btn-outline-").concat(i),_=null)),r.a.createElement("div",{className:d},r.a.createElement("div",{className:"col-sm-6 vk_prContent_colImg"},"edit"===k?r.a.createElement(So,{onSelect:function(e){return v({Image:e.sizes.full.url})},type:" image",value:m,render:function(e){var t=e.open;return r.a.createElement(Bo,{onClick:t,className:m?"image-button":"button button-large"},m?r.a.createElement("img",{className:"vk_prContent_colImg_image",src:m,alt:xo("Upload image","vk-blocks"),style:{border:"1px solid ".concat(b)}}):xo("Select image","vk-blocks"))}}):m?r.a.createElement("img",{className:"vk_prContent_colImg_image",src:m,alt:xo("Upload image","vk-blocks"),style:{border:"1px solid ".concat(b)}}):xo("Select image","vk-blocks")),r.a.createElement("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?r.a.createElement(r.a.Fragment,null,r.a.createElement(To,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return v({title:e})},value:t,placeholder:xo("Input title.","vk-blocks"),style:{color:n}}),r.a.createElement(To,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return v({content:e})},value:o,placeholder:xo("Input content.","vk-blocks"),style:{color:a}})):r.a.createElement(r.a.Fragment,null,r.a.createElement(To.Content,{tagName:"h3",value:t,className:"vk_prContent_colTxt_title",style:{color:n}}),r.a.createElement(To.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:o,style:{color:a}})),function(){if(""!==u&&void 0!==u)return r.a.createElement("div",{className:g},r.a.createElement("a",{href:l,className:y,target:p?"_blank":null,style:_},r.a.createElement(_o,{attributes:e})))}()))}}])&&Eo(n.prototype,o),a&&Eo(n,a),t}(),Ro=[{attributes:{title:{source:"html",selector:".vk_prContent_colTxt_title"},titleColor:{type:"string"},content:{source:"html",selector:".vk_prContent_colTxt_text"},contentColor:{type:"string"},url:{type:"string",default:null},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonText:{source:"html",selector:".vk_button_link_txt",default:""},buttonTarget:{type:"Boolean",default:!1},Image:{type:"string",default:null},ImageBorderColor:{type:"string",default:null},layout:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string"},fontAwesomeIconAfter:{type:"string"}},save:function(e){var t=e.attributes;e.className;return r.a.createElement(Oo,{attributes:t,for_:"save"})}}],Io=wp.i18n.__,Ao=wp.blocks.registerBlockType,Po=wp.components,jo=(Po.RangeControl,Po.RadioControl),zo=Po.PanelBody,Mo=(Po.Button,Po.BaseControl),Fo=Po.CheckboxControl,Lo=Po.TextControl,Uo=wp.element.Fragment,Wo=wp.editor,Vo=(Wo.RichText,Wo.InspectorControls),Do=(Wo.MediaUpload,Wo.ColorPalette),$o=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("g",null,r.a.createElement("path",{d:"M291.7,133.3l0,245.3l-273.1,0l0-245.3L291.7,133.3 M307.2,117.8l-304.2,0l0,276.4l304.2,0L307.2,117.8L307.2,117.8z"}),r.a.createElement("path",{d:"M560.7,218.8l-213.1,0c-6.1,0-11.1-5-11.1-11.1s5-11.1,11.1-11.1l213.1,0c6.1,0,11.1,5,11.1,11.1 C571.8,213.8,566.8,218.8,560.7,218.8z"}),r.a.createElement("path",{d:"M560.7,265.4l-213.1,0c-6.1,0-11.1-5-11.1-11.1c0-6.1,5-11.1,11.1-11.1l213.1,0c6.1,0,11.1,5,11.1,11.1 C571.8,260.5,566.8,265.4,560.7,265.4z"}),r.a.createElement("path",{d:"M560.7,312.1l-213.1,0c-6.1,0-11.1-5-11.1-11.1c0-6.1,5-11.1,11.1-11.1l213.1,0c6.1,0,11.1,5,11.1,11.1 C571.8,307.1,566.8,312.1,560.7,312.1z"}),r.a.createElement("polygon",{points:"278.4,365.4 31.9,365.4 31.9,287.4 113,182.2 184.4,264.4 229.9,226.5 278.4,290.6 \t"}),r.a.createElement("path",{d:"M360.6,133.3c4.8,0,8.7,3.9,8.7,8.7c0,4.8-3.9,8.7-8.7,8.7c-4.8,0-8.7-3.9-8.7-8.7C351.9,137.2,355.8,133.3,360.6,133.3 M360.6,117.8c-13.4,0-24.2,10.9-24.2,24.2c0,13.4,10.9,24.2,24.2,24.2c13.4,0,24.2-10.9,24.2-24.2 C384.9,128.7,374,117.8,360.6,117.8L360.6,117.8z"}),r.a.createElement("path",{d:"M423.3,133.3c4.8,0,8.7,3.9,8.7,8.7c0,4.8-3.9,8.7-8.7,8.7c-4.8,0-8.7-3.9-8.7-8.7C414.6,137.2,418.5,133.3,423.3,133.3 M423.3,117.8c-13.4,0-24.2,10.9-24.2,24.2c0,13.4,10.9,24.2,24.2,24.2s24.2-10.9,24.2-24.2C447.6,128.7,436.7,117.8,423.3,117.8 L423.3,117.8z"}),r.a.createElement("path",{d:"M486,133.3c4.8,0,8.7,3.9,8.7,8.7c0,4.8-3.9,8.7-8.7,8.7c-4.8,0-8.7-3.9-8.7-8.7C477.3,137.2,481.2,133.3,486,133.3 M486,117.8c-13.4,0-24.2,10.9-24.2,24.2c0,13.4,10.9,24.2,24.2,24.2c13.4,0,24.2-10.9,24.2-24.2 C510.2,128.7,499.4,117.8,486,117.8L486,117.8z"}),r.a.createElement("path",{d:"M548.7,133.3c4.8,0,8.7,3.9,8.7,8.7c0,4.8-3.9,8.7-8.7,8.7s-8.7-3.9-8.7-8.7C540,137.2,543.9,133.3,548.7,133.3 M548.7,117.8c-13.4,0-24.2,10.9-24.2,24.2c0,13.4,10.9,24.2,24.2,24.2c13.4,0,24.2-10.9,24.2-24.2 C572.9,128.7,562.1,117.8,548.7,117.8L548.7,117.8z"}),r.a.createElement("path",{d:"M566.3,347.6l-224.3,0c-3.1,0-5.6,2.5-5.6,5.6l0,35.5c0,3.1,2.5,5.6,5.6,5.6l224.3,0c3.1,0,5.6-2.5,5.6-5.6v-35.5 C571.8,350.1,569.3,347.6,566.3,347.6z M547.1,379.2v-16.6l9.8,8.3L547.1,379.2z"})));Ao("vk-blocks/pr-content",{title:Io("PR Content","vk-blocks"),icon:$o,category:"vk-blocks-cat",attributes:{title:{source:"html",selector:".vk_prContent_colTxt_title"},titleColor:{type:"string"},content:{source:"html",selector:".vk_prContent_colTxt_text"},contentColor:{type:"string"},url:{type:"string",default:null},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonText:{source:"html",selector:".vk_button_link_txt",default:""},buttonTarget:{type:"Boolean",default:!1},Image:{type:"string",default:null},ImageBorderColor:{type:"string",default:null},layout:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string"},fontAwesomeIconAfter:{type:"string"}},edit:function(e){var t=e.attributes,n=e.className,o=e.setAttributes,a=t.titleColor,l=t.contentColor,c=t.url,i=t.buttonType,s=t.buttonColor,u=t.buttonColorCustom,p=t.buttonText,m=t.buttonTarget,b=t.ImageBorderColor,f=t.layout,v=t.fontAwesomeIconBefore,k=t.fontAwesomeIconAfter;return r.a.createElement(Uo,null,r.a.createElement(Vo,null,r.a.createElement(zo,{title:Io("Color Setting","vk-blocks")},r.a.createElement(Mo,{label:Io("Title Color","vk-blocks")},r.a.createElement(Do,{value:a,onChange:function(e){return o({titleColor:e})}})),r.a.createElement(Mo,{label:Io("Content Color","vk-blocks")},r.a.createElement(Do,{value:l,onChange:function(e){return o({contentColor:e})}})),r.a.createElement(Mo,{label:Io("Image Border Color","vk-blocks")},r.a.createElement(Do,{value:b,onChange:function(e){return o({ImageBorderColor:e})}}))),r.a.createElement(zo,{title:Io("Button Setting","vk-blocks")},r.a.createElement(Mo,{label:Io("Button Text","vk-blocks")},r.a.createElement(Lo,{value:p,onChange:function(e){return o({buttonText:e})},placeholder:"Input button text."})),r.a.createElement(Mo,{label:Io("Link URL","vk-blocks")},r.a.createElement(Lo,{value:c,onChange:function(e){return o({url:e})},placeholder:"https://vektor-inc.co.jp/"})),r.a.createElement(Fo,{label:Io("Open link new tab.","vk-blocks"),checked:m,onChange:function(e){return o({buttonTarget:e})}}),r.a.createElement(Mo,{label:Io("Button Type","vk-blocks")},r.a.createElement(jo,{selected:i,options:[{label:Io("Solid","vk-blocks"),value:"0"},{label:Io("Ghost","vk-blocks"),value:"1"}],onChange:function(e){return o({buttonType:e})}})),r.a.createElement(jo,{label:Io("Default Color:","vk-blocks"),selected:s,options:[{label:Io("Primary","vk-blocks"),value:"primary"},{label:Io("Secondary","vk-blocks"),value:"secondary"},{label:Io("Success","vk-blocks"),value:"success"},{label:Io("Info","vk-blocks"),value:"info"},{label:Io("Warning","vk-blocks"),value:"warning"},{label:Io("Danger","vk-blocks"),value:"danger"},{label:Io("Light","vk-blocks"),value:"light"},{label:Io("Dark","vk-blocks"),value:"dark"}],onChange:function(e){return o({buttonColor:e})}}),r.a.createElement(Mo,{label:Io("Button Color","vk-blocks")},r.a.createElement(Do,{value:u,onChange:function(e){return o({buttonColorCustom:e})}})),r.a.createElement(Mo,{label:Io("Font Awesome:","vk-blocks"),help:r.a.createElement("a",{href:"https://fontawesome.com/icons?d=gallery&m=free",target:"_blank"},Io("Font Awesome icon list","vk-blocks"))},r.a.createElement(Lo,{label:Io("Before text","vk-blocks"),help:Io("Enter Font Awesome Class.This icon will appear before text. Ex) fas fa-arrow-circle-right","vk-blocks"),value:v,onChange:function(e){return o({fontAwesomeIconBefore:e})},placeholder:"fas fa-arrow-circle-right"}),r.a.createElement(Lo,{label:Io("After text","vk-blocks"),help:Io("Enter Font Awesome Class.This icon will appear after text. Ex) fas fa-external-link-alt","vk-blocks"),value:k,onChange:function(e){return o({fontAwesomeIconAfter:e})},placeholder:"fas fa-external-link-alt"}))),r.a.createElement(zo,{title:Io("Layout Setting","vk-blocks")},r.a.createElement(jo,{label:Io("Layout Type","vk-blocks"),selected:f,options:[{label:Io("Right","vk-blocks"),value:"right"},{label:Io("Left","vk-blocks"),value:"left"}],onChange:function(e){return o({layout:e})}}))),r.a.createElement(bo,{attributes:t,setAttributes:o,className:n,for_:"edit"}))},save:function(e){var t=e.attributes,n=e.className;return r.a.createElement(bo,{attributes:t,className:n,for_:"save"})},deprecated:Ro})}]);
|
26 |
-
//# sourceMappingURL=block-build.js.map
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugins/vk-blocks/build/block-build.js.map
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/react/index.js","webpack:///./node_modules/classnames/index.js","webpack:///./node_modules/react/cjs/react.production.min.js","webpack:///./node_modules/react/node_modules/object-assign/index.js","webpack:///./src/balloon/block.js","webpack:///./src/spacer/component.js","webpack:///./src/spacer/deprecated/component.js","webpack:///./src/spacer/deprecated/deprecated.js","webpack:///./src/spacer/deprecated/schema.js","webpack:///./src/spacer/block.js","webpack:///./src/spacer/schema.js","webpack:///./src/outer/component-divider.js","webpack:///./src/outer/component.js","webpack:///./src/outer/deprecated/component-divider.js","webpack:///./src/outer/deprecated/component.js","webpack:///./src/outer/deprecated/block.js","webpack:///./src/outer/deprecated/schema.js","webpack:///./src/_helper/to-number.js","webpack:///./src/outer/block.js","webpack:///./src/outer/schema.js","webpack:///./src/heading/heading-toolbar.js","webpack:///./src/heading/component.js","webpack:///./src/heading/deprecated/block.js","webpack:///./src/heading/deprecated/schema.js","webpack:///./src/heading/block.js","webpack:///./src/heading/schema.js","webpack:///./src/alert/deprecated.js","webpack:///./src/alert/block.js","webpack:///./src/button/component.js","webpack:///./src/button/deprecated/component-deprecated.js","webpack:///./src/button/deprecated/component-deprecated-id.js","webpack:///./src/button/deprecated/component-deprecated-noopenernoreferer-id.js","webpack:///./src/button/deprecated/component-deprecated-subcaption-noNoopnnernoreferer-id.js","webpack:///./src/button/deprecated/deprecated.js","webpack:///./src/button/block.js","webpack:///./src/faq/deprecated.js","webpack:///./src/faq/block.js","webpack:///./src/flow/deprecated.js","webpack:///./src/flow/block.js","webpack:///./src/pr-blocks/deprecated/component-block.js","webpack:///./src/pr-blocks/deprecated/block.js","webpack:///./src/pr-blocks/component-block.js","webpack:///./src/pr-blocks/block.js","webpack:///./src/pr-content/component-fontawesome.js","webpack:///./src/pr-content/component.js","webpack:///./src/pr-content/deprecated/component-fontawesome-deprecated.js","webpack:///./src/pr-content/deprecated/component-deprecated.js","webpack:///./src/pr-content/deprecated/deprecated.js","webpack:///./src/pr-content/block.js","webpack:///./src/pr-content/schema.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","__WEBPACK_AMD_DEFINE_RESULT__","hasOwn","classNames","classes","arguments","length","arg","argType","push","Array","isArray","inner","apply","join","default","undefined","k","for","q","u","v","w","x","y","z","A","B","C","iterator","D","a","b","e","encodeURIComponent","g","h","f","Error","replace","framesToPop","aa","E","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","F","G","this","props","context","refs","updater","H","I","isReactComponent","setState","forceUpdate","J","constructor","isPureReactComponent","K","current","currentDispatcher","L","M","ref","__self","__source","N","children","defaultProps","$$typeof","type","_owner","O","P","Q","R","pop","result","keyPrefix","func","count","S","V","T","U","next","done","keys","=",":","escape","toString","ca","da","W","ba","X","Children","map","forEach","toArray","only","createRef","Component","PureComponent","createContext","_calculateChangedBits","_currentValue","_currentValue2","_threadCount","Provider","Consumer","_context","forwardRef","render","lazy","_ctor","_status","_result","memo","compare","Fragment","StrictMode","Suspense","createElement","cloneElement","createFactory","isValidElement","version","unstable_ConcurrentMode","unstable_Profiler","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","assign","Y","Z","getOwnPropertySymbols","propIsEnumerable","propertyIsEnumerable","test1","String","getOwnPropertyNames","test2","fromCharCode","test3","split","letter","err","shouldUseNative","target","source","from","symbols","to","val","TypeError","toObject","__","wp","i18n","registerBlockType","blocks","components","RadioControl","RangeControl","PanelBody","Button","element","editor","RichText","InspectorControls","MediaUpload","ColorPalette","BlockIcon","React","xmlns","width","height","viewBox","title","icon","category","attributes","content","selector","balloonName","balloonType","balloonBgColor","balloonAlign","IconImage","edit","_ref","className","setAttributes","label","help","selected","options","onChange","concat","onSelect","sizes","full","url","_ref2","open","onClick","src","alt","tagName","placeholder","style","background","border","save","_ref3","Content","SpacerComponent","_React$Component","_classCallCheck","_possibleConstructorReturn","_getPrototypeOf","_inherits","_this$props$attribute","unit","pc","tablet","mobile","react_default","component_classCallCheck","component_possibleConstructorReturn","component_getPrototypeOf","component_inherits","deprecated","deprecated_component_SpacerComponent","BaseControl","SelectControl","points","component_SpacerComponent","componentDivider","level","color","whichSide","dividerType","sectionPadding","sectionClass","lenderDivider","Math","abs","strokeWidth","fill","absLevel","tiltSectionStyle","curveSectionStyle","waveSectionStyle","DivideAbs4","triangleSectionStyle","paddingBottom","preserveAspectRatio","paddingTop","InnerBlocks","hex2rgba","hex","alpha","match","slice","parseInt","outer_component_classCallCheck","outer_component_possibleConstructorReturn","outer_component_getPrototypeOf","outer_component_inherits","classPaddingLR","classPaddingVertical","classBgPosition","classWidth","elm","containerClass","whichSideUpper","whichSideLower","bgStyle","borderProperty","borderRadiusProperty","bgColor","bgImage","bgPosition","outerWidth","padding_left_and_right","padding_top_and_bottom","opacity","upper_level","lower_level","upperDividerBgColor","lowerDividerBgColor","borderWidth","borderStyle","borderColor","borderRadius","anchor","for_","id","deprecated_component_classCallCheck","deprecated_component_possibleConstructorReturn","deprecated_component_getPrototypeOf","deprecated_component_inherits","component_InnerBlocks","vk_blocks_check","is_pro","deprecated_component_Component","toNumber","min","max","Number","isNaN","supports","block_Fragment","block_InspectorControls","block_PanelBody","block_BaseControl","block_RangeControl","step","block_SelectControl","component_Component","range","window","lodash","sprintf","Toolbar","HeadingToolbar","targetLevel","selectedLevel","isActive","subscript","_this","_this$props","minLevel","maxLevel","controls","index","createLevelControl","heading_component_classCallCheck","heading_component_possibleConstructorReturn","heading_component_getPrototypeOf","heading_component_inherits","cStyle","tStyle","align","titleColor","titleSize","subText","subTextFlag","subTextColor","subTextSize","titleStyle","titleMarginBottom","outerMarginBottom","marginBottom","fontSize","textAlign","component_RichText","BlockControls","AlignmentToolbar","Version0_6_0","block_RichText","number","set_attirbuite","heading1","heading2","heading3","content1","content2","content3","url1","url2","url3","urlOpenType1","urlOpenType2","urlOpenType3","icon1","icon2","icon3","color1","color2","color3","bgType1","bgType2","bgType3","insertImage1","insertImage2","insertImage3","href","backgroundImage","backgroundRepeat","backgroundSize","_readOnlyError","backgroundColor","deprecated_block_Fragment","customClassName","setTitleFontSize","newLevel","heading_block_Fragment","block_BlockControls","heading_toolbar","heading_block_InspectorControls","heading_block_PanelBody","heading_block_SelectControl","heading_block_RangeControl","block_AlignmentToolbar","heading_block_ColorPalette","block_RadioControl","heading_component_Component","deprecated_RichText","event","alert_block_RichText","newContent","button_component_classCallCheck","button_component_possibleConstructorReturn","button_component_getPrototypeOf","button_component_inherits","buttonColorCustom","lbColorCustom","buttonColor","lbColor","buttonType","lbType","buttonAlign","lbAlign","buttonSize","lbSize","buttonUrl","lbUrl","buttonTarget","lbTarget","fontAwesomeIconBefore","lbFontAwesomeIconBefore","fontAwesomeIconAfter","lbFontAwesomeIconAfter","richText","lbRichtext","subCaption","lbsubCaption","aClass","aStyle","iconBefore","iconAfter","role","aria-pressed","rel","ComponentDeprecated","component_deprecated_classCallCheck","component_deprecated_possibleConstructorReturn","component_deprecated_getPrototypeOf","component_deprecated_inherits","ComponentDeprecatedId","component_deprecated_id_classCallCheck","component_deprecated_id_possibleConstructorReturn","component_deprecated_id_getPrototypeOf","component_deprecated_id_inherits","ComponentDeprecatedNoOpnnerNoRefererID","component_deprecated_noopenernoreferer_id_classCallCheck","component_deprecated_noopenernoreferer_id_possibleConstructorReturn","component_deprecated_noopenernoreferer_id_getPrototypeOf","component_deprecated_noopenernoreferer_id_inherits","ComponentDeprecatedSubcaptionNoopennerId","component_deprecated_subcaption_noNoopnnernoreferer_id_classCallCheck","component_deprecated_subcaption_noNoopnnernoreferer_id_possibleConstructorReturn","component_deprecated_subcaption_noNoopnnernoreferer_id_getPrototypeOf","component_deprecated_subcaption_noNoopnnernoreferer_id_inherits","component_deprecated_ComponentDeprecated","deprecated_deprecated_RichText","component_deprecated_id_ComponentDeprecatedId","component_deprecated_noopenernoreferer_id_ComponentDeprecatedNoOpnnerNoRefererID","_ref4","component_deprecated_subcaption_noNoopnnernoreferer_id_ComponentDeprecatedSubcaptionNoopennerId","CheckboxControl","TextControl","Dashicon","IconButton","URLInput","isSelected","button_block_Fragment","button_block_InspectorControls","button_block_PanelBody","checked","button_block_RadioControl","button_block_BaseControl","button_block_ColorPalette","button_component_Component","button_block_RichText","formattingControls","keepPlaceholderOnFocus","onSubmit","preventDefault","heading","faq_deprecated_RichText","faq_block_RichText","arrowFlag","insertImage","flow_deprecated_RichText","PanelColor","flow_block_Fragment","flow_block_InspectorControls","flow_block_PanelBody","flow_block_RadioControl","flow_block_RichText","flow_block_MediaUpload","flow_block_Button","ComponentBlock","component_block_classCallCheck","component_block_possibleConstructorReturn","component_block_getPrototypeOf","component_block_inherits","blockNum","blockNumArrIndex","urlOpenType","bgType","richTextH1Save","richTextPSave","drawElement","component_block_RichText","set_attributes","block_readOnlyError","deprecated_block_RichText","set_attributes2","component_block_ComponentBlock","pr_blocks_component_block_classCallCheck","pr_blocks_component_block_possibleConstructorReturn","pr_blocks_component_block_getPrototypeOf","pr_blocks_component_block_inherits","pr_blocks_component_block_RichText","cx","cy","pr_blocks_block_Fragment","pr_blocks_block_InspectorControls","pr_blocks_block_PanelBody","pr_blocks_block_BaseControl","pr_blocks_block_TextControl","pr_blocks_block_CheckboxControl","pr_blocks_block_ColorPalette","pr_blocks_block_RadioControl","pr_blocks_block_MediaUpload","pr_blocks_block_Button","pr_blocks_component_block_ComponentBlock","_ref5","Fontawesome","component_fontawesome_classCallCheck","component_fontawesome_possibleConstructorReturn","component_fontawesome_getPrototypeOf","component_fontawesome_inherits","buttonText","pr_content_component_classCallCheck","pr_content_component_possibleConstructorReturn","pr_content_component_getPrototypeOf","pr_content_component_inherits","contentColor","Image","ImageBorderColor","layout","btnClass","imageBorderProperty","component_MediaUpload","component_Button","pr_content_component_RichText","component_fontawesome_Fontawesome","component_fontawesome_deprecated_classCallCheck","component_fontawesome_deprecated_possibleConstructorReturn","component_fontawesome_deprecated_getPrototypeOf","component_fontawesome_deprecated_inherits","deprecated_component_deprecated_classCallCheck","deprecated_component_deprecated_possibleConstructorReturn","deprecated_component_deprecated_getPrototypeOf","deprecated_component_deprecated_inherits","component_deprecated_MediaUpload","component_deprecated_Button","component_deprecated_RichText","component_fontawesome_deprecated_Fontawesome","deprecated_component_deprecated_ComponentDeprecated","pr_content_block_Fragment","pr_content_block_InspectorControls","pr_content_block_PanelBody","pr_content_block_BaseControl","pr_content_block_ColorPalette","pr_content_block_TextControl","pr_content_block_CheckboxControl","pr_content_block_RadioControl","pr_content_component_Component"],"mappings":"aACA,IAAAA,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,GAAA,CACAG,EAAAH,EACAI,GAAA,EACAH,QAAA,IAUA,OANAI,EAAAL,GAAAM,KAAAJ,EAAAD,QAAAC,IAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAQ,EAAAF,EAGAN,EAAAS,EAAAV,EAGAC,EAAAU,EAAA,SAAAR,EAAAS,EAAAC,GACAZ,EAAAa,EAAAX,EAAAS,IACAG,OAAAC,eAAAb,EAAAS,EAAA,CAA0CK,YAAA,EAAAC,IAAAL,KAK1CZ,EAAAkB,EAAA,SAAAhB,GACA,oBAAAiB,eAAAC,aACAN,OAAAC,eAAAb,EAAAiB,OAAAC,YAAA,CAAwDC,MAAA,WAEx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OAAWmN,EAAc,CAACiP,qBAAsBpc,KAC1DoO,YAAa,+BAIzBkB,EAAAzM,EAAAiG,cAACsc,GAAD,CAAW/Y,MAAOtB,GAAG,iBAAkB,cAC/BuE,EAAAzM,EAAAiG,cAAC2c,GAAD,CACIrY,MAAOrC,GAAG,cAAe,aACzBuC,SAAUwW,EACVvW,QAAS,CACL,CAACH,MAAOrC,GAAG,QAAS,aAAc/K,MAAO,SACzC,CAACoN,MAAOrC,GAAG,OAAQ,aAAc/K,MAAO,SAE5CwN,SAAU,SAACxN,GAAD,OAAWmN,EAAc,CAAC2W,OAAQ9jB,SAI5DsP,EAAAzM,EAAAiG,cAAC4c,GAAD,CACIlZ,WAAYA,EACZW,cAAeA,EACfD,UAAWA,EACX0G,KAAM,WAetBpF,KAjKsC,SAAAV,GAiKR,IAAxBtB,EAAwBsB,EAAxBtB,WAAYU,EAAYY,EAAZZ,UAEd,OACIoC,EAAAzM,EAAAiG,cAAC4c,GAAD,CACIlZ,WAAYA,EACZU,UAAWA,EACX0G,KAAM,UAKlBjE,WAAYA","file":"./inc/vk-blocks/build/block-build.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 5);\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","/** @license React v16.7.0\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var k=require(\"object-assign\"),n=\"function\"===typeof Symbol&&Symbol.for,p=n?Symbol.for(\"react.element\"):60103,q=n?Symbol.for(\"react.portal\"):60106,r=n?Symbol.for(\"react.fragment\"):60107,t=n?Symbol.for(\"react.strict_mode\"):60108,u=n?Symbol.for(\"react.profiler\"):60114,v=n?Symbol.for(\"react.provider\"):60109,w=n?Symbol.for(\"react.context\"):60110,x=n?Symbol.for(\"react.concurrent_mode\"):60111,y=n?Symbol.for(\"react.forward_ref\"):60112,z=n?Symbol.for(\"react.suspense\"):60113,A=n?Symbol.for(\"react.memo\"):\n60115,B=n?Symbol.for(\"react.lazy\"):60116,C=\"function\"===typeof Symbol&&Symbol.iterator;function aa(a,b,e,c,d,g,h,f){if(!a){a=void 0;if(void 0===b)a=Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var l=[e,c,d,g,h,f],m=0;a=Error(b.replace(/%s/g,function(){return l[m++]}));a.name=\"Invariant Violation\"}a.framesToPop=1;throw a;}}\nfunction D(a){for(var b=arguments.length-1,e=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=0;c<b;c++)e+=\"&args[]=\"+encodeURIComponent(arguments[c+1]);aa(!1,\"Minified React error #\"+a+\"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. \",e)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F={};\nfunction G(a,b,e){this.props=a;this.context=b;this.refs=F;this.updater=e||E}G.prototype.isReactComponent={};G.prototype.setState=function(a,b){\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a?D(\"85\"):void 0;this.updater.enqueueSetState(this,a,b,\"setState\")};G.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function H(){}H.prototype=G.prototype;function I(a,b,e){this.props=a;this.context=b;this.refs=F;this.updater=e||E}var J=I.prototype=new H;\nJ.constructor=I;k(J,G.prototype);J.isPureReactComponent=!0;var K={current:null,currentDispatcher:null},L=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0};\nfunction N(a,b,e){var c=void 0,d={},g=null,h=null;if(null!=b)for(c in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(g=\"\"+b.key),b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=b[c]);var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){for(var l=Array(f),m=0;m<f;m++)l[m]=arguments[m+2];d.children=l}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===d[c]&&(d[c]=f[c]);return{$$typeof:p,type:a,key:g,ref:h,props:d,_owner:K.current}}\nfunction ba(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+(\"\"+a).replace(/[=:]/g,function(a){return b[a]})}var P=/\\/+/g,Q=[];function R(a,b,e,c){if(Q.length){var d=Q.pop();d.result=a;d.keyPrefix=b;d.func=e;d.context=c;d.count=0;return d}return{result:a,keyPrefix:b,func:e,context:c,count:0}}\nfunction S(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q.length&&Q.push(a)}\nfunction T(a,b,e,c){var d=typeof a;if(\"undefined\"===d||\"boolean\"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case \"string\":case \"number\":g=!0;break;case \"object\":switch(a.$$typeof){case p:case q:g=!0}}if(g)return e(c,a,\"\"===b?\".\"+U(a,0):b),1;g=0;b=\"\"===b?\".\":b+\":\";if(Array.isArray(a))for(var h=0;h<a.length;h++){d=a[h];var f=b+U(d,h);g+=T(d,f,e,c)}else if(null===a||\"object\"!==typeof a?f=null:(f=C&&a[C]||a[\"@@iterator\"],f=\"function\"===typeof f?f:null),\"function\"===typeof f)for(a=f.call(a),h=\n0;!(d=a.next()).done;)d=d.value,f=b+U(d,h++),g+=T(d,f,e,c);else\"object\"===d&&(e=\"\"+a,D(\"31\",\"[object Object]\"===e?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":e,\"\"));return g}function V(a,b,e){return null==a?0:T(a,\"\",b,e)}function U(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ca(a,b){a.func.call(a.context,b,a.count++)}\nfunction da(a,b,e){var c=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,c,e,function(a){return a}):null!=a&&(O(a)&&(a=ba(a,d+(!a.key||b&&b.key===a.key?\"\":(\"\"+a.key).replace(P,\"$&/\")+\"/\")+e)),c.push(a))}function W(a,b,e,c,d){var g=\"\";null!=e&&(g=(\"\"+e).replace(P,\"$&/\")+\"/\");b=R(b,g,c,d);V(a,da,b);S(b)}\nvar X={Children:{map:function(a,b,e){if(null==a)return a;var c=[];W(a,c,null,b,e);return c},forEach:function(a,b,e){if(null==a)return a;b=R(null,null,b,e);V(a,ca,b);S(b)},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){O(a)?void 0:D(\"143\");return a}},createRef:function(){return{current:null}},Component:G,PureComponent:I,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,\n_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:B,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:A,type:a,compare:void 0===b?null:b}},Fragment:r,StrictMode:t,Suspense:z,createElement:N,cloneElement:function(a,b,e){null===a||void 0===a?D(\"267\",a):void 0;var c=void 0,d=k({},a.props),g=a.key,h=a.ref,f=a._owner;\nif(null!=b){void 0!==b.ref&&(h=b.ref,f=K.current);void 0!==b.key&&(g=\"\"+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)d.children=e;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];d.children=l}return{$$typeof:p,type:a.type,key:g,ref:h,props:d,_owner:f}},createFactory:function(a){var b=N.bind(null,a);b.type=a;return b},isValidElement:O,version:\"16.7.0\",\nunstable_ConcurrentMode:x,unstable_Profiler:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:K,assign:k}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Baloon block type\n *\n */\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst { registerBlockType } = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {RangeControl, RadioControl, PanelBody, Button} = wp.components;\nconst { Fragment } = wp.element;\nconst {RichText, InspectorControls, MediaUpload, ColorPalette} = wp.editor;\nconst BlockIcon = (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n\t\t<path d=\"M544 450.583c0 22.75 13.014 42.454 32 52.092v7.969c-5.313 0.727-10.736 1.112-16.25 1.112-34.004 0-64.674-14.264-86.361-37.132-13.111 3.491-27.001 5.376-41.389 5.376-79.529 0-144-57.308-144-128s64.471-128 144-128c79.529 0 144 57.308 144 128 0 27.674-9.882 53.296-26.678 74.233-3.412 7.412-5.322 15.656-5.322 24.35zM115.339 110.593c-33.107 26.899-51.339 61.492-51.339 97.407 0 20.149 5.594 39.689 16.626 58.075 11.376 18.96 28.491 36.293 49.494 50.126 15.178 9.996 25.39 25.974 28.088 43.947 0.9 5.992 1.464 12.044 1.685 18.062 3.735-3.097 7.375-6.423 10.94-9.988 12.077-12.076 28.39-18.745 45.251-18.745 2.684 0 5.381 0.168 8.078 0.512 10.474 1.331 21.172 2.008 31.797 2.010v64c-13.564-0.001-26.877-0.869-39.871-2.521-54.989 54.989-120.625 64.85-184.088 66.298v-13.458c34.268-16.789 64-47.37 64-82.318 0-4.877-0.379-9.665-1.082-14.348-57.898-38.132-94.918-96.377-94.918-161.652 0-114.875 114.615-208 256-208 139.229 0 252.496 90.307 255.918 202.76-20.548-9.158-42.92-14.711-66.131-16.289-5.765-28.034-22.701-54.408-49.126-75.878-17.661-14.349-38.458-25.695-61.814-33.722-24.853-8.54-51.38-12.871-78.847-12.871s-53.994 4.331-78.847 12.871c-23.356 8.027-44.153 19.372-61.814 33.722z\"/>\n\t</svg>\n);\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/balloon', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('Ballon', 'vk-blocks'), // Block title.\n\ticon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'vk-blocks-cat', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tattributes: {\n\t\tcontent: {\n\t\t\tsource: 'html',\n selector: 'p',\n\t\t},\n balloonName: {\n source: 'html',\n selector: 'figcaption',\n },\n balloonType: {\n type: 'string',\n default: 'type-serif',\n },\n\t\tballoonBgColor: {\n\t\t\ttype: 'string',\n\t\t},\n\t\tballoonAlign: {\n\t\t\ttype: 'string',\n\t\t\tdefault: 'position-left',\n\t\t},\n\t\tIconImage: {\n\t\t\ttype: 'string',\n\t\t\tdefault: null, // no image by default!\n\t\t}\n\t},\n\n\t/**\n\t * The edit function describes the structure of your block in the context of the editor.\n\t * This represents what the editor will render when the block is used.\n\t *\n\t * The \"edit\" property must be a valid function.\n\t *\n\t * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n\t */\n\tedit( { attributes, className, setAttributes } ) {\n\t\tconst {\n\t\t\tcontent,\n balloonName,\n balloonType,\n balloonBgColor,\n\t\t\tballoonAlign,\n\t\t\tIconImage,\n\t\t} = attributes;\n\n return (\n\t\t\t<Fragment>\n\t\t\t\t<InspectorControls>\n\t\t\t\t\t<PanelBody title={__('Balloon setting', 'vk-blocks')}>\n\t\t\t\t\t\t<RadioControl\n\t\t\t\t\t\t\tlabel={__('Position', 'vk-blocks')}\n\t\t\t\t\t\t\thelp={__('Please specify the layout of the balloon.', 'vk-blocks')}\n\t\t\t\t\t\t\tselected={ balloonAlign }\n\t\t\t\t\t\t\toptions={ [\n\t\t\t\t\t\t\t\t{ label: __('Left', 'vk-blocks'), value: 'position-left' },\n\t\t\t\t\t\t\t\t{ label: __('Right', 'vk-blocks'), value: 'position-right' },\n\t\t\t\t\t\t\t] }\n\t\t\t\t\t\t\tonChange={ ( value ) => setAttributes( { balloonAlign: value } ) }\n\t\t\t\t\t\t/>\n\t\t <RadioControl\n\t\t label={__('Type', 'vk-blocks')}\n\t\t help={__('Please select the type of balloon.', 'vk-blocks')}\n\t\t selected={ balloonType }\n\t\t options={ [\n\t\t { label: __('Serif', 'vk-blocks'), value: 'type-serif' },\n\t\t { label: __('Thinking', 'vk-blocks'), value: 'type-think' }\n\t\t ] }\n\t\t onChange={ ( value ) => setAttributes( { balloonType: value } ) }\n\t\t />\n\t\t <ColorPalette\n\t\t value={balloonBgColor}\n\t\t onChange={(value) => setAttributes({balloonBgColor: value})}\n\t\t />\n\t\t\t\t\t</PanelBody>\n\t\t\t\t</InspectorControls>\n\n\t\t\t\t<div className={ `${ className } vk_balloon vk_balloon-${ balloonAlign } vk_balloon-${ balloonType }` }>\n\t\t\t\t\t<div className={ 'vk_balloon_icon' }>\n\t\t\t\t\t\t<MediaUpload\n\t\t\t\t\t\t\tonSelect={ (value) => setAttributes( { IconImage: value.sizes.full.url } ) }\n\t\t\t\t\t\t\ttype=\"image\"\n\t\t\t\t\t\t\tclassName={ 'vk_balloon_icon_image' }\n\t\t\t\t\t\t\tvalue={ IconImage }\n\t\t\t\t\t\t\trender={ ( { open } ) => (\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\tonClick={ open }\n\t\t\t\t\t\t\t\t\tclassName={ IconImage ? 'image-button' : 'button button-large' }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ ! IconImage ? __('Select image', 'vk-blocks') : <img className={ 'vk_balloon_icon_image' } src={ IconImage } alt={__('Upload image', 'vk-blocks') } /> }\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t/>\n <RichText\n tagName=\"figcaption\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={ 'vk_balloon_icon_name' }\n onChange={ ( value ) => setAttributes( { balloonName: value } ) }\n value={ balloonName }\n placeholder={__('Icon Name', 'vk-blocks') }\n />\n\t\t\t\t\t</div>\n\t\t\t\t\t<RichText\n\t\t\t\t\t\tstyle={ { background: balloonBgColor, border: balloonBgColor } }\n\t\t\t\t\t\ttagName=\"p\"\n\t\t\t\t\t\tclassName={ 'vk_balloon_content' }\n\t\t\t\t\t\tonChange={ ( value ) => setAttributes( { content: value } ) }\n\t\t\t\t\t\tvalue={ content }\n\t\t\t\t\t\tplaceholder={__('Input text', 'vk-blocks') }\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</Fragment>\n );\n\t},\n\n\n\t/**\n\t * The save function defin className }> which the different attributes should be combined\n\t * into the final markup, which is then serialized by Gutenberg into post_content.\n\t *\n\t * The \"save\" property must be specified and must be a valid function.\n\t *\n\t * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n\t */\n\tsave( { attributes, className } ) {\n\t\tconst {\n\t\t\tcontent,\n balloonName,\n balloonType,\n balloonBgColor,\n\t\t\tballoonAlign,\n\t\t\tIconImage,\n\t\t} = attributes;\n\n\t\treturn (\n\t\t\t<div className={ `vk_balloon vk_balloon-${ balloonAlign } vk_balloon-${ balloonType }` }>\n\t\t\t\t<div className={ 'vk_balloon_icon' }>\n\t\t\t\t\t{ IconImage ?\n\t\t\t\t\t\t<figure>\n\t\t\t\t\t\t\t<img\n\t\t\t\t\t\t\t\tclassName={ 'vk_balloon_icon_image' }\n\t\t\t\t\t\t\t\tsrc={ IconImage }\n\t\t\t\t\t\t\t\talt=''\n\t\t\t\t\t\t\t/>\n <RichText.Content\n tagName=\"figcaption\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={ 'vk_balloon_icon_name' }\n value={ balloonName }\n />\n\t\t\t\t\t\t</figure> : '' }\n\t\t\t\t</div>\n\t\t\t\t<RichText.Content\n\t\t\t\t\tclassName={ 'vk_balloon_content' }\n\t\t\t\t\tstyle={ { background: balloonBgColor, border: balloonBgColor } }\n\t\t\t\t\ttagName=\"p\"\n\t\t\t\t\tvalue={ content }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t},\n});\n","import React from 'react';\n\nexport class SpacerComponent extends React.Component {\n\n render() {\n let {\n unit,\n pc,\n tablet,\n mobile,\n } = this.props.attributes;\n let className = this.props.className;\n\n return (\n <div className={`${className} vk_spacer`}>\n <div className={'vk_spacer-display-pc'} style={{height: pc + unit}}></div>\n <div className={'vk_spacer-display-tablet'} style={{height: tablet + unit}}></div>\n <div className={'vk_spacer-display-mobile'} style={{height: mobile + unit}}></div>\n </div>\n );\n }\n}\n","import React from 'react';\n\nexport class SpacerComponent extends React.Component {\n\n render() {\n let {\n unit,\n pc,\n tablet,\n mobile,\n } = this.props.attributes;\n\n return (\n <div className=\"vk_spacer\">\n <div className={'vk_spacer-display-pc'} style={{height: pc + unit}}></div>\n <div className={'vk_spacer-display-tablet'} style={{height: tablet + unit}}></div>\n <div className={'vk_spacer-display-mobile'} style={{height: mobile + unit}}></div>\n </div>\n );\n }\n}","import React from \"react\";\nimport {SpacerComponent} from \"./component\";\nimport {schema} from './schema';\nconst {RichText} = wp.editor;\n\nexport const deprecated = [\n {\n attributes: schema,\n save({attributes}) {\n return (\n <SpacerComponent attributes={attributes}/>\n );\n },\n }\n];\n","export const schema = {\n unit: {\n type: 'string',\n default: 'px',\n },\n pc: {\n type: 'number',\n default: 50,\n },\n tablet: {\n type: 'number',\n default: 10,\n },\n mobile: {\n type: 'number',\n default: 10,\n },\n};\n","/**\n * spacer block type\n *\n */\nimport React from \"react\";\nimport {schema} from './schema';\nimport {SpacerComponent} from \"./component\";\nimport {deprecated} from \"./deprecated/deprecated\";\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {registerBlockType} = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {RangeControl, PanelBody, BaseControl,SelectControl} = wp.components;\nconst {Fragment} = wp.element;\nconst {InspectorControls} = wp.editor;\nconst BlockIcon = (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n\t<g>\n\t\t<rect x=\"108.8\" y=\"18.7\" width=\"358.5\" height=\"40\"/>\n\t\t<rect x=\"108.8\" y=\"453.3\" width=\"358.5\" height=\"40\"/>\n\t\t<polygon points=\"171.4,253.2 131.4,253.2 131.4,412.6 290.8,412.6 290.8,372.6 199.7,372.6 404.6,167.7 404.6,258.8 444.6,258.8\n\t\t\t444.6,99.4 285.2,99.4 285.2,139.4 376.3,139.4 171.4,344.3 \t\"/>\n\t</g>\n\t</svg>\n);\n\n/**\n * Register: a Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/spacer', {\n // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('Responsive Spacer', 'vk-blocks'), // Block title.\n icon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n category: 'vk-blocks-cat-layout', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n attributes: schema,\n\n /**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n edit({attributes, setAttributes, className}) {\n const {\n unit,\n pc,\n tablet,\n mobile,\n } = attributes;\n\n return (\n <Fragment>\n <InspectorControls>\n <PanelBody>\n <SelectControl\n label={__('Unit Type', 'vk-blocks')}\n value={unit}\n onChange={(value) => setAttributes({unit: value})}\n options={[\n {\n value: 'px',\n label: __('px', 'vk-blocks'),\n },\n {\n value: 'em',\n label: __('em', 'vk-blocks'),\n },\n {\n value: 'rem',\n label: __('rem', 'vk-blocks'),\n },\n {\n value: 'vw',\n label: __('vw', 'vk-blocks'),\n }\n ]}\n />\n <BaseControl label={__('Height for each device.', 'vk-blocks')}>\n <RangeControl\n label={__('PC', 'vk-blocks')}\n value={pc}\n onChange={(value) => setAttributes({pc: value})}\n />\n <RangeControl\n label={__('Tablet', 'vk-blocks')}\n value={tablet}\n onChange={(value) => setAttributes({tablet: value})}\n />\n <RangeControl\n label={__('Mobile', 'vk-blocks')}\n value={mobile}\n onChange={(value) => setAttributes({mobile: value})}\n />\n </BaseControl>\n </PanelBody>\n </InspectorControls>\n <SpacerComponent\n attributes={attributes}\n className={className}\n />\n </Fragment>\n );\n },\n\n /**\n * The save function defin className }> which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n save({attributes}) {\n return (\n <SpacerComponent attributes={attributes}/>\n );\n },\n\n //Please comment out, when you need to use deprecated.\n deprecated: deprecated\n});\n","export const schema = {\n unit: {\n type: 'string',\n default: 'px',\n },\n pc: {\n type: 'number',\n default: 50,\n },\n tablet: {\n type: 'number',\n default: 10,\n },\n mobile: {\n type: 'number',\n default: 10,\n },\n};\n","const componentDivider = (level, color, whichSide, dividerType) => {\n\n let sectionPadding;\n let sectionClass;\n let lenderDivider;\n\n const tiltSectionStyle = (level, color) => {\n\n if (level > 0) {\n return <path\n d={`m0,${100 - level} L100,100 L0,100 z`}\n strokeWidth=\"0\"\n fill={color}\n />\n\n } else if (level < 0) {\n\n //絶対値に変換\n const absLevel = Math.abs(level);\n\n return <path\n d={`m100,${100 - absLevel} L0,100 L100,100 z`}\n strokeWidth=\"0\"\n fill={color}\n />\n }\n };\n\n const curveSectionStyle = (level, color) => {\n if (level > 0) {\n\n return <path\n d={ `m0,${ 100 - level } q50,${ level * 2 },100,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n } else if (level < 0) {\n\n return <path\n d={ `m0,100 q50,${ level * 2},100,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n }\n };\n\n const waveSectionStyle = (level, color) => {\n\n if (level > 0) {\n\n return (\n <path\n d={ `m0,${ 100 - ( level / 2 ) } q20,${ level },40,0 t40,0 t40,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n );\n } else if (level < 0) {\n\n return (\n <path\n d={ `m0,${ ( level / 2 ) + 100 } q20,${ level },40,0 t40,0 t40,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n );\n }\n\n };\n\n const triangleSectionStyle = (level, color) => {\n\n const absLevel = Math.abs(level);\n const DivideAbs4 = absLevel / 4;\n\n if (level > 0) {\n\n return (\n <path\n d={`m0,100 h${50 - DivideAbs4} l${DivideAbs4},-${absLevel} l${DivideAbs4},${absLevel} h${DivideAbs4} v100 h-100 z`}\n strokeWidth=\"0\"\n fill={color}\n />\n );\n } else if (level < 0) {\n\n return (\n <path\n d={`m0,${100 - absLevel} h${50 - DivideAbs4} l${DivideAbs4},${absLevel} l${DivideAbs4},-${absLevel} h${50 - DivideAbs4} v${absLevel + 1} h-100 z`}\n strokeWidth=\"0\"\n fill={color}\n />);\n }\n };\n\n //背景色をクリアした時は、白に変更\n if(!color){\n color = '#fff';\n }\n\n //Paddingの条件分岐を追加\n if (dividerType === 'tilt') {\n\n sectionPadding = Math.abs(level);\n lenderDivider = tiltSectionStyle(level, color);\n\n }else if(dividerType === 'curve') {\n\n if (level > 0) {\n sectionPadding = Math.abs(level);\n } else if (level < 0) {\n sectionPadding = Math.abs(level) * 2;\n }\n lenderDivider = curveSectionStyle(level, color);\n\n }else if(dividerType === 'wave'){\n\n sectionPadding = Math.abs(level);\n lenderDivider = waveSectionStyle(level, color);\n\n }else if(dividerType === 'triangle'){\n\n sectionPadding = Math.abs(level);\n lenderDivider = triangleSectionStyle(level, color);\n\n }\n\n //classにdividerTypeを追加\n sectionClass = dividerType;\n\n //upper-paddingを追加\n if (whichSide === 'upper') {\n return (\n <div\n className={`vk_outer_separator vk_outer_separator-position-upper vk_outer_separator-type-${sectionClass}`}\n style={{paddingBottom: sectionPadding + `px`}}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\">\n {lenderDivider}\n </svg>\n </div>\n\n );\n //lower-paddingを追加\n } else if (whichSide === 'lower') {\n return (\n\n <div\n className={`vk_outer_separator vk_outer_separator-position-lower vk_outer_separator-type-${sectionClass}`}\n style={{paddingTop: sectionPadding + `px`}}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\">\n {lenderDivider}\n </svg>\n </div>\n )\n }\n};\n\nexport {componentDivider};\n","import React from 'react';\nimport {componentDivider} from './component-divider';\nconst {InnerBlocks} = wp.editor;\n\n//hexカラーコード定義をrgbaに変換\nfunction hex2rgba (hex, alpha) {\n\n // ロングバージョンの場合(例:#FF0000)\n let r = hex.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);\n let c = null;\n if (r) {\n c = r.slice(1,4).map(function(x) { return parseInt(x, 16) })\n }\n // ショートバージョンの場合(例:#F00)\n r = hex.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);\n if (r) {\n c = r.slice(1,4).map(function(x) { return 0x11 * parseInt(x, 16) })\n }\n // 該当しない場合は、nullを返す.\n if (!c) {\n return null\n }\n return `rgba(${c[0]}, ${c[1]}, ${c[2]}, ${alpha})`\n}\n\nexport class Component extends React.Component {\n\n render() {\n\n let {\n bgColor,\n bgImage,\n bgPosition,\n outerWidth,\n padding_left_and_right,\n padding_top_and_bottom,\n opacity,\n upper_level,\n lower_level,\n upperDividerBgColor,\n lowerDividerBgColor,\n dividerType,\n borderWidth,\n borderStyle,\n borderColor,\n borderRadius,\n anchor\n } = this.props.attributes;\n\n let className = this.props.className;\n let for_ = this.props.for_;\n let classPaddingLR;\n let classPaddingVertical;\n let classBgPosition;\n let classWidth;\n let elm;\n let containerClass;\n let whichSideUpper;\n let whichSideLower;\n let bgStyle;\n let borderProperty;\n let borderRadiusProperty;\n\n //幅のクラス切り替え\n classWidth = ` vk_outer-width-${outerWidth}`;\n\n //hexからrgbaに変換\n if(bgColor){\n bgColor = hex2rgba(bgColor,opacity);\n }else {\n //背景色をクリアした時は、白に変更\n bgColor = hex2rgba('#fff',opacity);\n }\n\n //classBgPositionのクラス切り替え\n if (bgPosition === 'parallax') {\n classBgPosition = ' vk_outer-bgPosition-parallax vk-prlx';\n\t\t\t\t} else if (bgPosition === 'fixed') {\n\t\t classBgPosition = ' vk_outer-bgPosition-fixed';\n } else {\n classBgPosition = ' vk_outer-bgPosition-normal';\n }\n\n\t\t\t\t//classPaddingLRのクラス切り替え\n if(padding_left_and_right === '1'){\n classPaddingLR = ' vk_outer-paddingLR-use';\n } else {\n classPaddingLR = ' vk_outer-paddingLR-none';\n }\n\n //classPaddingVerticalのクラス切り替え\n if(padding_top_and_bottom === '1'){\n classPaddingVertical = ' vk_outer-paddingVertical-use';\n } else {\n classPaddingVertical = ' vk_outer-paddingVertical-none';\n }\n\n //上側セクションの傾き切り替え\n if (upper_level) {\n whichSideUpper = 'upper';\n }\n\n //下側セクションの傾き切り替え\n if (lower_level) {\n whichSideLower = 'lower';\n }\n\n //編集画面とサイト上の切り替え\n if(for_ === 'edit'){\n elm = <InnerBlocks/>;\n }else if('save'){\n elm = <InnerBlocks.Content/>;\n containerClass = 'vk_outer_container';\n }\n\n //背景画像の有り無しでstyleを切り替え\n if(bgImage){\n bgStyle = `linear-gradient(${bgColor}, ${bgColor}), url(${bgImage})`;\n }else {\n bgStyle = `linear-gradient(${bgColor}, ${bgColor})`;\n }\n\n //borderColorクリア時に白をセットする\n if (!borderColor) {\n borderColor = '#fff';\n }\n\n //Dividerエフェクトがない時のみ枠線を追加\n if(upper_level === 0 && lower_level === 0){\n borderProperty = `${borderWidth}px ${borderStyle} ${borderColor}`;\n borderRadiusProperty = `${borderRadius}px`;\n }else {\n borderProperty = 'none';\n borderRadiusProperty = `0px`;\n }\n\n return (\n <div\n id={anchor}\n className={ className + ' vk_outer' + classWidth + classPaddingLR + classPaddingVertical + classBgPosition }\n style={{\n background: bgStyle,\n border: borderProperty,\n borderRadius: borderRadiusProperty\n }}\n >\n {\n componentDivider(upper_level, upperDividerBgColor, whichSideUpper, dividerType)\n }\n <div className={containerClass}>\n {elm}\n </div>\n {\n componentDivider(lower_level, lowerDividerBgColor, whichSideLower, dividerType)\n }\n </div>\n );\n }\n}\n","const componentDivider = (level, color, whichSide, dividerType) => {\n\n let sectionPadding;\n let sectionClass;\n let lenderDivider;\n\n const tiltSectionStyle = (level, color) => {\n\n if (level > 0) {\n return <path\n d={`m0,${100 - level} L100,100 L0,100 z`}\n strokeWidth=\"0\"\n fill={color}\n />\n\n } else if (level < 0) {\n\n //絶対値に変換\n const absLevel = Math.abs(level);\n\n return <path\n d={`m100,${100 - absLevel} L0,100 L100,100 z`}\n strokeWidth=\"0\"\n fill={color}\n />\n }\n };\n\n const curveSectionStyle = (level, color) => {\n if (level > 0) {\n\n return <path\n d={ `m0,${ 100 - level } q50,${ level * 2 },100,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n } else if (level < 0) {\n\n return <path\n d={ `m0,100 q50,${ level * 2},100,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n }\n };\n\n const waveSectionStyle = (level, color) => {\n\n if (level > 0) {\n\n return (\n <path\n d={ `m0,${ 100 - ( level / 2 ) } q20,${ level },40,0 t40,0 t40,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n );\n } else if (level < 0) {\n\n return (\n <path\n d={ `m0,${ ( level / 2 ) + 100 } q20,${ level },40,0 t40,0 t40,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n );\n }\n\n };\n\n const triangleSectionStyle = (level, color) => {\n\n const absLevel = Math.abs(level);\n const DivideAbs4 = absLevel / 4;\n\n if (level > 0) {\n\n return (\n <path\n d={`m0,100 h${50 - DivideAbs4} l${DivideAbs4},-${absLevel} l${DivideAbs4},${absLevel} h${DivideAbs4} v100 h-100 z`}\n strokeWidth=\"0\"\n fill={color}\n />\n );\n } else if (level < 0) {\n\n return (\n <path\n d={`m0,${100 - absLevel} h${50 - DivideAbs4} l${DivideAbs4},${absLevel} l${DivideAbs4},-${absLevel} h${50 - DivideAbs4} v${absLevel + 1} h-100 z`}\n strokeWidth=\"0\"\n fill={color}\n />);\n }\n };\n\n //背景色をクリアした時は、白に変更\n if(!color){\n color = '#fff';\n }\n\n //Paddingの条件分岐を追加\n if (dividerType === 'tilt') {\n\n sectionPadding = Math.abs(level);\n lenderDivider = tiltSectionStyle(level, color);\n\n }else if(dividerType === 'curve') {\n\n if (level > 0) {\n sectionPadding = Math.abs(level);\n } else if (level < 0) {\n sectionPadding = Math.abs(level) * 2;\n }\n lenderDivider = curveSectionStyle(level, color);\n\n }else if(dividerType === 'wave'){\n\n sectionPadding = Math.abs(level);\n lenderDivider = waveSectionStyle(level, color);\n\n }else if(dividerType === 'triangle'){\n\n sectionPadding = Math.abs(level);\n lenderDivider = triangleSectionStyle(level, color);\n\n }\n\n //classにdividerTypeを追加\n sectionClass = dividerType;\n\n //upper-paddingを追加\n if (whichSide === 'upper') {\n return (\n <div\n className={`vk_outer_separator vk_outer_separator-position-upper vk_outer_separator-type-${sectionClass}`}\n style={{paddingBottom: sectionPadding + `px`}}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\">\n {lenderDivider}\n </svg>\n </div>\n\n );\n //lower-paddingを追加\n } else if (whichSide === 'lower') {\n return (\n\n <div\n className={`vk_outer_separator vk_outer_separator-position-lower vk_outer_separator-type-${sectionClass}`}\n style={{paddingTop: sectionPadding + `px`}}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\">\n {lenderDivider}\n </svg>\n </div>\n )\n }\n};\n\nexport {componentDivider};\n","import React from 'react';\nimport {componentDivider} from './component-divider';\n\nconst {InnerBlocks} = wp.editor;\n\n//hexカラーコード定義をrgbaに変換\nfunction hex2rgba (hex, alpha) {\n\n // ロングバージョンの場合(例:#FF0000)\n let r = hex.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);\n let c = null;\n if (r) {\n c = r.slice(1,4).map(function(x) { return parseInt(x, 16) })\n }\n // ショートバージョンの場合(例:#F00)\n r = hex.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);\n if (r) {\n c = r.slice(1,4).map(function(x) { return 0x11 * parseInt(x, 16) })\n }\n // 該当しない場合は、nullを返す.\n if (!c) {\n return null\n }\n return `rgba(${c[0]}, ${c[1]}, ${c[2]}, ${alpha})`\n}\n\nexport class Component extends React.Component {\n\n render() {\n\n let {\n bgColor,\n bgImage,\n bgPosition,\n outerWidth,\n padding_left_and_right,\n padding_top_and_bottom,\n opacity,\n upper_level,\n lower_level,\n upperDividerBgColor,\n lowerDividerBgColor,\n dividerType,\n borderWidth,\n borderStyle,\n borderColor,\n borderRadius,\n anchor\n } = this.props.attributes;\n\n let for_ = this.props.for_;\n let classPaddingLR;\n let classPaddingVertical;\n let classBgPosition;\n let classWidth;\n let elm;\n let containerClass;\n let whichSideUpper;\n let whichSideLower;\n let bgStyle;\n let borderProperty;\n let borderRadiusProperty;\n\n //幅のクラス切り替え\n classWidth = ` vk_outer-width-${outerWidth}`;\n\n //hexからrgbaに変換\n if(bgColor){\n bgColor = hex2rgba(bgColor,opacity);\n }else {\n //背景色をクリアした時は、白に変更\n bgColor = hex2rgba('#fff',opacity);\n }\n\n //classBgPositionのクラス切り替え\n if (bgPosition === 'parallax') {\n classBgPosition = ' vk_outer-bgPosition-parallax vk-prlx';\n\t\t\t\t} else if (bgPosition === 'fixed') {\n\t\t classBgPosition = ' vk_outer-bgPosition-fixed';\n } else {\n classBgPosition = ' vk_outer-bgPosition-normal';\n }\n\n\t\t\t\t//classPaddingLRのクラス切り替え\n if(padding_left_and_right === '1'){\n classPaddingLR = ' vk_outer-paddingLR-use';\n } else {\n classPaddingLR = ' vk_outer-paddingLR-none';\n }\n\n //classPaddingVerticalのクラス切り替え\n if(padding_top_and_bottom === '1'){\n classPaddingVertical = ' vk_outer-paddingVertical-use';\n } else {\n classPaddingVertical = ' vk_outer-paddingVertical-none';\n }\n\n //上側セクションの傾き切り替え\n if (upper_level) {\n whichSideUpper = 'upper';\n }\n\n //下側セクションの傾き切り替え\n if (lower_level) {\n whichSideLower = 'lower';\n }\n\n //編集画面とサイト上の切り替え\n if(for_ === 'edit'){\n elm = <InnerBlocks/>;\n }else if('save'){\n elm = <InnerBlocks.Content/>;\n containerClass = 'vk_outer_container';\n }\n\n //背景画像の有り無しでstyleを切り替え\n if(bgImage){\n bgStyle = `linear-gradient(${bgColor}, ${bgColor}), url(${bgImage})`;\n }else {\n bgStyle = `linear-gradient(${bgColor}, ${bgColor})`;\n }\n\n //borderColorクリア時に白をセットする\n if (!borderColor) {\n borderColor = '#fff';\n }\n\n //Dividerエフェクトがない時のみ枠線を追加\n if(upper_level === 0 && lower_level === 0){\n borderProperty = `${borderWidth}px ${borderStyle} ${borderColor}`;\n borderRadiusProperty = `${borderRadius}px`;\n }else {\n borderProperty = 'none';\n borderRadiusProperty = `0px`;\n }\n\n return (\n <div\n id={anchor}\n className={ 'vk_outer' + classWidth + classPaddingLR + classPaddingVertical + classBgPosition }\n style={{\n background: bgStyle,\n border: borderProperty,\n borderRadius: borderRadiusProperty\n }}\n >\n {\n componentDivider(upper_level, upperDividerBgColor, whichSideUpper, dividerType)\n }\n <div className={containerClass}>\n {elm}\n </div>\n {\n componentDivider(lower_level, lowerDividerBgColor, whichSideLower, dividerType)\n }\n </div>\n );\n }\n}\n","import React from \"react\";\nimport {schema} from \"./schema\";\nimport {Component} from \"./component\";\n\nexport const deprecated = [\n {\n attributes: schema,\n\n save({attributes}) {\n {\n if (vk_blocks_check.is_pro) {\n\n return (\n <Component\n attributes={attributes}\n for_={'save'}/>\n );\n\n }\n }\n\n },\n }\n];\n","export const schema = {\n\tbgColor: {\n\t\ttype: 'string',\n\tdefault: '#f3f4f5',\n\t},\n\tbgImage: {\n\t\ttype: 'string',\n\tdefault: null,\n\t},\n\touterWidth:{\n\t\ttype: 'string',\n\tdefault: 'normal',\n\t},\n\tbgPosition:{\n\t\ttype: 'string',\n\tdefault: 'normal',\n\t},\n\tpadding_left_and_right: {\n\t\ttype: 'string',\n\tdefault: '0',\n\t},\n\tpadding_top_and_bottom: {\n\t\ttype: 'string',\n\tdefault: '1',\n\t},\n\topacity: {\n\t\ttype: 'number',\n\tdefault: 0.5,\n\t},\n\tupper_level: {\n\t\ttype: 'number',\n\tdefault: 0,\n\t},\n\tlower_level: {\n\t\ttype: 'number',\n\tdefault: 0,\n\t},\n\tdividerType: {\n\t\ttype: 'string',\n\t\tdefault: 'tilt',\n\t},\n\tupperDividerBgColor: {\n\t\ttype: 'string',\n\tdefault: '#fff',\n\t},\n\tlowerDividerBgColor: {\n\t\ttype: 'string',\n\tdefault: '#fff',\n\t},\n\tborderWidth: {\n\t\ttype: 'number',\n\t\tdefault: 0,\n\t},\n\tborderStyle: {\n\t\ttype: 'string',\n\t\tdefault: 'none',\n\t},\n\tborderColor: {\n\t\ttype: 'string',\n\t\tdefault: '#000',\n\t},\n\tborderRadius: {\n\t\ttype: 'number',\n\t\tdefault: 0,\n\t},\n};\n","'use strict';\n\nexport default function toNumber( value, min = -100, max = null ) {\n\tvalue = Number( value );\n\n\tif ( isNaN( value ) || value < min ) {\n\t\tvalue = min;\n\t}\n\n\tif ( null !== max && value > max ) {\n\t\tvalue = max;\n\t}\n\n\treturn value;\n}\n","/**\n * outer block type\n *\n */\nimport React from \"react\";\nimport {Component} from \"./component\";\nimport {schema} from './schema';\nimport {deprecated} from './deprecated/block';\nimport toNumber from \"../_helper/to-number\";\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {registerBlockType} = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {RangeControl, RadioControl, PanelBody, Button, BaseControl,SelectControl} = wp.components;\nconst {Fragment} = wp.element;\nconst {InspectorControls, MediaUpload, ColorPalette} = wp.editor;\nconst BlockIcon = (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n\t<path d=\"M288,381c50.7,0,92-41.3,92-92s-41.3-92-92-92s-92,41.3-92,92S237.3,381,288,381z M288,227c34.2,0,62,27.8,62,62\n\t\ts-27.8,62-62,62s-62-27.8-62-62S253.8,227,288,227z\"/>\n\t<polygon points=\"273,342 303,342 303,304 341,304 341,274 303,274 303,236 273,236 273,274 235,274 235,304 273,304 \"/>\n\t<path d=\"M1.8,155.5v267h572.5v-267H1.8z M544.2,392.5H31.8v-207h512.5L544.2,392.5L544.2,392.5z\"/>\n\t<g>\n\t\t<path d=\"M39.8,10.3c-13.3,0-25.7,0.9-37.6,2.6L2,136.9h33.3l0.1-39c3,0.4,6.7,0.5,11.1,0.5c16.7,0,29.5-3.9,38.3-11.7\n\t\t\tc8.7-7.7,13.1-19.3,13.1-34.4C98,24.3,78.6,10.4,39.8,10.3z M62,68.5c-3.6,3.4-9.2,5.2-16.6,5.2c-0.6,0-1.1,0-1.6,0\n\t\t\tc-0.2,0-0.4,0-0.6,0c-2.8,0-5.4-0.1-7.7-0.5l0-22l-1.3-14.3c2.6-0.6,5.2-0.9,7.7-0.9c0.2,0,0.5,0,0.7,0c0.2,0,0.4,0,0.7,0\n\t\t\tc13.6,0,21.1,4.7,22.7,14c0.3,1.2,0.6,2.6,0.7,4C67.2,60.2,65.6,65,62,68.5z\"/>\n\t\t<path d=\"M141.3,65H141l0-17.1h-32.5l-0.2,88.9h33.3l0.1-35c0.1-8.6,3.2-15.7,9.7-21.4c6.5-5.7,14.9-8.5,25.4-8.5h3.4l0-23.9h-3.4\n\t\t\tC161.7,48.1,149.8,53.7,141.3,65z\"/>\n\t\t<path d=\"M266.7,58.5c-8-8.1-19.3-12.2-34-12.2c-14.6,0-25.9,4.1-34,12.2c-8.1,8.1-12.2,19.4-12.2,33.9c-0.1,14.5,4,25.8,12,33.9\n\t\t\tc8,8.1,19.3,12.2,34,12.2c14.6,0,25.9-4.1,34-12.2c8.1-8.1,12.2-19.4,12.2-33.9C278.7,78,274.7,66.6,266.7,58.5z M246.2,92.5\n\t\t\tc0,8.9-1.2,15-3.3,18.6c-2.1,3.6-5.6,5.4-10.4,5.4s-8.3-1.8-10.5-5.4c-2.2-3.6-3.3-9.8-3.2-18.6c0-8.9,1.2-15,3.3-18.6\n\t\t\tc2.1-3.6,5.6-5.4,10.4-5.4c4.8,0,8.3,1.8,10.5,5.4S246.3,83.7,246.2,92.5z\"/>\n\t</g>\n\t</svg>\n);\n\n/**\n * Register: a Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/outer', {\n // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('Outer', 'vk-blocks'), // Block title.\n icon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n category: 'vk-blocks-cat-layout', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n attributes: schema,\n\tsupports:{\n \tanchor:true,\n\t},\n\n /**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n edit({attributes, setAttributes,className}) {\n const {\n bgColor,\n bgImage,\n bgPosition,\n outerWidth,\n padding_left_and_right,\n padding_top_and_bottom,\n opacity,\n upper_level,\n lower_level,\n\t\t\tupperDividerBgColor,\n\t\t\tlowerDividerBgColor,\n\t\t\tdividerType,\n\t\t\tborderWidth,\n\t\t\tborderStyle,\n\t\t\tborderColor,\n\t\t\tborderRadius\n } = attributes;\n\n return (\n <Fragment>\n <InspectorControls>\n <PanelBody title={__('Background Setting', 'vk-blocks')}>\n <BaseControl\n label={__('Color Setting', 'vk-blocks')}\n help={__('Color will overcome background image. If you want to display image, clear background color or set opacity 0.', 'vk-blocks')}\n >\n <ColorPalette\n value={bgColor}\n onChange={(value) => setAttributes({bgColor: value})}\n />\n </BaseControl>\n <BaseControl\n label={__('Opacity Setting', 'vk-blocks')}\n >\n <RangeControl\n value={opacity}\n onChange={(value) => {setAttributes({opacity: value});\n }}\n min={0}\n max={1}\n step={0.1}\n />\n </BaseControl>\n\n <BaseControl\n label={__('Background Image', 'vk-blocks')}\n help=\"\"\n >\n <MediaUpload\n onSelect={(value) => setAttributes({bgImage: value.url})}\n type=\"image\"\n value={bgImage}\n render={({open}) => (\n <Button\n onClick={open}\n className={bgImage ? 'image-button' : 'button button-large'}\n >\n {!bgImage ? __('Select image', 'vk-blocks') :\n <img className={'icon-image'} src={bgImage}\n alt={__('Upload image', 'vk-blocks')}/>}\n </Button>\n )}\n />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</BaseControl>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<BaseControl\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel={__('Background image Position', 'vk-blocks')}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thelp=\"\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\n <RadioControl\n // label={__('Background Position', 'vk-blocks')}\n selected={bgPosition}\n options={[\n {label: __('normal', 'vk-blocks'), value: 'normal'},\n {label: __('Fixed', 'vk-blocks'), value: 'fixed'},\n {label: __('Parallax (It will not work in preview)', 'vk-blocks'), value: 'parallax'}\n ]}\n onChange={(value) => setAttributes({bgPosition: value})}\n />\n </BaseControl>\n </PanelBody>\n\t\t\t\t\t<PanelBody title={__('Layout Setting', 'vk-blocks')}>\n\t\t\t\t\t\t<BaseControl>\n\t\t\t\t\t\t\t<RadioControl\n\t\t\t\t\t\t\t\tlabel={__('Outer width', 'vk-blocks')}\n\t\t\t\t\t\t\t\tselected={outerWidth}\n\t\t\t\t\t\t\t\toptions={[\n\t\t\t\t\t\t\t\t\t{label: __('Normal', 'vk-blocks'), value: 'normal'},\n\t\t\t\t\t\t\t\t\t{label: __('Full Wide', 'vk-blocks'), value: 'full'}\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({outerWidth: value})}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<RadioControl\n\t\t\t\t\t\t\t\tlabel={__('Contents area padding (left and right)', 'vk-blocks')}\n\t\t\t\t\t\t\t\tselected={padding_left_and_right}\n\t\t\t\t\t\t\t\toptions={[\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tlabel: __('Do not use contents area default padding (When case of full width etc.).', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t\tvalue: '0'\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tlabel: __('Use contents area default padding (When case of not full width and use background etc.).', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t\tvalue: '1'\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({padding_left_and_right: value})}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<RadioControl\n\t\t\t\t\t\t\t\tlabel={__('Padding (top and bottom)', 'vk-blocks')}\n\t\t\t\t\t\t\t\tselected={padding_top_and_bottom}\n\t\t\t\t\t\t\t\toptions={[\n\t\t\t\t\t\t\t\t\t{label: __('Use default padding', 'vk-blocks'), value: '1'},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tlabel: __('Do not use default padding (Set it yourself using a spacer block etc.).', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t\tvalue: '0'\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({padding_top_and_bottom: value})}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t</PanelBody>\n\t\t\t\t\t<PanelBody title={__('Divider Setting', 'vk-blocks')}>\n\t\t\t\t\t\t<BaseControl>\n\t\t\t\t\t\t\t<SelectControl\n\t\t\t\t\t\t\t\tlabel={__('Type', 'vk-blocks')}\n\t\t\t\t\t\t\t\tvalue={dividerType}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({dividerType: value})}\n\t\t\t\t\t\t\t\toptions={[\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'tilt',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Tilt', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'curve',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Curve', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'wave',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Wave', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'triangle',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Triangle', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl\n\t\t\t\t\t\t\tlabel={__('Upper Divider Level', 'vk-blocks')}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<RangeControl\n\t\t\t\t\t\t\t\tvalue={upper_level}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({upper_level: toNumber(value, -100, 100)})}\n\t\t\t\t\t\t\t\tmin=\"-100\"\n\t\t\t\t\t\t\t\tmax=\"100\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl>\n\t\t\t\t\t\t\t<ColorPalette\n\t\t\t\t\t\t\t\tvalue={upperDividerBgColor}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({upperDividerBgColor: value})}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl\n\t\t\t\t\t\t\tlabel={__('Lower Divider Level', 'vk-blocks')}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<RangeControl\n\t\t\t\t\t\t\t\tvalue={lower_level}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({lower_level: toNumber(value, -100, 100)})}\n\t\t\t\t\t\t\t\tmin=\"-100\"\n\t\t\t\t\t\t\t\tmax=\"100\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl>\n\t\t\t\t\t\t\t<ColorPalette\n\t\t\t\t\t\t\t\tvalue={lowerDividerBgColor}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({lowerDividerBgColor: value})}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t</PanelBody>\n\t\t\t\t\t<PanelBody title={__('Border Setting', 'vk-blocks')}>\n\t\t\t\t\t\t<BaseControl\n\t\t\t\t\t\t\t// label={__('Border will disappear when divider effect is applied.', 'vk-blocks')}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t<p>{__('Border will disappear when divider effect is applied.', 'vk-blocks')}</p>\n\t\t\t\t\t\t\t<SelectControl\n\t\t\t\t\t\t\t\tlabel={__('Border type', 'vk-blocks')}\n\t\t\t\t\t\t\t\tvalue={borderStyle}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({borderStyle: value})}\n\t\t\t\t\t\t\t\toptions={[\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'none',\n\t\t\t\t\t\t\t\t\t\tlabel: __('None', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'solid',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Solid', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'dotted',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Dotted', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'dashed',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Dashed', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'double',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Double', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'groove',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Groove', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'ridge',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Ridge', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'inset',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Inset', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'outset',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Outset', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl>\n\t\t\t\t\t\t\t<ColorPalette\n\t\t\t\t\t\t\t\tvalue={borderColor}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({borderColor: value})}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl\n\t\t\t\t\t\t\tlabel={__('Border width', 'vk-blocks')}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<RangeControl\n\t\t\t\t\t\t\t\tvalue={borderWidth}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({borderWidth:value})}\n\t\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl\n\t\t\t\t\t\t\tlabel={__('Border radius', 'vk-blocks')}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<RangeControl\n\t\t\t\t\t\t\t\tvalue={borderRadius}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({borderRadius: toNumber(value, -100, 100)})}\n\t\t\t\t\t\t\t\tmin=\"-100\"\n\t\t\t\t\t\t\t\tmax=\"100\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t</PanelBody>\n </InspectorControls>\n {\n vk_blocks_check.is_pro\n ?\n\t\t\t\t\t\t\t<Component\n\t\t\t\t\t\t\t\tattributes={attributes}\n\t\t\t\t\t\t\t\tclassName={className}\n\t\t\t\t\t\t\t\tfor_={'edit'}/>\n :\n <div>{__('This block is only for users who bought Lightning Pro.', 'vk-blocks')}</div>\n }\n </Fragment>\n );\n },\n\n /**\n * The save function defin className }> which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n save({attributes,className}) {\n {\n if (vk_blocks_check.is_pro) {\n\n return (\n\t\t\t\t\t\t<Component\n\t\t\t\t\t\t\tattributes={attributes}\n\t\t\t\t\t\t\tclassName={className}\n\t\t\t\t\t\t\tfor_={'save'}/>\n );\n }\n }\n\n },\n\n\tdeprecated:deprecated\n});\n","export const schema = {\n\tbgColor: {\n\t\ttype: 'string',\n\tdefault: '#f3f4f5',\n\t},\n\tbgImage: {\n\t\ttype: 'string',\n\tdefault: null,\n\t},\n\touterWidth:{\n\t\ttype: 'string',\n\tdefault: 'normal',\n\t},\n\tbgPosition:{\n\t\ttype: 'string',\n\tdefault: 'normal',\n\t},\n\tpadding_left_and_right: {\n\t\ttype: 'string',\n\tdefault: '0',\n\t},\n\tpadding_top_and_bottom: {\n\t\ttype: 'string',\n\tdefault: '1',\n\t},\n\topacity: {\n\t\ttype: 'number',\n\tdefault: 0.5,\n\t},\n\tupper_level: {\n\t\ttype: 'number',\n\tdefault: 0,\n\t},\n\tlower_level: {\n\t\ttype: 'number',\n\tdefault: 0,\n\t},\n\tdividerType: {\n\t\ttype: 'string',\n\t\tdefault: 'tilt',\n\t},\n\tupperDividerBgColor: {\n\t\ttype: 'string',\n\tdefault: '#fff',\n\t},\n\tlowerDividerBgColor: {\n\t\ttype: 'string',\n\tdefault: '#fff',\n\t},\n\tborderWidth: {\n\t\ttype: 'number',\n\t\tdefault: 0,\n\t},\n\tborderStyle: {\n\t\ttype: 'string',\n\t\tdefault: 'none',\n\t},\n\tborderColor: {\n\t\ttype: 'string',\n\t\tdefault: '#000',\n\t},\n\tborderRadius: {\n\t\ttype: 'number',\n\t\tdefault: 0,\n\t},\n};\n","import React from \"react\";\n\n/**\n * WordPress dependenciess\n */\nconst { lodash } = window;\nconst { range } = lodash;\nconst { __, sprintf } = wp.i18n;\nconst { Component } = wp.element;\nconst { Toolbar } = wp.components;\n\nclass HeadingToolbar extends Component {\n\tcreateLevelControl(targetLevel, selectedLevel, onChange) {\n\t\treturn {\n\t\t\ticon: 'heading',\n\t\t\t// translators: %s: heading level e.g: \"1\", \"2\", \"3\"\n\t\t\ttitle: sprintf( __( 'Heading %d' ), targetLevel ),\n\t\t\tisActive: targetLevel === selectedLevel,\n\t\t\tonClick: () => onChange( targetLevel ),\n\t\t\tsubscript: String( targetLevel ),\n\t\t};\n\t}\n\n\n\trender() {\n\t\tconst {minLevel, maxLevel, selectedLevel, onChange} = this.props;\n\n\t\treturn (\n\t\t\t<Toolbar controls={range(minLevel, maxLevel).map((index) => this.createLevelControl(index, selectedLevel, onChange))}/>\n\t\t);\n\t}\n}\n\nexport default HeadingToolbar;\n","import React from 'react';\nimport classNames from \"classnames\";\n\nconst {RichText} = wp.editor;\nconst {__} = wp.i18n; // Import __() from wp.i18n\n\nexport class Component extends React.Component {\n\n render() {\n const {level, align, title, titleColor, titleSize, subText, subTextFlag, subTextColor, subTextSize, titleStyle, titleMarginBottom, outerMarginBottom} = this.props.attributes;\n const setAttributes = this.props.setAttributes;\n let className = this.props.className;\n let for_ = this.props.for_;\n let containerClass = classNames(className, `vk_heading vk_heading-style-${titleStyle}`);\n const tagName = 'h' + level;\n let cStyle;\n let tStyle;\n\n //containerのマージンを切り替え\n if (outerMarginBottom != null) {\n cStyle = {marginBottom: outerMarginBottom + `rem`};\n }\n\n //titleのマージンを切り替え\n if(titleMarginBottom != null){\n tStyle = {\n color: titleColor,\n fontSize: titleSize + 'rem',\n marginBottom: titleMarginBottom + 'rem'\n };\n }else {\n tStyle = {\n color: titleColor,\n fontSize: titleSize + 'rem',\n textAlign: align,\n };\n }\n\n if(for_ === 'edit'){\n return (\n <div\n className={containerClass}\n style={cStyle}\n >\n <RichText\n tagName={tagName}\n value={title}\n onChange={(value) => setAttributes({title: value})}\n style={tStyle}\n className={`vk_heading_title vk_heading_title-style-${titleStyle}`}\n placeholder={__('Input title…', 'vk-blocks')}\n />\n {\n // サブテキスト\n (() => {\n if (subTextFlag === 'on') {\n return (\n <RichText\n tagName={'p'}\n value={subText}\n onChange={(value) => setAttributes({subText: value})}\n style={{\n color: subTextColor,\n fontSize: subTextSize + 'rem',\n textAlign: align\n }}\n className={`vk_heading_subtext vk_heading_subtext-style-${titleStyle}`}\n placeholder={__('Input sub text…', 'vk-blocks')}\n />\n );\n }\n })()\n }\n </div>\n );\n }else if(for_ === 'save'){\n return (\n <div\n className={containerClass}\n style={cStyle}\n >\n <RichText.Content\n tagName={tagName}\n value={title}\n onChange={(value) => setAttributes({title: value})}\n style={tStyle}\n className={`vk_heading_title vk_heading_title-style-${titleStyle}`}\n placeholder={__('Input title…', 'vk-blocks')}\n />\n {\n // サブテキスト\n (() => {\n if (subTextFlag === 'on') {\n return (\n <RichText.Content\n tagName={'p'}\n value={subText}\n onChange={(value) => setAttributes({subText: value})}\n style={{\n color: subTextColor,\n fontSize: subTextSize + 'rem',\n textAlign: align\n }}\n className={`vk_heading_subtext vk_heading_subtext-style-${titleStyle}`}\n placeholder={__('Input sub text…', 'vk-blocks')}\n />\n );\n }\n })()\n }\n </div>\n );\n }\n }\n}\n","/**\n * heading block type\n *\n */\nimport React from \"react\";\nimport {schema} from './schema';\nconst {Fragment} = wp.element;\n\nconst {RichText, InspectorControls, ColorPalette, BlockControls, AlignmentToolbar} = wp.editor;\n\nfunction set_attirbuite(number) {\n\n var attributes = {};\n\n for (var i = 1; i <= number; i++) {\n\n attributes['heading' + i] = {\n type: 'string',\n source: 'html',\n selector: 'h1.vk_prBlocks_item_title-' + i,\n };\n attributes['content' + i] = {\n type: 'string',\n source: 'html',\n selector: 'p.vk_prBlocks_item_summary-' + i,\n };\n attributes['url' + i] = {\n type: 'string',\n default: null,\n };\n attributes['urlOpenType' + i] = {\n type: 'Boolean',\n default: false,\n };\n attributes['icon' + i] = {\n type: 'string',\n default: 'fas fa-file',\n };\n attributes['color' + i] = {\n type: 'string',\n default: '#0693e3',\n };\n attributes['bgType' + i] = {\n type: 'string',\n default: '0',\n };\n attributes['insertImage' + i] = {\n type: 'string',\n default: null,\n };\n }\n\n return attributes;\n}\n\nexport const Version0_6_0 = [\n {\n\n attributes: schema,\n supports : {\n className: false,\n anchor: true,\n },\n\n save({attributes}) {\n const {level, align, title, titleColor, titleSize, subText, subTextFlag, subTextColor, subTextSize, titleStyle, titleMarginBottom, outerMarginBottom} = attributes;\n const tagName = 'h' + level;\n\n return (\n <div\n className={`vk_heading vk_heading-style-${titleStyle}`}\n style={{marginBottom: outerMarginBottom + `rem`}}\n >\n <RichText.Content\n tagName={tagName}\n value={title}\n style={{\n color: titleColor,\n fontSize: titleSize + 'rem',\n textAlign: align,\n marginBottom: titleMarginBottom + 'rem'\n }}\n className={`vk_heading_title vk_heading_title-style-${titleStyle}`}\n />\n {\n // サブテキスト\n (() => {\n if (subTextFlag === 'on') {\n return (\n <RichText.Content\n tagName={'p'}\n value={subText}\n style={{color: subTextColor, fontSize: subTextSize + 'rem', textAlign: align}}\n className={`vk_heading_subtext vk_heading_subtext-style-${titleStyle}`}\n />\n );\n }\n })()\n }\n </div>\n );\n }\n },\n {\n attributes: set_attirbuite(4),\n save({attributes}) {\n const {\n heading1,\n heading2,\n heading3,\n content1,\n content2,\n content3,\n url1,\n url2,\n url3,\n urlOpenType1,\n urlOpenType2,\n urlOpenType3,\n icon1,\n icon2,\n icon3,\n color1,\n color2,\n color3,\n bgType1,\n bgType2,\n bgType3,\n insertImage1,\n insertImage2,\n insertImage3\n } = attributes;\n\n return (\n <article className=\"vk_prBlocks row\">\n\n <div className=\"vk_prBlocks_item col-sm-4\">\n <a\n href={url1}\n target={urlOpenType1? '_blank':'_self'}\n className=\"vk_prBlocks_item_link\"\n >\n {(() => {\n\n if (insertImage1) {\n\n return <div className=\"vk_prBlocks_item_image\"\n style={{\n backgroundImage: 'url(' + insertImage1 + ')',\n backgroundRepeat: 'no-repeat 50% center',\n backgroundSize: 'cover'\n }}\n >\n <img\n src={insertImage1}\n alt=''\n />\n </div>\n\n } else {\n\n if ( ! color1 ){\n color1 = '#0693e3';\n bgType1 === '0';\n }\n if (bgType1 === '0') {\n\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{\n backgroundColor: color1,\n border: `1px solid ${color1}`\n }}\n ><i className={`${icon1} vk_prBlocks_item_icon`}\n style={{color: '#fff'}}>\n </i>\n </div>\n } else {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{backgroundColor: 'transparent', border: '1px solid ' + color1}}\n ><i className={`${icon1} vk_prBlocks_item_icon`}\n style={{color: color1}}>\n </i>\n </div>\n }\n }\n })()}\n <RichText.Content\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-1\"\n tagName={'h1'}\n value={heading1}/>\n <RichText.Content\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-1\"\n tagName={'p'}\n value={content1}/>\n </a>\n </div>\n <div className=\"vk_prBlocks_item col-sm-4\">\n <a\n href={url2}\n target={urlOpenType2? '_blank':'_self'}\n className=\"vk_prBlocks_item_link\"\n >\n {(() => {\n\n if (insertImage2) {\n\n return <div className=\"vk_prBlocks_item_image\"\n style={{\n backgroundImage: 'url(' + insertImage2 + ')',\n backgroundRepeat: 'no-repeat 50% center',\n backgroundSize: 'cover'\n }}\n >\n <img\n src={insertImage2}\n alt=''\n />\n </div>\n\n } else {\n if ( ! color2 ){\n color2 = '#0693e3';\n bgType2 === '0';\n }\n if (bgType2 === '0') {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{\n backgroundColor: color2,\n border: `1px solid ${color2}`\n }}\n ><i className={`${icon2} vk_prBlocks_item_icon`}\n style={{color: '#fff'}}>\n </i>\n </div>\n } else {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{backgroundColor: 'transparent', border: '1px solid ' + color2}}\n ><i className={`${icon2} vk_prBlocks_item_icon`}\n style={{color: color2}}>\n </i>\n </div>\n }\n }\n })()}\n <RichText.Content\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-2\"\n tagName={'h1'}\n value={heading2}/>\n <RichText.Content\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-2\"\n tagName={'p'}\n value={content2}/>\n </a>\n </div>\n\n <div className=\"vk_prBlocks_item col-sm-4\">\n <a\n href={url3}\n target={urlOpenType3? '_blank':'_self'}\n className=\"vk_prBlocks_item_link\"\n >\n {(() => {\n\n if (insertImage3) {\n\n return <div className=\"vk_prBlocks_item_image\"\n style={{\n backgroundImage: 'url(' + insertImage3 + ')',\n backgroundRepeat: 'no-repeat 50% center',\n backgroundSize: 'cover'\n }}\n >\n <img\n src={insertImage3}\n alt=''\n />\n </div>\n\n } else {\n if ( ! color3 ){\n color3 = '#0693e3';\n bgType3 === '0';\n }\n if (bgType3 === '0') {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{\n backgroundColor: color3,\n border: `1px solid ${color3}`\n }}\n ><i className={`${icon3} vk_prBlocks_item_icon`}\n style={{color: '#fff'}}>\n </i>\n </div>\n } else {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{backgroundColor: 'transparent', border: '1px solid ' + color3}}\n ><i className={`${icon3} vk_prBlocks_item_icon`}\n style={{color: color3}}>\n </i>\n </div>\n }\n }\n })()}\n <RichText.Content\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-3\"\n tagName={'h1'}\n value={heading3}/>\n <RichText.Content\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-3\"\n tagName={'p'}\n value={content3}/>\n </a>\n </div>\n </article>\n );\n },\n },\n {\n attributes: {\n level: {\n type: 'number',\n default: 2,\n },\n align: {\n type: 'string',\n },\n titleStyle: {\n type: 'string',\n default: 'default',\n },\n outerMarginBottom: {\n type: 'number',\n default: null,\n },\n title: {\n type: 'string',\n source: 'html',\n selector: 'h1,h2,h3,h4,h5,h6',\n default: '',\n },\n titleColor: {\n type: 'string',\n default: '#000000',\n },\n titleSize: {\n type: 'number',\n default: 2.6,\n },\n titleMarginBottom: {\n type: 'number',\n default: null,\n },\n subText: {\n source: 'html',\n selector: 'p',\n default: '',\n },\n subTextFlag: {\n type: 'string',\n default: 'on',\n },\n subTextColor: {\n type: 'string',\n default: '#000000',\n },\n subTextSize: {\n type: 'number',\n default: 1.8,\n },\n },\n supports: {\n className: false,\n anchor: true,\n },\n save({attributes}) {\n const {level, align, title, titleColor, titleSize, subText, subTextFlag, subTextColor, subTextSize, titleStyle, titleMarginBottom, outerMarginBottom} = attributes;\n const tagName = 'h' + level;\n\n return (\n <Fragment>\n {\n outerMarginBottom == null ?\n <div className={`vk_heading vk_heading-style-${titleStyle}`}>\n <RichText.Content\n tagName={tagName}\n value={title}\n style={{\n color: titleColor,\n fontSize: titleSize + 'rem',\n textAlign: align,\n }}\n className={`vk_heading_title vk_heading_title-style-${titleStyle}`}\n />\n {\n // サブテキスト\n (() => {\n if (subTextFlag === 'on') {\n return (\n <RichText.Content\n tagName={'p'}\n value={subText}\n style={{\n color: subTextColor,\n fontSize: subTextSize + 'rem',\n textAlign: align\n }}\n className={`vk_heading_subtext vk_heading_subtext-style-${titleStyle}`}\n />\n );\n }\n })()\n }\n </div>\n :\n <div\n className={`vk_heading vk_heading-style-${titleStyle}`}\n style={{marginBottom: outerMarginBottom + `rem`}}\n >\n <RichText.Content\n tagName={tagName}\n value={title}\n style={{\n color: titleColor,\n fontSize: titleSize + 'rem',\n textAlign: align,\n marginBottom: titleMarginBottom + 'rem'\n }}\n className={`vk_heading_title vk_heading_title-style-${titleStyle}`}\n />\n {\n // サブテキスト\n (() => {\n if (subTextFlag === 'on') {\n return (\n <RichText.Content\n tagName={'p'}\n value={subText}\n style={{\n color: subTextColor,\n fontSize: subTextSize + 'rem',\n textAlign: align\n }}\n className={`vk_heading_subtext vk_heading_subtext-style-${titleStyle}`}\n />\n );\n }\n })()\n }\n </div>\n }\n </Fragment>\n );\n },\n }\n];\n","export const schema = {\n level: {\n type: 'number',\n default: 2,\n },\n align: {\n type: 'string',\n },\n titleStyle: {\n type: 'string',\n default: 'default',\n },\n outerMarginBottom: {\n type: 'number',\n },\n title: {\n type: 'string',\n source: 'html',\n selector: 'h1,h2,h3,h4,h5,h6',\n default: '',\n },\n titleColor: {\n type: 'string',\n default: '#000000',\n },\n titleSize: {\n type: 'number',\n default: 2.6,\n },\n titleMarginBottom: {\n type: 'number',\n },\n subText: {\n source: 'html',\n selector: 'p',\n default: '',\n },\n subTextFlag: {\n type: 'string',\n default: 'on',\n },\n subTextColor: {\n type: 'string',\n default: '#000000',\n },\n subTextSize: {\n type: 'number',\n default: 1.8,\n },\n};\n","/**\n * heading block type\n *\n */\nimport React from \"react\";\nimport classNames from 'classnames';\nimport {schema} from './schema';\nimport HeadingToolbar from './heading-toolbar';\nimport {Component} from \"./component\";\nimport {Version0_6_0} from './deprecated/block';\n\n// import YourComponent from \"./component.js\";\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {registerBlockType} = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {RangeControl, PanelBody, RadioControl, SelectControl} = wp.components;\nconst {Fragment} = wp.element;\nconst {RichText, InspectorControls, ColorPalette, BlockControls, AlignmentToolbar} = wp.editor;\nconst BlockIcon = (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n <g>\n <g>\n <path d=\"M242.1,366.7l0-281.4l-212.6,0l0-77.1l516.6,0v77.1l-213.2,0l0,281.4H242.1z\"/>\n </g>\n <g>\n <path d=\"M33,467.3l30.8-1.9c0.7,5,2,8.8,4.1,11.4c3.3,4.2,8.1,6.4,14.3,6.4c4.6,0,8.2-1.1,10.7-3.3c2.5-2.2,3.8-4.7,3.8-7.5\n\t\t\t\t\tc0-2.7-1.2-5.1-3.6-7.3c-2.4-2.1-7.9-4.2-16.6-6.1c-14.2-3.2-24.3-7.4-30.4-12.7c-6.1-5.3-9.1-12-9.1-20.2\n\t\t\t\t\tc0-5.4,1.6-10.5,4.7-15.3c3.1-4.8,7.8-8.6,14.1-11.3c6.3-2.7,14.8-4.1,25.8-4.1c13.4,0,23.6,2.5,30.6,7.5c7,5,11.2,12.9,12.5,23.8\n\t\t\t\t\tl-30.5,1.8c-0.8-4.7-2.5-8.1-5.1-10.3c-2.6-2.1-6.2-3.2-10.8-3.2c-3.8,0-6.6,0.8-8.5,2.4c-1.9,1.6-2.9,3.5-2.9,5.8\n\t\t\t\t\tc0,1.7,0.8,3.2,2.4,4.5c1.5,1.4,5.1,2.7,10.9,3.9c14.1,3,24.3,6.1,30.4,9.3c6.1,3.1,10.6,7,13.4,11.6c2.8,4.6,4.2,9.8,4.2,15.5\n\t\t\t\t\tc0,6.7-1.9,12.9-5.6,18.6c-3.7,5.7-8.9,10-15.6,12.9c-6.7,2.9-15.1,4.4-25.2,4.4c-17.8,0-30.2-3.4-37-10.3\n\t\t\t\t\tC37.8,486.6,33.9,477.8,33,467.3z\"/>\n <path d=\"M215,501.9h-27.2v-12.3c-4,5-8.1,8.6-12.3,10.8c-4.1,2.1-9.2,3.2-15.2,3.2c-8,0-14.3-2.4-18.8-7.2\n\t\t\t\t\tc-4.5-4.8-6.8-12.2-6.8-22.1V426H164v41.7c0,4.8,0.9,8.1,2.6,10.1c1.8,2,4.2,3,7.4,3c3.5,0,6.3-1.3,8.5-4\n\t\t\t\t\tc2.2-2.7,3.3-7.5,3.3-14.4V426H215V501.9z\"/>\n <path d=\"M225.5,397.2h29.4v36.3c2.9-3,6.2-5.3,9.9-6.9c3.7-1.5,7.8-2.3,12.3-2.3c9.2,0,16.9,3.3,22.9,10\n\t\t\t\t\tc6.1,6.6,9.1,16.2,9.1,28.6c0,8.3-1.4,15.6-4.1,21.9c-2.8,6.3-6.6,11-11.5,14.1c-4.9,3.1-10.3,4.7-16.3,4.7c-5.1,0-9.8-1.1-14-3.3\n\t\t\t\t\tc-3.2-1.7-6.7-4.9-10.4-9.6v11.2h-27.2V397.2z M254.6,463.8c0,6.5,1.2,11.3,3.7,14.2c2.5,2.9,5.6,4.4,9.3,4.4\n\t\t\t\t\tc3.5,0,6.4-1.4,8.8-4.3c2.4-2.9,3.5-7.7,3.5-14.5c0-6-1.2-10.4-3.5-13.2c-2.3-2.8-5.1-4.2-8.4-4.2c-4,0-7.2,1.5-9.7,4.4\n\t\t\t\t\tC255.9,453.4,254.6,457.8,254.6,463.8z\"/>\n <path d=\"M304.4,397.2h98.4V423h-33v78.9h-32.4V423h-33V397.2z\"/>\n <path\n d=\"M395.8,426h34.5l12,21.2l14-21.2h32.1l-25.9,36.2l27.7,39.7h-33.9l-14-24.4l-16.5,24.4h-31.5l27.6-39.7L395.8,426z\"/>\n <path d=\"M530.6,397.2V426h16v21.3h-16v26.9c0,3.2,0.3,5.4,0.9,6.4c1,1.6,2.6,2.4,5,2.4c2.1,0,5.1-0.6,9-1.9l2.1,20.1\n\t\t\t\t\tc-7.2,1.6-13.9,2.4-20.1,2.4c-7.2,0-12.6-0.9-16-2.8c-3.4-1.9-6-4.7-7.6-8.5s-2.5-9.9-2.5-18.4v-26.7h-10.7V426h10.7v-13.9\n\t\t\t\t\tL530.6,397.2z\"/>\n </g>\n </g>\n </svg>\n);\n\n/**\n * Register: a Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/heading', {\n // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('Heading', 'vk-blocks'), // Block title.\n icon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n category: 'vk-blocks-cat', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n attributes: schema,\n supports: {\n className:true,\n customClassName:true,\n anchor: true,\n },\n\n\n /**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n edit({attributes, setAttributes, className}) {\n const {level, align, title, titleColor, titleSize, subText, subTextFlag, subTextColor, subTextSize, titleStyle, titleMarginBottom, outerMarginBottom} = attributes;\n\n let setTitleFontSize = (newLevel) => {\n\n setAttributes({level: newLevel});\n\n switch (newLevel) {\n case 1:\n setAttributes({titleSize: 3.6});\n break;\n case 2:\n setAttributes({titleSize: 2.8});\n break;\n case 3:\n setAttributes({titleSize: 2.2});\n break;\n case 4:\n setAttributes({titleSize: 2.0});\n break;\n case 5:\n setAttributes({titleSize: 1.8});\n break;\n case 6:\n setAttributes({titleSize: 1.6});\n break;\n }\n };\n return (\n <Fragment>\n <BlockControls>\n <HeadingToolbar minLevel={2} maxLevel={5} selectedLevel={level} onChange={setTitleFontSize}/>\n </BlockControls>\n <InspectorControls>\n <PanelBody title={__('Style Settings', 'vk-blocks')}>\n <SelectControl\n label={__('Heading style', 'vk-blocks')}\n value={titleStyle}\n onChange={(value) => setAttributes({titleStyle: value})}\n options={[\n {label: __('Default', 'vk-blocks'), value: 'default'},\n {label: __('Plain', 'vk-blocks'), value: 'plain'}\n ]}\n />\n <label>{__('Margin bottom size (rem)', 'vk-blocks')}</label>\n <RangeControl\n value={outerMarginBottom}\n onChange={(value) => {\n setAttributes({outerMarginBottom: value});\n }}\n min={-1}\n max={8}\n step={0.1}\n />\n </PanelBody>\n <PanelBody title={__('Heading Settings', 'vk-blocks')}>\n <label>{__('Level', 'vk-blocks')}</label>\n <HeadingToolbar minLevel={1} maxLevel={7} selectedLevel={level} onChange={setTitleFontSize}/>\n <p>{__('Text Alignment')}</p>\n <AlignmentToolbar\n value={align}\n onChange={(value) => {\n setAttributes({align: value});\n }}\n />\n <label>{__('Text size (rem)', 'vk-blocks')}</label>\n <RangeControl\n value={titleSize}\n onChange={(value) => {\n setAttributes({titleSize: value});\n }}\n min={0.5}\n max={4}\n step={0.1}\n />\n <label>{__('Heading margin bottom size (rem)', 'vk-blocks')}</label>\n <RangeControl\n value={titleMarginBottom}\n onChange={(value) => {\n setAttributes({titleMarginBottom: value});\n }}\n min={-1}\n max={3}\n step={0.1}\n />\n <ColorPalette\n value={titleColor}\n onChange={(value) => setAttributes({titleColor: value})}\n />\n </PanelBody>\n <PanelBody title={__('Sub Text Settings', 'vk-blocks')}>\n <RadioControl\n label={__('Position', 'vk-blocks')}\n selected={subTextFlag}\n options={[\n {label: __('Display', 'vk-blocks'), value: 'on'},\n {label: __('Hide', 'vk-blocks'), value: 'off'},\n ]}\n onChange={(value) => setAttributes({subTextFlag: value})}\n />\n <label>{__('Text size (rem)', 'vk-blocks')}</label>\n <RangeControl\n value={subTextSize}\n onChange={(value) => {\n setAttributes({subTextSize: value});\n }}\n min={0.5}\n max={3}\n step={0.1}\n />\n <ColorPalette\n value={subTextColor}\n onChange={(value) => setAttributes({subTextColor: value})}\n />\n </PanelBody>\n </InspectorControls>\n <Component\n attributes={attributes}\n setAttributes={setAttributes}\n className={className}\n for_={'edit'}/>\n </Fragment>\n );\n },\n\n /**\n * The save function defin className }> which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n save({attributes, className}) {\n return(\n <Component\n attributes={attributes}\n className={className}\n for_={'save'}/>\n );\n },\n\n deprecated: Version0_6_0\n});\n","export const schema = {\n level: {\n type: 'number',\n default: 2,\n },\n align: {\n type: 'string',\n },\n titleStyle: {\n type: 'string',\n default: 'default',\n },\n outerMarginBottom: {\n type: 'number',\n default: null,\n },\n title: {\n type: 'string',\n source: 'html',\n selector: 'h1,h2,h3,h4,h5,h6',\n default: '',\n },\n titleColor: {\n type: 'string',\n default: '#000000',\n },\n titleSize: {\n type: 'number',\n default: 2.6,\n },\n titleMarginBottom: {\n type: 'number',\n default: null,\n },\n subText: {\n source: 'html',\n selector: 'p',\n default: '',\n },\n subTextFlag: {\n type: 'string',\n default: 'on',\n },\n subTextColor: {\n type: 'string',\n default: '#000000',\n },\n subTextSize: {\n type: 'number',\n default: 1.8,\n },\n};\n","import React from \"react\";\nconst {RichText} = wp.editor;\n\nexport const deprecated = [\n {\n attributes: {\n style: {\n type: 'string',\n default: 'info',\n },\n content: {\n type: 'string',\n source: 'html',\n selector: 'p',\n }\n },\n save({attributes}) {\n const {\n style,\n content\n } = attributes;\n return (\n <div className={`alert alert-${style}`}>\n <RichText.Content\n tagName={'p'}\n value={content}/>\n </div>\n );\n },\n }\n];\n","/**\n * Alert block type\n *\n */\nimport {deprecated} from './deprecated';\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst { registerBlockType } = wp.blocks;\nconst { RichText } = wp.editor;\n\nregisterBlockType( 'vk-blocks/alert', {\n\n title: __('Alert', 'vk-blocks'),\n\n icon: 'info',\n\n category: 'vk-blocks-cat',\n\n attributes: {\n style: {\n type: 'string',\n default: 'info',\n },\n content: {\n type: 'string',\n source: 'html',\n selector: 'p',\n }\n },\n\n edit({attributes, setAttributes, className}) {\n const {\n style,\n content\n } = attributes;\n\n function onStyleChange(event){\n setAttributes({style: event.target.value});\n }\n\n function onChangeContent(newContent) {\n setAttributes({content: newContent});\n }\n\n return (\n <div className={`${className} alert alert-${style}`}>\n <select onChange={onStyleChange}>\n <option value={'success'} selected={style === 'success'}>Success</option>\n <option value={'info'} selected={style === 'info'}>Info</option>\n <option value={'warning'} selected={style === 'warning'}>Warning</option>\n <option value={'danger'} selected={style === 'danger'}>Danger</option>\n </select>\n <RichText\n tagName=\"p\"\n onChange={onChangeContent}\n value={content}\n />\n </div>\n );\n },\n\n save({attributes,className}) {\n const {\n style,\n content\n } = attributes;\n return (\n <div className={`${className} alert alert-${style}`}>\n <RichText.Content\n tagName={'p'}\n value={content}/>\n </div>\n );\n },\n deprecated: deprecated,\n} );\n","import React from 'react';\n\nexport class Component extends React.Component {\n\n render() {\n\n let buttonColorCustom = this.props.lbColorCustom;\n let buttonColor = this.props.lbColor;\n let buttonType = this.props.lbType;\n let buttonAlign = this.props.lbAlign;\n let buttonSize = this.props.lbSize;\n let buttonUrl = this.props.lbUrl;\n let buttonTarget = this.props.lbTarget;\n let fontAwesomeIconBefore = this.props.lbFontAwesomeIconBefore;\n let fontAwesomeIconAfter = this.props.lbFontAwesomeIconAfter;\n let richText = this.props.lbRichtext;\n let subCaption = this.props.lbsubCaption;\n let containerClass = '';\n let aClass = '';\n let aStyle = {};\n let iconBefore = '';\n let iconAfter = '';\n\n aClass = `btn vk_button_link`;\n\n if (buttonColorCustom) {\n\n aClass = `${aClass} btn-primary btn-${buttonSize}`;\n\n // 塗り\n if (buttonType === '0') {\n aStyle = {\n backgroundColor: buttonColorCustom,\n border: `1px solid ${buttonColorCustom}`\n };\n // 塗りなし\n } else if (buttonType === '1') {\n aStyle = {\n backgroundColor: 'transparent',\n border: '1px solid ' + buttonColorCustom,\n color: buttonColorCustom\n };\n }\n\n\t\t\t\t// カスタムカラーじゃない場合\n } else if (!buttonColorCustom) {\n\n // 塗り\n if (buttonType === '0') {\n aClass = `${aClass} btn-${buttonSize} btn-${buttonColor}`;\n aStyle = null;\n // 塗りなし\n } else if (buttonType === '1') {\n aClass = `${aClass} btn-${buttonSize} btn-outline-${buttonColor}`;\n aStyle = null;\n }\n\n }\n\n if ( buttonAlign === 'block' ){\n \taClass = `${aClass} btn-block`;\n }\n\n\n\n if (fontAwesomeIconBefore) {\n iconBefore = <i className={`${fontAwesomeIconBefore} vk_button_link_before`}></i> ;\n }\n if (fontAwesomeIconAfter) {\n iconAfter = <i className={`${fontAwesomeIconAfter} vk_button_link_after`}></i>;\n }\n\n return (\n <a\n href={buttonUrl}\n id={'vk_button_link'}\n style={aStyle}\n className={aClass}\n role={'button'}\n aria-pressed={true}\n target={buttonTarget? '_blank':null}\n rel={'noopener noreferrer'}\n >\n {iconBefore}\n {richText}\n {iconAfter}\n {/*サブキャプションが入力された時のみ表示*/}\n {subCaption && <p className={'vk_button_link_subCaption'}>{subCaption}</p>}\n </a>\n );\n }\n}\n","import React from 'react';\n\nexport class ComponentDeprecated extends React.Component {\n\n render() {\n\n let buttonColorCustom = this.props.lbColorCustom;\n let buttonColor = this.props.lbColor;\n let buttonType = this.props.lbType;\n let buttonAlign = this.props.lbAlign;\n let buttonSize = this.props.lbSize;\n let buttonUrl = this.props.lbUrl;\n let buttonTarget = this.props.lbTarget;\n let fontAwesomeIconBefore = this.props.lbFontAwesomeIconBefore;\n let fontAwesomeIconAfter = this.props.lbFontAwesomeIconAfter;\n let richText = this.props.lbRichtext;\n let subCaption = this.props.lbsubCaption;\n let containerClass = '';\n let aClass = '';\n let aStyle = {};\n let iconBefore = '';\n let iconAfter = '';\n\n aClass = `btn vk_button_link`;\n\n if (buttonColorCustom) {\n\n aClass = `${aClass} btn-primary btn-${buttonSize}`;\n\n // 塗り\n if (buttonType === '0') {\n aStyle = {\n backgroundColor: buttonColorCustom,\n border: `1px solid ${buttonColorCustom}`\n };\n // 塗りなし\n } else if (buttonType === '1') {\n aStyle = {\n backgroundColor: 'transparent',\n border: '1px solid ' + buttonColorCustom,\n color: buttonColorCustom\n };\n }\n\n\t\t\t\t// カスタムカラーじゃない場合\n } else if (!buttonColorCustom) {\n\n // 塗り\n if (buttonType === '0') {\n aClass = `${aClass} btn-${buttonSize} btn-${buttonColor}`;\n aStyle = null;\n // 塗りなし\n } else if (buttonType === '1') {\n aClass = `${aClass} btn-${buttonSize} btn-outline-${buttonColor}`;\n aStyle = null;\n }\n\n }\n\n if ( buttonAlign === 'block' ){\n \taClass = `${aClass} btn-block`;\n }\n\n\n\n if (fontAwesomeIconBefore) {\n iconBefore = <i className={`${fontAwesomeIconBefore} vk_button_link_before`}></i> ;\n }\n if (fontAwesomeIconAfter) {\n iconAfter = <i className={`${fontAwesomeIconAfter} vk_button_link_after`}></i>;\n }\n\n return (\n <a\n href={buttonUrl}\n className={aClass}\n role={'button'}\n aria-pressed={true}\n style={aStyle}\n target={buttonTarget? '_blank':null}\n >\n {iconBefore}\n {richText}\n {iconAfter}\n\n </a>\n );\n }\n}\n","import React from 'react';\n\nexport class ComponentDeprecatedId extends React.Component {\n\n render() {\n\n let buttonColorCustom = this.props.lbColorCustom;\n let buttonColor = this.props.lbColor;\n let buttonType = this.props.lbType;\n let buttonAlign = this.props.lbAlign;\n let buttonSize = this.props.lbSize;\n let buttonUrl = this.props.lbUrl;\n let buttonTarget = this.props.lbTarget;\n let fontAwesomeIconBefore = this.props.lbFontAwesomeIconBefore;\n let fontAwesomeIconAfter = this.props.lbFontAwesomeIconAfter;\n let richText = this.props.lbRichtext;\n let subCaption = this.props.lbsubCaption;\n let containerClass = '';\n let aClass = '';\n let aStyle = {};\n let iconBefore = '';\n let iconAfter = '';\n\n aClass = `btn vk_button_link`;\n\n if (buttonColorCustom) {\n\n aClass = `${aClass} btn-primary btn-${buttonSize}`;\n\n // 塗り\n if (buttonType === '0') {\n aStyle = {\n backgroundColor: buttonColorCustom,\n border: `1px solid ${buttonColorCustom}`\n };\n // 塗りなし\n } else if (buttonType === '1') {\n aStyle = {\n backgroundColor: 'transparent',\n border: '1px solid ' + buttonColorCustom,\n color: buttonColorCustom\n };\n }\n\n\t\t\t\t// カスタムカラーじゃない場合\n } else if (!buttonColorCustom) {\n\n // 塗り\n if (buttonType === '0') {\n aClass = `${aClass} btn-${buttonSize} btn-${buttonColor}`;\n aStyle = null;\n // 塗りなし\n } else if (buttonType === '1') {\n aClass = `${aClass} btn-${buttonSize} btn-outline-${buttonColor}`;\n aStyle = null;\n }\n\n }\n\n if ( buttonAlign === 'block' ){\n \taClass = `${aClass} btn-block`;\n }\n\n\n\n if (fontAwesomeIconBefore) {\n iconBefore = <i className={`${fontAwesomeIconBefore} vk_button_link_before`}></i> ;\n }\n if (fontAwesomeIconAfter) {\n iconAfter = <i className={`${fontAwesomeIconAfter} vk_button_link_after`}></i>;\n }\n\n return (\n <a\n href={buttonUrl}\n id={'vk_button_link'}\n className={aClass}\n role={'button'}\n aria-pressed={true}\n style={aStyle}\n target={buttonTarget? '_blank':null}\n >\n {iconBefore}\n {richText}\n {iconAfter}\n\n </a>\n );\n }\n}\n","import React from 'react';\n\nexport class ComponentDeprecatedNoOpnnerNoRefererID extends React.Component {\n\n render() {\n\n let buttonColorCustom = this.props.lbColorCustom;\n let buttonColor = this.props.lbColor;\n let buttonType = this.props.lbType;\n let buttonAlign = this.props.lbAlign;\n let buttonSize = this.props.lbSize;\n let buttonUrl = this.props.lbUrl;\n let buttonTarget = this.props.lbTarget;\n let fontAwesomeIconBefore = this.props.lbFontAwesomeIconBefore;\n let fontAwesomeIconAfter = this.props.lbFontAwesomeIconAfter;\n let richText = this.props.lbRichtext;\n let subCaption = this.props.lbsubCaption;\n let containerClass = '';\n let aClass = '';\n let aStyle = {};\n let iconBefore = '';\n let iconAfter = '';\n\n aClass = `btn vk_button_link`;\n\n if (buttonColorCustom) {\n\n aClass = `${aClass} btn-primary btn-${buttonSize}`;\n\n // 塗り\n if (buttonType === '0') {\n aStyle = {\n backgroundColor: buttonColorCustom,\n border: `1px solid ${buttonColorCustom}`\n };\n // 塗りなし\n } else if (buttonType === '1') {\n aStyle = {\n backgroundColor: 'transparent',\n border: '1px solid ' + buttonColorCustom,\n color: buttonColorCustom\n };\n }\n\n\t\t\t\t// カスタムカラーじゃない場合\n } else if (!buttonColorCustom) {\n\n // 塗り\n if (buttonType === '0') {\n aClass = `${aClass} btn-${buttonSize} btn-${buttonColor}`;\n aStyle = null;\n // 塗りなし\n } else if (buttonType === '1') {\n aClass = `${aClass} btn-${buttonSize} btn-outline-${buttonColor}`;\n aStyle = null;\n }\n\n }\n\n if ( buttonAlign === 'block' ){\n \taClass = `${aClass} btn-block`;\n }\n\n\n\n if (fontAwesomeIconBefore) {\n iconBefore = <i className={`${fontAwesomeIconBefore} vk_button_link_before`}></i> ;\n }\n if (fontAwesomeIconAfter) {\n iconAfter = <i className={`${fontAwesomeIconAfter} vk_button_link_after`}></i>;\n }\n\n return (\n <a\n href={buttonUrl}\n id={'vk_button_link'}\n className={aClass}\n role={'button'}\n aria-pressed={true}\n style={aStyle}\n target={buttonTarget? '_blank':null}\n rel={'noopener noreferrer'}\n >\n\t\t\t\t\t\t\t\t\t\t\t\t{iconBefore}\n {richText}\n\t\t\t\t\t\t\t\t\t\t\t\t{iconAfter}\n {/*サブキャプションが入力された時のみ表示*/}\n {subCaption && <p className={'vk_button_link_subCaption'}>{subCaption}</p>}\n </a>\n );\n }\n}\n","import React from 'react';\n\nexport class ComponentDeprecatedSubcaptionNoopennerId extends React.Component {\n\n render() {\n\n let buttonColorCustom = this.props.lbColorCustom;\n let buttonColor = this.props.lbColor;\n let buttonType = this.props.lbType;\n let buttonAlign = this.props.lbAlign;\n let buttonSize = this.props.lbSize;\n let buttonUrl = this.props.lbUrl;\n let buttonTarget = this.props.lbTarget;\n let fontAwesomeIconBefore = this.props.lbFontAwesomeIconBefore;\n let fontAwesomeIconAfter = this.props.lbFontAwesomeIconAfter;\n let richText = this.props.lbRichtext;\n let subCaption = this.props.lbsubCaption;\n let containerClass = '';\n let aClass = '';\n let aStyle = {};\n let iconBefore = '';\n let iconAfter = '';\n\n aClass = `btn vk_button_link`;\n\n if (buttonColorCustom) {\n\n aClass = `${aClass} btn-primary btn-${buttonSize}`;\n\n // 塗り\n if (buttonType === '0') {\n aStyle = {\n backgroundColor: buttonColorCustom,\n border: `1px solid ${buttonColorCustom}`\n };\n // 塗りなし\n } else if (buttonType === '1') {\n aStyle = {\n backgroundColor: 'transparent',\n border: '1px solid ' + buttonColorCustom,\n color: buttonColorCustom\n };\n }\n\n\t\t\t\t// カスタムカラーじゃない場合\n } else if (!buttonColorCustom) {\n\n // 塗り\n if (buttonType === '0') {\n aClass = `${aClass} btn-${buttonSize} btn-${buttonColor}`;\n aStyle = null;\n // 塗りなし\n } else if (buttonType === '1') {\n aClass = `${aClass} btn-${buttonSize} btn-outline-${buttonColor}`;\n aStyle = null;\n }\n\n }\n\n if ( buttonAlign === 'block' ){\n \taClass = `${aClass} btn-block`;\n }\n\n\n\n if (fontAwesomeIconBefore) {\n iconBefore = <i className={`${fontAwesomeIconBefore} vk_button_link_before`}></i> ;\n }\n if (fontAwesomeIconAfter) {\n iconAfter = <i className={`${fontAwesomeIconAfter} vk_button_link_after`}></i>;\n }\n\n return (\n <a\n href={buttonUrl}\n id={'vk_button_link'}\n className={aClass}\n role={'button'}\n aria-pressed={true}\n style={aStyle}\n target={buttonTarget? '_blank':null}\n >\n\t\t\t\t\t\t\t\t\t\t\t\t{iconBefore}\n {richText}\n\t\t\t\t\t\t\t\t\t\t\t\t{iconAfter}\n {/*サブキャプションが入力された時のみ表示*/}\n {subCaption && <p className={'vk_button_link_subCaption'}>{subCaption}</p>}\n </a>\n );\n }\n}\n","import React from \"react\";\nimport {ComponentDeprecated} from \"./component-deprecated\";\nimport {ComponentDeprecatedId} from \"./component-deprecated-id\";\nimport {ComponentDeprecatedNoOpnnerNoRefererID} from \"./component-deprecated-noopenernoreferer-id\";\nimport {ComponentDeprecatedSubcaptionNoopennerId} from \"./component-deprecated-subcaption-noNoopnnernoreferer-id\";\n\nconst { RichText } = wp.editor;\n\nexport const deprecated = [\n\t{\n\t\tattributes: {\n\t\t\tcontent: {\n\t\t\t\tsource: 'html',\n\t\t\t\tselector: 'span',\n\t\t\t},\n\t\t\tbuttonUrl: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonTarget: {\n\t\t\t\ttype: 'Boolean',\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tbuttonSize: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'md',\n\t\t\t},\n\t\t\tbuttonType: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '0',\n\t\t\t},\n\t\t\tbuttonColor: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'primary',\n\t\t\t},\n\t\t\tbuttonColorCustom: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonAlign: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'left',\n\t\t\t},\n\t\t\tfontAwesomeIconBefore: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tfontAwesomeIconAfter: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t}\n\t\t},\n\n\t\tsave({attributes}) {\n\t\t\tconst {\n\t\t\t\tcontent,\n\t\t\t\tbuttonUrl,\n\t\t\t\tbuttonTarget,\n\t\t\t\tbuttonSize,\n\t\t\t\tbuttonType,\n\t\t\t\tbuttonColor,\n\t\t\t\tbuttonColorCustom,\n\t\t\t\tbuttonAlign,\n\t\t\t\tfontAwesomeIconBefore,\n\t\t\t\tfontAwesomeIconAfter,\n\t\t\t} = attributes;\n\n\t\t\tlet containerClass = '';\n\n\t\t\tif (buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-color-custom vk_button-align-${buttonAlign}`;\n\n\t\t\t} else if (!buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-align-${buttonAlign}`;\n\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<div className={containerClass}>\n\n\t\t\t\t\t<ComponentDeprecated lbColorCustom={buttonColorCustom} lbColor={buttonColor} lbType={buttonType}\n\t\t\t\t\t\t\t\t\t\t lbAlign={buttonAlign}\n\t\t\t\t\t\t\t\t\t\t lbSize={buttonSize}\n\t\t\t\t\t\t\t\t\t\t lbUrl={buttonUrl}\n\t\t\t\t\t\t\t\t\t\t lbTarget={buttonTarget}\n\t\t\t\t\t\t\t\t\t\t lbFontAwesomeIconBefore={fontAwesomeIconBefore}\n\t\t\t\t\t\t\t\t\t\t lbFontAwesomeIconAfter={fontAwesomeIconAfter}\n\t\t\t\t\t\t\t\t\t\t lbRichtext={\n\t\t\t\t\t\t\t\t\t\t\t <RichText.Content\n\t\t\t\t\t\t\t\t\t\t\t\t tagName=\"span\"\n\t\t\t\t\t\t\t\t\t\t\t\t className={'vk_button_link_txt'}\n\t\t\t\t\t\t\t\t\t\t\t\t value={content}\n\t\t\t\t\t\t\t\t\t\t\t />\n\t\t\t\t\t\t\t\t\t\t }/>\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t},\n\t{\n\t\tattributes: {\n\t\t\tcontent: {\n\t\t\t\tsource: 'html',\n\t\t\t\tselector: 'span',\n\t\t\t},\n\t\t\tbuttonUrl: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonTarget: {\n\t\t\t\ttype: 'Boolean',\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tbuttonSize: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'md',\n\t\t\t},\n\t\t\tbuttonType: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '0',\n\t\t\t},\n\t\t\tbuttonColor: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'primary',\n\t\t\t},\n\t\t\tbuttonColorCustom: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonAlign: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'left',\n\t\t\t},\n\t\t\tfontAwesomeIconBefore: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tfontAwesomeIconAfter: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t}\n\t\t},\n\n\t\tsave({attributes}) {\n\t\t\tconst {\n\t\t\t\tcontent,\n\t\t\t\tbuttonUrl,\n\t\t\t\tbuttonTarget,\n\t\t\t\tbuttonSize,\n\t\t\t\tbuttonType,\n\t\t\t\tbuttonColor,\n\t\t\t\tbuttonColorCustom,\n\t\t\t\tbuttonAlign,\n\t\t\t\tfontAwesomeIconBefore,\n\t\t\t\tfontAwesomeIconAfter,\n\t\t\t} = attributes;\n\n\t\t\tlet containerClass = '';\n\n\t\t\tif (buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-color-custom vk_button-align-${buttonAlign}`;\n\n\t\t\t} else if (!buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-align-${buttonAlign}`;\n\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<div className={containerClass}>\n\n\t\t\t\t\t<ComponentDeprecatedId lbColorCustom={buttonColorCustom} lbColor={buttonColor} lbType={buttonType}\n\t\t\t\t\t\t\t\t\t\t lbAlign={buttonAlign}\n\t\t\t\t\t\t\t\t\t\t lbSize={buttonSize}\n\t\t\t\t\t\t\t\t\t\t lbUrl={buttonUrl}\n\t\t\t\t\t\t\t\t\t\t lbTarget={buttonTarget}\n\t\t\t\t\t\t\t\t\t\t lbFontAwesomeIconBefore={fontAwesomeIconBefore}\n\t\t\t\t\t\t\t\t\t\t lbFontAwesomeIconAfter={fontAwesomeIconAfter}\n\t\t\t\t\t\t\t\t\t\t lbRichtext={\n\t\t\t\t\t\t\t\t\t\t\t <RichText.Content\n\t\t\t\t\t\t\t\t\t\t\t\t tagName=\"span\"\n\t\t\t\t\t\t\t\t\t\t\t\t className={'vk_button_link_txt'}\n\t\t\t\t\t\t\t\t\t\t\t\t value={content}\n\t\t\t\t\t\t\t\t\t\t\t />\n\t\t\t\t\t\t\t\t\t\t }/>\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t},\n\t{\n\t\tattributes: {\n\t\t\tcontent: {\n\t\t\t\tsource: 'html',\n\t\t\t\tselector: 'span',\n\t\t\t},\n\t\t\tsubCaption: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonUrl: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonTarget: {\n\t\t\t\ttype: 'Boolean',\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tbuttonSize: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'md',\n\t\t\t},\n\t\t\tbuttonType: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '0',\n\t\t\t},\n\t\t\tbuttonColor: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'primary',\n\t\t\t},\n\t\t\tbuttonColorCustom: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonAlign: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'left',\n\t\t\t},\n\t\t\tfontAwesomeIconBefore: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tfontAwesomeIconAfter: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t}\n\t\t},\n\t\tsave({attributes, className}) {\n\t\t\tconst {\n\t\t\t\tcontent,\n\t\t\t\tsubCaption,\n\t\t\t\tbuttonUrl,\n\t\t\t\tbuttonTarget,\n\t\t\t\tbuttonSize,\n\t\t\t\tbuttonType,\n\t\t\t\tbuttonColor,\n\t\t\t\tbuttonColorCustom,\n\t\t\t\tbuttonAlign,\n\t\t\t\tfontAwesomeIconBefore,\n\t\t\t\tfontAwesomeIconAfter,\n\t\t\t} = attributes;\n\n\t\t\tlet containerClass = '';\n\n\t\t\tif (buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-color-custom vk_button-align-${buttonAlign}`;\n\n\t\t\t} else if (!buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-align-${buttonAlign}`;\n\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<div className={containerClass}>\n\n\t\t\t\t\t<ComponentDeprecatedNoOpnnerNoRefererID lbColorCustom={buttonColorCustom} lbColor={buttonColor}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbType={buttonType}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbAlign={buttonAlign}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbSize={buttonSize}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbUrl={buttonUrl}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbTarget={buttonTarget}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbFontAwesomeIconBefore={fontAwesomeIconBefore}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbFontAwesomeIconAfter={fontAwesomeIconAfter}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbsubCaption={subCaption}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbRichtext={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<RichText.Content\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttagName=\"span\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={'vk_button_link_txt'}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={content}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}/>\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t},\n\t{\n\t\tattributes: {\n\t\t\tcontent: {\n\t\t\t\tsource: 'html',\n\t\t\t\tselector: 'span',\n\t\t\t},\n\t\t\tsubCaption: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonUrl: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonTarget: {\n\t\t\t\ttype: 'Boolean',\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tbuttonSize: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'md',\n\t\t\t},\n\t\t\tbuttonType: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '0',\n\t\t\t},\n\t\t\tbuttonColor: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'primary',\n\t\t\t},\n\t\t\tbuttonColorCustom: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonAlign: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'left',\n\t\t\t},\n\t\t\tfontAwesomeIconBefore: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tfontAwesomeIconAfter: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t}\n\t\t},\n\t\tsave({attributes, className}) {\n\t\t\tconst {\n\t\t\t\tcontent,\n\t\t\t\tsubCaption,\n\t\t\t\tbuttonUrl,\n\t\t\t\tbuttonTarget,\n\t\t\t\tbuttonSize,\n\t\t\t\tbuttonType,\n\t\t\t\tbuttonColor,\n\t\t\t\tbuttonColorCustom,\n\t\t\t\tbuttonAlign,\n\t\t\t\tfontAwesomeIconBefore,\n\t\t\t\tfontAwesomeIconAfter,\n\t\t\t} = attributes;\n\n\t\t\tlet containerClass = '';\n\n\t\t\tif (buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-color-custom vk_button-align-${buttonAlign}`;\n\n\t\t\t} else if (!buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-align-${buttonAlign}`;\n\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<div className={containerClass}>\n\n\t\t\t\t\t<ComponentDeprecatedSubcaptionNoopennerId lbColorCustom={buttonColorCustom}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbColor={buttonColor}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbType={buttonType}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbAlign={buttonAlign}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbSize={buttonSize}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbUrl={buttonUrl}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbTarget={buttonTarget}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbFontAwesomeIconBefore={fontAwesomeIconBefore}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbFontAwesomeIconAfter={fontAwesomeIconAfter}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbsubCaption={subCaption}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbRichtext={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <RichText.Content\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t tagName=\"span\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t className={'vk_button_link_txt'}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t value={content}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }/>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t}\n];\n","/**\n * Button block type\n *\n */\nimport React from \"react\";\nimport {Component} from \"./component\";\nimport {deprecated} from \"./deprecated/deprecated\";\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {registerBlockType} = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {RangeControl, RadioControl, PanelBody, Button, BaseControl, CheckboxControl, TextControl, Dashicon, IconButton,} = wp.components;\nconst {Fragment} = wp.element;\nconst {RichText, InspectorControls, MediaUpload, ColorPalette, URLInput,} = wp.editor;\nconst BlockIcon = (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n\t\t<g>\n\t\t\t<path d=\"M506,185v142H70V185H506 M526.4,137H49.6C34.4,137,22,149.4,22,164.6v182.8c0,15.2,12.4,27.6,27.6,27.6h476.8\n\t\t\t\tc15.2,0,27.6-12.4,27.6-27.6V164.6C554,149.4,541.6,137,526.4,137L526.4,137z\"/>\n\t\t</g>\n\t\t<g>\n\t\t\t<path d=\"M83.8,206.9h55.9c9.3,0,16.5,2.3,21.5,6.9c5,4.6,7.5,10.3,7.5,17.1c0,5.7-1.8,10.6-5.3,14.7c-2.4,2.7-5.8,4.9-10.4,6.5\n\t\t\t\tc6.9,1.7,12.1,4.5,15.3,8.6c3.3,4.1,4.9,9.2,4.9,15.3c0,5-1.2,9.5-3.5,13.5c-2.3,4-5.5,7.2-9.6,9.5c-2.5,1.5-6.3,2.5-11.3,3.2\n\t\t\t\tc-6.7,0.9-11.2,1.3-13.4,1.3H83.8V206.9z M113.9,244.8h13c4.7,0,7.9-0.8,9.7-2.4c1.8-1.6,2.7-3.9,2.7-7c0-2.8-0.9-5-2.7-6.6\n\t\t\t\tc-1.8-1.6-5-2.4-9.5-2.4h-13.2V244.8z M113.9,282.8h15.2c5.1,0,8.8-0.9,10.9-2.7s3.2-4.3,3.2-7.4c0-2.9-1-5.2-3.1-6.9\n\t\t\t\tc-2.1-1.7-5.7-2.6-11-2.6h-15.2V282.8z\"/>\n\t\t\t<path d=\"M245.9,303.5h-25.1v-11.3c-3.7,4.7-7.5,8-11.3,10c-3.8,2-8.5,3-14,3c-7.4,0-13.2-2.2-17.4-6.6c-4.2-4.4-6.3-11.2-6.3-20.4\n\t\t\t\tv-44.6h27V272c0,4.4,0.8,7.5,2.4,9.4c1.6,1.8,3.9,2.8,6.9,2.8c3.2,0,5.8-1.2,7.9-3.7s3.1-6.9,3.1-13.3v-33.7h26.8V303.5z\"/>\n\t\t\t<path d=\"M282.4,206.9v26.6h14.8v19.7h-14.8V278c0,3,0.3,5,0.9,5.9c0.9,1.5,2.4,2.2,4.6,2.2c2,0,4.7-0.6,8.3-1.7l2,18.5\n\t\t\t\tc-6.6,1.5-12.8,2.2-18.6,2.2c-6.7,0-11.6-0.9-14.8-2.6c-3.2-1.7-5.5-4.3-7-7.8c-1.5-3.5-2.3-9.1-2.3-17v-24.6h-9.9v-19.7h9.9v-12.9\n\t\t\t\tL282.4,206.9z\"/>\n\t\t\t<path d=\"M330.2,206.9v26.6H345v19.7h-14.8V278c0,3,0.3,5,0.9,5.9c0.9,1.5,2.4,2.2,4.6,2.2c2,0,4.7-0.6,8.3-1.7l2,18.5\n\t\t\t\tc-6.6,1.5-12.8,2.2-18.6,2.2c-6.7,0-11.6-0.9-14.8-2.6c-3.2-1.7-5.5-4.3-7-7.8c-1.5-3.5-2.3-9.1-2.3-17v-24.6h-9.9v-19.7h9.9v-12.9\n\t\t\t\tL330.2,206.9z\"/>\n\t\t\t<path d=\"M339.6,268.7c0-10.7,3.6-19.5,10.8-26.4s16.9-10.4,29.2-10.4c14,0,24.6,4.1,31.8,12.2c5.8,6.6,8.6,14.6,8.6,24.2\n\t\t\t\tc0,10.8-3.6,19.6-10.7,26.5c-7.1,6.9-17,10.3-29.6,10.3c-11.3,0-20.4-2.9-27.3-8.6C343.9,289.5,339.6,280.2,339.6,268.7z\n\t\t\t\t M366.5,268.7c0,6.2,1.3,10.9,3.8,13.8c2.5,3,5.7,4.5,9.5,4.5c3.9,0,7-1.5,9.5-4.4c2.5-2.9,3.7-7.7,3.7-14.2\n\t\t\t\tc0-6.1-1.3-10.6-3.8-13.6s-5.6-4.5-9.3-4.5c-3.9,0-7.1,1.5-9.7,4.5C367.8,257.9,366.5,262.5,366.5,268.7z\"/>\n\t\t\t<path d=\"M418.2,233.5h25v11.4c3.7-4.7,7.5-8,11.3-10c3.8-2,8.5-3,14-3c7.4,0,13.2,2.2,17.4,6.6c4.2,4.4,6.3,11.2,6.3,20.5v44.5h-27\n\t\t\t\tV265c0-4.4-0.8-7.5-2.4-9.3c-1.6-1.8-3.9-2.7-6.9-2.7c-3.3,0-5.9,1.2-7.9,3.7c-2,2.5-3,6.9-3,13.3v33.6h-26.8V233.5z\"/>\n\t\t</g>\n </svg>\n);\n\n/**\n * Register: a Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/button', {\n // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('Button', 'vk-blocks'), // Block title.\n icon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n category: 'vk-blocks-cat', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n attributes: {\n content: {\n source: 'html',\n selector: 'span',\n },\n subCaption: {\n type: 'string',\n default: null,\n },\n buttonUrl: {\n type: 'string',\n default: null,\n },\n buttonTarget: {\n type: 'Boolean',\n default: false,\n },\n buttonSize: {\n type: 'string',\n default: 'md',\n },\n buttonType: {\n type: 'string',\n default: '0',\n },\n buttonColor: {\n type: 'string',\n default: 'primary',\n },\n buttonColorCustom: {\n type: 'string',\n default: null,\n },\n buttonAlign: {\n type: 'string',\n default: 'left',\n },\n fontAwesomeIconBefore: {\n type: 'string',\n default: null,\n },\n fontAwesomeIconAfter: {\n type: 'string',\n default: null,\n }\n },\n\n /**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n edit({attributes, className, setAttributes, isSelected}) {\n const {\n content,\n subCaption,\n buttonUrl,\n buttonTarget,\n buttonSize,\n buttonType,\n buttonColor,\n buttonColorCustom,\n buttonAlign,\n fontAwesomeIconBefore,\n fontAwesomeIconAfter,\n } = attributes;\n\n let containerClass;\n if (buttonColorCustom) {\n containerClass = `vk_button vk_button-align-${buttonAlign} vk_button-color-custom`;\n } else {\n containerClass = `vk_button vk_button-align-${buttonAlign}`;\n }\n\n if (className) {\n containerClass = `${className} vk_button vk_button-align-${buttonAlign} vk_button-color-custom`;\n } else {\n containerClass = `${className} vk_button vk_button-align-${buttonAlign}`;\n }\n\n return (\n <Fragment>\n <InspectorControls>\n <PanelBody title={__('Button setting', 'vk-blocks')}>\n <TextControl\n label={__('Sub Caption', 'vk-blocks')}\n value={subCaption}\n onChange={(value) => setAttributes({subCaption: value})}\n placeholder={'Sub Caption'}\n />\n <CheckboxControl\n label={__('Open link new tab.', 'vk-blocks')}\n checked={buttonTarget}\n onChange={(checked) => setAttributes({buttonTarget: checked})}\n />\n <RadioControl\n label={__('Button Size:', 'vk-blocks')}\n selected={buttonSize}\n options={[\n {label: __('Large', 'vk-blocks'), value: 'lg'},\n {label: __('normal', 'vk-blocks'), value: 'md'},\n {label: __('Small', 'vk-blocks'), value: 'sm'},\n ]}\n onChange={(value) => setAttributes({buttonSize: value})}\n />\n <RadioControl\n label={__('Button Position:', 'vk-blocks')}\n selected={buttonAlign}\n options={[\n {label: __('Left', 'vk-blocks'), value: 'left'},\n {label: __('Center', 'vk-blocks'), value: 'center'},\n {label: __('Right', 'vk-blocks'), value: 'right'},\n {label: __('Block', 'vk-blocks'), value: 'block'},\n ]}\n onChange={(value) => setAttributes({buttonAlign: value})}\n />\n <RadioControl\n label={__('Button Style:', 'vk-blocks')}\n selected={buttonType}\n options={[\n {label: __('Solid color', 'vk-blocks'), value: '0'},\n {label: __('No background', 'vk-blocks'), value: '1'},\n ]}\n help={__('If you select \"No background\", that you need to select a Custom Color.', 'vk-blocks')}\n onChange={(value) => setAttributes({buttonType: value})}\n />\n <RadioControl\n label={__('Default Color:', 'vk-blocks')}\n selected={buttonColor}\n options={[\n {label: __('Primary', 'vk-blocks'), value: 'primary'},\n {label: __('Secondary', 'vk-blocks'), value: 'secondary'},\n {label: __('Success', 'vk-blocks'), value: 'success'},\n {label: __('Info', 'vk-blocks'), value: 'info'},\n {label: __('Warning', 'vk-blocks'), value: 'warning'},\n {label: __('Danger', 'vk-blocks'), value: 'danger'},\n {label: __('Light', 'vk-blocks'), value: 'light'},\n {label: __('Dark', 'vk-blocks'), value: 'dark'},\n ]}\n onChange={(value) => setAttributes({buttonColor: value})}\n />\n <BaseControl\n label={__('Custom Color', 'vk-blocks')}\n help={__('This custom color overrides the default color. If you want to use the default color, click the clear button.', 'vk-blocks')}\n >\n <ColorPalette\n value={buttonColorCustom}\n onChange={(value) => setAttributes({buttonColorCustom: value})}\n />\n </BaseControl>\n <BaseControl\n label={__('Font Awesome:', 'vk-blocks')}\n help={<a href={`https://fontawesome.com/icons?d=gallery&m=free`} target={`_blank`}>{__('Font Awesome icon list', 'vk-blocks')}</a>}\n >\n <TextControl\n label={__('Before text', 'vk-blocks')}\n help={__('Enter Font Awesome Class.This icon will appear before text. Ex) fas fa-arrow-circle-right', 'vk-blocks')}\n value={fontAwesomeIconBefore}\n onChange={(value) => setAttributes({fontAwesomeIconBefore: value})}\n placeholder={'fas fa-arrow-circle-right'}\n />\n <TextControl\n label={__('After text', 'vk-blocks')}\n help={__('Enter Font Awesome Class.This icon will appear after text. Ex) fas fa-external-link-alt', 'vk-blocks')}\n value={fontAwesomeIconAfter}\n onChange={(value) => setAttributes({fontAwesomeIconAfter: value})}\n placeholder={'fas fa-external-link-alt'}\n />\n </BaseControl>\n </PanelBody>\n </InspectorControls>\n <div className={containerClass}>\n\n <Component lbColorCustom={buttonColorCustom} lbColor={buttonColor} lbType={buttonType}\n lbAlign={buttonAlign}\n lbSize={buttonSize}\n lbFontAwesomeIconBefore={fontAwesomeIconBefore}\n lbFontAwesomeIconAfter={fontAwesomeIconAfter}\n lbsubCaption={subCaption}\n lbRichtext={\n <RichText\n tagName=\"span\"\n className={'vk_button_link_txt'}\n onChange={(value) => setAttributes({content: value})}\n value={content}\n placeholder={__('Input text', 'vk-blocks')}\n formattingControls={['bold', 'italic', 'strikethrough']}\n keepPlaceholderOnFocus\n />\n }/>\n\n {isSelected && (\n <form\n className=\"block-library-button__inline-link\"\n onSubmit={(event) => event.preventDefault()}>\n <Dashicon icon=\"admin-links\"/>\n <URLInput\n value={buttonUrl}\n onChange={(value) => setAttributes({buttonUrl: value})}\n />\n <IconButton icon=\"editor-break\" label={__('Apply', 'vk-blocks')} type=\"submit\"/>\n </form>\n )}\n </div>\n </Fragment>\n );\n },\n\n /**\n * The save function defin className }> which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n save({attributes, className}) {\n const {\n content,\n subCaption,\n buttonUrl,\n buttonTarget,\n buttonSize,\n buttonType,\n buttonColor,\n buttonColorCustom,\n buttonAlign,\n fontAwesomeIconBefore,\n fontAwesomeIconAfter,\n } = attributes;\n\n let containerClass = '';\n if (buttonColorCustom) {\n\n containerClass = `vk_button vk_button-color-custom vk_button-align-${buttonAlign}`;\n\n } else if (!buttonColorCustom) {\n\n containerClass = `vk_button vk_button-align-${buttonAlign}`;\n\n }\n\n if(className){\n containerClass = className + ' ' + containerClass;\n }\n\n return (\n <div className={containerClass}>\n\n <Component lbColorCustom={buttonColorCustom} lbColor={buttonColor} lbType={buttonType}\n lbAlign={buttonAlign}\n lbSize={buttonSize}\n lbUrl={buttonUrl}\n lbTarget={buttonTarget}\n lbFontAwesomeIconBefore={fontAwesomeIconBefore}\n lbFontAwesomeIconAfter={fontAwesomeIconAfter}\n lbsubCaption={subCaption}\n lbRichtext={\n <RichText.Content\n tagName=\"span\"\n className={'vk_button_link_txt'}\n value={content}\n />\n }/>\n </div>\n );\n },\n\n deprecated: deprecated\n});\n","import React from \"react\";\nconst {RichText} = wp.editor;\n\nexport const deprecated = [\n {\n attributes: {\n heading: {\n type: 'string',\n source: 'html',\n selector: 'dt',\n },\n content: {\n type: 'string',\n source: 'html',\n selector: 'dd',\n }\n },\n\n save({attributes}) {\n const {\n heading,\n content\n } = attributes;\n\n return (\n <dl className={ 'vk_faq' }>\n <RichText.Content\n tagName=\"dt\"\n className={ 'vk_faq_title' }\n value={heading}\n />\n <RichText.Content\n tagName=\"dd\"\n className={ 'vk_faq_content' }\n value={content}\n />\n </dl>\n );\n },\n }\n];\n","/**\n * Faq block type\n *\n */\nimport {deprecated} from './deprecated';\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {registerBlockType} = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {RichText} = wp.editor;\nconst BlockIcon = (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n\t<path d=\"M178.9,191.6c7.2,5,12,8.2,14.2,9.4c3.3,1.9,7.8,4,13.4,6.5l-16.1,32.4c-8.1-3.9-16.1-8.6-24-14\n\t\tc-7.9-5.4-13.4-9.5-16.6-12.2c-12.8,5.5-28.8,8.3-48,8.3c-28.4,0-50.9-7.4-67.3-22.2c-19.4-17.5-29.1-42.2-29.1-73.9\n\t\tc0-30.8,8.5-54.7,25.5-71.8c17-17.1,40.7-25.6,71.2-25.6c31.1,0,55,8.3,71.9,25c16.9,16.7,25.3,40.6,25.3,71.6\n\t\tC199.3,152.8,192.5,175,178.9,191.6z M134.6,161.9c4.6-8.3,6.9-20.6,6.9-37c0-18.9-3.5-32.4-10.5-40.5c-7-8.1-16.7-12.1-29-12.1\n\t\tc-11.5,0-20.8,4.1-28,12.4c-7.1,8.3-10.7,21.2-10.7,38.7c0,20.4,3.5,34.8,10.5,43c7,8.3,16.6,12.4,28.7,12.4\n\t\tc3.9,0,7.6-0.4,11.1-1.1c-4.9-4.7-12.5-9.1-23-13.3l9.1-20.8c5.1,0.9,9.1,2.1,11.9,3.4c2.9,1.4,8.4,4.9,16.7,10.7\n\t\tC130.1,159.1,132.3,160.5,134.6,161.9z\"/>\n\t<path d=\"M137.9,452.6H72.2l-9.1,30.9l-59,0l70.3-187.2h63.1l70.3,187.2h-60.6L137.9,452.6z M125.9,412.1l-20.7-67.3l-20.4,67.3\n\t\tH125.9z\"/>\n\t<path d=\"M553.9,239.9h-303c-10,0-18.1-8.1-18.1-18.1c0-10,8.1-18.1,18.1-18.1h303c10,0,18.1,8.1,18.1,18.1\n\t\tC572,231.8,563.9,239.9,553.9,239.9z\"/>\n\t<path d=\"M553.9,483.5h-303c-10,0-18.1-8.1-18.1-18.1c0-10,8.1-18.1,18.1-18.1h303c10,0,18.1,8.1,18.1,18.1\n\t\tC572,475.4,563.9,483.5,553.9,483.5z\"/>\n\t</svg>\n);\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/faq', {\n // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('FAQ', 'vk-blocks'), // Block title.\n icon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n category: 'vk-blocks-cat', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n attributes: {\n heading: {\n type: 'string',\n source: 'html',\n selector: 'dt',\n },\n content: {\n type: 'string',\n source: 'html',\n selector: 'dd',\n }\n },\n\n /**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n edit({attributes, setAttributes,className}) {\n const {\n heading,\n content\n } = attributes;\n\n return (\n <dl className={`${className} vk_faq`}>\n <RichText\n tagName=\"dt\"\n\t\t\t\t\t\t\t\t\t\tclassName={ 'vk_faq_title' }\n onChange={(value) => setAttributes({heading: value})}\n value={heading}\n placeholder={__('Please enter a question.', 'vk-blocks') }\n />\n <RichText\n tagName=\"dd\"\n\t\t\t\t\t\t\t\t\t\tclassName={ 'vk_faq_content' }\n onChange={(value) => setAttributes({content: value})}\n value={content}\n placeholder={__('Please enter a answer.', 'vk-blocks') }\n />\n </dl>\n );\n },\n\n /**\n * The save function defin className }> which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n save({attributes,className}) {\n const {\n heading,\n content\n } = attributes;\n\n return (\n <dl className={ `${className} vk_faq` }>\n <RichText.Content\n tagName=\"dt\"\n className={ 'vk_faq_title' }\n value={heading}\n />\n <RichText.Content\n tagName=\"dd\"\n className={ 'vk_faq_content' }\n value={content}\n />\n </dl>\n );\n },\n deprecated: deprecated\n});\n","import React from \"react\";\nconst {RichText} = wp.editor;\n\nexport const deprecated = [\n {\n attributes: {\n heading: {\n type: 'string',\n source: 'html',\n selector: 'dt',\n },\n content: {\n type: 'string',\n source: 'html',\n selector: 'dd',\n },\n arrowFlag: {\n type: 'string',\n default: 'vk_flow-arrow-on',\n },\n insertImage: {\n type: 'string',\n default: null, // no image by default!\n }\n },\n\n save({attributes}) {\n const {\n heading,\n content,\n insertImage,\n arrowFlag,\n } = attributes;\n\n return (\n <div className={`${ arrowFlag } vk_flow`}>\n <div className={ 'vk_flow_frame' }>\n <dl className={ 'vk_flow_frame_text' }>\n <RichText.Content\n tagName=\"dt\"\n className={ 'vk_flow_frame_text_title' }\n value={heading}\n />\n <RichText.Content\n tagName=\"dd\"\n className={ 'vk_flow_frame_text_content' }\n value={content}\n />\n </dl>\n { insertImage ?\n <div className={ 'vk_flow_frame_image' }>\n <img\n src={ insertImage }\n alt=''\n /></div> : '' }\n </div>\n </div>\n );\n },\n }\n];\n","/**\n * Flow block type\n *\n */\nimport {deprecated} from './deprecated'\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {registerBlockType} = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {RangeControl, RadioControl, PanelBody, Button, PanelColor} = wp.components;\nconst {Fragment} = wp.element;\nconst {RichText, InspectorControls, MediaUpload, ColorPalette} = wp.editor;\nconst BlockIcon = 'arrow-down';\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/flow', {\n // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('Flow', 'vk-blocks'), // Block title.\n icon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n category: 'vk-blocks-cat', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n attributes: {\n heading: {\n type: 'string',\n source: 'html',\n selector: 'dt',\n },\n content: {\n type: 'string',\n source: 'html',\n selector: 'dd',\n },\n arrowFlag: {\n type: 'string',\n default: 'vk_flow-arrow-on',\n },\n\t\t\t\tinsertImage: {\n\t\t\t\t\ttype: 'string',\n\t\t\t\t\tdefault: null, // no image by default!\n\t\t\t\t}\n },\n\n /**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n edit({attributes, setAttributes,className}) {\n const {\n heading,\n content,\n insertImage,\n arrowFlag,\n } = attributes;\n\n return [\n <Fragment>\n <InspectorControls>\n <PanelBody title={__('Display of arrow', 'vk-blocks') }>\n <RadioControl\n selected={arrowFlag}\n options={[\n {label: __('Arrow display', 'vk-blocks'), value: 'vk_flow-arrow-on'},\n {label: __('Arrow hidden', 'vk-blocks'), value: 'vk_flow-arrow-off'},\n ]}\n onChange={(value) => setAttributes({arrowFlag: value})}\n />\n </PanelBody>\n </InspectorControls>\n\n <div className={`${className} ${ arrowFlag } vk_flow`}>\n\t\t\t\t\t\t\t\t\t<div className={ 'vk_flow_frame' } >\n <dl className={ 'vk_flow_frame_text' }>\n <RichText\n tagName=\"dt\"\n className={ 'vk_flow_frame_text_title' }\n onChange={(value) => setAttributes({heading: value})}\n value={heading}\n placeholder={__('Input title', 'vk-blocks') }\n />\n <RichText\n tagName=\"dd\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={ 'vk_flow_frame_text_content' }\n onChange={(value) => setAttributes({content: value})}\n value={content}\n placeholder={__('Input content', 'vk-blocks') }\n />\n </dl>\n\t\t\t\t\t\t\t\t\t\t<div className={'vk_flow_frame_image'}>\n\t\t\t\t\t\t\t\t\t\t\t\t<MediaUpload\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tonSelect={(value) => setAttributes({insertImage: value.url})}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype=\"image\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={ 'vk_flow_frame_image' }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={insertImage}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trender={({open}) => (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonClick={open}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={insertImage ? 'image-button' : 'button button-large'}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{!insertImage ? __('Select image', 'vk-blocks') :\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img className={'icon-image'} src={insertImage} alt={__('Upload image', 'vk-blocks')}/>}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</div>\n </div>\n </Fragment>\n ];\n },\n\n\n /**\n * The save function defin className }> which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n save({attributes,className}) {\n const {\n heading,\n content,\n insertImage,\n arrowFlag,\n } = attributes;\n\n return (\n <div className={`${className} ${ arrowFlag } vk_flow`}>\n\t\t\t\t\t\t\t<div className={ 'vk_flow_frame' }>\n <dl className={ 'vk_flow_frame_text' }>\n <RichText.Content\n tagName=\"dt\"\n className={ 'vk_flow_frame_text_title' }\n value={heading}\n />\n <RichText.Content\n tagName=\"dd\"\n className={ 'vk_flow_frame_text_content' }\n value={content}\n />\n </dl>\n { insertImage ?\n <div className={ 'vk_flow_frame_image' }>\n <img\n src={ insertImage }\n alt=''\n\t\t\t\t\t\t\t\t\t\t/></div> : '' }\n\t\t\t\t\t\t\t</div>\n </div>\n );\n },\n\n deprecated:deprecated\n});\n","import React from 'react';\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {RichText} = wp.editor;\n\nexport class ComponentBlock extends React.Component {\n\n render() {\n\n let setAttributes = this.props.setAttributes;\n let {\n heading1,\n heading2,\n heading3,\n content1,\n content2,\n content3,\n url1,\n url2,\n url3,\n urlOpenType1,\n urlOpenType2,\n urlOpenType3,\n icon1,\n icon2,\n icon3,\n color1,\n color2,\n color3,\n bgType1,\n bgType2,\n bgType3,\n insertImage1,\n insertImage2,\n insertImage3\n } = this.props.attributes;\n let for_ = this.props.for_;\n let blockNum = this.props.blockNum;\n let blockNumArrIndex = this.props.blockNum -1;\n\n const heading = [heading1, heading2, heading3];\n const content = [content1, content2, content3];\n const url = [url1, url2, url3];\n const urlOpenType = [urlOpenType1, urlOpenType2, urlOpenType3];\n const icon = [icon1, icon2, icon3];\n const color = [color1, color2, color3];\n const bgType = [bgType1, bgType2, bgType3];\n const insertImage = [insertImage1, insertImage2, insertImage3];\n\n let richTextH1Save = '';\n let richTextPSave = '';\n\n\n let drawElement = (() => {\n\n if (insertImage[blockNumArrIndex]) {\n\n return <div className=\"vk_prBlocks_item_image\"\n style={{\n backgroundImage: `url(${insertImage[blockNumArrIndex]})`,\n backgroundRepeat: 'no-repeat 50% center',\n backgroundSize: 'cover'\n }}\n >\n <img\n src={insertImage[blockNumArrIndex]}\n alt=''\n />\n </div>\n\n } else {\n\n if (!color[blockNumArrIndex]) {\n color[blockNumArrIndex] = '#0693e3';\n }\n if (bgType[blockNumArrIndex] === '0') {\n\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{\n backgroundColor: color[blockNumArrIndex],\n border: `1px solid ${color[blockNumArrIndex]}`\n }}\n ><i className={`${icon[blockNumArrIndex]} vk_prBlocks_item_icon`}\n style={{color: '#fff'}}>\n </i>\n </div>\n } else {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{backgroundColor: 'transparent', border: '1px solid ' + color[blockNumArrIndex]}}\n ><i className={`${icon[blockNumArrIndex]} vk_prBlocks_item_icon`}\n style={{color: color[blockNumArrIndex]}}>\n </i>\n </div>\n }\n }\n })();\n\n\n //編集画面とフロント側の切り替え\n if (for_ === 'edit') {\n\n if (blockNum === 1) {\n\n richTextH1Save = <RichText\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-1\"\n tagName={'h1'}\n onChange={(value) => setAttributes({heading1: value})}\n value={heading1}\n placeholder={__('Input Title', 'vk-blocks')}\n />;\n richTextPSave = <RichText\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-1\"\n tagName={'p'}\n onChange={(value) => setAttributes({content1: value})}\n value={content1}\n placeholder={__('Input Content', 'vk-blocks')}\n />;\n\n } else if (blockNum === 2) {\n\n richTextH1Save = <RichText\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-2\"\n tagName={'h1'}\n onChange={(value) => setAttributes({heading2: value})}\n value={heading2}\n placeholder={__('Input Title', 'vk-blocks')}\n />;\n richTextPSave = <RichText\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-2\"\n tagName={'p'}\n onChange={(value) => setAttributes({content2: value})}\n value={content2}\n placeholder={__('Input Content', 'vk-blocks')}\n />;\n\n } else if (blockNum === 3) {\n richTextH1Save = <RichText\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-3\"\n tagName={'h1'}\n onChange={(value) => setAttributes({heading3: value})}\n value={heading3}\n placeholder={__('Input Title', 'vk-blocks')}\n />;\n richTextPSave = <RichText\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-3\"\n tagName={'p'}\n onChange={(value) => setAttributes({content3: value})}\n value={content3}\n placeholder={__('Input Content', 'vk-blocks')}\n />;\n }\n\n } else if (for_ === 'save') {\n\n richTextH1Save = <RichText.Content\n className={`vk_prBlocks_item_title vk_prBlocks_item_title-${blockNum}`}\n tagName={'h1'}\n value={heading[blockNumArrIndex]}/>;\n richTextPSave = <RichText.Content\n className={`vk_prBlocks_item_summary vk_prBlocks_item_summary-${blockNum}`}\n tagName={'p'}\n value={content[blockNumArrIndex]}/>;\n }\n\n return (\n <div className=\"vk_prBlocks_item col-sm-4\">\n <a href={url[blockNumArrIndex]}\n target={urlOpenType[blockNumArrIndex] ? '_blank' : '_self'}\n className=\"vk_prBlocks_item_link\"\n rel=\"noopener noreferrer\"\n >\n {drawElement}\n {richTextH1Save}\n {richTextPSave}\n </a>\n </div>\n );\n\n }\n}\n","import React from \"react\";\nimport {ComponentBlock} from \"./component-block\";\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {RadioControl, PanelBody, Button, BaseControl, CheckboxControl, TextControl} = wp.components;\nconst {Fragment} = wp.element;\nconst {RichText, InspectorControls, MediaUpload, ColorPalette} = wp.editor;\n\nfunction set_attributes(number) {\n\n var attributes = {};\n\n for (var i = 1; i <= number; i++) {\n\n attributes['heading' + i] = {\n type: 'string',\n source: 'html',\n selector: 'h3.vk_prBlocks_item_title-' + i,\n };\n attributes['content' + i] = {\n type: 'string',\n source: 'html',\n selector: 'p.vk_prBlocks_item_summary-' + i,\n };\n attributes['url' + i] = {\n type: 'string',\n default: null,\n };\n attributes['urlOpenType' + i] = {\n type: 'Boolean',\n default: false,\n };\n attributes['icon' + i] = {\n type: 'string',\n default: 'fas fa-file',\n };\n attributes['color' + i] = {\n type: 'string',\n default: '#0693e3',\n };\n attributes['bgType' + i] = {\n type: 'string',\n default: '0',\n };\n attributes['insertImage' + i] = {\n type: 'string',\n default: null,\n };\n }\n\n return attributes;\n}\nfunction set_attributes2(number) {\n\n var attributes = {};\n\n for (var i = 1; i <= number; i++) {\n\n attributes['heading' + i] = {\n type: 'string',\n source: 'html',\n selector: 'h1.vk_prBlocks_item_title-' + i,\n };\n attributes['content' + i] = {\n type: 'string',\n source: 'html',\n selector: 'p.vk_prBlocks_item_summary-' + i,\n };\n attributes['url' + i] = {\n type: 'string',\n default: null,\n };\n attributes['urlOpenType' + i] = {\n type: 'Boolean',\n default: false,\n };\n attributes['icon' + i] = {\n type: 'string',\n default: 'fas fa-file',\n };\n attributes['color' + i] = {\n type: 'string',\n default: '#0693e3',\n };\n attributes['bgType' + i] = {\n type: 'string',\n default: '0',\n };\n attributes['insertImage' + i] = {\n type: 'string',\n default: null,\n };\n }\n\n return attributes;\n}\n\nexport const deprecated = [\n {\n attributes: set_attributes(4),\n\n save({attributes}) {\n const {\n heading1,\n heading2,\n heading3,\n content1,\n content2,\n content3,\n url1,\n url2,\n url3,\n urlOpenType1,\n urlOpenType2,\n urlOpenType3,\n icon1,\n icon2,\n icon3,\n color1,\n color2,\n color3,\n bgType1,\n bgType2,\n bgType3,\n insertImage1,\n insertImage2,\n insertImage3\n } = attributes;\n\n return (\n <div className=\"vk_prBlocks row\">\n\n <div className=\"vk_prBlocks_item col-sm-4\">\n <a\n href={url1}\n target={urlOpenType1? '_blank':'_self'}\n className=\"vk_prBlocks_item_link\"\n >\n {(() => {\n\n if (insertImage1) {\n\n return <div className=\"vk_prBlocks_item_image\"\n style={{\n backgroundImage: 'url(' + insertImage1 + ')',\n backgroundRepeat: 'no-repeat 50% center',\n backgroundSize: 'cover'\n }}\n >\n <img\n src={insertImage1}\n alt=''\n />\n </div>\n\n } else {\n\n if ( ! color1 ){\n color1 = '#0693e3';\n bgType1 === '0';\n }\n if (bgType1 === '0') {\n\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{\n backgroundColor: color1,\n border: `1px solid ${color1}`\n }}\n ><i className={`${icon1} vk_prBlocks_item_icon`}\n style={{color: '#fff'}}>\n </i>\n </div>\n } else {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{backgroundColor: 'transparent', border: '1px solid ' + color1}}\n ><i className={`${icon1} vk_prBlocks_item_icon`}\n style={{color: color1}}>\n </i>\n </div>\n }\n }\n })()}\n <RichText.Content\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-1\"\n tagName={'h1'}\n value={heading1}/>\n <RichText.Content\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-1\"\n tagName={'p'}\n value={content1}/>\n </a>\n </div>\n <div className=\"vk_prBlocks_item col-sm-4\">\n <a\n href={url2}\n target={urlOpenType2? '_blank':'_self'}\n className=\"vk_prBlocks_item_link\"\n >\n {(() => {\n\n if (insertImage2) {\n\n return <div className=\"vk_prBlocks_item_image\"\n style={{\n backgroundImage: 'url(' + insertImage2 + ')',\n backgroundRepeat: 'no-repeat 50% center',\n backgroundSize: 'cover'\n }}\n >\n <img\n src={insertImage2}\n alt=''\n />\n </div>\n\n } else {\n if ( ! color2 ){\n color2 = '#0693e3';\n bgType2 === '0';\n }\n if (bgType2 === '0') {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{\n backgroundColor: color2,\n border: `1px solid ${color2}`\n }}\n ><i className={`${icon2} vk_prBlocks_item_icon`}\n style={{color: '#fff'}}>\n </i>\n </div>\n } else {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{backgroundColor: 'transparent', border: '1px solid ' + color2}}\n ><i className={`${icon2} vk_prBlocks_item_icon`}\n style={{color: color2}}>\n </i>\n </div>\n }\n }\n })()}\n <RichText.Content\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-2\"\n tagName={'h1'}\n value={heading2}/>\n <RichText.Content\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-2\"\n tagName={'p'}\n value={content2}/>\n </a>\n </div>\n\n <div className=\"vk_prBlocks_item col-sm-4\">\n <a\n href={url3}\n target={urlOpenType3? '_blank':'_self'}\n className=\"vk_prBlocks_item_link\"\n >\n {(() => {\n\n if (insertImage3) {\n\n return <div className=\"vk_prBlocks_item_image\"\n style={{\n backgroundImage: 'url(' + insertImage3 + ')',\n backgroundRepeat: 'no-repeat 50% center',\n backgroundSize: 'cover'\n }}\n >\n <img\n src={insertImage3}\n alt=''\n />\n </div>\n\n } else {\n if ( ! color3 ){\n color3 = '#0693e3';\n bgType3 === '0';\n }\n if (bgType3 === '0') {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{\n backgroundColor: color3,\n border: `1px solid ${color3}`\n }}\n ><i className={`${icon3} vk_prBlocks_item_icon`}\n style={{color: '#fff'}}>\n </i>\n </div>\n } else {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{backgroundColor: 'transparent', border: '1px solid ' + color3}}\n ><i className={`${icon3} vk_prBlocks_item_icon`}\n style={{color: color3}}>\n </i>\n </div>\n }\n }\n })()}\n <RichText.Content\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-3\"\n tagName={'h1'}\n value={heading3}/>\n <RichText.Content\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-3\"\n tagName={'p'}\n value={content3}/>\n </a>\n </div>\n </div>\n );\n },\n\n\n },\n {\n attributes: set_attributes2(4),\n save({attributes}) {\n\n return (\n <article className=\"vk_prBlocks row\">\n <ComponentBlock\n attributes={attributes}\n blockNum={1}\n for_={'save'}\n />\n <ComponentBlock\n attributes={attributes}\n blockNum={2}\n for_={'save'}\n />\n <ComponentBlock\n attributes={attributes}\n blockNum={3}\n for_={'save'}\n />\n </article>\n );\n\n },\n }\n];\n","import React from 'react';\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {RichText} = wp.editor;\n\nexport class ComponentBlock extends React.Component {\n\n render() {\n\n let setAttributes = this.props.setAttributes;\n let {\n heading1,\n heading2,\n heading3,\n content1,\n content2,\n content3,\n url1,\n url2,\n url3,\n urlOpenType1,\n urlOpenType2,\n urlOpenType3,\n icon1,\n icon2,\n icon3,\n color1,\n color2,\n color3,\n bgType1,\n bgType2,\n bgType3,\n insertImage1,\n insertImage2,\n insertImage3\n } = this.props.attributes;\n let for_ = this.props.for_;\n let blockNum = this.props.blockNum;\n let blockNumArrIndex = this.props.blockNum -1;\n\n const heading = [heading1, heading2, heading3];\n const content = [content1, content2, content3];\n const url = [url1, url2, url3];\n const urlOpenType = [urlOpenType1, urlOpenType2, urlOpenType3];\n const icon = [icon1, icon2, icon3];\n const color = [color1, color2, color3];\n const bgType = [bgType1, bgType2, bgType3];\n const insertImage = [insertImage1, insertImage2, insertImage3];\n\n let richTextH1Save = '';\n let richTextPSave = '';\n\n\n let drawElement = (() => {\n\n if (insertImage[blockNumArrIndex]) {\n\n return <div className=\"vk_prBlocks_item_image\"\n style={{\n backgroundImage: `url(${insertImage[blockNumArrIndex]})`,\n backgroundRepeat: 'no-repeat 50% center',\n backgroundSize: 'cover'\n }}\n >\n <img\n src={insertImage[blockNumArrIndex]}\n alt=''\n />\n </div>\n\n } else {\n\n if (!color[blockNumArrIndex]) {\n color[blockNumArrIndex] = '#0693e3';\n }\n if (bgType[blockNumArrIndex] === '0') {\n\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{\n backgroundColor: color[blockNumArrIndex],\n border: `1px solid ${color[blockNumArrIndex]}`\n }}\n ><i className={`${icon[blockNumArrIndex]} vk_prBlocks_item_icon`}\n style={{color: '#fff'}}>\n </i>\n </div>\n } else {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{backgroundColor: 'transparent', border: '1px solid ' + color[blockNumArrIndex]}}\n ><i className={`${icon[blockNumArrIndex]} vk_prBlocks_item_icon`}\n style={{color: color[blockNumArrIndex]}}>\n </i>\n </div>\n }\n }\n })();\n\n\n //編集画面とフロント側の切り替え\n if (for_ === 'edit') {\n\n if (blockNum === 1) {\n\n richTextH1Save = <RichText\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-1\"\n tagName={'h3'}\n onChange={(value) => setAttributes({heading1: value})}\n value={heading1}\n placeholder={__('Input Title', 'vk-blocks')}\n />;\n richTextPSave = <RichText\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-1\"\n tagName={'p'}\n onChange={(value) => setAttributes({content1: value})}\n value={content1}\n placeholder={__('Input Content', 'vk-blocks')}\n />;\n\n } else if (blockNum === 2) {\n\n richTextH1Save = <RichText\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-2\"\n tagName={'h3'}\n onChange={(value) => setAttributes({heading2: value})}\n value={heading2}\n placeholder={__('Input Title', 'vk-blocks')}\n />;\n richTextPSave = <RichText\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-2\"\n tagName={'p'}\n onChange={(value) => setAttributes({content2: value})}\n value={content2}\n placeholder={__('Input Content', 'vk-blocks')}\n />;\n\n } else if (blockNum === 3) {\n richTextH1Save = <RichText\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-3\"\n tagName={'h3'}\n onChange={(value) => setAttributes({heading3: value})}\n value={heading3}\n placeholder={__('Input Title', 'vk-blocks')}\n />;\n richTextPSave = <RichText\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-3\"\n tagName={'p'}\n onChange={(value) => setAttributes({content3: value})}\n value={content3}\n placeholder={__('Input Content', 'vk-blocks')}\n />;\n }\n\n } else if (for_ === 'save') {\n\n richTextH1Save = <RichText.Content\n className={`vk_prBlocks_item_title vk_prBlocks_item_title-${blockNum}`}\n tagName={'h3'}\n value={heading[blockNumArrIndex]}/>;\n richTextPSave = <RichText.Content\n className={`vk_prBlocks_item_summary vk_prBlocks_item_summary-${blockNum}`}\n tagName={'p'}\n value={content[blockNumArrIndex]}/>;\n }\n\n\n // aタグ判定\n if (url[blockNumArrIndex] && for_ === 'save') {\n return (\n <div className=\"vk_prBlocks_item col-sm-4\">\n <a href={url[blockNumArrIndex]} className=\"vk_prBlocks_item_link\"\n target={urlOpenType[blockNumArrIndex] ? '_blank' : '_self'}\n rel=\"noopener noreferrer\">\n {drawElement}\n {richTextH1Save}\n {richTextPSave}\n </a>\n </div>\n );\n } else {\n return (\n <div className=\"vk_prBlocks_item col-sm-4\">\n {drawElement}\n {richTextH1Save}\n {richTextPSave}\n </div>\n );\n }\n\n\n }\n}\n","/**\n * PR Block block type\n *\n */\nimport React from \"react\";\nimport {deprecated} from \"./deprecated/block\";\nimport {ComponentBlock} from \"./component-block\";\n\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {registerBlockType} = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {RadioControl, PanelBody, Button, BaseControl, CheckboxControl, TextControl} = wp.components;\nconst {Fragment} = wp.element;\nconst {RichText, InspectorControls, MediaUpload, ColorPalette} = wp.editor;\nconst BlockIcon = (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n\t<g>\n\t\t<g>\n\t\t\t<circle cx=\"288\" cy=\"186.2\" r=\"60\"/>\n\t\t\t<rect x=\"213.5\" y=\"278.8\" width=\"149\" height=\"107\"/>\n\t\t</g>\n\t\t<g>\n\t\t\t<circle cx=\"74.5\" cy=\"186.2\" r=\"60\"/>\n\t\t\t<rect y=\"278.8\" width=\"149\" height=\"107\"/>\n\t\t</g>\n\t\t<g>\n\t\t\t<circle cx=\"501.5\" cy=\"186.2\" r=\"60\"/>\n\t\t\t<rect x=\"427\" y=\"278.8\" width=\"149\" height=\"107\"/>\n\t\t</g>\n\t</g>\n\t</svg>\n);\n\nfunction set_attributes(number) {\n\n var attributes = {};\n\n for (let i = 1; i <= number; i++) {\n\n attributes['heading' + i] = {\n type: 'string',\n source: 'html',\n selector: '.vk_prBlocks_item_title-' + i,\n };\n attributes['content' + i] = {\n type: 'string',\n source: 'html',\n selector: 'p.vk_prBlocks_item_summary-' + i,\n };\n attributes['url' + i] = {\n type: 'string',\n default: null,\n };\n attributes['urlOpenType' + i] = {\n type: 'Boolean',\n default: false,\n };\n attributes['icon' + i] = {\n type: 'string',\n default: 'fas fa-file',\n };\n attributes['color' + i] = {\n type: 'string',\n default: '#0693e3',\n };\n attributes['bgType' + i] = {\n type: 'string',\n default: '0',\n };\n attributes['insertImage' + i] = {\n type: 'string',\n default: null,\n };\n }\n\n return attributes;\n}\n\n\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/pr-blocks', {\n // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('PR Blocks (Beta)', 'vk-blocks'), // Block title.\n icon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n category: 'vk-blocks-cat', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n attributes: set_attributes(4),\n\n /**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n edit: function ({attributes, setAttributes, className}) {\n\n const {\n heading1,\n heading2,\n heading3,\n content1,\n content2,\n content3,\n url1,\n url2,\n url3,\n urlOpenType1,\n urlOpenType2,\n urlOpenType3,\n icon1,\n icon2,\n icon3,\n color1,\n color2,\n color3,\n bgType1,\n bgType2,\n bgType3,\n insertImage1,\n insertImage2,\n insertImage3\n } = attributes;\n\n let containerClass;\n if (className) {\n containerClass = `${className} vk_prBlocks row`;\n } else {\n containerClass = `vk_prBlocks row`;\n }\n\n return [\n <Fragment>\n <InspectorControls>\n\n <PanelBody title={__('PR Block1 Setting', 'vk-blocks')}>\n <BaseControl\n label={__('Link URL:', 'vk-blocks')}\n >\n <TextControl\n value={url1}\n onChange={(value) => setAttributes({url1: value})}\n />\n <CheckboxControl\n label={__('Open link new tab.', 'vk-blocks')}\n checked={urlOpenType1}\n onChange={(checked) => setAttributes({urlOpenType1: checked})}\n />\n </BaseControl>\n <BaseControl\n label={__('Icon 1', 'vk-blocks')}\n\n >\n <TextControl\n label={__('Class name of the Font Awesome icon font you want to use:', 'vk-blocks')}\n value={icon1}\n onChange={(value) => setAttributes({icon1: value})}\n placeholder={'fas fa-file'}\n help={<a href={`https://fontawesome.com/icons?d=gallery&m=free`}\n target={`_blank`}>{__('Font Awesome icon list', 'vk-blocks')}</a>}\n />\n <ColorPalette\n value={color1}\n onChange={(value) => {\n if (value) {\n setAttributes({color1: value})\n } else {\n setAttributes({color1: '#0693e3'})\n setAttributes({bgType1: '0'})\n }\n }}\n />\n <RadioControl\n label={__('Icon Background:', 'vk-blocks')}\n selected={bgType1}\n options={[\n {label: __('Solid color', 'vk-blocks'), value: '0'},\n {label: __('No background', 'vk-blocks'), value: '1'},\n ]}\n onChange={(value) => setAttributes({bgType1: value})}\n />\n </BaseControl>\n <BaseControl\n label={__('PR Image 1', 'vk-blocks')}\n help={__('When you have an image. Image is displayed with priority', 'vk-blocks')}\n >\n <MediaUpload\n onSelect={(value) => setAttributes({insertImage1: value.url})}\n type=\"image\"\n value={insertImage1}\n render={({open}) => (\n <Button\n onClick={open}\n className={insertImage1 ? 'image-button' : 'button button-large'}\n >\n {!insertImage1 ? __('Select image', 'vk-blocks') :\n <img className={'icon-image'} src={insertImage1}\n alt={__('Upload image', 'vk-blocks')}/>}\n </Button>\n )}\n />\n </BaseControl>\n </PanelBody>\n <PanelBody title={__('PR Block2 Setting', 'vk-blocks')}>\n <BaseControl\n label={__('Link URL:', 'vk-blocks')}\n >\n <TextControl\n value={url2}\n onChange={(value) => setAttributes({url2: value})}\n />\n <CheckboxControl\n label={__('Open link new tab.', 'vk-blocks')}\n checked={urlOpenType2}\n onChange={(checked) => setAttributes({urlOpenType2: checked})}\n />\n </BaseControl>\n <BaseControl\n label={__('Icon 2', 'vk-blocks')}\n >\n <TextControl\n label={__('Class name of the Font Awesome icon font you want to use:', 'vk-blocks')}\n value={icon2}\n onChange={(value) => setAttributes({icon2: value})}\n placeholder={'fas fa-file'}\n help={<a href={`https://fontawesome.com/icons?d=gallery&m=free`}\n target={`_blank`}>{__('Font Awesome icon list', 'vk-blocks')}</a>}\n />\n <ColorPalette\n value={color2}\n onChange={(value) => {\n if (value) {\n setAttributes({color2: value})\n } else {\n setAttributes({color2: '#0693e3'})\n setAttributes({bgType2: '0'})\n }\n }}\n />\n <RadioControl\n label={__('Icon Background:', 'vk-blocks')}\n selected={bgType2}\n options={[\n {label: __('Solid color', 'vk-blocks'), value: '0'},\n {label: __('No background', 'vk-blocks'), value: '1'},\n ]}\n onChange={(value) => setAttributes({bgType2: value})}\n />\n </BaseControl>\n <BaseControl\n label={__('PR Image 2', 'vk-blocks')}\n help={__('When you have an image. Image is displayed with priority.', 'vk-blocks')}\n >\n <MediaUpload\n onSelect={(value) => setAttributes({insertImage2: value.url})}\n type=\"image\"\n value={insertImage2}\n render={({open}) => (\n <Button\n onClick={open}\n className={insertImage2 ? 'image-button' : 'button button-large'}\n >\n {!insertImage2 ? __('Select image', 'vk-blocks') :\n <img className={'icon-image'} src={insertImage2}\n alt={__('Upload image', 'vk-blocks')}/>}\n </Button>\n )}\n />\n </BaseControl>\n </PanelBody>\n <PanelBody title={__('PR Block3 Setting', 'vk-blocks')}>\n <BaseControl\n label={__('Link URL:', 'vk-blocks')}\n >\n <TextControl\n value={url3}\n onChange={(value) => setAttributes({url3: value})}\n />\n <CheckboxControl\n label={__('Open link new tab.', 'vk-blocks')}\n checked={urlOpenType3}\n onChange={(checked) => setAttributes({urlOpenType3: checked})}\n />\n </BaseControl>\n <BaseControl\n label={__('Icon 3', 'vk-blocks')}\n >\n <TextControl\n label={__('Class name of the Font Awesome icon font you want to use:', 'vk-blocks')}\n value={icon3}\n onChange={(value) => setAttributes({icon3: value})}\n placeholder={'fas fa-file'}\n help={<a href={`https://fontawesome.com/icons?d=gallery&m=free`}\n target={`_blank`}>{__('Font Awesome icon list', 'vk-blocks')}</a>}\n />\n <ColorPalette\n value={color3}\n onChange={(value) => {\n if (value) {\n setAttributes({color3: value})\n } else {\n setAttributes({color3: '#0693e3'})\n setAttributes({bgType3: '0'})\n }\n }}\n />\n <RadioControl\n label={__('Icon Background:', 'vk-blocks')}\n selected={bgType3}\n options={[\n {label: __('Solid color', 'vk-blocks'), value: '0'},\n {label: __('No background', 'vk-blocks'), value: '1'},\n ]}\n onChange={(value) => setAttributes({bgType3: value})}\n />\n </BaseControl>\n <BaseControl\n label={__('PR Image 3', 'vk-blocks')}\n help={__('When you have an image. Image is displayed with priority.', 'vk-blocks')}\n >\n <MediaUpload\n onSelect={(value) => setAttributes({insertImage3: value.url})}\n type=\"image\"\n value={insertImage3}\n render={({open}) => (\n <Button\n onClick={open}\n className={insertImage3 ? 'image-button' : 'button button-large'}\n >\n {!insertImage3 ? __('Select image', 'vk-blocks') :\n <img className={'icon-image'} src={insertImage3}\n alt={__('Upload image', 'vk-blocks')}/>}\n </Button>\n )}\n />\n </BaseControl>\n </PanelBody>\n </InspectorControls>\n <div className={containerClass}>\n <ComponentBlock\n attributes={attributes}\n setAttributes={setAttributes}\n blockNum={1}\n for_={'edit'}\n />\n <ComponentBlock\n attributes={attributes}\n setAttributes={setAttributes}\n blockNum={2}\n for_={'edit'}\n />\n <ComponentBlock\n attributes={attributes}\n setAttributes={setAttributes}\n blockNum={3}\n for_={'edit'}\n />\n </div>\n </Fragment>\n ];\n },\n\n /**\n * The save function defin className }> which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n save({attributes,className}) {\n\n let containerClass;\n if (className) {\n containerClass = `${className} vk_prBlocks row`;\n } else {\n containerClass = `vk_prBlocks row`;\n }\n\n return (\n <div className={containerClass}>\n <ComponentBlock\n attributes={attributes}\n blockNum={1}\n for_={'save'}\n />\n <ComponentBlock\n attributes={attributes}\n blockNum={2}\n for_={'save'}\n />\n <ComponentBlock\n attributes={attributes}\n blockNum={3}\n for_={'save'}\n />\n </div>\n );\n\n },\n\n deprecated: deprecated\n\n});\n","import React from 'react';\n\nexport class Fontawesome extends React.Component {\n\n render() {\n let {\n buttonText,\n fontAwesomeIconBefore,\n fontAwesomeIconAfter,\n } = this.props.attributes;\n\n let iconBefore = '';\n let iconAfter = '';\n\n\n if (fontAwesomeIconBefore) {\n iconBefore = <i className={`${fontAwesomeIconBefore} vk_button_link_before`}></i> ;\n }\n if (fontAwesomeIconAfter) {\n iconAfter = <i className={`${fontAwesomeIconAfter} vk_button_link_after`}></i>;\n }\n\n return (\n\t\t\t\t\t<React.Fragment>\n {iconBefore}\n <span className=\"vk_button_link_txt\">{buttonText}</span>\n {iconAfter}\n </React.Fragment>\n );\n }\n}\n","import React from \"react\";\nimport classNames from 'classnames';\nimport {Fontawesome} from \"./component-fontawesome\";\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {Button} = wp.components;\nconst {MediaUpload} = wp.editor;\nlet {RichText} = wp.editor;\n\nexport class Component extends React.Component {\n\n render() {\n\n const attributes = this.props.attributes;\n const {\n title,\n titleColor,\n content,\n contentColor,\n url,\n buttonType,\n buttonColor,\n buttonColorCustom,\n buttonText,\n buttonTarget,\n Image,\n ImageBorderColor,\n layout,\n fontAwesomeIconBefore,\n fontAwesomeIconAfter\n } = attributes;\n\n let setAttributes = this.props.setAttributes;\n let className = this.props.className;\n let for_ = this.props.for_;\n let containerClass = 'vk_prContent';\n let btnClass = 'vk_button';\n let aClass = 'btn btn-block vk_button_link vk_prContent_colTxt_btn';\n let aStyle = {};\n let imageBorderProperty = '';\n\n if (layout === 'right') {\n containerClass = classNames(className, containerClass, 'vk_prContent-layout-imageRight');\n } else {\n containerClass = classNames(className, containerClass, 'vk_prContent-layout-imageLeft');\n }\n\n if (buttonColorCustom) {\n btnClass = `${btnClass} vk_button-color-custom`;\n aClass = `${aClass} btn-primary`;\n\n // 塗り\n if (buttonType === '0') {\n aStyle = {\n backgroundColor: buttonColorCustom,\n border: `1px solid ${buttonColorCustom}`\n };\n // 塗りなし\n } else if (buttonType === '1') {\n aStyle = {\n backgroundColor: 'transparent',\n border: '1px solid ' + buttonColorCustom,\n color: buttonColorCustom\n };\n }\n\n\t\t\t\t// カスタムカラーじゃない場合\n } else if (!buttonColorCustom) {\n\n // 塗り\n if (buttonType === '0') {\n aClass = `${aClass} btn-${buttonColor}`;\n aStyle = null;\n // 塗りなし\n } else if (buttonType === '1') {\n aClass = `${aClass} btn-outline-${buttonColor}`;\n aStyle = null;\n }\n\n }\n\n //borderColorが指定されなかった場合はボーダーを非表示に\n if (ImageBorderColor === null || ImageBorderColor === undefined) {\n\n imageBorderProperty = 'none';\n\n } else {\n imageBorderProperty = `1px solid ${ImageBorderColor}`;\n }\n\n\n return (\n <div className={containerClass}>\n <div className=\"col-sm-6 vk_prContent_colImg\">\n {for_ === 'edit' ?\n <MediaUpload\n onSelect={(value) => setAttributes({Image: value.sizes.full.url})}\n type=\" image\"\n value={Image}\n render={({open}) => (\n <Button\n onClick={open}\n className={Image ? 'image-button' : 'button button-large'}\n >\n {!Image ? __('Select image', 'vk-blocks') :\n <img\n className={'vk_prContent_colImg_image'}\n src={Image}\n alt={__('Upload image', 'vk-blocks')}\n style={{border: imageBorderProperty}}\n />}\n </Button>\n )}\n />\n :\n !Image ? __('Select image', 'vk-blocks') :\n <img\n className={'vk_prContent_colImg_image'}\n src={Image}\n alt={__('Upload image', 'vk-blocks')}\n style={{border: imageBorderProperty}}\n />\n }\n </div>\n <div className=\"col-sm-6 vk_prContent_colTxt\">\n {\n (() => {\n if (for_ === 'edit') {\n return (\n <React.Fragment>\n <RichText\n tagName=\"h3\"\n className={'vk_prContent_colTxt_title'}\n onChange={(value) => setAttributes({title: value})}\n value={title}\n placeholder={__('Input title.', 'vk-blocks')}\n style={{color: titleColor}}\n />\n < RichText\n tagName=\"p\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={'vk_prContent_colTxt_text'}\n onChange={(value) => setAttributes({content: value})}\n value={content}\n placeholder={__('Input content.', 'vk-blocks')}\n style={{color: contentColor}}\n />\n </React.Fragment>\n );\n } else {\n return (\n <React.Fragment>\n <RichText.Content\n tagName=\"h3\"\n value={title}\n className={'vk_prContent_colTxt_title'}\n style={{color: titleColor}}\n />\n <RichText.Content\n tagName=\"p\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={'vk_prContent_colTxt_text'}\n value={content}\n style={{color: contentColor}}\n />\n </React.Fragment>);\n }\n })()\n }\n {\n\n //ボタンテキストが入力されるとボタンを表示。\n (() => {\n if (buttonText !== '' && buttonText !== undefined ) {\n return (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div className={btnClass}>\n <a href={url}\n className={aClass}\n tar
|
|