-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
92 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
composer.phar | ||
*.log | ||
private.* | ||
.htaccess | ||
nbproject/ | ||
nbproject/private/* | ||
nbproject/private/private.xml | ||
noaccess/ | ||
vendor/* | ||
/vendor/ | ||
|
||
# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file | ||
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file | ||
# composer.lock | ||
sitemap.xml | ||
sitemap.xml.gz | ||
composer.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
* Description: A toolkit plugin containing multiple shortcodes to Wordpress | ||
* Version: 0.1.0 | ||
* Author: Douglas Alves <[email protected]> | ||
* Author URI: http://alvesdouglaz.com.br/ | ||
* Author URI: https://github.com/backfront/ | ||
* License: Apache License 2.0 | ||
* License URI: https://www.apache.org/licenses/LICENSE-2.0 | ||
* Text Domain: Backfront WP Toolkit | ||
|
@@ -24,22 +24,29 @@ | |
* *********** *//* GLOBAL *//* CONFIGURATIONS */ | ||
require_once(dirname(__FILE__) . '/bootstrap.php'); //Don't remove this line | ||
|
||
/** | ||
* The code that runs during plugin activation. | ||
* This action is documented in includes/class-plugin-name-activator.php | ||
*/ | ||
function activate_plugin_name() | ||
{ | ||
|
||
if (!function_exists('activate_' . BFWPTK_SLUG)) { | ||
|
||
/** | ||
* The code that runs during plugin activation. | ||
*/ | ||
function activate_bf_wp_toolkit() | ||
{ | ||
require_once plugin_dir_path(__FILE__) . 'includes/activator.php'; | ||
BFWPToolkit_Activator::activate(); | ||
} | ||
|
||
} | ||
if (!function_exists('deactivate_' . BFWPTK_SLUG)) { | ||
|
||
/** | ||
* The code that runs during plugin deactivation. | ||
*/ | ||
function deactivate_bf_wp_toolkit() | ||
{ | ||
require_once plugin_dir_path(__FILE__) . 'includes/deactivator.php'; | ||
BFWPToolkit_Deactivate::deactivate(); | ||
} | ||
|
||
/** | ||
* The code that runs during plugin deactivation. | ||
* This action is documented in includes/class-plugin-name-deactivator.php | ||
*/ | ||
function deactivate_plugin_name() | ||
{ | ||
|
||
} | ||
|
||
register_activation_hook(__FILE__, 'activate_' . BFWPTK_SLUG); | ||
|
@@ -49,4 +56,4 @@ function deactivate_plugin_name() | |
* The core plugin class that is used to define internationalization, | ||
* admin-specific hooks, and public-facing site hooks. | ||
*/ | ||
require plugin_dir_path(__FILE__) . '/src/Application/'; | ||
//require plugin_dir_path(__FILE__) . '/src/Application/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* Fired during plugin activation | ||
* | ||
* @link http://example.com | ||
* @since 0.1.0 | ||
* | ||
* @package bf_wp_toolkit | ||
* @subpackage bf_wp_toolkit/includes | ||
* @author Douglas Alves <[email protected]> | ||
*/ | ||
class BFWPToolkit_Activator | ||
{ | ||
|
||
/** | ||
* Short Description. (use period) | ||
* | ||
* Long Description. | ||
* | ||
* @since 0.1.0 | ||
*/ | ||
public static function activate() | ||
{ | ||
//your script | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
/** | ||
* Fired during plugin deactivate | ||
* | ||
* @link http://example.com | ||
* @since 0.1.0 | ||
* | ||
* @package bf_wp_toolkit | ||
* @subpackage bf_wp_toolkit/includes | ||
* @author Douglas Alves <[email protected]> | ||
*/ | ||
class BFWPToolkit_Deactivate | ||
{ | ||
|
||
/** | ||
* Short Description. (use period) | ||
* | ||
* Long Description. | ||
* | ||
* @since 0.1.0 | ||
*/ | ||
public static function deactivate() | ||
{ | ||
//your script | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.