Skip to content

Commit

Permalink
1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stiofan committed Feb 18, 2020
1 parent 735263a commit a7e41f2
Show file tree
Hide file tree
Showing 7 changed files with 203 additions and 7 deletions.
4 changes: 3 additions & 1 deletion ayecode-connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Description: A service plugin letting users connect AyeCode Services to their site.
* Version: 1.0.0
* Author: AyeCode
* Author URI: https://ayecode.io/
* Author URI: https://ayecode.io
* Requires at least: 4.7
* Tested up to: 5.3
*
Expand Down Expand Up @@ -42,6 +42,8 @@ function ayecode_connect() {
//Call the init method to register routes. This should be called exactly once per client (Preferably before the init hook).
$client->init();

// Load textdomain
load_plugin_textdomain( 'ayecode-connect', false, basename( dirname( __FILE__ ) ) . '/languages/' );
}

/**
Expand Down
4 changes: 2 additions & 2 deletions includes/class-ayecode-connect-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ class="text-muted">
$connect_url = esc_url( $this->client->build_connect_url() );
?>
<small
class="text-muted"><?php _e( "By clicking the <b>Connect Site</b> button, you agree to our <a href='https://wpgeodirectory.com/terms-and-conditions/' target='_blank' class='text-muted' ><u>Terms of Service</u></a> and to share details with AyeCode Ltd", "ayecode-connect" ); ?></small>
class="text-muted"><?php _e( "By clicking the <b>Connect Site</b> button, you agree to our <a href='https://ayecode.io/terms-and-conditions/' target='_blank' class='text-muted' ><u>Terms of Service</u></a> and to share details with AyeCode Ltd", "ayecode-connect" ); ?></small>
<p class="mt-4">
<a href="<?php echo $connect_url; ?>"
class="btn btn-primary"><?php _e( 'Connect Site', 'ayecode-connect' ); ?></a>
Expand All @@ -386,7 +386,7 @@ class="btn btn-primary"><?php _e( 'Connect Site', 'ayecode-connect' ); ?></a>
<div class="ac-footer border-top mt-5">
<p class="text-muted h6 mt-4"><?php _e( 'AycCode Ltd are the creators of:', 'ayecode-connect' ); ?>
<a href="https://wpgeodirectory.com/">wpgeodirectory.com</a>,
<a href="http://wpinvoicing.com/">wpinvoicing.com</a> &
<a href="https://wpinvoicing.com/">wpinvoicing.com</a> &
<a href="https://userswp.io/">userswp.io</a>
</p>
</div>
Expand Down
8 changes: 4 additions & 4 deletions includes/class-ayecode-connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function __construct( array $args = array() ) {
*
*/
public function init() {
add_action( 'rest_api_init', array( $this, 'register_connected_routes' ) );

if ( $this->is_active() ) {

//Connected
Expand Down Expand Up @@ -692,7 +692,7 @@ public function is_api_request_authenticated( $request ) {

$headers = $request->get_header_as_array( 'Authorization' );
if ( empty( $headers ) ) {
return new WP_Error( 'rest_forbidden', esc_html__( 'Missing Authorization Header.1', 'ayecode-connect' ), array( 'status' => 401 ) );
return new WP_Error( 'rest_forbidden', esc_html__( 'Missing Authorization Header.', 'ayecode-connect' ), array( 'status' => 401 ) );
}

$jwt = '';
Expand All @@ -708,7 +708,7 @@ public function is_api_request_authenticated( $request ) {

//Ensure the jwt auth is set...
if ( empty( $jwt ) ) {
return new WP_Error( 'rest_forbidden', esc_html__( 'Missing Authorization Header.2', 'ayecode-connect' ), array( 'status' => 401 ) );
return new WP_Error( 'rest_forbidden', esc_html__( 'Missing Authorization Header.', 'ayecode-connect' ), array( 'status' => 401 ) );
}

//And is valid
Expand Down Expand Up @@ -927,7 +927,7 @@ public function has_permission( $request ) {

//Ensure the jwt auth is set...
if ( empty( $jwt ) ) {
return new WP_Error( 'rest_forbidden', esc_html__( 'Missing Authorization Header.3', 'ayecode-connect' ), array( 'status' => 401 ) );
return new WP_Error( 'rest_forbidden', esc_html__( 'Missing Authorization Header.', 'ayecode-connect' ), array( 'status' => 401 ) );
}

//And is valid
Expand Down
Binary file added languages/ayecode-connect-en_US.mo
Binary file not shown.
133 changes: 133 additions & 0 deletions languages/ayecode-connect-en_US.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
msgid ""
msgstr ""
"Project-Id-Version: AyeCode Connect 1.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-02-18 17:53+0000\n"
"PO-Revision-Date: 2020-02-18 17:53+0000\n"
"Last-Translator: \n"
"Language-Team: AyeCode Ltd <contact@ayecode.io>\n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-KeywordsList: __;__ngettext:1,2;__ngettext_noop:1,2;_c;_e;_ex:1,2c;"
"_n:1,2;_n_noop:1,2;_nc:4c,1,2;_nx:4c,1,2;_nx_noop:4c,1,2;_x:1,2c;esc_attr__;"
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;gettext;"
"gettext_noop\n"
"X-Poedit-Basepath: ..\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Generator: Poedit 1.8.7.1\n"
"X-Poedit-SearchPath-0: .\n"

#: includes/class-ayecode-connect-remote-actions.php:326
msgid "Download source not valid."
msgstr ""

#: includes/class-ayecode-connect-settings.php:201
msgid "Plugin and theme update notifications must be enabled first"
msgstr ""

#: includes/class-ayecode-connect-settings.php:261
msgid "Something went wrong, try refreshing the page and trying again."
msgstr ""

#: includes/class-ayecode-connect-settings.php:262
msgid "Are you sure you with to disconnect your site?"
msgstr ""

#: includes/class-ayecode-connect-settings.php:300
msgid ""
"One click addon installs, live documentation search, support right from your "
"WordPress Dashboard"
msgstr ""

#: includes/class-ayecode-connect-settings.php:308
#, php-format
msgid "You are connected to AyeCode Connect as user: %s"
msgstr ""

#: includes/class-ayecode-connect-settings.php:315
msgid "Plugin and theme update notifications"
msgstr ""

#: includes/class-ayecode-connect-settings.php:318
#: includes/class-ayecode-connect-settings.php:336
#: includes/class-ayecode-connect-settings.php:361
msgid "Loading..."
msgstr ""

#: includes/class-ayecode-connect-settings.php:333
msgid "One click addon installs, no more licence keys"
msgstr ""

#: includes/class-ayecode-connect-settings.php:366
msgid "Disconnect site"
msgstr ""

#: includes/class-ayecode-connect-settings.php:373
msgid ""
"By clicking the <b>Connect Site</b> button, you agree to our <a "
"href='https://ayecode.io/terms-and-conditions/' target='_blank' class='text-"
"muted' ><u>Terms of Service</u></a> and to share details with AyeCode Ltd"
msgstr ""

#: includes/class-ayecode-connect-settings.php:376
msgid "Connect Site"
msgstr ""

#: includes/class-ayecode-connect-settings.php:387
msgid "AycCode Ltd are the creators of:"
msgstr ""

#: includes/class-ayecode-connect.php:297
msgid "Invalid Registration Data"
msgstr ""

#: includes/class-ayecode-connect.php:301
msgid "Invalid Secret"
msgstr ""

#: includes/class-ayecode-connect.php:558
#, php-format
msgid "Domain `%1$s` just failed is_usable_domain check as it is empty."
msgstr ""

#: includes/class-ayecode-connect.php:588
#, php-format
msgid ""
"Domain `%1$s` just failed is_usable_domain check as it is in the forbidden "
"array."
msgstr ""

#: includes/class-ayecode-connect.php:603
#, php-format
msgid ""
"Domain `%1$s` just failed is_usable_domain check as it uses an invalid top "
"level domain."
msgstr ""

#: includes/class-ayecode-connect.php:695
#: includes/class-ayecode-connect.php:711
#: includes/class-ayecode-connect.php:930
msgid "Missing Authorization Header."
msgstr ""

#: includes/class-ayecode-connect.php:717
#: includes/class-ayecode-connect.php:936
#: includes/class-ayecode-connect.php:942
msgid "Invalid Authorization Header."
msgstr ""

#: includes/class-ayecode-connect.php:724
msgid "Missing blog token."
msgstr ""

#: includes/class-ayecode-connect.php:729
#: includes/class-ayecode-connect.php:950
msgid "You are not authorized to do that."
msgstr ""

#: includes/class-ayecode-connect.php:1001
msgid "Specify an action"
msgstr ""
2 changes: 2 additions & 0 deletions languages/index.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
# Silence is golden.
59 changes: 59 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
=== AyeCode Connect ===
Contributors: stiofansisland, paoltaia, ayecode, Ismiaini
Donate link: https://www.ko-fi.com/stiofan
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tags: ayecode, service, geodirectory, userswp, wpinvoicing
Requires at least: 4.7
Requires PHP: 5.6
Tested up to: 5.3
Stable tag: 1.0.0


AyeCode Connect allows you to install any purchased AyeCode Ltd product add-ons without a zip file. It also installs and activates licences automatically, so there is no need to copy/paste licenses.

== Description ==

To take full advantage of this plugin you should have one of our plugins installed.

[GeoDirectory](https://wordpress.org/plugins/geodirectory/) | [UsersWP](https://wordpress.org/plugins/userswp/) | [WP Invoicing](https://wordpress.org/plugins/invoicing/)

The AyeCode Connect Service plugin will link your website with your user account on our website letting you install any purchased addons and keep any purchase licences up to date automatically.

You will be able to remotely manage your activated sites and licences all from your account area on our site.

== Installation ==

= Minimum Requirements =

* WordPress 4.6 or greater
* PHP version 5.6 or greater
* MySQL version 5.0 or greater

= Automatic installation =

Automatic installation is the easiest option. To do an automatic install of AyeCode Connect, log in to your WordPress dashboard, navigate to the Plugins menu and click Add New.

In the search field type "AyeCode Connect" and click Search Plugins. Once you've found our plugin you install it by simply clicking Install Now.

= Manual installation =

The manual installation method involves downloading our plugin and uploading it to your webserver via your favourite FTP application. The WordPress codex will tell you more [here](http://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).

= Updating =

Automatic updates should seamlessly work. We always suggest you backup up your website before performing any automated update to avoid unforeseen problems.


== Frequently Asked Questions ==

TBA

== Screenshots ==

TBA

== Changelog ==

= 1.0.0 =
* First release - YAY

0 comments on commit a7e41f2

Please sign in to comment.