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
/** | |
* Move Comment field to bottom | |
*/ | |
if ( !function_exists( 'prefix_move_comment_field_to_bottom' ) ) : | |
function neer_move_comment_field_to_bottom( $fields ) { | |
$comment_field = $fields['comment']; | |
unset( $fields['comment'] ); | |
$fields['comment'] = $comment_field; | |
return $fields; | |
} |
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
/** | |
* Modify before_widget from Widget Class | |
*/ | |
if ( !function_exists( 'pixicleaner_filter_dynamic_sidebar_params' ) ) : | |
function pixicleaner_filter_dynamic_sidebar_params($params){ | |
static $sidebar_widget_count = array(); | |
$sidebar_id = $params[0]["id"]; | |
if ( $sidebar_id == 'pixicleaner_footer_widgets' ) : |
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 widget( $args, $instance ) { | |
extract( $args ); | |
... //other code | |
$widget_width = !empty($instance['widget_width']) ? $instance['widget_width'] : "col300"; | |
/* Add the width from $widget_width to the class from the $before widget */ | |
// no 'class' attribute - add one with the value of width | |
if( strpos($before_widget, 'class') === false ) { | |
// include closing tag in replace string | |
$before_widget = str_replace('>', 'class="'. $widget_width . '">', $before_widget); |
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
Show hidden characters
// UPDATED VERSION | |
{ | |
"filename_filter": "(/|\\\\|^)(?!_)(\\w+)\\.(css|js|sass|less|scss)$", | |
"build_on_save": 1 | |
} | |
// DEFAULT (for reference, in case you need it back) | |
{ | |
"filename_filter": "\\.(css|js|sass|less|scss)$", | |
"build_on_save": 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
{ | |
"cmd": [ | |
"sass", "--update", "--watch", "$file:${file_path}/${file_base_name}.css", "--sourcemap=none", "--stop-on-error", "--no-cache", "--style", "expanded", | |
"&", | |
"sass", "--update", "$file:${file_path}/${file_base_name}.min.css", "--stop-on-error", "--no-cache", "--style", "compressed" | |
], | |
"selector": "source.sass, source.scss", | |
"line_regex": "Line ([0-9]+):", |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text] | |
@="Edit with &Sublime Text" | |
"Icon"="C:\\Program Files\\Sublime Text 3\\sublime_text.exe,0" | |
"MuiVerb"="Edit with Sublime Text" | |
[HKEY_CLASSES_ROOT\*\shell\Edit with Sublime Text\command] | |
@="C:\\Program Files\\Sublime Text 3\\sublime_text.exe \"%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
@echo off | |
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f |
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
{ | |
"cmd": [ | |
"sass", "--update", "--watch", "$file:${file_path}/../css/${file_base_name}.css", "--sourcemap=none", "--stop-on-error", "--no-cache", "--style", "expanded", | |
"&", | |
"sass", "--update", "$file:${file_path}/../css/${file_base_name}.min.css", "--stop-on-error", "--no-cache", "--style", "compressed" | |
], | |
"selector": "source.sass, source.scss", | |
"line_regex": "Line ([0-9]+):", |
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
// WordPress pagination for boostrap 4 | |
if ( !function_exists( 'wpse64458_pagination' ) ) { | |
function wpse64458_pagination(){ | |
global $wp_query; | |
ob_start(); | |
$translated = esc_html__( 'Page', 'wpse64458' ); // Supply translatable string | |
$pagination = paginate_links( array( | |
'base' => str_replace( PHP_INT_MAX, '%#%', esc_url( get_pagenum_link( PHP_INT_MAX ) ) ), | |
'format' => '?paged=%#%', | |
'current' => max( 1, get_query_var('paged') ), |