Version Description
- [ Add Function ] PHP Version activate
Download this release
Release Info
Developer | kurudrive |
Plugin | VK All in One Expansion Unit |
Version | 5.2.0 |
Comparing to | |
See all releases |
Code changes from version 5.1.1 to 5.2.0
- initialize.php +165 -0
- languages/vkExUnit-ja.mo +0 -0
- languages/vkExUnit-ja.po +57 -36
- languages/vkexunit.pot +66 -39
- package_manager.php +8 -0
- plugins/call_to_action/class.call_to_action.php +1 -1
- plugins/contact_section.php +1 -1
- plugins/google_analytics/google_analytics.php +1 -1
- plugins/icons.php +1 -1
- plugins/insert_ads.php +1 -1
- plugins/meta_description.php +1 -1
- plugins/meta_keyword.php +1 -1
- plugins/other_widget/other_widget.php +1 -1
- plugins/other_widget/widget-button.php +32 -26
- plugins/sitemap_page/sitemap_page.php +1 -1
- plugins/sns/sns.php +1 -1
- plugins/wp_title.php +1 -1
- readme.txt +4 -1
- vkExUnit.php +37 -158
initialize.php
ADDED
@@ -0,0 +1,165 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*-------------------------------------------*/
|
3 |
+
/* Add Parent menu
|
4 |
+
/*-------------------------------------------*/
|
5 |
+
/* Load master setting page
|
6 |
+
/*-------------------------------------------*/
|
7 |
+
/* Load modules
|
8 |
+
/*-------------------------------------------*/
|
9 |
+
/* Add vkExUnit css
|
10 |
+
/*-------------------------------------------*/
|
11 |
+
/* Add vkExUnit js
|
12 |
+
/*-------------------------------------------*/
|
13 |
+
|
14 |
+
/*-------------------------------------------*/
|
15 |
+
/* Add Parent menu
|
16 |
+
/*-------------------------------------------*/
|
17 |
+
add_action( 'admin_menu', 'vkExUnit_setting_menu_parent' );
|
18 |
+
function vkExUnit_setting_menu_parent() {
|
19 |
+
global $menu;
|
20 |
+
$parent_name = vkExUnit_get_little_short_name();
|
21 |
+
$Capability_required = 'activate_plugins';
|
22 |
+
|
23 |
+
$custom_page = add_menu_page(
|
24 |
+
$parent_name, // Name of page
|
25 |
+
$parent_name, // Label in menu
|
26 |
+
$Capability_required,
|
27 |
+
'vkExUnit_setting_page', // ユニークなこのサブメニューページの識別子
|
28 |
+
'vkExUnit_add_setting_page' // メニューページのコンテンツを出力する関数
|
29 |
+
);
|
30 |
+
if ( ! $custom_page ) { return; }
|
31 |
+
}
|
32 |
+
|
33 |
+
/*-------------------------------------------*/
|
34 |
+
/* Load master setting page
|
35 |
+
/*-------------------------------------------*/
|
36 |
+
function vkExUnit_add_setting_page() {
|
37 |
+
require dirname( __FILE__ ) . '/vkExUnit_admin.php';
|
38 |
+
}
|
39 |
+
|
40 |
+
require_once( 'admin_wrapper.php' );
|
41 |
+
|
42 |
+
/*-------------------------------------------*/
|
43 |
+
/* Load modules
|
44 |
+
/*-------------------------------------------*/
|
45 |
+
|
46 |
+
require vkExUnit_get_directory() . '/common_init.php';
|
47 |
+
require vkExUnit_get_directory() . '/package_manager.php';
|
48 |
+
require vkExUnit_get_directory() . '/packages.php';
|
49 |
+
$options = vkExUnit_get_common_options();
|
50 |
+
require vkExUnit_get_directory() . '/common_helpers.php';
|
51 |
+
|
52 |
+
require vkExUnit_get_directory() . '/plugins_admin/dashboard_info_widget.php';
|
53 |
+
|
54 |
+
require vkExUnit_get_directory() . '/plugins_admin/disable_guide.php';
|
55 |
+
|
56 |
+
require vkExUnit_get_directory() . '/plugins/footer_copyright_change.php';
|
57 |
+
require vkExUnit_get_directory() . '/plugins/page_custom_field.php';
|
58 |
+
|
59 |
+
require vkExUnit_get_directory() . '/plugins_admin/vk-admin-config.php';
|
60 |
+
|
61 |
+
vkExUnit_package_include(); // package_manager.php
|
62 |
+
|
63 |
+
/*-------------------------------------------*/
|
64 |
+
/* Add vkExUnit css
|
65 |
+
/*-------------------------------------------*/
|
66 |
+
// Add vkExUnit css
|
67 |
+
add_action( 'wp_enqueue_scripts','vkExUnit_print_css' );
|
68 |
+
function vkExUnit_print_css() {
|
69 |
+
global $vkExUnit_version;
|
70 |
+
$options = vkExUnit_get_common_options();
|
71 |
+
if ( isset( $options['active_bootstrap'] ) && $options['active_bootstrap'] ) {
|
72 |
+
wp_enqueue_style( 'vkExUnit_common_style', plugins_url( '', __FILE__ ).'/css/vkExUnit_style_in_bs.css', array(), $vkExUnit_version, 'all' );
|
73 |
+
} else {
|
74 |
+
wp_enqueue_style( 'vkExUnit_common_style', plugins_url( '', __FILE__ ).'/css/vkExUnit_style.css', array(), $vkExUnit_version, 'all' );
|
75 |
+
}
|
76 |
+
if ( isset( $options['active_fontawesome'] ) && $options['active_fontawesome'] ) {
|
77 |
+
wp_enqueue_style( 'font-awesome', vkExUnit_get_directory_uri() . '/libraries/font-awesome/css/font-awesome.min.css', array(), '4.6.3', 'all' );
|
78 |
+
}
|
79 |
+
}
|
80 |
+
|
81 |
+
function vkExUnit_print_editor_css() {
|
82 |
+
add_editor_style( plugins_url( '', __FILE__ ).'/css/vkExUnit_editor_style.css' );
|
83 |
+
}
|
84 |
+
add_action('after_setup_theme', 'vkExUnit_print_editor_css');
|
85 |
+
|
86 |
+
/*-------------------------------------------*/
|
87 |
+
/* Add vkExUnit js
|
88 |
+
/*-------------------------------------------*/
|
89 |
+
add_action( 'wp_head','vkExUnit_addJs' );
|
90 |
+
function vkExUnit_addJs() {
|
91 |
+
global $vkExUnit_version;
|
92 |
+
$options = vkExUnit_get_common_options();
|
93 |
+
if ( isset( $options['active_bootstrap'] ) && $options['active_bootstrap'] ) {
|
94 |
+
wp_register_script( 'vkExUnit_master-js' , plugins_url( '', __FILE__ ).'/js/all_in_bs.min.js', array( 'jquery' ), $vkExUnit_version );
|
95 |
+
} else {
|
96 |
+
wp_register_script( 'vkExUnit_master-js' , plugins_url( '', __FILE__ ).'/js/all.min.js', array( 'jquery' ), $vkExUnit_version, true );
|
97 |
+
}
|
98 |
+
wp_localize_script( 'vkExUnit_master-js', 'vkExOpt', apply_filters('vkExUnit_localize_options', array('ajax_url'=>admin_url('admin-ajax.php')) ) );
|
99 |
+
wp_enqueue_script( 'vkExUnit_master-js' );
|
100 |
+
}
|
101 |
+
|
102 |
+
/*-------------------------------------------*/
|
103 |
+
/* Print admin js
|
104 |
+
/*-------------------------------------------*/
|
105 |
+
add_action( 'admin_print_scripts-vk-exunit_page_vkExUnit_main_setting', 'vkExUnit_admin_add_js' );
|
106 |
+
function vkExUnit_admin_add_js( $hook_suffix ) {
|
107 |
+
global $vkExUnit_version;
|
108 |
+
wp_enqueue_media();
|
109 |
+
wp_register_script( 'vkExUnit_admin_js', plugins_url( '', __FILE__ ).'/js/vkExUnit_admin.js', array( 'jquery' ), $vkExUnit_version );
|
110 |
+
wp_enqueue_script( 'jquery' );
|
111 |
+
wp_enqueue_script( 'vkExUnit_admin_js' );
|
112 |
+
}
|
113 |
+
|
114 |
+
/*-------------------------------------------*/
|
115 |
+
/* 管理画面_admin_head JavaScriptのデバッグコンソールにhook_suffixの値を出力
|
116 |
+
/*-------------------------------------------*/
|
117 |
+
|
118 |
+
// add_action("admin_head", 'vkExUnit_suffix2console');
|
119 |
+
// function vkExUnit_suffix2console() {
|
120 |
+
// global $hook_suffix;
|
121 |
+
// if (is_user_logged_in()) {
|
122 |
+
// $str = "<script type=\"text/javascript\">console.log('%s')</script>";
|
123 |
+
// printf($str, $hook_suffix);
|
124 |
+
// }
|
125 |
+
// }
|
126 |
+
|
127 |
+
|
128 |
+
if ( function_exists( 'register_activation_hook' ) ) {
|
129 |
+
register_activation_hook( __FILE__ , 'vkExUnit_install_function' );
|
130 |
+
}
|
131 |
+
function vkExUnit_install_function() {
|
132 |
+
$opt = get_option( 'vkExUnit_common_options' );
|
133 |
+
if ( ! $opt ) {
|
134 |
+
add_option( 'vkExUnit_common_options', vkExUnit_get_common_options_default() );
|
135 |
+
}
|
136 |
+
}
|
137 |
+
|
138 |
+
/*
|
139 |
+
/* Lightning Charm 1.2.0 での表示崩れ回避用
|
140 |
+
/* Lightning Charm 1.4.0 以降になったら削除
|
141 |
+
*/
|
142 |
+
add_action( 'wp_head', 'ltg_charm_1_2_fix_function',2 );
|
143 |
+
function ltg_charm_1_2_fix_function(){
|
144 |
+
$theme_opt = wp_get_theme( get_template() );
|
145 |
+
$skin = get_option('lightning_design_skin');
|
146 |
+
$theme = $theme_opt->Name;
|
147 |
+
|
148 |
+
if ( $skin == 'charm' && $theme == 'Lightning' ){
|
149 |
+
|
150 |
+
$charm_custom_css = "
|
151 |
+
.veu_postList .postList .postList_item:first-child { border-top:none; }
|
152 |
+
.mainSection .veu_postList.pt_0 .postList.postList_miniThumb { padding:0;margin-left:0;margin-right:0; }
|
153 |
+
.mainSection .veu_postList.pt_0 .postList.postList_miniThumb postList_body { display:table-cell; }
|
154 |
+
@media (max-width: 991px) {
|
155 |
+
.mainSection .veu_postList.pt_0 .postList.postList_miniThumb .postList_thumbnail { float:none; }
|
156 |
+
}
|
157 |
+
@media (min-width: 992px) {
|
158 |
+
.mainSection .veu_postList.pt_0 .postList_item .postList_thumbnail { width:50%;margin-left:0;margin-right:0;padding-right:30px; }
|
159 |
+
.mainSection .veu_postList.pt_0 .postList_item.even .postList_thumbnail { margin-right:0; }
|
160 |
+
}
|
161 |
+
";
|
162 |
+
wp_add_inline_style( 'lightning-design-style', $charm_custom_css );
|
163 |
+
|
164 |
+
} // if ( $skin == 'charm' && $theme == 'Lightning' ){
|
165 |
+
}
|
languages/vkExUnit-ja.mo
CHANGED
Binary file
|
languages/vkExUnit-ja.po
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
-
"POT-Creation-Date: 2016-12-
|
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"
|
@@ -25,10 +25,6 @@ msgid "Activated Packages is noting. please activate some package."
|
|
25 |
msgstr ""
|
26 |
"有効化されているパッケージがありません。何かの機能を有効化してください。"
|
27 |
|
28 |
-
#: admin_wrapper.php:94
|
29 |
-
msgid "Settings"
|
30 |
-
msgstr "設定"
|
31 |
-
|
32 |
#: common_helpers.php:109
|
33 |
#, php-format
|
34 |
msgid "Author: %s"
|
@@ -405,14 +401,6 @@ msgstr "カスタム投稿タイプマネージャー"
|
|
405 |
msgid "Add custom post types and custom taxonomies."
|
406 |
msgstr "カスタム投稿タイプやカスタム分類を追加します。"
|
407 |
|
408 |
-
#: plugins/admin_bar.php:28
|
409 |
-
msgid "Active Setting"
|
410 |
-
msgstr "有効化設定"
|
411 |
-
|
412 |
-
#: plugins/admin_bar.php:36
|
413 |
-
msgid "Main Setting"
|
414 |
-
msgstr "メイン設定"
|
415 |
-
|
416 |
#: plugins/auto_eyecatch.php:40
|
417 |
msgid "Automatic EyeCatch"
|
418 |
msgstr "アイキャッチ自動挿入"
|
@@ -1041,92 +1029,92 @@ msgstr "画像を選択"
|
|
1041 |
msgid "Alternative text"
|
1042 |
msgstr "代替テキスト(alt)"
|
1043 |
|
1044 |
-
#: plugins/other_widget/widget-button.php:
|
1045 |
msgid "Button"
|
1046 |
msgstr "ボタン"
|
1047 |
|
1048 |
-
#: plugins/other_widget/widget-button.php:
|
1049 |
msgid "You can set buttons for arbitrary text."
|
1050 |
msgstr "任意のテキストのボタンを設定できます。"
|
1051 |
|
1052 |
-
#: plugins/other_widget/widget-button.php:
|
1053 |
msgid "Main text(Required):"
|
1054 |
msgstr "ボタンテキスト(必須):"
|
1055 |
|
1056 |
-
#: plugins/other_widget/widget-button.php:
|
1057 |
msgid "Class name of the icon font"
|
1058 |
msgstr "使用したいアイコンフォント"
|
1059 |
|
1060 |
-
#: plugins/other_widget/widget-button.php:
|
1061 |
#: plugins/other_widget/widget-pr-blocks.php:96
|
1062 |
msgid "To choose your favorite icon, and enter the class."
|
1063 |
msgstr "アイコンフォントを選んでそのクラス名を入力してください。"
|
1064 |
|
1065 |
-
#: plugins/other_widget/widget-button.php:
|
1066 |
msgid "Before :"
|
1067 |
msgstr "文字の前 :"
|
1068 |
|
1069 |
-
#: plugins/other_widget/widget-button.php:
|
1070 |
msgid "After :"
|
1071 |
msgstr "文字の後 :"
|
1072 |
|
1073 |
-
#: plugins/other_widget/widget-button.php:
|
1074 |
msgid " ex:fa-arrow-circle-o-right"
|
1075 |
msgstr "例: fa-arrow-circle-o-right"
|
1076 |
|
1077 |
-
#: plugins/other_widget/widget-button.php:
|
1078 |
msgid "Sub text:"
|
1079 |
msgstr "サブテキスト:"
|
1080 |
|
1081 |
-
#: plugins/other_widget/widget-button.php:
|
1082 |
msgid "Link URL(Required):"
|
1083 |
msgstr "リンク先ページのURL(必須):"
|
1084 |
|
1085 |
-
#: plugins/other_widget/widget-button.php:
|
1086 |
msgid "Open with new tab"
|
1087 |
msgstr "リンクを別ウィンドウで開く"
|
1088 |
|
1089 |
-
#: plugins/other_widget/widget-button.php:
|
1090 |
msgid "Size"
|
1091 |
msgstr "サイズ"
|
1092 |
|
1093 |
-
#: plugins/other_widget/widget-button.php:
|
1094 |
msgid "Small"
|
1095 |
msgstr "小"
|
1096 |
|
1097 |
-
#: plugins/other_widget/widget-button.php:
|
1098 |
msgid "Medium"
|
1099 |
msgstr "中"
|
1100 |
|
1101 |
-
#: plugins/other_widget/widget-button.php:
|
1102 |
msgid "Large"
|
1103 |
msgstr "大"
|
1104 |
|
1105 |
-
#: plugins/other_widget/widget-button.php:
|
1106 |
msgid "Button color:"
|
1107 |
msgstr "ボタンの色:"
|
1108 |
|
1109 |
-
#: plugins/other_widget/widget-button.php:
|
1110 |
msgid "Key Color(.primary)"
|
1111 |
msgstr "キーカラー(.primary)"
|
1112 |
|
1113 |
-
#: plugins/other_widget/widget-button.php:
|
1114 |
msgid "No paint(.default)"
|
1115 |
msgstr "塗りなし(.default)"
|
1116 |
|
1117 |
-
#: plugins/other_widget/widget-button.php:
|
1118 |
msgid "Light green(.success)"
|
1119 |
msgstr "明るい緑(.success)"
|
1120 |
|
1121 |
-
#: plugins/other_widget/widget-button.php:
|
1122 |
msgid "Light blue(.info)"
|
1123 |
msgstr "空色(.info)"
|
1124 |
|
1125 |
-
#: plugins/other_widget/widget-button.php:
|
1126 |
msgid "Orange(.warning)"
|
1127 |
msgstr "オレンジ(.warning)"
|
1128 |
|
1129 |
-
#: plugins/other_widget/widget-button.php:
|
1130 |
msgid "Red(.danger)"
|
1131 |
msgstr "赤(.danger)"
|
1132 |
|
@@ -1141,7 +1129,7 @@ msgstr "表示しているページの先祖階層からの子ページリスト
|
|
1141 |
|
1142 |
#: plugins/other_widget/widget-new-posts.php:11
|
1143 |
#: plugins/other_widget/widget-new-posts.php:31
|
1144 |
-
#: plugins/other_widget/widget-new-posts.php:
|
1145 |
msgid "Recent Posts"
|
1146 |
msgstr "最新記事"
|
1147 |
|
@@ -1733,6 +1721,14 @@ msgstr ""
|
|
1733 |
"しかし、上記の形式では長くなりすぎる事があります。その場合は下記の入力欄に入"
|
1734 |
"力すれば、その内容が反映されます。"
|
1735 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1736 |
#: plugins_admin/dashboard_info_widget.php:18
|
1737 |
msgid "News from VK All in One Expansion Unit"
|
1738 |
msgstr "VK All in One Expansion Unit からのお知らせ"
|
@@ -1745,6 +1741,25 @@ msgstr "編集ガイド"
|
|
1745 |
msgid "Sorry, there is no post"
|
1746 |
msgstr "お知らせはありません。"
|
1747 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1748 |
#: vkExUnit_admin.php:3
|
1749 |
msgid "Enable setting"
|
1750 |
msgstr "有効化設定"
|
@@ -1782,6 +1797,12 @@ msgstr "プラグイン設定オプション"
|
|
1782 |
msgid "Delete myOptions when deactivate me."
|
1783 |
msgstr "プラグインを無効化する際にDBに保存したオプション項目を削除します。"
|
1784 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1785 |
#, fuzzy
|
1786 |
#~ msgid "Color:"
|
1787 |
#~ msgstr "色"
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: \n"
|
4 |
+
"POT-Creation-Date: 2016-12-28 03:27+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"
|
25 |
msgstr ""
|
26 |
"有効化されているパッケージがありません。何かの機能を有効化してください。"
|
27 |
|
|
|
|
|
|
|
|
|
28 |
#: common_helpers.php:109
|
29 |
#, php-format
|
30 |
msgid "Author: %s"
|
401 |
msgid "Add custom post types and custom taxonomies."
|
402 |
msgstr "カスタム投稿タイプやカスタム分類を追加します。"
|
403 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
404 |
#: plugins/auto_eyecatch.php:40
|
405 |
msgid "Automatic EyeCatch"
|
406 |
msgstr "アイキャッチ自動挿入"
|
1029 |
msgid "Alternative text"
|
1030 |
msgstr "代替テキスト(alt)"
|
1031 |
|
1032 |
+
#: plugins/other_widget/widget-button.php:35
|
1033 |
msgid "Button"
|
1034 |
msgstr "ボタン"
|
1035 |
|
1036 |
+
#: plugins/other_widget/widget-button.php:40
|
1037 |
msgid "You can set buttons for arbitrary text."
|
1038 |
msgstr "任意のテキストのボタンを設定できます。"
|
1039 |
|
1040 |
+
#: plugins/other_widget/widget-button.php:98
|
1041 |
msgid "Main text(Required):"
|
1042 |
msgstr "ボタンテキスト(必須):"
|
1043 |
|
1044 |
+
#: plugins/other_widget/widget-button.php:103
|
1045 |
msgid "Class name of the icon font"
|
1046 |
msgstr "使用したいアイコンフォント"
|
1047 |
|
1048 |
+
#: plugins/other_widget/widget-button.php:104
|
1049 |
#: plugins/other_widget/widget-pr-blocks.php:96
|
1050 |
msgid "To choose your favorite icon, and enter the class."
|
1051 |
msgstr "アイコンフォントを選んでそのクラス名を入力してください。"
|
1052 |
|
1053 |
+
#: plugins/other_widget/widget-button.php:105
|
1054 |
msgid "Before :"
|
1055 |
msgstr "文字の前 :"
|
1056 |
|
1057 |
+
#: plugins/other_widget/widget-button.php:107
|
1058 |
msgid "After :"
|
1059 |
msgstr "文字の後 :"
|
1060 |
|
1061 |
+
#: plugins/other_widget/widget-button.php:109
|
1062 |
msgid " ex:fa-arrow-circle-o-right"
|
1063 |
msgstr "例: fa-arrow-circle-o-right"
|
1064 |
|
1065 |
+
#: plugins/other_widget/widget-button.php:113
|
1066 |
msgid "Sub text:"
|
1067 |
msgstr "サブテキスト:"
|
1068 |
|
1069 |
+
#: plugins/other_widget/widget-button.php:117
|
1070 |
msgid "Link URL(Required):"
|
1071 |
msgstr "リンク先ページのURL(必須):"
|
1072 |
|
1073 |
+
#: plugins/other_widget/widget-button.php:122
|
1074 |
msgid "Open with new tab"
|
1075 |
msgstr "リンクを別ウィンドウで開く"
|
1076 |
|
1077 |
+
#: plugins/other_widget/widget-button.php:125
|
1078 |
msgid "Size"
|
1079 |
msgstr "サイズ"
|
1080 |
|
1081 |
+
#: plugins/other_widget/widget-button.php:127
|
1082 |
msgid "Small"
|
1083 |
msgstr "小"
|
1084 |
|
1085 |
+
#: plugins/other_widget/widget-button.php:128
|
1086 |
msgid "Medium"
|
1087 |
msgstr "中"
|
1088 |
|
1089 |
+
#: plugins/other_widget/widget-button.php:129
|
1090 |
msgid "Large"
|
1091 |
msgstr "大"
|
1092 |
|
1093 |
+
#: plugins/other_widget/widget-button.php:133
|
1094 |
msgid "Button color:"
|
1095 |
msgstr "ボタンの色:"
|
1096 |
|
1097 |
+
#: plugins/other_widget/widget-button.php:162
|
1098 |
msgid "Key Color(.primary)"
|
1099 |
msgstr "キーカラー(.primary)"
|
1100 |
|
1101 |
+
#: plugins/other_widget/widget-button.php:163
|
1102 |
msgid "No paint(.default)"
|
1103 |
msgstr "塗りなし(.default)"
|
1104 |
|
1105 |
+
#: plugins/other_widget/widget-button.php:164
|
1106 |
msgid "Light green(.success)"
|
1107 |
msgstr "明るい緑(.success)"
|
1108 |
|
1109 |
+
#: plugins/other_widget/widget-button.php:165
|
1110 |
msgid "Light blue(.info)"
|
1111 |
msgstr "空色(.info)"
|
1112 |
|
1113 |
+
#: plugins/other_widget/widget-button.php:166
|
1114 |
msgid "Orange(.warning)"
|
1115 |
msgstr "オレンジ(.warning)"
|
1116 |
|
1117 |
+
#: plugins/other_widget/widget-button.php:167
|
1118 |
msgid "Red(.danger)"
|
1119 |
msgstr "赤(.danger)"
|
1120 |
|
1129 |
|
1130 |
#: plugins/other_widget/widget-new-posts.php:11
|
1131 |
#: plugins/other_widget/widget-new-posts.php:31
|
1132 |
+
#: plugins/other_widget/widget-new-posts.php:163
|
1133 |
msgid "Recent Posts"
|
1134 |
msgstr "最新記事"
|
1135 |
|
1721 |
"しかし、上記の形式では長くなりすぎる事があります。その場合は下記の入力欄に入"
|
1722 |
"力すれば、その内容が反映されます。"
|
1723 |
|
1724 |
+
#: plugins_admin/admin_bar.php:28
|
1725 |
+
msgid "Active Setting"
|
1726 |
+
msgstr "有効化設定"
|
1727 |
+
|
1728 |
+
#: plugins_admin/admin_bar.php:36
|
1729 |
+
msgid "Main Setting"
|
1730 |
+
msgstr "メイン設定"
|
1731 |
+
|
1732 |
#: plugins_admin/dashboard_info_widget.php:18
|
1733 |
msgid "News from VK All in One Expansion Unit"
|
1734 |
msgstr "VK All in One Expansion Unit からのお知らせ"
|
1741 |
msgid "Sorry, there is no post"
|
1742 |
msgstr "お知らせはありません。"
|
1743 |
|
1744 |
+
#: vkExUnit.php:77
|
1745 |
+
#, php-format
|
1746 |
+
msgid "The current PHP version(%s) is too old, so VK ExUnit will not work."
|
1747 |
+
msgstr "使用中のPHPのバージョン(%s) が古すぎるので VK ExUnit は動作しません。"
|
1748 |
+
|
1749 |
+
#: vkExUnit.php:79
|
1750 |
+
msgid "VK ExUnit supports PHP5.6 or later."
|
1751 |
+
msgstr "VKExUnit がサポートしているPHPのバージョンは5.6以降です"
|
1752 |
+
|
1753 |
+
#: vkExUnit.php:91
|
1754 |
+
#, php-format
|
1755 |
+
msgid "Current PHP Version(%s) is old."
|
1756 |
+
msgstr "使用中のPHPのバージョン(%s) が古いです。"
|
1757 |
+
|
1758 |
+
#: vkExUnit.php:92
|
1759 |
+
#, php-format
|
1760 |
+
msgid "%s supports PHP5.6 or later."
|
1761 |
+
msgstr "%s がサポートしているPHPのバージョンは5.6以降です。"
|
1762 |
+
|
1763 |
#: vkExUnit_admin.php:3
|
1764 |
msgid "Enable setting"
|
1765 |
msgstr "有効化設定"
|
1797 |
msgid "Delete myOptions when deactivate me."
|
1798 |
msgstr "プラグインを無効化する際にDBに保存したオプション項目を削除します。"
|
1799 |
|
1800 |
+
#~ msgid "Current PHP Version is old."
|
1801 |
+
#~ msgstr "使用中のPHPのバージョンが古いです。"
|
1802 |
+
|
1803 |
+
#~ msgid "Settings"
|
1804 |
+
#~ msgstr "設定"
|
1805 |
+
|
1806 |
#, fuzzy
|
1807 |
#~ msgid "Color:"
|
1808 |
#~ msgstr "色"
|
languages/vkexunit.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: \n"
|
5 |
-
"POT-Creation-Date: 2016-12-
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
|
8 |
"Language-Team: Vektor,Inc. <info@vektor-inc.co.jp>\n"
|
@@ -23,10 +23,6 @@ msgstr ""
|
|
23 |
msgid "Activated Packages is noting. please activate some package."
|
24 |
msgstr ""
|
25 |
|
26 |
-
#: admin_wrapper.php:89
|
27 |
-
msgid "Settings"
|
28 |
-
msgstr ""
|
29 |
-
|
30 |
#: common_helpers.php:109
|
31 |
#, php-format
|
32 |
msgid "Author: %s"
|
@@ -136,7 +132,7 @@ msgstr ""
|
|
136 |
|
137 |
#: packages.php:105 packages.php:123 packages.php:162 packages.php:180
|
138 |
#: packages.php:210 packages.php:228 packages.php:270 packages.php:306
|
139 |
-
#: packages.php:329 packages.php:
|
140 |
msgid "Setting"
|
141 |
msgstr ""
|
142 |
|
@@ -352,11 +348,19 @@ msgstr ""
|
|
352 |
msgid "Add TinyMCE Editor to style tags."
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: packages.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
356 |
msgid "Post Type Manager"
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: packages.php:
|
360 |
msgid "Add custom post types and custom taxonomies."
|
361 |
msgstr ""
|
362 |
|
@@ -900,7 +904,7 @@ msgid "Link URL:"
|
|
900 |
msgstr ""
|
901 |
|
902 |
#: plugins/other_widget/widget-3pr-area.php:103
|
903 |
-
#: plugins/other_widget/widget-banner.php:
|
904 |
#: plugins/other_widget/widget-pr-blocks.php:145
|
905 |
msgid "Open link new tab."
|
906 |
msgstr ""
|
@@ -942,96 +946,100 @@ msgid ""
|
|
942 |
"destinations."
|
943 |
msgstr ""
|
944 |
|
945 |
-
#: plugins/other_widget/widget-banner.php:
|
946 |
msgid "Set image"
|
947 |
msgstr ""
|
948 |
|
949 |
-
#: plugins/other_widget/widget-
|
|
|
|
|
|
|
|
|
950 |
msgid "Button"
|
951 |
msgstr ""
|
952 |
|
953 |
-
#: plugins/other_widget/widget-button.php:
|
954 |
msgid "You can set buttons for arbitrary text."
|
955 |
msgstr ""
|
956 |
|
957 |
-
#: plugins/other_widget/widget-button.php:
|
958 |
msgid "Main text(Required):"
|
959 |
msgstr ""
|
960 |
|
961 |
-
#: plugins/other_widget/widget-button.php:
|
962 |
msgid "Class name of the icon font"
|
963 |
msgstr ""
|
964 |
|
965 |
-
#: plugins/other_widget/widget-button.php:
|
966 |
#: plugins/other_widget/widget-pr-blocks.php:96
|
967 |
msgid "To choose your favorite icon, and enter the class."
|
968 |
msgstr ""
|
969 |
|
970 |
-
#: plugins/other_widget/widget-button.php:
|
971 |
msgid "Before :"
|
972 |
msgstr ""
|
973 |
|
974 |
-
#: plugins/other_widget/widget-button.php:
|
975 |
msgid "After :"
|
976 |
msgstr ""
|
977 |
|
978 |
-
#: plugins/other_widget/widget-button.php:
|
979 |
msgid " ex:fa-arrow-circle-o-right"
|
980 |
msgstr ""
|
981 |
|
982 |
-
#: plugins/other_widget/widget-button.php:
|
983 |
msgid "Sub text:"
|
984 |
msgstr ""
|
985 |
|
986 |
-
#: plugins/other_widget/widget-button.php:
|
987 |
msgid "Link URL(Required):"
|
988 |
msgstr ""
|
989 |
|
990 |
-
#: plugins/other_widget/widget-button.php:
|
991 |
msgid "Open with new tab"
|
992 |
msgstr ""
|
993 |
|
994 |
-
#: plugins/other_widget/widget-button.php:
|
995 |
msgid "Size"
|
996 |
msgstr ""
|
997 |
|
998 |
-
#: plugins/other_widget/widget-button.php:
|
999 |
msgid "Small"
|
1000 |
msgstr ""
|
1001 |
|
1002 |
-
#: plugins/other_widget/widget-button.php:
|
1003 |
msgid "Medium"
|
1004 |
msgstr ""
|
1005 |
|
1006 |
-
#: plugins/other_widget/widget-button.php:
|
1007 |
msgid "Large"
|
1008 |
msgstr ""
|
1009 |
|
1010 |
-
#: plugins/other_widget/widget-button.php:
|
1011 |
msgid "Button color:"
|
1012 |
msgstr ""
|
1013 |
|
1014 |
-
#: plugins/other_widget/widget-button.php:
|
1015 |
msgid "Key Color(.primary)"
|
1016 |
msgstr ""
|
1017 |
|
1018 |
-
#: plugins/other_widget/widget-button.php:
|
1019 |
msgid "No paint(.default)"
|
1020 |
msgstr ""
|
1021 |
|
1022 |
-
#: plugins/other_widget/widget-button.php:
|
1023 |
msgid "Light green(.success)"
|
1024 |
msgstr ""
|
1025 |
|
1026 |
-
#: plugins/other_widget/widget-button.php:
|
1027 |
msgid "Light blue(.info)"
|
1028 |
msgstr ""
|
1029 |
|
1030 |
-
#: plugins/other_widget/widget-button.php:
|
1031 |
msgid "Orange(.warning)"
|
1032 |
msgstr ""
|
1033 |
|
1034 |
-
#: plugins/other_widget/widget-button.php:
|
1035 |
msgid "Red(.danger)"
|
1036 |
msgstr ""
|
1037 |
|
@@ -1046,7 +1054,7 @@ msgstr ""
|
|
1046 |
|
1047 |
#: plugins/other_widget/widget-new-posts.php:11
|
1048 |
#: plugins/other_widget/widget-new-posts.php:31
|
1049 |
-
#: plugins/other_widget/widget-new-posts.php:
|
1050 |
msgid "Recent Posts"
|
1051 |
msgstr ""
|
1052 |
|
@@ -1609,15 +1617,11 @@ msgid ""
|
|
1609 |
"field of the following, its contents will be reflected."
|
1610 |
msgstr ""
|
1611 |
|
1612 |
-
#: plugins_admin/admin_bar.php:
|
1613 |
-
msgid "Edit Guide"
|
1614 |
-
msgstr ""
|
1615 |
-
|
1616 |
-
#: plugins_admin/admin_bar.php:57
|
1617 |
msgid "Active Setting"
|
1618 |
msgstr ""
|
1619 |
|
1620 |
-
#: plugins_admin/admin_bar.php:
|
1621 |
msgid "Main Setting"
|
1622 |
msgstr ""
|
1623 |
|
@@ -1625,10 +1629,33 @@ msgstr ""
|
|
1625 |
msgid "News from VK All in One Expansion Unit"
|
1626 |
msgstr ""
|
1627 |
|
|
|
|
|
|
|
|
|
1628 |
#: plugins_admin/vk-admin/class.vk-admin.php:98
|
1629 |
msgid "Sorry, there is no post"
|
1630 |
msgstr ""
|
1631 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1632 |
#: vkExUnit_admin.php:3
|
1633 |
msgid "Enable setting"
|
1634 |
msgstr ""
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: \n"
|
5 |
+
"POT-Creation-Date: 2016-12-28 03:35+0900\n"
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
|
8 |
"Language-Team: Vektor,Inc. <info@vektor-inc.co.jp>\n"
|
23 |
msgid "Activated Packages is noting. please activate some package."
|
24 |
msgstr ""
|
25 |
|
|
|
|
|
|
|
|
|
26 |
#: common_helpers.php:109
|
27 |
#, php-format
|
28 |
msgid "Author: %s"
|
132 |
|
133 |
#: packages.php:105 packages.php:123 packages.php:162 packages.php:180
|
134 |
#: packages.php:210 packages.php:228 packages.php:270 packages.php:306
|
135 |
+
#: packages.php:329 packages.php:410
|
136 |
msgid "Setting"
|
137 |
msgstr ""
|
138 |
|
348 |
msgid "Add TinyMCE Editor to style tags."
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: packages.php:395
|
352 |
+
msgid "Admin bar manu"
|
353 |
+
msgstr ""
|
354 |
+
|
355 |
+
#: packages.php:396
|
356 |
+
msgid "Add ExUnit menu to admin bar."
|
357 |
+
msgstr ""
|
358 |
+
|
359 |
+
#: packages.php:406
|
360 |
msgid "Post Type Manager"
|
361 |
msgstr ""
|
362 |
|
363 |
+
#: packages.php:407
|
364 |
msgid "Add custom post types and custom taxonomies."
|
365 |
msgstr ""
|
366 |
|
904 |
msgstr ""
|
905 |
|
906 |
#: plugins/other_widget/widget-3pr-area.php:103
|
907 |
+
#: plugins/other_widget/widget-banner.php:87
|
908 |
#: plugins/other_widget/widget-pr-blocks.php:145
|
909 |
msgid "Open link new tab."
|
910 |
msgstr ""
|
946 |
"destinations."
|
947 |
msgstr ""
|
948 |
|
949 |
+
#: plugins/other_widget/widget-banner.php:83
|
950 |
msgid "Set image"
|
951 |
msgstr ""
|
952 |
|
953 |
+
#: plugins/other_widget/widget-banner.php:88
|
954 |
+
msgid "Alternative text"
|
955 |
+
msgstr ""
|
956 |
+
|
957 |
+
#: plugins/other_widget/widget-button.php:35
|
958 |
msgid "Button"
|
959 |
msgstr ""
|
960 |
|
961 |
+
#: plugins/other_widget/widget-button.php:40
|
962 |
msgid "You can set buttons for arbitrary text."
|
963 |
msgstr ""
|
964 |
|
965 |
+
#: plugins/other_widget/widget-button.php:98
|
966 |
msgid "Main text(Required):"
|
967 |
msgstr ""
|
968 |
|
969 |
+
#: plugins/other_widget/widget-button.php:103
|
970 |
msgid "Class name of the icon font"
|
971 |
msgstr ""
|
972 |
|
973 |
+
#: plugins/other_widget/widget-button.php:104
|
974 |
#: plugins/other_widget/widget-pr-blocks.php:96
|
975 |
msgid "To choose your favorite icon, and enter the class."
|
976 |
msgstr ""
|
977 |
|
978 |
+
#: plugins/other_widget/widget-button.php:105
|
979 |
msgid "Before :"
|
980 |
msgstr ""
|
981 |
|
982 |
+
#: plugins/other_widget/widget-button.php:107
|
983 |
msgid "After :"
|
984 |
msgstr ""
|
985 |
|
986 |
+
#: plugins/other_widget/widget-button.php:109
|
987 |
msgid " ex:fa-arrow-circle-o-right"
|
988 |
msgstr ""
|
989 |
|
990 |
+
#: plugins/other_widget/widget-button.php:113
|
991 |
msgid "Sub text:"
|
992 |
msgstr ""
|
993 |
|
994 |
+
#: plugins/other_widget/widget-button.php:117
|
995 |
msgid "Link URL(Required):"
|
996 |
msgstr ""
|
997 |
|
998 |
+
#: plugins/other_widget/widget-button.php:122
|
999 |
msgid "Open with new tab"
|
1000 |
msgstr ""
|
1001 |
|
1002 |
+
#: plugins/other_widget/widget-button.php:125
|
1003 |
msgid "Size"
|
1004 |
msgstr ""
|
1005 |
|
1006 |
+
#: plugins/other_widget/widget-button.php:127
|
1007 |
msgid "Small"
|
1008 |
msgstr ""
|
1009 |
|
1010 |
+
#: plugins/other_widget/widget-button.php:128
|
1011 |
msgid "Medium"
|
1012 |
msgstr ""
|
1013 |
|
1014 |
+
#: plugins/other_widget/widget-button.php:129
|
1015 |
msgid "Large"
|
1016 |
msgstr ""
|
1017 |
|
1018 |
+
#: plugins/other_widget/widget-button.php:133
|
1019 |
msgid "Button color:"
|
1020 |
msgstr ""
|
1021 |
|
1022 |
+
#: plugins/other_widget/widget-button.php:162
|
1023 |
msgid "Key Color(.primary)"
|
1024 |
msgstr ""
|
1025 |
|
1026 |
+
#: plugins/other_widget/widget-button.php:163
|
1027 |
msgid "No paint(.default)"
|
1028 |
msgstr ""
|
1029 |
|
1030 |
+
#: plugins/other_widget/widget-button.php:164
|
1031 |
msgid "Light green(.success)"
|
1032 |
msgstr ""
|
1033 |
|
1034 |
+
#: plugins/other_widget/widget-button.php:165
|
1035 |
msgid "Light blue(.info)"
|
1036 |
msgstr ""
|
1037 |
|
1038 |
+
#: plugins/other_widget/widget-button.php:166
|
1039 |
msgid "Orange(.warning)"
|
1040 |
msgstr ""
|
1041 |
|
1042 |
+
#: plugins/other_widget/widget-button.php:167
|
1043 |
msgid "Red(.danger)"
|
1044 |
msgstr ""
|
1045 |
|
1054 |
|
1055 |
#: plugins/other_widget/widget-new-posts.php:11
|
1056 |
#: plugins/other_widget/widget-new-posts.php:31
|
1057 |
+
#: plugins/other_widget/widget-new-posts.php:163
|
1058 |
msgid "Recent Posts"
|
1059 |
msgstr ""
|
1060 |
|
1617 |
"field of the following, its contents will be reflected."
|
1618 |
msgstr ""
|
1619 |
|
1620 |
+
#: plugins_admin/admin_bar.php:28
|
|
|
|
|
|
|
|
|
1621 |
msgid "Active Setting"
|
1622 |
msgstr ""
|
1623 |
|
1624 |
+
#: plugins_admin/admin_bar.php:36
|
1625 |
msgid "Main Setting"
|
1626 |
msgstr ""
|
1627 |
|
1629 |
msgid "News from VK All in One Expansion Unit"
|
1630 |
msgstr ""
|
1631 |
|
1632 |
+
#: plugins_admin/disable_guide.php:17
|
1633 |
+
msgid "Edit Guide"
|
1634 |
+
msgstr ""
|
1635 |
+
|
1636 |
#: plugins_admin/vk-admin/class.vk-admin.php:98
|
1637 |
msgid "Sorry, there is no post"
|
1638 |
msgstr ""
|
1639 |
|
1640 |
+
#: vkExUnit.php:77
|
1641 |
+
#, php-format
|
1642 |
+
msgid "The current PHP version(%s) is too old, so VK ExUnit will not work."
|
1643 |
+
msgstr ""
|
1644 |
+
|
1645 |
+
#: vkExUnit.php:79
|
1646 |
+
msgid "VK ExUnit supports PHP5.6 or later."
|
1647 |
+
msgstr ""
|
1648 |
+
|
1649 |
+
#: vkExUnit.php:91
|
1650 |
+
#, php-format
|
1651 |
+
msgid "Current PHP Version(%s) is old."
|
1652 |
+
msgstr ""
|
1653 |
+
|
1654 |
+
#: vkExUnit.php:92
|
1655 |
+
#, php-format
|
1656 |
+
msgid "%s supports PHP5.6 or later."
|
1657 |
+
msgstr ""
|
1658 |
+
|
1659 |
#: vkExUnit_admin.php:3
|
1660 |
msgid "Enable setting"
|
1661 |
msgstr ""
|
package_manager.php
CHANGED
@@ -16,6 +16,14 @@ function vkExUnit_package_initilate() {
|
|
16 |
}
|
17 |
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
function vkExUnit_package_is_enable( $package_name ) {
|
20 |
global $vkExUnit_packages;
|
21 |
if ( ! isset( $vkExUnit_packages[ $package_name ] ) ) { return null; }
|
16 |
}
|
17 |
|
18 |
|
19 |
+
add_action('init', 'vkExUnit_package_init');
|
20 |
+
function vkExUnit_package_init()
|
21 |
+
{
|
22 |
+
if ( ! current_user_can( 'activate_plugins' ) ) { return; }
|
23 |
+
do_action('vkExUnit_package_init');
|
24 |
+
}
|
25 |
+
|
26 |
+
|
27 |
function vkExUnit_package_is_enable( $package_name ) {
|
28 |
global $vkExUnit_packages;
|
29 |
if ( ! isset( $vkExUnit_packages[ $package_name ] ) ) { return null; }
|
plugins/call_to_action/class.call_to_action.php
CHANGED
@@ -11,7 +11,7 @@ class CTA
|
|
11 |
public static function init()
|
12 |
{
|
13 |
add_action( 'init', array( __CLASS__, 'set_posttype' ) );
|
14 |
-
add_action( '
|
15 |
add_action( 'admin_menu', array( __CLASS__, 'add_custom_field' ) );
|
16 |
add_action( 'save_post', array( __CLASS__, 'save_custom_field' ) );
|
17 |
if( vkExUnit_content_filter_state() == 'content' ) add_filter( 'the_content', array( __CLASS__, 'content_filter' ), self::CONTENT_NUMBER, 1 );
|
11 |
public static function init()
|
12 |
{
|
13 |
add_action( 'init', array( __CLASS__, 'set_posttype' ) );
|
14 |
+
add_action( 'vkExUnit_package_init', array( __CLASS__, 'option_init' ) );
|
15 |
add_action( 'admin_menu', array( __CLASS__, 'add_custom_field' ) );
|
16 |
add_action( 'save_post', array( __CLASS__, 'save_custom_field' ) );
|
17 |
if( vkExUnit_content_filter_state() == 'content' ) add_filter( 'the_content', array( __CLASS__, 'content_filter' ), self::CONTENT_NUMBER, 1 );
|
plugins/contact_section.php
CHANGED
@@ -29,7 +29,7 @@ class vExUnit_Contact {
|
|
29 |
|
30 |
protected function run_init()
|
31 |
{
|
32 |
-
add_action( '
|
33 |
add_action( 'save_post', array( $this, 'save_custom_field_postdata' ) );
|
34 |
add_shortcode( 'vkExUnit_contact_section', array( $this, 'shortcode' ) );
|
35 |
add_filter( 'vkExUnit_customField_Page_activation', array( $this, 'activate_metavox' ), 10, 1 );
|
29 |
|
30 |
protected function run_init()
|
31 |
{
|
32 |
+
add_action( 'vkExUnit_package_init', array( $this, 'options_init' ) );
|
33 |
add_action( 'save_post', array( $this, 'save_custom_field_postdata' ) );
|
34 |
add_shortcode( 'vkExUnit_contact_section', array( $this, 'shortcode' ) );
|
35 |
add_filter( 'vkExUnit_customField_Page_activation', array( $this, 'activate_metavox' ), 10, 1 );
|
plugins/google_analytics/google_analytics.php
CHANGED
@@ -21,7 +21,7 @@ function vkExUnit_ga_options_init() {
|
|
21 |
'vkExUnit_add_ga_options_page'
|
22 |
);
|
23 |
}
|
24 |
-
add_action( '
|
25 |
|
26 |
function vkExUnit_get_ga_options() {
|
27 |
$options = get_option( 'vkExUnit_ga_options', vkExUnit_get_ga_options_default() );
|
21 |
'vkExUnit_add_ga_options_page'
|
22 |
);
|
23 |
}
|
24 |
+
add_action( 'vkExUnit_package_init', 'vkExUnit_ga_options_init' );
|
25 |
|
26 |
function vkExUnit_get_ga_options() {
|
27 |
$options = get_option( 'vkExUnit_ga_options', vkExUnit_get_ga_options_default() );
|
plugins/icons.php
CHANGED
@@ -28,7 +28,7 @@ class vExUnit_icons {
|
|
28 |
|
29 |
|
30 |
protected function run_init() {
|
31 |
-
add_action( '
|
32 |
add_action( 'wp_head', array( $this, 'output_tag' ) );
|
33 |
}
|
34 |
|
28 |
|
29 |
|
30 |
protected function run_init() {
|
31 |
+
add_action( 'vkExUnit_package_init', array( $this, 'option_init' ) );
|
32 |
add_action( 'wp_head', array( $this, 'output_tag' ) );
|
33 |
}
|
34 |
|
plugins/insert_ads.php
CHANGED
@@ -27,7 +27,7 @@ class vExUnit_Ads {
|
|
27 |
|
28 |
|
29 |
protected function run_init() {
|
30 |
-
add_action( '
|
31 |
add_filter( 'the_content', array( $this, 'set_content' ), 10,1 );
|
32 |
add_shortcode( 'vkExUnit_ad', array( $this, 'shortcode' ) );
|
33 |
}
|
27 |
|
28 |
|
29 |
protected function run_init() {
|
30 |
+
add_action( 'vkExUnit_package_init', array( $this, 'option_init' ) );
|
31 |
add_filter( 'the_content', array( $this, 'set_content' ), 10,1 );
|
32 |
add_shortcode( 'vkExUnit_ad', array( $this, 'shortcode' ) );
|
33 |
}
|
plugins/meta_description.php
CHANGED
@@ -23,7 +23,7 @@ function vkExUnit_description_options_init() {
|
|
23 |
'vkExUnit_add_description_options_page' // setting_page function name
|
24 |
);
|
25 |
}
|
26 |
-
add_action( '
|
27 |
|
28 |
|
29 |
function vkExUnit_add_description_options_page() {
|
23 |
'vkExUnit_add_description_options_page' // setting_page function name
|
24 |
);
|
25 |
}
|
26 |
+
add_action( 'vkExUnit_package_init', 'vkExUnit_description_options_init' );
|
27 |
|
28 |
|
29 |
function vkExUnit_add_description_options_page() {
|
plugins/meta_keyword.php
CHANGED
@@ -28,7 +28,7 @@ class vExUnit_meta_keywords {
|
|
28 |
|
29 |
|
30 |
protected function run_init() {
|
31 |
-
add_action( '
|
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 );
|
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 );
|
plugins/other_widget/other_widget.php
CHANGED
@@ -7,7 +7,7 @@ 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 |
-
|
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 |
|
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 |
|
plugins/other_widget/widget-button.php
CHANGED
@@ -1,29 +1,35 @@
|
|
1 |
<?php
|
2 |
-
|
3 |
/*-------------------------------------------*/
|
4 |
/* Button Widget
|
5 |
/*-------------------------------------------*/
|
6 |
class WP_Widget_Button extends WP_Widget {
|
7 |
|
8 |
-
static
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
function __construct() {
|
29 |
$widget_name = 'VK_' . __( 'Button', 'vkExUnit' );
|
@@ -58,14 +64,14 @@ class WP_Widget_Button extends WP_Widget {
|
|
58 |
if ( isset( $instance[ 'icon_before' ] ) && $instance[ 'icon_before' ] ) {
|
59 |
echo '<i class="fa '.esc_attr( $instance[ 'icon_before' ] ).' font_icon"></i>';
|
60 |
}
|
61 |
-
|
62 |
echo esc_html($options['maintext']);
|
63 |
|
64 |
if ( isset( $instance[ 'icon_after' ] ) && $instance[ 'icon_after' ] ) {
|
65 |
echo '<i class="fa '.esc_attr( $instance[ 'icon_after' ] ).' font_icon"></i>';
|
66 |
}
|
67 |
?>
|
68 |
-
|
69 |
</span>
|
70 |
<?php if ($options['subtext']): ?>
|
71 |
<span class="veu_caption button_subText"><?php echo htmlspecialchars($options['subtext']); ?></span>
|
@@ -79,7 +85,7 @@ class WP_Widget_Button extends WP_Widget {
|
|
79 |
|
80 |
public static function default_options( $option=array() )
|
81 |
{
|
82 |
-
return wp_parse_args( $option, static
|
83 |
}
|
84 |
|
85 |
|
@@ -119,7 +125,7 @@ echo '</p>';
|
|
119 |
<label for="<?php echo $this->get_field_id('size'); ?>"><?php _e('Size', 'vkExUnit'); ?> :</label>
|
120 |
<select id="<?php echo $this->get_field_id('size'); ?>" name="<?php echo $this->get_field_name('size') ?>">
|
121 |
<option value="sm" <?php if($instance['size'] == 'sm') echo 'selected'; ?> ><?php _e('Small', 'vkExUnit'); ?></option>
|
122 |
-
<option value="md" <?php if(!in_array($instance['size'],
|
123 |
<option value="lg" <?php if($instance['size'] == 'lg') echo 'selected'; ?> ><?php _e('Large', 'vkExUnit'); ?></option>
|
124 |
</select>
|
125 |
|
@@ -128,7 +134,7 @@ echo '</p>';
|
|
128 |
<select id="<?php echo $this->get_field_id('color'); ?>" name="<?php echo $this->get_field_name('color'); ?>">
|
129 |
<?php
|
130 |
if ( !isset($instance['color']) || !$instance['color'] ) $instance['color'] = $default['color'];
|
131 |
-
foreach( static
|
132 |
<option value="<?php echo $key; ?>" <?php if ( $instance['color'] == $key ) echo 'selected'; ?> >
|
133 |
<?php _e($label, 'vkExUnit'); ?>
|
134 |
</option>
|
@@ -148,7 +154,7 @@ echo '</p>';
|
|
148 |
$opt['linkurl'] = $new_instance['linkurl'];
|
149 |
$opt['blank'] = (isset($new_instance['blank']) && $new_instance['blank'] == 'true');
|
150 |
$opt['size'] = in_array($new_instance['size'], array('sm', 'lg'))? $new_instance['size'] : 'md';
|
151 |
-
$opt['color'] = in_array($new_instance['color'], array_keys(self
|
152 |
return $opt;
|
153 |
}
|
154 |
|
1 |
<?php
|
|
|
2 |
/*-------------------------------------------*/
|
3 |
/* Button Widget
|
4 |
/*-------------------------------------------*/
|
5 |
class WP_Widget_Button extends WP_Widget {
|
6 |
|
7 |
+
static function button_otherlabels()
|
8 |
+
{
|
9 |
+
return array(
|
10 |
+
'primary' => 'Key Color(.primary)',
|
11 |
+
'default' => 'No paint(.default)',
|
12 |
+
'success' => 'Light green(.success)',
|
13 |
+
'info' => 'Light blue(.info)',
|
14 |
+
'warning' => 'Orange(.warning)',
|
15 |
+
'danger' => 'Red(.danger)',
|
16 |
+
);
|
17 |
+
}
|
18 |
+
|
19 |
+
static function defaults()
|
20 |
+
{
|
21 |
+
return array(
|
22 |
+
'maintext' => '',
|
23 |
+
'icon_before' => '',
|
24 |
+
'icon_after' => '',
|
25 |
+
'subtext' => '',
|
26 |
+
'linkurl' => '',
|
27 |
+
'blank' => false,
|
28 |
+
'size' => '',
|
29 |
+
'color' => 'primary'
|
30 |
+
);
|
31 |
+
}
|
32 |
+
|
33 |
|
34 |
function __construct() {
|
35 |
$widget_name = 'VK_' . __( 'Button', 'vkExUnit' );
|
64 |
if ( isset( $instance[ 'icon_before' ] ) && $instance[ 'icon_before' ] ) {
|
65 |
echo '<i class="fa '.esc_attr( $instance[ 'icon_before' ] ).' font_icon"></i>';
|
66 |
}
|
67 |
+
|
68 |
echo esc_html($options['maintext']);
|
69 |
|
70 |
if ( isset( $instance[ 'icon_after' ] ) && $instance[ 'icon_after' ] ) {
|
71 |
echo '<i class="fa '.esc_attr( $instance[ 'icon_after' ] ).' font_icon"></i>';
|
72 |
}
|
73 |
?>
|
74 |
+
|
75 |
</span>
|
76 |
<?php if ($options['subtext']): ?>
|
77 |
<span class="veu_caption button_subText"><?php echo htmlspecialchars($options['subtext']); ?></span>
|
85 |
|
86 |
public static function default_options( $option=array() )
|
87 |
{
|
88 |
+
return wp_parse_args( $option, static::defaults() );
|
89 |
}
|
90 |
|
91 |
|
125 |
<label for="<?php echo $this->get_field_id('size'); ?>"><?php _e('Size', 'vkExUnit'); ?> :</label>
|
126 |
<select id="<?php echo $this->get_field_id('size'); ?>" name="<?php echo $this->get_field_name('size') ?>">
|
127 |
<option value="sm" <?php if($instance['size'] == 'sm') echo 'selected'; ?> ><?php _e('Small', 'vkExUnit'); ?></option>
|
128 |
+
<option value="md" <?php if(!in_array($instance['size'], array('sm', 'lg'))) echo 'selected'; ?> ><?php _e('Medium', 'vkExUnit'); ?></option>
|
129 |
<option value="lg" <?php if($instance['size'] == 'lg') echo 'selected'; ?> ><?php _e('Large', 'vkExUnit'); ?></option>
|
130 |
</select>
|
131 |
|
134 |
<select id="<?php echo $this->get_field_id('color'); ?>" name="<?php echo $this->get_field_name('color'); ?>">
|
135 |
<?php
|
136 |
if ( !isset($instance['color']) || !$instance['color'] ) $instance['color'] = $default['color'];
|
137 |
+
foreach( static::button_otherlabels() as $key => $label ): ?>
|
138 |
<option value="<?php echo $key; ?>" <?php if ( $instance['color'] == $key ) echo 'selected'; ?> >
|
139 |
<?php _e($label, 'vkExUnit'); ?>
|
140 |
</option>
|
154 |
$opt['linkurl'] = $new_instance['linkurl'];
|
155 |
$opt['blank'] = (isset($new_instance['blank']) && $new_instance['blank'] == 'true');
|
156 |
$opt['size'] = in_array($new_instance['size'], array('sm', 'lg'))? $new_instance['size'] : 'md';
|
157 |
+
$opt['color'] = in_array($new_instance['color'], array_keys(self::button_otherlabels()))? $new_instance['color'] : static::$button_default;
|
158 |
return $opt;
|
159 |
}
|
160 |
|
plugins/sitemap_page/sitemap_page.php
CHANGED
@@ -34,7 +34,7 @@ function vkExUnit_sitemap_options_init() {
|
|
34 |
'vkExUnit_add_sitemap_options_page'
|
35 |
);
|
36 |
}
|
37 |
-
add_action( '
|
38 |
|
39 |
function vkExUnit_get_sitemap_options() {
|
40 |
$options = get_option( 'vkExUnit_sitemap_options', vkExUnit_get_sitemap_options_default() );
|
34 |
'vkExUnit_add_sitemap_options_page'
|
35 |
);
|
36 |
}
|
37 |
+
add_action( 'vkExUnit_package_init', 'vkExUnit_sitemap_options_init' );
|
38 |
|
39 |
function vkExUnit_get_sitemap_options() {
|
40 |
$options = get_option( 'vkExUnit_sitemap_options', vkExUnit_get_sitemap_options_default() );
|
plugins/sns/sns.php
CHANGED
@@ -20,7 +20,7 @@ function vkExUnit_sns_options_init() {
|
|
20 |
'vkExUnit_add_sns_options_page' // setting_page function name
|
21 |
);
|
22 |
}
|
23 |
-
add_action( '
|
24 |
|
25 |
function vkExUnit_get_sns_options() {
|
26 |
$options = get_option( 'vkExUnit_sns_options', vkExUnit_get_sns_options_default() );
|
20 |
'vkExUnit_add_sns_options_page' // setting_page function name
|
21 |
);
|
22 |
}
|
23 |
+
add_action( 'vkExUnit_package_init', 'vkExUnit_sns_options_init' );
|
24 |
|
25 |
function vkExUnit_get_sns_options() {
|
26 |
$options = get_option( 'vkExUnit_sns_options', vkExUnit_get_sns_options_default() );
|
plugins/wp_title.php
CHANGED
@@ -74,7 +74,7 @@ function vkExUnit_wp_title_init() {
|
|
74 |
'vkExUnit_add_wp_title_page'
|
75 |
);
|
76 |
}
|
77 |
-
add_action( '
|
78 |
|
79 |
function vkExUnit_add_wp_title_page(){
|
80 |
$options = vkExUnit_get_wp_title_options();
|
74 |
'vkExUnit_add_wp_title_page'
|
75 |
);
|
76 |
}
|
77 |
+
add_action( 'vkExUnit_package_init', 'vkExUnit_wp_title_init' );
|
78 |
|
79 |
function vkExUnit_add_wp_title_page(){
|
80 |
$options = vkExUnit_get_wp_title_options();
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.7.0
|
7 |
-
Stable tag: 5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -74,6 +74,9 @@ e.g.
|
|
74 |
|
75 |
== Changelog ==
|
76 |
|
|
|
|
|
|
|
77 |
= 5.1.0 =
|
78 |
* [ Add Function ][ Button Widget ] Button widget is now available!!
|
79 |
* [ Bug fix ][ Page Widget ] New Posts Widget PHP error fix
|
4 |
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
|
5 |
Requires at least: 4.2
|
6 |
Tested up to: 4.7.0
|
7 |
+
Stable tag: 5.2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
74 |
|
75 |
== Changelog ==
|
76 |
|
77 |
+
= 5.2.0 =
|
78 |
+
* [ Add Function ] PHP Version activate
|
79 |
+
|
80 |
= 5.1.0 =
|
81 |
* [ Add Function ][ Button Widget ] Button widget is now available!!
|
82 |
* [ Bug fix ][ Page Widget ] New Posts Widget PHP error fix
|
vkExUnit.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: VK All in One Expansion Unit
|
4 |
* Plugin URI: http://ex-unit.vektor-inc.co.jp
|
5 |
* Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
|
6 |
-
* Version: 5.
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vkExUnit
|
9 |
* Domain Path: /languages
|
@@ -27,17 +27,7 @@ along with this program; if not, write to the Free Software
|
|
27 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
28 |
*/
|
29 |
|
30 |
-
|
31 |
-
/* Load master setting page
|
32 |
-
/*-------------------------------------------*/
|
33 |
-
/* Load modules
|
34 |
-
/*-------------------------------------------*/
|
35 |
-
/* Add Parent menu
|
36 |
-
/*-------------------------------------------*/
|
37 |
-
/* Add vkExUnit css
|
38 |
-
/*-------------------------------------------*/
|
39 |
-
/* Add vkExUnit js
|
40 |
-
/*-------------------------------------------*/
|
41 |
|
42 |
// Get Plugin version
|
43 |
$data = get_file_data( __FILE__, array( 'version' => 'Version' ) );
|
@@ -56,163 +46,52 @@ function vkExUnit_get_directory_uri( $path = '' ) {
|
|
56 |
return plugins_url( $path , __FILE__ );
|
57 |
}
|
58 |
|
59 |
-
/*-------------------------------------------*/
|
60 |
-
/* Add Parent menu
|
61 |
-
/*-------------------------------------------*/
|
62 |
-
add_action( 'admin_menu', 'vkExUnit_setting_menu_parent' );
|
63 |
-
function vkExUnit_setting_menu_parent() {
|
64 |
-
global $menu;
|
65 |
-
$parent_name = vkExUnit_get_little_short_name();
|
66 |
-
$Capability_required = 'activate_plugins';
|
67 |
-
|
68 |
-
$custom_page = add_menu_page(
|
69 |
-
$parent_name, // Name of page
|
70 |
-
$parent_name, // Label in menu
|
71 |
-
$Capability_required,
|
72 |
-
'vkExUnit_setting_page', // ユニークなこのサブメニューページの識別子
|
73 |
-
'vkExUnit_add_setting_page' // メニューページのコンテンツを出力する関数
|
74 |
-
);
|
75 |
-
if ( ! $custom_page ) { return; }
|
76 |
-
}
|
77 |
-
|
78 |
-
/*-------------------------------------------*/
|
79 |
-
/* Load master setting page
|
80 |
-
/*-------------------------------------------*/
|
81 |
-
function vkExUnit_add_setting_page() {
|
82 |
-
require dirname( __FILE__ ) . '/vkExUnit_admin.php';
|
83 |
-
}
|
84 |
-
|
85 |
-
require_once( 'admin_wrapper.php' );
|
86 |
-
|
87 |
-
/*-------------------------------------------*/
|
88 |
-
/* Load modules
|
89 |
-
/*-------------------------------------------*/
|
90 |
-
|
91 |
-
require vkExUnit_get_directory() . '/common_init.php';
|
92 |
-
require vkExUnit_get_directory() . '/package_manager.php';
|
93 |
-
require vkExUnit_get_directory() . '/packages.php';
|
94 |
-
$options = vkExUnit_get_common_options();
|
95 |
-
require vkExUnit_get_directory() . '/common_helpers.php';
|
96 |
-
|
97 |
-
require vkExUnit_get_directory() . '/plugins_admin/dashboard_info_widget.php';
|
98 |
-
|
99 |
-
require vkExUnit_get_directory() . '/plugins_admin/disable_guide.php';
|
100 |
-
|
101 |
-
require vkExUnit_get_directory() . '/plugins/footer_copyright_change.php';
|
102 |
-
require vkExUnit_get_directory() . '/plugins/page_custom_field.php';
|
103 |
-
|
104 |
-
require vkExUnit_get_directory() . '/plugins_admin/vk-admin-config.php';
|
105 |
-
|
106 |
-
vkExUnit_package_include(); // package_manager.php
|
107 |
-
|
108 |
-
/*-------------------------------------------*/
|
109 |
-
/* Add vkExUnit css
|
110 |
-
/*-------------------------------------------*/
|
111 |
-
// Add vkExUnit css
|
112 |
-
add_action( 'wp_enqueue_scripts','vkExUnit_print_css' );
|
113 |
-
function vkExUnit_print_css() {
|
114 |
-
global $vkExUnit_version;
|
115 |
-
$options = vkExUnit_get_common_options();
|
116 |
-
if ( isset( $options['active_bootstrap'] ) && $options['active_bootstrap'] ) {
|
117 |
-
wp_enqueue_style( 'vkExUnit_common_style', plugins_url( '', __FILE__ ).'/css/vkExUnit_style_in_bs.css', array(), $vkExUnit_version, 'all' );
|
118 |
-
} else {
|
119 |
-
wp_enqueue_style( 'vkExUnit_common_style', plugins_url( '', __FILE__ ).'/css/vkExUnit_style.css', array(), $vkExUnit_version, 'all' );
|
120 |
-
}
|
121 |
-
if ( isset( $options['active_fontawesome'] ) && $options['active_fontawesome'] ) {
|
122 |
-
wp_enqueue_style( 'font-awesome', vkExUnit_get_directory_uri() . '/libraries/font-awesome/css/font-awesome.min.css', array(), '4.6.3', 'all' );
|
123 |
-
}
|
124 |
-
}
|
125 |
-
|
126 |
-
function vkExUnit_print_editor_css() {
|
127 |
-
add_editor_style( plugins_url( '', __FILE__ ).'/css/vkExUnit_editor_style.css' );
|
128 |
-
}
|
129 |
-
add_action('after_setup_theme', 'vkExUnit_print_editor_css');
|
130 |
-
|
131 |
-
/*-------------------------------------------*/
|
132 |
-
/* Add vkExUnit js
|
133 |
-
/*-------------------------------------------*/
|
134 |
-
add_action( 'wp_head','vkExUnit_addJs' );
|
135 |
-
function vkExUnit_addJs() {
|
136 |
-
global $vkExUnit_version;
|
137 |
-
$options = vkExUnit_get_common_options();
|
138 |
-
if ( isset( $options['active_bootstrap'] ) && $options['active_bootstrap'] ) {
|
139 |
-
wp_register_script( 'vkExUnit_master-js' , plugins_url( '', __FILE__ ).'/js/all_in_bs.min.js', array( 'jquery' ), $vkExUnit_version );
|
140 |
-
} else {
|
141 |
-
wp_register_script( 'vkExUnit_master-js' , plugins_url( '', __FILE__ ).'/js/all.min.js', array( 'jquery' ), $vkExUnit_version, true );
|
142 |
-
}
|
143 |
-
wp_localize_script( 'vkExUnit_master-js', 'vkExOpt', apply_filters('vkExUnit_localize_options', array('ajax_url'=>admin_url('admin-ajax.php')) ) );
|
144 |
-
wp_enqueue_script( 'vkExUnit_master-js' );
|
145 |
-
}
|
146 |
|
147 |
-
|
148 |
-
|
149 |
-
/*-------------------------------------------*/
|
150 |
-
add_action( 'admin_print_scripts-vk-exunit_page_vkExUnit_main_setting', 'vkExUnit_admin_add_js' );
|
151 |
-
function vkExUnit_admin_add_js( $hook_suffix ) {
|
152 |
-
global $vkExUnit_version;
|
153 |
-
wp_enqueue_media();
|
154 |
-
wp_register_script( 'vkExUnit_admin_js', plugins_url( '', __FILE__ ).'/js/vkExUnit_admin.js', array( 'jquery' ), $vkExUnit_version );
|
155 |
-
wp_enqueue_script( 'jquery' );
|
156 |
-
wp_enqueue_script( 'vkExUnit_admin_js' );
|
157 |
}
|
158 |
|
159 |
-
|
160 |
-
/* 管理画面_admin_head JavaScriptのデバッグコンソールにhook_suffixの値を出力
|
161 |
-
/*-------------------------------------------*/
|
162 |
-
|
163 |
-
// add_action("admin_head", 'vkExUnit_suffix2console');
|
164 |
-
// function vkExUnit_suffix2console() {
|
165 |
-
// global $hook_suffix;
|
166 |
-
// if (is_user_logged_in()) {
|
167 |
-
// $str = "<script type=\"text/javascript\">console.log('%s')</script>";
|
168 |
-
// printf($str, $hook_suffix);
|
169 |
-
// }
|
170 |
-
// }
|
171 |
-
|
172 |
-
if ( function_exists( 'register_activation_hook' ) ) {
|
173 |
-
register_activation_hook( __FILE__ , 'vkExUnit_install_function' );
|
174 |
-
}
|
175 |
-
function vkExUnit_install_function() {
|
176 |
-
$opt = get_option( 'vkExUnit_common_options' );
|
177 |
-
if ( ! $opt ) {
|
178 |
-
add_option( 'vkExUnit_common_options', vkExUnit_get_common_options_default() );
|
179 |
-
}
|
180 |
-
}
|
181 |
|
182 |
-
|
183 |
-
register_deactivation_hook( __FILE__, 'vkExUnit_uninstall_function' );
|
184 |
}
|
185 |
|
186 |
-
function vkExUnit_uninstall_function() {
|
187 |
|
188 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
189 |
}
|
190 |
|
|
|
|
|
|
|
|
|
|
|
191 |
/*
|
192 |
-
|
193 |
-
/* Lightning Charm 1.4.0 以降になったら削除
|
194 |
*/
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
if ( $skin == 'charm' && $theme == 'Lightning' ){
|
202 |
-
|
203 |
-
$charm_custom_css = "
|
204 |
-
.veu_postList .postList .postList_item:first-child { border-top:none; }
|
205 |
-
.mainSection .veu_postList.pt_0 .postList.postList_miniThumb { padding:0;margin-left:0;margin-right:0; }
|
206 |
-
.mainSection .veu_postList.pt_0 .postList.postList_miniThumb postList_body { display:table-cell; }
|
207 |
-
@media (max-width: 991px) {
|
208 |
-
.mainSection .veu_postList.pt_0 .postList.postList_miniThumb .postList_thumbnail { float:none; }
|
209 |
}
|
210 |
-
@media (min-width: 992px) {
|
211 |
-
.mainSection .veu_postList.pt_0 .postList_item .postList_thumbnail { width:50%;margin-left:0;margin-right:0;padding-right:30px; }
|
212 |
-
.mainSection .veu_postList.pt_0 .postList_item.even .postList_thumbnail { margin-right:0; }
|
213 |
-
}
|
214 |
-
";
|
215 |
-
wp_add_inline_style( 'lightning-design-style', $charm_custom_css );
|
216 |
|
217 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
}
|
|
3 |
* Plugin Name: VK All in One Expansion Unit
|
4 |
* Plugin URI: http://ex-unit.vektor-inc.co.jp
|
5 |
* Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
|
6 |
+
* Version: 5.2.0
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vkExUnit
|
9 |
* Domain Path: /languages
|
27 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
28 |
*/
|
29 |
|
30 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
|
32 |
// Get Plugin version
|
33 |
$data = get_file_data( __FILE__, array( 'version' => 'Version' ) );
|
46 |
return plugins_url( $path , __FILE__ );
|
47 |
}
|
48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
49 |
|
50 |
+
if ( function_exists( 'register_deactivation_hook' ) ) {
|
51 |
+
register_deactivation_hook( __FILE__, 'vkExUnit_uninstall_function' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
}
|
53 |
|
54 |
+
function vkExUnit_uninstall_function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
+
include vkExUnit_get_directory( '/uninstaller.php' );
|
|
|
57 |
}
|
58 |
|
|
|
59 |
|
60 |
+
/// PHP Version check
|
61 |
+
if ( version_compare( phpversion(), '5.4.45') >= 0) {
|
62 |
+
require_once vkExUnit_get_directory() . '/initialize.php';
|
63 |
+
if ( version_compare(phpversion(), '5.6') < 0 && is_admin())
|
64 |
+
add_filter( 'admin_notices', 'vkExUnit_phpversion_warning_notice');
|
65 |
+
}else{
|
66 |
+
add_filter( 'admin_notices', 'vkExUnit_phpversion_error');
|
67 |
}
|
68 |
|
69 |
+
function vkExUnit_phpversion_error($val){
|
70 |
+
if (!current_user_can('activate_plugins')) return $val;
|
71 |
+
?>
|
72 |
+
<div class="notice notice-error error is-dismissible"><p>
|
73 |
+
<?php
|
74 |
/*
|
75 |
+
本来システム名は vkExUnit_get_little_short_name() で引っ張るが、PHPのバージョンが低くて vkExUnit_get_little_short_name() 関数が読み込まれていないので"VK ExUnit"直書き
|
|
|
76 |
*/
|
77 |
+
printf( __("The current PHP version(%s) is too old, so VK ExUnit will not work.", 'vkExUnit'), phpversion()
|
78 |
+
); ?>
|
79 |
+
<?php _e("VK ExUnit supports PHP5.6 or later.", 'vkExUnit'); ?>
|
80 |
+
</p></div>
|
81 |
+
<?php
|
82 |
+
return $val;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
|
85 |
+
function vkExUnit_phpversion_warning_notice($val){
|
86 |
+
if (!current_user_can('activate_plugins')) return $val;
|
87 |
+
global $hook_suffix;
|
88 |
+
if (strpos($hook_suffix, 'vkExUnit') == false) return;
|
89 |
+
?>
|
90 |
+
<div class="notice notice-warning is-dismissible"><p>
|
91 |
+
<?php printf(__("Current PHP Version(%s) is old.", 'vkExUnit'), phpversion() ); ?>
|
92 |
+
<?php printf(__("%s supports PHP5.6 or later.", 'vkExUnit'), vkExUnit_get_little_short_name() ); ?>
|
93 |
+
</p></div>
|
94 |
+
<?php
|
95 |
+
return $val;
|
96 |
}
|
97 |
+
|