diff --git a/go-cannon.php b/hectane.php similarity index 63% rename from go-cannon.php rename to hectane.php index 397670a..7b06fbf 100644 --- a/go-cannon.php +++ b/hectane.php @@ -1,22 +1,22 @@ $subject, 'text' => $message, ); - return GoCannonAPI::instance()->send($email); + return HectaneAPI::instance()->send($email); } } diff --git a/go-cannon_api.php b/hectane_api.php similarity index 80% rename from go-cannon_api.php rename to hectane_api.php index fa34beb..6b5ce5c 100644 --- a/go-cannon_api.php +++ b/hectane_api.php @@ -1,11 +1,11 @@ '; - echo '
The cURL PHP extension is required to use go-cannon.
'; + echo 'The cURL PHP extension is required to use Hectane.
'; echo ''; } /** - * Attempt to send the specified email with go-cannon. + * Attempt to send the specified email with Hectane. * * The $email parameter is expected to be an array with the same parameters * that /v1/send expects. A boolean is returned indicating success or @@ -91,7 +91,7 @@ public function send($email) { } /** - * Retrieve the current version of go-cannon. + * Retrieve the current version of Hectane. * * The version is returned as a string or the value "false" if an error * occurs while making the API call. diff --git a/go-cannon_settings.php b/hectane_settings.php similarity index 72% rename from go-cannon_settings.php rename to hectane_settings.php index 04756cd..e588531 100644 --- a/go-cannon_settings.php +++ b/hectane_settings.php @@ -1,10 +1,10 @@ These settings are used to connect to the go-cannon client.'; + echo 'These settings are used to connect to the Hectane client.
'; } /** @@ -101,7 +101,7 @@ public function connection_settings_callback() { */ public function text_field_callback($args) { printf( - '', + '', esc_attr($args[0]), esc_attr($args[0]), esc_attr(self::get($args[0])) @@ -113,7 +113,7 @@ public function text_field_callback($args) { */ public function checkbox_field_callback($args) { printf( - '', + '', esc_attr($args[0]), esc_attr($args[0]), self::get($args[0]) ? 'checked="checked"' : '' @@ -125,10 +125,10 @@ public function checkbox_field_callback($args) { */ public function add_options_page() { add_options_page( - 'go-cannon Options', - 'go-cannon', + 'Hectane Options', + 'hectane', 'manage_options', - 'go-cannon', + 'hectane', array($this, 'display_options_page') ); } @@ -138,10 +138,10 @@ public function add_options_page() { */ public function display_options_page() { echo '