Skip to content

Commit

Permalink
change version, change newsletter
Browse files Browse the repository at this point in the history
  • Loading branch information
saidmsaif committed Dec 13, 2021
1 parent 17304fd commit b7d83f2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
16 changes: 16 additions & 0 deletions inc/option-panel/customizer/options/home-newsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,22 @@
'type' => 'text'
));

/**
* newsletter Section - Sub-heading
*/
$wp_customize->add_setting('craftnce_home_newsletter_form_shortcode_setting', array(
'capability' => 'edit_theme_options',
'transport' => 'refresh',
'type' => 'theme_mod',
'sanitize_callback' => 'wp_filter_nohtml_kses'
));
$wp_customize->add_control('craftnce_home_newsletter_form_shortcode_ctrl', array(
'label' => __('Mail subscription form shortcode', 'craftnce'),
'section' => 'craftnce_home_page_newsletter',
'settings' => 'craftnce_home_newsletter_form_shortcode_setting',
'type' => 'textarea'
));

/**
* newsletter Section - background Image
*/
Expand Down
Binary file modified screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Author URI: https://mamurjor.com
Description: Craftnce is developed to make beautiful agency websites for digital business agency, blogs, personal portfolios and it's standing for any kind of websites. It's perfect to manage a agency. It offers a fully responsive layout to be displayed on every kind of device.
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, theme-options, threaded-comments
Version: 1.0.1
Version: 1.0.2
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
Expand Down
17 changes: 6 additions & 11 deletions template-parts/common/section-newsletter.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,12 @@
echo esc_html( get_theme_mod('craftnce_home_newsletter_subtext_setting', 'Get in touch by subscribing here with your') );
?>
</p>

<form action="" method="">
<div class="row">
<div class="container">
<div class="col-md-7 col-lg-5 mx-auto position-relative">
<input type="email" placeholder="Enter Your Email" class="form-control py-3">
<button type="submit" class="btn btn-primary text-uppercase position-absolute top-0 end-0 mt-2 me-2"><i class="far fa-envelope me-2"></i>Subscribe</button>
</div>
</div>
</div>
</form>

<div class="mail-subscription-form">
<?php
echo do_shortcode(get_theme_mod('craftnce_home_newsletter_form_shortcode_setting'));
?>
</div>
</div>
</div>
</section>

0 comments on commit b7d83f2

Please sign in to comment.