Changeset 1056328
- Timestamp:
- 12/29/2014 02:42:22 PM (11 years ago)
- Location:
- visage
- Files:
-
- 9 added
- 4 edited
- 2 moved
-
tags/1.0.3 (added)
-
tags/1.0.3/assets (added)
-
tags/1.0.3/assets/script.js (added)
-
tags/1.0.3/assets/style.css (added)
-
tags/1.0.3/lang (added)
-
tags/1.0.3/lang/visage-de_DE.mo (added)
-
tags/1.0.3/lang/visage-de_DE.po (added)
-
tags/1.0.3/readme.txt (added)
-
tags/1.0.3/visage.php (added)
-
trunk/assets/script.js (moved) (moved from visage/trunk/assets/scripts.js) (1 diff)
-
trunk/assets/style.css (moved) (moved from visage/trunk/assets/styles.css)
-
trunk/lang/visage-de_DE.mo (modified) (previous)
-
trunk/lang/visage-de_DE.po (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/visage.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
visage/trunk/assets/script.js
r1056287 r1056328 33 33 file_frame = wp.media.frames.file_frame = wp.media( { 34 34 35 title: $( '.visage label' ).html(),35 title: visage_lang.media_title, 36 36 37 37 button: { 38 text: $( '.visage-upload' ).html()38 text: visage_lang.media_button 39 39 }, 40 40 -
visage/trunk/lang/visage-de_DE.po
r1055765 r1056328 2 2 msgstr "" 3 3 "Project-Id-Version: Visage\n" 4 "POT-Creation-Date: 2014-12-2 2 20:24+0100\n"5 "PO-Revision-Date: 2014-12-2 2 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" 6 6 "Last-Translator: Leonard Lamprecht <mindrun@icloud.com>\n" 7 7 "Language-Team: Leonard Lamprecht <mindrun@icloud.com>\n" … … 19 19 "X-Poedit-SearchPath-0: .\n" 20 20 21 #: visage.php:11 721 #: visage.php:113 22 22 msgid "Personal Avatar" 23 23 msgstr "Persönlicher Avatar" 24 24 25 #: visage.php:12 525 #: visage.php:121 26 26 msgid "Change" 27 27 msgstr "Wechseln" 28 28 29 #: visage.php:12 629 #: visage.php:122 30 30 msgid "Delete" 31 31 msgstr "Löschen" 32 32 33 #: visage.php:1 3233 #: visage.php:128 34 34 msgid "G — Suitable for all audiences" 35 35 msgstr "G — Jugendfrei" 36 36 37 #: visage.php:1 3337 #: visage.php:129 38 38 msgid "PG — Possibly offensive, usually for audiences 13 and above" 39 39 msgstr "PG — Entspricht dem deutschen FSK12" 40 40 41 #: visage.php:13 441 #: visage.php:130 42 42 msgid "R — Intended for adult audiences above 17" 43 43 msgstr "R — Entspricht in etwa dem deutschen FSK18" 44 44 45 #: visage.php:13 545 #: visage.php:131 46 46 msgid "X — Even more mature than above" 47 47 msgstr "X — Keine Jugendfreigabe" 48 48 49 #: visage.php:1 8249 #: visage.php:178 50 50 #, php-format 51 51 msgid "" … … 55 55 "%1$sWarnung:%2$s Die lokale Avatareinstufung liegt bei \"%3$s\" und dein " 56 56 "eigener Avatar hat eine Bewertung von \"%4$s\"." 57 58 #: visage.php:203 59 msgid "Choose a custom avatar" 60 msgstr "Wähle einen persönlichen Avatar" 61 62 #: visage.php:204 63 msgid "Select" 64 msgstr "Auswählen" 65 66 #: visage.php:217 67 msgid "Allow users to set their own avatars easily." 68 msgstr "Ermögliche es deinen Benutzern, ihre eigenen Profilbilder zu wählen." -
visage/trunk/readme.txt
r1055872 r1056328 4 4 Requires at Least: 3.7 5 5 Tested Up To: 4.1 6 Stable tag: 1.0. 26 Stable tag: 1.0.3 7 7 License: GPLv2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 18 18 Once 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). 19 19 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. 21 21 22 22 **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. … … 28 28 3. User management 29 29 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 31 37 32 38 = 1.0.2 = -
visage/trunk/visage.php
r1055762 r1056328 7 7 * Text Domain: visage 8 8 * Domain Path: /lang/ 9 * Version: 1.0. 29 * Version: 1.0.3 10 10 * Author: Leonard Lamprecht 11 * Author URI: https://profiles.wordpress.org/mindrun/ 11 * Author URI: https://profiles.wordpress.org/mindrun/#content-plugins 12 12 * License: GPLv2 13 13 */ … … 42 42 } 43 43 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 ) { 49 45 50 46 $rating_allowed = true; … … 106 102 $visage_meta = get_user_meta( $user->ID, 'visage_id', true ); 107 103 $avatar_id = 0; 108 104 109 105 $avatar_id = $visage_meta ?: $avatar_id; 110 106 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'; 112 108 113 109 ?> … … 177 173 <?php 178 174 179 $glob al_rating = get_option( 'avatar_rating' );180 $loc al_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 ); 181 177 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>', $glob al_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 ); 183 179 ?> 184 180 </p> … … 201 197 202 198 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 ); 205 208 206 209 } … … 210 213 211 214 function 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 213 222 } 214 223
Note: See TracChangeset
for help on using the changeset viewer.