First commit

This commit is contained in:
Theodotos Andreou 2018-01-14 13:10:16 +00:00
commit c6e2478c40
13918 changed files with 2303184 additions and 0 deletions

View file

@ -0,0 +1,113 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="help">
{ts}Personalize the contents and appearance of your personal campaign page here. You will be able to return to this page and make changes at any time.{/ts}
</div>
<fieldset class="crm-pcp-campaign-group">
<div class="crm-block crm-contribution-campaign-form-block">
{crmRegion name="pcp-form-campaign"}
<div class="crm-section crm-pcp-title-section crm-contribution-form-block-title">
<div class="label">{$form.pcp_title.label}</div>
<div class="content">
{$form.pcp_title.html|crmAddClass:big}
</div>
<div class="clear"></div>
</div>
<div class="crm-section crm-pcp-intro_text-section crm-contribution-form-block-intro_text">
<div class="label">{$form.pcp_intro_text.label}</div>
<div class="content">
{$form.pcp_intro_text.html|crmAddClass:big}
<div class="description">{ts}Introduce the campaign and why you're supporting it. This text will appear at the top of your personal page AND at the top of the main contribution or event registration page.{/ts}</div>
</div>
<div class="clear"></div>
</div>
<div class="crm-section crm-pcp-goal_amount-section crm-contribution-form-block-goal_amount">
<div class="label">{$form.goal_amount.label}</div>
<div class="content">
{$form.goal_amount.html|crmAddClass:six}
<div class="description">{ts}Total amount you would like to raise for this campaign.{/ts}</div>
</div>
<div class="clear"></div>
</div>
<div class="crm-section crm-pcp-is_thermometer-section crm-contribution-form-block-is_thermometer">
<div class="label">{$form.is_thermometer.label}</div>
<div class="content">
{$form.is_thermometer.html}
<div class="description">{ts}If this option is checked, a "thermometer" showing progress toward your goal will be included on the page.{/ts}</div>
</div>
<div class="clear"></div>
</div>
<div class="crm-section crm-pcp-donate_link_text-section crm-contribution-form-block-donate_link_text">
<div class="label">{$form.donate_link_text.label}</div>
<div class="content">
{$form.donate_link_text.html}
<div class="description">{ts}The text for the contribute or register button.{/ts}</div>
</div>
<div class="clear"></div>
</div>
<div class="crm-section crm-pcp-page_text-section crm-contribution-form-block-page_text">
<div class="label">{$form.page_text.label}</div>
<div class="content">
{$form.page_text.html|crmAddClass:huge}
<div class="description">{ts}Tell people why this campaign is important to you.{/ts}</div>
</div>
<div class="clear"></div>
</div>
{include file="CRM/Form/attachment.tpl" context="pcpCampaign"}
<div class="crm-section crm-pcp-is_honor_roll-section crm-contribution-form-block-is_honor_roll">
<div class="label">{$form.is_honor_roll.label}</div>
<div class="content">
{$form.is_honor_roll.html}
<div class="description">{ts}If this option is checked, an "honor roll" will be displayed with the names (or nicknames) of the people who supported you. (Donors will have the option to remain anonymous. Their names will NOT be listed.){/ts}</div>
</div>
<div class="clear"></div>
</div>
{if $owner_notification_option}
<div class="crm-section crm-pcp-is_notify-section crm-contribution-form-block-is_notify">
<div class="label">{$form.is_notify.label}</div>
<div class="content">
{$form.is_notify.html}
<div class="description">{ts}If this option is checked, you will receive an email notification when people contribute to your campaign.{/ts}</div>
</div>
<div class="clear"></div>
</div>
{/if}
<div class="crm-section crm-pcp-is_active crm-contribution-form-block-is_active">
<div class="label">{$form.is_active.label}</div>
<div class="content">
{$form.is_active.html}
<div class="description">{ts}Is your Personal Campaign Page active? You can activate/de-activate it any time during it's lifecycle.{/ts}</div>
</div>
<div class="clear"></div>
</div>
{/crmRegion}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</fieldset>
<script type="text/javascript">
// Always open attachment div by default for this form
cj('#attachments').show();
</script>

View file

@ -0,0 +1,76 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="id-pcp_intro_help-title"}
{ts}Personal Campaign Pages{/ts}
{/htxt}
{htxt id="id-pcp_intro_help"}
{ts}When Personal Campaign Pages are enabled, constituents will see a link inviting them to create their own fundraising page after making a contribution. Contributions from people who come in through a Personal Campaign Page are recorded as "soft credits" for the supporter who created that campaign page.{/ts}
{/htxt}
{htxt id="id-approval_needed-title"}
{ts}Approval{/ts}
{/htxt}
{htxt id="id-approval_needed"}
<p>{ts}If checked, an administrator will need to approve new personal campaign pages before they are available to the public. We recommend using the "Notify Email" feature if you are requiring approval to ensure that the appropriate staff person is informed when a new Personal Campaign page is 'Waiting Review'.{/ts}</p>
<p>{ts}The person who created the personal campaign page will be automatically notified via email when their page is approved so that they can begin promoting the campaign.{/ts}</p>
{/htxt}
{htxt id="id-notify-title"}
{ts}Email Notification{/ts}
{/htxt}
{htxt id="id-notify"}
<p>{ts}Notification will be sent to this email address whenever a Personal Campaign Page linked to this contribution page is either created or updated. The notification will include links to view the campaign page as well as the contact record of the creator of the page.{/ts}</p>
<p>{ts}If you want Administrator of your organization to receive each PCP Notification receipt, enter one or more email addresses here. Multiple email addresses should be separated by a comma (e.g. jane@example.org, paula@example.org) First Email will be sent to PCP user for support.{/ts}</p>
{/htxt}
{htxt id="id-supporter_profile-title"}
{ts}Supporter Profile{/ts}
{/htxt}
{htxt id="id-supporter_profile"}
{capture assign="createProfileURL"}{crmURL p="civicrm/admin/uf/group" q="reset=1"}{/capture}
{ts 1=$createProfileURL}The Supporter Profile is used to collect or update basic information (e.g. name and email address) from users while they are creating a Personal Campaign Page. The profile you select must be configured with 'Account creation required' (under Profile Settings &raquo; Advanced Settings). You must include an Email address field - and you may include any number of other fields in the profile. If you don't yet have an appropriate Profile configured, you will need to <a href='%1'>create one first</a>, and then return to this form to select it.{/ts}
{/htxt}
{htxt id="id-is_tellfriend-title"}
{ts}Tell-a-Friend{/ts}
{/htxt}
{htxt id="id-is_tellfriend"}
{ts}Can the 'owner' of a Personal Campaign Page use the Tell-a-Friend function to send emails to people inviting them to visit their page and make a contribution? NOTE: Tell a Friend emails will automatically include a link to the sender's campaign page.{/ts}
{/htxt}
{htxt id="id-tellfriend_limit-title"}
{ts}Tell-a-Friend Limit{/ts}
{/htxt}
{htxt id="id-tellfriend_limit"}
{ts}How many recipients can they send emails to at one time? You may want to limit this to prevent large mail blasts from being sent.{/ts}
{/htxt}
{htxt id="id-link_text-title"}
{ts}Personal Contribution Link{/ts}
{/htxt}
{htxt id="id-link_text"}
{ts}Text for the link inviting constituents to create a Personal Contribution Page. This link will appear on the Contribution Thank-you page as well as on each Personal Campaign Page. Leave blank if you do not want constituents to be prompted to create their own Personal Campaign Pages.{/ts}
{/htxt}

View file

@ -0,0 +1,36 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div id="pcp-form" class="crm-block crm-form-block crm-contribution-contributionpage-pcp-form-block">
{if !$profile}
{capture assign=pUrl}{crmURL p='civicrm/admin/uf/group' q="reset=1"}{/capture}
<div class="status message">
{ts 1=$pUrl}No Profile with a user account registration option has been configured / enabled for your site. You need to <a href='%1'>configure a Supporter profile</a> first. It will be used to collect or update basic information from users while they are creating a Personal Campaign Page.{/ts}
</div>
{/if}
<div class="help">
{ts}Allow constituents to create their own personal fundraising pages linked to this contribution page.{/ts} {help id="id-pcp_intro_help"}
</div>
{include file="CRM/PCP/Form/PCP.tpl" context="contribute"}

View file

@ -0,0 +1,90 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="id-pcp_intro_help-title"}
{ts}Personal Campaign Pages{/ts}
{/htxt}
{htxt id="id-pcp_intro_help"}
{ts}Personal Campaign Pages provide your constituents with the ability to promote this event or a related fundraising effort. When Personal Campaign Pages are enabled constituents will see a link after registering for this event which invites them to create their own page to promote the event (or promote a related online contribution page). Event registration fees (or contributions) from people who come in through a Personal Campaign Page are recorded as "soft credits" for the supporter who created that campaign page.{/ts}
{/htxt}
{htxt id="id-approval_needed-title"}
{ts}Approval Needed{/ts}
{/htxt}
{htxt id="id-approval_needed"}
<p>{ts}If checked, an administrator will need to approve new personal campaign pages before they are available to the public. We recommend using the "Notify Email" feature if you are requiring approval to ensure that the appropriate staff person is informed when a new Personal Campaign page is 'Waiting Review'.{/ts}</p>
<p>{ts}The person who created the personal campaign page will be automatically notified via email when their page is approved so that they can begin promoting the campaign.{/ts}</p>
{/htxt}
{htxt id="id-notify-title"}
{ts}Email Notification{/ts}
{/htxt}
{htxt id="id-notify"}
<p>{ts}Notification will be sent to this email address whenever a Personal Campaign Page linked to this event is either created or updated. The notification will include links to view the campaign page as well as the contact record of the creator of the page.{/ts}</p>
<p>{ts}If you want Administrator of your organization to receive each PCP Notification receipt, enter one or more email addresses here. Multiple email addresses should be separated by a comma (e.g. jane@example.org, paula@example.org) First Email will be sent to PCP user for support.{/ts}</p>
{/htxt}
{htxt id="id-supporter_profile-title"}
{ts}Supporter Profile{/ts}
{/htxt}
{htxt id="id-supporter_profile"}
{capture assign="createProfileURL"}{crmURL p="civicrm/admin/uf/group" q="reset=1"}{/capture}
{ts 1=$createProfileURL}The Supporter Profile is used to collect or update basic information (e.g. name and email address) from users while they are creating a Personal Campaign Page. The profile you select must be configured with 'Account creation required' (under Profile Settings &raquo; Advanced Settings). You must include an Email address field - and you may include any number of other fields in the profile. If you don't yet have an appropriate Profile configured, you will need to <a href='%1'>create one first</a>, and then return to this form to select it.{/ts}
{/htxt}
{htxt id="id-is_tellfriend-title"}
{ts}Tell-a-Friend{/ts}
{/htxt}
{htxt id="id-is_tellfriend"}
{ts}Can the 'owner' of a Personal Campaign Page use the Tell-a-Friend function to send emails to people inviting them to visit their page and register or contribute? NOTE: Tell a Friend emails will automatically include a link to the sender's campaign page.{/ts}
{/htxt}
{htxt id="id-tellfriend_limit-title"}
{ts}Tell-a-Friend Limit{/ts}
{/htxt}
{htxt id="id-tellfriend_limit"}
{ts}How many recipients can they send emails to at one time? You may want to limit this to prevent large mail blasts from being sent.{/ts}
{/htxt}
{htxt id="id-link_text-title"}
{ts}Link Text{/ts}
{/htxt}
{htxt id="id-link_text"}
{ts}Text for the link inviting constituents to create a Personal Campaign Page. This link will appear on the Event registration Thank-you page as well as on each Personal Campaign Page. Leave blank if you do not want constituents to be prompted to create their own Personal Campaign Pages.{/ts}
{/htxt}
{htxt id="id-target_entity_type-title"}
{ts}Entity{/ts}
{/htxt}
{htxt id="id-target_entity_type"}
{ts}Select "Event" if you want your supporters to encourage people in their network to also register for this event. Select "Contribution" if you want supporters to promote a related online fundraising campaign (by linking to an online contribution page).{/ts}
{/htxt}
{htxt id="id-target_entity_id-title"}
{ts}Contribution Page{/ts}
{/htxt}
{htxt id="id-target_entity_id"}
{ts}Select the related online contribution page that supporters of this event are promoting. Visitors to their Personal Campaign pages will be directed to the selected online contribution page to donate money.{/ts}
{/htxt}

View file

@ -0,0 +1,36 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div id="pcp-form" class="crm-block crm-form-block crm-contribution-contributionpage-pcp-form-block">
{if !$profile}
{capture assign=pUrl}{crmURL p='civicrm/admin/uf/group' q="reset=1"}{/capture}
<div class="status message">
{ts 1=$pUrl}No Profile with a user account registration option has been configured / enabled for your site. You need to <a href='%1'>configure a Supporter profile</a> first. It will be used to collect or update basic information from users while they are creating a Personal Campaign Page.{/ts}
</div>
{/if}
<div class="help">
{ts}Allow constituents to create their own personal fundraising pages linked to this event.{/ts} {help id="id-pcp_intro_help"}
</div>
{include file="CRM/PCP/Form/PCP.tpl" context="event" pageId=`$eventId`}

View file

@ -0,0 +1,114 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout">
<tr class="crm-contribution-contributionpage-pcp-form-block-pcp_active">
<td class="label">&nbsp;</td>
<td>{$form.pcp_active.html} {$form.pcp_active.label}</td>
</tr>
</table>
<div class="spacer"></div>
<div id="pcpFields">
{crmRegion name="pcp-form-pcp-fields"}
{if $form.target_entity_type}
<table class="form-layout">
<tr class="crm-contribution-contributionpage-pcp-form-block-target_entity_type">
<td class="label">{$form.target_entity_type.label} <span class="crm-marker"> *</span></td>
<td>{$form.target_entity_type.html} {help id="id-target_entity_type"}</td>
</tr>
</table>
<div id="pcpDetailFields" {if $form.target_entity_type.value[0] == 'event'} style="display:none;"{/if}>
<table class="form-layout">
<tr class="crm-contribution-contributionpage-pcp-form-block-target_entity_id" id="pcpDetailFields">
<td class="label">{$form.target_entity_id.label} <span class="crm-marker"> *</span></td>
<td>{$form.target_entity_id.html} {help id="id-target_entity_id"}</td>
</tr>
</table>
</div>
{/if}
<table class="form-layout">
<tr class="crm-contribution-contributionpage-pcp-form-block-is_approval_needed">
<td class="label">{$form.is_approval_needed.label}</td>
<td>{$form.is_approval_needed.html} {help id="id-approval_needed"}</td>
</tr>
<tr class="crm-contribution-contributionpage-pcp-form-block-notify_email">
<td class="label">{$form.notify_email.label}</td>
<td>{$form.notify_email.html} {help id="id-notify"}</td>
</tr>
<tr class="crm-contribution-contributionpage-pcp-form-block-supporter_profile_id">
<td class="label">{$form.supporter_profile_id.label}</td>
<td>{$form.supporter_profile_id.html} {help id="id-supporter_profile"}</td>
</tr>
<tr class="crm-contribution-contributionpage-pcp-form-block-owner_notify_id">
<td class="label">{$form.owner_notify_id.label}</td>
<td>{$form.owner_notify_id.html}</td>
</tr>
<tr class="crm-contribution-contributionpage-pcp-form-block-is_tellfriend_enabled">
<td class="label">{$form.is_tellfriend_enabled.label}</td>
<td>{$form.is_tellfriend_enabled.html} {help id="id-is_tellfriend"}</td>
</tr>
<tr id="tflimit" class="crm-contribution-contributionpage-pcp-form-block-tellfriend_limit">
<td class="label">{$form.tellfriend_limit.label}</td>
<td>{$form.tellfriend_limit.html|crmAddClass:four} {help id="id-tellfriend_limit"}</td>
</tr>
<tr class="crm-contribution-contributionpage-pcp-form-block-link_text">
<td class="label">{$form.link_text.label}</td>
<td>
{$form.link_text.html|crmAddClass:huge} {help id="id-link_text"}<br />
<span class="description">
{if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'}
{ts}You can also place additional links (or menu items) allowing constituents to create their own fundraising pages using the following URL:{/ts}<br />
<em>{crmURL a=1 fe=1 p='civicrm/contribute/campaign' q="action=add&reset=1&pageId=`$pageId`&component=`$context`"}</em>
{elseif $config->userFramework EQ 'Joomla'}
{ts}You can also create front-end links (or menu items) allowing constituents to create their own fundraising pages using the Menu Manager. Select <strong>Contributions &raquo; Personal Campaign Pages</strong> and then select this event.{/ts}
{/if}
</span>
</td>
</tr>
</table>
{/crmRegion}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id = "pcp_active"
trigger_value = "true"
target_element_id = "pcpFields"
target_element_type = "block"
field_type = "radio"
invert = "false"
}
{include file="CRM/common/showHideByFieldValue.tpl"
trigger_field_id = "is_tellfriend_enabled"
trigger_value = "true"
target_element_id = "tflimit"
target_element_type = "table-row"
field_type = "radio"
invert = "false"
}

View file

@ -0,0 +1,35 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for confirmation of delete for a group *}
<fieldset><legend>{ts}Delete Campaign Page {/ts}</legend>
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{ts 1=$title}Are you sure you want to delete Campaign Page '%1'?{/ts}<br />
{ts}This action cannot be undone.{/ts}
</div>
<div class="form-item">{$form.buttons.html}</div>
</fieldset>

View file

@ -0,0 +1,41 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{if $action eq 8}
{include file="CRM/PCP/Form/PCP/Delete.tpl"}
{else}
<div id="pcp" class="crm-block crm-form-block crm-pcp-search-form-block">
<h3>{ts}Find Campaign Pages{/ts}</h3>
<table class="form-layout-compressed">
<tr>
<td>{$form.status_id.label}<br />{$form.status_id.html}</td>
<td>{$form.page_type.label}<br />{$form.page_type.html}</td>
<td>{$form.page_id.label}<br />{$form.page_id.html}</td>
<td>{$form.event_id.label}<br />{$form.event_id.html}</td>
</tr>
</table>
<div class="crm-submit-buttons">{$form.buttons.html}</div>
</div>
{/if}

View file

@ -0,0 +1,53 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Displays account creation and supporter profile form (step 1 in creating a personal campaign page as well as Update Contact info). *}
{if $action EQ 1}
<div class="help">
{if $pcpComponent EQ 'event'}
{ts}Creating your own campaign page is simple. Fill in some basic information below, which will allow you to manage your page and invite friends to support you. Then click 'Continue' to personalize and announce your page.{/ts}
{else}
{ts}Creating your own fundraising page is simple. Fill in some basic information below, which will allow you to manage your page and invite friends to make a contribution. Then click 'Continue' to personalize and announce your page.{/ts}
{/if}
</div>
{/if}
{if $profileDisplay}
<div class="messages status no-popup">
<i class="crm-i fa-exclamation-triangle"></i>
<strong>{ts}Profile is not configured with Email address.{/ts}</strong>
</div>
{else}
<div class="form-item">
{include file="CRM/common/CMSUser.tpl"}
{include file="CRM/UF/Form/Block.tpl" fields=$fields}
{if $isCaptcha}
{include file='CRM/common/ReCAPTCHA.tpl'}
{/if}
</div>
<div class="crm-submit-buttons">
{include file="CRM/common/formButtons.tpl" location="bottom"}
</div>
{/if}

View file

@ -0,0 +1,26 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{include file="CRM/PCP/Page/PCP.tpl" context="Contribute"}

View file

@ -0,0 +1,26 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{include file="CRM/PCP/Page/PCP.tpl" context="Event"}

View file

@ -0,0 +1,43 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{htxt id="id-pcp-intro-title"}
{ts}Personal Campaign Pages{/ts}
{/htxt}
{htxt id="id-pcp-intro"}
<p>{ts}Personal Campaign Pages (PCPs) allow your constituents to create their own fundraising page for your organization. This means that a donor, after donating to your organization, can elect to create a page with her own photo, text, and personal information. She can then send a link to the page to her friends, soliciting support for your organization. This is a powerful way to widely and quickly spread the message about your campaign.{/ts}</p>
<p>{ts}When someone donates through a personal campaign page, a soft credit is given to the owner of the page to recognize the role she played in the contribution. CiviContribute has a section that allows you to administer all of the PCPs for your organization. You can require approval before a PCP goes 'live', and disable or delete any campaign pages you don't approve of.{/ts} {docURL page="user/contributions/personal-campaign-pages"}</p>
<p>
{if $config->userSystem->is_drupal || $config->userFramework EQ 'WordPress'}
{ts}You can also place additional links (or menu items) allowing constituents to create their own fundraising pages using the following URL:{/ts}<br />
<em>{crmURL a=1 fe=1 p='civicrm/contribute/campaign' q="action=add&reset=1&pageId=<id of contribution page or event>&component=<contribute or event>"}</em>
{elseif $config->userFramework EQ 'Joomla'}
{ts}You can also create front-end links (or menu items) allowing constituents to create their own fundraising pages using the Menu Manager. Select <strong>Contributions &raquo; Personal Campaign Pages</strong> and then select this event.{/ts}
{/if}
<p>
{/htxt}

View file

@ -0,0 +1,79 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
<div class="help">
{ts}This screen shows all the Personal Campaign Pages created in the system and allows administrator to review them and change their status.{/ts} {help id="id-pcp-intro"}
</div>
{if $action ne 8}
{include file="CRM/PCP/Form/PCP/PCP.tpl"}
{else}
{include file="CRM/PCP/Form/PCP/Delete.tpl"}
{/if}
{if $rows}
<div id="ltype">
<p></p>
{include file="CRM/common/pager.tpl" location="top"}
{include file="CRM/common/pagerAToZ.tpl"}
{include file="CRM/common/jsortable.tpl"}
{strip}
<table id="options" class="display">
<thead>
<tr>
<th>{ts}Page Title{/ts}</th>
<th>{ts}Supporter{/ts}</th>
<th>{ts}Contribution Page / Event{/ts}</th>
<th>{ts}Starts{/ts}</th>
<th>{ts}Ends{/ts}</th>
<th>{ts}Status{/ts}</th>
<th></th>
</tr>
</thead>
<tbody>
{foreach from=$rows item=row}
<tr id="row_{$row.id}" class="{$row.class}">
<td><a href="{crmURL p='civicrm/pcp/info' q="reset=1&id=`$row.id`" fe='true'}" title="{ts}View Personal Campaign Page{/ts}" target="_blank">{$row.title}</a></td>
<td><a href="{crmURL p='civicrm/contact/view' q="reset=1&cid=`$row.supporter_id`"}" title="{ts}View contact record{/ts}">{$row.supporter}</a></td>
<td><a href="{$row.page_url}" title="{ts}View page{/ts}" target="_blank">{$row.page_title}</td>
<td>{$row.start_date|crmDate}</td>
<td>{if $row.end_date}{$row.end_date|crmDate}{else}({ts}ongoing{/ts}){/if}</td>
<td>{$row.status_id}</td>
<td id={$row.id}>{$row.action|replace:'xx':$row.id}</td>
</tr>
{/foreach}
</tbody>
</table>
{/strip}
</div>
{else}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
{if $isSearch}
{ts}There are no Personal Campaign Pages which match your search criteria.{/ts}
{else}
{ts}There are currently no Personal Campaign Pages.{/ts}
{/if}
</div>
{/if}

View file

@ -0,0 +1,148 @@
{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* this template is used for displaying PCP information *}
{if $owner}
<div class="messages status no-popup">
<div class="icon inform-icon"></div>
<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>
{ts}The current status of your page is{/ts}: <strong {if $pcp.status_id NEQ 2}class=disabled {/if}>{$owner.status}</strong>.
{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}
{if $pcp.page_type EQ 'event'}
{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}
{else}
{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}
{/if}
<br /><br />
<table class="form-layout-compressed">
<tr><td colspan="2"><strong>{ts}You can{/ts}:</strong></td></tr>
{foreach from = $links key = k item = v}
<tr>
<td>
<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>&raquo; {$v.name}</strong></a>
</td>
<td>&nbsp;<cite>{$hints.$k}</cite></td>
</tr>
{/foreach}
</table>
<i class="crm-i fa-lightbulb-o"></i>
<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>
</div>
{/if}
<div class="campaign">
{crmRegion name="pcp-page-pcpinfo"}
<div class="pcp-intro-text">
{$pcp.intro_text}
</div>
{if $image}
<div class="pcp-image">
{$image}
</div>
{/if}
{if $pcp.is_thermometer OR $pcp.is_honor_roll}
<div class="pcp-widgets">
{if $pcp.is_thermometer}
<div class="thermometer-wrapper">
<div class="pcp-amount-goal">
{ts}Goal{/ts} <span class="goal-amount crmMoney">{$pcp.goal_amount|crmMoney}</span>
</div>
<div class="thermometer-fill-wrapper">
<div style="height: {$achieved}%;" class="thermometer-fill">
<div class="thermometer-pointer"><span class="pcp-percent-raised">{$achieved}%</span> towards our goal</div>
</div><!-- /.thermometer-fill -->
</div><!-- /.thermometer-fill-wrapper -->
<div class="pcp-amount-raised">
<span class="raised-amount crmMoney">{$total|crmMoney}</span> {ts}raised{/ts}
</div>
</div>
{/if}
{if $pcp.is_honor_roll}
<div class="honor-roll-wrapper">
<div class="honor-roll-title">{ts}HONOR ROLL{/ts}</div>
<div class="honor_roll">
<marquee behavior="scroll" direction="up" id="pcp_roll" scrolldelay="200" height="200" bgcolor="#fafafa">
{foreach from = $honor item = v}
<div class="pcp_honor_roll_entry">
<div class="pcp-honor_roll-nickname">{$v.nickname}</div>
<div class="pcp-honor_roll-total_amount">{$v.total_amount}</div>
<div class="pcp-honor_roll-personal_note">{$v.personal_note}</div>
</div>
{/foreach}
</marquee>
</div>
<div class="description">
[<a href="#" onclick="roll_start_stop(); return false;" id="roll" title="Stop scrolling">{ts}Stop{/ts}</a>]
</div>
</div>
{/if}
</div>
{/if}
<div class="pcp-page-text">
{$pcp.page_text}
</div>
{if $validDate && $contributeURL}
<div class="pcp-donate">
{* Show link to PCP contribution if configured for online contribution *}
<a href={$contributeURL} class="button contribute-button pcp-contribute-button"><span>{$contributionText}</span></a>
</div>
{/if}
{if $linkText}
<div class="pcp-create-your-own">
<a href={$linkTextUrl} class="pcp-create-link"><span>{$linkText}</span></a>
</div>
{/if}
{/crmRegion}
</div><!-- /.campaign -->
{literal}
<script language="JavaScript">
var start=true;
function roll_start_stop( ) {
if ( start ) {
document.getElementById('roll').innerHTML = "{/literal}{ts escape='js'}Start{/ts}{literal}";
document.getElementById('roll').title = "{/literal}{ts escape='js'}Start scrolling{/ts}{literal}";
document.getElementById('pcp_roll').stop();
start=false;
} else {
document.getElementById('roll').innerHTML = "{/literal}{ts escape='js'}Stop{/ts}{literal}";
document.getElementById('roll').title = "{/literal}{ts escape='js'}Stop scrolling{/ts}{literal}";
document.getElementById('pcp_roll').start();
start=true;
}
}
</script>
{/literal}