PATH:
home
/
niazsaze
/
public_html
/
wp-content
/
plugins
/
flatsome-plus
/
template
/
options
/
new_options
<div class="item p-18 br-bottom"> <span class="title"><?php esc_html_e('فعال کردن تخفیف','flatsomeplus'); ?></span> <p class="des"></p> <div class="btn-select"> <input type="checkbox" class="switch" name="<?php echo fplus_helper::generate_option('[enable_offer_data]'); ?>" <?php echo fplus_helper::show_value('enable_offer_data',false) ? 'checked' : '' ?> > </div> </div> <div class="item p-18 br-bottom"> <span class="title"><?php esc_html_e('تعداد تخفیف','flatsomeplus') ?></span> <p class="des"><?php esc_html_e('چه تعداد از کد تخفیف ها نمایش داده شود؟','flatsomeplus'); ?></p> <div class="inp-rang p-top-18"> <input type="range" class="rang" min="1" max="10" name="<?php echo fplus_helper::generate_option('[show_offer_number]'); ?>" value="<?php fplus_helper::show_value( 'show_offer_number' ); ?>"> <div class="br-radius-8 rang-number d-center"> <span class="num">4</span><span class="text-num"><?php esc_html_e('تعداد','flatsomeplus'); ?></span> </div> </div> </div> <div class="item p-top-18 offer_section"> <span class="title"><?php esc_html_e('کدتخفیف','flatsomeplus') ?></span> <p class="des"><?php esc_html_e('اطلاعات کد تخفیف را تکمیل کنید','flatsomeplus'); ?></p> <div data-repeater-list="<?php echo fplus_helper::generate_option('[offer_section]'); ?>" > <?php foreach( fplus_helper::get_setting( 'offer_section',[ 'default_slider' => [ 'title', 'coupon_cod', 'image', 'description' ] ] ) as $slider ): ?> <?php $img_id = isset( $slider['image'] ) && !empty( $slider['image'] ) ? $slider['image'] : false; $image = ''; if( $img_id ) { $img_src = wp_get_attachment_image_src($img_id,'medium'); if( isset( $img_src[0] ) ) { $image = $img_src[0]; } } ?> <section class="repeater-sections-slider-images add-suggestions m-t-18" data-repeater-item > <div class="br-radius-8 opened"> <div class="suggestion-title"> <span class="suggestion-menu"> <img src="<?php echo FLATSOMEPLUS_ASSET ?>admin/img/dashboard/menu.svg" alt=""> <p><?php esc_html_e('تخفیف جدید','flatsomeplus'); ?></p> </span> <span class="arrow-icon"><img src="<?php echo FLATSOMEPLUS_ASSET ?>admin/img/dashboard/arrow-down2.svg" alt=""></span> </div> <div class="suggestion-content"> <div class="upload-loding"> <?php if( $image ): ?> <div class="upload-loding-img upload_image"> <img class="img-responsive" src="<?php echo esc_url( $image ); ?>" alt="slider"> </div> <div class="upload-loding-btns"> <span class="blue-btn upload-btn upload-image-button"><?php esc_html_e('ویرایش','flatsomeplus') ?></span> <span class="delete-btn remove-image-button"> <img src="<?php echo FLATSOMEPLUS_ASSET ?>admin/img/dashboard/trash.svg" alt=""> </span> </div> <input type="hidden" name="image" id="" class="upload_image_id" value="<?php echo esc_attr( $img_id ); ?>" / > <?php else: ?> <div class="upload-loding-img upload_image"> </div> <div class="upload-loding-btns"> <span class="blue-btn upload-btn upload-image-button"><?php esc_html_e('آپلود','flatsomeplus') ?></span> <span class="delete-btn remove-image-button" style="display: none;"> <img src="<?php echo FLATSOMEPLUS_ASSET ?>admin/img/dashboard/trash.svg" alt="trash"> </span> </div> <input type="hidden" name="image" id="" class="upload_image_id" value="" / > <?php endif; ?> </div> <div class="suggestion-inputs"> <div> <input type="text" name="title_coupon" id="" placeholder="<?php esc_html_e('عنوان کد','flatsomeplus'); ?>" value="<?php echo isset( $slider['title_coupon'] ) && !empty( $slider['title_coupon'] ) ? $slider['title_coupon'] : '' ?>"> </div> <div> <input type="text" name="coupon_code" id="" placeholder="<?php esc_html_e('کد تخفیف','flatsomeplus'); ?>" value="<?php echo isset( $slider['coupon_code'] ) && !empty( $slider['coupon_code'] ) ? $slider['coupon_code'] : '' ?>"> </div> <div> <textarea name="description" placeholder="<?php esc_html_e('توضیحات','flatsomeplus'); ?>" id=""><?php echo isset( $slider['description'] ) && !empty( $slider['description'] ) ? $slider['description'] : '' ?></textarea> </div> </div> </div> <div class="suggestion-btns"> <input class="delete-btn" data-repeater-delete type="button" value="<?php esc_html_e('حذف تخفیف','flatsomeplus') ?>" > </div> </div> </section> <?php endforeach; ?> </div> <input class="add-btn blue-btn m-t-18" style="display:inline-block" data-repeater-create type="button" value="<?php esc_html_e('افزودن تخفیف','flatsomeplus') ?>" > </div>
[-] dashboard_coloring.php
[edit]
[-] otp_code_setting.php
[edit]
[-] captcha.php
[edit]
[-] index.php
[edit]
[-] video.php
[edit]
[-] my_account.php
[edit]
[-] import_demo_myaccount.php
[edit]
[-] sms_panel.php
[edit]
[-] detal_sms.php
[edit]
[-] offer.php
[edit]
[-] login_register.php
[edit]
[-] additional_setting.php
[edit]
[-] order_notif_customer.php
[edit]
[-] notification.php
[edit]
[-] dashboard_width.php
[edit]
[-] seller_info.php
[edit]
[-] order_notif_manager.php
[edit]
[-] factor.php
[edit]
[-] dashboard_font.php
[edit]
[-] order_tracking.php
[edit]
[-] amazing_slider.php
[edit]
[-] ticket.php
[edit]
[+]
..
[-] general.php
[edit]