3 function getContributionPageOptions() {
5 '' => ts('- select -'),
8 $result = civicrm_api3('contribution_page', 'get');
9 foreach ($result['values'] as $contribution_page) {
10 $options[$contribution_page['id']] = $contribution_page['title'];
16 function getExtensionRootPath() {
17 return 'http://' . $_SERVER['SERVER_NAME'] . str_replace($_SERVER['DOCUMENT_ROOT'], '', __DIR__
);
20 function getWciWidgetControllerPath() {
21 $widget_controller_path = getExtensionRootPath() . '/extern/wciwidget.php';
23 return $widget_controller_path;
26 function getWciWidgetTemplatePath() {
27 $widget_tpl_path = __DIR__
. '/templates/CRM/Wci/Page';
29 return $widget_tpl_path;
32 function getEmailSignupFormUrl() {
33 return 'http://' . $_SERVER['SERVER_NAME'] . str_replace($_SERVER['PHP_SELF'], '', str_replace($_SERVER['DOCUMENT_ROOT'], '', $_SERVER['SCRIPT_FILENAME'])) . '/civicrm/mailing/subscribe';