Plugin Directory

Changeset 1799137


Ignore:
Timestamp:
01/08/2018 03:55:35 PM (8 years ago)
Author:
norcross
Message:

fixing file load issue and general cleanup

Location:
minimum-viable-sharing-meta
Files:
23 added
5 edited

Legend:

Unmodified
Added
Removed
  • minimum-viable-sharing-meta/trunk/CHANGES.md

    r1796510 r1799137  
    1 #### Version 0.0.1 - 2017/12/28
    2 * initial release
     1
     2#### Version 0.0.4 - 2018/01/08
     3* fixed incorrect admin file loading. props @raajtram.
     4* added metadata conversion for the Genesis theme framework.
     5* added `minshare_meta_localized_js_args` filter for localized args.
     6* added post meta removal on plugin deleting.
     7
     8#### Version 0.0.3 - 2018/01/02
     9* added metadata conversion for Yoast SEO and All In One SEO Pack.
    310
    411#### Version 0.0.2 - 2018/01/01
     
    714* added the `MINSHARE_META_POSTKEY` and `MINSHARE_META_OPTIONKEY` constants to use in the entire plugin.
    815
    9 #### Version 0.0.3 - 2018/01/02
    10 * added metadata conversion for Yoast SEO and All In One SEO Pack.
     16#### Version 0.0.1 - 2017/12/28
     17* initial release
  • minimum-viable-sharing-meta/trunk/README.md

    r1795465 r1799137  
    1111After installing and activating the plugin, navigate to the "Sharing Meta Tags" menu item underneath the "Appearance" main tab. Update the fields with the data you'd like. You can also edit them in individually on posts, pages, or other enabled post types.
    1212
     13## Converting Data
     14
     15There are buttons at the bottom of the main settings page to copy any metadata from Yoast SEO or All In One SEO Pack. The `minshare_meta_plugin_convert_keys` filter allows you to modify which plugins are checked for.
     16
    1317## Changelog
    1418See [CHANGES.md](CHANGES.md).
  • minimum-viable-sharing-meta/trunk/includes/class-admin.php

    r1796510 r1799137  
    109109
    110110            // Set our two file names.
    111             $file_c = MINSHARE_META_ASSETS_URL . '/css/' . $name . '.css';
    112             $file_j = MINSHARE_META_ASSETS_URL . '/css/' . $name . '.css';
     111            $file_c = MINSHARE_META_ASSETS_URL . '/css/' . esc_attr( $name ) . '.css';
     112            $file_j = MINSHARE_META_ASSETS_URL . '/js/' . esc_attr( $name ) . '.js';
    113113
    114114            // Load our CSS file.
    115115            wp_enqueue_style( 'minshare-meta-admin', esc_url( $file_c ), false, $vers, 'all' );
     116
     117            // Set our array of localized values.
     118            $local_user = apply_filters( 'minshare_meta_localized_js_args', array() );
     119            $localized  = wp_parse_args( $local_user, array( 'maxTitle' => minshare_meta()->max_title_length(), 'maxDesc' => minshare_meta()->max_description_length() ) );
    116120
    117121            // And our JS.
    118122            wp_enqueue_media();
    119123            wp_enqueue_script( 'minshare-meta-admin', esc_url( $file_j ), array( 'jquery' ), $vers, true );
    120             wp_localize_script( 'minshare-meta-admin', 'minshareMeta', array(
    121                 'maxTitle'  => minshare_meta()->max_title_length(),
    122                 'maxDesc'   => minshare_meta()->max_description_length(),
    123             ));
     124            wp_localize_script( 'minshare-meta-admin', 'minshareMeta', $localized );
    124125
    125126            // And our action to hook on the end of the script loading.
  • minimum-viable-sharing-meta/trunk/minimum-viable-sharing-meta.php

    r1796510 r1799137  
    44 * Plugin URI:  https://github.com/norcross/minimum-viable-sharing-meta
    55 * Description: Just the minimum required meta tags to work.
    6  * Version:     0.0.3
     6 * Version:     0.0.4
    77 * Author:      Andrew Norcross
    88 * Author URI:  http://andrewnorcross.com
     
    3939     * @var    string
    4040     */
    41     private $version = '0.0.3';
     41    private $version = '0.0.4';
    4242
    4343    /**
     
    207207
    208208        /**
    209          * Filters the languages directory path to use for LiquidWebKB.
     209         * Filters the languages directory path to use for MinimumViableMeta.
    210210         *
    211211         * @param string $lang_dir The languages directory path.
     
    224224
    225225        /**
    226          * Defines the plugin language locale used in LiquidWebKB.
     226         * Defines the plugin language locale used in MinimumViableMeta.
    227227         *
    228228         * @var $get_locale The locale to use. Uses get_user_locale()` in WordPress 4.7 or greater,
     
    234234        // Setup paths to current locale file.
    235235        $mofile_local  = $lang_dir . $mofile;
    236         $mofile_global = WP_LANG_DIR . '/liquidweb-kb-admin/' . $mofile;
     236        $mofile_global = WP_LANG_DIR . '/minimum-viable-sharing-meta/' . $mofile;
    237237
    238238        if ( file_exists( $mofile_global ) ) {
    239             // Look in global /wp-content/languages/liquidweb-kb-admin/ folder
     239            // Look in global /wp-content/languages/minimum-viable-sharing-meta/ folder
    240240            load_textdomain( 'minimum-viable-sharing-meta', $mofile_global );
    241241        } elseif ( file_exists( $mofile_local ) ) {
    242             // Look in local /wp-content/plugins/liquidweb-kb-admin/languages/ folder
     242            // Look in local /wp-content/plugins/minimum-viable-sharing-meta/languages/ folder
    243243            load_textdomain( 'minimum-viable-sharing-meta', $mofile_local );
    244244        } else {
     
    439439                'title' => '_aioseop_title',
    440440                'desc'  => '_aioseop_description',
     441            ),
     442            'genesis'   => array(
     443                'name'  => __( 'Genesis Theme Framework', 'minimum-viable-sharing-meta' ),
     444                'title' => '_genesis_title',
     445                'desc'  => '_genesis_description',
    441446            ),
    442447        );
  • minimum-viable-sharing-meta/trunk/readme.txt

    r1796510 r1799137  
    66Requires at least: 4.9
    77Tested up to: 4.9
    8 Stable tag: 0.0.3
     8Stable tag: 0.0.4
    99Requires PHP: 5.6
    1010License: MIT
     
    5555== Changelog ==
    5656
    57 = 0.0.1 - 2017/12/28 =
    58 * First release!
     57= 0.0.4 - 2018/01/08 =
     58* fixed incorrect admin file loading. props @raajtram.
     59* added metadata conversion for the Genesis theme framework.
     60* added `minshare_meta_localized_js_args` filter for localized args.
     61* added post meta removal on plugin deleting.
     62
     63
     64= 0.0.3 - 2018/01/02 =
     65* added metadata conversion for Yoast SEO and All In One SEO Pack.
    5966
    6067
     
    6572
    6673
    67 = 0.0.3 - 2018/01/02 =
    68 * added metadata conversion for Yoast SEO and All In One SEO Pack.
     74= 0.0.1 - 2017/12/28 =
     75* First release!
     76
    6977
    7078== Upgrade Notice ==
Note: See TracChangeset for help on using the changeset viewer.