Posted by Morbus Iff on November 10, 2011 at 5:24pm
| Download | Size | md5 hash |
|---|---|---|
| achievements-7.x-1.4.tar.gz | 238.56 KB | 611f93639e26fce7bf110dc27816e8b0 |
| achievements-7.x-1.4.zip | 243.67 KB | ec03340f342328e7aad7f81ed1850b9b |
Last updated: November 10, 2011 - 17:25
Achievements 7.x-1.4, 2011-11-10
--------------------------------
* achievement-latest-unlock.tpl.php added and used in the leaderboard.
* All template files have been moved to templates/ subdirectory.
* Most .tpl.php $variables are now render arrays instead of strings.
* This allows for easier modifications in preprocess hooks.
* You WILL need to modify any overridden themes to support this.
* You should be able to just replace "print $a" with "print render($a)";
* "image_path" added to themes for the context-aware image path.
* "achievement_title" added to themes for easier linked title display.
* "achievement_points" added to themes as a renderable "$n points" string.
* Fixed double-encoding bug in titles of achievements/leaderboard/$AID.
* achievements_locked() added for programmatic taking away of an unlock.
* achievements_storage_del() added to complement the _set and _get ones.
* tabindex on achievement notification was rewritten into a CSS override.
* #theme => 'achievement' usage has gained contextual theme suggestions.
* Admins can no longer take away an achievement the user hasn't unlocked.
* An empty relative leaderboard table is no longer displayed in the HTML.
* "achievement-leaderboard-top-rank" CSS class added to top 3 rank rows.
* "achievement-leaderboard-top-rank-[123]" CSS class added to top 3 rank rows.
* theme_achievements_group_wrapper() added (wraps around user/#/achievements).
* theme_achievement_group_wrapper() added (wraps around an achievement group).
* Stats on user/#/achievements are themed with theme_achievement_user_stats().
* Achievement popups do not fade out if you hover over them (thanks Poetro).
* New hook added: hook_achievements_leaderboard_alter().
* Lets you add new table columns or heavily modify leaderboard display.
* Context (type of leaderboard, block, etc.) and raw data is passed.
* See achievements.api.php for full details about the new hook.