Skip to content

Commit

Permalink
CRM-12818
Browse files Browse the repository at this point in the history
  • Loading branch information
yashodha committed Jul 18, 2013
1 parent e6e560f commit 8f83bdb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions civicrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,7 @@ public function add_form_button_js( $hook ) {

}

public function get_contribution_pages() {
private function get_contribution_pages() {
$now = date('Ymdhis');
$sql = "
SELECT id, title
Expand All @@ -1310,7 +1310,7 @@ public function get_contribution_pages() {
}


public function get_event() {
private function get_event() {
$now = date('Ymdhis');
$sql = "
SELECT id, title
Expand All @@ -1334,7 +1334,7 @@ public function get_event() {
return $eventPages;
}

public function get_profile_page() {
private function get_profile_page() {
$sql = "
SELECT g.id as id, g.title as title
FROM civicrm_uf_group g, civicrm_uf_join j
Expand All @@ -1354,7 +1354,7 @@ public function get_profile_page() {
return $profilePages;
}

public function get_petition() {
private function get_petition() {
$params = array(
'version' => 3,
'is_active' => 1,
Expand Down Expand Up @@ -1413,7 +1413,7 @@ public function add_form_button_html() {
<span id="contribution-section" style="display:none;">
<select id="add_contributepage_id">
<?php
$contributionPages = civi_wp()->get_contribution_pages();
$contributionPages = $this->get_contribution_pages();
foreach ($contributionPages as $key => $value) { ?>
<option value="<?php echo absint($key) ?>"><?php echo esc_html($value) ?></option>
<?php
Expand All @@ -1425,7 +1425,7 @@ public function add_form_button_html() {
<span id="event-section" style="display:none;">
<select id="add_eventpage_id">
<?php
$eventPages = civi_wp()->get_event();
$eventPages = $this->get_event();
foreach ($eventPages as $key => $value) { ?>
<option value="<?php echo absint($key) ?>"><?php echo esc_html($value) ?></option>
<?php
Expand All @@ -1452,7 +1452,7 @@ public function add_form_button_html() {
<span id="profile-section" style="display:none;">
<select id="add_profilepage_id">
<?php
$profilePages = civi_wp()->get_profile_page();
$profilePages = $this->get_profile_page();
foreach ($profilePages as $key => $value) { ?>
<option value="<?php echo absint($key) ?>"><?php echo esc_html($value) ?></option>
<?php
Expand All @@ -1473,7 +1473,7 @@ public function add_form_button_html() {
<span id="petition-section" style="display:none;">
<select id="add_petition_id">
<?php
$petitionPages = civi_wp()->get_petition();
$petitionPages = $this->get_petition();
foreach ($petitionPages as $key => $value) { ?>
<option value="<?php echo absint($key) ?>"><?php echo esc_html($value) ?></option>
<?php
Expand Down

0 comments on commit 8f83bdb

Please sign in to comment.