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,101 @@
{*
+--------------------------------------------------------------------+
| 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 |
+--------------------------------------------------------------------+
*}
{* Enduser Tell-a-Friend form. *}
{if $status eq 'thankyou' } {* Form has been submitted. *}
<div class="crm-section tell_friend_thankyou-section">
{$thankYouText}
</div>
{* Add button for donor to create their own Personal Campaign page *}
{if $linkText}
<div class="crm-section create_pcp_link-section">
<a href="{$linkTextUrl}" title="{$linkText|escape}" class="button"><span>&raquo; {$linkText}</span></a>
</div><br /><br />
{/if}
{else}
<div class="crm-group tell_friend_form-group">
<table class="form-layout-compressed">
<tr>
<td colspan=2>
<p>
{if $context EQ 'pcp'}
{ts 1=$pcpTitle}Spread the word about this fundraising page (%1). Add your personal message below. A link to the fundraising page will be automatically included in the email.{/ts}
{else}
{$intro}
{/if}
</p>
</td>
</tr>
<tr>
<td class="right font-size12pt">{$form.from_name.label}&nbsp;&nbsp;</td>
<td class="font-size12pt">{$form.from_name.html} &lt;{$form.from_email.html}&gt;</td>
</tr>
<tr>
<td class="label font-size12pt">{$form.suggested_message.label}</td>
<td>{$form.suggested_message.html}</td>
</tr>
<tr>
<td></td>
<td>
<fieldset class="crm-group tell_friend_emails-group">
<legend>{ts}Send to these Friend(s){/ts}</legend>
<table>
<tr class="columnheader">
<td>{ts}First Name{/ts}</td>
<td>{ts}Last Name{/ts}</td>
<td>{ts}Email Address{/ts}</td>
</tr>
{section name=mail start=1 loop=$mailLimit}
{assign var=idx value=$smarty.section.mail.index}
<tr>
<td class="even-row">{$form.friend.$idx.first_name.html}</td>
<td class="even-row">{$form.friend.$idx.last_name.html}</td>
<td class="even-row">{$form.friend.$idx.email.html}</td>
</tr>
{/section}
</table>
</fieldset>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>{$form.buttons.html}</td>
</tr>
</table>
</div>
{/if}
{if $isShare}
{if $context EQ 'event'}
{capture assign=pageURL}{crmURL p='civicrm/event/info' q="id=`$entityID`&amp;reset=1" a=1 fe=1 h=1}{/capture}
{else}
{capture assign=pageURL}{crmURL p='civicrm/contribute/transact' q="reset=1&amp;id=`$entityID`" a=1 fe=1 h=1}{/capture}
{/if}
{include file="CRM/common/SocialNetwork.tpl" url=$pageURL title=$title pageURL=$pageURL}
{/if}

View file

@ -0,0 +1,27 @@
{*
+--------------------------------------------------------------------+
| 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/Friend/Form/Friend.tpl" context="Contribute"}

View file

@ -0,0 +1,27 @@
{*
+--------------------------------------------------------------------+
| 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/Friend/Form/Friend.tpl" context="Event"}

View file

@ -0,0 +1,131 @@
{*
+--------------------------------------------------------------------+
| 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="form" class="crm-form-block crm-friend-manage-block">
<div class="help">
{if $context EQ 'Contribute'}
{assign var=enduser value="contributor"}
{assign var=pageType value="Online Contribution page"}
{ts}Tell a Friend gives your contributors an easy way to spread the word about this fundraising campaign. The contribution thank-you page will include a link to a form where they can enter their friends' email addresses, along with a personalized message. CiviCRM will record these solicitation activities, and will add the friends to your database.{/ts}
{elseif $context EQ 'Event'}
{assign var=enduser value="participant"}
{assign var=pageType value="Event Information page"}
{ts}Tell a Friend gives registering participants an easy way to spread the word about this event. The registration thank-you page will include a link to a form where they can enter their friends' email addresses, along with a personalized message. CiviCRM will record these solicitation activities, and will add the friends to your database.{/ts}
{elseif $context EQ 'Pledge'}
{assign var=enduser value="pledge"}
{assign var=pageType value="Pledge Information page"}
{ts}Tell a Friend gives registering pledge signers an easy way to spread the word about this pledge. The registration thank-you page will include a link to a form where they can enter their friends' email addresses, along with a personalized message. CiviCRM will record these solicitation activities, and will add the friends to your database.{/ts}
{/if}
{ts}If sharing through social media is enabled, links allowing people to share with their social network will also be included on the Tell a Friend form (e.g. Facebook "Like", Google+, and Twitter). You can turn social media sharing on and off from the Settings tab.{/ts}
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="top"}</div>
<table class="form-layout">
<tr>
<td></td>
</tr>
<tr class="crm-friend-manage-form-block-tf_is_active">
<td class="label"">{$form.tf_is_active.html}</td>
<td>{$form.tf_is_active.label}</td>
</tr>
</table>
<div id="friendFields">
<table class="form-layout">
<tr class="crm-friend-manage-form-block-tf_title">
<td class="label">{$form.tf_title.label}
{if $action == 2}
{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='title' id=$friendId}
{/if}
</td>
<td>{$form.tf_title.html}
</td>
</tr>
<tr class="crm-friend-manage-form-block-intro">
<td class="label">{$form.intro.label}
{if $action == 2}
{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='intro' id=$friendId}
{/if}
</td>
<td>{$form.intro.html}<br />
<span class="description">{ts 1=$enduser}This message is displayed to the %1 at the top of the Tell a Friend form. You may include HTML tags to add formatting or links.{/ts}
</span>
</td>
</tr>
<tr class="crm-friend-manage-form-block-suggested_message">
<td class="label">{$form.suggested_message.label}
{if $action == 2}
{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='suggested_message' id=$friendId}
{/if}
</td>
<td>{$form.suggested_message.html}<br />
<span class="description">{ts 1=$enduser}Provides the %1 with suggested text for their personalized message to their friends.{/ts}
</span>
</td>
</tr>
<tr class="crm-friend-manage-form-block-general_link">
<td class="label">{$form.general_link.label}</td>
<td>{$form.general_link.html}<br />
<span class="description">{ts 1=$pageType}A link to this %1 is automatically included in the email sent to friends. If you ALSO want to include a link providing general information about your organization, enter that link here (e.g <em>http://www.example.org/</em>){/ts}
</span>
</td>
</tr>
<tr class="crm-friend-manage-form-block-thankyou_title">
<td class="label">{$form.tf_thankyou_title.label}
{if $action == 2}
{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='thankyou_title' id=$friendId}{/if}</td>
<td>{$form.tf_thankyou_title.html}</td>
</tr>
<tr class="crm-friend-manage-form-block-thankyou_text">
<td class="label">{$form.tf_thankyou_text.label}
{if $action == 2}
{include file='CRM/Core/I18n/Dialog.tpl' table='civicrm_tell_friend' field='thankyou_text' id=$friendId}
{/if}
</td>
<td>{$form.tf_thankyou_text.html}<br />
<span class="description">{ts 1=$enduser}Your message thanking the %1 for helping to spread the word. You may include HTML tags to add formatting or links.{/ts}
</span>
</td>
</tr>
</table>
</div>
<div class="crm-submit-buttons">{include file="CRM/common/formButtons.tpl" location="bottom"}</div>
</div>
{literal}
<script type="text/javascript">
var is_act = document.getElementsByName('tf_is_active');
if ( ! is_act[0].checked) {
cj('#friendFields').hide();
}
function friendBlock(chkbox) {
if (chkbox.checked) {
cj('#friendFields').show();
return;
} else {
cj('#friendFields').hide();
return;
}
}
</script>
{/literal}

View file

@ -0,0 +1,27 @@
{*
+--------------------------------------------------------------------+
| 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/Friend/Form/Friend.tpl" context="Pledge"}