|
@@ 25-33 (lines=9) @@
|
| 22 |
|
$this->utility = $utility; |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
public function blockquote( $metaKey = false, array $attributes = [] ) |
| 26 |
|
{ |
| 27 |
|
$tag = 'blockquote'; |
| 28 |
|
$value = $this->postmeta->get( $metaKey ); |
| 29 |
|
|
| 30 |
|
if( !$value )return; |
| 31 |
|
|
| 32 |
|
$this->utility->printTag( $tag, wp_strip_all_tags( $value ), $attributes ); |
| 33 |
|
} |
| 34 |
|
|
| 35 |
|
public function button( $postId = 0, $title = false ) |
| 36 |
|
{ |
|
@@ 73-83 (lines=11) @@
|
| 70 |
|
print $this->media->gallery( $args ); |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
public function title( $metaKey = false, array $attributes = [] ) |
| 74 |
|
{ |
| 75 |
|
$tag = apply_filters( 'castor/render/title/tag', 'h2' ); |
| 76 |
|
$value = $metaKey |
| 77 |
|
? $this->postmeta->get( $metaKey ) |
| 78 |
|
: $this->theme->pageTitle(); |
| 79 |
|
|
| 80 |
|
if( !$value )return; |
| 81 |
|
|
| 82 |
|
$this->utility->printTag( $tag, wp_strip_all_tags( $value ), $attributes ); |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
public function video( $metaKey = 'video', $screenshotMetaKey = false ) |
| 86 |
|
{ |