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