Skip to content

Commit

Permalink
enqueued style css fixed and kirki sections added display control
Browse files Browse the repository at this point in the history
  • Loading branch information
ashrafbd1496 committed Jan 24, 2022
1 parent 8e139e6 commit 8f09d1c
Show file tree
Hide file tree
Showing 17 changed files with 167 additions and 23 deletions.
Binary file added assets/img/kalama-dorshon.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/krused1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/risalahshop-hero.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/risalahshop-logo250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/riviver-heart.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/img/soytaner-biruddhe-lorai.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,17 @@ function simpleshop_widgets_init() {

function simpleshop_assets(){

//Enqueue Style

wp_enqueue_style('google-fonts','//fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,900');
wp_enqueue_style('bootstrap-css',get_theme_file_uri('/assets/vendor/bootstrap/css/bootstrap.min.css'));
wp_enqueue_style('fontawesome-css',get_theme_file_uri('/assets/vendor/font-awesome/css/font-awesome.min.css'));
wp_enqueue_style('bicon-css',get_theme_file_uri('/assets/vendor/bicon/css/bicon.css'));
wp_enqueue_style('simpleshop-theme-css',get_theme_file_uri('/assets/css/main.css'),null,time());
wp_enqueue_style('simpleshop-css',get_stylesheet_uri());
//wp_enqueue_style('simpleshop-css',get_stylesheet_uri());
wp_enqueue_style('style', get_stylesheet_uri(), null, time());

//Enqueue Scripts

wp_enqueue_script('bootstrap-js',get_theme_file_uri('/assets/vendor/bootstrap/js/bootstrap.min.js'),['jquery'],'default',true);
wp_enqueue_script('popper-js',get_theme_file_uri('/assets/vendor/popper.min.js'),['jquery'],'default',true);
Expand Down
2 changes: 1 addition & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<nav class="navbar navbar-expand-lg mainmenu">
<!--logo-->
<a class="navbar-brand mr-5 text-dark float-left" href="index.html">
<img class="" src="<?php echo get_template_directory_uri(); ?>/assets/img/logo.png" srcset="<?php echo get_template_directory_uri(); ?>/assets/img/logo@2x.png 2x" alt=""/>
<img class="" src="<?php echo get_template_directory_uri(); ?>/assets/img/risalahshop-logo250.png" srcset="<?php echo get_template_directory_uri(); ?>/assets/img/risalahshop-logo250.png 2x" alt=""/>
</a>
<!--logo-->

Expand Down
110 changes: 107 additions & 3 deletions inc/customizer/customizer-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
'description' => esc_html__( 'SimpleShop Settings', 'simpleshop' ),
) );

//Homepage section
Kirki::add_section( 'simpleshop_homepage', array(
'title' => esc_html__( 'Homepage Settings', 'kirki' ),
'panel' => SIMPLESHOP_CUSTOMIZER_PANEL_ID,
Expand All @@ -24,12 +25,115 @@
},
) );

//Banner Section Show Hide
Kirki::add_field(SIMPLESHOP_CUSTOMIZER_CONFIG_ID,
[
'type' => 'switch',
'settings' => 'banner_display_setting',
'label' => esc_html__( 'Display Banner Secton', 'simpleshop' ),
'description' => esc_html__( 'Display Banner control', 'simpleshop' ),
'section' => 'simpleshop_homepage',
'default' => 'on',
'choices' => [
'on' => esc_html__( 'Enable', 'simpleshop' ),
'off' => esc_html__( 'Disable', 'simpleshop' ),
],
]
);

//Banner Title
Kirki::add_field( SIMPLESHOP_CUSTOMIZER_CONFIG_ID, [
'type' => 'text',
'settings' => 'banner_title_setting',
'label' => esc_html__( 'Banner Title', 'simpleshop' ),
'section' => 'simpleshop_homepage',
'default' => esc_html__( 'সততা। সহজতা। বিশ্বস্ততা।', 'simpleshop' ),
'priority' => 10,
] );

//Banner Section Link
Kirki::add_field( SIMPLESHOP_CUSTOMIZER_CONFIG_ID, [
'type' => 'link',
'settings' => 'banner_link_setting',
'label' => esc_html__( 'Banner Link', 'simpleshop' ),
'section' => 'simpleshop_homepage',
'default' => esc_html__( 'https://simpleshop.ashrafbd.com', 'simpleshop' ),
'priority' => 10,
] );

//Banner Section Link Text
Kirki::add_field( SIMPLESHOP_CUSTOMIZER_CONFIG_ID, [
'type' => 'text',
'settings' => 'banner_link_text_setting',
'label' => esc_html__( 'Banner Link Text', 'simpleshop' ),
'section' => 'simpleshop_homepage',
'default' => esc_html__( 'বই কিনুন', 'simpleshop' ),
'priority' => 10,
] );

//Product Category Section Show Hide
Kirki::add_field(SIMPLESHOP_CUSTOMIZER_CONFIG_ID,
[
'type' => 'switch',
'settings' => 'pcat_display_setting',
'label' => esc_html__( 'Display Product Category Secton', 'simpleshop' ),
'section' => 'simpleshop_homepage',
'default' => 'on',
'choices' => [
'on' => esc_html__( 'Enable', 'simpleshop' ),
'off' => esc_html__( 'Disable', 'simpleshop' ),
],
]
);

//Product Category Ttile
Kirki::add_field( SIMPLESHOP_CUSTOMIZER_CONFIG_ID, [
'type' => 'text',
'settings' => 'my_setting',
'label' => esc_html__( 'Text Control', 'simpleshop' ),
'settings' => 'pcat_title_setting',
'label' => esc_html__( 'Product Categroy Title', 'simpleshop' ),
'section' => 'simpleshop_homepage',
'default' => esc_html__( 'This is a default value', 'simpleshop' ),
'default' => esc_html__( 'Shop By Category', 'simpleshop' ),
'priority' => 10,
] );

//Products Section Show Hide
Kirki::add_field(SIMPLESHOP_CUSTOMIZER_CONFIG_ID,
[
'type' => 'switch',
'settings' => 'product_display_setting',
'label' => esc_html__( 'Display Products Secton', 'simpleshop' ),
'section' => 'simpleshop_homepage',
'default' => 'on',
'choices' => [
'on' => esc_html__( 'Enable', 'simpleshop' ),
'off' => esc_html__( 'Disable', 'simpleshop' ),
],
]
);

//Product sectoion Ttile
Kirki::add_field( SIMPLESHOP_CUSTOMIZER_CONFIG_ID, [
'type' => 'text',
'settings' => 'products_title_setting',
'label' => esc_html__( 'Product Section Title', 'simpleshop' ),
'section' => 'simpleshop_homepage',
'default' => esc_html__( 'New Arrival', 'simpleshop' ),
'priority' => 10,
] );

//Product Section Sub Ttile
Kirki::add_field( SIMPLESHOP_CUSTOMIZER_CONFIG_ID, [
'type' => 'text',
'settings' => 'products_subtitle_setting',
'label' => esc_html__( 'Product Section Sub Title', 'simpleshop' ),
'section' => 'simpleshop_homepage',
'default' => esc_html__( '37 New fashion products arrived recently in our showroom for this winter', 'simpleshop' ),
'priority' => 10,
] );






}
24 changes: 24 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,30 @@ License URI: LICENSE
Text Domain: simpleshop
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready, right-sidebar, custom-background, e-commerce, theme-options, sticky-post, full-width-template
*/


h1.hero-title {
color: #fff;
}

.hero .hero-content .hero-link{
color: #fff !important;
}
a.hero-link:hover {
color: #4D0F05 !important;
}












/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
Expand Down
6 changes: 4 additions & 2 deletions template-parts/common/flickr.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( true == get_theme_mod( 'banner_diplay_setting', 'on' ) ) : ?>
<!--flickr section start-->
<section class="">
<div class="container">
Expand All @@ -11,11 +12,12 @@
</div>
<div class="flickr-list">
<a href="#" style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/img/s1.jpg')"></a>
<a href="#" style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/img/sb.jpg')"></a>
<a href="#" style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/img/kalama-dorshon.jpg')"></a>
<a href="#" style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/img/s2.jpg')"></a>
<a href="#" style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/img/s3.jpg')"></a>
<a href="#" style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/img/s4.jpg')"></a>
<a href="#" style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/img/s5.jpg')"></a>
</div>
</section>
<!-- flickr section end-->
<!-- flickr section end-->
<?php endif; ?>
2 changes: 2 additions & 0 deletions template-parts/common/offer.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( true == get_theme_mod( 'banner_diplay_setting', 'on' ) ) : ?>
<!--offer section start-->
<section class="space-3 space-adjust">
<div class="container ">
Expand Down Expand Up @@ -27,3 +28,4 @@
</div>
</section>
<!--offer section end-->
<?php endif; ?>
12 changes: 6 additions & 6 deletions template-parts/homepage/banner.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@

<?php if ( true == get_theme_mod( 'banner_display_setting', 'on' ) ) : ?>
<!--hero section start-->
<div id="home">
<section class="hero js_full_height base-gradient- " style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/img/hero.jpg');">
<section class="hero js_full_height base-gradient- " style="background-image: url('<?php echo get_template_directory_uri(); ?>/assets/img/risalahshop-hero.jpg');">
<div class="hero-content">
<div class="container">
<div class="row">
<div class="col-md-5" data-wow-duration="2s" data-wow-delay="1s">
<h1 class="hero-title">Olive color winter jacket
for ladies
<h1 class="hero-title"><?php echo esc_html(get_theme_mod('banner_title_setting')); ?>
</h1>
<a href="#" class="hero-link">Winter Fashion</a>
<a href="<?php echo esc_url(get_theme_mod('banner_link_setting')); ?>" class="hero-link"><?php echo esc_html(get_theme_mod('banner_link_text_setting')); ?></a>
</div>
</div>
</div>
</div>
</section>
</div>
<!--hero section end-->
<!--hero section end-->
<?php endif; ?>
7 changes: 4 additions & 3 deletions template-parts/homepage/popular-product.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

<?php if ( true == get_theme_mod( 'banner_diplay_setting', 'on' ) ) : ?>
<!--product section start-->
<section class="space-3">
<div class="container">
Expand Down Expand Up @@ -59,7 +59,7 @@
<li class="product last">
<div class="product-wrap">
<a href="#" class="">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/p12.jpg" alt="">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/kalama-dorshon.jpg" alt="">
</a>
<a href="#" class="button product_type_simple add_to_cart_button ajax_add_to_cart">
<i class="fa fa-shopping-basket"></i>
Expand All @@ -83,4 +83,5 @@
</div>
</div>
</section>
<!-- product section end-->
<!-- product section end-->
<?php endif; ?>
4 changes: 3 additions & 1 deletion template-parts/homepage/product-category.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( true == get_theme_mod( 'banner_diplay_setting', 'on' ) ) : ?>
<!--shop category start-->
<section class="space-3">
<div class="container sm-center">
Expand All @@ -14,4 +15,5 @@
</div>
</div>
</section>
<!--shop category end-->
<!--shop category end-->
<?php endif; ?>
10 changes: 6 additions & 4 deletions template-parts/homepage/products.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if ( true == get_theme_mod( 'banner_diplay_setting', 'on' ) ) : ?>
<!--product section start-->
<section class="space-3 space-adjust">
<div class="container">
Expand All @@ -19,7 +20,7 @@
<li class="product type-product post-17 status-publish instock product_cat-accessories has-post-thumbnail sale featured shipping-taxable purchasable product-type-simple">
<div class="product-wrap">
<a href="#" class="">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/p1.jpg" alt="">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/riviver-heart.jpg" alt="">
</a>
<a href="#" class="button product_type_simple add_to_cart_button ajax_add_to_cart">
<i class="fa fa-shopping-basket"></i>
Expand Down Expand Up @@ -51,7 +52,7 @@
<li class="product">
<div class="product-wrap">
<a href="#" class="">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/p2.jpg" alt="">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/krused1.png" alt="">
</a>
<a href="#" class="button product_type_simple add_to_cart_button ajax_add_to_cart">
<i class="fa fa-shopping-basket"></i>
Expand All @@ -72,7 +73,7 @@
<li class="product last">
<div class="product-wrap">
<a href="#" class="">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/p3.jpg" alt="">
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/soytaner-biruddhe-lorai.jpg" alt="">
</a>
<a href="#" class="button product_type_simple add_to_cart_button ajax_add_to_cart">
<i class="fa fa-shopping-basket"></i>
Expand Down Expand Up @@ -239,4 +240,5 @@
</div>
</div>
</section>
<!-- product section end-->
<!-- product section end-->
<?php endif; ?>
6 changes: 4 additions & 2 deletions template-parts/homepage/promo.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<?php if ( true == get_theme_mod( 'banner_diplay_setting', 'on' ) ) : ?>
<!--promo section start-->
<section>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="promo-box space-3">
<div class="promo-img rounded bg-overlay" data-overlay="1"
style="background-image: url(<?php echo get_template_directory_uri(); ?>/assets/img/sb.jpg);"></div>
style="background-image: url(<?php echo get_template_directory_uri(); ?>/assets/img/kalama-dorshon.jpg);"></div>
<div class="container">
<div class="row justify-content-center align-items-center text-center">
<div class="col-md-8">
Expand All @@ -25,4 +26,5 @@
</div>
</div>
</section>
<!--promo section end-->
<!--promo section end-->
<?php endif; ?>

0 comments on commit 8f09d1c

Please sign in to comment.