Plugin Directory

Changeset 2320540


Ignore:
Timestamp:
06/09/2020 02:00:52 AM (6 years ago)
Author:
typetura
Message:

Clarify instructions on the to do page

Location:
typetura/trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • typetura/trunk/README.txt

    r2314862 r2320540  
    7676== Changelog ==
    7777
     78= 1.0.2 =
     79* More clear instructions on the settings panel
     80
    7881= 1.0.1 =
    7982* Documentation updates
    8083* Added screenshots and icons
    8184
    82 = 1.0.1 =
     85= 1.0.0 =
    8386* The first release of Typetura, a fluid typesetting plugin, for WordPress
  • typetura/trunk/admin/class-typetura-admin.php

    r2314859 r2320540  
    55 *
    66 * @link       https://typetura.com
    7  * @since      1.0.1
     7 * @since      1.0.2
    88 *
    99 * @package    Typetura
     
    2626     * The ID of this plugin.
    2727     *
    28      * @since    1.0.1
     28     * @since    1.0.2
    2929     * @access   private
    3030     * @var      string    $plugin_name    The ID of this plugin.
     
    3535     * The version of this plugin.
    3636     *
    37      * @since    1.0.1
     37     * @since    1.0.2
    3838     * @access   private
    3939     * @var      string    $version    The current version of this plugin.
     
    4444     * Initialize the class and set its properties.
    4545     *
    46      * @since    1.0.1
     46     * @since    1.0.2
    4747     * @param      string    $plugin_name       The name of this plugin.
    4848     * @param      string    $version    The version of this plugin.
     
    5858     * Register the stylesheets for the admin area.
    5959     *
    60      * @since    1.0.1
     60     * @since    1.0.2
    6161     */
    6262    public function enqueue_styles() {
     
    8181     * Register the JavaScript for the admin area.
    8282     *
    83      * @since    1.0.1
     83     * @since    1.0.2
    8484     */
    8585    public function enqueue_scripts() {
     
    104104     * Register the administration menu for this plugin into the WordPress Dashboard menu.
    105105     *
    106      * @since    1.0.1
     106     * @since    1.0.2
    107107     */
    108108
     
    124124    * Add settings action link to the plugins page.
    125125    *
    126     * @since    1.0.1
     126    * @since    1.0.2
    127127    */
    128128
     
    141141    * Render the settings page for this plugin.
    142142    *
    143     * @since    1.0.1
     143    * @since    1.0.2
    144144    */
    145145
  • typetura/trunk/admin/partials/typetura-admin-display.php

    r2314862 r2320540  
    77 *
    88 * @link       https://typetura.com
    9  * @since      1.0.1
     9 * @since      1.0.2
    1010 *
    1111 * @package    Typetura
     
    3737        $typetura_base_size = $options['typetura_base_size'];
    3838        $typetura_disabled_auto_typesetting = $options['typetura_disabled_auto_typesetting'];
     39        $hostname = $_SERVER['SERVER_NAME'];
     40
    3941
    4042        $postdata = http_build_query(
     
    5153        settings_fields( $this->plugin_name );
    5254        do_settings_sections( $this->plugin_name );
     55
     56        if ($hostname === 'localhost') {
    5357    ?>
     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>
    54106
    55107    <table class="form-table" role="presentation">
     
    62114                    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>.
    63115                </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>
    64120            </td>
    65121        </tr>
     
    76132                value="<?php if(!empty($typetura_api_key)) echo $typetura_api_key;?>"
    77133            />
    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>
    81134            </td>
    82135        </tr>
     
    105158                    alt="Package Preview"
    106159                    class="package_image"
    107                     style="display: block; background: #ddd; border-radius: 6px; width: 320px; height: 160px; margin: 1rem 0; box-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;"
    108161                >
    109162                <p class="description">
  • typetura/trunk/includes/class-typetura-activator.php

    r2314862 r2320540  
    55 *
    66 * @link       https://typetura.com
    7  * @since      1.0.1
     7 * @since      1.0.2
    88 *
    99 * @package    Typetura
     
    1616 * This class defines all code necessary to run during the plugin's activation.
    1717 *
    18  * @since      1.0.1
     18 * @since      1.0.2
    1919 * @package    Typetura
    2020 * @subpackage Typetura/includes
     
    2828     * Long Description.
    2929     *
    30      * @since    1.0.1
     30     * @since    1.0.2
    3131     */
    3232    public static function activate() {
  • typetura/trunk/includes/class-typetura-deactivator.php

    r2314862 r2320540  
    55 *
    66 * @link       https://typetura.com
    7  * @since      1.0.1
     7 * @since      1.0.2
    88 *
    99 * @package    Typetura
     
    1616 * This class defines all code necessary to run during the plugin's deactivation.
    1717 *
    18  * @since      1.0.1
     18 * @since      1.0.2
    1919 * @package    Typetura
    2020 * @subpackage Typetura/includes
     
    2828     * Long Description.
    2929     *
    30      * @since    1.0.1
     30     * @since    1.0.2
    3131     */
    3232    public static function deactivate() {
  • typetura/trunk/includes/class-typetura-i18n.php

    r2314862 r2320540  
    88 *
    99 * @link       https://typetura.com
    10  * @since      1.0.1
     10 * @since      1.0.2
    1111 *
    1212 * @package    Typetura
     
    2020 * so that it is ready for translation.
    2121 *
    22  * @since      1.0.1
     22 * @since      1.0.2
    2323 * @package    Typetura
    2424 * @subpackage Typetura/includes
     
    3131     * Load the plugin text domain for translation.
    3232     *
    33      * @since    1.0.1
     33     * @since    1.0.2
    3434     */
    3535    public function load_plugin_textdomain() {
  • typetura/trunk/includes/class-typetura-loader.php

    r2314862 r2320540  
    55 *
    66 * @link       https://typetura.com
    7  * @since      1.0.1
     7 * @since      1.0.2
    88 *
    99 * @package    Typetura
     
    2727     * The array of actions registered with WordPress.
    2828     *
    29      * @since    1.0.1
     29     * @since    1.0.2
    3030     * @access   protected
    3131     * @var      array    $actions    The actions registered with WordPress to fire when the plugin loads.
     
    3636     * The array of filters registered with WordPress.
    3737     *
    38      * @since    1.0.1
     38     * @since    1.0.2
    3939     * @access   protected
    4040     * @var      array    $filters    The filters registered with WordPress to fire when the plugin loads.
     
    4545     * Initialize the collections used to maintain the actions and filters.
    4646     *
    47      * @since    1.0.1
     47     * @since    1.0.2
    4848     */
    4949    public function __construct() {
     
    5757     * Add a new action to the collection to be registered with WordPress.
    5858     *
    59      * @since    1.0.1
     59     * @since    1.0.2
    6060     * @param    string               $hook             The name of the WordPress action that is being registered.
    6161     * @param    object               $component        A reference to the instance of the object on which the action is defined.
     
    7171     * Add a new filter to the collection to be registered with WordPress.
    7272     *
    73      * @since    1.0.1
     73     * @since    1.0.2
    7474     * @param    string               $hook             The name of the WordPress filter that is being registered.
    7575     * @param    object               $component        A reference to the instance of the object on which the filter is defined.
     
    8686     * collection.
    8787     *
    88      * @since    1.0.1
     88     * @since    1.0.2
    8989     * @access   private
    9090     * @param    array                $hooks            The collection of hooks that is being registered (that is, actions or filters).
     
    113113     * Register the filters and actions with WordPress.
    114114     *
    115      * @since    1.0.1
     115     * @since    1.0.2
    116116     */
    117117    public function run() {
  • typetura/trunk/includes/class-typetura.php

    r2314862 r2320540  
    88 *
    99 * @link       https://typetura.com
    10  * @since      1.0.1
     10 * @since      1.0.2
    1111 *
    1212 * @package    Typetura
     
    2323 * version of the plugin.
    2424 *
    25  * @since      1.0.1
     25 * @since      1.0.2
    2626 * @package    Typetura
    2727 * @subpackage Typetura/includes
     
    3434     * the plugin.
    3535     *
    36      * @since    1.0.1
     36     * @since    1.0.2
    3737     * @access   protected
    3838     * @var      Typetura_Loader    $loader    Maintains and registers all hooks for the plugin.
     
    4343     * The unique identifier of this plugin.
    4444     *
    45      * @since    1.0.1
     45     * @since    1.0.2
    4646     * @access   protected
    4747     * @var      string    $plugin_name    The string used to uniquely identify this plugin.
     
    5252     * The current version of the plugin.
    5353     *
    54      * @since    1.0.1
     54     * @since    1.0.2
    5555     * @access   protected
    5656     * @var      string    $version    The current version of the plugin.
     
    6565     * the public-facing side of the site.
    6666     *
    67      * @since    1.0.1
     67     * @since    1.0.2
    6868     */
    6969    public function __construct() {
     
    7171            $this->version = TYPETURA_VERSION;
    7272        } else {
    73             $this->version = '1.0.1';
     73            $this->version = '1.0.2';
    7474        }
    7575        $this->plugin_name = 'typetura';
     
    9595     * with WordPress.
    9696     *
    97      * @since    1.0.1
     97     * @since    1.0.2
    9898     * @access   private
    9999     */
     
    133133     * with WordPress.
    134134     *
    135      * @since    1.0.1
     135     * @since    1.0.2
    136136     * @access   private
    137137     */
     
    148148     * of the plugin.
    149149     *
    150      * @since    1.0.1
     150     * @since    1.0.2
    151151     * @access   private
    152152     */
     
    174174     * of the plugin.
    175175     *
    176      * @since    1.0.1
     176     * @since    1.0.2
    177177     * @access   private
    178178     */
     
    194194     * Run the loader to execute all of the hooks with WordPress.
    195195     *
    196      * @since    1.0.1
     196     * @since    1.0.2
    197197     */
    198198    public function run() {
     
    204204     * WordPress and to define internationalization functionality.
    205205     *
    206      * @since     1.0.1
     206     * @since     1.0.2
    207207     * @return    string    The name of the plugin.
    208208     */
     
    214214     * The reference to the class that orchestrates the hooks with the plugin.
    215215     *
    216      * @since     1.0.1
     216     * @since     1.0.2
    217217     * @return    Typetura_Loader    Orchestrates the hooks of the plugin.
    218218     */
     
    224224     * Retrieve the version number of the plugin.
    225225     *
    226      * @since     1.0.1
     226     * @since     1.0.2
    227227     * @return    string    The version number of the plugin.
    228228     */
  • typetura/trunk/public/class-typetura-public.php

    r2314859 r2320540  
    55 *
    66 * @link       https://typetura.com
    7  * @since      1.0.1
     7 * @since      1.0.2
    88 *
    99 * @package    Typetura
     
    2626     * The ID of this plugin.
    2727     *
    28      * @since    1.0.1
     28     * @since    1.0.2
    2929     * @access   private
    3030     * @var      string    $plugin_name    The ID of this plugin.
     
    3535     * The version of this plugin.
    3636     *
    37      * @since    1.0.1
     37     * @since    1.0.2
    3838     * @access   private
    3939     * @var      string    $version    The current version of this plugin.
     
    4444     * Initialize the class and set its properties.
    4545     *
    46      * @since    1.0.1
     46     * @since    1.0.2
    4747     * @param      string    $plugin_name       The name of the plugin.
    4848     * @param      string    $version    The version of this plugin.
     
    6464     * Register the stylesheets for the public-facing side of the site.
    6565     *
    66      * @since    1.0.1
     66     * @since    1.0.2
    6767     */
    6868    public function enqueue_styles() {
     
    8787     * Register the JavaScript for the public-facing side of the site.
    8888     *
    89      * @since    1.0.1
     89     * @since    1.0.2
    9090     */
    9191    public function enqueue_scripts() {
  • typetura/trunk/public/partials/typetura-public-display.php

    r2314862 r2320540  
    77 *
    88 * @link       https://typetura.com
    9  * @since      1.0.1
     9 * @since      1.0.2
    1010 *
    1111 * @package    Typetura
  • typetura/trunk/typetura.php

    r2314862 r2320540  
    1010 *
    1111 * @link              https://typetura.com
    12  * @since             1.0.1
     12 * @since             1.0.2
    1313 * @package           Typetura
    1414 *
     
    1717 * Plugin URI:        typetura.com/
    1818 * Description:       We typeset your website! Typography that works on your website regardless of layout or device.
    19  * Version:           1.0.1
     19 * Version:           1.0.2
    2020 * Author:            Typetura
    2121 * Author URI:        https://typetura.com
     
    3333/**
    3434 * Currently plugin version.
    35  * Start at version 1.0.1 and use SemVer - https://semver.org
     35 * Start at version 1.0.2 and use SemVer - https://semver.org
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define( 'TYPETURA_VERSION', '1.0.1' );
     38define( 'TYPETURA_VERSION', '1.0.2' );
    3939
    4040/**
     
    7272 * not affect the page life cycle.
    7373 *
    74  * @since    1.0.1
     74 * @since    1.0.2
    7575 */
    7676function run_typetura() {
  • typetura/trunk/uninstall.php

    r2314862 r2320540  
    2121 *
    2222 * @link       https://typetura.com
    23  * @since      1.0.1
     23 * @since      1.0.2
    2424 *
    2525 * @package    Typetura
Note: See TracChangeset for help on using the changeset viewer.