Add to config/core.php:
<?php
Configure::write('Routing.prefixes', array('admin'));| $element.on('mouseenter', function(event) { | |
| window.clearTimeout($(this).data('hover-timeout')); | |
| $(this).addClass('hover').siblings('.hover').removeClass('hover'); | |
| }).on('mouseleave', function(event) { | |
| (function($element) { | |
| $element.data('hover-timeout', window.setTimeout(function() { | |
| $element.removeClass('hover'); | |
| }, 500)); | |
| })($(this)); | |
| }); |
| // Proper clearfix without overflow:hidden | |
| @mixin clearfix { | |
| &:after { | |
| content: ""; | |
| width: 100%; | |
| height: 0; | |
| display: block; | |
| clear: both; | |
| } | |
| } |
| function Datepicker($input) { | |
| var datepicker = this; | |
| datepicker.$input = $input; | |
| $input.on('click', function(event) { | |
| event.stopPropagation(); | |
| }).on('focus', function() { | |
| datepicker.open(); | |
| }); |
| function createSvgElement(tag, attributes) { | |
| var element = document.createElementNS('http://www.w3.org/2000/svg', tag); | |
| for(var k in attributes) { | |
| element.setAttribute(k, attributes[k]); | |
| } | |
| return element; | |
| } |
| <?php | |
| global $post; | |
| $page = get_option('page_for_posts'); | |
| $post = get_page($page); | |
| setup_postdata($post); | |
| ?> |
| $gridColumnCount: 12; | |
| $gridGutterWidth: 40px; | |
| $gridMaxWidth: 1400px; | |
| @mixin clearfix { | |
| &::after { | |
| clear: both; | |
| content: ""; | |
| display: block; | |
| height: 0px; |
| //http://maps.google.com/maps/api/js?sensor=false | |
| var position = [xxx, xxx]; | |
| $('#map').each(function() { | |
| var map; | |
| var latlng = new google.maps.LatLng(position[0], position[1]); | |
| var center = new google.maps.LatLng(position[0], position[1]); | |
| map = new google.maps.Map($(this).get(0), { |
| $columnCount: 12; | |
| $columnWidth: 64px; | |
| $gutterWidth: 20px; | |
| @mixin clear { | |
| &::after { | |
| content: ""; | |
| width: 100%; | |
| height: 0px; | |
| display: block; |