Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
Removed closing php tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Edzelopez committed May 23, 2018
1 parent 84a8a5a commit 2b9e900
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,3 @@ function civicrm_shortcode_get_data($data, $atts, $args) {
}

}

?>
20 changes: 0 additions & 20 deletions shortcode-wp/includes/civicrm.shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -596,11 +596,6 @@ public function preprocess_atts( $atts ) {
$args['q'] = 'civicrm/contribute/transact';
break;

case 'grant':

$args['q'] = 'civicrm/grant/transact';
break;

case 'event':

switch ( $action ) {
Expand Down Expand Up @@ -731,21 +726,6 @@ public function get_data( $atts, $args ) {
}

break;

case 'grant':

// add grant application page ID
$params['id'] = $args['id'];

// get grant application page
$sql = "SELECT title, intro_text FROM civicrm_grant_app_page WHERE id = {$params['id']}";
$dao = CRM_Core_DAO::executeQuery($sql);
while ($dao->fetch()) {
$data['title'] = $dao->title;
$data['text'] = $dao->intro_text;
}

break;

case 'event':

Expand Down

0 comments on commit 2b9e900

Please sign in to comment.