Fix for Sublime not opening files via CLI command when ran from TMUX.
Install via brew:
brew install reattach-to-user-namespace
Add to zshrc:
set-option -g default-command "reattach-to-user-namespace -l zsh"
Restart Tmux server
tmux kill-server
<?php | |
/* | |
* Synced sliders, | |
* | |
* See the synced sliders example at http://kenwheeler.github.io/slick/ | |
*/ | |
// Make sure there's stuff to display | |
if ( have_rows( 'add_testimonials' ) ) : |
<?php | |
/** | |
* Site Brand | |
* | |
* Output site branding | |
* | |
* Use native WordPress site logo with custom (bootstrap friendly) markup | |
* Falls back to text title if logo is not set. | |
* | |
* @param $html |
Fix for Sublime not opening files via CLI command when ran from TMUX.
Install via brew:
brew install reattach-to-user-namespace
Add to zshrc:
set-option -g default-command "reattach-to-user-namespace -l zsh"
Restart Tmux server
tmux kill-server
SHORTCUT="[Desktop Entry] | |
Name=Sublime Text 3 | |
Comment=Edit text files | |
Exec=/opt/sublime-text-3/sublime_text | |
Icon=/opt/sublime-text-3/Icon/128x128/sublime-text.png | |
Terminal=false | |
Type=Application | |
Encoding=UTF-8 | |
Categories=Utility;TextEditor;" |
<?php | |
/** | |
* oEmbed Attributes | |
* | |
* Add parameters to oEmbed query string. Useful for | |
* turning off related videos and such. | |
* | |
* Basic field use: $video = videoLink('your_field_name'); | |
* Add second param if in a repeater: $video - videoLink('your_subfield_name', true); | |
* |
<?php | |
namespace App; | |
// Add to functions, or to a dedicated controllers file | |
// Needs a global body class to hook into | |
/** | |
* Navigation arguments | |
* |
/* Trying to get the theme customizer to accept SVG, no luck.... */ | |
// add svg support for media uploader | |
function cc_mime_types( $mimes ){ | |
$mimes['svg'] = 'image/svg+xml'; | |
return $mimes; | |
} | |
add_filter( 'upload_mimes', 'cc_mime_types' ); |