<footer class="footer">
            <div class="container">
                <div class="row">
                <?php
                if(get_theme_mod( 'charsoogh_footer_menu_show' ) == 'show' || empty(get_theme_mod( 'charsoogh_footer_menu_show' ))):
                  $footer_col = 'col-md-5';
                else:
                  $footer_col = 'col-md-8';
                endif;
                ?>
                    <div class="<?php echo $footer_col; ?>">
                      <div class="brand-sec">
                        <?php if (get_theme_mod( 'charsoogh_footer_logo_show') != 'no') : ?>
                        <a href="<?php echo site_url(); ?>" class="brand">
                            <img src="<?php if (get_theme_mod( 'charsoogh_footer_logo' )) : echo get_theme_mod( 'charsoogh_footer_logo'); else: echo get_template_directory_uri().'/assets/img/logo.png'; endif; ?>" alt="<?php echo get_theme_mod('charsoogh_main_general_title'); ?>">
                        </a>
                      <?php endif; ?>
                      <?php if (get_theme_mod( 'charsoogh_footer_about')) : ?>
                        <p>
                          <?php echo get_theme_mod( 'charsoogh_footer_about'); ?>
                        </p>
                        <?php endif; ?>

                          <?php if (get_theme_mod( 'charsoogh_footer_namad')) : ?>
                            <p class="namad">
                            <?php echo get_theme_mod( 'charsoogh_footer_namad'); ?>
                            </p>
                            <?php endif; ?>
                          </div>
                    </div>
                    <!--end col-md-5-->
                    <?php if(get_theme_mod( 'charsoogh_footer_menu_show' ) == 'show' || empty(get_theme_mod( 'charsoogh_footer_menu_show' ))): ?>
                    <div class="col-md-3">
                        <h2><?php if (get_theme_mod( 'charsoogh_footer_menu_title' )) : echo get_theme_mod( 'charsoogh_footer_menu_title'); else: echo __('Quick access' , 'charsoogh'); endif; ?></h2>
                        <div class="row">
                            <div class="col-md-12 col-sm-12">
                                <nav>
                                  <?php wp_nav_menu( array( 'theme_location' => 'footer-menu','menu_class' => 'list-unstyled' ) ); ?>
                                </nav>
                            </div>
                        </div>
                    </div>
                    <?php endif; ?>
                    <!--end col-md-3-->
                    <div class="col-md-4">
                        <h2><?php if (get_theme_mod( 'charsoogh_footer_contact_title' )) : echo get_theme_mod( 'charsoogh_footer_contact_title'); else: echo __('Contact Us' , 'charsoogh'); endif; ?></h2>
                        <address>
                    <?php if (get_theme_mod( 'charsoogh_footer_address' )) : echo '<figure><i class="fa fa-map-marker" aria-hidden="true"></i> ' . __(get_theme_mod( 'charsoogh_footer_address') , 'charsoogh') . '</figure>'; endif; ?>
                    <?php if (get_theme_mod( 'charsoogh_footer_tell' )) : echo '<p><strong><i class="fa fa-phone" aria-hidden="true"></i> '. __('Phone Number:' , 'charsoogh') .' </strong> ' . __(get_theme_mod( 'charsoogh_footer_tell') , 'charsoogh') . '</p>'; endif; ?>
                    <?php if (get_theme_mod( 'charsoogh_footer_email' )) : echo '<p><strong><i class="fa fa-envelope" aria-hidden="true"></i> '. __('Email:' , 'charsoogh') .' </strong> ' . __(get_theme_mod( 'charsoogh_footer_email') , 'charsoogh') . '</p>'; endif; ?>
                        </address>
                        <div class="row app_download">
                          <?php if (get_theme_mod( 'charsoogh_footer_googleplay' )) : ?>
                          <div class="app_badge">
                            <a href="<?php echo get_theme_mod( 'charsoogh_footer_googleplay' ); ?>">
                            <img src="<?php echo THEMEROOT; ?>/assets/img/google-play-badge.png" alt="google play" />
                            </a>
                          </div>
                          <?php endif; ?>
                          <?php if (get_theme_mod( 'charsoogh_footer_bazaardl' )) : ?>
                          <div class="app_badge">
                            <a href="<?php echo get_theme_mod( 'charsoogh_footer_bazaardl' ); ?>">
                            <img src="<?php echo THEMEROOT; ?>/assets/img/bazaar.png" alt="bazaar" />
                            </a>
                          </div>
                          <?php endif; ?>
                          <?php if (get_theme_mod( 'charsoogh_footer_directdl' )) : ?>
                          <div class="app_badge">
                            <a href="<?php echo get_theme_mod( 'charsoogh_footer_directdl' ); ?>">
                            <img src="<?php echo THEMEROOT; ?>/assets/img/download_app.png" alt="direct download" />
                            </a>
                          </div>
                          <?php endif; ?>
                          <?php if (get_theme_mod( 'charsoogh_footer_anardooni' )) : ?>
                          <div class="app_badge">
                            <a href="<?php echo get_theme_mod( 'charsoogh_footer_anardooni' ); ?>">
                            <img src="<?php echo THEMEROOT; ?>/assets/img/anardooni.png" alt="Anardooni download" />
                            </a>
                          </div>
                          <?php endif; ?>
                        </div>
                    </div>
                    <!--end col-md-4-->
                </div>
                <!--end row-->
                <div class="row cp-footer">
                    <div class="col-lg-6 copyright">
                    <i class="fa fa-copyright" aria-hidden="true"></i>  <?php if (get_theme_mod( 'charsoogh_footer_copyright' )) : echo __(get_theme_mod( 'charsoogh_footer_copyright') , 'charsoogh'); else: echo __('All rights reserved' , 'charsoogh'); endif; ?>
                      </div>
                      <?php if (get_theme_mod( 'charsoogh_social_show') != 'no') : ?>
                      <div class="col-lg-6 social <?php if(is_rtl()): echo 'text-left'; else: echo 'text-right'; endif; ?>">
                        <ul>
                          <?php if (get_theme_mod( 'charsoogh_social_telegram' )) : ?><li><a href="<?php echo get_theme_mod( 'charsoogh_social_telegram') ?>" target="_blank"><i class="fa fa-telegram" aria-hidden="true"></i></a></li><?php endif; ?>
                          <?php if (get_theme_mod( 'charsoogh_social_instagram' )) : ?><li><a href="<?php echo get_theme_mod( 'charsoogh_social_instagram') ?>" target="_blank"><i class="fa fa-instagram" aria-hidden="true"></i></a></li><?php endif; ?>
                          <?php if (get_theme_mod( 'charsoogh_social_facebook' )) : ?><li><a href="<?php echo get_theme_mod( 'charsoogh_social_facebook') ?>" target="_blank"><i class="fa fa-facebook-square" aria-hidden="true"></i></a></li><?php endif; ?>
                          <?php if (get_theme_mod( 'charsoogh_social_twitter' )) : ?><li><a href="<?php echo get_theme_mod( 'charsoogh_social_twitter') ?>" target="_blank"><i class="fa fa-twitter-square" aria-hidden="true"></i></a></li><?php endif; ?>
                          <?php if (get_theme_mod( 'charsoogh_social_whatsapp' )) : ?><li><a href="<?php echo get_theme_mod( 'charsoogh_social_whatsapp') ?>" target="_blank"><i class="fa fa-whatsapp" aria-hidden="true"></i></a></li><?php endif; ?>
                          <?php if (get_theme_mod( 'charsoogh_social_linkedin' )) : ?><li><a href="<?php echo get_theme_mod( 'charsoogh_social_linkedin') ?>" target="_blank"><i class="fa fa-linkedin-square" aria-hidden="true"></i></a></li><?php endif; ?>
                          <?php if (get_theme_mod( 'charsoogh_social_youtube' )) : ?><li><a href="<?php echo get_theme_mod( 'charsoogh_social_youtube') ?>" target="_blank"><i class="fa fa-youtube" aria-hidden="true"></i></a></li><?php endif; ?>
                          <?php if (get_theme_mod( 'charsoogh_social_aparat' )) : ?><li><a href="<?php echo get_theme_mod( 'charsoogh_social_aparat') ?>" target="_blank">
                            <svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="20px" height="20px" viewBox="0 0 512.000000 512.000000" preserveAspectRatio="xMidYMid meet">
                            <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)" stroke="none">
                            <path d="M1570 4615 c-30 -8 -93 -34 -140 -57 -115 -56 -230 -169 -283 -278 -30 -60 -95 -276 -140 -461 -5 -19 32 13 136 116 206 206 402 337 655 440 113 46 334 108 430 121 29 4 51 9 48 11 -2 2 -96 29 -208 60 -182 49 -216 55 -323 59 -86 3 -136 0 -175 -11z"/>
                            <path d="M2388 4349 c-208 -20 -413 -78 -608 -170 -550 -262 -925 -766 -1015 -1365 -19 -128 -19 -390 0 -518 90 -599 465 -1103 1015 -1365 585 -278 1266 -228 1805 134 406 272 672 676 772 1170 26 129 26 511 0 640 -100 494 -366 898 -772 1170 -353 237 -777 344 -1197 304z m-236 -490 c281 -58 464 -349 393 -624 -100 -384 -583 -515 -864 -234 -202 202 -201 511 3 715 129 128 295 179 468 143z m1321 -254 c232 -60 387 -256 387 -489 0 -151 -43 -259 -145 -361 -70 -70 -155 -118 -246 -140 -126 -29 -232 -16 -355 45 -200 98 -315 328 -271 541 23 112 61 183 142 265 105 105 213 151 360 153 39 1 97 -6 128 -14z m-816 -864 c76 -39 123 -112 123 -192 0 -173 -168 -279 -325 -205 -59 27 -77 46 -104 106 -88 193 118 388 306 291z m-776 -241 c30 -5 91 -28 135 -50 200 -98 315 -328 271 -541 -23 -112 -61 -183 -142 -265 -164 -165 -393 -201 -603 -95 -269 136 -358 489 -186 739 115 165 322 249 525 212z m1333 -256 c263 -68 430 -333 375 -596 -29 -137 -148 -293 -269 -351 -207 -100 -442 -63 -597 92 -203 202 -204 520 -3 721 128 127 319 179 494 134z"/>
                            <path d="M3770 4112 c0 -4 20 -22 45 -40 114 -86 289 -279 395 -438 145 -215 259 -502 300 -762 7 -40 14 -71 17 -69 2 3 33 114 69 248 56 214 64 255 64 334 0 177 -65 332 -190 456 -101 99 -191 144 -405 199 -88 23 -190 50 -227 60 -38 10 -68 16 -68 12z"/>
                            <path d="M580 2237 c0 -4 -25 -100 -55 -214 -47 -179 -55 -220 -55 -298 0 -177 65 -332 189 -455 107 -105 179 -140 443 -210 117 -31 215 -55 217 -54 2 2 -9 14 -25 26 -56 43 -237 224 -297 298 -183 225 -325 523 -387 806 -18 85 -30 124 -30 101z"/>
                            <path d="M4095 1319 c-22 -29 -81 -94 -131 -145 -272 -273 -629 -467 -1004 -544 -57 -11 -106 -23 -108 -25 -4 -4 -5 -4 228 -66 307 -82 431 -80 618 12 138 68 261 199 311 335 26 67 133 464 129 476 -2 5 -21 -15 -43 -43z"/>
                            </g>
                            </svg>
                            </a></li>
                          <?php endif; ?>
                        </ul>
                        </div>
                      <?php endif; ?>
                  </div>
            </div>
            <div class="background">
                <div class="background-image original-size" style="background-image: url(<?php bloginfo('template_directory'); ?>/assets/img/footer-background-icons.jpg);">
                    <img src="<?php if (get_theme_mod( 'charsoogh_footer_bg' )) : echo get_theme_mod( 'charsoogh_footer_bg'); else: echo get_template_directory_uri().'/assets/img/footer-background-icons.jpg'; endif; ?>" alt="<?php echo get_theme_mod('charsoogh_main_general_title'); ?>">
                </div>
                <!--end background-image-->
            </div>
            <!--end background-->
</footer>
<?php
if (get_theme_mod( 'charsoogh_footer_menu_show' , 'yes' ) != 'no'){
get_template_part( 'template/footer/footer-menu' );
}
?>
<?php get_template_part( 'template/footer/footer-modals' ); ?>
<?php wp_footer(); ?>
</body>
</html>
