Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebuchy committed Feb 1, 2019
1 parent 43bccf1 commit 13a04cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 38 deletions.
39 changes: 2 additions & 37 deletions blocks/steps/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,42 +1,7 @@
<section class="g-py-100">

<div class="container">
<div class="row no-gutters">
<div class="col-lg-4 g-px-40 g-mb-50 g-mb-0--lg">
<!-- Icon Blocks -->
<div class="text-center">
<span class="d-inline-block u-icon-v3 u-icon-size--xl g-bg-primary g-color-white rounded-circle g-mb-30">
<i class="icon-communication-081 u-line-icon-pro"></i>
</span>
<h3 class="h5 g-color-gray-dark-v2 g-font-weight-600 text-uppercase mb-3">Beautiful Designs</h3>
<p class="mb-0">We strive to embrace and drive change in our industry which allows us to keep our clients relevant.</p>
<div class="row">
Test
</div>
<!-- End Icon Blocks -->
</div>

<div class="col-lg-4 g-brd-left--lg g-brd-gray-light-v4 g-px-40 g-mb-50 g-mb-0--lg">
<!-- Icon Blocks -->
<div class="text-center">
<span class="d-inline-block u-icon-v3 u-icon-size--xl g-bg-primary g-color-white rounded-circle g-mb-30">
<i class="icon-finance-086 u-line-icon-pro"></i>
</span>
<h3 class="h5 g-color-gray-dark-v2 g-font-weight-600 text-uppercase mb-3">Unique Features</h3>
<p class="mb-0">We strive to embrace and drive change in our industry which allows us to keep our clients relevant.</p>
</div>
<!-- End Icon Blocks -->
</div>

<div class="col-lg-4 g-brd-left--lg g-brd-gray-light-v4 g-px-40">
<!-- Icon Blocks -->
<div class="text-center">
<span class="d-inline-block u-icon-v3 u-icon-size--xl g-bg-primary g-color-white rounded-circle g-mb-30">
<i class="icon-communication-057 u-line-icon-pro"></i>
</span>
<h3 class="h5 g-color-gray-dark-v2 g-font-weight-600 text-uppercase mb-3">Reliable Support</h3>
<p class="mb-0">We strive to embrace and drive change in our industry which allows us to keep our clients relevant.</p>
</div>
<!-- End Icon Blocks -->
</div>
</div>
</div>
</section>
4 changes: 3 additions & 1 deletion classes/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ public function __construct(array $args = [], $slug)
* Register properties
*/
foreach ($args as $prop) {
$this->{$prop} = get_field($prop);
if (function_exists('get_field')) {
$this->{$prop} = get_field($prop);
}
$this->$slug = $slug;
}

Expand Down

0 comments on commit 13a04cd

Please sign in to comment.