📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
firmarehberipro.demodesign.com.tr
/
application
/
views
/
kategori
📝
index.php
← Geri Dön
<?php $ayarlar = ayarlar(); $kullanici = kullanicicek(); ?> <div id="map-container" class="fullwidth-home-map"> <?php if ($firmalar) { ?> <div id="map" data-map-zoom="9"> <!-- map goes here --> </div> <?php }else{ ?> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d4498768.908055105!2d33.47202712660453!3d38.86559396148031!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x14b0155c964f2671%3A0x40d9dbd42a625f2a!2zVMO8cmtpeWU!5e0!3m2!1str!2str!4v1585246972770!5m2!1str!2str" width="100%" height="650" frameborder="0" style="border:0" allowfullscreen=""></iframe> <?php } ?> <div class="main-search-inner"> <div class="container"> <div class="row"> <div class="col-md-12"> <form method="post" action="<?=base_url('arama')?>"> <div class="main-search-input gray-style margin-top-0 margin-bottom-10"> <div class="main-search-input-item"> <input type="text" placeholder="Ne arıyorsun?" name="kelime" value=""/> </div> <div class="main-search-input-item"> <select data-placeholder="Tüm Kategoriler" name="cat" class="chosen-select" > <option value="">Tüm Kategoriler</option> <?php $kategoriler = kategoricek(); ?> <?php foreach ($kategoriler as $key) { ?> <option value="<?=$key->kategori_ad?>"><?=$key->kategori_ad?></option> <?php } ?> </select> </div> <button type="submit" class="button">Arama Yap</button> </div> </form> </div> </div> </div> </div> <!-- Scroll Enabling Button --> <a href="#" id="scrollEnabling" title="Enable or disable scrolling on map">Kaydırmayı Etkinleştir</a> </div> <div class="container"> <div class="row"> <?php if (!empty($ayarlar->kategorireklam)) { ?> <div class="col-md-12 headline centered"> <?=$ayarlar->kategorireklam?> </div> <?php } ?> <div class="col-md-12"> <!-- Sorting - Filtering Section --> <div class="row margin-bottom-25 margin-top-30"> <div class="col-md-6"> <!-- Layout Switcher --> </div> <div class="col-md-6"> <div class="fullwidth-filters"> <!-- Sort by --> <div class="sort-by"> <div class="sort-by-select"> <select id="kategoriler" data-placeholder="Kategori Seç" class="chosen-select-no-single"> <?php foreach ($kategoriler as $key) { ?> <option <?php if ($where->kategori_id==$key->kategori_id) { echo "selected"; } ?> value="<?=base_url('kategori/').$key->kategori_seo?>"><?=$key->kategori_ad?></option> <?php } ?> </select> </div> </div> <!-- Sort by / End --> </div> </div> </div> <!-- Sorting - Filtering Section / End --> <div class="row"> <?php if (!$firmalar) { ?> <div class="notification warning closeable text-center"> <p><span>Hay Aksi!</span> Bu Kategoriye Ait Firma Bulunamadı!</p> </div> <?php }else{ ?> <?php foreach ($firmalar as $key) { ?> <?php $yorumpuan = yorumpsay($key->firma_id); ?> <div class="col-lg-4 col-md-12"> <a href="<?=base_url("firma/".$key->firma_seo)?>" class="listing-item-container"> <div class="listing-item"> <img src="<?=base_url($key->firma_resim)?>" alt="<?=$key->firma_ad?>"> <?php if ($key->firma_populer==1) { echo '<div class="listing-badge now-open">Popüler</div>'; } ?> <div class="listing-item-content"> <span class="tag"><?=$where->kategori_ad?></span> <h3><?=$key->firma_ad?> <?php if ($key->firma_dogrulama==1) { echo '<i class="verified-icon"></i>'; } ?></h3> <span><?=$key->firma_adres?></span> </div> <?php if (aktif_kullanici()) { ?> <span class="item-favorite-button item-favorite-enable like-icon <?php if(favoriekle($kullanici->kullanici_id, $key->firma_id) == true){ echo "liked"; } ?>" data-product-id="<?=$key->firma_id; ?>"></span> <?php }else{ ?> <span class="like-icon"></span> <?php } ?> </div> <div class="star-rating" data-rating="<?=$yorumpuan->yorum_puan?>"> <div class="rating-counter">(<?php echo yorumsaydir($key->firma_id); ?> yorum)</div> </div> </a> </div> <?php } ?> <div class="clearfix"></div> <div class="row"> <div class="col-md-12"> <!-- Pagination --> <div class="pagination-container margin-top-20 margin-bottom-40"> <nav class="pagination"> <ul> <?=$links?> </ul> </nav> </div> </div> </div> <?php } ?> </div> </div> </div> </div> <script type="text/javascript" src="<?=base_url('assets/')?>scripts/jquery-2.2.0.min.js"></script> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCCKWWLQs2S3C0q-Qqp7m2nP-c0flEjA64&sensor=false&libraries=places"></script> <?php if ($firmalar) { ?> <script type="text/javascript"> <?php $veri_json = array(); ?> <?php foreach ($firmalar as $firma) { ?> <?php $yorumpuani = yorumpsay($firma->firma_id); ?> <?php $veri_json[] = "[locationData('".base_url("firma/".$firma->firma_seo)."', '".base_url($firma->firma_resim)."', '".$firma->firma_ad."', '".$firma->firma_adres."', '".$yorumpuan->yorum_puan."', '".yorumsaydir($firma->firma_id)."'), ".$firma->firma_lat.", ".$firma->firma_lon.", 1, '<i class=\"$where->kategori_ikon\"></i>']"; ?> <?php } ?> </script> <script type="text/javascript"> var infoBox_ratingType = 'star-rating'; (function($) { "use strict"; function mainMap() { var ib = new InfoBox(); function locationData(locationURL, locationImg, locationTitle, locationAddress, locationRating, locationRatingCounter) { return ('' + '<a href="' + locationURL + '" class="listing-img-container">' + '<div class="infoBox-close"><i class="fa fa-times"></i></div>' + '<img src="' + locationImg + '" alt="">' + '<div class="listing-item-content">' + '<h3>' + locationTitle + '</h3>' + '<span>' + locationAddress + '</span>' + '</div>' + '</a>' + '<div class="listing-content">' + '<div class="listing-title">' + '<div class="' + infoBox_ratingType + '" data-rating="' + locationRating + '"><div class="rating-counter">(' + locationRatingCounter + ' yorumlar)</div></div>' + '</div>' + '</div>') } var locations = [<?=implode(",", $veri_json)?>]; google.maps.event.addListener(ib, 'domready', function() { if (infoBox_ratingType = 'numerical-rating') { numericalRating('.infoBox .' + infoBox_ratingType + ''); } if (infoBox_ratingType = 'star-rating') { starRating('.infoBox .' + infoBox_ratingType + ''); } }); var mapZoomAttr = $('#map').attr('data-map-zoom'); var mapScrollAttr = $('#map').attr('data-map-scroll'); if (typeof mapZoomAttr !== typeof undefined && mapZoomAttr !== false) { var zoomLevel = parseInt(mapZoomAttr); } else { var zoomLevel = 5; } if (typeof mapScrollAttr !== typeof undefined && mapScrollAttr !== false) { var scrollEnabled = parseInt(mapScrollAttr); } else { var scrollEnabled = false; } var map = new google.maps.Map(document.getElementById('map'), { zoom: zoomLevel, scrollwheel: scrollEnabled, center: new google.maps.LatLng(36.6593016, 29.110019100000045), mapTypeId: google.maps.MapTypeId.ROADMAP, zoomControl: false, mapTypeControl: false, scaleControl: false, panControl: false, navigationControl: false, streetViewControl: false, gestureHandling: 'cooperative', styles: [{ "featureType": "poi", "elementType": "labels.text.fill", "stylers": [{ "color": "#747474" }, { "lightness": "23" }] }, { "featureType": "poi.attraction", "elementType": "geometry.fill", "stylers": [{ "color": "#f38eb0" }] }, { "featureType": "poi.government", "elementType": "geometry.fill", "stylers": [{ "color": "#ced7db" }] }, { "featureType": "poi.medical", "elementType": "geometry.fill", "stylers": [{ "color": "#ffa5a8" }] }, { "featureType": "poi.park", "elementType": "geometry.fill", "stylers": [{ "color": "#c7e5c8" }] }, { "featureType": "poi.place_of_worship", "elementType": "geometry.fill", "stylers": [{ "color": "#d6cbc7" }] }, { "featureType": "poi.school", "elementType": "geometry.fill", "stylers": [{ "color": "#c4c9e8" }] }, { "featureType": "poi.sports_complex", "elementType": "geometry.fill", "stylers": [{ "color": "#b1eaf1" }] }, { "featureType": "road", "elementType": "geometry", "stylers": [{ "lightness": "100" }] }, { "featureType": "road", "elementType": "labels", "stylers": [{ "visibility": "off" }, { "lightness": "100" }] }, { "featureType": "road.highway", "elementType": "geometry.fill", "stylers": [{ "color": "#ffd4a5" }] }, { "featureType": "road.arterial", "elementType": "geometry.fill", "stylers": [{ "color": "#ffe9d2" }] }, { "featureType": "road.local", "elementType": "all", "stylers": [{ "visibility": "simplified" }] }, { "featureType": "road.local", "elementType": "geometry.fill", "stylers": [{ "weight": "3.00" }] }, { "featureType": "road.local", "elementType": "geometry.stroke", "stylers": [{ "weight": "0.30" }] }, { "featureType": "road.local", "elementType": "labels.text", "stylers": [{ "visibility": "on" }] }, { "featureType": "road.local", "elementType": "labels.text.fill", "stylers": [{ "color": "#747474" }, { "lightness": "36" }] }, { "featureType": "road.local", "elementType": "labels.text.stroke", "stylers": [{ "color": "#e9e5dc" }, { "lightness": "30" }] }, { "featureType": "transit.line", "elementType": "geometry", "stylers": [{ "visibility": "on" }, { "lightness": "100" }] }, { "featureType": "water", "elementType": "all", "stylers": [{ "color": "#d2e7f7" }] }] }); $('.listing-item-container').on('mouseover', function() { var listingAttr = $(this).data('marker-id'); if (listingAttr !== undefined) { var listing_id = $(this).data('marker-id') - 1; var marker_div = allMarkers[listing_id].div; $(marker_div).addClass('clicked'); $(this).on('mouseout', function() { if ($(marker_div).is(":not(.infoBox-opened)")) { $(marker_div).removeClass('clicked'); } }); } }); var boxText = document.createElement("div"); boxText.className = 'map-box' var currentInfobox; var boxOptions = { content: boxText, disableAutoPan: false, alignBottom: true, maxWidth: 0, pixelOffset: new google.maps.Size(-134, -55), zIndex: null, boxStyle: { width: "270px" }, closeBoxMargin: "0", closeBoxURL: "", infoBoxClearance: new google.maps.Size(25, 25), isHidden: false, pane: "floatPane", enableEventPropagation: false, }; var markerCluster, overlay, i; var allMarkers = []; var clusterStyles = [{ textColor: 'white', url: '', height: 50, width: 50 }]; var markerIco; for (var i = 0; i < locations.length; i++){ markerIco = locations[i][4]; var overlaypositions = new google.maps.LatLng(locations[i][1], locations[i][2]), overlay = new CustomMarker(overlaypositions, map, { marker_id: i }, markerIco); allMarkers.push(overlay); google.maps.event.addDomListener(overlay, 'click', (function(overlay, i) { return function() { ib.setOptions(boxOptions); boxText.innerHTML = locations[i][0]; ib.close(); ib.open(map, overlay); currentInfobox = locations[i][3]; google.maps.event.addListener(ib, 'domready', function() { $('.infoBox-close').click(function(e) { e.preventDefault(); ib.close(); $('.map-marker-container').removeClass('clicked infoBox-opened'); }); }); } })(overlay, i)); } var options = { imagePath: 'images/', styles: clusterStyles, minClusterSize: 2 }; markerCluster = new MarkerClusterer(map, allMarkers, options); google.maps.event.addDomListener(window, "resize", function() { var center = map.getCenter(); google.maps.event.trigger(map, "resize"); map.setCenter(center); }); var zoomControlDiv = document.createElement('div'); var zoomControl = new ZoomControl(zoomControlDiv, map); function ZoomControl(controlDiv, map) { zoomControlDiv.index = 1; map.controls[google.maps.ControlPosition.RIGHT_CENTER].push(zoomControlDiv); controlDiv.style.padding = '5px'; controlDiv.className = "zoomControlWrapper"; var controlWrapper = document.createElement('div'); controlDiv.appendChild(controlWrapper); var zoomInButton = document.createElement('div'); zoomInButton.className = "custom-zoom-in"; controlWrapper.appendChild(zoomInButton); var zoomOutButton = document.createElement('div'); zoomOutButton.className = "custom-zoom-out"; controlWrapper.appendChild(zoomOutButton); google.maps.event.addDomListener(zoomInButton, 'click', function() { map.setZoom(map.getZoom() + 1); }); google.maps.event.addDomListener(zoomOutButton, 'click', function() { map.setZoom(map.getZoom() - 1); }); } var scrollEnabling = $('#scrollEnabling'); $(scrollEnabling).click(function(e) { e.preventDefault(); $(this).toggleClass("enabled"); if ($(this).is(".enabled")) { map.setOptions({ 'scrollwheel': true }); } else { map.setOptions({ 'scrollwheel': false }); } }) $("#geoLocation, .input-with-icon.location a").click(function(e) { e.preventDefault(); geolocate(); }); function geolocate() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(function(position) { var pos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude); map.setCenter(pos); map.setZoom(12); }); } } } var map = document.getElementById('map'); if (typeof(map) != 'undefined' && map != null) { google.maps.event.addDomListener(window, 'load', mainMap); } function singleListingMap() { var myLatlng = new google.maps.LatLng({ lng: $('#singleListingMap').data('longitude'), lat: $('#singleListingMap').data('latitude'), }); var single_map = new google.maps.Map(document.getElementById('singleListingMap'), { zoom: 15, center: myLatlng, scrollwheel: false, zoomControl: false, mapTypeControl: false, scaleControl: false, panControl: false, navigationControl: false, streetViewControl: false, styles: [{ "featureType": "poi", "elementType": "labels.text.fill", "stylers": [{ "color": "#747474" }, { "lightness": "23" }] }, { "featureType": "poi.attraction", "elementType": "geometry.fill", "stylers": [{ "color": "#f38eb0" }] }, { "featureType": "poi.government", "elementType": "geometry.fill", "stylers": [{ "color": "#ced7db" }] }, { "featureType": "poi.medical", "elementType": "geometry.fill", "stylers": [{ "color": "#ffa5a8" }] }, { "featureType": "poi.park", "elementType": "geometry.fill", "stylers": [{ "color": "#c7e5c8" }] }, { "featureType": "poi.place_of_worship", "elementType": "geometry.fill", "stylers": [{ "color": "#d6cbc7" }] }, { "featureType": "poi.school", "elementType": "geometry.fill", "stylers": [{ "color": "#c4c9e8" }] }, { "featureType": "poi.sports_complex", "elementType": "geometry.fill", "stylers": [{ "color": "#b1eaf1" }] }, { "featureType": "road", "elementType": "geometry", "stylers": [{ "lightness": "100" }] }, { "featureType": "road", "elementType": "labels", "stylers": [{ "visibility": "off" }, { "lightness": "100" }] }, { "featureType": "road.highway", "elementType": "geometry.fill", "stylers": [{ "color": "#ffd4a5" }] }, { "featureType": "road.arterial", "elementType": "geometry.fill", "stylers": [{ "color": "#ffe9d2" }] }, { "featureType": "road.local", "elementType": "all", "stylers": [{ "visibility": "simplified" }] }, { "featureType": "road.local", "elementType": "geometry.fill", "stylers": [{ "weight": "3.00" }] }, { "featureType": "road.local", "elementType": "geometry.stroke", "stylers": [{ "weight": "0.30" }] }, { "featureType": "road.local", "elementType": "labels.text", "stylers": [{ "visibility": "on" }] }, { "featureType": "road.local", "elementType": "labels.text.fill", "stylers": [{ "color": "#747474" }, { "lightness": "36" }] }, { "featureType": "road.local", "elementType": "labels.text.stroke", "stylers": [{ "color": "#e9e5dc" }, { "lightness": "30" }] }, { "featureType": "transit.line", "elementType": "geometry", "stylers": [{ "visibility": "on" }, { "lightness": "100" }] }, { "featureType": "water", "elementType": "all", "stylers": [{ "color": "#d2e7f7" }] }] }); $('#streetView').click(function(e) { e.preventDefault(); single_map.getStreetView().setOptions({ visible: true, position: myLatlng }); }); var zoomControlDiv = document.createElement('div'); var zoomControl = new ZoomControl(zoomControlDiv, single_map); function ZoomControl(controlDiv, single_map) { zoomControlDiv.index = 1; single_map.controls[google.maps.ControlPosition.RIGHT_CENTER].push(zoomControlDiv); controlDiv.style.padding = '5px'; var controlWrapper = document.createElement('div'); controlDiv.appendChild(controlWrapper); var zoomInButton = document.createElement('div'); zoomInButton.className = "custom-zoom-in"; controlWrapper.appendChild(zoomInButton); var zoomOutButton = document.createElement('div'); zoomOutButton.className = "custom-zoom-out"; controlWrapper.appendChild(zoomOutButton); google.maps.event.addDomListener(zoomInButton, 'click', function() { single_map.setZoom(single_map.getZoom() + 1); }); google.maps.event.addDomListener(zoomOutButton, 'click', function() { single_map.setZoom(single_map.getZoom() - 1); }); } var singleMapIco = "<i class='" + $('#singleListingMap').data('map-icon') + "'></i>"; new CustomMarker(myLatlng, single_map, { marker_id: '1' }, singleMapIco); } var single_map = document.getElementById('singleListingMap'); if (typeof(single_map) != 'undefined' && single_map != null) { google.maps.event.addDomListener(window, 'load', singleListingMap); } function CustomMarker(latlng, map, args, markerIco) { this.latlng = latlng; this.args = args; this.markerIco = markerIco; this.setMap(map); } CustomMarker.prototype = new google.maps.OverlayView(); CustomMarker.prototype.draw = function() { var self = this; var div = this.div; if (!div) { div = this.div = document.createElement('div'); div.className = 'map-marker-container'; div.innerHTML = '<div class="marker-container">' + '<div class="marker-card">' + '<div class="front face">' + self.markerIco + '</div>' + '<div class="back face">' + self.markerIco + '</div>' + '<div class="marker-arrow"></div>' + '</div>' + '</div>' google.maps.event.addDomListener(div, "click", function(event) { $('.map-marker-container').removeClass('clicked infoBox-opened'); google.maps.event.trigger(self, "click"); $(this).addClass('clicked infoBox-opened'); }); if (typeof(self.args.marker_id) !== 'undefined') { div.dataset.marker_id = self.args.marker_id; } var panes = this.getPanes(); panes.overlayImage.appendChild(div); } var point = this.getProjection().fromLatLngToDivPixel(this.latlng); if (point) { div.style.left = (point.x) + 'px'; div.style.top = (point.y) + 'px'; } }; CustomMarker.prototype.remove = function() { if (this.div) { this.div.parentNode.removeChild(this.div); this.div = null; $(this).removeClass('clicked'); } }; CustomMarker.prototype.getPosition = function() { return this.latlng; }; })(this.jQuery); </script> <?php } ?>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula