1 | <?php |
---|
2 | if ( defined('IN_ADMIN') and IN_ADMIN ) |
---|
3 | { |
---|
4 | /* first contact */ |
---|
5 | add_event_handler('loc_end_element_set_global', 'TAT_FC_14'); |
---|
6 | add_event_handler('loc_end_picture_modify', 'TAT_FC_16'); |
---|
7 | add_event_handler('loc_end_picture_modify', 'TAT_FC_17'); |
---|
8 | add_event_handler('loc_end_cat_modify', 'TAT_FC_23'); |
---|
9 | add_event_handler('loc_end_themes_installed', 'TAT_FC_35'); |
---|
10 | } |
---|
11 | |
---|
12 | function TAT_FC_14() |
---|
13 | { |
---|
14 | global $template; |
---|
15 | $template->set_prefilter('batch_manager_global', 'TAT_FC_14_prefilter'); |
---|
16 | } |
---|
17 | function TAT_FC_14_prefilter ($content, &$smarty) |
---|
18 | { |
---|
19 | $search = '<span class="wrap2'; |
---|
20 | $replacement = '{counter print=false assign=TAT_FC_14}<span {if $TAT_FC_14==1}id="TAT_FC_14"{/if} class="wrap2'; |
---|
21 | $content = str_replace($search, $replacement, $content); |
---|
22 | $search = 'target="_blank">{\'Edit\''; |
---|
23 | $replacement = '>{\'Edit\''; |
---|
24 | return str_replace($search, $replacement, $content); |
---|
25 | } |
---|
26 | function TAT_FC_16() |
---|
27 | { |
---|
28 | global $template; |
---|
29 | $template->set_prefilter('picture_modify', 'TAT_FC_16_prefilter'); |
---|
30 | } |
---|
31 | function TAT_FC_16_prefilter ($content, &$smarty) |
---|
32 | { |
---|
33 | $search = '<strong>{\'Linked albums\'|@translate}</strong>'; |
---|
34 | $replacement = '<span id="TAT_FC_16"><strong>{\'Linked albums\'|@translate}</strong></span>'; |
---|
35 | return str_replace($search, $replacement, $content); |
---|
36 | } |
---|
37 | function TAT_FC_17() |
---|
38 | { |
---|
39 | global $template; |
---|
40 | $template->set_prefilter('picture_modify', 'TAT_FC_17_prefilter'); |
---|
41 | } |
---|
42 | function TAT_FC_17_prefilter ($content, &$smarty) |
---|
43 | { |
---|
44 | $search = '<strong>{\'Representation of albums\'|@translate}</strong>'; |
---|
45 | $replacement = '<span id="TAT_FC_17"><strong>{\'Representation of albums\'|@translate}</strong></span>'; |
---|
46 | return str_replace($search, $replacement, $content); |
---|
47 | } |
---|
48 | function TAT_FC_23() |
---|
49 | { |
---|
50 | global $template; |
---|
51 | $template->set_prefilter('album_properties', 'TAT_FC_23_prefilter'); |
---|
52 | } |
---|
53 | function TAT_FC_23_prefilter ($content, &$smarty) |
---|
54 | { |
---|
55 | $search = '<strong>{\'Lock\'|@translate}</strong>'; |
---|
56 | $replacement = '<span id="TAT_FC_23"><strong>{\'Lock\'|@translate}</strong></span>'; |
---|
57 | return str_replace($search, $replacement, $content); |
---|
58 | } |
---|
59 | function TAT_FC_35() |
---|
60 | { |
---|
61 | global $template; |
---|
62 | $template->set_prefilter('themes', 'TAT_FC_35_prefilter'); |
---|
63 | } |
---|
64 | function TAT_FC_35_prefilter ($content, &$smarty) |
---|
65 | { |
---|
66 | $search = '<a href="{$set_default_baseurl}{$theme.ID}" class="tiptip"'; |
---|
67 | $replacement = '{counter print=false assign=TAT_FC_35}<a href="{$set_default_baseurl}{$theme.ID}" class="tiptip" {if $TAT_FC_35==1}id="TAT_FC_35"{/if}'; |
---|
68 | return str_replace($search, $replacement, $content); |
---|
69 | } |
---|
70 | |
---|
71 | ?> |
---|