PATH:
var
/
www
/
vhosts
/
sandbox.dos-group.com
/
httpdocs
/
hotelcoronado
/
wp-content
/
themes
/
hotelcoronado
/
admin
<?php add_shortcode('divider','hc_sc_divider'); function hc_sc_divider( $atts ) { $html = '<hr />'; return $html; } function hc_gmap() { ?> <script src="http://maps.googleapis.com/maps/api/js?sensor=false&v=3.exp"></script> <script src="<?php echo THEMEURI ?>/js/gmap.min.js"></script> <script type="text/javascript"> jQuery(document).ready(function($) { $("#responsive_map").gMap({ maptype: google.maps.MapTypeId.ROADMAP, zoom: 16, markers: [{ latitude: 45.872466, longitude: 8.976777, html: "<strong>Hotel Coronado</strong><br> CH-6850 Mendrisio / TI Via Francesco Borromini 10", popup: true, flat: true, icon: { image: "<?php echo IMAGES ?>/icons/hotel.png", iconsize: [32, 37], iconanchor: [15, 30], shadow: "<?php echo IMAGES ?>/icons/icon-shadow.png", shadowsize: [32, 37], shadowanchor: null} } ], panControl: false, zoomControl: true, mapTypeControl: false, scaleControl: false, streetViewControl: true, scrollwheel: false, styles: [ { "stylers": [ { "hue": "" }, { "gamma": 1.58 } ] } ], onComplete: function() { // Resize and re-center the map on window resize event var gmap = $("#responsive_map").data('gmap').gmap; window.onresize = function(){ google.maps.event.trigger(gmap, 'resize'); $("#responsive_map").gMap('fixAfterResize'); }; } }); }); </script> <div id="responsive_map"></div> <style type="text/css"> #responsive_map {height: 400px; width: 100%;margin-bottom: 2em;} #responsive_map div {} .gm-style-iw {max-width: none !important; min-width: none !important; max-height: none !important; min-height: none !important; overflow-y: hidden !important; overflow-x: hidden !important; line-height: normal !important; padding: 5px !important; } </style> <?php } add_shortcode('gmap','hc_gmap'); function hc_ngg_custom_gallery( $atts ) { extract( shortcode_atts( array( 'title' => '', 'id' => '', ), $atts ) ); global $nggdb; $gallery = $nggdb->get_gallery($id, 'sortorder', 'ASC', true, 0, 0); $html = ''; $box = ''; foreach($gallery as $image) { $box .= "{href:'".get_site_url() . '/' . $image->_ngiw->_orig_image->path . '/'. $image->_ngiw->_orig_image->filename."', title:'".get_the_title()."'},"; //$box = str_replace('//','/', $box); } $box = rtrim($box, ","); $html .= "<a href=\"javascript:jQuery.fancybox.open([".$box."]);\">".$title."</a>"; return $html; } add_shortcode('ngg_custom','hc_ngg_custom_gallery');
[+]
images
[+]
classes
[-] widgets.php
[open]
[+]
assets
[+]
functions
[-] init.php
[open]
[+]
..
[-] shortcodes.php
[open]
[-] cuztom.php
[open]