Skip to content

Commit

Permalink
Additional Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
zekinah committed Jun 16, 2020
1 parent 3a749f7 commit b66c299
Show file tree
Hide file tree
Showing 11 changed files with 52 additions and 34 deletions.
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,19 @@ Stable tag: 4.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

This plugin helps you manage and create 301 & 302 redirects for your WordPress site to improve SEO and visitor experience. With a user-friendly interface, Zone Redirect is easy to install and configure.

## Redirect

URL redirection, also called URL forwarding, is a World Wide Web technique for making a web page available under more than one URL address. When a web browser attempts to open a URL that has been redirected, a page with a different URL is opened. Similarly, domain redirection or domain forwarding is when all pages in a URL domain are redirected to a different domain, as when wikipedia.com and wikipedia.net are automatically redirected to wikipedia.org.
Zone Redirect is a tool for URL redirection, also called URL forwarding, is a World Wide Web technique for making a web page available under more than one URL address. When a web browser attempts to open a URL that has been redirected, a page with a different URL is opened. Similarly, domain redirection or domain forwarding is when all pages in a URL domain are redirected to a different domain.

URL redirection is done for various reasons:
Zone Redirect is done for various reasons:
* for URL shortening;
* to prevent broken links when web pages are moved;
* to allow multiple domain names belonging to the same owner to refer to a single web site;
* to guide navigation into and out of a website;
* for privacy protection; and
* for hostile purposes such as phishing attacks or malware distribution.

## Description

Zone Redirect helps you manage and create 301 & 302 redirects for your WordPress site to improve SEO and visitor experience. With a user-friendly interface, Zone Redirect is easy to install and configure.

## Features

* Adding links
Expand All @@ -39,6 +36,8 @@ Zone Redirect helps you manage and create 301 & 302 redirects for your WordPress

## Contributor

Feel free to contribute, subtmit bugs, issues or features to be added.

* **Zekinah Joy Lecaros** - *Initial work* - [Zekinah Lecaros](https://github.com/zekinah)

<a href="https://www.buymeacoffee.com/zekinah" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
1 change: 0 additions & 1 deletion admin/class-zone-redirect-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public function __construct( $plugin_name, $version ) {
public function enqueue_styles() {
wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/zone-redirect-admin.css', array(), $this->version, 'all' );
/* Bootstrap 4 CSS */
// echo '<link rel="stylesheet" href="'.plugin_dir_url(__FILE__) . 'css/bootstrap/bootstrap.min.css">';
wp_enqueue_style('zone-redirect-bootstrap-css', plugin_dir_url(__FILE__) . 'css/bootstrap/bootstrap.min.css', array(), $this->version);
wp_enqueue_style('zone-redirect-bootstrap-toggle', plugin_dir_url(__FILE__) . 'css/bootstrap/bootstrap-toggle.min.css', array(), $this->version);
wp_enqueue_style('zone-redirect-datatable-css', plugin_dir_url(__FILE__) . 'css/datatable/jquery.dataTables.css', array(), $this->version);
Expand Down
7 changes: 5 additions & 2 deletions admin/js/zone-redirect-ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@
if(data.confirm){
$('#zn_txt-from').val('');
$('#zn_txt-to').val('');
$('#tbl-redirect #body_links .dataTables_empty').empty();
$('#tbl-redirect #body_links').prepend(data.html);
successNotif('Successfully added a new redirection');
} else if (data.confirm == 2) {
warningrNotif('Please add valid URL.');
} else {
errorNotif('There is an Error occured while saving the data');
errorNotif('Please add valid URL.');
}
},
error: function (errorThrown) {
Expand Down Expand Up @@ -67,8 +68,10 @@
$('#link-'+zn_edit_id).empty();
$('#link-'+zn_edit_id).append(data.html);
successNotif('Successfully updated the redirection');
} else if (data.confirm == 2) {
warningrNotif('Please add valid URL.');
} else {
errorNotif('There is an Error occured while saving the data');
errorNotif('Please add valid URL.');
}
},
error: function (errorThrown) {
Expand Down
2 changes: 1 addition & 1 deletion admin/view/zone-redirect-main-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="zone-card">
<div class="wrap">
<h1 class="zone-title">Zone Redirect</h1>
<span class="zone-version">v1.0.2</span>
<span class="zone-version">v<?= $this->version ?></span>
</div>
<hr class="wp-header-end">
<div class="container-fluid">
Expand Down
2 changes: 1 addition & 1 deletion includes/class-zone-redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function __construct() {
if ( defined( 'ZONE_REDIRECT_VERSION' ) ) {
$this->version = ZONE_REDIRECT_VERSION;
} else {
$this->version = '1.0.2';
$this->version = '1.0.3';
}
$this->plugin_name = 'zone-redirect';

Expand Down
6 changes: 3 additions & 3 deletions model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Defines the plugin name, version, and two examples hooks for how to
* enqueue the admin-specific stylesheet and JavaScript.
*
* @package Zone_Cookie
* @subpackage Zone_Cookie/admin/model
* @package Zone_Redirect
* @subpackage Zone_Redirect/admin/model
* @author Zekinah Lecaros <[email protected]>
*
*/
Expand Down Expand Up @@ -51,7 +51,7 @@ public function __construct() {
if ( defined( 'ZONE_REDIRECT_VERSION' ) ) {
$this->version = ZONE_REDIRECT_VERSION;
} else {
$this->version = '1.0.2';
$this->version = '1.0.3';
}
$this->plugin_name = 'zone-redirect';
$this->wpdb = $wpdb;
Expand Down
4 changes: 2 additions & 2 deletions model/Display.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Defines the plugin name, version, and two examples hooks for how to
* enqueue the admin-specific stylesheet and JavaScript.
*
* @package Zone_Cookie
* @subpackage Zone_Cookie/admin/model
* @package Zone_Redirect
* @subpackage Zone_Redirect/admin/model
* @author Zekinah Lecaros <[email protected]>
*
*/
Expand Down
4 changes: 2 additions & 2 deletions model/Insert.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Defines the plugin name, version, and two examples hooks for how to
* enqueue the admin-specific stylesheet and JavaScript.
*
* @package Zone_Cookie
* @subpackage Zone_Cookie/admin/model
* @package Zone_Redirect
* @subpackage Zone_Redirect/admin/model
* @author Zekinah Lecaros <[email protected]>
*
*/
Expand Down
4 changes: 2 additions & 2 deletions model/Update.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* Defines the plugin name, version, and two examples hooks for how to
* enqueue the admin-specific stylesheet and JavaScript.
*
* @package Zone_Cookie
* @subpackage Zone_Cookie/admin/model
* @package Zone_Redirect
* @subpackage Zone_Redirect/admin/model
* @author Zekinah Lecaros <[email protected]>
*
*/
Expand Down
39 changes: 28 additions & 11 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,20 @@ Stable tag: 4.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

## Redirect
This plugin helps you manage and create 301 & 302 redirects for your WordPress site to improve SEO and visitor experience. With a user-friendly interface, Zone Redirect is easy to install and configure.

URL redirection, also called URL forwarding, is a World Wide Web technique for making a web page available under more than one URL address. When a web browser attempts to open a URL that has been redirected, a page with a different URL is opened. Similarly, domain redirection or domain forwarding is when all pages in a URL domain are redirected to a different domain, as when wikipedia.com and wikipedia.net are automatically redirected to wikipedia.org.
== Description ==

URL redirection is done for various reasons:
Zone Redirect is a tool for URL redirection, also called URL forwarding, is a World Wide Web technique for making a web page available under more than one URL address. When a web browser attempts to open a URL that has been redirected, a page with a different URL is opened. Similarly, domain redirection or domain forwarding is when all pages in a URL domain are redirected to a different domain.

Zone Redirect is done for various reasons:
* for URL shortening;
* to prevent broken links when web pages are moved;
* to allow multiple domain names belonging to the same owner to refer to a single web site;
* to guide navigation into and out of a website;
* for privacy protection; and
* for hostile purposes such as phishing attacks or malware distribution.

## Description

Zone Redirect helps you manage and create 301 & 302 redirects for your WordPress site to improve SEO and visitor experience. With a user-friendly interface, Zone Redirect is easy to install and configure.

## Features
== Features ==

* Adding links
* Type of Redirection Available:
Expand All @@ -36,7 +33,27 @@ Zone Redirect helps you manage and create 301 & 302 redirects for your WordPress
* Export Data in CSV
* History Logs

## Installation
Support
Feel free to help with development or issue reporting to

https://github.com/zekinah/zone-redirect/

== Installation ==

The plugin is simple to install:

1. Upload `zone-redirect` to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
2. Activate the plugin through the \'Plugins\' menu in WordPress
3. Configure the options from the Zone-Redirect on sidebar

== Screenshots ==
1. Home

2. Manage Redirection

3. Setup

4. History

== Changelog ==
v1.0.3 - Initial Release
4 changes: 2 additions & 2 deletions zone-redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Plugin Name: Zone - Redirect
* Plugin URI: https://github.com/zekinah/Zone-Redirect
* Description: This plugin helps you manage and create 301 & 302 redirects for your WordPress site to improve SEO and visitor experience. With a user-friendly interface, Zone Redirect is easy to install and configure.
* Version: 1.0.2
* Version: 1.0.3
* Author: Zekinah Lecaros
* Author URI: https://github.com/zekinah
* License: GPL-2.0+
Expand All @@ -35,7 +35,7 @@
* Start at version 1.0.0 and use SemVer - https://semver.org
* Rename this for your plugin and update it as you release new versions.
*/
define( 'ZONE_REDIRECT_VERSION', '1.0.2' );
define( 'ZONE_REDIRECT_VERSION', '1.0.3' );

/**
* The code that runs during plugin activation.
Expand Down

0 comments on commit b66c299

Please sign in to comment.