Projet

Général

Profil

Révision 76e2e7c3

Ajouté par Assos Assos il y a environ 10 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/flag/theme/flag.tpl.php
2 2

  
3 3
/**
4 4
 * @file
5
 * Default theme implementation to display a flag link, and a message after the action
6
 * is carried out.
5
 * Default theme implementation to display a flag link, and a message after the
6
 * action is carried out.
7 7
 *
8 8
 * Available variables:
9 9
 *
10 10
 * - $flag: The flag object itself. You will only need to use it when the
11 11
 *   following variables don't suffice.
12
 * - $flag_name_css: The flag name, with all "_" replaced with "-". For use in 'class'
13
 *   attributes.
14
 * - $flag_classes: A space-separated list of CSS classes that should be applied to the link.
12
 * - $flag_name_css: The flag name, with all "_" replaced with "-". For use in
13
 *   'class' attributes.
14
 * - $flag_classes: A space-separated list of CSS classes that should be applied
15
 *   to the link.
15 16
 *
16
 * - $action: The action the link is about to carry out, either "flag" or "unflag".
17
 * - $action: The action the link is about to carry out, either "flag" or
18
 *   "unflag".
17 19
 * - $status: The status of the item; either "flagged" or "unflagged".
18 20
 *
19 21
 * - $link_href: The URL for the flag link.
20 22
 * - $link_text: The text to show for the link.
21 23
 * - $link_title: The title attribute for the link.
22 24
 *
23
 * - $message_text: The long message to show after a flag action has been carried out.
24
 * - $message_classes: A space-separated list of CSS classes that should be applied to
25
 * - $message_text: The long message to show after a flag action has been
26
 *   carried out.
27
 * - $message_classes: A space-separated list of CSS classes that should be
28
 *   applied to
25 29
 *   the message.
26
 * - $after_flagging: This template is called for the link both before and after being
30
 * - $after_flagging: This template is called for the link both before and after
31
 *   being
27 32
 *   flagged. If displaying to the user immediately after flagging, this value
28 33
 *   will be boolean TRUE. This is usually used in conjunction with immedate
29 34
 *   JavaScript-based toggling of flags.
......
35 40
 * - flag--name.tpl.php
36 41
 * - flag--link-type.tpl.php
37 42
 *
38
 * NOTE: This template spaces out the <span> tags for clarity only. When doing some
39
 * advanced theming you may have to remove all the whitespace.
43
 * NOTE: This template spaces out the <span> tags for clarity only. When doing
44
 * some advanced theming you may have to remove all the whitespace.
40 45
 */
41 46
?>
42 47
<?php if ($needs_wrapping_element): ?>

Formats disponibles : Unified diff