Commit 90d6cc1a authored by haystack's avatar haystack 🤔

clean template by moving php to class

parent a5ac4eb7
......@@ -33,15 +33,6 @@
*
*/
// define title
$title = __( 'Please select a CiviCRM front-end page type', 'civicrm' );
// get pages
$contribution_pages = $this->get_contribution_pages();
$event_pages = $this->get_event();
$profile_pages = $this->get_profile_page();
$petition_pages = $this->get_petition();
?>
<div id="civicrm_frontend_pages" style="display: none;">
......
......@@ -341,6 +341,15 @@ class CiviCRM_For_WordPress_Shortcodes_Modal {
return '';
}
// define title
$title = __( 'Please select a CiviCRM front-end page type', 'civicrm' );
// get pages
$contribution_pages = $this->get_contribution_pages();
$event_pages = $this->get_event();
$profile_pages = $this->get_profile_page();
$petition_pages = $this->get_petition();
// include markup
include_once( CIVICRM_PLUGIN_DIR . 'assets/templates/civicrm.modal.php' );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment