diff --git a/admin/partials/civicrm-ux-admin-display.php b/admin/partials/civicrm-ux-admin-display.php index 9464e46..69b61d9 100755 --- a/admin/partials/civicrm-ux-admin-display.php +++ b/admin/partials/civicrm-ux-admin-display.php @@ -13,46 +13,49 @@ */ function civicrm_ux_settings_page() { - $url_param = [ - 'hash' => get_option( Civicrm_Ux_Shortcode_Event_ICal_Feed::HASH_OPTION ), - ]; - $url = add_query_arg( - $url_param, - get_rest_url( NULL, - '/' . Civicrm_Ux_Shortcode_Event_ICal_Feed::API_NAMESPACE . '/' . Civicrm_Ux_Shortcode_Event_ICal_Feed::INTERNAL_ENDPOINT ) ); - $opt = Civicrm_Ux::getInstance() - ->get_store() - ->get_option( 'civicrm_summary_options' ); - $opt_c = Civicrm_Ux::getInstance() - ->get_store() - ->get_option( 'civicrm_contribution_ux' ); - ?> + $url_param = [ + 'hash' => get_option(Civicrm_Ux_Shortcode_Event_ICal_Feed::HASH_OPTION), + ]; + $url = add_query_arg( + $url_param, + get_rest_url(NULL, + '/' . Civicrm_Ux_Shortcode_Event_ICal_Feed::API_NAMESPACE . '/' . Civicrm_Ux_Shortcode_Event_ICal_Feed::INTERNAL_ENDPOINT)); + $opt_summary_options = Civicrm_Ux::getInstance() + ->get_store() + ->get_option('civicrm_summary_options'); + $opt_contribution_ux = Civicrm_Ux::getInstance() + ->get_store() + ->get_option('civicrm_contribution_ux'); + ?>

CiviCRM UX

Usage Documentation

-

Documentation on the available shortcodes and functionality for this plugin is available on our Github project page, CiviCRM UX User Guide.

+

+ Documentation on the available shortcodes and functionality for this plugin is available on our Github project page, CiviCRM UX User Guide. +

How To Say Thank You!

-

If you are using this plugin and find it useful, you can say thank you by buying us a beer or a coffee.

+

+ If you are using this plugin and find it useful, you can say thank you by buying us a beer or a coffee. +

- +

iCal Feed

- + - + @@ -60,59 +63,51 @@ function civicrm_ux_settings_page() {
+ size="40" - value=""/> + value=""/>
The internal feed url is: - The internal feed url is:

Membership Summary

- - + + - - + + - - + +
+ value=""/>
+ value=""/>
+ value=""/>

Contribution Page Tweaks

- - + + - - + +
' : '>'; ?> +
' : '>'; ?> + +
- +
civicrm_ux, plugin_dir_url( __FILE__ ) . 'js/civicrm-ux-public.js', [ 'jquery' ], $this->version, FALSE ); - $opt = Civicrm_Ux::getInstance() + $opt_contribution_ux = Civicrm_Ux::getInstance() ->get_store() ->get_option( 'civicrm_contribution_ux' ); $options_map = [ - 'is_recur_default' => ! ! $opt['is_recur_default'], - 'is_autorenew_default' => ! ! $opt['is_autorenew_default'], + 'is_recur_default' => isset($opt_contribution_ux['is_recur_default']) ? true : false, + 'is_autorenew_default' => isset($opt_contribution_ux['is_autorenew_default']) ? true : false, ]; wp_add_inline_script( $this->civicrm_ux, 'window.wp = window.wp || ({}); window.wp.CiviCRM_UX = (' . json_encode( $options_map ) . ')', 'before' );