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
function getDeviceOrientation() { | |
// window.innerHeight is not supported by IE | |
var winH = window.innerHeight ? window.innerHeight : jQuery(window).height(); | |
var winW = window.innerWidth ? window.innerWidth : jQuery(window).width(); | |
//force height for iframe usage | |
if(!winH || winH == 0){ | |
winH = '100%'; | |
} | |
// set the height of the document | |
jQuery('html').css('height', winH); |
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
1. Create a subscription for the additional domain in Plesk | |
2. Point the DocumentRoot to your primary Multisite domain | |
DocumentRoot /var/www/vhosts/primarydomain.com/httpdocs | |
SuexecUserGroup primarydomainuser psacln | |
<Directory '/var/www/vhosts/primarydomain.com/httpdocs'> | |
AllowOverride All | |
</Directory> | |
3. Disable PHP open_basedir | |
4. Enable PHP to run as FastCGI on the new DocumentRoot | |
<Directory /var/www/vhosts/primarydomain.com/httpdocs> |
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
UPDATE wp_options SET option_value = replace(option_value, 'http://localhost:8888/testing', 'http://www.live-website.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://localhost:8888/testing','http://www.live-website.com'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://localhost:8888/testing', 'http://www.live-website.com'); | |
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://localhost:8888/testing','http://www.live-website.com'); |
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
Vue.filter('limit', function(array, length) { | |
var limitCount = parseInt(length, 10); | |
if (limitCount <= 0) { | |
("development") !== 'production' && _.warn( | |
'The limit filter requires an argument defining the limit count.' | |
); | |
return array; | |
} | |
return array.slice(0, limitCount); | |
}); |
OlderNewer