This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) { | |
#myElement { | |
/* IE10+ CSS styles go here */ | |
} | |
} | |
@supports (-ms-accelerator:true) { | |
#myElement { | |
/* IE Edge 12+ CSS styles goes here */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?language=fra&sensor=false"></script> | |
<script type="text/javascript"> | |
var map; | |
var Markers = {}; | |
var infowindow; | |
var locations = [ | |
[ | |
'Samsung Store Madeleine', | |
'<strong>Samsung Store Madeleine</strong><p>5 Boulevard Malesherbes, 75008 Paris<br>10h – 20h</p>', | |
48.8701925, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- GOOGLE MAP --> | |
<script async="" defer="" type="text/javascript" src="https://maps.googleapis.com/maps/api/js?callback=initializeMap&key=<--KEY-->"></script> | |
<!-- GOOGLE MAP --> | |
<script type="text/javascript"> | |
//INITIALIZE GOOGLE MAP WITH MULTIPLE MARKERS AND CUSTOM MARKER ICON. | |
var markers = [ | |
['Bondi Beach', -33.890542, 151.274856], | |
['Coogee Beach', -33.923036, 151.259052], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="vue-carousel-3d-wrap"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Setting Value | |
{{ setting_value('streams::field_slug', config_get('streams::distribution.field_slug')) }} | |
// Content View | |
{{ page.content.render | raw}} | |
// Content Exerpt View | |
{{ page.content | striptags | slice(0, 120) }} | |
// Multiple File View |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Function URL ScrollTo*/ | |
function scrollto_div(uid){ | |
jQuery('html, body').animate({ | |
scrollTop: jQuery(uid).offset().top | |
}, 800); | |
} | |
/* Function URL ScrollTo*/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:::::::::::::::::::::::::::: | |
set "params=Problem_with_elevating_UAC_for_Administrator_Privileges"&if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" | |
fsutil dirty query %systemdrive% >nul 2>&1 && goto :GotPrivileges | |
:: The following test is to avoid infinite looping if elevating UAC for Administrator Privileges failed | |
If "%1"=="%params%" (echo Elevating UAC for Administrator Privileges failed&echo Right click on the script and select 'Run as administrator'&echo Press any key to exit...&pause>nul 2>&1&exit) | |
cmd /u /c echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "%~0", "%params%", "", "runas", 1 > "%temp%\getadmin.vbs"&cscript //nologo "%temp%\getadmin.vbs"&exit | |
:GotPrivileges | |
:::::::::::::::::::::::::::: | |
color 1F |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
////// Rename or remove order statuses ////// | |
add_filter('wc_order_statuses', 'wc_renaming_order_status'); | |
function wc_renaming_order_status($order_statuses) { | |
$order_statuses = array( | |
'wc-pending' => _x('Pending', 'Order status', 'woocommerce'), | |
'wc-processing' => _x('New Order', 'Order status', 'woocommerce'), | |
'wc-cancelled' => _x('Cancelled', 'Order status', 'woocommerce'), | |
'wc-completed' => _x('Approved', 'Order status', 'woocommerce'), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var li_length = jQuery('ul.pagination li').length; | |
if(li_length == 13){ | |
var li_item = jQuery('ul.pagination li:nth-child(9) a').attr('href'); | |
var to_num_8 = jQuery('ul.pagination li:nth-child(11)').text(); | |
$('<li><a href="'+li_item.replace("8", "9")+'">9</a></li>').insertAfter("ul.pagination li:nth-child(9)"); | |
$('<li class="tenth"><a href="'+li_item.replace("8", "10")+'">10</a></li>').insertAfter("ul.pagination li:nth-child(10)"); | |
var space = $('ul.pagination').parent().width() - $('ul.pagination').width(); |