Plugin Directory

source: bb-bootstrap-cards/trunk/bb-bootstrap-cards-module/includes/frontend.php

Last change on this file was 3099081, checked in by brainstormworg, 11 months ago

Update to version 1.1.4 from GitHub

File size: 2.2 KB
Line 
1<?php
2/**
3 * Beaver Builder Cards
4 *
5 * @package  bb-bootstrap-cards
6 */
7
8?>
9
10<div class="bb_boot_card_container bb-content-align-<?php echo $settings->alignment; ?>">
11
12        <!--Card image-->
13        <div class="bb_boot_card_image">
14                <?php
15                        $classes = $module->get_classes();
16                        $src     = $module->get_src();
17                        $alt     = $module->get_alt();
18                        $attrs   = $module->get_attributes();
19                ?>
20                <?php if ( 'yes' == $settings->photo_hyperlink && 'link' == $settings->card_btn_type ) : ?>
21                <a href="<?php echo esc_url( $settings->link_field ); ?>" target="<?php echo esc_attr( $settings->link_target ); ?>" itemprop="url">
22                <?php endif; ?>
23                <?php if ( 'yes' == $settings->photo_hyperlink && 'button' == $settings->card_btn_type ) : ?>
24                <a href="<?php echo esc_url( $settings->btn_link ); ?>" target="<?php echo esc_attr( $settings->btn_link_target ); ?>" itemprop="url">
25                <?php endif; ?>
26                <img class="<?php echo esc_attr( $classes ); ?>" src="<?php echo esc_url( $src ); ?>" alt="<?php echo esc_attr( $alt ); ?>" itemprop="image" <?php echo $attrs; ?> />
27                <?php if ( 'yes' == $settings->photo_hyperlink && 'none' != $settings->card_btn_type ) : ?>
28                </a>
29                <?php endif; ?>
30
31        </div>
32        <!--/.Card image-->
33
34        <!--Card content-->
35        <div class="bb_boot_card_block">
36                <!--Title-->
37                <<?php echo esc_attr( $settings->tag ); ?> class="bb_boot_card_title"><?php echo esc_html( $settings->card_title ); ?></<?php echo esc_attr( $settings->tag ); ?>>
38                <!--/.Title--> 
39                        <!--Text-->
40                        <div class="bb_boot_card_text">
41                                <?php echo $settings->card_textarea; ?>
42                        </div>
43                        <!--/.Text-->   
44                        <!--Link-->
45                        <?php if ( 'link' == $settings->card_btn_type ) { ?> 
46                        <a class="bb_boot_card_link" href="<?php echo esc_url( $settings->link_field ); ?>" target="<?php echo esc_attr( $settings->link_target ); ?>">
47                                <?php echo esc_html( $settings->card_btn_text ); ?>
48                        </a>
49                <?php } elseif ( 'button' == $settings->card_btn_type ) { ?>
50                        <a class="bb_boot_card_link_button" href="<?php echo esc_url( $settings->btn_link ); ?>" target="<?php echo esc_attr( $settings->btn_link_target ); ?>">
51                                <span class="bb_boot_button"><?php echo esc_html( $settings->btn_text ); ?></span>
52                        </a>   
53                <?php } ?>
54                <!--/.Link-->
55
56        </div>
57        <!--/.Card content-->
58
59</div>   
Note: See TracBrowser for help on using the repository browser.