Skip to content

Commit

Permalink
Renamed the plugin and updated to a new version
Browse files Browse the repository at this point in the history
  • Loading branch information
akshitsethi committed Apr 12, 2020
1 parent 2740cec commit bea5b42
Show file tree
Hide file tree
Showing 20 changed files with 175 additions and 169 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: build/woo-customizer.zip
asset_name: woo-customizer.zip
asset_path: build/customize-woo.zip
asset_name: customize-woo.zip
asset_content_type: application/zip
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION := 1.0.1
PLUGINSLUG := woo-customizer
VERSION := 1.0.2
PLUGINSLUG := customize-woo
SRCPATH := $(shell pwd)/src

bin/linux/amd64/github-release:
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "akshitsethi/woo-customizer",
"name": "akshitsethi/customize-woo",
"description": "Plugin to help customise WooCommerce with the help of actions and filters.",
"require": {
"php": ">=7.2.0"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woo-customizer",
"version": "1.0.1",
"name": "customize-woo",
"version": "1.0.2",
"description": "Plugin to help customise WooCommerce with the help of actions and filters.",
"scripts": {
"lint": "eslint",
Expand Down
2 changes: 1 addition & 1 deletion src/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "akshitsethi/woo-customizer",
"name": "akshitsethi/customize-woo",
"description": "Plugin to help customise WooCommerce with the help of actions and filters.",
"keywords": [
"wordpress",
Expand Down
6 changes: 3 additions & 3 deletions src/woo-customizer.php → src/customize-woo.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
/**
* Plugin Name: Woo Customizer
* Plugin Name: Customize WooCommerce
* Description: Plugin to help customise WooCommerce with the help of actions and filters.
* Version: 1.0.1
* Version: 1.0.2
* Runtime: 5.6+
* Author: akshitsethi
* Text Domain: woo-customizer
* Text Domain: customize-woo
* Domain Path: i18n
* Author URI: https://akshitsethi.com
* License: GPLv3
Expand Down
22 changes: 14 additions & 8 deletions src/i18n/woo-customizer.pot → src/i18n/customize-woo.pot
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
# Copyright (C) 2020 akshitsethi
# This file is distributed under the same license as the Woo Customizer plugin.
# This file is distributed under the same license as the Customize WooCommerce plugin.
msgid ""
msgstr ""
"Project-Id-Version: Woo Customizer 1.0.1\n"
"Project-Id-Version: Customize WooCommerce 1.0.2\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/src\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2020-04-12T16:44:38+05:30\n"
"POT-Creation-Date: 2020-04-12T16:57:12+05:30\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.4.0\n"
"X-Domain: woo-customizer\n"
"X-Domain: customize-woo\n"

#. Plugin Name of the plugin
#: inc/class-admin.php:42
#: inc/class-admin.php:43
#: inc/class-config.php:45
msgid "Woo Customizer"
msgid "Customize WooCommerce"
msgstr ""

#. Description of the plugin
Expand Down Expand Up @@ -466,6 +463,11 @@ msgstr ""
msgid "About"
msgstr ""

#: inc/class-admin.php:42
#: inc/class-admin.php:43
msgid "Customizer"
msgstr ""

#: inc/class-admin.php:67
msgid "Ask for Support"
msgstr ""
Expand Down Expand Up @@ -502,6 +504,10 @@ msgstr ""
msgid "There was an error creating the support ticket. You can try again later or send me an email directly at [email protected]"
msgstr ""

#: inc/class-config.php:45
msgid "Woo Customizer"
msgstr ""

#: inc/class-config.php:56
#: inc/class-config.php:70
msgid "Add to Cart"
Expand Down
4 changes: 2 additions & 2 deletions src/inc/admin/views/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<img src="<?php echo Config::$plugin_url; ?>assets/admin/images/lrg-icon.png" alt="<?php echo Config::get_plugin_name(); ?>" class="as-logo">
<p>
<strong><?php echo Config::get_plugin_name(); ?></strong>
<span><?php esc_html_e( 'by', 'woo-customizer' ); ?> <a href="https://akshitsethi.com/" target="_blank"><?php esc_html_e( 'Akshit Sethi', 'woo-customizer' ); ?></a></span>
<span><?php esc_html_e( 'by', 'customize-woo' ); ?> <a href="https://akshitsethi.com/" target="_blank"><?php esc_html_e( 'Akshit Sethi', 'customize-woo' ); ?></a></span>
</p>

<div class="as-header-right">
<input type="submit" id="<?php echo Config::PREFIX . 'submit'; ?>" name="<?php echo Config::PREFIX . 'submit'; ?>" class="as-btn" value="<?php esc_attr_e( 'Save Changes', 'woo-customizer' ); ?>" data-tab="#shop">
<input type="submit" id="<?php echo Config::PREFIX . 'submit'; ?>" name="<?php echo Config::PREFIX . 'submit'; ?>" class="as-btn" value="<?php esc_attr_e( 'Save Changes', 'customize-woo' ); ?>" data-tab="#shop">
</div><!-- .as-header-right -->
</div><!-- .as-header -->
10 changes: 5 additions & 5 deletions src/inc/admin/views/settings-about.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@

<div class="as-tile" id="about">
<div class="as-tile-body">
<h2 class="as-tile-title"><?php esc_html_e( 'ABOUT', 'woo-customizer' ); ?></h2>
<p><?php esc_html_e( 'Hola! I\'m Akshit Sethi, Designer + Developer by profession & Entrepreneur by passion. In love with WWW and Spanish. Travel is life. When I am not coding, I am reading anything worth reading. I create premium WordPress themes & plugins.', 'woo-customizer' ); ?></p>
<h2 class="as-tile-title"><?php esc_html_e( 'ABOUT', 'customize-woo' ); ?></h2>
<p><?php esc_html_e( 'Hola! I\'m Akshit Sethi, Designer + Developer by profession & Entrepreneur by passion. In love with WWW and Spanish. Travel is life. When I am not coding, I am reading anything worth reading. I create premium WordPress themes & plugins.', 'customize-woo' ); ?></p>

<div class="as-share">
<p><?php esc_html_e( 'Show me some love and connect with me via social channels.', 'woo-customizer' ); ?></p>
<p><?php esc_html_e( 'Show me some love and connect with me via social channels.', 'customize-woo' ); ?></p>
<a href="https://twitter.com/akshitsethi" target="_blank">
<img src="<?php echo Config::$plugin_url; ?>assets/admin/images/twitter.png" alt="<?php esc_attr_e( 'Twitter', 'woo-customizer' ); ?>" />
<img src="<?php echo Config::$plugin_url; ?>assets/admin/images/twitter.png" alt="<?php esc_attr_e( 'Twitter', 'customize-woo' ); ?>" />
</a>&nbsp;

<a href="https://www.facebook.com/akshitsethi" target="_blank">
<img src="<?php echo Config::$plugin_url; ?>assets/admin/images/facebook.png" alt="<?php esc_attr_e( 'Facebook', 'woo-customizer' ); ?>" />
<img src="<?php echo Config::$plugin_url; ?>assets/admin/images/facebook.png" alt="<?php esc_attr_e( 'Facebook', 'customize-woo' ); ?>" />
</a>
</div><!-- .as-share -->
</div><!-- .as-section-content -->
Expand Down
36 changes: 18 additions & 18 deletions src/inc/admin/views/settings-checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,51 +12,51 @@
<div class="as-tile" id="checkout">
<form method="post" class="as-checkout-form">
<div class="as-tile-body">
<h2 class="as-tile-title"><?php esc_html_e( 'CHECKOUT', 'woo-customizer' ); ?></h2>
<p><?php esc_html_e( 'Configure options for the WooCommerce Checkout page.', 'woo-customizer' ); ?></p>
<h2 class="as-tile-title"><?php esc_html_e( 'CHECKOUT', 'customize-woo' ); ?></h2>
<p><?php esc_html_e( 'Configure options for the WooCommerce Checkout page.', 'customize-woo' ); ?></p>

<div class="as-section-content">
<div class="as-double-group as-clearfix">
<div class="as-form-group">
<label for="<?php echo Config::PREFIX . 'must_be_logged_in_message'; ?>" class="as-strong"><?php esc_html_e( 'Must be Logged-in Text', 'woo-customizer' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'must_be_logged_in_message'; ?>" id="<?php echo Config::PREFIX . 'must_be_logged_in_message'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_must_be_logged_in_message'] ) ); ?>" placeholder="<?php esc_attr_e( 'Must be logged-in message on checkout page', 'woo-customizer' ); ?>" class="as-form-control">
<label for="<?php echo Config::PREFIX . 'must_be_logged_in_message'; ?>" class="as-strong"><?php esc_html_e( 'Must be Logged-in Text', 'customize-woo' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'must_be_logged_in_message'; ?>" id="<?php echo Config::PREFIX . 'must_be_logged_in_message'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_must_be_logged_in_message'] ) ); ?>" placeholder="<?php esc_attr_e( 'Must be logged-in message on checkout page', 'customize-woo' ); ?>" class="as-form-control">

<p class="as-form-help-block"><?php esc_html_e( 'Changes the message displayed when a customer must be logged in to checkout.', 'woo-customizer' ); ?></p>
<p class="as-form-help-block"><?php esc_html_e( 'Changes the message displayed when a customer must be logged in to checkout.', 'customize-woo' ); ?></p>
</div>

<div class="as-form-group">
<label for="<?php echo Config::PREFIX . 'coupon_message'; ?>" class="as-strong"><?php esc_html_e( 'Coupon Text', 'woo-customizer' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'coupon_message'; ?>" id="<?php echo Config::PREFIX . 'coupon_message'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_coupon_message'] ) ); ?>" placeholder="<?php esc_attr_e( 'Coupon message text on checkout page', 'woo-customizer' ); ?>" class="as-form-control">
<label for="<?php echo Config::PREFIX . 'coupon_message'; ?>" class="as-strong"><?php esc_html_e( 'Coupon Text', 'customize-woo' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'coupon_message'; ?>" id="<?php echo Config::PREFIX . 'coupon_message'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_coupon_message'] ) ); ?>" placeholder="<?php esc_attr_e( 'Coupon message text on checkout page', 'customize-woo' ); ?>" class="as-form-control">

<p class="as-form-help-block"><?php esc_html_e( 'Changes the message displayed if the coupon form is enabled on checkout.', 'woo-customizer' ); ?></p>
<p class="as-form-help-block"><?php esc_html_e( 'Changes the message displayed if the coupon form is enabled on checkout.', 'customize-woo' ); ?></p>
</div>
</div>

<div class="as-double-group as-clearfix">
<div class="as-form-group">
<label for="<?php echo Config::PREFIX . 'login_message'; ?>" class="as-strong"><?php esc_html_e( 'Login Text', 'woo-customizer' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'login_message'; ?>" id="<?php echo Config::PREFIX . 'login_message'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_login_message'] ) ); ?>" placeholder="<?php esc_attr_e( 'Login message text on product page', 'woo-customizer' ); ?>" class="as-form-control">
<label for="<?php echo Config::PREFIX . 'login_message'; ?>" class="as-strong"><?php esc_html_e( 'Login Text', 'customize-woo' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'login_message'; ?>" id="<?php echo Config::PREFIX . 'login_message'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_login_message'] ) ); ?>" placeholder="<?php esc_attr_e( 'Login message text on product page', 'customize-woo' ); ?>" class="as-form-control">

<p class="as-form-help-block"><?php esc_html_e( 'Changes the message displayed if customers can login at checkout.', 'woo-customizer' ); ?></p>
<p class="as-form-help-block"><?php esc_html_e( 'Changes the message displayed if customers can login at checkout.', 'customize-woo' ); ?></p>
</div>

<div class="as-form-group">
<label for="<?php echo Config::PREFIX . 'create_account_default_checked'; ?>" class="as-strong"><?php esc_html_e( 'Create Account Checkbox Default', 'woo-customizer' ); ?></label>
<label for="<?php echo Config::PREFIX . 'create_account_default_checked'; ?>" class="as-strong"><?php esc_html_e( 'Create Account Checkbox Default', 'customize-woo' ); ?></label>
<select name="<?php echo Config::PREFIX . 'create_account_default_checked'; ?>" id="<?php echo Config::PREFIX . 'create_account_default_checked'; ?>">
<option value="checked"<?php echo selected( esc_attr( $options['woocommerce_create_account_default_checked'] ), 'checked' ); ?>><?php esc_html_e( 'Checked', 'woo-customizer' ); ?></option>
<option value="unchecked"<?php echo selected( esc_attr( $options['woocommerce_create_account_default_checked'] ), 'unchecked' ); ?>><?php esc_html_e( 'Unchecked', 'woo-customizer' ); ?></option>
<option value="checked"<?php echo selected( esc_attr( $options['woocommerce_create_account_default_checked'] ), 'checked' ); ?>><?php esc_html_e( 'Checked', 'customize-woo' ); ?></option>
<option value="unchecked"<?php echo selected( esc_attr( $options['woocommerce_create_account_default_checked'] ), 'unchecked' ); ?>><?php esc_html_e( 'Unchecked', 'customize-woo' ); ?></option>
</select>

<p class="as-form-help-block"><?php esc_html_e( 'Control the default state for the Create Account checkbox.', 'woo-customizer' ); ?></p>
<p class="as-form-help-block"><?php esc_html_e( 'Control the default state for the Create Account checkbox.', 'customize-woo' ); ?></p>
</div>
</div>

<div class="as-double-group as-clearfix">
<div class="as-form-group">
<label for="<?php echo Config::PREFIX . 'order_button_text'; ?>" class="as-strong"><?php esc_html_e( 'Order Button Text', 'woo-customizer' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'order_button_text'; ?>" id="<?php echo Config::PREFIX . 'order_button_text'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_order_button_text'] ) ); ?>" placeholder="<?php esc_attr_e( 'Place order button text on product page', 'woo-customizer' ); ?>" class="as-form-control">
<label for="<?php echo Config::PREFIX . 'order_button_text'; ?>" class="as-strong"><?php esc_html_e( 'Order Button Text', 'customize-woo' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'order_button_text'; ?>" id="<?php echo Config::PREFIX . 'order_button_text'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_order_button_text'] ) ); ?>" placeholder="<?php esc_attr_e( 'Place order button text on product page', 'customize-woo' ); ?>" class="as-form-control">

<p class="as-form-help-block"><?php esc_html_e( 'Changes the "Place Order" button text on checkout.', 'woo-customizer' ); ?></p>
<p class="as-form-help-block"><?php esc_html_e( 'Changes the "Place Order" button text on checkout.', 'customize-woo' ); ?></p>
</div>
</div>
</div>
Expand Down
22 changes: 11 additions & 11 deletions src/inc/admin/views/settings-misc.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,32 @@
<div class="as-tile" id="misc">
<form method="post" class="as-misc-form">
<div class="as-tile-body">
<h2 class="as-tile-title"><?php esc_html_e( 'MISC', 'woo-customizer' ); ?></h2>
<p><?php esc_html_e( 'Configure other options for the WooCommerce.', 'woo-customizer' ); ?></p>
<h2 class="as-tile-title"><?php esc_html_e( 'MISC', 'customize-woo' ); ?></h2>
<p><?php esc_html_e( 'Configure other options for the WooCommerce.', 'customize-woo' ); ?></p>

<div class="as-section-content">
<div class="as-double-group as-clearfix">
<div class="as-form-group">
<label for="<?php echo Config::PREFIX . 'countries_tax_or_vat'; ?>" class="as-strong"><?php esc_html_e( 'Tax Label', 'woo-customizer' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'countries_tax_or_vat'; ?>" id="<?php echo Config::PREFIX . 'countries_tax_or_vat'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_countries_tax_or_vat'] ) ); ?>" placeholder="<?php esc_attr_e( 'Taxes label text', 'woo-customizer' ); ?>" class="as-form-control">
<label for="<?php echo Config::PREFIX . 'countries_tax_or_vat'; ?>" class="as-strong"><?php esc_html_e( 'Tax Label', 'customize-woo' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'countries_tax_or_vat'; ?>" id="<?php echo Config::PREFIX . 'countries_tax_or_vat'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_countries_tax_or_vat'] ) ); ?>" placeholder="<?php esc_attr_e( 'Taxes label text', 'customize-woo' ); ?>" class="as-form-control">

<p class="as-form-help-block"><?php esc_html_e( 'Changes the Taxes label.', 'woo-customizer' ); ?></p>
<p class="as-form-help-block"><?php esc_html_e( 'Changes the Taxes label.', 'customize-woo' ); ?></p>
</div>

<div class="as-form-group">
<label for="<?php echo Config::PREFIX . 'countries_inc_tax_or_vat'; ?>" class="as-strong"><?php esc_html_e( 'Including Tax Label', 'woo-customizer' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'countries_inc_tax_or_vat'; ?>" id="<?php echo Config::PREFIX . 'countries_inc_tax_or_vat'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_countries_inc_tax_or_vat'] ) ); ?>" placeholder="<?php esc_attr_e( 'Including taxes label text', 'woo-customizer' ); ?>" class="as-form-control">
<label for="<?php echo Config::PREFIX . 'countries_inc_tax_or_vat'; ?>" class="as-strong"><?php esc_html_e( 'Including Tax Label', 'customize-woo' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'countries_inc_tax_or_vat'; ?>" id="<?php echo Config::PREFIX . 'countries_inc_tax_or_vat'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_countries_inc_tax_or_vat'] ) ); ?>" placeholder="<?php esc_attr_e( 'Including taxes label text', 'customize-woo' ); ?>" class="as-form-control">

<p class="as-form-help-block"><?php esc_html_e( 'Changes the including Taxes label.', 'woo-customizer' ); ?></p>
<p class="as-form-help-block"><?php esc_html_e( 'Changes the including Taxes label.', 'customize-woo' ); ?></p>
</div>
</div>

<div class="as-double-group as-clearfix">
<div class="as-form-group">
<label for="<?php echo Config::PREFIX . 'countries_ex_tax_or_vat'; ?>" class="as-strong"><?php esc_html_e( 'Excluding Tax Label', 'woo-customizer' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'countries_ex_tax_or_vat'; ?>" id="<?php echo Config::PREFIX . 'countries_ex_tax_or_vat'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_countries_ex_tax_or_vat'] ) ); ?>" placeholder="<?php esc_attr_e( 'Excluding taxes label text', 'woo-customizer' ); ?>" class="as-form-control">
<label for="<?php echo Config::PREFIX . 'countries_ex_tax_or_vat'; ?>" class="as-strong"><?php esc_html_e( 'Excluding Tax Label', 'customize-woo' ); ?></label>
<input type="text" name="<?php echo Config::PREFIX . 'countries_ex_tax_or_vat'; ?>" id="<?php echo Config::PREFIX . 'countries_ex_tax_or_vat'; ?>" value="<?php echo esc_attr( stripslashes( $options['woocommerce_countries_ex_tax_or_vat'] ) ); ?>" placeholder="<?php esc_attr_e( 'Excluding taxes label text', 'customize-woo' ); ?>" class="as-form-control">

<p class="as-form-help-block"><?php esc_html_e( 'Changes the excluding Taxes label.', 'woo-customizer' ); ?></p>
<p class="as-form-help-block"><?php esc_html_e( 'Changes the excluding Taxes label.', 'customize-woo' ); ?></p>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit bea5b42

Please sign in to comment.