Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

replace the contents of application/models/shortcodes/pricingtable.php with this

View gist:1f5756cfc1545eae5244
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
<?php
class BFIShortcodePricingtableModel extends BFIShortcodeModel implements iBFIShortcode {
const SHORTCODE = 'pricingtable';
public $class = '';
public function render($content = NULL, $unusedAttributeString = '') {
return "<div class='bfi_pricingtable $this->class' $unusedAttributeString>$content</div><div class='clearfix'></div>";
}
}
class BFIShortcodePricingtabModel extends BFIShortcodeModel implements iBFIShortcode {
const SHORTCODE = 'pricingtab';
public $size = '';
public $columns = '3';
public $title = '';
public $desc = '';
public $button = '';
public $link = '';
public $newwindow = false;
public $class = '';
public function render($content = NULL, $unusedAttributeString = '') {
$newwindow = $this->newwindow ? "target='_blank'" : '';
$bigTabClass = $this->size == 'large' ? 'big' : '';
$bigTabClass = $this->size == 'small' ? 'small' : $bigTabClass;
$desc = $this->desc ? "<div class='subtitle'>$this->desc</div>" : '';
$button = $this->button ? "<a href='$this->link' $newwindow>$this->button</a>" : '';
return do_shortcode("[col$this->columns class='$bigTabClass $this->class' $unusedAttributeString]
<h3>$this->title</h3>
<div class='description'><div>$content</div></div>
$desc
$button
[/col$this->columns]");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.