| Server IP : 69.39.225.240 / Your IP : 216.73.216.138 Web Server : Apache System : Linux bronze7.serverhost.net 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : reademotions ( 1074) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/reademotions/www/wp-content/plugins/bb-plugin/modules/list/includes/ |
Upload File : |
<?php
$list_tag_open = $module->get_list_opening_tag( $settings->list_type );
$list_tag_close = $module->get_list_closing_tag( $settings->list_type );
$li_div = $module->get_list_item_tag( $settings->list_type );
$list_icon_default = '<span class="fl-list-item-icon"></span>';
if ( 'div' === $settings->list_type && ! empty( $settings->div_icon ) ) {
$list_icon_default = '<i class="fl-list-item-icon ' . $settings->div_icon . '" aria-hidden="true"></i>';
}
// List opening tag -- div, ul, ol.
echo $list_tag_open;
foreach ( $settings->list_items as $k => $item ) :
if ( ! is_object( $item ) ) {
continue;
}
$list_icon = $module->get_list_icon( $item->list_item_icon, $list_icon_default );
$heading_icon = $module->get_heading_icon( $list_icon, $settings->list_icon_placement );
$content_icon = $module->get_content_icon( $list_icon, $settings->list_icon_placement );
$heading_html = $module->get_heading_html( $settings->heading_tag, $item->heading, $heading_icon, $settings->list_icon_placement );
$content_html = $module->get_content_html( $settings->content_tag, $item->content, $content_icon, $settings->list_icon_placement );
$list_item_role = ( 'div' == $li_div ) ? ' role="listitem"' : '';
$list_item_class = ' class="fl-list-item fl-list-item-' . $k . '"';
/**
*
* Render list item tag, role and class.
* - tag: 'li' or 'div'.
* - role: 'listitem' if tag is div.
* - class: 'fl-list-item fl-list-item-NN'; where NN = list item number.
*
*/
?>
<<?php echo $li_div . $list_item_role . $list_item_class; ?>>
<div class="fl-list-item-wrapper">
<?php
echo $heading_html;
echo $content_html;
?>
</div>
</<?php echo $li_div; ?>>
<?php
endforeach;
// List closing tag -- div, ul, ol.
echo $list_tag_close;