diff --git a/plugins/grant_application_shortcode/grant_application_shortcode.php~ b/plugins/grant_application_shortcode/grant_application_shortcode.php~ deleted file mode 100644 index c0da22f..0000000 --- a/plugins/grant_application_shortcode/grant_application_shortcode.php~ +++ /dev/null @@ -1,57 +0,0 @@ -shortcodes[$post->ID][0]; - - // check to see if a shortcode component has been repeated? - $atts = get_atts( $shortcode ); - print_R($atts);exit; - //$civi->preprocess_atts(); -} - -?> \ No newline at end of file diff --git a/plugins/grant_application_shortcode/grant_application_shortcode_modal.php~ b/plugins/grant_application_shortcode/grant_application_shortcode_modal.php~ deleted file mode 100644 index 0e73aa2..0000000 --- a/plugins/grant_application_shortcode/grant_application_shortcode_modal.php~ +++ /dev/null @@ -1,122 +0,0 @@ - 'contribution', - 'action' => NULL, - 'mode' => NULL, - 'id' => NULL, - 'cid' => NULL, - 'gid' => NULL, - 'cs' => NULL, - 'force' => NULL, - ), - $atts, - 'civicrm' - ); - - extract( $shortcode_atts ); - - $args = array( - 'reset' => 1, - 'id' => $id, - 'force' => $force, - ); - - switch ( $component ) { - - case 'contribution': - - if ( $mode == 'preview' || $mode == 'test' ) { - $args['action'] = 'preview'; - } - $args['q'] = 'civicrm/contribute/transact'; - break; - - case 'event': - - switch ( $action ) { - case 'register': - $args['q'] = 'civicrm/event/register'; - if ( $mode == 'preview' || $mode == 'test' ) { - $args['action'] = 'preview'; - } - break; - - case 'info': - $args['q'] = 'civicrm/event/info'; - $_REQUEST['page'] = $_GET['page'] = 'CiviCRM'; - break; - - default: - echo '

' . __( 'Do not know how to handle this shortcode', 'civicrm' ) . '

'; - return; - } - break; - - case 'user-dashboard': - - $args['q'] = 'civicrm/user'; - unset( $args['id'] ); - break; - - case 'profile': - - if ($mode == 'edit') { - $args['q'] = 'civicrm/profile/edit'; - } - elseif ($mode == 'view') { - $args['q'] = 'civicrm/profile/view'; - } - elseif ($mode == 'search') { - $args['q'] = 'civicrm/profile'; - } - else { - $args['q'] = 'civicrm/profile/create'; - } - $args['gid'] = $gid; - break; - - - case 'petition': - - $args['q'] = 'civicrm/petition/sign'; - $args['sid'] = $args['id']; - unset($args['id']); - break; - - default: - - echo '

' . __( 'Do not know how to handle this shortcode', 'civicrm' ) . '

'; - return; - - } - - /** - * Filter the CiviCRM shortcode arguments. - * - * This filter allows plugins or CiviExtensions to modify the attributes - * that the 'civicrm' shortcode allows. Injected attributes and their values - * will also become available in the $_REQUEST and $_GET arrays. - * - * @param array $args Existing shortcode arguments - * @param array $shortcode_atts Shortcode attributes - * @return array $args Modified shortcode arguments - */ - return apply_filters( 'civicrm_shortcode_preprocess_atts', $args, $shortcode_atts ); - - } - -} - -?> \ No newline at end of file