Created
February 10, 2020 12:24
-
-
Save giucu91/a8565eca40cc95390f6737315147290f to your computer and use it in GitHub Desktop.
Modula ADA Compliance
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
<div class="<?php echo esc_attr(implode( ' ', $data->item_classes )) ?>"<?php echo Modula_Helper::generate_attributes( $data->item_attributes ) ?> > | |
<?php do_action( 'modula_item_before_link', $data ); ?> | |
<?php if ( 'no-link' != $data->lightbox ): ?> | |
<a<?php echo Modula_Helper::generate_attributes( $data->link_attributes ) ?> class="<?php echo esc_attr(implode( ' ', $data->link_classes )) ?>"> | |
<?php endif ?> | |
<?php do_action( 'modula_item_after_link', $data ); ?> | |
<img class='<?php echo esc_attr(implode( ' ', $data->img_classes )) ?>'<?php echo Modula_Helper::generate_attributes( $data->img_attributes ) ?>/> | |
<?php do_action( 'modula_item_after_image', $data ); ?> | |
<?php if ( 'no-link' != $data->lightbox ): ?> | |
</a> | |
<?php endif ?> | |
<div class="figc<?php echo '' == $data->title ? ' no-title' : '' ?><?php echo '' == $data->description ? ' no-description' : '' ?>"> | |
<div class="figc-inner"> | |
<?php if ( ! $data->hide_title ): ?> | |
<h2 class='jtg-title'><?php echo wp_kses_post( $data->title ); ?></h2> | |
<?php endif ?> | |
<?php if ( ! $data->hide_description ): ?> | |
<p class="description"><?php echo wp_kses_post( $data->description ); ?></p> | |
<?php endif ?> | |
<?php if ( ! $data->hide_socials ): ?> | |
<div class="jtg-social"> | |
<?php if ( $data->enableTwitter ): ?> | |
<a class="modula-icon-twitter" href="#"><?php echo Modula_Helper::get_icon( 'twitter' ) ?></a> | |
<?php endif ?> | |
<?php if ( $data->enableFacebook ): ?> | |
<a class="modula-icon-facebook" href="#"><?php echo Modula_Helper::get_icon( 'facebook' ) ?></a> | |
<?php endif ?> | |
<?php if ( $data->enableWhatsapp ): ?> | |
<a class="modula-icon-whatsapp" href="#"><?php echo Modula_Helper::get_icon( 'whatsapp' ) ?></a> | |
<?php endif ?> | |
<?php if ( $data->enablePinterest ): ?> | |
<a class="modula-icon-pinterest" href="#"><?php echo Modula_Helper::get_icon( 'pinterest' ) ?></a> | |
<?php endif ?> | |
<?php if ( $data->enableLinkedin ): ?> | |
<a class="modula-icon-linkedin" href="#"><?php echo Modula_Helper::get_icon( 'linkedin' ) ?></a> | |
<?php endif ?> | |
</div> | |
<?php endif ?> | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment