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 class="related-links"> | |
<h3>Related Links</h3> | |
<ul> | |
<li><a href="http://cenduit.com">This is a Link Yay</a></li> | |
</ul> | |
</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
# --- Ignore core WP files, while allowing wp-content/ directory | |
wp-config.php | |
# --- Ignore globally | |
*wp-config.php | |
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
{ attributes: | |
{ type: 'Attachment', | |
url: '/services/data/v31.0/sobjects/Attachment/xxxxxxxxx' }, | |
Id: 'xxxxxxxxx', | |
IsDeleted: false, | |
ParentId: 'xxxxxxxxx', | |
Name: 'ocean copy.jpg', | |
IsPrivate: false, | |
ContentType: 'image/jpeg', | |
BodyLength: 143953, |
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 notification(status, message, callback){ | |
var target = document.getElementById('mc_embed_messages'); | |
if(status === 500){ | |
target.innerHTML = '<span class="error-title">ERROR:</span> ' + message; | |
target.className = "error"; | |
callback(); | |
} | |
if(status === 200){ |
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
jQuery(document).ready(function($){ | |
var _custom_media = true, | |
_orig_send_attachment = wp.media.editor.send.attachment; | |
$('#upload_image_button').click(function(e) { | |
var send_attachment_bkp = wp.media.editor.send.attachment; | |
var button = $(this); | |
var id = button.attr('id').replace('_button',''); | |
_custom_media = true; |
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 articleMenuScroll(direction, target){ | |
var liHeight = 0; | |
$('#sidebar-posts li').each(function(index) { | |
if($(this).attr('data-id') === target.attr('data-id')){ | |
return false; | |
} else { | |
liHeight = liHeight + ($(this).height() + 20); | |
} | |
}); |
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
$.getJSON( url, function( data ) { | |
var factSites = data.feed.entry; | |
for(var i = 0; i < factSites.length; i++ ){ | |
var markerData = { | |
continent: factSites[i].gsx$continent.$t, | |
country: factSites[i].gsx$country.$t, | |
city: factSites[i].gsx$city.$t, |
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 alphabatizeMenu(target){ | |
var continent = document.getElementById('tab_' + target); | |
if(continent){ | |
var listParent = document.getElementById(target + '-offices'); | |
var listItems = continent.getElementsByClassName('in-' + target); | |
var listItemText = []; | |
for(var i = 0; i < listItems.length; i++){ | |
listItemText.push({ | |
country: listItems[i].textContent, | |
item: listItems[i] |
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
chown www-data:www-data -R * # Let apache be owner | |
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x | |
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r-- |