VK All in One Expansion Unit - Version 6.4.8

Version Description

Download this release

Release Info

Developer kurudrive
Plugin Icon 128x128 VK All in One Expansion Unit
Version 6.4.8
Comparing to
See all releases

Code changes from version 6.4.7 to 6.4.8

admin_active_setting_page.php CHANGED
@@ -1,6 +1,6 @@
1
<div class="wrap vk_admin_page">
2
<h2>
3
- <span class="pageTitleTxt">VK All in One Expansion Unit <?php _e( 'Enable setting','vkExUnit' );?></span>
4
</h2>
5
6
<div class="adminMain">
@@ -13,36 +13,48 @@
13
<table class="wp-list-table widefat plugins" style="width:auto;">
14
<thead>
15
<tr>
16
- <th scope='col' id='cb' class='manage-column column-cb check-column'><label class="screen-reader-text" for="cb-select-all-1"><?php _e( 'Select all','vkExUnit' );?></label><input id="cb-select-all-1" type="checkbox" /></th><th scope='col' id='name' class='manage-column column-name'><?php _e( 'Function','vkExUnit' );?></th><th scope='col' id='description' class='manage-column column-description'><?php _e( 'Description','vkExUnit' );?></th>
17
</tr>
18
</thead>
19
20
<tbody id="the-list">
21
<?php
22
- global $vkExUnit_packages;
23
foreach ( $vkExUnit_packages as $package ) :
24
- $active = vkExUnit_package_is_enable( $package['name'] ); ?>
25
- <tr class="<?php echo ( $active )? 'active': 'inactive'; if ( $package['hidden'] ) { echo ' dev_object'; } ?>" >
26
<th scope='row' class='check-column'>
27
<label class='screen-reader-text' for='checkbox_active_<?php echo $package['name']; ?>' >
28
<?php _e( 'Automatic Eye Catch insert', 'vkExUnit' ); ?>
29
</label>
30
- <input type="checkbox" name="vkExUnit_common_options[active_<?php echo $package['name']; ?>]" id="checkbox_active_<?php echo $package['name']; ?>" value="true" <?php if ( $active ) { echo 'checked'; } ?> />
31
</th>
32
<td class='plugin-title'>
33
- <strong><?php echo $package['title'] ?></strong>
34
35
<?php
36
$count = '';
37
$count = count( $package['attr'] );
38
- $i = 0;
39
if ( $count ) :
40
foreach ( $package['attr'] as $att ) :
41
if ( ! $att['enable_only'] || $active ) :
42
?>
43
- <?php echo ( $count > 1 && $i >= 1) ? ' | ':''; ?>
44
<span>
45
- <a href="<?php echo ( $att['url'] )? $att['url'] : admin_url().'admin.php?page=vkExUnit_main_setting' ;?>">
46
<?php echo $att['name']; ?>
47
</a></span>
48
@@ -50,15 +62,18 @@ foreach ( $vkExUnit_packages as $package ) :
50
endif;
51
$i++;
52
endforeach;
53
- endif; //if($count): ?>
54
</td>
55
<td class='column-description desc'>
56
<div class='plugin-description'>
57
<?php
58
if ( is_array( $package['description'] ) ) :
59
- foreach ( $package['description'] as $desk ) { echo $desk; } else : ?>
60
- <p><?php echo $package['description']; ?></p>
61
- <?php endif; ?>
62
</div><!-- [ /.plugin-description ] -->
63
</td>
64
</tr>
@@ -71,7 +86,7 @@ foreach ( $vkExUnit_packages as $package ) :
71
<tfoot>
72
73
<tr>
74
- <th scope='col' class='manage-column column-cb check-column'><label class="screen-reader-text" for="cb-select-all-2"><?php _e( 'Select all','vkExUnit' );?></label><input id="cb-select-all-2" type="checkbox" /></th><th scope='col' class='manage-column column-name'><?php _e( 'Function', 'vkExUnit' );?></th><th scope='col' class='manage-column column-description'><?php _e( 'Description','vkExUnit' );?></th>
75
</tr>
76
</tfoot>
77
@@ -82,15 +97,20 @@ foreach ( $vkExUnit_packages as $package ) :
82
<?php /* 誤作動が多いので再調整 */ ?>
83
<!--
84
<tr>
85
- <th><?php _e('Extention contents', 'vkExUnit'); ?></th>
86
- <td><label><input type="checkbox" name="vkExUnit_common_options[content_filter_state]" value="loop_enud" <?php if( veu_content_filter_state() == 'loop_end' ) echo 'checked'; ?> /><?php _e('set extension contents to loop_end hook', 'vkExUnit'); ?></label>
87
- <?php do_action('vkExUnit_extention_contents_message');?>
88
</td>
89
</tr>
90
-->
91
<tr>
92
- <th><?php _e( 'Plugin setting options','vkExUnit' ); ?></th>
93
- <td><label><input type="checkbox" name="vkExUnit_common_options[delete_options_at_deactivate]" value="true" <?php echo (isset( $options['delete_options_at_deactivate'] ) && $options['delete_options_at_deactivate'])? 'checked':''; ?> />
94
<?php _e( 'Delete myOptions when deactivate me.', 'vkExUnit' ); ?></label></td>
95
</tr>
96
</table>
@@ -98,7 +118,7 @@ foreach ( $vkExUnit_packages as $package ) :
98
</form>
99
</div><!-- [ /.adminMain ] -->
100
101
- <?php echo Vk_Admin::admin_sub() ?>
102
103
104
</div>
1
<div class="wrap vk_admin_page">
2
<h2>
3
+ <span class="pageTitleTxt">VK All in One Expansion Unit <?php _e( 'Enable setting', 'vkExUnit' ); ?></span>
4
</h2>
5
6
<div class="adminMain">
13
<table class="wp-list-table widefat plugins" style="width:auto;">
14
<thead>
15
<tr>
16
+ <th scope='col' id='cb' class='manage-column column-cb check-column'><label class="screen-reader-text" for="cb-select-all-1"><?php _e( 'Select all', 'vkExUnit' ); ?></label><input id="cb-select-all-1" type="checkbox" /></th><th scope='col' id='name' class='manage-column column-name'><?php _e( 'Function', 'vkExUnit' ); ?></th><th scope='col' id='description' class='manage-column column-description'><?php _e( 'Description', 'vkExUnit' ); ?></th>
17
</tr>
18
</thead>
19
20
<tbody id="the-list">
21
<?php
22
+ global $vkExUnit_packages;
23
foreach ( $vkExUnit_packages as $package ) :
24
+ $active = vkExUnit_package_is_enable( $package['name'] );
25
+ ?>
26
+ <tr class="
27
+ <?php
28
+ echo ( $active ) ? 'active' : 'inactive';
29
+ if ( $package['hidden'] ) {
30
+ echo ' dev_object'; }
31
+ ?>
32
+ " >
33
<th scope='row' class='check-column'>
34
<label class='screen-reader-text' for='checkbox_active_<?php echo $package['name']; ?>' >
35
<?php _e( 'Automatic Eye Catch insert', 'vkExUnit' ); ?>
36
</label>
37
+ <input type="checkbox" name="vkExUnit_common_options[active_<?php echo $package['name']; ?>]" id="checkbox_active_<?php echo $package['name']; ?>" value="true"
38
+ <?php
39
+ if ( $active ) {
40
+ echo 'checked'; }
41
+ ?>
42
+ />
43
</th>
44
<td class='plugin-title'>
45
+ <strong><?php echo $package['title']; ?></strong>
46
47
<?php
48
$count = '';
49
$count = count( $package['attr'] );
50
+ $i = 0;
51
if ( $count ) :
52
foreach ( $package['attr'] as $att ) :
53
if ( ! $att['enable_only'] || $active ) :
54
?>
55
+ <?php echo ( $count > 1 && $i >= 1 ) ? ' | ' : ''; ?>
56
<span>
57
+ <a href="<?php echo ( $att['url'] ) ? $att['url'] : admin_url() . 'admin.php?page=vkExUnit_main_setting'; ?>">
58
<?php echo $att['name']; ?>
59
</a></span>
60
62
endif;
63
$i++;
64
endforeach;
65
+ endif; //if($count):
66
+ ?>
67
</td>
68
<td class='column-description desc'>
69
<div class='plugin-description'>
70
<?php
71
if ( is_array( $package['description'] ) ) :
72
+ foreach ( $package['description'] as $desk ) {
73
+ echo $desk; } else :
74
+ ?>
75
+ <p><?php echo $package['description']; ?></p>
76
+ <?php endif; ?>
77
</div><!-- [ /.plugin-description ] -->
78
</td>
79
</tr>
86
<tfoot>
87
88
<tr>
89
+ <th scope='col' class='manage-column column-cb check-column'><label class="screen-reader-text" for="cb-select-all-2"><?php _e( 'Select all', 'vkExUnit' ); ?></label><input id="cb-select-all-2" type="checkbox" /></th><th scope='col' class='manage-column column-name'><?php _e( 'Function', 'vkExUnit' ); ?></th><th scope='col' class='manage-column column-description'><?php _e( 'Description', 'vkExUnit' ); ?></th>
90
</tr>
91
</tfoot>
92
97
<?php /* 誤作動が多いので再調整 */ ?>
98
<!--
99
<tr>
100
+ <th><?php _e( 'Extention contents', 'vkExUnit' ); ?></th>
101
+ <td><label><input type="checkbox" name="vkExUnit_common_options[content_filter_state]" value="loop_enud"
102
+ <?php
103
+ if ( veu_content_filter_state() == 'loop_end' ) {
104
+ echo 'checked';}
105
+ ?>
106
+ /><?php _e( 'set extension contents to loop_end hook', 'vkExUnit' ); ?></label>
107
+ <?php do_action( 'vkExUnit_extention_contents_message' ); ?>
108
</td>
109
</tr>
110
-->
111
<tr>
112
+ <th><?php _e( 'Plugin setting options', 'vkExUnit' ); ?></th>
113
+ <td><label><input type="checkbox" name="vkExUnit_common_options[delete_options_at_deactivate]" value="true" <?php echo ( isset( $options['delete_options_at_deactivate'] ) && $options['delete_options_at_deactivate'] ) ? 'checked' : ''; ?> />
114
<?php _e( 'Delete myOptions when deactivate me.', 'vkExUnit' ); ?></label></td>
115
</tr>
116
</table>
118
</form>
119
</div><!-- [ /.adminMain ] -->
120
121
+ <?php echo Vk_Admin::admin_sub(); ?>
122
123
124
</div>
common_init.php CHANGED
@@ -9,29 +9,23 @@ function vkExUnit_common_options_init() {
9
add_action( 'admin_init', 'vkExUnit_common_options_init' );
10
11
function vkExUnit_get_common_options() {
12
- $options = get_option( 'vkExUnit_common_options', vkExUnit_get_common_options_default() );
13
- $options_dafault = vkExUnit_get_common_options_default();
14
return apply_filters( 'vkExUnit_common_options', $options );
15
}
16
17
function vkExUnit_get_common_options_default() {
18
// hook vkExUnit_package_is_enable()
19
- $default_options = array(
20
- 'active_bootstrap' => false,
21
- 'active_fontawesome' => false,
22
- 'active_metaDescription' => true,
23
- 'active_metaKeyword' => true,
24
- 'active_wpTitle' => true,
25
- 'active_sns' => true,
26
- 'active_ga' => true,
27
- 'active_relatedPosts' => true,
28
- 'active_call_to_action' => true,
29
- 'active_pageList_ancestor' => true,
30
- 'active_childPageIndex' => true,
31
- 'delete_options_at_deactivate' => false,
32
- 'delete_options_with_bizvektors_common' => true,
33
- 'content_filter_state' => 'content',
34
- );
35
return apply_filters( 'vkExUnit_common_options_default', $default_options );
36
}
37
@@ -40,20 +34,20 @@ function vkExUnit_get_common_options_default() {
40
/*-------------------------------------------*/
41
42
function vkExUnit_common_options_validate( $input ) {
43
- $output = $defaults = vkExUnit_get_common_options_default();
44
- $output['active_bootstrap'] = ( ! empty( $input['active_bootstrap'] ) ) ? true : false;
45
- $output['active_fontawesome'] = ( ! empty( $input['active_fontawesome'] ) ) ? true : false;
46
- $output['active_metaDescription'] = ( ! empty( $input['active_metaDescription'] ) ) ? true : false;
47
- $output['active_metaKeyword'] = ( ! empty( $input['active_metaKeyword'] ) ) ? true : false;
48
- $output['active_icon'] = ( ! empty( $input['active_icon'] ) ) ? true : false;
49
- $output['active_wpTitle'] = ( ! empty( $input['active_wpTitle'] ) ) ? true : false;
50
- $output['active_sns'] = ( ! empty( $input['active_sns'] ) ) ? true : false;
51
- $output['active_ga'] = ( ! empty( $input['active_ga'] ) ) ? true : false;
52
- $output['active_relatedPosts'] = ( ! empty( $input['active_relatedPosts'] ) ) ? true : false;
53
- $output['active_otherWidgets'] = ( ! empty( $input['active_otherWidgets'] ) ) ? true : false;
54
- $output['active_css_customize'] = ( ! empty( $input['active_css_customize'] ) ) ? true : false;
55
- $output['active_call_to_action'] = ( ! empty( $input['active_call_to_action'] ) ) ? true : false;
56
- $output['delete_options_at_deactivate'] = ( ! empty( $input['delete_options_at_deactivate'] ) ) ? true : false;
57
- $output['content_filter_state'] = ( ! empty( $input['content_filter_state'] ) ) ? 'loop_end' : 'content';
58
return apply_filters( 'vkExUnit_common_options_validate', $output, $input, $defaults );
59
}
9
add_action( 'admin_init', 'vkExUnit_common_options_init' );
10
11
function vkExUnit_get_common_options() {
12
+ $dafault = vkExUnit_get_common_options_default();
13
+ $options = get_option( 'vkExUnit_common_options' );
14
+ $options = wp_parse_args( $options, $dafault );
15
return apply_filters( 'vkExUnit_common_options', $options );
16
}
17
18
function vkExUnit_get_common_options_default() {
19
// hook vkExUnit_package_is_enable()
20
+ // パッケージの情報を取得してデフォルトの配列を作成
21
+ $defaults = array();
22
+ $packages = vkExUnit_get_packages();
23
+ foreach ( $packages as $key => $value ) {
24
+ $name = $value['name'];
25
+ $default_options[ 'active_' . $name ] = $value['default'];
26
+ }
27
+ $default_options['delete_options_at_deactivate'] = false;
28
+ $default_options['content_filter_state'] = 'content';
29
return apply_filters( 'vkExUnit_common_options_default', $default_options );
30
}
31
34
/*-------------------------------------------*/
35
36
function vkExUnit_common_options_validate( $input ) {
37
+ /*
38
+ 入力された値の無害化
39
+ ここでは機能の有効化有無に関する項目が殆どで、手動で項目を記載すると機能の増減の際に項目の編集漏れが出るため、
40
+ vkExUnit_get_common_options_default() の中で package に登録してある項目・デフォルト値を読み込み、それをループ処理する
41
+ */
42
+ $defaults = vkExUnit_get_common_options_default();
43
+ foreach ( $defaults as $key => $default_value ) {
44
+ // 'content_filter_state' 以外は true false しか返ってこない
45
+ if ( $key != 'content_filter_state' ) {
46
+ $output[ $key ] = ( isset( $input[ $key ] ) ) ? esc_html( $input[ $key ] ) : $default_value;
47
+ } else {
48
+ $output['content_filter_state'] = ( ! empty( $input['content_filter_state'] ) ) ? 'loop_end' : 'content';
49
+ }
50
+ }
51
+
52
return apply_filters( 'vkExUnit_common_options_validate', $output, $input, $defaults );
53
}
plugins/contact-section/contact-section.php CHANGED
@@ -114,8 +114,8 @@ class VkExUnit_Contact {
114
'contact_txt' => __( 'Please feel free to inquire.', 'vkExUnit' ),
115
'tel_number' => '000-000-0000',
116
'contact_time' => __( 'Office hours 9:00 - 18:00 [ Weekdays except holidays ]', 'vkExUnit' ),
117
- 'contact_link' => '',
118
- 'button_text' => '',
119
'button_text_small' => '',
120
'short_text' => __( 'Contact us', 'vkExUnit' ),
121
'contact_image' => '',
114
'contact_txt' => __( 'Please feel free to inquire.', 'vkExUnit' ),
115
'tel_number' => '000-000-0000',
116
'contact_time' => __( 'Office hours 9:00 - 18:00 [ Weekdays except holidays ]', 'vkExUnit' ),
117
+ 'contact_link' => home_url(),
118
+ 'button_text' => __( 'Contact us', 'vkExUnit' ),
119
'button_text_small' => '',
120
'short_text' => __( 'Contact us', 'vkExUnit' ),
121
'contact_image' => '',
plugins/contact-section/customizer.php CHANGED
@@ -10,7 +10,7 @@ function veu_customize_panel_activation_contact() {
10
11
// カスタマイズ関数を実行
12
// if ( apply_filters('veu_customize_panel_activation', false ) ){
13
- add_action( 'customize_register', 'veu_customize_register_contact',20 );
14
// }
15
16
function veu_customize_register_contact( $wp_customize ) {
@@ -113,7 +113,7 @@ function veu_customize_register_contact( $wp_customize ) {
113
// The contact page URL
114
$wp_customize->add_setting(
115
'vkExUnit_contact[contact_link]', array(
116
- 'default' => '',
117
'type' => 'option', // 保存先 option or theme_mod
118
'capability' => 'edit_theme_options',
119
'sanitize_callback' => 'sanitize_text_field',
@@ -134,7 +134,7 @@ function veu_customize_register_contact( $wp_customize ) {
134
// Contact button Text
135
$wp_customize->add_setting(
136
'vkExUnit_contact[button_text]', array(
137
- 'default' => '',
138
'type' => 'option', // 保存先 option or theme_mod
139
'capability' => 'edit_theme_options',
140
'sanitize_callback' => 'sanitize_text_field',
10
11
// カスタマイズ関数を実行
12
// if ( apply_filters('veu_customize_panel_activation', false ) ){
13
+ add_action( 'customize_register', 'veu_customize_register_contact', 20 );
14
// }
15
16
function veu_customize_register_contact( $wp_customize ) {
113
// The contact page URL
114
$wp_customize->add_setting(
115
'vkExUnit_contact[contact_link]', array(
116
+ 'default' => home_url( '/contact/' ),
117
'type' => 'option', // 保存先 option or theme_mod
118
'capability' => 'edit_theme_options',
119
'sanitize_callback' => 'sanitize_text_field',
134
// Contact button Text
135
$wp_customize->add_setting(
136
'vkExUnit_contact[button_text]', array(
137
+ 'default' => __( 'Contact us', 'vkExUnit' ),
138
'type' => 'option', // 保存先 option or theme_mod
139
'capability' => 'edit_theme_options',
140
'sanitize_callback' => 'sanitize_text_field',
plugins/font-awesome/class-vk-font-awesome-versions.php CHANGED
@@ -4,6 +4,8 @@ if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
4
5
class Vk_Font_Awesome_Versions {
6
7
static function init() {
8
add_action( 'customize_register', array( __CLASS__, 'customize_register' ) );
9
add_action( 'wp_enqueue_scripts', array( __CLASS__, 'load_font_awesome' ), 3 );
@@ -43,7 +45,7 @@ if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
43
44
public static function current_info() {
45
$versions = self::versions();
46
- $vk_font_awesome_version = get_option( 'vk_font_awesome_version', '4.7' );
47
$current_info = $versions[ $vk_font_awesome_version ];
48
return $current_info;
49
}
@@ -95,7 +97,7 @@ if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
95
* @return [type] [description]
96
*/
97
static function add_body_class_fa_version( $class ) {
98
- $current = get_option( 'vk_font_awesome_version', '5.0_WebFonts_CSS' );
99
if ( $current == '4.7' ) {
100
$class[] = 'fa_v4';
101
} elseif ( $current == '5.0_WebFonts_CSS' ) {
@@ -111,7 +113,7 @@ if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
111
* @return [type] [description]
112
*/
113
static function dynamic_css() {
114
- $current = get_option( 'vk_font_awesome_version', '5.0_WebFonts_CSS' );
115
$dynamic_css = '';
116
if ( $current == '4.7' ) {
117
$dynamic_css = '.tagcloud a:before { font-family:FontAwesome;content:"\f02b"; }';
4
5
class Vk_Font_Awesome_Versions {
6
7
+ private static $version_default = '4.7';
8
+
9
static function init() {
10
add_action( 'customize_register', array( __CLASS__, 'customize_register' ) );
11
add_action( 'wp_enqueue_scripts', array( __CLASS__, 'load_font_awesome' ), 3 );
45
46
public static function current_info() {
47
$versions = self::versions();
48
+ $vk_font_awesome_version = get_option( 'vk_font_awesome_version', self::$version_default );
49
$current_info = $versions[ $vk_font_awesome_version ];
50
return $current_info;
51
}
97
* @return [type] [description]
98
*/
99
static function add_body_class_fa_version( $class ) {
100
+ $current = get_option( 'vk_font_awesome_version', self::$version_default );
101
if ( $current == '4.7' ) {
102
$class[] = 'fa_v4';
103
} elseif ( $current == '5.0_WebFonts_CSS' ) {
113
* @return [type] [description]
114
*/
115
static function dynamic_css() {
116
+ $current = get_option( 'vk_font_awesome_version', self::$version_default );
117
$dynamic_css = '';
118
if ( $current == '4.7' ) {
119
$dynamic_css = '.tagcloud a:before { font-family:FontAwesome;content:"\f02b"; }';
plugins/template-tags/template-tags.php CHANGED
@@ -213,7 +213,8 @@ if ( ! function_exists( 'vk_get_page_description' ) ) {
213
$page_description = apply_filters( 'vkExUnit_pageDescriptionCustom', $page_description );
214
$page_description = esc_html( strip_tags( $page_description ) );
215
// Delete Line break
216
- $page_description = str_replace( array( "\r\n", "\r", "\n" ), '', $page_description );
217
return $page_description;
218
}
219
}
213
$page_description = apply_filters( 'vkExUnit_pageDescriptionCustom', $page_description );
214
$page_description = esc_html( strip_tags( $page_description ) );
215
// Delete Line break
216
+ $page_description = str_replace( array( "\r\n", "\r", "\n", "\t" ), '', $page_description );
217
+ $page_description = preg_replace( '/\[(.*?)\]/m', '', $page_description );
218
return $page_description;
219
}
220
}
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: vektor-inc,kurudrive,nc30,SaoriMiyazaki,catherine8007
3
Donate link:
4
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
Requires at least: 4.4
6
- Tested up to: 4.9.5
7
- Stable tag: 6.4.7
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
3
Donate link:
4
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
Requires at least: 4.4
6
+ Tested up to: 4.9.6
7
+ Stable tag: 6.4.8
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
veu-packages.php CHANGED
@@ -1,8 +1,9 @@
1
<?php
2
- $required_packages = array();
3
- /*
4
- Example :
5
- $required_packages[] = array(
6
'name' => 'auto_eyecatch',
7
'title' => __('Automatic Eye Catch insert', 'vkExUnit'),
8
'description' => __('Display Eye Catch image at before content.', 'vkExUnit'),
@@ -15,422 +16,420 @@ $required_packages[] = array(
15
),
16
'default' => false,
17
'include' => '/auto_eyecatch.php',
18
- );
19
20
- */
21
22
23
- /*-------------------------------------------*/
24
- /* bootstrap
25
- /*-------------------------------------------*/
26
- /* fontawesome
27
- /*-------------------------------------------*/
28
- /* icon
29
- /*-------------------------------------------*/
30
- /* wpTitle
31
- /*-------------------------------------------*/
32
- /* metaKeyword
33
- /*-------------------------------------------*/
34
- /* metaDescription
35
- /*-------------------------------------------*/
36
- /* sns
37
- /*-------------------------------------------*/
38
- /* ga
39
- /*-------------------------------------------*/
40
- /* otherWidgets
41
- /*-------------------------------------------*/
42
- /* css_customize
43
- /*-------------------------------------------*/
44
- /* Contact Section
45
- /*-------------------------------------------*/
46
- /* ChildPageIndex
47
- /*-------------------------------------------*/
48
- /* pageList_ancestor
49
- /*-------------------------------------------*/
50
- /* Sitemap_page
51
- /*-------------------------------------------*/
52
- /* Call To Action
53
- /*-------------------------------------------*/
54
- /* insert_ads
55
- /*-------------------------------------------*/
56
- /* relatedPosts
57
- /*-------------------------------------------*/
58
- /* auto_eyecatch
59
- /*-------------------------------------------*/
60
- /* disable_ping-back
61
- /*-------------------------------------------*/
62
- /* TinyMCE Style Tags
63
- /*-------------------------------------------*/
64
- /* Page Top Button
65
- /*-------------------------------------------*/
66
-
67
- /*-------------------------------------------*/
68
- /* bootstrap
69
- /*-------------------------------------------*/
70
- $required_packages[] = array(
71
- 'name' => 'bootstrap',
72
- 'title' => __( 'Print Bootstrap css ( grid / button / table )', 'vkExUnit' ),
73
- 'description' => __( 'If your using theme has already including Bootstrap, you deactivate this item.', 'vkExUnit' ),
74
- 'default' => false,
75
- 'include' => 'bootstrap.php',
76
- );
77
78
- /*-------------------------------------------*/
79
- /* fontawesome
80
- /*-------------------------------------------*/
81
- $required_packages[] = array(
82
- 'name' => 'fontawesome',
83
- 'title' => __( 'Print link fontawesome', 'vkExUnit' ),
84
- 'description' => __( 'Print fontawesome link tag to html head.', 'vkExUnit' ),
85
- 'default' => false,
86
- 'include' => 'font-awesome-config.php',
87
- );
88
89
- /*-------------------------------------------*/
90
- /* icon
91
- /*-------------------------------------------*/
92
- $required_packages[] = array(
93
- 'name' => 'icon',
94
- 'title' => __( 'Favicon setting', 'vkExUnit' ),
95
- 'description' => __( 'About favicon.', 'vkExUnit') .'<br><br>* * * * * * * * * * * * * * * * * * * * * * * * <br>'.__( 'This feature will be discontinued shortly.<br>You can set the site icon from "Site Identity" panel of "Themes > Customize".', 'vkExUnit' ).'<br>* * * * * * * * * * * * * * * * * * * * * * * * ',
96
- 'default' => true,
97
- 'include' => 'icons.php',
98
- );
99
100
- /*-------------------------------------------*/
101
- /* wpTitle
102
- /*-------------------------------------------*/
103
- $required_packages[] = array(
104
- 'name' => 'wpTitle',
105
- 'title' => __( 'Rewrite the title tag', 'vkExUnit' ),
106
- 'description' => __( 'Print is rewritten by its own rules to html head.', 'vkExUnit' ),
107
- 'attr' => array(
108
- array(
109
- 'name' => __( 'Setting','vkExUnit' ),
110
- 'url' => admin_url('admin.php?page=vkExUnit_main_setting#vkExUnit_wp_title'),
111
- 'enable_only' => 1,
112
),
113
- ),
114
- 'default' => true,
115
- 'include' => 'wp_title.php',
116
- );
117
118
- /*-------------------------------------------*/
119
- /* metaKeyword
120
- /*-------------------------------------------*/
121
- $required_packages[] = array(
122
- 'name' => 'metaKeyword',
123
- 'title' => __( 'Print meta Keyword', 'vkExUnit' ),
124
- 'description' => __( 'Print meta Keyword to html head.', 'vkExUnit' ),
125
- 'attr' => array(
126
- array(
127
- 'name' => __( 'Setting','vkExUnit' ),
128
- 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_common_keywords',
129
- 'enable_only' => 1,
130
),
131
- ),
132
- 'default' => true,
133
- 'include' => 'meta_keyword.php',
134
- );
135
- /*-------------------------------------------*/
136
- /* metaDescription
137
- /*-------------------------------------------*/
138
- $required_packages[] = array(
139
- 'name' => 'metaDescription',
140
- 'title' => __( 'Print meta description', 'vkExUnit' ),
141
- 'description' => __( 'Print meta description to html head.', 'vkExUnit' ),
142
- 'default' => true,
143
- 'include' => 'meta_description.php',
144
- );
145
-
146
- /*-------------------------------------------*/
147
- /* sns
148
- /*-------------------------------------------*/
149
- $deskSns = array();
150
- $settingPage = '<a href="'.admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options">'.__( 'Main setting page' ).'</a>';
151
- $deskSns[] = '<ul>';
152
- $deskSns[] = '<li>'.__( 'Print og tags to html head.','vkExUnit' ).'</li>';
153
- $deskSns[] = '<li>'.__( 'Print twitter card tags to html head.','vkExUnit' ).'</li>';
154
- $deskSns[] = '<li>'.__( 'Print social bookmark buttons.','vkExUnit' ).'</li>';
155
- $deskSns[] = '<li>'.__( 'Facebook Page Plugin widget.','vkExUnit' ).'</li>';
156
- $deskSns[] = '<li>'.__( 'Print Follow me box to content bottom.','vkExUnit' ).'</li>';
157
- $deskSns[] = '</ul>';
158
- $deskSns[] = '<p>'.sprintf( __( '* You can stop the function separately from the %s.', 'vkExUnit' ), $settingPage ).'</p>';
159
160
- $required_packages[] = array(
161
- 'name' => 'sns',
162
- 'title' => __( 'Social media cooperation', 'vkExUnit' ),
163
- 'description' => $deskSns,
164
- 'attr' => array(
165
- array(
166
- 'name' => __( 'Setting','vkExUnit' ),
167
- 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options',
168
- 'enable_only' => 1,
169
),
170
- ),
171
- 'default' => true,
172
- 'include' => 'sns/sns.php',
173
- );
174
175
- /*-------------------------------------------*/
176
- /* ga
177
- /*-------------------------------------------*/
178
- $required_packages[] = array(
179
- 'name' => 'ga',
180
- 'title' => 'Google Analytics',
181
- 'description' => __( 'Print Google Analytics tracking code.', 'vkExUnit' ),
182
- 'attr' => array(
183
- array(
184
- 'name' => __( 'Setting','vkExUnit' ),
185
- 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_ga_options',
186
- 'enable_only' => 1,
187
),
188
- ),
189
- 'default' => true,
190
- 'include' => 'google_analytics/google_analytics.php',
191
- );
192
193
- /*-------------------------------------------*/
194
- /* otherWidgets
195
- /*-------------------------------------------*/
196
- $desk = array();
197
- $desk[] = '<p>'.__( 'You can use various widgets.', 'vkExUnit' ).'</p>';
198
- $desk[] = '<ul>';
199
- $desk[] = '<li>'.__( 'VK_Recent Posts - display the link text and the date of the latest article title.','vkExUnit' ).'</li>';
200
- $desk[] = '<li>'.__( 'VK_Page content to widget - display the contents of the page to the widgets.','vkExUnit' ).'</li>';
201
- $desk[] = '<li>'.__( 'VK_Profile - display the profile entered in the widget.','vkExUnit' ).'</li>';
202
- $desk[] = '<li>'.__( 'VK_FB Page Plugin - display the Facebook Page Plugin.','vkExUnit' ).'</li>';
203
- $desk[] = '<li>'.__( 'VK_3PR area - display the 3PR area.','vkExUnit' ).'</li>';
204
- $desk[] = '<li>VK_'.__( 'categories/tags list', 'vkExUnit' ).__( 'Displays a categories, tags or format list.', 'vkExUnit' ).'</li>';
205
- $desk[] = '<li>VK_'.__( 'archive list', 'vkExUnit' ).__( 'Displays a list of archives. You can choose the post type and also to display archives by month or by year.', 'vkExUnit' ).'</li>';
206
- $desk[] = '</ul>';
207
-
208
- $required_packages[] = array(
209
- 'name' => 'otherWidgets',
210
- 'title' => __( 'Widgets', 'vkExUnit' ),
211
- 'description' => $desk,
212
- 'attr' => array(
213
- array(
214
- 'name' => __( 'Setting','vkExUnit' ),
215
- 'url' => admin_url().'widgets.php',
216
- 'enable_only' => 1,
217
),
218
- ),
219
- 'default' => true,
220
- 'include' => 'other_widget/other_widget.php',
221
- );
222
223
- /*-------------------------------------------*/
224
- /* css_customize
225
- /*-------------------------------------------*/
226
- $required_packages[] = array(
227
- 'name' => 'css_customize',
228
- 'title' => __( 'CSS customize', 'vkExUnit' ),
229
- 'description' => __( 'You can set Customize CSS.', 'vkExUnit' ),
230
- 'attr' => array(
231
- array(
232
- 'name' => __( 'Setting','vkExUnit' ),
233
- 'url' => admin_url().'admin.php?page=vkExUnit_css_customize',
234
- 'enable_only' => 1,
235
),
236
- ),
237
- 'default' => true,
238
- 'include' => 'css_customize/css_customize.php',
239
- );
240
241
- /*-------------------------------------------*/
242
- /* ChildPageIndex
243
/*-------------------------------------------*/
244
245
- $required_packages[] = array(
246
- 'name' => 'childPageIndex',
247
- 'title' => __( 'Child page index', 'vkExUnit' ),
248
- 'description' => __( 'At the bottom of the specified page, it will display a list of the child page.', 'vkExUnit' ),
249
- 'default' => true,
250
- 'include' => 'child_page_index.php',
251
- );
252
-
253
254
- /*-------------------------------------------*/
255
- /* pageList_ancestor
256
- /*-------------------------------------------*/
257
- $required_packages[] = array(
258
- 'name' => 'pageList_ancestor',
259
- 'title' => __( 'Page list from ancestor', 'vkExUnit' ),
260
- 'description' => __( 'Display Page list from ancestor at after content.', 'vkExUnit' ),
261
- 'default' => true,
262
- 'include' => 'pageList_ancestor.php',
263
- );
264
265
- /*-------------------------------------------*/
266
- /* Contact Section
267
- /*-------------------------------------------*/
268
- $required_packages[] = array(
269
- 'name' => 'contact_section',
270
- 'title' => __( 'Contact Section', 'vkExUnit' ),
271
- 'description' => __( 'Display Contact Section at after content.', 'vkExUnit' ),
272
- 'attr' => array(
273
- array(
274
- 'name' => __( 'Setting','vkExUnit' ),
275
- 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_contact',
276
- 'enable_only' => 1,
277
),
278
- ),
279
- 'default' => true,
280
- 'include' => 'contact-section/contact-section.php',
281
- );
282
-
283
- /*-------------------------------------------*/
284
- /* Sitemap_page
285
- /*-------------------------------------------*/
286
- $required_packages[] = array(
287
- 'name' => 'sitemap_page',
288
- 'title' => __( 'Display HTML Site Map', 'vkExUnit' ),
289
- 'description' => __( 'It displays a HTML Site Map to the specified page.', 'vkExUnit' ),
290
- 'default' => true,
291
- 'include' => 'sitemap_page/sitemap_page.php',
292
- );
293
-
294
295
- /*-------------------------------------------*/
296
- /* Call To Action
297
- /*-------------------------------------------*/
298
- $cta_description = __( 'Display the CTA at the end of the post content.', 'vkExUnit' );
299
- $cta_description .= '<br>';
300
- $cta_description .= __( 'The CTA stands for "Call to action" and this is the area that prompts the user behavior.', 'vkExUnit' );
301
- $cta_description .= '<br>';
302
- $cta_description .= __( 'As an example, text message and a link button for induction to the free sample download page.', 'vkExUnit' );
303
304
- $required_packages[] = array(
305
- 'name' => 'call_to_action',
306
- 'title' => __( 'Call To Action', 'vkExUnit' ),
307
- 'description' => $cta_description,
308
- 'attr' => array(
309
- array(
310
- 'name' => __( 'Setting','vkExUnit' ),
311
- 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_cta_settings',
312
- 'enable_only' => 1,
313
- ),
314
- array(
315
- 'name' => __( 'Contents setting','vkExUnit' ),
316
- 'url' => admin_url().'edit.php?post_type=cta',
317
- 'enable_only' => 1,
318
),
319
- ),
320
- 'default' => true,
321
- 'include' => 'call-to-action-config.php',
322
- );
323
324
- /*-------------------------------------------*/
325
- /* insert_ads
326
- /*-------------------------------------------*/
327
- $required_packages[] = array(
328
- 'name' => 'insert_ads',
329
- 'title' => __( 'Insert ads', 'vkExUnit' ),
330
- 'description' => __( 'Insert ads to content.', 'vkExUnit' ),
331
- 'attr' => array(
332
- array(
333
- 'name' => __( 'Setting','vkExUnit' ),
334
- 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_Ads',
335
- 'enable_only' => 1,
336
),
337
- ),
338
- 'default' => true,
339
- 'include' => 'insert_ads.php',
340
- );
341
- /*-------------------------------------------*/
342
- /* relatedPosts
343
- /*-------------------------------------------*/
344
- $required_packages[] = array(
345
- 'name' => 'relatedPosts',
346
- 'title' => __( 'Related posts', 'vkExUnit' ),
347
- 'description' => __( 'Print Related posts lists to post content bottom.', 'vkExUnit' ),
348
- 'default' => true,
349
- 'include' => 'related_posts/related_posts.php',
350
- );
351
-
352
- /*-------------------------------------------*/
353
- /* auto_eyecatch
354
- /*-------------------------------------------*/
355
- $required_packages[] = array(
356
- 'name' => 'auto_eyecatch',
357
- 'title' => __( 'Automatic Eye Catch insert', 'vkExUnit' ),
358
- 'description' => __( 'Display Eye Catch image at before content.', 'vkExUnit' ),
359
- 'default' => false,
360
- 'include' => 'auto_eyecatch.php',
361
- );
362
-
363
- /*-------------------------------------------*/
364
- /* disable_ping-back
365
- /*-------------------------------------------*/
366
- $required_packages[] = array(
367
- 'name' => 'disable_ping-back',
368
- 'title' => __( 'Disable ping back', 'vkExUnit' ),
369
- 'description' => __( 'Disable xmlrpc ping back.', 'vkExUnit' ),
370
- 'default' => false,
371
- 'include' => 'disable_ping-back.php',
372
- 'hidden' => true,
373
- );
374
-
375
-
376
- $required_packages[] = array(
377
- 'name' => 'disable_dashbord',
378
- 'title' => __( 'Disable dashbord', 'vkExUnit' ),
379
- 'description' => __( 'Disable dashbord', 'vkExUnit' ),
380
- 'default' => false,
381
- 'include' => 'disable_dashbord.php',
382
- 'hidden' => true,
383
- );
384
385
- /*-------------------------------------------*/
386
- /* TinyMCE Style Tags
387
- /*-------------------------------------------*/
388
- $required_packages[] = array(
389
- 'name' => 'tiny_mce_style_tags',
390
- 'title' => __( 'TinyMCE Style Tags', 'vkExUnit' ),
391
- 'description' => __( 'Add TinyMCE Editor to style tags.', 'vkExUnit' ),
392
- 'default' => true,
393
- 'include' => 'tiny_mce_style_tags.php',
394
- );
395
396
397
- $required_packages[] = array(
398
- 'name' => 'admin_bar',
399
- 'title' => __( 'Admin bar manu', 'vkExUnit' ),
400
- 'description' => __( 'Add ExUnit menu to admin bar.', 'vkExUnit' ),
401
- 'default' => true,
402
- 'include' => '../plugins_admin/admin_bar.php',
403
- );
404
405
- /*-------------------------------------------*/
406
- /* post_type_manager
407
- /*-------------------------------------------*/
408
- $required_packages[] = array(
409
- 'name' => 'post_type_manager',
410
- 'title' => __( 'Post Type Manager', 'vkExUnit' ),
411
- 'description' => __( 'Add custom post types and custom taxonomies.', 'vkExUnit' ),
412
- 'attr' => array(
413
- array(
414
- 'name' => __( 'Setting','vkExUnit' ),
415
- 'url' => admin_url().'edit.php?post_type=post_type_manage',
416
- 'enable_only' => 1,
417
),
418
- ),
419
- 'default' => false,
420
- 'include' => 'post-type-manager-config.php'
421
- );
422
-
423
- /*-------------------------------------------*/
424
- /* Page Top Button
425
- /*-------------------------------------------*/
426
- $required_packages[] = array(
427
- 'name' => 'pagetop_button',
428
- 'title' => __( 'Page Top Button', 'vkExUnit' ),
429
- 'description' => __( 'The page top button is displayed in the lower right corner of the screen.', 'vkExUnit' ),
430
- 'default' => false,
431
- 'include' => 'pagetop-btn/pagetop-btn.php'
432
- );
433
434
435
foreach ( $required_packages as $package ) {
436
vkExUnit_package_register( $package );
1
<?php
2
+ function vkExUnit_get_packages() {
3
+ $required_packages = array();
4
+ /*
5
+ Example :
6
+ $required_packages[] = array(
7
'name' => 'auto_eyecatch',
8
'title' => __('Automatic Eye Catch insert', 'vkExUnit'),
9
'description' => __('Display Eye Catch image at before content.', 'vkExUnit'),
16
),
17
'default' => false,
18
'include' => '/auto_eyecatch.php',
19
+ );
20
21
+ */
22
23
+ /*-------------------------------------------*/
24
+ /* bootstrap
25
+ /*-------------------------------------------*/
26
+ /* fontawesome
27
+ /*-------------------------------------------*/
28
+ /* icon
29
+ /*-------------------------------------------*/
30
+ /* wpTitle
31
+ /*-------------------------------------------*/
32
+ /* metaKeyword
33
+ /*-------------------------------------------*/
34
+ /* metaDescription
35
+ /*-------------------------------------------*/
36
+ /* sns
37
+ /*-------------------------------------------*/
38
+ /* ga
39
+ /*-------------------------------------------*/
40
+ /* otherWidgets
41
+ /*-------------------------------------------*/
42
+ /* css_customize
43
+ /*-------------------------------------------*/
44
+ /* Contact Section
45
+ /*-------------------------------------------*/
46
+ /* ChildPageIndex
47
+ /*-------------------------------------------*/
48
+ /* pageList_ancestor
49
+ /*-------------------------------------------*/
50
+ /* Sitemap_page
51
+ /*-------------------------------------------*/
52
+ /* Call To Action
53
+ /*-------------------------------------------*/
54
+ /* insert_ads
55
+ /*-------------------------------------------*/
56
+ /* relatedPosts
57
+ /*-------------------------------------------*/
58
+ /* auto_eyecatch
59
+ /*-------------------------------------------*/
60
+ /* disable_ping-back
61
+ /*-------------------------------------------*/
62
+ /* TinyMCE Style Tags
63
+ /*-------------------------------------------*/
64
+ /* Page Top Button
65
+ /*-------------------------------------------*/
66
67
+ /*-------------------------------------------*/
68
+ /* bootstrap
69
+ /*-------------------------------------------*/
70
+ $required_packages[] = array(
71
+ 'name' => 'bootstrap',
72
+ 'title' => __( 'Print Bootstrap css ( grid / button / table )', 'vkExUnit' ),
73
+ 'description' => __( 'If your using theme has already including Bootstrap, you deactivate this item.', 'vkExUnit' ),
74
+ 'default' => false,
75
+ 'include' => 'bootstrap.php',
76
+ );
77
78
+ /*-------------------------------------------*/
79
+ /* fontawesome
80
+ /*-------------------------------------------*/
81
+ $required_packages[] = array(
82
+ 'name' => 'fontawesome',
83
+ 'title' => __( 'Print link fontawesome', 'vkExUnit' ),
84
+ 'description' => __( 'Print fontawesome link tag to html head.', 'vkExUnit' ),
85
+ 'default' => false,
86
+ 'include' => 'font-awesome-config.php',
87
+ );
88
89
+ /*-------------------------------------------*/
90
+ /* icon
91
+ /*-------------------------------------------*/
92
+ $required_packages[] = array(
93
+ 'name' => 'icon',
94
+ 'title' => __( 'Favicon setting', 'vkExUnit' ),
95
+ 'description' => __( 'About favicon.', 'vkExUnit' ) . '<br><br>* * * * * * * * * * * * * * * * * * * * * * * * <br>' . __( 'This feature will be discontinued shortly.<br>You can set the site icon from "Site Identity" panel of "Themes > Customize".', 'vkExUnit' ) . '<br>* * * * * * * * * * * * * * * * * * * * * * * * ',
96
+ 'default' => true,
97
+ 'include' => 'icons.php',
98
+ );
99
100
+ /*-------------------------------------------*/
101
+ /* wpTitle
102
+ /*-------------------------------------------*/
103
+ $required_packages[] = array(
104
+ 'name' => 'wpTitle',
105
+ 'title' => __( 'Rewrite the title tag', 'vkExUnit' ),
106
+ 'description' => __( 'Print is rewritten by its own rules to html head.', 'vkExUnit' ),
107
+ 'attr' => array(
108
+ array(
109
+ 'name' => __( 'Setting', 'vkExUnit' ),
110
+ 'url' => admin_url( 'admin.php?page=vkExUnit_main_setting#vkExUnit_wp_title' ),
111
+ 'enable_only' => 1,
112
+ ),
113
),
114
+ 'default' => true,
115
+ 'include' => 'wp_title.php',
116
+ );
117
118
+ /*-------------------------------------------*/
119
+ /* metaKeyword
120
+ /*-------------------------------------------*/
121
+ $required_packages[] = array(
122
+ 'name' => 'metaKeyword',
123
+ 'title' => __( 'Print meta Keyword', 'vkExUnit' ),
124
+ 'description' => __( 'Print meta Keyword to html head.', 'vkExUnit' ),
125
+ 'attr' => array(
126
+ array(
127
+ 'name' => __( 'Setting', 'vkExUnit' ),
128
+ 'url' => admin_url() . 'admin.php?page=vkExUnit_main_setting#vkExUnit_common_keywords',
129
+ 'enable_only' => 1,
130
+ ),
131
),
132
+ 'default' => true,
133
+ 'include' => 'meta_keyword.php',
134
+ );
135
+ /*-------------------------------------------*/
136
+ /* metaDescription
137
+ /*-------------------------------------------*/
138
+ $required_packages[] = array(
139
+ 'name' => 'metaDescription',
140
+ 'title' => __( 'Print meta description', 'vkExUnit' ),
141
+ 'description' => __( 'Print meta description to html head.', 'vkExUnit' ),
142
+ 'default' => true,
143
+ 'include' => 'meta_description.php',
144
+ );
145
146
+ /*-------------------------------------------*/
147
+ /* sns
148
+ /*-------------------------------------------*/
149
+ $deskSns = array();
150
+ $settingPage = '<a href="' . admin_url() . 'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options">' . __( 'Main setting page' ) . '</a>';
151
+ $deskSns[] = '<ul>';
152
+ $deskSns[] = '<li>' . __( 'Print og tags to html head.', 'vkExUnit' ) . '</li>';
153
+ $deskSns[] = '<li>' . __( 'Print twitter card tags to html head.', 'vkExUnit' ) . '</li>';
154
+ $deskSns[] = '<li>' . __( 'Print social bookmark buttons.', 'vkExUnit' ) . '</li>';
155
+ $deskSns[] = '<li>' . __( 'Facebook Page Plugin widget.', 'vkExUnit' ) . '</li>';
156
+ $deskSns[] = '<li>' . __( 'Print Follow me box to content bottom.', 'vkExUnit' ) . '</li>';
157
+ $deskSns[] = '</ul>';
158
+ $deskSns[] = '<p>' . sprintf( __( '* You can stop the function separately from the %s.', 'vkExUnit' ), $settingPage ) . '</p>';
159
+
160
+ $required_packages[] = array(
161
+ 'name' => 'sns',
162
+ 'title' => __( 'Social media cooperation', 'vkExUnit' ),
163
+ 'description' => $deskSns,
164
+ 'attr' => array(
165
+ array(
166
+ 'name' => __( 'Setting', 'vkExUnit' ),
167
+ 'url' => admin_url() . 'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options',
168
+ 'enable_only' => 1,
169
+ ),
170
),
171
+ 'default' => true,
172
+ 'include' => 'sns/sns.php',
173
+ );
174
175
+ /*-------------------------------------------*/
176
+ /* ga
177
+ /*-------------------------------------------*/
178
+ $required_packages[] = array(
179
+ 'name' => 'ga',
180
+ 'title' => 'Google Analytics',
181
+ 'description' => __( 'Print Google Analytics tracking code.', 'vkExUnit' ),
182
+ 'attr' => array(
183
+ array(
184
+ 'name' => __( 'Setting', 'vkExUnit' ),
185
+ 'url' => admin_url() . 'admin.php?page=vkExUnit_main_setting#vkExUnit_ga_options',
186
+ 'enable_only' => 1,
187
+ ),
188
),
189
+ 'default' => true,
190
+ 'include' => 'google_analytics/google_analytics.php',
191
+ );
192
193
+ /*-------------------------------------------*/
194
+ /* otherWidgets
195
+ /*-------------------------------------------*/
196
+ $desk = array();
197
+ $desk[] = '<p>' . __( 'You can use various widgets.', 'vkExUnit' ) . '</p>';
198
+ $desk[] = '<ul>';
199
+ $desk[] = '<li>' . __( 'VK_Recent Posts - display the link text and the date of the latest article title.', 'vkExUnit' ) . '</li>';
200
+ $desk[] = '<li>' . __( 'VK_Page content to widget - display the contents of the page to the widgets.', 'vkExUnit' ) . '</li>';
201
+ $desk[] = '<li>' . __( 'VK_Profile - display the profile entered in the widget.', 'vkExUnit' ) . '</li>';
202
+ $desk[] = '<li>' . __( 'VK_FB Page Plugin - display the Facebook Page Plugin.', 'vkExUnit' ) . '</li>';
203
+ $desk[] = '<li>' . __( 'VK_3PR area - display the 3PR area.', 'vkExUnit' ) . '</li>';
204
+ $desk[] = '<li>VK_' . __( 'categories/tags list', 'vkExUnit' ) . __( 'Displays a categories, tags or format list.', 'vkExUnit' ) . '</li>';
205
+ $desk[] = '<li>VK_' . __( 'archive list', 'vkExUnit' ) . __( 'Displays a list of archives. You can choose the post type and also to display archives by month or by year.', 'vkExUnit' ) . '</li>';
206
+ $desk[] = '</ul>';
207
+
208
+ $required_packages[] = array(
209
+ 'name' => 'otherWidgets',
210
+ 'title' => __( 'Widgets', 'vkExUnit' ),
211
+ 'description' => $desk,
212
+ 'attr' => array(
213
+ array(
214
+ 'name' => __( 'Setting', 'vkExUnit' ),
215
+ 'url' => admin_url() . 'widgets.php',
216
+ 'enable_only' => 1,
217
+ ),
218
),
219
+ 'default' => true,
220
+ 'include' => 'other_widget/other_widget.php',
221
+ );
222
223
+ /*-------------------------------------------*/
224
+ /* css_customize
225
+ /*-------------------------------------------*/
226
+ $required_packages[] = array(
227
+ 'name' => 'css_customize',
228
+ 'title' => __( 'CSS customize', 'vkExUnit' ),
229
+ 'description' => __( 'You can set Customize CSS.', 'vkExUnit' ),
230
+ 'attr' => array(
231
+ array(
232
+ 'name' => __( 'Setting', 'vkExUnit' ),
233
+ 'url' => admin_url() . 'admin.php?page=vkExUnit_css_customize',
234
+ 'enable_only' => 1,
235
+ ),
236
),
237
+ 'default' => true,
238
+ 'include' => 'css_customize/css_customize.php',
239
+ );
240
241
+ /*-------------------------------------------*/
242
+ /* ChildPageIndex
243
/*-------------------------------------------*/
244
245
+ $required_packages[] = array(
246
+ 'name' => 'childPageIndex',
247
+ 'title' => __( 'Child page index', 'vkExUnit' ),
248
+ 'description' => __( 'At the bottom of the specified page, it will display a list of the child page.', 'vkExUnit' ),
249
+ 'default' => true,
250
+ 'include' => 'child_page_index.php',
251
+ );
252
253
+ /*-------------------------------------------*/
254
+ /* pageList_ancestor
255
+ /*-------------------------------------------*/
256
+ $required_packages[] = array(
257
+ 'name' => 'pageList_ancestor',
258
+ 'title' => __( 'Page list from ancestor', 'vkExUnit' ),
259
+ 'description' => __( 'Display Page list from ancestor at after content.', 'vkExUnit' ),
260
+ 'default' => true,
261
+ 'include' => 'pageList_ancestor.php',
262
+ );
263
264
+ /*-------------------------------------------*/
265
+ /* Contact Section
266
+ /*-------------------------------------------*/
267
+ $required_packages[] = array(
268
+ 'name' => 'contact_section',
269
+ 'title' => __( 'Contact Section', 'vkExUnit' ),
270
+ 'description' => __( 'Display Contact Section at after content.', 'vkExUnit' ),
271
+ 'attr' => array(
272
+ array(
273
+ 'name' => __( 'Setting', 'vkExUnit' ),
274
+ 'url' => admin_url() . 'admin.php?page=vkExUnit_main_setting#vkExUnit_contact',
275
+ 'enable_only' => 1,
276
+ ),
277
),
278
+ 'default' => true,
279
+ 'include' => 'contact-section/contact-section.php',
280
+ );
281
282
+ /*-------------------------------------------*/
283
+ /* Sitemap_page
284
+ /*-------------------------------------------*/
285
+ $required_packages[] = array(
286
+ 'name' => 'sitemap_page',
287
+ 'title' => __( 'Display HTML Site Map', 'vkExUnit' ),
288
+ 'description' => __( 'It displays a HTML Site Map to the specified page.', 'vkExUnit' ),
289
+ 'default' => true,
290
+ 'include' => 'sitemap_page/sitemap_page.php',
291
+ );
292
293
+ /*-------------------------------------------*/
294
+ /* Call To Action
295
+ /*-------------------------------------------*/
296
+ $cta_description = __( 'Display the CTA at the end of the post content.', 'vkExUnit' );
297
+ $cta_description .= '<br>';
298
+ $cta_description .= __( 'The CTA stands for "Call to action" and this is the area that prompts the user behavior.', 'vkExUnit' );
299
+ $cta_description .= '<br>';
300
+ $cta_description .= __( 'As an example, text message and a link button for induction to the free sample download page.', 'vkExUnit' );
301
+
302
+ $required_packages[] = array(
303
+ 'name' => 'call_to_action',
304
+ 'title' => __( 'Call To Action', 'vkExUnit' ),
305
+ 'description' => $cta_description,
306
+ 'attr' => array(
307
+ array(
308
+ 'name' => __( 'Setting', 'vkExUnit' ),
309
+ 'url' => admin_url() . 'admin.php?page=vkExUnit_main_setting#vkExUnit_cta_settings',
310
+ 'enable_only' => 1,
311
+ ),
312
+ array(
313
+ 'name' => __( 'Contents setting', 'vkExUnit' ),
314
+ 'url' => admin_url() . 'edit.php?post_type=cta',
315
+ 'enable_only' => 1,
316
+ ),
317
),
318
+ 'default' => true,
319
+ 'include' => 'call-to-action-config.php',
320
+ );
321
322
+ /*-------------------------------------------*/
323
+ /* insert_ads
324
+ /*-------------------------------------------*/
325
+ $required_packages[] = array(
326
+ 'name' => 'insert_ads',
327
+ 'title' => __( 'Insert ads', 'vkExUnit' ),
328
+ 'description' => __( 'Insert ads to content.', 'vkExUnit' ),
329
+ 'attr' => array(
330
+ array(
331
+ 'name' => __( 'Setting', 'vkExUnit' ),
332
+ 'url' => admin_url() . 'admin.php?page=vkExUnit_main_setting#vkExUnit_Ads',
333
+ 'enable_only' => 1,
334
+ ),
335
),
336
+ 'default' => true,
337
+ 'include' => 'insert_ads.php',
338
+ );
339
+ /*-------------------------------------------*/
340
+ /* relatedPosts
341
+ /*-------------------------------------------*/
342
+ $required_packages[] = array(
343
+ 'name' => 'relatedPosts',
344
+ 'title' => __( 'Related posts', 'vkExUnit' ),
345
+ 'description' => __( 'Print Related posts lists to post content bottom.', 'vkExUnit' ),
346
+ 'default' => true,
347
+ 'include' => 'related_posts/related_posts.php',
348
+ );
349
350
+ /*-------------------------------------------*/
351
+ /* auto_eyecatch
352
+ /*-------------------------------------------*/
353
+ $required_packages[] = array(
354
+ 'name' => 'auto_eyecatch',
355
+ 'title' => __( 'Automatic Eye Catch insert', 'vkExUnit' ),
356
+ 'description' => __( 'Display Eye Catch image at before content.', 'vkExUnit' ),
357
+ 'default' => false,
358
+ 'include' => 'auto_eyecatch.php',
359
+ );
360
361
+ /*-------------------------------------------*/
362
+ /* disable_ping-back
363
+ /*-------------------------------------------*/
364
+ $required_packages[] = array(
365
+ 'name' => 'disable_ping-back',
366
+ 'title' => __( 'Disable ping back', 'vkExUnit' ),
367
+ 'description' => __( 'Disable xmlrpc ping back.', 'vkExUnit' ),
368
+ 'default' => false,
369
+ 'include' => 'disable_ping-back.php',
370
+ 'hidden' => true,
371
+ );
372
+
373
+ $required_packages[] = array(
374
+ 'name' => 'disable_dashbord',
375
+ 'title' => __( 'Disable dashbord', 'vkExUnit' ),
376
+ 'description' => __( 'Disable dashbord', 'vkExUnit' ),
377
+ 'default' => false,
378
+ 'include' => 'disable_dashbord.php',
379
+ 'hidden' => true,
380
+ );
381
382
+ /*-------------------------------------------*/
383
+ /* TinyMCE Style Tags
384
+ /*-------------------------------------------*/
385
+ $required_packages[] = array(
386
+ 'name' => 'tiny_mce_style_tags',
387
+ 'title' => __( 'TinyMCE Style Tags', 'vkExUnit' ),
388
+ 'description' => __( 'Add TinyMCE Editor to style tags.', 'vkExUnit' ),
389
+ 'default' => true,
390
+ 'include' => 'tiny_mce_style_tags.php',
391
+ );
392
+
393
+ $required_packages[] = array(
394
+ 'name' => 'admin_bar',
395
+ 'title' => __( 'Admin bar manu', 'vkExUnit' ),
396
+ 'description' => __( 'Add ExUnit menu to admin bar.', 'vkExUnit' ),
397
+ 'default' => true,
398
+ 'include' => '../plugins_admin/admin_bar.php',
399
+ );
400
401
+ /*-------------------------------------------*/
402
+ /* post_type_manager
403
+ /*-------------------------------------------*/
404
+ $required_packages[] = array(
405
+ 'name' => 'post_type_manager',
406
+ 'title' => __( 'Post Type Manager', 'vkExUnit' ),
407
+ 'description' => __( 'Add custom post types and custom taxonomies.', 'vkExUnit' ),
408
+ 'attr' => array(
409
+ array(
410
+ 'name' => __( 'Setting', 'vkExUnit' ),
411
+ 'url' => admin_url() . 'edit.php?post_type=post_type_manage',
412
+ 'enable_only' => 1,
413
+ ),
414
),
415
+ 'default' => false,
416
+ 'include' => 'post-type-manager-config.php',
417
+ );
418
419
+ /*-------------------------------------------*/
420
+ /* Page Top Button
421
+ /*-------------------------------------------*/
422
+ $required_packages[] = array(
423
+ 'name' => 'pagetop_button',
424
+ 'title' => __( 'Page Top Button', 'vkExUnit' ),
425
+ 'description' => __( 'The page top button is displayed in the lower right corner of the screen.', 'vkExUnit' ),
426
+ 'default' => false,
427
+ 'include' => 'pagetop-btn/pagetop-btn.php',
428
+ );
429
+ return $required_packages;
430
+ } // function vkExUnit_get_packages(){
431
+
432
+ $required_packages = vkExUnit_get_packages();
433
434
foreach ( $required_packages as $package ) {
435
vkExUnit_package_register( $package );
vkExUnit.php CHANGED
@@ -3,7 +3,7 @@
3
* Plugin Name: VK All in One Expansion Unit
4
* Plugin URI: https://ex-unit.nagoya
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: 6.4.7
7
* Author: Vektor,Inc.
8
* Text Domain: vkExUnit
9
* Domain Path: /languages
3
* Plugin Name: VK All in One Expansion Unit
4
* Plugin URI: https://ex-unit.nagoya
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: 6.4.8
7
* Author: Vektor,Inc.
8
* Text Domain: vkExUnit
9
* Domain Path: /languages