version fixes
[civicrm-core.git] / templates / CRM / PCP / Page / PCPInfo.tpl
1 {*
2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2015 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
8 | |
9 | CiviCRM is free software; you can copy, modify, and distribute it |
10 | under the terms of the GNU Affero General Public License |
11 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
12 | |
13 | CiviCRM is distributed in the hope that it will be useful, but |
14 | WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
16 | See the GNU Affero General Public License for more details. |
17 | |
18 | You should have received a copy of the GNU Affero General Public |
19 | License and the CiviCRM Licensing Exception along |
20 | with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 *}
26 {* this template is used for displaying PCP information *}
27 {if $owner}
28 <div class="messages status no-popup">
29 <div class="icon inform-icon"></div>
30 <p><strong>{ts}Personal Campaign Preview{/ts}</strong> - {ts}This is a preview of your Personal Campaign Page in support of{/ts} <a href="{$parentURL}"><strong>{$pageName}</strong></a>.</p>
31 {ts}The current status of your page is{/ts}: <strong {if $pcp.status_id NEQ 2}class=disabled {/if}>{$owner.status}</strong>.
32 {if $pcp.status_id NEQ 2}<br /><span class="description">{ts}You will receive an email notification when your page is Approved and you can begin promoting your campaign.{/ts}</span>{/if}
33 {if $pcp.page_type EQ 'event'}
34 {if $owner.registration_start_date}<br />{ts}People can register for this event starting on {/ts} <strong>{$owner.registration_start_date|truncate:10:''|crmDate}</strong>{if $owner.registration_end_date} {ts}until{/ts} <strong>{$owner.registration_end_date|truncate:10:''|crmDate}</strong>{/if}.{/if}
35 {else}
36 {if $owner.start_date}<br />{ts}This campaign is active from{/ts} <strong>{$owner.start_date|truncate:10:''|crmDate}</strong> {ts}until{/ts} <strong>{$owner.end_date|truncate:10:''|crmDate}</strong>.{/if}
37 {/if}
38 <br /><br />
39 <table class="form-layout-compressed">
40 <tr><td colspan="2"><strong>{ts}You can{/ts}:</strong></td></tr>
41 {foreach from = $links key = k item = v}
42 <tr>
43 <td>
44 <a href="{crmURL p=$v.url q=$v.qs|replace:'%%pcpId%%':$replace.id|replace:'%%pageComponent%%':$replace.pageComponent|replace:'%%pcpBlock%%':$replace.block}" title="{$v.title}" {if $v.extra}{$v.extra}{/if}><strong>&raquo; {$v.name}</strong></a>
45 </td>
46 <td>&nbsp;<cite>{$hints.$k}</cite></td>
47 </tr>
48 {/foreach}
49 </table>
50 <div class="icon ui-icon-lightbulb"></div>
51 <strong>{ts}Tip{/ts}</strong> - <span class="description">{ts}You must be logged in to your account to access the editing options above. (If you visit this page without logging in, you will be viewing the page in "live" mode - as your visitors and friends see it.){/ts}</span>
52 </div>
53 {/if}
54 <div class="campaign">
55 {crmRegion name="pcp-page-pcpinfo"}
56 <div class="pcp-intro-text">
57 {$pcp.intro_text}
58 </div>
59 {if $image}
60 <div class="pcp-image">
61 {$image}
62 </div>
63 {/if}
64 {if $pcp.is_thermometer OR $pcp.is_honor_roll}
65 <div class="pcp-widgets">
66 {if $pcp.is_thermometer}
67 <div class="thermometer-wrapper">
68 <div class="pcp-amount-goal">
69 {ts}Goal{/ts} <span class="goal-amount crmMoney">{$pcp.goal_amount|crmMoney}</span>
70 </div>
71 <div class="thermometer-fill-wrapper">
72 <div style="height: {$achieved}%;" class="thermometer-fill">
73 <div class="thermometer-pointer"><span class="pcp-percent-raised">{$achieved}%</span> towards our goal</div>
74 </div><!-- /.thermometer-fill -->
75 </div><!-- /.thermometer-fill-wrapper -->
76 <div class="pcp-amount-raised">
77 <span class="raised-amount crmMoney">{$total|crmMoney}</span> {ts}raised{/ts}
78 </div>
79 </div>
80 {/if}
81 {if $pcp.is_honor_roll}
82 <div class="honor-roll-wrapper">
83 <div class="honor-roll-title">{ts}HONOR ROLL{/ts}</div>
84 <div class="honor_roll">
85 <marquee behavior="scroll" direction="up" id="pcp_roll" scrolldelay="200" bgcolor="#fafafa">
86 {foreach from = $honor item = v}
87 <div class="pcp_honor_roll_entry">
88 <div class="pcp-honor_roll-nickname">{$v.nickname}</div>
89 <div class="pcp-honor_roll-total_amount">{$v.total_amount}</div>
90 <div class="pcp-honor_roll-personal_note">{$v.personal_note}</div>
91 </div>
92 {/foreach}
93 </marquee>
94 </div>
95 <div class="description">
96 [<a href="#" onclick="roll_start_stop(); return false;" id="roll" title="Stop scrolling">{ts}Stop{/ts}</a>]
97 </div>
98 </div>
99 {/if}
100
101 </div>
102 {/if}
103
104
105 <div class="pcp-page-text">
106 {$pcp.page_text}
107 </div>
108
109 {if $validDate && $contributeURL}
110 <div class="pcp-donate">
111 {* Show link to PCP contribution if configured for online contribution *}
112 <a href={$contributeURL} class="button contribute-button pcp-contribute-button"><span>{$contributionText}</span></a>
113 </div>
114 {/if}
115
116
117
118 {if $linkText}
119 <div class="pcp-create-your-own">
120 <a href={$linkTextUrl} class="pcp-create-link"><span>{$linkText}</span></a>
121 </div>
122 {/if}
123 {/crmRegion}
124 </div><!-- /.campaign -->
125
126
127
128
129 {literal}
130 <script language="JavaScript">
131
132
133 var start=true;
134 function roll_start_stop( ) {
135 if ( start ) {
136 document.getElementById('roll').innerHTML = "{/literal}{ts escape='js'}Start{/ts}{literal}";
137 document.getElementById('roll').title = "{/literal}{ts escape='js'}Start scrolling{/ts}{literal}";
138 document.getElementById('pcp_roll').stop();
139 start=false;
140 } else {
141 document.getElementById('roll').innerHTML = "{/literal}{ts escape='js'}Stop{/ts}{literal}";
142 document.getElementById('roll').title = "{/literal}{ts escape='js'}Stop scrolling{/ts}{literal}";
143 document.getElementById('pcp_roll').start();
144 start=true;
145 }
146 }
147 </script>
148 {/literal}