Changeset 2320540
- Timestamp:
- 06/09/2020 02:00:52 AM (6 years ago)
- Location:
- typetura/trunk
- Files:
-
- 12 edited
-
README.txt (modified) (1 diff)
-
admin/class-typetura-admin.php (modified) (9 diffs)
-
admin/partials/typetura-admin-display.php (modified) (6 diffs)
-
includes/class-typetura-activator.php (modified) (3 diffs)
-
includes/class-typetura-deactivator.php (modified) (3 diffs)
-
includes/class-typetura-i18n.php (modified) (3 diffs)
-
includes/class-typetura-loader.php (modified) (8 diffs)
-
includes/class-typetura.php (modified) (15 diffs)
-
public/class-typetura-public.php (modified) (6 diffs)
-
public/partials/typetura-public-display.php (modified) (1 diff)
-
typetura.php (modified) (4 diffs)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
typetura/trunk/README.txt
r2314862 r2320540 76 76 == Changelog == 77 77 78 = 1.0.2 = 79 * More clear instructions on the settings panel 80 78 81 = 1.0.1 = 79 82 * Documentation updates 80 83 * Added screenshots and icons 81 84 82 = 1.0. 1=85 = 1.0.0 = 83 86 * The first release of Typetura, a fluid typesetting plugin, for WordPress -
typetura/trunk/admin/class-typetura-admin.php
r2314859 r2320540 5 5 * 6 6 * @link https://typetura.com 7 * @since 1.0. 17 * @since 1.0.2 8 8 * 9 9 * @package Typetura … … 26 26 * The ID of this plugin. 27 27 * 28 * @since 1.0. 128 * @since 1.0.2 29 29 * @access private 30 30 * @var string $plugin_name The ID of this plugin. … … 35 35 * The version of this plugin. 36 36 * 37 * @since 1.0. 137 * @since 1.0.2 38 38 * @access private 39 39 * @var string $version The current version of this plugin. … … 44 44 * Initialize the class and set its properties. 45 45 * 46 * @since 1.0. 146 * @since 1.0.2 47 47 * @param string $plugin_name The name of this plugin. 48 48 * @param string $version The version of this plugin. … … 58 58 * Register the stylesheets for the admin area. 59 59 * 60 * @since 1.0. 160 * @since 1.0.2 61 61 */ 62 62 public function enqueue_styles() { … … 81 81 * Register the JavaScript for the admin area. 82 82 * 83 * @since 1.0. 183 * @since 1.0.2 84 84 */ 85 85 public function enqueue_scripts() { … … 104 104 * Register the administration menu for this plugin into the WordPress Dashboard menu. 105 105 * 106 * @since 1.0. 1106 * @since 1.0.2 107 107 */ 108 108 … … 124 124 * Add settings action link to the plugins page. 125 125 * 126 * @since 1.0. 1126 * @since 1.0.2 127 127 */ 128 128 … … 141 141 * Render the settings page for this plugin. 142 142 * 143 * @since 1.0. 1143 * @since 1.0.2 144 144 */ 145 145 -
typetura/trunk/admin/partials/typetura-admin-display.php
r2314862 r2320540 7 7 * 8 8 * @link https://typetura.com 9 * @since 1.0. 19 * @since 1.0.2 10 10 * 11 11 * @package Typetura … … 37 37 $typetura_base_size = $options['typetura_base_size']; 38 38 $typetura_disabled_auto_typesetting = $options['typetura_disabled_auto_typesetting']; 39 $hostname = $_SERVER['SERVER_NAME']; 40 39 41 40 42 $postdata = http_build_query( … … 51 53 settings_fields( $this->plugin_name ); 52 54 do_settings_sections( $this->plugin_name ); 55 56 if ($hostname === 'localhost') { 53 57 ?> 58 59 <div class="dops-notice is-info"> 60 <span class="dops-notice__icon-wrapper"> 61 <svg class="gridicon gridicons-info dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> 62 <g> 63 <path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"></path> 64 </g> 65 </svg> 66 </span> 67 <span class="dops-notice__content"> 68 <h3>Development mode</h3> 69 <p class="dops-notice__text"> 70 You do not need a paid Typetura account or valid API key while working on localhost. You can use the API key <code>XXXXXXX-XXXXXXX-XXXXXXX-XXXXXXX</code> to in this mode. 71 </p> 72 </span> 73 </a> 74 </div> 75 76 <?php } ?> 77 78 <style> 79 .dops-notice { 80 background: #fff; 81 border: 1px solid #ccc; 82 box-shadow: 0 3px 8px #ddd; 83 border-radius: 6px; 84 padding: 1rem 1rem 1rem 1.5rem; 85 margin: 2rem 2rem 1rem; 86 max-width: 800px; 87 position: relative; 88 } 89 .dops-notice__icon-wrapper svg { 90 fill: #0073aa; 91 position: absolute; 92 left: 0; 93 top: 50%; 94 transform: translateY(-50%) translateX(-50%); 95 background: #fff; 96 border-radius: 50%; 97 } 98 .dops-notice__content h3 { 99 margin-top: 0; 100 } 101 .dops-notice__text { 102 margin: 0.5rem 0; 103 font-size: 1.2em; 104 } 105 </style> 54 106 55 107 <table class="form-table" role="presentation"> … … 62 114 Thanks for using Typetura! Typetura transforms the typography on your WordPress website. Just select a typographic package and see all the text on your website transform. Your website can have big, bold, and responsive type, regardless of the layout or theme you use. To get started, you will need a paid Typetura account with an API key. If you need any assistance please see <a href="https://docs.typetura.com/using-typetura/configuration-with-packages">our documentation</a>. 63 115 </p> 116 <div style="display: flex; margin: 1rem 0;"> 117 <a style="margin-right: 0.3rem" class="button button-primary" href="https://typetura.com/auth/create-account" target="_blank">Purchase a subscription</a> 118 <a class="button button-primary" href="https://typetura.com/account-settings" target="_blank">Find your API key</a> 119 </div> 64 120 </td> 65 121 </tr> … … 76 132 value="<?php if(!empty($typetura_api_key)) echo $typetura_api_key;?>" 77 133 /> 78 <p class="description">79 You can find your API key in your <a href="https://typetura.com/account-settings">Typetura account settings</a>, Or <a href="https://typetura.com/auth/create-account">Create a Typetura account</a>.80 </p>81 134 </td> 82 135 </tr> … … 105 158 alt="Package Preview" 106 159 class="package_image" 107 style="display: block; background: #ddd; border-radius: 6px; width: 320px; height: 160px; margin: 1rem 0; bo x-shadow: 0 3px 8px #aaa"160 style="display: block; background: #ddd; border-radius: 6px; width: 320px; height: 160px; margin: 1rem 0; border: 1px solid #ccc; box-shadow: 0 3px 8px #ddd;" 108 161 > 109 162 <p class="description"> -
typetura/trunk/includes/class-typetura-activator.php
r2314862 r2320540 5 5 * 6 6 * @link https://typetura.com 7 * @since 1.0. 17 * @since 1.0.2 8 8 * 9 9 * @package Typetura … … 16 16 * This class defines all code necessary to run during the plugin's activation. 17 17 * 18 * @since 1.0. 118 * @since 1.0.2 19 19 * @package Typetura 20 20 * @subpackage Typetura/includes … … 28 28 * Long Description. 29 29 * 30 * @since 1.0. 130 * @since 1.0.2 31 31 */ 32 32 public static function activate() { -
typetura/trunk/includes/class-typetura-deactivator.php
r2314862 r2320540 5 5 * 6 6 * @link https://typetura.com 7 * @since 1.0. 17 * @since 1.0.2 8 8 * 9 9 * @package Typetura … … 16 16 * This class defines all code necessary to run during the plugin's deactivation. 17 17 * 18 * @since 1.0. 118 * @since 1.0.2 19 19 * @package Typetura 20 20 * @subpackage Typetura/includes … … 28 28 * Long Description. 29 29 * 30 * @since 1.0. 130 * @since 1.0.2 31 31 */ 32 32 public static function deactivate() { -
typetura/trunk/includes/class-typetura-i18n.php
r2314862 r2320540 8 8 * 9 9 * @link https://typetura.com 10 * @since 1.0. 110 * @since 1.0.2 11 11 * 12 12 * @package Typetura … … 20 20 * so that it is ready for translation. 21 21 * 22 * @since 1.0. 122 * @since 1.0.2 23 23 * @package Typetura 24 24 * @subpackage Typetura/includes … … 31 31 * Load the plugin text domain for translation. 32 32 * 33 * @since 1.0. 133 * @since 1.0.2 34 34 */ 35 35 public function load_plugin_textdomain() { -
typetura/trunk/includes/class-typetura-loader.php
r2314862 r2320540 5 5 * 6 6 * @link https://typetura.com 7 * @since 1.0. 17 * @since 1.0.2 8 8 * 9 9 * @package Typetura … … 27 27 * The array of actions registered with WordPress. 28 28 * 29 * @since 1.0. 129 * @since 1.0.2 30 30 * @access protected 31 31 * @var array $actions The actions registered with WordPress to fire when the plugin loads. … … 36 36 * The array of filters registered with WordPress. 37 37 * 38 * @since 1.0. 138 * @since 1.0.2 39 39 * @access protected 40 40 * @var array $filters The filters registered with WordPress to fire when the plugin loads. … … 45 45 * Initialize the collections used to maintain the actions and filters. 46 46 * 47 * @since 1.0. 147 * @since 1.0.2 48 48 */ 49 49 public function __construct() { … … 57 57 * Add a new action to the collection to be registered with WordPress. 58 58 * 59 * @since 1.0. 159 * @since 1.0.2 60 60 * @param string $hook The name of the WordPress action that is being registered. 61 61 * @param object $component A reference to the instance of the object on which the action is defined. … … 71 71 * Add a new filter to the collection to be registered with WordPress. 72 72 * 73 * @since 1.0. 173 * @since 1.0.2 74 74 * @param string $hook The name of the WordPress filter that is being registered. 75 75 * @param object $component A reference to the instance of the object on which the filter is defined. … … 86 86 * collection. 87 87 * 88 * @since 1.0. 188 * @since 1.0.2 89 89 * @access private 90 90 * @param array $hooks The collection of hooks that is being registered (that is, actions or filters). … … 113 113 * Register the filters and actions with WordPress. 114 114 * 115 * @since 1.0. 1115 * @since 1.0.2 116 116 */ 117 117 public function run() { -
typetura/trunk/includes/class-typetura.php
r2314862 r2320540 8 8 * 9 9 * @link https://typetura.com 10 * @since 1.0. 110 * @since 1.0.2 11 11 * 12 12 * @package Typetura … … 23 23 * version of the plugin. 24 24 * 25 * @since 1.0. 125 * @since 1.0.2 26 26 * @package Typetura 27 27 * @subpackage Typetura/includes … … 34 34 * the plugin. 35 35 * 36 * @since 1.0. 136 * @since 1.0.2 37 37 * @access protected 38 38 * @var Typetura_Loader $loader Maintains and registers all hooks for the plugin. … … 43 43 * The unique identifier of this plugin. 44 44 * 45 * @since 1.0. 145 * @since 1.0.2 46 46 * @access protected 47 47 * @var string $plugin_name The string used to uniquely identify this plugin. … … 52 52 * The current version of the plugin. 53 53 * 54 * @since 1.0. 154 * @since 1.0.2 55 55 * @access protected 56 56 * @var string $version The current version of the plugin. … … 65 65 * the public-facing side of the site. 66 66 * 67 * @since 1.0. 167 * @since 1.0.2 68 68 */ 69 69 public function __construct() { … … 71 71 $this->version = TYPETURA_VERSION; 72 72 } else { 73 $this->version = '1.0. 1';73 $this->version = '1.0.2'; 74 74 } 75 75 $this->plugin_name = 'typetura'; … … 95 95 * with WordPress. 96 96 * 97 * @since 1.0. 197 * @since 1.0.2 98 98 * @access private 99 99 */ … … 133 133 * with WordPress. 134 134 * 135 * @since 1.0. 1135 * @since 1.0.2 136 136 * @access private 137 137 */ … … 148 148 * of the plugin. 149 149 * 150 * @since 1.0. 1150 * @since 1.0.2 151 151 * @access private 152 152 */ … … 174 174 * of the plugin. 175 175 * 176 * @since 1.0. 1176 * @since 1.0.2 177 177 * @access private 178 178 */ … … 194 194 * Run the loader to execute all of the hooks with WordPress. 195 195 * 196 * @since 1.0. 1196 * @since 1.0.2 197 197 */ 198 198 public function run() { … … 204 204 * WordPress and to define internationalization functionality. 205 205 * 206 * @since 1.0. 1206 * @since 1.0.2 207 207 * @return string The name of the plugin. 208 208 */ … … 214 214 * The reference to the class that orchestrates the hooks with the plugin. 215 215 * 216 * @since 1.0. 1216 * @since 1.0.2 217 217 * @return Typetura_Loader Orchestrates the hooks of the plugin. 218 218 */ … … 224 224 * Retrieve the version number of the plugin. 225 225 * 226 * @since 1.0. 1226 * @since 1.0.2 227 227 * @return string The version number of the plugin. 228 228 */ -
typetura/trunk/public/class-typetura-public.php
r2314859 r2320540 5 5 * 6 6 * @link https://typetura.com 7 * @since 1.0. 17 * @since 1.0.2 8 8 * 9 9 * @package Typetura … … 26 26 * The ID of this plugin. 27 27 * 28 * @since 1.0. 128 * @since 1.0.2 29 29 * @access private 30 30 * @var string $plugin_name The ID of this plugin. … … 35 35 * The version of this plugin. 36 36 * 37 * @since 1.0. 137 * @since 1.0.2 38 38 * @access private 39 39 * @var string $version The current version of this plugin. … … 44 44 * Initialize the class and set its properties. 45 45 * 46 * @since 1.0. 146 * @since 1.0.2 47 47 * @param string $plugin_name The name of the plugin. 48 48 * @param string $version The version of this plugin. … … 64 64 * Register the stylesheets for the public-facing side of the site. 65 65 * 66 * @since 1.0. 166 * @since 1.0.2 67 67 */ 68 68 public function enqueue_styles() { … … 87 87 * Register the JavaScript for the public-facing side of the site. 88 88 * 89 * @since 1.0. 189 * @since 1.0.2 90 90 */ 91 91 public function enqueue_scripts() { -
typetura/trunk/public/partials/typetura-public-display.php
r2314862 r2320540 7 7 * 8 8 * @link https://typetura.com 9 * @since 1.0. 19 * @since 1.0.2 10 10 * 11 11 * @package Typetura -
typetura/trunk/typetura.php
r2314862 r2320540 10 10 * 11 11 * @link https://typetura.com 12 * @since 1.0. 112 * @since 1.0.2 13 13 * @package Typetura 14 14 * … … 17 17 * Plugin URI: typetura.com/ 18 18 * Description: We typeset your website! Typography that works on your website regardless of layout or device. 19 * Version: 1.0. 119 * Version: 1.0.2 20 20 * Author: Typetura 21 21 * Author URI: https://typetura.com … … 33 33 /** 34 34 * Currently plugin version. 35 * Start at version 1.0. 1and use SemVer - https://semver.org35 * Start at version 1.0.2 and use SemVer - https://semver.org 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'TYPETURA_VERSION', '1.0. 1' );38 define( 'TYPETURA_VERSION', '1.0.2' ); 39 39 40 40 /** … … 72 72 * not affect the page life cycle. 73 73 * 74 * @since 1.0. 174 * @since 1.0.2 75 75 */ 76 76 function run_typetura() { -
typetura/trunk/uninstall.php
r2314862 r2320540 21 21 * 22 22 * @link https://typetura.com 23 * @since 1.0. 123 * @since 1.0.2 24 24 * 25 25 * @package Typetura
Note: See TracChangeset
for help on using the changeset viewer.