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
{% stylesheets | |
'@MopaBootstrapBundle/Resources/public/less/mopabootstrapbundle-fa.less' | |
'@MopaBootstrapBundle/Resources/public/less/eyecon-bootstrap-datepicker.less' | |
%} | |
<link href="{{ asset_url }}" type="text/css" rel="stylesheet" media="screen" /> | |
{% endstylesheets %} |
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
// Initialize the Facebook SDK with Parse as described at | |
// https://parse.com/docs/js_guide#fbusers | |
window.fbAsyncInit = function() { | |
// init the FB JS SDK | |
Parse.FacebookUtils.init({ | |
appId : '289802934544559', // Facebook App ID | |
cookie : true, // enable cookies to allow the server to access | |
// the session | |
xfbml : true, // parse social plugins on this page | |
version : 'v1.0' // use version 1 |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/** | |
* Add Flower font to the theme options font list. | |
* | |
* @param array $custom_fonts Current custom fonts. | |
* @return string[string][string] The Web fonts section. | |
*/ | |
function mytheme_redux_custom_fonts( $custom_fonts ) { | |
return array( | |
'Web Fonts' => array( | |
‘flower' => 'flower' |
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
wp db query "SELECT post_id, meta_value FROM wp_postmeta WHERE meta_key='_wp_attached_file'" --skip-column-names | \ | |
paste -s -d '\n' - | \ | |
xargs -n 2 bash -c '\ | |
FILE=wp-content/uploads/$2; \ | |
[[ ! -f ${FILE} ]] && echo $1; \ | |
' argv0 | \ | |
sed -e 'H;${x;s/\n/,/g;s/^,//;p;};d' | | |
xargs -i bash -c 'wp db query " \ | |
DELETE p, pm, tr \ | |
FROM wp_posts p \ |
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 | |
/** | |
* Export WordPress table data using WP-CLI eval-file command. | |
* Usage: wp eval-file export-table.php your_table_name_here | |
*/ | |
if (!defined('WP_CLI') || !WP_CLI) { | |
echo "This script is intended to be used with WP-CLI.\n"; | |
return; | |
} |