diff --git a/lib/admin/admin-functions.php b/lib/admin/admin-functions.php index b3f31e0..e2c4f00 100644 --- a/lib/admin/admin-functions.php +++ b/lib/admin/admin-functions.php @@ -170,8 +170,7 @@ function trestle_settings_box() {
- /> - + /> ' . do_shortcode( $content ) . ''; } -add_shortcode( 'button', 'trestle_button' ); \ No newline at end of file +add_shortcode( 'button', 'trestle_button' ); + +/** + * Blockquote + * + * Example: + * [blockquote name="Speaker" sub_text="Position, Company"]Contents[/blockquote] + */ +function trestle_blockquote( $atts, $content = null ) { + extract( shortcode_atts( array( + 'name' => '', + 'sub_text' => '', + ), $atts ) ); + + $sub_text_html = $sub_text ? '' . $sub_text . '' : ''; + $cite = $name ? '' . $name . $sub_text_html . '' : ''; + + return '
'; +} +add_shortcode( 'blockquote', 'trestle_blockquote' ); \ No newline at end of file diff --git a/style.css b/style.css index 97260c1..b58c71c 100644 --- a/style.css +++ b/style.css @@ -254,8 +254,17 @@ blockquote::before { blockquote cite { display: block; - margin-right: 10%; - text-align: right; + margin-top: 0.5em; + margin-left: 60%; +} + +blockquote cite i, +blockquote cite em { + display: block; + color: #959594; + font-size: 0.8em; + font-weight: normal; + font-style: italic; } .content code {' . $content . $cite . '