{* +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | 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 | +--------------------------------------------------------------------+ *} {capture assign=newPageURL}{crmURL p='civicrm/admin/contribute/add' q='action=add&reset=1'}{/capture}
{ts}CiviContribute allows you to create and maintain any number of Online Contribution Pages. You can create different pages for different programs or campaigns, and you can customize text, amounts, types of information collected from contributors, etc.{/ts} {help id="id-intro"}
{include file="CRM/Contribute/Form/SearchContribution.tpl"} {if NOT ($action eq 1 or $action eq 2) }
{ts}Add Contribution Page{/ts} {ts}Manage Personal Campaign Pages{/ts} {help id="id-pcp-intro" file="CRM/PCP/Page/PCP.hlp"}
{/if} {if $rows}
{strip} {include file="CRM/common/pager.tpl" location="top"} {include file="CRM/common/pagerAToZ.tpl"} {* handle enable/disable actions *} {include file="CRM/common/enableDisableApi.tpl"} {include file="CRM/common/jsortable.tpl"} {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))} {/if} {foreach from=$rows item=row} {if call_user_func(array('CRM_Campaign_BAO_Campaign','isCampaignEnable'))} {/if} {/foreach}
{ts}Title{/ts} {ts}ID{/ts} {ts}Enabled?{/ts}{ts}Campaign{/ts}
{$row.title} {$row.id} {if $row.is_active eq 1} {ts}Yes{/ts} {else} {ts}No{/ts} {/if}{$row.campaign} {if $row.configureActionLinks}
{$row.configureActionLinks|replace:'xx':$row.id}
{/if} {if $row.contributionLinks}
{$row.contributionLinks|replace:'xx':$row.id}
{/if} {if $row.onlineContributionLinks}
{$row.onlineContributionLinks|replace:'xx':$row.id}
{/if}
{$row.action|replace:'xx':$row.id}
{/strip}
{else} {if $isSearch eq 1}
{ts}status{/ts} {capture assign=browseURL}{crmURL p='civicrm/contribute/manage' q="reset=1"}{/capture} {ts}No available Contribution Pages match your search criteria. Suggestions:{/ts}
{ts 1=$browseURL}Or you can browse all available Contribution Pages.{/ts}
{else}
  {ts 1=$newPageURL}No contribution pages have been created yet. Click here to create a new contribution page.{/ts}
{/if} {/if}