Created
July 15, 2016 19:39
-
-
Save mpaccione/deaa66b8ff7ba7e26a78acc358386537 to your computer and use it in GitHub Desktop.
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 quote_func($atts, $content = null){ | |
$quote_attrs = shortcode_atts( array( | |
'logo' => 'Client Logo', | |
), $atts, 'quote' ); | |
$output = "<div class='quote'><p class='text'>".$content."</p><div class='logo'>".wp_kses_post($quote_attrs["logo"])."</div></div>"; | |
return $output; | |
} | |
function comment_left_func($atts, $content = null){ | |
return `<div class="commentWrap"> | |
<div class="commentInner leftComment"> | |
<img src=""> | |
<p>` | |
.$content. | |
`</p> | |
</div> | |
</div>`; | |
} | |
function comment_right_func($atts, $content = null){ | |
return `<div class="commentWrap"> | |
<div class="commentInner rightComment"> | |
<p>` | |
.$content. | |
`</p> | |
<img src=""> | |
</div> | |
</div>`; | |
} | |
function images_func($atts, $content = null){ | |
return `<div class="imageWrap"> | |
<div class="imageInner">` | |
.$content. | |
`</div> | |
</div>`; | |
} | |
add_shortcode("images", "images_func"); | |
add_shortcode("commentright","comment_right_func"); | |
add_shortcode("commentleft","comment_left_func"); | |
add_shortcode("qoute","qoute_func"); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment