/** * This file represents an example of the code that themes would use to register * the required plugins. * * It is expected that theme authors would copy and paste this code into their * functions.php file, and amend to suit. * * @package TGM-Plugin-Activation * @subpackage Example * @version 2.3.6 * @author Thomas Griffin * @author Gary Jones * @copyright Copyright (c) 2012, Thomas Griffin * @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later * @link https://github.com/thomasgriffin/TGM-Plugin-Activation */ /** * Include the TGM_Plugin_Activation class. */ require_once dirname( __FILE__ ) . '/class-tgm-plugin-activation.php'; add_action( 'tgmpa_register', 'my_theme_register_required_plugins' ); /** * Register the required plugins for this theme. * * In this example, we register two plugins - one included with the TGMPA library * and one from the .org repo. * * The variable passed to tgmpa_register_plugins() should be an array of plugin * arrays. * * This function is hooked into tgmpa_init, which is fired within the * TGM_Plugin_Activation class constructor. */ function my_theme_register_required_plugins() { /** * Array of plugin arrays. Required keys are name and slug. * If the source is NOT from the .org repo, then source is also required. */ $plugins = array( // This is an example of how to include a plugin pre-packaged with a theme array( 'name' => 'Contact Form 7', // The plugin name 'slug' => 'contact-form-7', // The plugin slug (typically the folder name) 'source' => get_stylesheet_directory() . '/includes/plugins/contact-form-7.zip', // The plugin source 'required' => true, // If false, the plugin is only 'recommended' instead of required 'version' => '', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented 'force_activation' => false, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins 'external_url' => '', // If set, overrides default API URL and points to an external URL ), array( 'name' => 'Cherry Plugin', // The plugin name. 'slug' => 'cherry-plugin', // The plugin slug (typically the folder name). 'source' => PARENT_DIR . '/includes/plugins/cherry-plugin.zip', // The plugin source. 'required' => true, // If false, the plugin is only 'recommended' instead of required. 'version' => '1.1', // E.g. 1.0.0. If set, the active plugin must be this version or higher, otherwise a notice is presented. 'force_activation' => true, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. 'force_deactivation' => false, // If true, plugin is deactivated upon theme switch, useful for theme-specific plugins. 'external_url' => '', // If set, overrides default API URL and points to an external URL. ) ); /** * Array of configuration settings. Amend each line as needed. * If you want the default strings to be available under your own theme domain, * leave the strings uncommented. * Some of the strings are added into a sprintf, so see the comments at the * end of each line for what each argument will be. */ $config = array( 'domain' => CURRENT_THEME, // Text domain - likely want to be the same as your theme. 'default_path' => '', // Default absolute path to pre-packaged plugins 'parent_menu_slug' => 'themes.php', // Default parent menu slug 'parent_url_slug' => 'themes.php', // Default parent URL slug 'menu' => 'install-required-plugins', // Menu slug 'has_notices' => true, // Show admin notices or not 'is_automatic' => true, // Automatically activate plugins after installation or not 'message' => '', // Message to output right before the plugins table 'strings' => array( 'page_title' => theme_locals("page_title"), 'menu_title' => theme_locals("menu_title"), 'installing' => theme_locals("installing"), // %1$s = plugin name 'oops' => theme_locals("oops_2"), 'notice_can_install_required' => _n_noop( theme_locals("notice_can_install_required"), theme_locals("notice_can_install_required_2") ), // %1$s = plugin name(s) 'notice_can_install_recommended' => _n_noop( theme_locals("notice_can_install_recommended"), theme_locals("notice_can_install_recommended_2") ), // %1$s = plugin name(s) 'notice_cannot_install' => _n_noop( theme_locals("notice_cannot_install"), theme_locals("notice_cannot_install_2") ), // %1$s = plugin name(s) 'notice_can_activate_required' => _n_noop( theme_locals("notice_can_activate_required"), theme_locals("notice_can_activate_required_2") ), // %1$s = plugin name(s) 'notice_can_activate_recommended' => _n_noop( theme_locals("notice_can_activate_recommended"), theme_locals("notice_can_activate_recommended_2") ), // %1$s = plugin name(s) 'notice_cannot_activate' => _n_noop( theme_locals("notice_cannot_activate"), theme_locals("notice_cannot_activate_2") ), // %1$s = plugin name(s) 'notice_ask_to_update' => _n_noop( theme_locals("notice_ask_to_update"), theme_locals("notice_ask_to_update_2") ), // %1$s = plugin name(s) 'notice_cannot_update' => _n_noop( theme_locals("notice_cannot_update"), theme_locals("notice_cannot_update_2") ), // %1$s = plugin name(s) 'install_link' => _n_noop( theme_locals("install_link"), theme_locals("install_link_2") ), 'activate_link' => _n_noop( theme_locals("activate_link"), theme_locals("activate_link_2") ), 'return' => theme_locals("return"), 'plugin_activated' => theme_locals("plugin_activated"), 'complete' => theme_locals("complete"), // %1$s = dashboard link 'nag_type' => theme_locals("updated") // Determines admin notice type - can only be 'updated' or 'error' ) ); tgmpa( $plugins, $config ); } Atlantic Town casino can also be�t live versus a coastline, this�s rebuilding you to definitely

Atlantic Town casino can also be�t live versus a coastline, this�s rebuilding you to definitely

Atlantic City local casino can't live in place of a beach, so it's rebuilding that

one of eight | Lots out of sand is left into beach at the front of your Ocean Local casino Hotel for the Atlantic Area, N.J., Monday, . The fresh new gambling enterprise was spending up to $700,000 of the own currency so you're able to rebuild new eroded coastline, deciding it cannot hold off an alternate year or two for another government-financed beach widening investment planned to the area. (AP Photo/Wayne Parry)

2 out of eight | A good bulldozer spreads freshly dumped mud with the seashore at the front of Sea Gambling enterprise Resort for the Atlantic City, N.J., Friday, . Brand new gambling establishment is actually purchasing as much as $700,000 of the very own currency to rebuild this new eroded beach, deciding it can't waiting a new few years for the next government-funded coastline broadening project arranged with the area. (AP Images/Wayne Parry)

twenty-three off 7 | A load of sand is broke up with for the beach at the front end of your Sea Casino Resorts for the Atlantic Area, Letter.J., Monday, . The fresh new casino is purchasing around $700,000 of the individual currency to help you reconstruct brand new eroded seashore, determining it cannot waiting a different few years for the next government-financed coastline broadening venture scheduled toward town. (AP Photographs/Wayne Parry)

Atlantic Town casino can not real time rather than a seashore, so it's reconstructing you to

four out-of 7 | A load of mud was left into the beach at the front end of your Water Casino Resorts inside the Atlantic Urban area, N.J., Friday, . The newest gambling establishment was investing around $700,000 of its very own money to reconstruct this new eroded seashore, deciding it cannot wait an alternate couple of years for the next government-funded seashore widening opportunity booked toward area. (AP Photographs/Wayne Parry)

5 away from eight | Lots out-of mud is actually broke up with for the seashore Gates of Olympus at the front end of Sea Casino Resorts inside the Atlantic Urban area, Letter.J., Friday, . New gambling enterprise try spending to $700,000 of its individual currency so you can reconstruct the new eroded seashore, choosing it cannot hold off a different year or two for the next government-funded beach expanding endeavor booked to the area. (AP Pictures/Wayne Parry)

6 off eight | An earthmover drives together a narrow street about what was left from a poorly eroded seashore ahead of the Ocean Casino Resort in the Atlantic Urban area N.J. into . New casino is actually expenses up to $700,000 of its very own currency so you can rebuild the fresh new eroded seashore, deciding it cannot waiting an alternative few years for the next government-financed beach widening opportunity arranged towards area. (AP Photos/Wayne Parry)

seven off seven | A great bulldozer spreads freshly broke up with sand on coastline in front of your own Ocean Local casino Resort in Atlantic Urban area, Letter.J., Monday, . This new gambling establishment was purchasing doing $700,000 of the very own money so you're able to reconstruct the new eroded beach, choosing it cannot hold off another few years for another government-funded seashore broadening investment arranged to your area. (AP Images/Wayne Parry)

one regarding 7 | A load of mud try dumped on coastline at the front of your own Sea Gambling establishment Resorts inside the Atlantic City, Letter.J., Monday, . New local casino try investing to $700,000 of the own currency so you can rebuild the newest eroded seashore, choosing it cannot wait a new few years for another government-funded beach widening opportunity scheduled to your city. (AP Photo/Wayne Parry)

Lots off mud are left for the beach in front of Water Casino Lodge into the Atlantic City, Letter.J., Monday, . The fresh gambling enterprise try paying around $700,000 of their very own currency to help you rebuild the fresh eroded seashore, choosing it cannot hold off a new couple of years for the next government-financed beach broadening endeavor booked for the city. (AP Pictures/Wayne Parry)