Plugin Directory

Changeset 1056328


Ignore:
Timestamp:
12/29/2014 02:42:22 PM (11 years ago)
Author:
mindrun
Message:

Tagging version 1.0.3

Location:
visage
Files:
9 added
4 edited
2 moved

Legend:

Unmodified
Added
Removed
  • visage/trunk/assets/script.js

    r1056287 r1056328  
    3333    file_frame = wp.media.frames.file_frame = wp.media( {
    3434
    35         title: $( '.visage label' ).html(),
     35        title: visage_lang.media_title,
    3636
    3737        button: {
    38             text: $( '.visage-upload' ).html()
     38            text: visage_lang.media_button
    3939        },
    4040
  • visage/trunk/lang/visage-de_DE.po

    r1055765 r1056328  
    22msgstr ""
    33"Project-Id-Version: Visage\n"
    4 "POT-Creation-Date: 2014-12-22 20:24+0100\n"
    5 "PO-Revision-Date: 2014-12-22 20:25+0100\n"
     4"POT-Creation-Date: 2014-12-29 15:32+0100\n"
     5"PO-Revision-Date: 2014-12-29 15:33+0100\n"
    66"Last-Translator: Leonard Lamprecht <mindrun@icloud.com>\n"
    77"Language-Team: Leonard Lamprecht <mindrun@icloud.com>\n"
     
    1919"X-Poedit-SearchPath-0: .\n"
    2020
    21 #: visage.php:117
     21#: visage.php:113
    2222msgid "Personal Avatar"
    2323msgstr "Persönlicher Avatar"
    2424
    25 #: visage.php:125
     25#: visage.php:121
    2626msgid "Change"
    2727msgstr "Wechseln"
    2828
    29 #: visage.php:126
     29#: visage.php:122
    3030msgid "Delete"
    3131msgstr "Löschen"
    3232
    33 #: visage.php:132
     33#: visage.php:128
    3434msgid "G &#8212; Suitable for all audiences"
    3535msgstr "G &#8212; Jugendfrei"
    3636
    37 #: visage.php:133
     37#: visage.php:129
    3838msgid "PG &#8212; Possibly offensive, usually for audiences 13 and above"
    3939msgstr "PG &#8212; Entspricht dem deutschen FSK12"
    4040
    41 #: visage.php:134
     41#: visage.php:130
    4242msgid "R &#8212; Intended for adult audiences above 17"
    4343msgstr "R &#8212; Entspricht in etwa dem deutschen FSK18"
    4444
    45 #: visage.php:135
     45#: visage.php:131
    4646msgid "X &#8212; Even more mature than above"
    4747msgstr "X &#8212; Keine Jugendfreigabe"
    4848
    49 #: visage.php:182
     49#: visage.php:178
    5050#, php-format
    5151msgid ""
     
    5555"%1$sWarnung:%2$s Die lokale Avatareinstufung liegt bei \"%3$s\" und dein "
    5656"eigener Avatar hat eine Bewertung von \"%4$s\"."
     57
     58#: visage.php:203
     59msgid "Choose a custom avatar"
     60msgstr "Wähle einen persönlichen Avatar"
     61
     62#: visage.php:204
     63msgid "Select"
     64msgstr "Auswählen"
     65
     66#: visage.php:217
     67msgid "Allow users to set their own avatars easily."
     68msgstr "Ermögliche es deinen Benutzern, ihre eigenen Profilbilder zu wählen."
  • visage/trunk/readme.txt

    r1055872 r1056328  
    44Requires at Least: 3.7
    55Tested Up To: 4.1
    6 Stable tag: 1.0.2
     6Stable tag: 1.0.3
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1818Once the plugin is active, you are already able to set your own avatar on your profile-page in the backend of wordpress (Of course you can also manage the avatars of other users right on their own profile-pages).
    1919
    20 **Bugs:** Should you come across some errors or bugs in the course of use, just leave a [review](https://wordpress.org/support/view/plugin-reviews/visage) for me. Afterwards I will put my focus on fixing those as soon as possible.
     20**Bugs:** Should you come across some errors or bugs in the course of use, just leave a [review](/support/view/plugin-reviews/visage) for me. Afterwards I will put my focus on fixing those as soon as possible.
    2121
    2222**For developers:** You don’t need to change your just in order to use visage, all custom avatars are directly filtered through the default `get_avatar()` function.
     
    28283. User management
    2929
    30 == Changelog ==
     30== Changelog ==
     31
     32= 1.0.3 =
     33* Localized scripts & info
     34* Now uses gravatars, if available
     35* Better file names
     36* Improved meta data
    3137
    3238= 1.0.2 =
  • visage/trunk/visage.php

    r1055762 r1056328  
    77    * Text Domain: visage
    88    * Domain Path: /lang/
    9     * Version: 1.0.2
     9    * Version: 1.0.3
    1010    * Author: Leonard Lamprecht
    11     * Author URI: https://profiles.wordpress.org/mindrun/
     11    * Author URI: https://profiles.wordpress.org/mindrun/#content-plugins
    1212    * License: GPLv2
    1313*/
     
    4242    }
    4343
    44     if(
    45         visage_calc_ratings() == true ||
    46         $pagenow == 'profile.php' && $size != 26 ||
    47         $pagenow == 'user-edit.php' && $size != 26
    48     ) {
     44    if( visage_calc_ratings() == true || $pagenow == 'profile.php' && $size != 26 || $pagenow == 'user-edit.php' && $size != 26 ) {
    4945
    5046        $rating_allowed = true;
     
    106102        $visage_meta = get_user_meta( $user->ID, 'visage_id', true );
    107103        $avatar_id = 0;
    108 
     104       
    109105        $avatar_id = $visage_meta ?: $avatar_id;
    110106
    111         $default_avatar = 'http://gravatar.com/avatar/'. md5( strtolower( $user->user_email ) ) . '?f=y&default='. get_option( 'avatar_default' ) .'&s=96';
     107        $default_avatar = 'http://gravatar.com/avatar/'. md5( strtolower( $user->user_email ) ) . '?default='. get_option( 'avatar_default' ) .'&s=96';
    112108
    113109        ?>
     
    177173                <?php
    178174                   
    179                     $global_rating = get_option( 'avatar_rating' );
    180                     $local_rating = get_user_meta( get_current_user_id(), 'visage_rating', true );
     175                    $glob_rating = get_option( 'avatar_rating' );
     176                    $loc_rating = get_user_meta( get_current_user_id(), 'visage_rating', true );
    181177                   
    182                     printf( __( '%1$sWarning:%2$s The default avatar rating is currently set to "%3$s", and your personal avatar has the rating "%4$s".', 'visage' ), '<b>', '</b>', $global_rating, $local_rating );
     178                    printf( __( '%1$sWarning:%2$s The default avatar rating is currently set to "%3$s", and your personal avatar has the rating "%4$s".', 'visage' ), '<b>', '</b>', $glob_rating, $loc_rating );
    183179                ?>
    184180            </p>
     
    201197
    202198    wp_enqueue_media();
    203     wp_enqueue_script( 'visage', plugins_url( 'assets/scripts.js', __FILE__ ) );
    204     wp_enqueue_style( 'visage', plugins_url( 'assets/styles.css', __FILE__ ) );
     199    wp_enqueue_script( 'visage', plugins_url( 'assets/script.js', __FILE__ ) );
     200    wp_enqueue_style( 'visage', plugins_url( 'assets/style.css', __FILE__ ) );
     201   
     202    $translations = array(
     203        'media_title' => __( 'Choose a custom avatar', 'visage' ),
     204        'media_button' => __( 'Select', 'visage' )
     205    );
     206   
     207    wp_localize_script( 'visage', 'visage_lang', $translations );
    205208
    206209}
     
    210213
    211214function visage_load_textdomain() {
    212     load_plugin_textdomain( 'visage', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
     215   
     216    $plugin_meta = array(
     217        'description' => __( 'Allow users to set their own avatars easily.', 'visage' )
     218    );
     219   
     220    load_plugin_textdomain( 'visage', false, dirname( plugin_basename( __FILE__ ) ) . '/lang' );
     221   
    213222}
    214223
Note: See TracChangeset for help on using the changeset viewer.