diff --git a/crouton.php b/crouton.php index 139ffb64..b05854bf 100644 --- a/crouton.php +++ b/crouton.php @@ -109,7 +109,8 @@ class Crouton "hide_byday_headers" => false, "native_lang" => '', "has_meeting_count" => false, - "google_api_key" => "" + "google_api_key" => "", + "report_update_url" => "", ); private $hasFilters = [ "has_days", @@ -189,7 +190,7 @@ private function hasShortcode() if (empty($matches)) { return false; } - + foreach ($matches as $shortcode) { if ($shortcode[2] === 'bmlt_handlebar' || $shortcode[2] === 'bmlt_tabs' || @@ -222,7 +223,7 @@ public function enqueueBackendFiles($hook) add_thickbox(); wp_enqueue_script('jquery-ui-accordion'); wp_enqueue_script("crouton-default-templates", plugin_dir_url(__FILE__) . "croutonjs/src/js/crouton-default-templates.js", array('jquery'), filemtime(plugin_dir_path(__FILE__) . "croutonjs/src/js/crouton-default-templates.js"), true); - + wp_enqueue_style("codemirror", plugin_dir_url(__FILE__) . "css/codemirror.css", false, "5.65.15", 'all'); wp_enqueue_style("codemirror", plugin_dir_url(__FILE__) . "css/show-hint.css", false, "5.65.15", 'all'); wp_enqueue_script('codemirror', plugins_url('js/codemirror/codemirror.js', __FILE__), array('jquery'), filemtime(plugin_dir_path(__FILE__) . "js/codemirror/codemirror.js"), false); @@ -311,7 +312,7 @@ private function inlineScript($s) } private function outputScript($s) { - if ($this->options['jsInFooter']) { + if (isset($this->options['jsInFooter'])) { wp_add_inline_script('croutonjs', $s); $s = ""; } @@ -849,7 +850,7 @@ public function adminOptionsPage()
  • venue_type
  • -
  • venue_type_name
  • +
  • venue_type_name
  • formatted_address
  • formatted_location_info
  • serviceBodyUrl
  • @@ -865,14 +866,14 @@ public function adminOptionsPage()
  • parentServiceBodyType
  • -

    To include a map in the meeting details, use the "crouton_map" helper function, ie, {{{crouton_map}}}. +

    To include a map in the meeting details, use the "crouton_map" helper function, ie, {{{crouton_map}}}. Note the triple brackets. A initial zoom factor (from 2 to 17) may be given as an option, eg, {{{crouton_map zoom=16}}}. Default zoom is 14.

    Meeting Data Template

    This allows a customization of the meeting data template. A list of available fields are - -.

    + +.