GetMapTagHeader() 공개 정적인 메소드

Gives the header part for the map front end presentation
public static GetMapTagHeader ( integer $p_articleNumber, integer $p_languageId, integer $p_mapWidth, integer $p_mapHeight, array $p_options = null ) : string
$p_articleNumber integer
$p_languageId integer
$p_mapWidth integer
$p_mapHeight integer
$p_options array
리턴 string
예제 #1
0
파일: preview.php 프로젝트: nidzix/Newscoop
    } catch (e) {}
};

    </script>


<?php 
$map_width = 0;
$map_height = 0;
$focus_info = Geo_Preferences::GetFocusInfo();
$auto_focus = (bool) $focus_info["json_obj"]["auto_focus"];
if (!$focus_default) {
    $auto_focus = !$auto_focus;
}
$map_options = array('auto_focus' => $auto_focus, 'load_common' => true);
echo Geo_Map::GetMapTagHeader($f_article_number, $f_language_id, $map_width, $map_height, $map_options);
?>
</head>
<body onLoad="return false;">
<div class="map_preview clearfix">
<!--Toolbar-->
<div id="map_toolbar_part" class="toolbar clearfix map_preview_toolbar">

    <div class="save-button-bar">
<?php 
$canEdit = $g_user->hasPermission('ChangeArticle');
if ($canEdit) {
    $edit_str = getGS('Edit');
    if ("map" == strtolower($loaded_from)) {
        $edit_str = getGS('Return to edit');
    }
예제 #2
0
 /**
  * @param int $p_articleNumber
  * @param int $p_languageId
  * @return string
  */
 public static function GetMapTagHeader($p_articleNumber, $p_languageId,
                                        $p_mapWidth = 0, $p_mapHeight = 0)
 {
     return Geo_Map::GetMapTagHeader((int) $p_articleNumber, (int) $p_languageId,
                                     (int) $p_mapWidth, (int) $p_mapHeight);
 }