ascvh@#%(^-^)V ?host,ip,port,protocol,title,domain,country,city,link,org ???à JFIF  x x ?? C         ?? C   ?à   " ??     ?? μ  } !1AQa "q2?‘?#B±áR?e$3br? %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz??…???‰?’“”?–—???¢£¤¥|§¨?a23′μ?·?1o??????èéêòó???×?ùúáa?????èéê?òó???÷?ùú??     ?? μ   w !1AQ aq"2?B‘?±á #3Rebr?{ gilour

File "contact-form-7-email-add-on-templates.php"

Full Path: /home/zcziejy/ryadselyen/admin/contact-form-7-email-add-on-templates.php
File size: 16.5 KB
MIME-type: text/x-php
Charset: utf-8

<?php 
	if( isset( $_REQUEST['post'] ) ) {
		$contact_form_id = ( int ) $_REQUEST['post'];
		$chk_cf7ea_admin_template = get_post_meta( $contact_form_id, 'cf7ea_admin_template', true );
		$chk_cf7ea_thank_you_template =	get_post_meta( $contact_form_id, 'cf7ea_thank_you_template', true );
	}
?>
<div class="cf7ea-wrap">
	<div class="cf7ea-title">
		<h2><?php _e( 'Templates For User' ,'cf7-email-add-on' ); ?></h2>
		<div class="export-template">
			<a href="<?php echo esc_url( 'https://www.krishaweb.com/email-templates/' ); ?>" target="blank" class="export"><?php _e( 'Export', 'cf7-email-add-on' ); ?></a>
		</div>
	</div>
	<!-- template list start -->
	<div class="cf7ea-template-list thank_you_templates">
		<ul>
			<!-- Template Start -->
			<li <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'donate-text' ) ): ?> class="cf7ea-template-active" <?php endif; ?>>
				<div class="cf7ea-template-box">
					<div class="lightbox-gallery">
						<a href="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/donate/donate-user-preview.jpg">
							<img src="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/donate/donate-user-preview.jpg">
						</a>
					</div>
					<div class="cf7ea-template-name">
						<div class="custom-control custom-radio">
							<input type="radio" id="donate_text_user" name="cf7ea_thank_you_email" class="cf7ea_email_template custom-control-input" value="donate-text" <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'donate-text' ) ): ?> checked <?php endif; ?>>
							<label class="custom-control-label" for="donate_text_user"><?php _e( 'Donate Text', 'cf7-email-add-on' ); ?></label>
						</div>
					</div>
					<div class="cf7ea-template-overlay">
						<a href="javascript:;" class="selecte_template"><?php _e( 'Select Template', 'cf7-email-add-on' ); ?></a>
					</div>
				</div>
			</li>
		 	<!-- Template End -->

		 	<!-- Template Start -->
			<li <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'interview-box' ) ): ?> class="cf7ea-template-active" <?php endif; ?>>
				<div class="cf7ea-template-box">
					<div class="lightbox-gallery">
						<a href="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/interview/interview-box.png">
							<img src="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/interview/interview-box.png">
						</a>
					</div>
					<div class="cf7ea-template-name">
						<div class="custom-control custom-radio">
							<input type="radio" id="interview_box_user" name="cf7ea_thank_you_email" class="cf7ea_email_template custom-control-input" value="interview-box" <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'interview-box' ) ): ?> checked <?php endif; ?>>
							<label class="custom-control-label" for="interview_box_user"><?php _e( 'Interview Box', 'cf7-email-add-on' ); ?></label>
						</div>
					</div>
					<div class="cf7ea-template-overlay">
						<a href="javascript:;" class="selecte_template"><?php _e( 'Select Template', 'cf7-email-add-on' ); ?></a>
					</div>
				</div>
			</li>
		 	<!-- Template End -->

		 	<!-- Template Start -->
			<li <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'meeting' ) ): ?> class="cf7ea-template-active" <?php endif; ?>>
				<div class="cf7ea-template-box">
					<div class="lightbox-gallery">
						<a href="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/meeting/user-preview.jpg">
							<img src="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/meeting/user-preview.jpg">
						</a>
					</div>
					<div class="cf7ea-template-name">
						<div class="custom-control custom-radio">
							<input type="radio" id="meeting_user" name="cf7ea_thank_you_email" class="cf7ea_email_template custom-control-input" value="meeting" <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'meeting' ) ): ?> checked <?php endif; ?>>
							<label class="custom-control-label" for="meeting_user"><?php _e( 'Meeting', 'cf7-email-add-on' ); ?></label>
						</div>
					</div>
					<div class="cf7ea-template-overlay">
						<a href="javascript:;" class="selecte_template"><?php _e( 'Select Template', 'cf7-email-add-on' ); ?></a>
					</div>
				</div>
			</li>
		 	<!-- Template End -->

		 	<!-- Template Start -->
			<li <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'gradient' ) ): ?> class="cf7ea-template-active" <?php endif; ?>>
				<div class="cf7ea-template-box">
					<div class="lightbox-gallery">
						<a href="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/gradient-user.jpg">
							<img src="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/gradient-user.jpg">
						</a>
					</div>
					<div class="cf7ea-template-name">
						<div class="custom-control custom-radio">
							<input type="radio" id="gradient" name="cf7ea_thank_you_email" class="cf7ea_email_template custom-control-input" value="gradient" <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'gradient' ) ): ?> checked <?php endif; ?>>
							<label class="custom-control-label" for="gradient"><?php _e( 'Gradient', 'cf7-email-add-on' ); ?></label>
						</div>
					</div>
					<div class="cf7ea-template-overlay">
						<a href="javascript:;" class="selecte_template"><?php _e( 'Select Template', 'cf7-email-add-on' ); ?></a>
					</div>
				</div>
			</li>
		 	<!-- Template End -->

		 	<!-- Template Start -->
			<li <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'purple-moon' ) ): ?> class="cf7ea-template-active" <?php endif; ?>>
				<div class="cf7ea-template-box">
					<div class="lightbox-gallery">
						<a href="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/purple-moon/user.jpg">
							<img src="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/purple-moon/user.jpg">
						</a>
					</div>
					<div class="cf7ea-template-name">
						<div class="custom-control custom-radio">
							<input type="radio" id="purple_moon_user" name="cf7ea_thank_you_email" class="cf7ea_email_template custom-control-input" value="purple-moon" <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'purple-moon' ) ): ?> checked <?php endif; ?>>
							<label class="custom-control-label" for="purple_moon_user"><?php _e( 'Purple Moon', 'cf7-email-add-on' ); ?></label>
						</div>
					</div>
					<div class="cf7ea-template-overlay">
						<a href="javascript:;" class="selecte_template"><?php _e( 'Select Template', 'cf7-email-add-on' ); ?></a>
					</div>
				</div>
			</li>
		 	<!-- Template End -->
		 	
			<!-- template start -->
			<li <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'space' ) ): ?> class="cf7ea-template-active" <?php endif; ?>>
				<div class="cf7ea-template-box">
					<div class="lightbox-gallery">
						<a href="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/space-preview-user.jpg">
							<img src="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/space-preview-user.jpg">
						</a>
					</div>
					<div class="cf7ea-template-name">
						<div class="custom-control custom-radio">
							<input type="radio" id="tyradio1" name="cf7ea_thank_you_email" class="cf7ea_email_template custom-control-input" value="space" <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'space' ) ): ?> checked <?php endif; ?>>
							<label class="custom-control-label" for="tyradio1"><?php _e( 'Space', 'cf7-email-add-on'); ?></label>
						</div>
					</div>
					<div class="cf7ea-template-overlay">
						<a href="javascript:;" class="selecte_template"><?php _e( 'Select Template', 'cf7-email-add-on'); ?></a>
					</div>
				</div>
			</li>
			<!-- template end -->
			<!-- template start -->
			<li <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'default' ) ): ?> class="cf7ea-template-active" <?php endif; ?>>
				<div class="cf7ea-template-box">
					<div class="lightbox-gallery">
						<a href="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/default-preview-user.jpg">
							<img src="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/default-preview-user.jpg">
						</a>
					</div>
					<div class="cf7ea-template-name">
						<div class="custom-control custom-radio">
							<input type="radio" id="tyradio2" name="cf7ea_thank_you_email" class="cf7ea_email_template custom-control-input" value="default" <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'default' ) ): ?> checked <?php endif; ?>>
							<label class="custom-control-label" for="tyradio2"><?php _e( 'Default', 'cf7-email-add-on' ); ?></label>
						</div>
					</div>
					<div class="cf7ea-template-overlay">
						<a href="javascript:;" class="selecte_template"><?php _e( 'Select Template', 'cf7-email-add-on' ); ?></a>
					</div>
				</div>
			</li>
			<!-- template end -->
			<!-- Template Start -->
			<li <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'typewriter' ) ): ?> class="cf7ea-template-active" <?php endif; ?>>
				<div class="cf7ea-template-box">
					<div class="lightbox-gallery">
						<a href="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/typewriter-preview-user.jpg">
							<img src="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/typewriter-preview-user.jpg">
						</a>
					</div>
					<div class="cf7ea-template-name">
						<div class="custom-control custom-radio">
							<input type="radio" id="tyradio3" name="cf7ea_thank_you_email" class="cf7ea_email_template custom-control-input" value="typewriter" <?php if ( ! empty( $chk_cf7ea_thank_you_template ) && ( $chk_cf7ea_thank_you_template == 'typewriter' ) ): ?> checked <?php endif; ?>>
							<label class="custom-control-label" for="tyradio3"><?php _e( 'Typewriter', 'cf7-email-add-on' ); ?></label>
						</div>
					</div>
					<div class="cf7ea-template-overlay">
						<a href="javascript:;" class="selecte_template"><?php _e( 'Select Template', 'cf7-email-add-on' ); ?></a>
					</div>
				</div>
			</li>
		 	<!-- Template End -->

		</ul>
	</div>
	<!-- template list end -->
	<div class="cf7ea-title">
		 <h2><?php _e( 'Templates For Admin', 'cf7-email-add-on' ); ?></h2>
		 <div class="export-template">
			<a href="<?php echo esc_url( 'https://www.krishaweb.com/email-templates/' ); ?>" target="blank" class="export"><?php _e( 'Export', 'cf7-email-add-on' ); ?></a>
		</div>
	</div>
	<!-- template list start -->
	<div class="cf7ea-template-list admin_templates">
		<ul>
			<!-- template start -->
			<li <?php if ( ! empty( $chk_cf7ea_admin_template ) && ( $chk_cf7ea_admin_template == 'gradient' ) ): ?> class="cf7ea-template-active" <?php endif; ?>>
				<div class="cf7ea-template-box">
					<div class="lightbox-gallery">
						<a href="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/gradient-admin.jpg">
							<img src="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/gradient-admin.jpg">
						</a>
					</div>
					<div class="cf7ea-template-name">
						<div class="custom-control custom-radio">
							<input type="radio" id="gradient_admin" name="cf7ea_admin_email" class="cf7ea_email_template custom-control-input" value="gradient" <?php if ( ! empty( $chk_cf7ea_admin_template ) && ( $chk_cf7ea_admin_template == 'gradient' ) ): ?> checked <?php endif; ?>>
							<label class="custom-control-label" for="gradient_admin"><?php _e( 'Gradient', 'cf7-email-add-on' ); ?></label>
						</div>
					</div>
					<div class="cf7ea-template-overlay">
						<a href="javascript:;" class="selecte_template"><?php _e( 'Select Template', 'cf7-email-add-on' ); ?></a>
					</div>
				</div>
			</li>
			<!-- template end -->

			<!-- template start -->
			<li <?php if ( ! empty( $chk_cf7ea_admin_template ) && ( $chk_cf7ea_admin_template == 'purple-moon' ) ): ?> class="cf7ea-template-active" <?php endif; ?>>
				<div class="cf7ea-template-box">
					<div class="lightbox-gallery">
						<a href="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/purple-moon/admin.jpg">
							<img src="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/purple-moon/admin.jpg">
						</a>
					</div>
					<div class="cf7ea-template-name">
						<div class="custom-control custom-radio">
							<input type="radio" id="purple_moon_admin" name="cf7ea_admin_email" class="cf7ea_email_template custom-control-input" value="purple-moon" <?php if ( ! empty( $chk_cf7ea_admin_template ) && ( $chk_cf7ea_admin_template == 'purple-moon' ) ): ?> checked <?php endif; ?>>
							<label class="custom-control-label" for="purple_moon_admin"><?php _e( 'Purple Moon', 'cf7-email-add-on' ); ?></label>
						</div>
					</div>
					<div class="cf7ea-template-overlay">
						<a href="javascript:;" class="selecte_template"><?php _e( 'Select Template', 'cf7-email-add-on' ); ?></a>
					</div>
				</div>
			</li>
			<!-- template end -->

			<!-- template start -->
			<li <?php if ( ! empty( $chk_cf7ea_admin_template ) && ( $chk_cf7ea_admin_template == 'space' ) ) : ?> class="cf7ea-template-active" <?php endif; ?>>
				<div class="cf7ea-template-box">
					<div class="lightbox-gallery">
						<a href="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/space-preview-admin.jpg">
							<img src="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/space-preview-admin.jpg">
						</a>
					</div>
					<div class="cf7ea-template-name">
						<div class="custom-control custom-radio">
							<input type="radio" name="cf7ea_admin_email" id="customRadio1"  class="cf7ea_email_template custom-control-input" value="space" <?php if ( ! empty( $chk_cf7ea_admin_template ) && ( $chk_cf7ea_admin_template == 'space' ) ): ?> checked <?php endif; ?>>
							<label class="custom-control-label" for="customRadio1"><?php _e( 'Space', 'cf7-email-add-on' ); ?></label>
						</div>
					</div>
					<div class="cf7ea-template-overlay">
						<a href="javascript:;" class="selecte_template"><?php _e( 'Select Template', 'cf7-email-add-on' ); ?></a>
					</div>
				</div>
			</li>
			<!-- template end -->
			<!-- template start -->
			<li <?php if ( ! empty( $chk_cf7ea_admin_template ) && ( $chk_cf7ea_admin_template == 'default' ) ) : ?> class="cf7ea-template-active" <?php endif; ?>>
				<div class="cf7ea-template-box">
					<div class="lightbox-gallery">
						<a href="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/default-preview-admin.jpg">
							<img src="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/default-preview-admin.jpg">
						</a>
					</div>
					<div class="cf7ea-template-name">
						<div class="custom-control custom-radio">
							<input type="radio" id="customRadio2" name="cf7ea_admin_email" class="cf7ea_email_template custom-control-input" value="default" <?php if ( ! empty( $chk_cf7ea_admin_template ) && ( $chk_cf7ea_admin_template == 'default' ) ): ?> checked <?php endif; ?>>
							<label class="custom-control-label" for="customRadio2"><?php _e( 'Default', 'cf7-email-add-on' ); ?></label>
						</div>
					</div>
					<div class="cf7ea-template-overlay">
						<a href="javascript:;" class="selecte_template"><?php _e( 'Select Template', 'cf7-email-add-on' ); ?></a>
					</div>
				</div>
			</li>
			<!-- template end -->

			<!-- template start -->
			<li <?php if ( ! empty( $chk_cf7ea_admin_template ) && ( $chk_cf7ea_admin_template == 'typewriter' ) ): ?> class="cf7ea-template-active" <?php endif; ?>>
				<div class="cf7ea-template-box">
					<div class="lightbox-gallery">
						<a href="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/typewriter-preview-admin.jpg">
							<img src="<?php echo plugin_dir_url( __FILE__ ); ?>assets/images/typewriter-preview-admin.jpg">
						</a>
					</div>
					<div class="cf7ea-template-name">
						<div class="custom-control custom-radio">
							<input type="radio" id="customRadio3" name="cf7ea_admin_email" class="cf7ea_email_template custom-control-input" value="typewriter" <?php if ( ! empty( $chk_cf7ea_admin_template ) && ( $chk_cf7ea_admin_template == 'typewriter' ) ): ?> checked <?php endif; ?>>
							<label class="custom-control-label" for="customRadio3"><?php _e( 'Typewriter', 'cf7-email-add-on' ); ?></label>
						</div>
					</div>
					<div class="cf7ea-template-overlay">
						<a href="javascript:;" class="selecte_template"><?php _e( 'Select Template', 'cf7-email-add-on' ); ?></a>
					</div>
				</div>
			</li>
			<!-- template end -->
		</ul>
	</div>
	<!-- Template list end -->
	<div id="cf7-email-preview" style="display: none;">
		<img src="" alt="preview" width="auto" height="500px">
	</div>
	<?php require_once 'shortcode-list.php'; ?>
</div>