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 | |
class My_Widget extends WP_Widget { | |
public function __construct() { | |
$widget_ops = array( | |
'classname' => 'my-widget', | |
'description' => __( 'My Widget description', 'textdomain' ), | |
); | |
$this->WP_Widget( 'My_Widget', __( 'My Widget title', 'textdomain' ), $widget_ops ); | |
} |
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 | |
function change_acf_color_picker() { | |
$client_colors = array( | |
"#DD3333", | |
"#81D742", | |
"#1E73BE", | |
"#8224E3", | |
"#DD9933", | |
"#EEEE22" |
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 | |
function custom_dashboard_widgets() { | |
if ( function_exists( 'get_field' ) ) { | |
if ( get_field( 'custom-dashboard-widgets', 'options' ) ) { | |
$i = 0; | |
while( has_sub_field( 'custom-dashboard-widgets', 'options' ) ) : |
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
# Shadow | |
shadow = true; | |
no-dnd-shadow = true; | |
no-dock-shadow = true; | |
clear-shadow = true; | |
shadow-radius = 2; | |
shadow-offset-x = -1; | |
shadow-offset-y = 0; | |
shadow-opacity = 0.5; | |
# shadow-red = 0.0; |
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
'.platform-darwin atom-text-editor': | |
'alt-a': 'aligner:align' | |
'.platform-win32 atom-text-editor, .platform-linux atom-text-editor': | |
'alt-a': 'aligner:align' | |
'.platform-win32 atom-text-editor, .platform-linux atom-text-editor': | |
'ctrl-7': 'editor:toggle-line-comments' | |
'ctrl-shift-g': 'gist:create-public' |
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
$exempeldata = Array | |
( | |
[company] => | |
[title] => | |
[name] => Anna | |
[surname] => Johansson | |
[address] => Array | |
( | |
[street] => | |
[postal] => |
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 | |
function hip_auto_login() { | |
/* emails with + will not work "properly", then wont be logged in with this filter */ | |
if( isset( $_GET['u'] ) && isset( $_GET['plux'] ) && isset( $_GET['post_id'] ) ) { | |
$email = wp_kses( $_GET['u'],array() ); | |
$checksum = wp_kses( $_GET['plux'],array() ); | |
$post_id = wp_kses( $_GET['post_id'],array() ); | |
if (!is_user_logged_in() && !empty($checksum) && !empty($email)) { |
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 fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -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
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59 | |
sudo sh -c 'echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list.d/spotify.list' |
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
<!-- Vertical tiling --> | |
<keybind key="W-Right"> | |
<action name="UnmaximizeFull"/> | |
<action name="MoveResizeTo"> | |
<width>50%</width> | |
</action> | |
<action name="MaximizeVert"/> | |
<action name="MoveResizeTo"> | |
<x>50%</x> | |
<y>0</y> |