2 +--------------------------------------------------------------------+
3 | CiviCRM version 4.7 |
4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC (c) 2004-2018 |
6 +--------------------------------------------------------------------+
7 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
26 {* this template is used for displaying PCP information *}
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}
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}
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}
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|escape:'html'}" {if $v.extra}{$v.extra}{/if}><strong>» {$v.name}</strong></a>
46 <td> <cite>{$hints.$k}</cite></td>
50 <i class="crm-i fa-lightbulb-o"></i>
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>
54 <div class="campaign">
55 {crmRegion name="pcp-page-pcpinfo"}
56 <div class="pcp-intro-text">
60 <div class="pcp-image">
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>
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}
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" height="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>
95 <div class="description">
96 [<a href="#" onclick="roll_start_stop(); return false;" id="roll" title="Stop scrolling">{ts}Stop{/ts}</a>]
105 <div class="pcp-page-text">
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>
119 <div class="pcp-create-your-own">
120 <a href={$linkTextUrl} class="pcp-create-link"><span>{$linkText}</span></a>
124 </div><!-- /.campaign -->
130 <script language="JavaScript">
134 function roll_start_stop( ) {
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();
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();