Skip to content

Commit

Permalink
Renaming to Business Pack
Browse files Browse the repository at this point in the history
  • Loading branch information
shramee committed Feb 27, 2017
1 parent d1b4228 commit 2a97868
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 39 deletions.
10 changes: 8 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ License URI: http://www.gnu.org/licenses/gpl-3.0.html
== Description ==

= Business pack =
The business Pack includes a number of new drag and drop modules.
Modules included, number counter, accordian, tabs, testimonials and maps.

The Business Pro Pack includes a number of cool new drag and drop modules:

* Number counter
* Accordian
* Tabs
* Testimonials
* Google maps

== Installation ==

Expand Down
4 changes: 2 additions & 2 deletions assets/front-end.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/**
* Plugin front end scripts
*
* @package Pootle_Pagebuilder_Business_Pack
* @package Pootle_Business_Pack
* @version 1.0.0
*/

/**
* Plugin front end scripts
*
* @package Pootle_Pagebuilder_Business_Pack
* @package Pootle_Business_Pack
* @version 1.0.0
*/

Expand Down
2 changes: 1 addition & 1 deletion assets/front-end.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* Plugin front end scripts
*
* @package Pootle_Pagebuilder_Business_Pack
* @package Pootle_Business_Pack
* @version 1.0.0
*/
jQuery(function ($) {
Expand Down
28 changes: 14 additions & 14 deletions inc/class-admin.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<?php
/**
* Pootle Pagebuilder Business Pack Pro Admin class
* Business pack Admin class
* @property string token Plugin token
* @property string $url Plugin root dir url
* @property string $path Plugin root dir path
* @property string $version Plugin version
*/
class Pootle_Pagebuilder_Business_Pack_Admin{
class Pootle_Business_Pack_Admin{

/**
* @var Pootle_Pagebuilder_Business_Pack_Admin Instance
* @var Pootle_Business_Pack_Admin Instance
* @access private
* @since 1.0.0
*/
private static $_instance = null;

/**
* Main Pootle Pagebuilder Business Pack Pro Instance
* Main Business pack Instance
* Ensures only one instance of Storefront_Extension_Boilerplate is loaded or can be loaded.
* @return Pootle_Pagebuilder_Business_Pack_Admin instance
* @return Pootle_Business_Pack_Admin instance
* @since 1.0.0
*/
public static function instance() {
Expand All @@ -34,10 +34,10 @@ public static function instance() {
* @since 1.0.0
*/
private function __construct() {
$this->token = Pootle_Pagebuilder_Business_Pack::$token;
$this->url = Pootle_Pagebuilder_Business_Pack::$url;
$this->path = Pootle_Pagebuilder_Business_Pack::$path;
$this->version = Pootle_Pagebuilder_Business_Pack::$version;
$this->token = Pootle_Business_Pack::$token;
$this->url = Pootle_Business_Pack::$url;
$this->path = Pootle_Business_Pack::$path;
$this->version = Pootle_Business_Pack::$version;
} // End __construct()

/**
Expand All @@ -59,7 +59,7 @@ public function row_settings_tabs( $tabs ) {
* Adds front end stylesheet and js
* @param string $id
* @param array $args
* @action pootlepb_content_block_custom_field_{Pootle_Pagebuilder_Business_Pack::$token}
* @action pootlepb_content_block_custom_field_{Pootle_Business_Pack::$token}
* @since 1.0.0
*/
public function custom_field( $id, $args = array() ) {
Expand Down Expand Up @@ -184,28 +184,28 @@ function modules( $modules ) {
$modules['ppb-biz-testimonial'] = array(
'label' => 'Testimonial',
'icon_class' => 'dashicons dashicons-testimonial',
'ActiveClass' => 'Pootle_Pagebuilder_Business_Pack',
'ActiveClass' => 'Pootle_Business_Pack',
'callback' => 'ppbBizTestimonial',
'priority' => 10,
);
$modules['ppb-biz-number'] = array(
'label' => 'Number counter',
'icon_class' => 'fa fa-sort-numeric-asc',
'ActiveClass' => 'Pootle_Pagebuilder_Business_Pack',
'ActiveClass' => 'Pootle_Business_Pack',
'callback' => 'ppbBizNumber',
'priority' => 10,
);
$modules['ppb-biz-gmap'] = array(
'label' => 'Google map',
'icon_class' => 'fa fa-map',
'ActiveClass' => 'Pootle_Pagebuilder_Business_Pack',
'ActiveClass' => 'Pootle_Business_Pack',
'tab' => '#pootle-' . $this->token . '-tab',
'priority' => 10,
);
$modules['ppb-biz-tabs-accordion'] = array(
'label' => 'Accordion / Tabs',
'icon_class' => 'fa fa-archive',
'ActiveClass' => 'Pootle_Pagebuilder_Business_Pack',
'ActiveClass' => 'Pootle_Business_Pack',
'tab' => '#pootle-' . $this->token . '-ta-tab',
'priority' => 10,
);
Expand Down
18 changes: 9 additions & 9 deletions inc/class-public.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php

/**
* Pootle Pagebuilder Business Pack Pro public class
* Business pack public class
* @property string $token Plugin token
* @property string $url Plugin root dir url
* @property string $path Plugin root dir path
* @property string $version Plugin version
*/
class Pootle_Pagebuilder_Business_Pack_Public {
class Pootle_Business_Pack_Public {
/**
* @var Pootle_Pagebuilder_Business_Pack_Public Instance
* @var Pootle_Business_Pack_Public Instance
* @access private
* @since 1.0.0
*/
Expand All @@ -19,10 +19,10 @@ class Pootle_Pagebuilder_Business_Pack_Public {
protected $_sets = null;

/**
* Main Pootle Pagebuilder Business Pack Pro Instance
* Main Business pack Instance
* Ensures only one instance of Storefront_Extension_Boilerplate is loaded or can be loaded.
* @since 1.0.0
* @return Pootle_Pagebuilder_Business_Pack_Public instance
* @return Pootle_Business_Pack_Public instance
*/
public static function instance() {
if ( null == self::$_instance ) {
Expand All @@ -38,10 +38,10 @@ public static function instance() {
* @since 1.0.0
*/
private function __construct() {
$this->token = Pootle_Pagebuilder_Business_Pack::$token;
$this->url = Pootle_Pagebuilder_Business_Pack::$url;
$this->path = Pootle_Pagebuilder_Business_Pack::$path;
$this->version = Pootle_Pagebuilder_Business_Pack::$version;
$this->token = Pootle_Business_Pack::$token;
$this->url = Pootle_Business_Pack::$url;
$this->path = Pootle_Business_Pack::$path;
$this->version = Pootle_Business_Pack::$version;
} // End __construct()

/**
Expand Down
22 changes: 11 additions & 11 deletions ppb-business-pack.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/*
* Plugin Name: Pootle Pagebuilder Business Pack Pro
* Plugin Name: Business pack
* Plugin URI: http://pootlepress.com/
* Description: Add Tabs, Accordions, Testimonials, Incrementing numbers and Google Maps easily in Pootle Pagebuilder Pro.
* Author: Pootlepress
Expand All @@ -14,20 +14,20 @@
/** Plugin public class */
require 'inc/class-public.php';
/** Intantiating main plugin class */
Pootle_Pagebuilder_Business_Pack::instance( __FILE__ );
Pootle_Business_Pack::instance( __FILE__ );

/**
* Pootle Pagebuilder Business Pack Pro main class
* Business pack main class
* @static string $token Plugin token
* @static string $file Plugin __FILE__
* @static string $url Plugin root dir url
* @static string $path Plugin root dir path
* @static string $version Plugin version
*/
class Pootle_Pagebuilder_Business_Pack{
class Pootle_Business_Pack{

/**
* @var Pootle_Pagebuilder_Business_Pack Instance
* @var Pootle_Business_Pack Instance
* @access private
* @since 1.0.0
*/
Expand Down Expand Up @@ -69,26 +69,26 @@ class Pootle_Pagebuilder_Business_Pack{
public static $path;

/**
* @var Pootle_Pagebuilder_Business_Pack_Admin Instance
* @var Pootle_Business_Pack_Admin Instance
* @access public
* @since 1.0.0
*/
public $admin;

/**
* @var Pootle_Pagebuilder_Business_Pack_Public Instance
* @var Pootle_Business_Pack_Public Instance
* @access public
* @since 1.0.0
*/
public $public;

/**
* Main Pootle Pagebuilder Business Pack Pro Instance
* Main Business pack Instance
*
* Ensures only one instance of Storefront_Extension_Boilerplate is loaded or can be loaded.
*
* @since 1.0.0
* @return Pootle_Pagebuilder_Business_Pack instance
* @return Pootle_Business_Pack instance
*/
public static function instance( $file ) {
if ( null == self::$_instance ) {
Expand Down Expand Up @@ -141,7 +141,7 @@ public function init() {
*/
private function _admin() {
//Instantiating admin class
$this->admin = Pootle_Pagebuilder_Business_Pack_Admin::instance();
$this->admin = Pootle_Business_Pack_Admin::instance();

//Content block panel tabs
add_filter( 'pootlepb_content_block_tabs', array( $this->admin, 'content_block_tabs' ) );
Expand All @@ -162,7 +162,7 @@ private function _admin() {
*/
private function _public() {
//Instantiating public class
$this->public = Pootle_Pagebuilder_Business_Pack_Public::instance();
$this->public = Pootle_Business_Pack_Public::instance();

//Adding front end JS and CSS in /assets folder
add_action( 'wp_enqueue_scripts', array( $this->public, 'enqueue' ) );
Expand Down

0 comments on commit 2a97868

Please sign in to comment.