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
const add = (a, b) => { | |
return a + b; | |
}; |
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
# BEGIN W3TC Browser Cache | |
<IfModule mod_mime.c> | |
AddType text/css .css | |
AddType text/x-component .htc | |
AddType application/x-javascript .js | |
AddType application/javascript .js2 | |
AddType text/javascript .js3 | |
AddType text/x-js .js4 | |
AddType text/html .html .htm |
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
<VirtualHost 192.168.1.101:80> | |
UseCanonicalName Off | |
VirtualDocumentRoot "/media/merianos/Large Internal/Web Development Projects/%3/%2.1/%2+" | |
ServerAlias * | |
DirectoryIndex index.php index.html index.htm | |
LogLevel debug | |
ErrorLog /var/log/apache2/vhosts-error.log | |
CustomLog /var/log/apache2/vhosts-access.log combined |
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
<div class="text-center text-sm-left text-lg-right"> | |
Tollere capacius cingebant librata eodem pugnabant! | |
</div> |
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
$screens : $container-sm, $container-md, $container-lg; | |
$sizes : sm, md, lg; | |
$aligns : left, right, center, justify; | |
$count : 0; | |
@each $screen in $screens { | |
$count : $count + 1; | |
@media ( min-width: #{$screen} ) { | |
$size : nth($sizes, $count); |
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
@align: left, right, center, justify; | |
@screen : @screen-sm-min, @screen-md-min, @screen-lg-min; | |
@sizes : sm, md, lg; | |
.createMediaQueryRules( @mediaIterator:1 ) when ( @mediaIterator <= length( @screen ) ) { | |
@mediaQuery : extract( extract( @screen, @mediaIterator ), 1 ); | |
@size : extract( extract( @sizes, @mediaIterator ), 1 ); | |
@media ( min-width : @mediaQuery ) { | |
.createTextAlignRules( @iterator:1 ) when ( @iterator <= length( @align ) ) { |
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 register_my_widgets_folder( $folders = array() ) { | |
$folders[] = dirname( __FILE__ ) . '/widgets/'; | |
return $folders; | |
} | |
add_filter( 'siteorigin_widgets_widget_folders', 'register_my_widgets_folder' ); | |
function manually_load_widgets() { | |
$widgets_folder = dirname( __FILE__ ) . '/widgets/'; | |
$contents = scandir( $widgets_folder ); |
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 load_custom_fields() { | |
$base_dir = dirname( __FILE__ ) . '/fields/'; | |
foreach ( glob( $base_dir . '*.php' ) as $file ) { | |
require_once $file; | |
} | |
} | |
add_action( 'admin_init', 'load_custom_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
function register_unique_namespace( $class_prefixes = array() ) { | |
$class_prefixes[] = 'My_Custom_Field_'; | |
return $class_prefixes; | |
} | |
add_filter( 'siteorigin_widgets_field_class_prefixes', 'register_unique_namespace' ); | |
function register_my_custom_fields_folder( $class_paths = array() ) { | |
$class_paths[] = dirname( __FILE__ ) . '/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
function manually_load_widgets() { | |
$widgets_folder = dirname( __FILE__ ) . '/widgets/'; | |
$contents = scandir( $widgets_folder ); | |
foreach( $contents as $item ) { | |
if ( '.' === $item || '..' === $item || !is_dir( $widgets_folder . $item ) ) { | |
continue; | |
} | |
foreach ( glob( $widgets_folder . $item . '/*.php' ) as $file ) { |