VK All in One Expansion Unit - Version 2.3.5

Version Description

Download this release

Release Info

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

Code changes from version 2.3.4 to 2.3.5

packages.php CHANGED
@@ -28,15 +28,17 @@ $required_packages[] = array(
28
  /*-------------------------------------------*/
29
  /* wpTitle
30
  /*-------------------------------------------*/
31
- /* metaDescription
32
  /*-------------------------------------------*/
33
- /* metaKeyword
34
  /*-------------------------------------------*/
35
  /* sns
36
  /*-------------------------------------------*/
37
  /* ga
38
  /*-------------------------------------------*/
39
- /* relatedPosts
 
 
40
  /*-------------------------------------------*/
41
  /* Contact Section
42
  /*-------------------------------------------*/
@@ -46,15 +48,12 @@ $required_packages[] = array(
46
  /*-------------------------------------------*/
47
  /* Call To Action
48
  /*-------------------------------------------*/
49
- /* otherWidgets
50
  /*-------------------------------------------*/
51
- /* css_customize
52
  /*-------------------------------------------*/
53
  /* auto_eyecatch
54
  /*-------------------------------------------*/
55
- /* insert_ads
56
- /*-------------------------------------------*/
57
-
58
 
59
  /*-------------------------------------------*/
60
  /* bootstrap
@@ -96,6 +95,22 @@ $required_packages[] = array(
96
  'default' => true
97
  );
98
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
  /*-------------------------------------------*/
100
  /* metaDescription
101
  /*-------------------------------------------*/
@@ -135,16 +150,16 @@ $required_packages[] = array(
135
  );
136
 
137
  /*-------------------------------------------*/
138
- /* metaKeyword
139
  /*-------------------------------------------*/
140
  $required_packages[] = array(
141
- 'name' => 'metaKeyword',
142
- 'title' => __('Print meta Keyword', 'vkExUnit'),
143
- 'description' => __('Print meta Keyword to html head.', 'vkExUnit'),
144
  'attr' => array(
145
  array(
146
  'name'=>__('Setting','vkExUnit'),
147
- 'url'=> admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_common_keywords',
148
  'enable_only' => 1,
149
  )
150
  ),
@@ -152,30 +167,49 @@ $required_packages[] = array(
152
  );
153
 
154
  /*-------------------------------------------*/
155
- /* ga
156
  /*-------------------------------------------*/
 
 
 
 
 
 
 
 
 
 
 
 
157
  $required_packages[] = array(
158
- 'name' => 'ga',
159
- 'title' => 'Google Analytics',
160
- 'description' => __('Print Google Analytics tracking code.', 'vkExUnit'),
161
  'attr' => array(
162
  array(
163
  'name'=>__('Setting','vkExUnit'),
164
- 'url'=> admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_ga_options',
165
  'enable_only' => 1,
166
  )
167
  ),
168
- 'default' => true
169
  );
170
 
171
  /*-------------------------------------------*/
172
- /* relatedPosts
173
  /*-------------------------------------------*/
174
  $required_packages[] = array(
175
- 'name' => 'relatedPosts',
176
- 'title' => __('Related posts', 'vkExUnit'),
177
- 'description' => __('Print Related posts lists to post content bottom.', 'vkExUnit'),
178
- 'default' => true
 
 
 
 
 
 
 
179
  );
180
 
181
  /*-------------------------------------------*/
@@ -217,6 +251,7 @@ $required_packages[] = array(
217
  'default' => true,
218
  );
219
 
 
220
  /*-------------------------------------------*/
221
  /* Call To Action
222
  /*-------------------------------------------*/
@@ -245,52 +280,6 @@ $required_packages[] = array(
245
  'default' => true,
246
  );
247
 
248
- /*-------------------------------------------*/
249
- /* otherWidgets
250
- /*-------------------------------------------*/
251
- $desk = array();
252
- $desk[] = '<p>'.__('You can use various widgets.', 'vkExUnit').'</p>';
253
- $desk[] = '<ul>';
254
- $desk[] = '<li>'.__('VK_Recent Posts - display the link text and the date of the latest article title.','vkExUnit').'</li>';
255
- $desk[] = '<li>'.__('VK_Page content to widget - display the contents of the page to the widgets.','vkExUnit').'</li>';
256
- $desk[] = '<li>'.__('VK_Profile - display the profile entered in the widget.','vkExUnit').'</li>';
257
- $desk[] = '<li>'.__('VK_FB Page Plugin - display the Facebook Page Plugin.','vkExUnit').'</li>';
258
- $desk[] = '<li>'.__('VK_3PR area - display the 3PR area.','vkExUnit').'</li>';
259
- $desk[] = '<li>VK_'.__( 'categories/tags list', 'vkExUnit' ).__( 'Displays a categories, tags or format list.', 'vkExUnit' ).'</li>';
260
- $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>';
261
- $desk[] = '</ul>';
262
-
263
- $required_packages[] = array(
264
- 'name' => 'otherWidgets',
265
- 'title' => __('Widgets', 'vkExUnit'),
266
- 'description' => $desk,
267
- 'attr' => array(
268
- array(
269
- 'name'=>__('Setting','vkExUnit'),
270
- 'url'=> admin_url().'widgets.php',
271
- 'enable_only' => 1,
272
- )
273
- ),
274
- 'default' => true,
275
- );
276
-
277
- /*-------------------------------------------*/
278
- /* css_customize
279
- /*-------------------------------------------*/
280
- $required_packages[] = array(
281
- 'name' => 'css_customize',
282
- 'title' => __('CSS customize', 'vkExUnit'),
283
- 'description' => __('You can set Customize CSS.', 'vkExUnit'),
284
- 'attr' => array(
285
- array(
286
- 'name'=>__('Setting','vkExUnit'),
287
- 'url'=> admin_url().'admin.php?page=vkExUnit_css_customize',
288
- 'enable_only' => 1,
289
- )
290
- ),
291
- 'default' => true,
292
- );
293
-
294
  /*-------------------------------------------*/
295
  /* insert_ads
296
  /*-------------------------------------------*/
@@ -307,6 +296,15 @@ $required_packages[] = array(
307
  ),
308
  'default' => true,
309
  );
 
 
 
 
 
 
 
 
 
310
 
311
  /*-------------------------------------------*/
312
  /* auto_eyecatch
@@ -319,6 +317,7 @@ $required_packages[] = array(
319
  );
320
 
321
 
 
322
  foreach( $required_packages as $package ){
323
  vkExUnit_package_register( $package );
324
  }
28
  /*-------------------------------------------*/
29
  /* wpTitle
30
  /*-------------------------------------------*/
31
+ /* metaKeyword
32
  /*-------------------------------------------*/
33
+ /* metaDescription
34
  /*-------------------------------------------*/
35
  /* sns
36
  /*-------------------------------------------*/
37
  /* ga
38
  /*-------------------------------------------*/
39
+ /* otherWidgets
40
+ /*-------------------------------------------*/
41
+ /* css_customize
42
  /*-------------------------------------------*/
43
  /* Contact Section
44
  /*-------------------------------------------*/
48
  /*-------------------------------------------*/
49
  /* Call To Action
50
  /*-------------------------------------------*/
51
+ /* insert_ads
52
  /*-------------------------------------------*/
53
+ /* relatedPosts
54
  /*-------------------------------------------*/
55
  /* auto_eyecatch
56
  /*-------------------------------------------*/
 
 
 
57
 
58
  /*-------------------------------------------*/
59
  /* bootstrap
95
  'default' => true
96
  );
97
 
98
+ /*-------------------------------------------*/
99
+ /* metaKeyword
100
+ /*-------------------------------------------*/
101
+ $required_packages[] = array(
102
+ 'name' => 'metaKeyword',
103
+ 'title' => __('Print meta Keyword', 'vkExUnit'),
104
+ 'description' => __('Print meta Keyword to html head.', 'vkExUnit'),
105
+ 'attr' => array(
106
+ array(
107
+ 'name'=>__('Setting','vkExUnit'),
108
+ 'url'=> admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_common_keywords',
109
+ 'enable_only' => 1,
110
+ )
111
+ ),
112
+ 'default' => true
113
+ );
114
  /*-------------------------------------------*/
115
  /* metaDescription
116
  /*-------------------------------------------*/
150
  );
151
 
152
  /*-------------------------------------------*/
153
+ /* ga
154
  /*-------------------------------------------*/
155
  $required_packages[] = array(
156
+ 'name' => 'ga',
157
+ 'title' => 'Google Analytics',
158
+ 'description' => __('Print Google Analytics tracking code.', 'vkExUnit'),
159
  'attr' => array(
160
  array(
161
  'name'=>__('Setting','vkExUnit'),
162
+ 'url'=> admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_ga_options',
163
  'enable_only' => 1,
164
  )
165
  ),
167
  );
168
 
169
  /*-------------------------------------------*/
170
+ /* otherWidgets
171
  /*-------------------------------------------*/
172
+ $desk = array();
173
+ $desk[] = '<p>'.__('You can use various widgets.', 'vkExUnit').'</p>';
174
+ $desk[] = '<ul>';
175
+ $desk[] = '<li>'.__('VK_Recent Posts - display the link text and the date of the latest article title.','vkExUnit').'</li>';
176
+ $desk[] = '<li>'.__('VK_Page content to widget - display the contents of the page to the widgets.','vkExUnit').'</li>';
177
+ $desk[] = '<li>'.__('VK_Profile - display the profile entered in the widget.','vkExUnit').'</li>';
178
+ $desk[] = '<li>'.__('VK_FB Page Plugin - display the Facebook Page Plugin.','vkExUnit').'</li>';
179
+ $desk[] = '<li>'.__('VK_3PR area - display the 3PR area.','vkExUnit').'</li>';
180
+ $desk[] = '<li>VK_'.__( 'categories/tags list', 'vkExUnit' ).__( 'Displays a categories, tags or format list.', 'vkExUnit' ).'</li>';
181
+ $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>';
182
+ $desk[] = '</ul>';
183
+
184
  $required_packages[] = array(
185
+ 'name' => 'otherWidgets',
186
+ 'title' => __('Widgets', 'vkExUnit'),
187
+ 'description' => $desk,
188
  'attr' => array(
189
  array(
190
  'name'=>__('Setting','vkExUnit'),
191
+ 'url'=> admin_url().'widgets.php',
192
  'enable_only' => 1,
193
  )
194
  ),
195
+ 'default' => true,
196
  );
197
 
198
  /*-------------------------------------------*/
199
+ /* css_customize
200
  /*-------------------------------------------*/
201
  $required_packages[] = array(
202
+ 'name' => 'css_customize',
203
+ 'title' => __('CSS customize', 'vkExUnit'),
204
+ 'description' => __('You can set Customize CSS.', 'vkExUnit'),
205
+ 'attr' => array(
206
+ array(
207
+ 'name'=>__('Setting','vkExUnit'),
208
+ 'url'=> admin_url().'admin.php?page=vkExUnit_css_customize',
209
+ 'enable_only' => 1,
210
+ )
211
+ ),
212
+ 'default' => true,
213
  );
214
 
215
  /*-------------------------------------------*/
251
  'default' => true,
252
  );
253
 
254
+
255
  /*-------------------------------------------*/
256
  /* Call To Action
257
  /*-------------------------------------------*/
280
  'default' => true,
281
  );
282
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
283
  /*-------------------------------------------*/
284
  /* insert_ads
285
  /*-------------------------------------------*/
296
  ),
297
  'default' => true,
298
  );
299
+ /*-------------------------------------------*/
300
+ /* relatedPosts
301
+ /*-------------------------------------------*/
302
+ $required_packages[] = array(
303
+ 'name' => 'relatedPosts',
304
+ 'title' => __('Related posts', 'vkExUnit'),
305
+ 'description' => __('Print Related posts lists to post content bottom.', 'vkExUnit'),
306
+ 'default' => true
307
+ );
308
 
309
  /*-------------------------------------------*/
310
  /* auto_eyecatch
317
  );
318
 
319
 
320
+
321
  foreach( $required_packages as $package ){
322
  vkExUnit_package_register( $package );
323
  }
plugins/call_to_action/view.actionbox.php CHANGED
@@ -33,4 +33,8 @@ if( $url && $btn_text ){
33
  $content .= '</div>';
34
  }
35
  $content .= '</div><!-- [ /.vkExUnit_cta_body ] -->';
36
- $content .= '</section>';
 
 
 
 
33
  $content .= '</div>';
34
  }
35
  $content .= '</div><!-- [ /.vkExUnit_cta_body ] -->';
36
+ $content .= '</section>';
37
+
38
+ if ( $url = get_edit_post_link( $post->ID ) ) {
39
+ $content .= '<div class="veu_adminEdit"><a href="'.$url.'" class="btn btn-default">'.__('Edit CTA','vkExUnit').'</a></div>';
40
+ }
plugins/page_custom_field.php CHANGED
@@ -3,10 +3,10 @@
3
  /*-------------------------------------------*/
4
  /* add page custom field
5
  /*-------------------------------------------*/
6
- add_action('admin_menu', 'add_custom_field_pageOption' );
7
 
8
  // add meta_box
9
- function add_custom_field_pageOption() {
10
  if( apply_filters('vkExUnit_customField_Page_activation', false) ){
11
  add_meta_box('pageOption', __('Setting of insert items', 'vkExUnit'), 'vkExUnit_pageOption_box', 'page', 'normal', 'high');
12
  }
3
  /*-------------------------------------------*/
4
  /* add page custom field
5
  /*-------------------------------------------*/
6
+ add_action('admin_menu', 'vkExUnit_add_custom_field_pageOption' );
7
 
8
  // add meta_box
9
+ function vkExUnit_add_custom_field_pageOption() {
10
  if( apply_filters('vkExUnit_customField_Page_activation', false) ){
11
  add_meta_box('pageOption', __('Setting of insert items', 'vkExUnit'), 'vkExUnit_pageOption_box', 'page', 'normal', 'high');
12
  }
plugins_admin/admin_banner.php ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function vkExUnit_admin_banner(){
3
+ if (strtoupper(get_locale()) == 'JA'){
4
+ $banner = '<a href="http://lightning.bizvektor.com/ja/" target="_blank"><img src="'.vkExUnit_get_directory_uri('/images/lightning_bnr_ja.jpg').'" alt="lightning_bnr_ja" /></a>';
5
+ } else {
6
+ $banner = '<a href="http://lightning.bizvektor.com/" target="_blank"><img src="'.vkExUnit_get_directory_uri('/images/lightning_bnr_en.jpg').'" alt="lightning_bnr_en" /></a>';
7
+ }
8
+ echo apply_filters( 'vkExUnit_news_admin_banner_html' , $banner );
9
+ }
plugins_admin/dashboard_info_widget.php ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*--------------------------------------------------*/
3
+ /* Display a Ex_unit information on the dashboard
4
+ /*--------------------------------------------------*/
5
+
6
+ add_filter('vkExUnit_is_plugin_dashboard_info_widget', 'vkExUnit_dash_beacon', 10, 1 );
7
+ function vkExUnit_dash_beacon($flag){
8
+ $flag = true;
9
+ return $flag;
10
+ }
11
+
12
+ add_action( 'wp_dashboard_setup', 'vkExUnit_dashboard_widget' );
13
+
14
+ function vkExUnit_dashboard_widget()
15
+ {
16
+ wp_add_dashboard_widget(
17
+ 'vkExUnit_dashboard_widget',
18
+ __('News from VK All in One Expansion Unit','vkExUnit'),
19
+ 'vkExUnit_news_body'
20
+ );
21
+ }
plugins_admin/disable_admin_edit.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * VkExUnit disable_admin_edit.php
4
+ * hide admin button.
5
+ *
6
+ * @package VkExUnit
7
+ * @author shoji imamura<imamura@vektor-inc.co.jp>
8
+ * @since 28/Aug/2015
9
+ */
10
+
11
+
12
+ add_action( 'admin_bar_menu', 'vkExUnit_adminbar_link', 999 );
13
+ function vkExUnit_adminbar_link( $wp_admin_bar ) {
14
+ if(is_user_logged_in() && !is_admin() && current_user_can('administrator') || current_user_can('editor')){
15
+ $args = array(
16
+ 'id' => 'veu_disable_admin_edit',
17
+ 'title' => __('Edit Guide', 'vkExUnit').' : SHOW',
18
+ 'onclick' => 'javascript:console.log("famas");',
19
+ 'meta' => array( 'class' => 'veu_admin_bar_disable_button' , 'onClick' => 'javascript:void(0);')
20
+ );
21
+ $wp_admin_bar->add_node( $args );
22
+ }
23
+ }
24
+
25
+
26
+
27
+ add_action('wp_head','vkExUnit_adminbar_edit_header');
28
+ function vkExUnit_adminbar_edit_header(){
29
+ if(is_user_logged_in() && !is_admin() && current_user_can('administrator') || current_user_can('editor')){ ?>
30
+ <style>
31
+ #wpadminbar #wp-admin-bar-veu_disable_admin_edit .ab-item { background-color: #0085C8; cursor: pointer; }
32
+ #wpadminbar #wp-admin-bar-veu_disable_admin_edit .ab-item.active { background-color: #68F259; color: #555; }
33
+ #wpadminbar #wp-admin-bar-veu_disable_admin_edit .ab-item:hover{ background-color: #68F259; color: #555; }
34
+ #wpadminbar #wp-admin-bar-veu_disable_admin_edit .ab-item.active:hover { background-color: #0085C8; color:#fff }
35
+ </style>
36
+ <script type="text/javascript">;(function($,d){var a=false,b='',c='',f=function(){
37
+ if(a){a=false;c.show();b.removeClass('active').text('<?php echo __('Edit Guide', 'vkExUnit').' : SHOW'; ?>');}
38
+ else{a=true;c.hide();b.addClass('active').text('<?php echo __('Edit Guide', 'vkExUnit').' : HIDE'; ?>');}
39
+ };$(d).ready(function(){b=$('#wp-admin-bar-veu_disable_admin_edit .ab-item').on('click',f);c=$('.veu_adminEdit');});})(jQuery,document);</script>
40
+ <?php }
41
+ }
plugins_admin/news_from_exUnit.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ function vkExUnit_news_body()
3
+ {
4
+
5
+ include_once(ABSPATH . WPINC . '/feed.php');
6
+
7
+ if ( 'ja' == get_locale() ) {
8
+ $exUnit_feed_url = apply_filters( 'vkExUnit_news_RSS_URL_ja', 'http://ex-unit.bizvektor.com/ja/?feed?'.date('his') );
9
+ } else {
10
+ $exUnit_feed_url = apply_filters( 'vkExUnit_news_RSS_URL', 'http://ex-unit.bizvektor.com/?feed?'.date('his') );
11
+ }
12
+
13
+ $my_feeds = array(
14
+ array('feed_url' => $exUnit_feed_url)
15
+ );
16
+
17
+
18
+ foreach ( $my_feeds as $feed )
19
+ {
20
+ $rss = fetch_feed( $feed["feed_url"] );
21
+
22
+ if ( !is_wp_error($rss) )
23
+ {
24
+ $output = '';
25
+
26
+ $maxitems = $rss->get_item_quantity( 5 ); //number of news to display (maximum)
27
+ $rss_items = $rss->get_items( 0, $maxitems );
28
+
29
+ $output .= '<div class="rss-widget">';
30
+
31
+ $output .= '<div class="logo_exUnit">';
32
+ $output .= '<img src="' . apply_filters( 'vkExUnit_news_image_URL_small', vkExUnit_get_directory_uri( '/images/head_logo_ExUnit.png' ) ) . '" alt="VK ExUnit" style="width:200px;" /></div>';
33
+ $output .= '<ul>';
34
+
35
+ if ( $maxitems == 0 )
36
+ {
37
+ $output .= '<li>';
38
+ $output .= __('Sorry, there is no post', 'vkExUnit');
39
+ $output .= '</li>';
40
+ }
41
+ else
42
+
43
+
44
+ {
45
+ foreach ( $rss_items as $item )
46
+ {
47
+ $test_date = $item->get_local_date();
48
+ $content = $item->get_content();
49
+
50
+ if( isset($test_date) && !is_null($test_date) )
51
+ $item_date = $item->get_date( get_option('date_format') ) . '<br />';
52
+ else
53
+ $item_date = '';
54
+
55
+ $output .= '<li style="color:#777;">';
56
+ $output .= $item_date;
57
+ $output .= '<a href="' . esc_url( $item->get_permalink() ) . '" title="' . $item_date . '" target="_blank">';
58
+ $output .= esc_html( $item->get_title() );
59
+ $output .= '</a>';
60
+ $output .= '</li>';
61
+ }
62
+ }
63
+
64
+ $output .= '</ul>';
65
+ $output .= '</div>';
66
+
67
+ echo $output;
68
+ }
69
+ }
70
+ }
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.3
7
- Stable tag: 2.3.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
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.3
7
+ Stable tag: 2.3.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
vkExUnit.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: VK All in One Expansion Unit
4
  Plugin URI: https://github.com/kurudrive/VK-All-in-one-Expansion-Unit
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: 2.3.4
7
  Author: Vektor,Inc.
8
  Author URI: http://vektor-inc.co.jp
9
  License: GPL2
@@ -87,12 +87,13 @@ require vkExUnit_get_directory() . '/packages.php';
87
  $options = vkExUnit_get_common_options();
88
  require vkExUnit_get_directory() . '/common_helpers.php';
89
 
90
- require vkExUnit_get_directory() . '/plugins/news_from_exUnit.php';
 
 
 
 
91
  require vkExUnit_get_directory() . '/plugins/footer_copyright_change.php';
92
- require vkExUnit_get_directory() . '/plugins/dashboard_info_widget.php';
93
  require vkExUnit_get_directory() . '/plugins/page_custom_field.php';
94
- require vkExUnit_get_directory() . '/plugins/admin_banner.php';
95
-
96
 
97
 
98
  if ( isset($options['active_wpTitle']) && $options['active_wpTitle'] )
@@ -215,9 +216,18 @@ function vkExUnit_admin_enq(){
215
  // }
216
  // }
217
 
 
 
 
 
 
 
 
 
 
218
 
219
  if (function_exists('register_deactivation_hook')){
220
- register_deactivation_hook(__FILE__, 'vkExUnit_uninstall_function');
221
  }
222
 
223
  function vkExUnit_uninstall_function()
3
  Plugin Name: VK All in One Expansion Unit
4
  Plugin URI: https://github.com/kurudrive/VK-All-in-one-Expansion-Unit
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: 2.3.5
7
  Author: Vektor,Inc.
8
  Author URI: http://vektor-inc.co.jp
9
  License: GPL2
87
  $options = vkExUnit_get_common_options();
88
  require vkExUnit_get_directory() . '/common_helpers.php';
89
 
90
+ require vkExUnit_get_directory() . '/plugins_admin/dashboard_info_widget.php';
91
+ require vkExUnit_get_directory() . '/plugins_admin/news_from_exUnit.php';
92
+ require vkExUnit_get_directory() . '/plugins_admin/admin_banner.php';
93
+ require vkExUnit_get_directory() . '/plugins_admin/disable_admin_edit.php';
94
+
95
  require vkExUnit_get_directory() . '/plugins/footer_copyright_change.php';
 
96
  require vkExUnit_get_directory() . '/plugins/page_custom_field.php';
 
 
97
 
98
 
99
  if ( isset($options['active_wpTitle']) && $options['active_wpTitle'] )
216
  // }
217
  // }
218
 
219
+ if( function_exists('register_activation_hook') ){
220
+ register_activation_hook( __FILE__ , 'vkExUnit_install_function' );
221
+ }
222
+ function vkExUnit_install_function(){
223
+ $opt = get_option('vkExUnit_common_options');
224
+ if( !$opt ){
225
+ add_option( 'vkExUnit_common_options', vkExUnit_get_common_options_default() );
226
+ }
227
+ }
228
 
229
  if (function_exists('register_deactivation_hook')){
230
+ register_deactivation_hook( __FILE__, 'vkExUnit_uninstall_function' );
231
  }
232
 
233
  function vkExUnit_uninstall_function()