This file contains 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
// {{{ win-safari hacks, scratch this, | |
// let's just expose platform/browser to css | |
(function() | |
{ | |
var uaMatch = '', prefix = ''; | |
if (navigator.userAgent.match(/Windows/)) | |
{ | |
$('html').addClass('x-win'); | |
} |
This file contains 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 featherEditorHiRes = -1; | |
var featherEditor = new Aviary.Feather({ | |
... | |
onReady: function(){ | |
if(featherEditorHiRes == -1){ | |
AV.controlsWidgetInstance.serverMessaging.sendMessage({ | |
id: "avpw_auth_form", | |
action: AV.controlsWidgetInstance.assetManager.getManifestURL(), | |
method: "GET", |
This file contains 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 fs = require('fs'), | |
path = require('path'), | |
builder = require('xmlbuilder'), | |
crypto = require('crypto'); | |
var targetDir = process.argv[2] + '/', | |
magentoVersion = process.argv[3]; | |
function xmlAddSyncRecursive(xml, cpath, failSilent) { | |
var files; |
This file contains 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
app.activeDocument.suspendHistory("Export as png", "main()"); | |
function main() { | |
if (app.documents.length) { | |
var docRef = app.activeDocument; | |
if (docRef.layers.length) { | |
var selected = getSelectedLayersIdx(); | |
for (var i = 0; i < selected.length; i++) { | |
var layer = selectByIndex(selected[i]), | |
width = layer.bounds[2] - layer.bounds[0], |
This file contains 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
class NextendMultiLineShortcode{ | |
static $multiline_shortcode_storage = array(); | |
static $multiline_shortcodes = array(); | |
public static function init(){ | |
add_filter('the_content', 'NextendMultiLineShortcode::do_multiline_shortcode', 9); // before wpautop() | |
add_shortcode('multiline_shortcode', 'NextendMultiLineShortcode::multiline_shortcode'); | |
} | |
public static function do_multiline_shortcode($content, $ignore_html = false) { |
This file contains 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
// http://stackoverflow.com/questions/3860351/relative-position-in-dom-of-elements-in-jquery | |
// What this does is .add() the additional element (or selector) | |
// (which jQuery keeps in document order) and then checks if it's the second of the two. | |
(function($) { | |
$.fn.isBefore = function(elem) { | |
if(typeof(elem) == "string") elem = $(elem); | |
return this.add(elem).index(elem) > 0; | |
} | |
})(jQuery) |
This file contains 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 | |
function ob_end_clean_all() { | |
$handlers = ob_list_handlers(); | |
while (count($handlers) > 0 && $handlers[count($handlers) - 1] != 'ob_gzhandler' && $handlers[count($handlers) - 1] != 'zlib output compression') { | |
ob_end_clean(); | |
$handlers = ob_list_handlers(); | |
} | |
} |
This file contains 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
Hi, there is not such ready-to-use feature in Smart Slider, but you can do what you need. | |
You need to separate it into two task: | |
Task #1: On page load, scroll the browser to the slider with id 31: | |
<script type="text/javascript"> | |
jQuery(window).on('ready', function() { | |
jQuery('html, body').scrollTop($('#n2-ss-31').offset().top); | |
}); | |
</script> |
This file contains 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 | |
if(class_exists('NextendSocialLogin', false)){ | |
NextendSocialLogin::renderButtonsWithContainer(); | |
} |
OlderNewer