Ejemplo n.º 1
0
     $pinoverride = true;
     $debug_item['PinType'] = 'Unique custom';
 } else {
     $marker['pin'] = trim($settings['custom_pin_path']);
     $debug_item['PinType'] = 'Global custom';
 }
 if (strlen($marker['pin']) > 0) {
     //Checking for absolute URL
     if (substr($marker['pin'], 0, 7) != 'http://' && substr($marker['pin'], 0, 8) != 'https://' && substr($marker['pin'], 0, 2) != '//' && strlen($marker['pin']) > 2) {
         $markerurl;
         if (substr($marker['pin'], 0, 1) != '/') {
             $markerurl = $marker['pin'];
         } else {
             $markerurl = substr($marker['pin'], 1);
         }
         $marker['pin'] = $debug->getWebsiteRootURL() . $markerurl;
     }
     $debug_item['finalPinURL'] = $marker['pin'];
     if ($settings['debug_output']) {
         if (WidgetkitExPlugin::url_exists($marker['pin'])) {
             $debug_item['finalPinURLisValid'] = true;
         } else {
             $debug_item['finalPinURLisValid'] = false;
         }
     }
     if ($pinoverride && is_numeric($item['custom_pin_anchor_x']) && is_numeric($item['custom_pin_anchor_y'])) {
         $marker['anchor_x'] = intval($item['custom_pin_anchor_x']);
         $marker['anchor_y'] = intval($item['custom_pin_anchor_y']);
     } else {
         if (!$pinoverride && is_numeric($settings['custom_pin_anchor_x']) && is_numeric($settings['custom_pin_anchor_y'])) {
             $marker['anchor_x'] = intval($settings['custom_pin_anchor_x']);