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
335 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 | ); |
| 18 | |
| 19 | */ |
| 20 | |
| 21 | |
| 22 | /*-------------------------------------------*/ |
| 23 | /* bootstrap |
| 24 | /*-------------------------------------------*/ |
| 25 | /* fontawesome |
| 26 | /*-------------------------------------------*/ |
| 27 | /* icon |
| 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 | /*-------------------------------------------*/ |
| 45 | /* ChildPageIndex |
| 46 | /*-------------------------------------------*/ |
| 47 | /* Sitemap_page |
| 48 | /*-------------------------------------------*/ |
| 49 | /* Call To Action |
| 50 | /*-------------------------------------------*/ |
| 51 | /* insert_ads |
| 52 | /*-------------------------------------------*/ |
| 53 | /* relatedPosts |
| 54 | /*-------------------------------------------*/ |
| 55 | /* auto_eyecatch |
| 56 | /*-------------------------------------------*/ |
| 57 | /* disable_ping-back |
| 58 | /*-------------------------------------------*/ |
| 59 | |
| 60 | /*-------------------------------------------*/ |
| 61 | /* bootstrap |
| 62 | /*-------------------------------------------*/ |
| 63 | $required_packages[] = array( |
| 64 | 'name' => 'bootstrap', |
| 65 | 'title' => __('Print Bootstrap css and js', 'vkExUnit'), |
| 66 | 'description' => __('If your using theme has already including Bootstrap, you deactivate this item.', 'vkExUnit'), |
| 67 | 'default' => false |
| 68 | ); |
| 69 | |
| 70 | /*-------------------------------------------*/ |
| 71 | /* fontawesome |
| 72 | /*-------------------------------------------*/ |
| 73 | $required_packages[] = array( |
| 74 | 'name' => 'fontawesome', |
| 75 | 'title' => __('Print link fontawesome', 'vkExUnit'), |
| 76 | 'description' => __('Print fontawesome link tag to html head.', 'vkExUnit'), |
| 77 | 'default' => false |
| 78 | ); |
| 79 | |
| 80 | /*-------------------------------------------*/ |
| 81 | /* icon |
| 82 | /*-------------------------------------------*/ |
| 83 | $required_packages[] = array( |
| 84 | 'name' => 'icon', |
| 85 | 'title' => __('Favicon setting', 'vkExUnit'), |
| 86 | 'description' => __('About favicon.', 'vkExUnit'), |
| 87 | 'default' => true |
| 88 | ); |
| 89 | |
| 90 | /*-------------------------------------------*/ |
| 91 | /* wpTitle |
| 92 | /*-------------------------------------------*/ |
| 93 | $required_packages[] = array( |
| 94 | 'name' => 'wpTitle', |
| 95 | 'title' => __('Rewrite the title tag', 'vkExUnit'), |
| 96 | 'description' => __('Print is rewritten by its own rules to html head.', 'vkExUnit'), |
| 97 | 'default' => true |
| 98 | ); |
| 99 | |
| 100 | /*-------------------------------------------*/ |
| 101 | /* metaKeyword |
| 102 | /*-------------------------------------------*/ |
| 103 | $required_packages[] = array( |
| 104 | 'name' => 'metaKeyword', |
| 105 | 'title' => __('Print meta Keyword', 'vkExUnit'), |
| 106 | 'description' => __('Print meta Keyword to html head.', 'vkExUnit'), |
| 107 | 'attr' => array( |
| 108 | array( |
| 109 | 'name'=>__('Setting','vkExUnit'), |
| 110 | 'url'=> admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_common_keywords', |
| 111 | 'enable_only' => 1, |
| 112 | ) |
| 113 | ), |
| 114 | 'default' => true |
| 115 | ); |
| 116 | /*-------------------------------------------*/ |
| 117 | /* metaDescription |
| 118 | /*-------------------------------------------*/ |
| 119 | $required_packages[] = array( |
| 120 | 'name' => 'metaDescription', |
| 121 | 'title' => __('Print meta description', 'vkExUnit'), |
| 122 | 'description' => __('Print meta description to html head.', 'vkExUnit'), |
| 123 | 'default' => true |
| 124 | ); |
| 125 | |
| 126 | /*-------------------------------------------*/ |
| 127 | /* sns |
| 128 | /*-------------------------------------------*/ |
| 129 | $deskSns = array(); |
| 130 | $settingPage = '<a href="'.admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options">'.__('Main setting page').'</a>'; |
| 131 | $deskSns[] = '<ul>'; |
| 132 | $deskSns[] = '<li>'.__('Print og tags to html head.','vkExUnit').'</li>'; |
| 133 | $deskSns[] = '<li>'.__('Print twitter card tags to html head.','vkExUnit').'</li>'; |
| 134 | $deskSns[] = '<li>'.__('Print social bookmark buttons.','vkExUnit').'</li>'; |
| 135 | $deskSns[] = '<li>'.__('Facebook Page Plugin widget.','vkExUnit').'</li>'; |
| 136 | $deskSns[] = '<li>'.__('Print Follow me box to content bottom.','vkExUnit').'</li>'; |
| 137 | $deskSns[] = '</ul>'; |
| 138 | $deskSns[] = '<p>'.sprintf( __( '* You can stop the function separately from the %s.', 'vkExUnit' ), $settingPage ).'</p>'; |
| 139 | |
| 140 | $required_packages[] = array( |
| 141 | 'name' => 'sns', |
| 142 | 'title' => __('Social media cooperation', 'vkExUnit'), |
| 143 | 'description' => $deskSns, |
| 144 | 'attr' => array( |
| 145 | array( |
| 146 | 'name'=>__('Setting','vkExUnit'), |
| 147 | 'url'=> admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options', |
| 148 | 'enable_only' => 1, |
| 149 | ) |
| 150 | ), |
| 151 | 'default' => true |
| 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 | /* otherWidgets |
| 173 | /*-------------------------------------------*/ |
| 174 | $desk = array(); |
| 175 | $desk[] = '<p>'.__('You can use various widgets.', 'vkExUnit').'</p>'; |
| 176 | $desk[] = '<ul>'; |
| 177 | $desk[] = '<li>'.__('VK_Recent Posts - display the link text and the date of the latest article title.','vkExUnit').'</li>'; |
| 178 | $desk[] = '<li>'.__('VK_Page content to widget - display the contents of the page to the widgets.','vkExUnit').'</li>'; |
| 179 | $desk[] = '<li>'.__('VK_Profile - display the profile entered in the widget.','vkExUnit').'</li>'; |
| 180 | $desk[] = '<li>'.__('VK_FB Page Plugin - display the Facebook Page Plugin.','vkExUnit').'</li>'; |
| 181 | $desk[] = '<li>'.__('VK_3PR area - display the 3PR area.','vkExUnit').'</li>'; |
| 182 | $desk[] = '<li>VK_'.__( 'categories/tags list', 'vkExUnit' ).__( 'Displays a categories, tags or format list.', 'vkExUnit' ).'</li>'; |
| 183 | $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>'; |
| 184 | $desk[] = '</ul>'; |
| 185 | |
| 186 | $required_packages[] = array( |
| 187 | 'name' => 'otherWidgets', |
| 188 | 'title' => __('Widgets', 'vkExUnit'), |
| 189 | 'description' => $desk, |
| 190 | 'attr' => array( |
| 191 | array( |
| 192 | 'name'=>__('Setting','vkExUnit'), |
| 193 | 'url'=> admin_url().'widgets.php', |
| 194 | 'enable_only' => 1, |
| 195 | ) |
| 196 | ), |
| 197 | 'default' => true, |
| 198 | ); |
| 199 | |
| 200 | /*-------------------------------------------*/ |
| 201 | /* css_customize |
| 202 | /*-------------------------------------------*/ |
| 203 | $required_packages[] = array( |
| 204 | 'name' => 'css_customize', |
| 205 | 'title' => __('CSS customize', 'vkExUnit'), |
| 206 | 'description' => __('You can set Customize CSS.', 'vkExUnit'), |
| 207 | 'attr' => array( |
| 208 | array( |
| 209 | 'name'=>__('Setting','vkExUnit'), |
| 210 | 'url'=> admin_url().'admin.php?page=vkExUnit_css_customize', |
| 211 | 'enable_only' => 1, |
| 212 | ) |
| 213 | ), |
| 214 | 'default' => true, |
| 215 | ); |
| 216 | |
| 217 | /*-------------------------------------------*/ |
| 218 | /* Contact Section |
| 219 | /*-------------------------------------------*/ |
| 220 | $required_packages[] = array( |
| 221 | 'name' => 'contact_section', |
| 222 | 'title' => __('Contact Section', 'vkExUnit'), |
| 223 | 'description' => __('Display Contact Section at after content.', 'vkExUnit'), |
| 224 | 'attr' => array( |
| 225 | array( |
| 226 | 'name'=>__('Setting','vkExUnit'), |
| 227 | 'url'=> admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_contact', |
| 228 | 'enable_only' => 1, |
| 229 | ) |
| 230 | ), |
| 231 | 'default' => true, |
| 232 | ); |
| 233 | |
| 234 | /*-------------------------------------------*/ |
| 235 | /* ChildPageIndex |
| 236 | /*-------------------------------------------*/ |
| 237 | |
| 238 | $required_packages[] = array( |
| 239 | 'name' => 'childPageIndex', |
| 240 | 'title' => __('Child page index', 'vkExUnit'), |
| 241 | 'description' => __('At the bottom of the specified page, it will display a list of the child page.', 'vkExUnit'), |
| 242 | 'default' => true, |
| 243 | ); |
| 244 | |
| 245 | |
| 246 | /*-------------------------------------------*/ |
| 247 | /* Sitemap_page |
| 248 | /*-------------------------------------------*/ |
| 249 | $required_packages[] = array( |
| 250 | 'name' => 'sitemap_page', |
| 251 | 'title' => __('Display HTML Site Map', 'vkExUnit'), |
| 252 | 'description' => __('It displays a HTML Site Map to the specified page.', 'vkExUnit'), |
| 253 | 'default' => true, |
| 254 | ); |
| 255 | |
| 256 | |
| 257 | /*-------------------------------------------*/ |
| 258 | /* Call To Action |
| 259 | /*-------------------------------------------*/ |
| 260 | $cta_description = __('Display the CTA at the end of the post content.', 'vkExUnit'); |
| 261 | $cta_description .= '<br>'; |
| 262 | $cta_description .= __('The CTA stands for "Call to action" and this is the area that prompts the user behavior.', 'vkExUnit'); |
| 263 | $cta_description .= '<br>'; |
| 264 | $cta_description .= __('As an example, text message and a link button for induction to the free sample download page.', 'vkExUnit'); |
| 265 | |
| 266 | $required_packages[] = array( |
| 267 | 'name' => 'call_to_action', |
| 268 | 'title' => __('Call To Action', 'vkExUnit'), |
| 269 | 'description' => $cta_description, |
| 270 | 'attr' => array( |
| 271 | array( |
| 272 | 'name'=>__('Setting','vkExUnit'), |
| 273 | 'url'=> admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_cta_settings', |
| 274 | 'enable_only' => 1, |
| 275 | ), |
| 276 | array( |
| 277 | 'name'=>__('Contents setting','vkExUnit'), |
| 278 | 'url'=> admin_url().'edit.php?post_type=cta', |
| 279 | 'enable_only' => 1, |
| 280 | ) |
| 281 | ), |
| 282 | 'default' => true, |
| 283 | ); |
| 284 | |
| 285 | /*-------------------------------------------*/ |
| 286 | /* insert_ads |
| 287 | /*-------------------------------------------*/ |
| 288 | $required_packages[] = array( |
| 289 | 'name' => 'insert_ads', |
| 290 | 'title' => __('Insert ads', 'vkExUnit'), |
| 291 | 'description' => __('Insert ads to content.', 'vkExUnit'), |
| 292 | 'attr' => array( |
| 293 | array( |
| 294 | 'name' =>__('Setting','vkExUnit'), |
| 295 | 'url' => admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_Ads', |
| 296 | 'enable_only' => 1, |
| 297 | ) |
| 298 | ), |
| 299 | 'default' => true, |
| 300 | ); |
| 301 | /*-------------------------------------------*/ |
| 302 | /* relatedPosts |
| 303 | /*-------------------------------------------*/ |
| 304 | $required_packages[] = array( |
| 305 | 'name' => 'relatedPosts', |
| 306 | 'title' => __('Related posts', 'vkExUnit'), |
| 307 | 'description' => __('Print Related posts lists to post content bottom.', 'vkExUnit'), |
| 308 | 'default' => true |
| 309 | ); |
| 310 | |
| 311 | /*-------------------------------------------*/ |
| 312 | /* auto_eyecatch |
| 313 | /*-------------------------------------------*/ |
| 314 | $required_packages[] = array( |
| 315 | 'name' => 'auto_eyecatch', |
| 316 | 'title' => __('Automatic Eye Catch insert', 'vkExUnit'), |
| 317 | 'description' => __('Display Eye Catch image at before content.', 'vkExUnit'), |
| 318 | 'default' => false, |
| 319 | ); |
| 320 | |
| 321 | /*-------------------------------------------*/ |
| 322 | /* disable_ping-back |
| 323 | /*-------------------------------------------*/ |
| 324 | // $required_packages[] = array( |
| 325 | // 'name' => 'disable_ping-back', |
| 326 | // 'title' => __('Disable ping back', 'vkExUnit'), |
| 327 | // 'description' => __('Disable xmlrpc ping back.', 'vkExUnit'), |
| 328 | // 'default' => false, |
| 329 | // ); |
| 330 | |
| 331 | |
| 332 | |
| 333 | foreach( $required_packages as $package ){ |
| 334 | vkExUnit_package_register( $package ); |
| 335 | } |