コード例 #1
0
ファイル: nextpage.php プロジェクト: CheBurashka334/crado
                                    </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>
コード例 #2
0
                                    <?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'];
コード例 #3
0
ファイル: template.php プロジェクト: CheBurashka334/crado
                                        <?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'];
コード例 #4
0
ファイル: template.php プロジェクト: CheBurashka334/crado
                                    <?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'];
コード例 #5
0
ファイル: template.php プロジェクト: CheBurashka334/crado
            </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>
コード例 #6
0
ファイル: template.php プロジェクト: CheBurashka334/crado
<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
                    		});