Beispiel #1
0
                                    </h3>
                                    <?if($mater[$item_num]['PROPERTY'][0]['type']['VALUE_XML_ID'] == 'events'):?>
                                        <p class="date gray">
                                            <?php 
echo $date_to_from;
?>
                                        </p>
                                    <?endif;?>
                                </div>
                                <div class="razdelitel">
                                    <div class="pad_16_15">
                                        <div class="row">
                                            <div class="geo geolocation">
                                                    <?if($mater[$item_num]['PROPERTY'][0]['type']['VALUE_XML_ID'] == 'events'):?>
                                                    <? 
                                                        $event = event_place($mater[$item_num]['PROPERTY'][0]['event_place']['~VALUE']);
                                                    ?>
                                                   <a  class="gray name-geo" href="/places/<?php 
echo $event[0]['CODE'];
?>
/">
                                                            <svg class="icons w12"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#geo-icon"></use></svg>
                                                            <?php 
echo $event[0]['NAME'];
?>
                                                    </a>

                                                     
                                                 <? else:?>  
                                                    <p class="gray name-geo">
                                                    <svg class="icons w12"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#geo-icon"></use></svg>
                                    <?if($mater[$n]['PROPERTY'][0]['type']['VALUE_XML_ID'] == 'events'):?>
                                        <p class="date gray">
                                            <?php 
echo $date_to_from;
?>
                                        </p>
                                    <?endif;?>
                                </div>
                                <div class="razdelitel">
                                    <div class="pad_16_15">
                                        <div class="row">
                                             <div class="geo geolocation">
                                                    <?if($mater[$n]['PROPERTY'][0]['type']['VALUE_XML_ID'] == 'events'):?>
                                                    	<?if($mater[$n]['PROPERTY'][0]['event_place']['~VALUE'] != ''):?>
																<? 
																	$event = event_place($mater[$n]['PROPERTY'][0]['event_place']['~VALUE']);
																?>
																<a  class="gray name-geo" href="/places/<?php 
echo $event[0]['CODE'];
?>
/">
																		<svg class="icons w12"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#geo-icon"></use></svg>
																		<?php 
echo $event[0]['NAME'];
?>
																</a>
																<?else:?>
																<p class="gray name-geo">
																	<svg class="icons w12"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#geo-icon"></use></svg>
																	<?php 
echo $mater[$n]['PROPERTY'][0]['address']['VALUE'];
Beispiel #3
0
                                        <?if($arItem['PROPERTIES']['type']['VALUE_XML_ID'] == 'events'):?>
                                            <p class="date gray">
                                                <?php 
echo $date_to_from;
?>
                                            </p>
                                        <?endif;?>
                                    </div>
                                    <div class="razdelitel">
                                        <div class="pad_16_15">
                                            <div class="row">
                                                 <div class="geo geolocation">
                                                    <?if($arItem['PROPERTIES']['type']['VALUE_XML_ID'] == 'events'):?>
                                                    	<?if($arItem['PROPERTIES']['event_place']['~VALUE'] != ''):?>
																<? 
																	$event = event_place($arItem['PROPERTIES']['event_place']['~VALUE']);
																?>
																<a  class="gray name-geo" href="/places/<?php 
echo $event[0]['CODE'];
?>
/">
																		<svg class="icons w12"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#geo-icon"></use></svg>
																		<?php 
echo $event[0]['NAME'];
?>
																</a>
																<?else:?>
																<p class="gray name-geo">
																	<svg class="icons w12"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#geo-icon"></use></svg>
																	<?php 
echo $arItem['PROPERTIES']['address']['VALUE'];
Beispiel #4
0
                                    <?if($arProps['type']['VALUE_XML_ID'] == 'events'):?>
                                        <p class="date gray">
                                            <?php 
echo $date_to_from;
?>
                                        </p>
                                    <?endif;?>
                                </div>
                                <div class="razdelitel">
                                    <div class="pad_16_15">
                                        <div class="row">
                                            <div class="geo geolocation">
                                                    <?if($arProps['type']['VALUE_XML_ID'] == 'events'):?>
														<?if($arProps['event_place']['~VALUE'] != ''):?>
															<? 
																$event = event_place($arProps['event_place']['~VALUE']);
															?>
															<a  class="gray name-geo" href="/places/<?php 
echo $event[0]['CODE'];
?>
/">
																	<svg class="icons w12"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#geo-icon"></use></svg>
																	<?php 
echo $event[0]['NAME'];
?>
															</a>
															<?else:?>
																<p class="gray name-geo">
																	<svg class="icons w12"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#geo-icon"></use></svg>
																	<?php 
echo $arProps['address']['VALUE'];
Beispiel #5
0
            </div>
            <?if($type == 'events'):?>
                    <?
                        $date_to_from = date_to_from($date_from,$date_to);
                    ?>
                <p class="date gray">
                      <?php 
echo $date_to_from;
?>
                </p>
            <?endif;?>
            <div class="geo-data row">
                <div class="geo geolocation">
                                                    <?if($type == 'events'):?>
                                                    <? 
                                                        $event = event_place($event_place);
                                                    ?>
                                                   <a  class="gray name-geo" href="/places/<?php 
echo $event[0]['CODE'];
?>
/">
                                                            <svg class="icons w12"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#geo-icon"></use></svg>
                                                            <?php 
echo $event[0]['NAME'];
?>
                                                    </a>

                                                     
                                                 <? else:?>  
                                                    <p class="gray name-geo">
                                                    <svg class="icons w12"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#geo-icon"></use></svg>
Beispiel #6
0
<div class="place">
    <div class="bgray-light">
        <div class="container place-preview">
            <div class="return">
                <a href="javascript:history.back()" rel="nofollow">
                    
                        <span class="treug"></span>
                        <span>Вернутся назад</span>
                    
                </a>
            </div>
            
            <div class="map" id="map">
        
            <?if($arResult['PROPERTIES']['event_place']['~VALUE']!=''):?>
                 <?$event = event_place($arResult['PROPERTIES']['event_place']['~VALUE']);?>
                    <?
                        $ballon = '<p class="text-center"><b>'.$arResult["NAME"].'</b><br/>'.$event[0]['PROPERTY'][0]['address']['VALUE'].'</p>';
                     ?>
                    <script type="text/javascript">
                            // Как только будет загружен API и готов DOM, выполняем инициализацию
                        var sMap,
                        sPlacemark;
                    	ymaps.ready(function(){
                    		sMap = new ymaps.Map('map',{
                    			center: [<?php 
echo $event[0]['PROPERTY'][0]['map']['VALUE'];
?>
],
                    			zoom: 15
                    		});