示例#1
0
 /**
  * Determine if we use a google static map
  * Option has to be turned on and element un-editable
  *
  * @return  bool
  */
 protected function _useStaticMap()
 {
     if (!isset(self::$usestatic)) {
         $params = $this->getParams();
         // Requires you to have installed the pda plugin
         // http://joomup.com/blog/2007/10/20/pdaplugin-joomla-15/
         if (array_key_exists('ispda', $GLOBALS) && $GLOBALS['ispda'] == 1) {
             self::$usestatic = true;
         } else {
             self::$usestatic = $params->get('fb_gm_staticmap') == '1' && !$this->isEditable();
         }
     }
     return self::$usestatic;
 }