Last active
February 8, 2021 07:38
-
-
Save dkvadratu/5a16f281951a14c033318bfe66a47664 to your computer and use it in GitHub Desktop.
Revisions
-
dkvadratu revised this gist
Feb 8, 2021 . 2 changed files with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes.File renamed without changes. -
dkvadratu revised this gist
Feb 8, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -9,4 +9,4 @@ function blocks( $atts, $content = null ) { } add_shortcode('blocks', 'blocks'); //usage: [blocks border_radius='yes']Inner content to print[/blocks] -
dkvadratu revised this gist
Feb 8, 2021 . 2 changed files with 15 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -7,4 +7,6 @@ function bartag_func( $atts ) { return "foo = {$a['foo']}"; } add_shortcode( 'bartag', 'bartag_func' ); //usage: [bartag foo="foo-value"] This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ <?php function blocks( $atts, $content = null ) { extract(shortcode_atts(array( 'border_radius' => 'no', 'spacing' => 'no' ), $atts)); return '<div class="ef-blocks d-flex flex-column flex-md-row spacing-'.strtolower($spacing).' border-radius-'.strtolower($border_radius).'">'.$content.'</div>'; } add_shortcode('blocks', 'blocks'); //usage: [blocks]Inner content to print[/blocks] -
dkvadratu renamed this gist
Feb 8, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
dkvadratu created this gist
Feb 8, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ <?php function bartag_func( $atts ) { $a = shortcode_atts( array( 'foo' => 'something', 'bar' => 'something else', ), $atts ); return "foo = {$a['foo']}"; } add_shortcode( 'bartag', 'bartag_func' );