vk-all-in-one-expansion-unit
Last commit date
_scss
8 years ago
css
8 years ago
images
8 years ago
js
8 years ago
languages
8 years ago
libraries
8 years ago
plugins
8 years ago
plugins_admin
8 years ago
admin_active_setting_page.php
8 years ago
admin_main_setting_page.php
8 years ago
admin_other_functions.php
8 years ago
admin_wrapper.php
8 years ago
common_helpers.php
8 years ago
common_init.php
8 years ago
compile.bat
8 years ago
config.rb
8 years ago
initialize.php
8 years ago
package_manager.php
8 years ago
packages.php
8 years ago
readme.txt
8 years ago
screenshot-1.png
8 years ago
screenshot-2.png
8 years ago
uninstaller.php
8 years ago
vkExUnit.php
8 years ago
vkExUnit_admin.php
8 years ago
packages.php
423 lines
| 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'), |
| 9 | 'attr' => array( |
| 10 | array( |
| 11 | 'name' =>__('Setting','vkExUnit'), |
| 12 | 'url' => admin_url().'admin.php?page=vkExUnit_css_customize', |
| 13 | 'enable_only' => 1, |
| 14 | ) |
| 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 | |
| 65 | /*-------------------------------------------*/ |
| 66 | /* bootstrap |
| 67 | /*-------------------------------------------*/ |
| 68 | $required_packages[] = array( |
| 69 | 'name' => 'bootstrap', |
| 70 | 'title' => __( 'Print Bootstrap css ( grid / button / table )', 'vkExUnit' ), |
| 71 | 'description' => __( 'If your using theme has already including Bootstrap, you deactivate this item.', 'vkExUnit' ), |
| 72 | 'default' => false, |
| 73 | 'include' => 'bootstrap.php', |
| 74 | ); |
| 75 | |
| 76 | /*-------------------------------------------*/ |
| 77 | /* fontawesome |
| 78 | /*-------------------------------------------*/ |
| 79 | $required_packages[] = array( |
| 80 | 'name' => 'fontawesome', |
| 81 | 'title' => __( 'Print link fontawesome', 'vkExUnit' ), |
| 82 | 'description' => __( 'Print fontawesome link tag to html head.', 'vkExUnit' ), |
| 83 | 'default' => false, |
| 84 | ); |
| 85 | |
| 86 | /*-------------------------------------------*/ |
| 87 | /* icon |
| 88 | /*-------------------------------------------*/ |
| 89 | $required_packages[] = array( |
| 90 | 'name' => 'icon', |
| 91 | 'title' => __( 'Favicon setting', 'vkExUnit' ), |
| 92 | '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>* * * * * * * * * * * * * * * * * * * * * * * * ', |
| 93 | 'default' => true, |
| 94 | 'include' => 'icons.php', |
| 95 | ); |
| 96 | |
| 97 | /*-------------------------------------------*/ |
| 98 | /* wpTitle |
| 99 | /*-------------------------------------------*/ |
| 100 | $required_packages[] = array( |
| 101 | 'name' => 'wpTitle', |
| 102 | 'title' => __( 'Rewrite the title tag', 'vkExUnit' ), |
| 103 | 'description' => __( 'Print is rewritten by its own rules to html head.', 'vkExUnit' ), |
| 104 | 'attr' => array( |
| 105 | array( |
| 106 | 'name' => __( 'Setting','vkExUnit' ), |
| 107 | 'url' => admin_url('admin.php?page=vkExUnit_main_setting#vkExUnit_wp_title'), |
| 108 | 'enable_only' => 1, |
| 109 | ), |
| 110 | ), |
| 111 | 'default' => true, |
| 112 | 'include' => 'wp_title.php', |
| 113 | ); |
| 114 | |
| 115 | /*-------------------------------------------*/ |
| 116 | /* metaKeyword |
| 117 | /*-------------------------------------------*/ |
| 118 | $required_packages[] = array( |
| 119 | 'name' => 'metaKeyword', |
| 120 | 'title' => __( 'Print meta Keyword', 'vkExUnit' ), |
| 121 | 'description' => __( 'Print meta Keyword to html head.', 'vkExUnit' ), |
| 122 | 'attr' => array( |
| 123 | array( |
| 124 | 'name' => __( 'Setting','vkExUnit' ), |
| 125 | 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_common_keywords', |
| 126 | 'enable_only' => 1, |
| 127 | ), |
| 128 | ), |
| 129 | 'default' => true, |
| 130 | 'include' => 'meta_keyword.php', |
| 131 | ); |
| 132 | /*-------------------------------------------*/ |
| 133 | /* metaDescription |
| 134 | /*-------------------------------------------*/ |
| 135 | $required_packages[] = array( |
| 136 | 'name' => 'metaDescription', |
| 137 | 'title' => __( 'Print meta description', 'vkExUnit' ), |
| 138 | 'description' => __( 'Print meta description to html head.', 'vkExUnit' ), |
| 139 | 'default' => true, |
| 140 | 'include' => 'meta_description.php', |
| 141 | ); |
| 142 | |
| 143 | /*-------------------------------------------*/ |
| 144 | /* sns |
| 145 | /*-------------------------------------------*/ |
| 146 | $deskSns = array(); |
| 147 | $settingPage = '<a href="'.admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options">'.__( 'Main setting page' ).'</a>'; |
| 148 | $deskSns[] = '<ul>'; |
| 149 | $deskSns[] = '<li>'.__( 'Print og tags to html head.','vkExUnit' ).'</li>'; |
| 150 | $deskSns[] = '<li>'.__( 'Print twitter card tags to html head.','vkExUnit' ).'</li>'; |
| 151 | $deskSns[] = '<li>'.__( 'Print social bookmark buttons.','vkExUnit' ).'</li>'; |
| 152 | $deskSns[] = '<li>'.__( 'Facebook Page Plugin widget.','vkExUnit' ).'</li>'; |
| 153 | $deskSns[] = '<li>'.__( 'Print Follow me box to content bottom.','vkExUnit' ).'</li>'; |
| 154 | $deskSns[] = '</ul>'; |
| 155 | $deskSns[] = '<p>'.sprintf( __( '* You can stop the function separately from the %s.', 'vkExUnit' ), $settingPage ).'</p>'; |
| 156 | |
| 157 | $required_packages[] = array( |
| 158 | 'name' => 'sns', |
| 159 | 'title' => __( 'Social media cooperation', 'vkExUnit' ), |
| 160 | 'description' => $deskSns, |
| 161 | 'attr' => array( |
| 162 | array( |
| 163 | 'name' => __( 'Setting','vkExUnit' ), |
| 164 | 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options', |
| 165 | 'enable_only' => 1, |
| 166 | ), |
| 167 | ), |
| 168 | 'default' => true, |
| 169 | 'include' => 'sns/sns.php', |
| 170 | ); |
| 171 | |
| 172 | /*-------------------------------------------*/ |
| 173 | /* ga |
| 174 | /*-------------------------------------------*/ |
| 175 | $required_packages[] = array( |
| 176 | 'name' => 'ga', |
| 177 | 'title' => 'Google Analytics', |
| 178 | 'description' => __( 'Print Google Analytics tracking code.', 'vkExUnit' ), |
| 179 | 'attr' => array( |
| 180 | array( |
| 181 | 'name' => __( 'Setting','vkExUnit' ), |
| 182 | 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_ga_options', |
| 183 | 'enable_only' => 1, |
| 184 | ), |
| 185 | ), |
| 186 | 'default' => true, |
| 187 | 'include' => 'google_analytics/google_analytics.php', |
| 188 | ); |
| 189 | |
| 190 | /*-------------------------------------------*/ |
| 191 | /* otherWidgets |
| 192 | /*-------------------------------------------*/ |
| 193 | $desk = array(); |
| 194 | $desk[] = '<p>'.__( 'You can use various widgets.', 'vkExUnit' ).'</p>'; |
| 195 | $desk[] = '<ul>'; |
| 196 | $desk[] = '<li>'.__( 'VK_Recent Posts - display the link text and the date of the latest article title.','vkExUnit' ).'</li>'; |
| 197 | $desk[] = '<li>'.__( 'VK_Page content to widget - display the contents of the page to the widgets.','vkExUnit' ).'</li>'; |
| 198 | $desk[] = '<li>'.__( 'VK_Profile - display the profile entered in the widget.','vkExUnit' ).'</li>'; |
| 199 | $desk[] = '<li>'.__( 'VK_FB Page Plugin - display the Facebook Page Plugin.','vkExUnit' ).'</li>'; |
| 200 | $desk[] = '<li>'.__( 'VK_3PR area - display the 3PR area.','vkExUnit' ).'</li>'; |
| 201 | $desk[] = '<li>VK_'.__( 'categories/tags list', 'vkExUnit' ).__( 'Displays a categories, tags or format list.', 'vkExUnit' ).'</li>'; |
| 202 | $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>'; |
| 203 | $desk[] = '</ul>'; |
| 204 | |
| 205 | $required_packages[] = array( |
| 206 | 'name' => 'otherWidgets', |
| 207 | 'title' => __( 'Widgets', 'vkExUnit' ), |
| 208 | 'description' => $desk, |
| 209 | 'attr' => array( |
| 210 | array( |
| 211 | 'name' => __( 'Setting','vkExUnit' ), |
| 212 | 'url' => admin_url().'widgets.php', |
| 213 | 'enable_only' => 1, |
| 214 | ), |
| 215 | ), |
| 216 | 'default' => true, |
| 217 | 'include' => 'other_widget/other_widget.php', |
| 218 | ); |
| 219 | |
| 220 | /*-------------------------------------------*/ |
| 221 | /* css_customize |
| 222 | /*-------------------------------------------*/ |
| 223 | $required_packages[] = array( |
| 224 | 'name' => 'css_customize', |
| 225 | 'title' => __( 'CSS customize', 'vkExUnit' ), |
| 226 | 'description' => __( 'You can set Customize CSS.', 'vkExUnit' ), |
| 227 | 'attr' => array( |
| 228 | array( |
| 229 | 'name' => __( 'Setting','vkExUnit' ), |
| 230 | 'url' => admin_url().'admin.php?page=vkExUnit_css_customize', |
| 231 | 'enable_only' => 1, |
| 232 | ), |
| 233 | ), |
| 234 | 'default' => true, |
| 235 | 'include' => 'css_customize/css_customize.php', |
| 236 | ); |
| 237 | |
| 238 | /*-------------------------------------------*/ |
| 239 | /* ChildPageIndex |
| 240 | /*-------------------------------------------*/ |
| 241 | |
| 242 | $required_packages[] = array( |
| 243 | 'name' => 'childPageIndex', |
| 244 | 'title' => __( 'Child page index', 'vkExUnit' ), |
| 245 | 'description' => __( 'At the bottom of the specified page, it will display a list of the child page.', 'vkExUnit' ), |
| 246 | 'default' => true, |
| 247 | 'include' => 'child_page_index.php', |
| 248 | ); |
| 249 | |
| 250 | |
| 251 | /*-------------------------------------------*/ |
| 252 | /* pageList_ancestor |
| 253 | /*-------------------------------------------*/ |
| 254 | $required_packages[] = array( |
| 255 | 'name' => 'pageList_ancestor', |
| 256 | 'title' => __( 'Page list from ancestor', 'vkExUnit' ), |
| 257 | 'description' => __( 'Display Page list from ancestor at after content.', 'vkExUnit' ), |
| 258 | 'default' => true, |
| 259 | 'include' => 'pageList_ancestor.php', |
| 260 | ); |
| 261 | |
| 262 | /*-------------------------------------------*/ |
| 263 | /* Contact Section |
| 264 | /*-------------------------------------------*/ |
| 265 | $required_packages[] = array( |
| 266 | 'name' => 'contact_section', |
| 267 | 'title' => __( 'Contact Section', 'vkExUnit' ), |
| 268 | 'description' => __( 'Display Contact Section at after content.', 'vkExUnit' ), |
| 269 | 'attr' => array( |
| 270 | array( |
| 271 | 'name' => __( 'Setting','vkExUnit' ), |
| 272 | 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_contact', |
| 273 | 'enable_only' => 1, |
| 274 | ), |
| 275 | ), |
| 276 | 'default' => true, |
| 277 | 'include' => 'contact-section/contact-section.php', |
| 278 | ); |
| 279 | |
| 280 | /*-------------------------------------------*/ |
| 281 | /* Sitemap_page |
| 282 | /*-------------------------------------------*/ |
| 283 | $required_packages[] = array( |
| 284 | 'name' => 'sitemap_page', |
| 285 | 'title' => __( 'Display HTML Site Map', 'vkExUnit' ), |
| 286 | 'description' => __( 'It displays a HTML Site Map to the specified page.', 'vkExUnit' ), |
| 287 | 'default' => true, |
| 288 | 'include' => 'sitemap_page/sitemap_page.php', |
| 289 | ); |
| 290 | |
| 291 | |
| 292 | /*-------------------------------------------*/ |
| 293 | /* Call To Action |
| 294 | /*-------------------------------------------*/ |
| 295 | $cta_description = __( 'Display the CTA at the end of the post content.', 'vkExUnit' ); |
| 296 | $cta_description .= '<br>'; |
| 297 | $cta_description .= __( 'The CTA stands for "Call to action" and this is the area that prompts the user behavior.', 'vkExUnit' ); |
| 298 | $cta_description .= '<br>'; |
| 299 | $cta_description .= __( 'As an example, text message and a link button for induction to the free sample download page.', 'vkExUnit' ); |
| 300 | |
| 301 | $required_packages[] = array( |
| 302 | 'name' => 'call_to_action', |
| 303 | 'title' => __( 'Call To Action', 'vkExUnit' ), |
| 304 | 'description' => $cta_description, |
| 305 | 'attr' => array( |
| 306 | array( |
| 307 | 'name' => __( 'Setting','vkExUnit' ), |
| 308 | 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_cta_settings', |
| 309 | 'enable_only' => 1, |
| 310 | ), |
| 311 | array( |
| 312 | 'name' => __( 'Contents setting','vkExUnit' ), |
| 313 | 'url' => admin_url().'edit.php?post_type=cta', |
| 314 | 'enable_only' => 1, |
| 315 | ), |
| 316 | ), |
| 317 | 'default' => true, |
| 318 | 'include' => 'call-to-action-config.php', |
| 319 | ); |
| 320 | |
| 321 | /*-------------------------------------------*/ |
| 322 | /* insert_ads |
| 323 | /*-------------------------------------------*/ |
| 324 | $required_packages[] = array( |
| 325 | 'name' => 'insert_ads', |
| 326 | 'title' => __( 'Insert ads', 'vkExUnit' ), |
| 327 | 'description' => __( 'Insert ads to content.', 'vkExUnit' ), |
| 328 | 'attr' => array( |
| 329 | array( |
| 330 | 'name' => __( 'Setting','vkExUnit' ), |
| 331 | 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_Ads', |
| 332 | 'enable_only' => 1, |
| 333 | ), |
| 334 | ), |
| 335 | 'default' => true, |
| 336 | 'include' => 'insert_ads.php', |
| 337 | ); |
| 338 | /*-------------------------------------------*/ |
| 339 | /* relatedPosts |
| 340 | /*-------------------------------------------*/ |
| 341 | $required_packages[] = array( |
| 342 | 'name' => 'relatedPosts', |
| 343 | 'title' => __( 'Related posts', 'vkExUnit' ), |
| 344 | 'description' => __( 'Print Related posts lists to post content bottom.', 'vkExUnit' ), |
| 345 | 'default' => true, |
| 346 | 'include' => 'related_posts/related_posts.php', |
| 347 | ); |
| 348 | |
| 349 | /*-------------------------------------------*/ |
| 350 | /* auto_eyecatch |
| 351 | /*-------------------------------------------*/ |
| 352 | $required_packages[] = array( |
| 353 | 'name' => 'auto_eyecatch', |
| 354 | 'title' => __( 'Automatic Eye Catch insert', 'vkExUnit' ), |
| 355 | 'description' => __( 'Display Eye Catch image at before content.', 'vkExUnit' ), |
| 356 | 'default' => false, |
| 357 | 'include' => 'auto_eyecatch.php', |
| 358 | ); |
| 359 | |
| 360 | /*-------------------------------------------*/ |
| 361 | /* disable_ping-back |
| 362 | /*-------------------------------------------*/ |
| 363 | $required_packages[] = array( |
| 364 | 'name' => 'disable_ping-back', |
| 365 | 'title' => __( 'Disable ping back', 'vkExUnit' ), |
| 366 | 'description' => __( 'Disable xmlrpc ping back.', 'vkExUnit' ), |
| 367 | 'default' => false, |
| 368 | 'include' => 'disable_ping-back.php', |
| 369 | 'hidden' => true, |
| 370 | ); |
| 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 | |
| 394 | $required_packages[] = array( |
| 395 | 'name' => 'admin_bar', |
| 396 | 'title' => __( 'Admin bar manu', 'vkExUnit' ), |
| 397 | 'description' => __( 'Add ExUnit menu to admin bar.', 'vkExUnit' ), |
| 398 | 'default' => true, |
| 399 | 'include' => '../plugins_admin/admin_bar.php', |
| 400 | ); |
| 401 | |
| 402 | /*-------------------------------------------*/ |
| 403 | /* post_type_manager |
| 404 | /*-------------------------------------------*/ |
| 405 | $required_packages[] = array( |
| 406 | 'name' => 'post_type_manager', |
| 407 | 'title' => __( 'Post Type Manager', 'vkExUnit' ), |
| 408 | 'description' => __( 'Add custom post types and custom taxonomies.', 'vkExUnit' ), |
| 409 | 'attr' => array( |
| 410 | array( |
| 411 | 'name' => __( 'Setting','vkExUnit' ), |
| 412 | 'url' => admin_url().'edit.php?post_type=post_type_manage', |
| 413 | 'enable_only' => 1, |
| 414 | ), |
| 415 | ), |
| 416 | 'default' => false, |
| 417 | 'include' => 'post-type-manager-config.php' |
| 418 | ); |
| 419 | |
| 420 | foreach ( $required_packages as $package ) { |
| 421 | vkExUnit_package_register( $package ); |
| 422 | } |
| 423 |