Skip to content

Commit

Permalink
new blocks are updated
Browse files Browse the repository at this point in the history
  • Loading branch information
anamwp committed Mar 24, 2020
1 parent 489ec82 commit f7be87f
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 14 deletions.
11 changes: 8 additions & 3 deletions blocks/blogs/blog-6/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,14 @@
'value' => '3',
),
array(
'name' => 'text_limit',
'label' => 'Excerpt Length',
'value' => 20,
'name' => 'post_order',
'label' => 'Order By',
'type' => 'select',
'value' => 'DESC',
'options' => array(
'DESC' => 'Descending',
'ASC' => 'Ascending',
)
),
array(
'name' => 'readmore_text',
Expand Down
1 change: 1 addition & 0 deletions blocks/blogs/blog-6/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
$args = array(
'posts_per_page' => $contents['total_posts'],
'cat' => $contents['category'],
'order' => $contents['post_order'],
);
// Build query
$query = new WP_Query($args);
Expand Down
30 changes: 26 additions & 4 deletions blocks/features/feature-17/style.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
background-color: <?php echo $styles['bg_color']; ?>;
}

#<?php echo $id;?> .tg-form {
display: flex;
justify-content: center;
}

#<?php echo $id;?> .content-wrapper .uk-heading-primary {
font-size: <?php echo $settings['title_size'] . 'px';?>;
Expand Down Expand Up @@ -67,18 +71,36 @@
color: <?php echo $styles['social_bg'];?>;
}

#<?php echo $id;?> .tg-notice{
color: red;
font-weight: bold;
text-shadow: 0 1px 1px #f02e17;
transform: scale(1);
animation-name: notice;
animation-duration: 2s;
animation-iteration-count: infinite;
transition: all 300ms ease-in-out;
}

@keyframes notice {
0% {transform: scale(1.1)}
50% {transform: scale(1.2)}
100% {transform: scale(1.1)}
}



@media(max-width:768px){
#<?php echo $id;?> .tx-form {
#<?php echo $id;?> .tg-form {
flex-direction: column;
}
#<?php echo $id;?> .tx-form .form-group{
#<?php echo $id;?> .tg-form .form-group{
width: 100%;
}
#<?php echo $id;?> .tx-form .form-group input[type="email"]{
#<?php echo $id;?> .tg-form .form-group input[type="email"]{
width: 100%;
}
#<?php echo $id;?> .tx-form .your-email input{
#<?php echo $id;?> .tg-form .your-email input{
margin-bottom: 15px;
padding: 15px 6px!important;
}
Expand Down
7 changes: 6 additions & 1 deletion blocks/features/feature-17/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
?>
<p><?php echo $contents['section_desc'];?></p>
<div class="form-wrapper uk-padding-large">
<?php echo do_shortcode($contents['form_shortcode'])?>
<?php if($contents['form_shortcode']){
echo do_shortcode($contents['form_shortcode']);
} else{
echo '<h3 class="tg-notice"> "N.B. Please use form shortcode."</h3>';
}
?>
</div>
<div class="social-icons-wrapper uk-flex uk-flex-center uk-margin-medium-top">
<?php foreach($contents['social_icons'] as $single_icon): ?>
Expand Down
6 changes: 3 additions & 3 deletions blocks/features/feature-18/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
array('name' => 'author', 'label' => 'Author Name', 'value' => 'Jacke Masito'),
array('name' => 'student_num', 'label' => 'Number of Student', 'append' => 'Students', 'value' => 112),
array('name' => 'rating', 'label' => 'Course Rating', 'append' => 'Star Rating', 'value' => 5),
array('name' => 'course_link', 'text' => 'Course Link', 'type' => 'link', 'url' => '#')
array('name' => 'course_link', 'label' => 'Item Link', 'value' => '#', 'placeholder' => home_url())
),
array(
array('name' => 'image', 'label' => 'Image', 'type' => 'image', 'value' => 'https://demo.wponepager.com/wp-content/uploads/2020/03/course-image-2.jpg'),
Expand All @@ -35,7 +35,7 @@
array('name' => 'author', 'label' => 'Author Name', 'value' => 'Jacke Masito'),
array('name' => 'student_num', 'label' => 'Number of Student', 'append' => 'Students', 'value' => 112),
array('name' => 'rating', 'label' => 'Course Rating', 'append' => 'Star Rating', 'value' => 5),
array('name' => 'course_link', 'text' => 'Course Link', 'type' => 'link', 'url' => '#')
array('name' => 'course_link', 'label' => 'Item Link', 'value' => '#', 'placeholder' => home_url())
),
array(
array('name' => 'image', 'label' => 'Image', 'type' => 'image', 'value' => 'https://demo.wponepager.com/wp-content/uploads/2020/03/course-image-3.jpg'),
Expand All @@ -44,7 +44,7 @@
array('name' => 'author', 'label' => 'Author Name', 'value' => 'Jacke Masito'),
array('name' => 'student_num', 'label' => 'Number of Student', 'append' => 'Students', 'value' => 112),
array('name' => 'rating', 'label' => 'Course Rating', 'append' => 'Star Rating', 'value' => 5),
array('name' => 'course_link', 'text' => 'Course Link', 'type' => 'link', 'url' => '#')
array('name' => 'course_link', 'label' => 'Item Link', 'value' => '#', 'placeholder' => home_url())
)
)
),
Expand Down
6 changes: 3 additions & 3 deletions blocks/features/feature-18/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,19 @@
<div class="uk-width-1-3@s uk-height-match">
<article class="uk-article">
<div class="img-wrapper">
<a href="<?php echo $single_course['course_link']['url'];?>">
<a href="<?php echo $single_course['course_link'];?>">
<img src="<?php echo $single_course['image'];?>" alt="<?php echo $single_course['title'];?>">
</a>
</div>
<a href="<?php echo $single_course['course_link']['url'];?>">
<a href="<?php echo $single_course['course_link'];?>">
<h1 class="uk-article-title uk-margin-remove-bottom uk-text-<?php echo $settings['blog_title_transformation'];?>"><?php echo $single_course['title'];?></h1>
</a>
<p class="uk-article-meta uk-margin-remove-top"><?php echo $single_course['author'];?></p>
<p class="tx-details"><?php echo $single_course['desc']?></p>


<ul class="meta-list">
<li><?php echo esc_html($single_course['student_num'] . ' Students') ?></li>
<li><?php echo esc_html($single_course['student_num'] > 1 ? $single_course['student_num'] . " Students" : $single_course['student_num'] . " Student") ?></li>
<li><?php echo esc_html($single_course['rating'] . ' Star Rating') ?></li>
</ul>
</article>
Expand Down
5 changes: 5 additions & 0 deletions blocks/sliders/slider-4/style.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
#<?php echo $id; ?> ul.uk-slider-items li:hover .item-wrapper{
transform: scale(1.2);
}

#<?php echo $id; ?> .item-wrapper img{
min-height: 315px;
object-fit: cover;
}
#<?php echo $id; ?> ul.uk-slider-items li .tx-overlay{
position: absolute;
top: -150%;
Expand Down

0 comments on commit f7be87f

Please sign in to comment.