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 | |
add_action( 'elementor/theme/register_conditions', function( \ElementorPro\Modules\ThemeBuilder\Classes\Conditions_Manager $manager ) { | |
require get_theme_file_path( 'gutenberg-page-condition.php' ); | |
$manager->get_condition( 'singular' )->register_sub_condition( new Gutenberg_Page() ); | |
} ); |
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
#!/bin/bash | |
local=$(avahi-resolve -4 -n $(hostname).local | cut -f 2) | |
hostname=$1 | |
if [ $local != "127.0.0.1" ] | |
then | |
echo "Aliasing $local as $hostname." | |
avahi-publish -a -R $hostname $local | |
else |
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
on run {input, parameters} | |
tell application "Terminal" | |
activate | |
if (count windows) is 0 then | |
do script with command "tail -f /Applications/MAMP/logs/php_error.log" | |
else | |
repeat with win in windows | |
try |
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
/* | |
Changing intents in Twitter plugin | |
*/ | |
if ( class_exists( 'DB_Twitter_Feed' ) ) { | |
function siteName_twitter_template_tag( $feed_config = NULL ) { | |
// Configuration validity checks are performed on instantiation | |
$the_feed = new DB_Twitter_Feed( $feed_config ); | |
$url_data = array( | |
'tw' => $the_feed->tw, |
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
javascript: (function () { | |
var d = document, | |
w = window, | |
enc = encodeURIComponent, | |
e = w.getSelection, | |
k = d.getSelection, | |
x = d.selection, | |
s = (e ? e() : (k) ? k() : (x ? x.createRange().text : 0)), | |
s2 = ((s.toString() == '') ? s : enc(s)), | |
f = '<?php echo YOURLS_SITE . ' / result.php '; ?>', |
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
javascript: (function () { | |
var d = document, | |
k = prompt('Custom URL'), | |
s = d.createElement('script'); | |
if (k != null) { | |
window.yourls_callback = function (r) { | |
if (r.short_url) { | |
prompt(r.message, r.short_url); | |
} else { | |
alert('An error occured: ' + r.message); |
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
// Translations stuff | |
function isq_load_textdomain() { | |
yourls_load_custom_textdomain( 'isq_translation', dirname( __FILE__ ) . '/public/languages' ); | |
echo "This function has loaded"; | |
} | |
isq_load_textdomain(); |
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
// Translations stuff | |
yourls_add_action( 'plugins_loaded', 'isq_load_textdomain' ); // Trigger when all plugins are loaded | |
function isq_load_textdomain() { | |
yourls_load_custom_textdomain( 'isq_translation', dirname( __FILE__ ) . '/public/languages' ); | |
} |
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
p.comment-count { | |
position: relative; | |
width: 43px; | |
height: 30px; | |
text-align: center; | |
line-height: 30px; | |
background-color: #fff; | |
-webkit-border-radius: 15px; | |
-moz-border-radius: 15px; | |
border-radius: 15px; |