Esempio n. 1
0
 function brickyard_my_theme_register_required_plugins()
 {
     $plugins = array(array('name' => 'Breadcrumb NavXT', 'slug' => 'breadcrumb-navxt', 'source' => get_template_directory_uri() . '/plugins/breadcrumb-navxt.zip', 'required' => false), array('name' => 'Custom Background Extended', 'slug' => 'custom-background-extended', 'source' => get_template_directory_uri() . '/plugins/custom-background-extended.zip', 'required' => false), array('name' => 'Cyclone Slider 2', 'slug' => 'cyclone-slider', 'source' => get_template_directory_uri() . '/plugins/cyclone-slider-2.zip', 'required' => false), array('name' => 'Dagon Design Sitemap Generator', 'slug' => 'sitemap-generator', 'source' => get_template_directory_uri() . '/plugins/sitemap-generator.zip', 'required' => false), array('name' => 'Page Builder by SiteOrigin', 'slug' => 'siteorigin-panels', 'source' => get_template_directory_uri() . '/plugins/siteorigin-panels.zip', 'required' => false));
     $config = array('domain' => 'brickyard', 'menu' => 'install-my-theme-plugins', 'strings' => array('page_title' => __('Install Recommended Plugins', 'brickyard'), 'menu_title' => __('Install Plugins', 'brickyard'), 'instructions_install' => __('The %1$s plugin is required for this theme. Click on the big blue button below to install and activate %1$s.', 'brickyard'), 'instructions_activate' => __('The %1$s is installed but currently inactive. Please go to the <a href="%2$s">plugin administration page</a> page to activate it.', 'brickyard'), 'button' => __('Install %s Now', 'brickyard'), 'installing' => __('Installing Plugin: %s', 'brickyard'), 'oops' => __('Something went wrong with the plugin API.', 'brickyard'), 'notice_can_install' => __('This theme requires the %1$s plugin. <a href="%2$s"><strong>Click here to begin the installation process</strong></a>. You may be asked for FTP credentials based on your server setup.', 'brickyard'), 'notice_cannot_install' => __('Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'brickyard'), 'notice_can_activate' => __('This theme requires the %1$s plugin. That plugin is currently inactive, so please go to the <a href="%2$s">plugin administration page</a> to activate it.', 'brickyard'), 'notice_cannot_activate' => __('Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'brickyard'), 'return' => __('Return to Recommended Plugins Installer', 'brickyard')));
     brickyard_tgmpa($plugins, $config);
 }
Esempio n. 2
0
 function brickyard_my_theme_register_required_plugins()
 {
     $plugins = array(array('name' => 'Breadcrumb NavXT', 'slug' => 'breadcrumb-navxt', 'required' => false));
     $config = array('domain' => 'brickyard', 'menu' => 'install-my-theme-plugins', 'strings' => array('page_title' => __('Install Recommended Plugins', 'brickyard'), 'menu_title' => __('Install Plugins', 'brickyard'), 'instructions_install' => __('The %1$s plugin is required for this theme. Click on the big blue button below to install and activate %1$s.', 'brickyard'), 'instructions_activate' => __('The %1$s is installed but currently inactive. Please go to the <a href="%2$s">plugin administration page</a> page to activate it.', 'brickyard'), 'button' => __('Install %s Now', 'brickyard'), 'installing' => __('Installing Plugin: %s', 'brickyard'), 'oops' => __('Something went wrong with the plugin API.', 'brickyard'), 'notice_can_install' => __('This theme requires the %1$s plugin. <a href="%2$s"><strong>Click here to begin the installation process</strong></a>. You may be asked for FTP credentials based on your server setup.', 'brickyard'), 'notice_cannot_install' => __('Sorry, but you do not have the correct permissions to install the %s plugin. Contact the administrator of this site for help on getting the plugin installed.', 'brickyard'), 'notice_can_activate' => __('This theme requires the %1$s plugin. That plugin is currently inactive, so please go to the <a href="%2$s">plugin administration page</a> to activate it.', 'brickyard'), 'notice_cannot_activate' => __('Sorry, but you do not have the correct permissions to activate the %s plugin. Contact the administrator of this site for help on getting the plugin activated.', 'brickyard'), 'return' => __('Return to Recommended Plugins Installer', 'brickyard')));
     brickyard_tgmpa($plugins, $config);
 }