Skip to content

Commit

Permalink
Add pcp shortcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire authored and bastienho committed Sep 10, 2020
1 parent 95e27cc commit 435994e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion includes/civicrm.shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,14 @@ public function preprocess_atts( $atts ) {
$args['q'] = 'civicrm/contribute/transact';
break;

case 'pcp':

if ( $mode == 'preview' || $mode == 'test' ) {
$args['action'] = 'preview';
}
$args['q'] = 'civicrm/pcp/info';
break;

case 'event':

switch ( $action ) {
Expand Down Expand Up @@ -740,7 +748,6 @@ public function preprocess_atts( $atts ) {
$args['gid'] = $gid;
break;


case 'petition':

$args['q'] = 'civicrm/petition/sign';
Expand Down

0 comments on commit 435994e

Please sign in to comment.