Skip to content

Commit

Permalink
Merge branch 'release/0.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
BackFront committed Dec 6, 2017
2 parents 5eede1a + fde092d commit e4182a5
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 45 deletions.
16 changes: 11 additions & 5 deletions .gitignore
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
39 changes: 23 additions & 16 deletions bf_wp_toolkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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);
Expand All @@ -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/';
4 changes: 2 additions & 2 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
* @since 0.1.0
*/
add_action('init', function() use(&$app) {
$app->MDLPATH = WPTS_MODULE_PATH;
$app->TPLPATH = WPTS_VIEWS_PATH;
$app->MDLPATH = BFWPTK_MODULE_PATH;
$app->TPLPATH = BFWPTK_VIEWS_PATH;
});

/**
Expand Down
28 changes: 28 additions & 0 deletions includes/activator.php
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
}

}
28 changes: 28 additions & 0 deletions includes/deactivator.php
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
}

}
6 changes: 0 additions & 6 deletions nbproject/private/private.properties

This file was deleted.

7 changes: 0 additions & 7 deletions nbproject/project.properties

This file was deleted.

9 changes: 0 additions & 9 deletions nbproject/project.xml

This file was deleted.

0 comments on commit e4182a5

Please sign in to comment.