<?php /* Smarty version 2.6.26, created on 2017-04-22 16:13:59
         compiled from /home3/bargaip4/public_html/gevimmo/plugins/iFlynaxConnect/admin/iflynax_settings.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'replace', '/home3/bargaip4/public_html/gevimmo/plugins/iFlynaxConnect/admin/iflynax_settings.tpl', 23, false),)), $this); ?>
<!-- iflynax common settings -->

<form method="post" action="<?php echo $this->_tpl_vars['rlBase']; ?>
index.php?controller=<?php echo $this->_tpl_vars['cInfo']['Controller']; ?>
">
	<input name="submit" value="1" type="hidden" />

	<table class="form">
	<?php $_from = $this->_tpl_vars['configs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['configF'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['configF']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['configItem']):
        $this->_foreach['configF']['iteration']++;
?>
	<tr class="<?php if ($this->_foreach['configF']['iteration']%2 != 0 && $this->_tpl_vars['configItem']['Type'] != 'divider'): ?>highlight<?php endif; ?>">
		<?php if ($this->_tpl_vars['configItem']['Type'] == 'divider'): ?>
			<td class="divider_line" colspan="2">
				<div class="inner"><?php echo $this->_tpl_vars['configItem']['name']; ?>
</div>
			</td>
		<?php else: ?>
			<td class="name" style="width: 210px;"><?php echo $this->_tpl_vars['configItem']['name']; ?>
</td>
			<td class="field">
				<div class="inner_margin">
					<?php if ($this->_tpl_vars['configItem']['Data_type'] == 'int'): ?><input class="text" type="hidden" name="config[<?php echo $this->_tpl_vars['configItem']['Key']; ?>
][d_type]" value="<?php echo $this->_tpl_vars['configItem']['Data_type']; ?>
" /><?php endif; ?>
					<input class="text" type="hidden" name="config[<?php echo $this->_tpl_vars['configItem']['Key']; ?>
][value]" value="<?php echo $this->_tpl_vars['configItem']['Default']; ?>
" />
					
					<?php if ($this->_tpl_vars['configItem']['Type'] == 'text'): ?>
						<input class="text <?php if ($this->_tpl_vars['configItem']['Data_type'] == 'int'): ?>numeric<?php endif; ?>" type="text" name="config[<?php echo $this->_tpl_vars['configItem']['Key']; ?>
][value]" value="<?php echo $this->_tpl_vars['configItem']['Default']; ?>
" style="float: left;" />
					<?php elseif ($this->_tpl_vars['configItem']['Type'] == 'textarea'): ?>
						<textarea cols="5" rows="5" class="<?php if ($this->_tpl_vars['configItem']['Data_type'] == 'int'): ?>numeric<?php endif; ?>" name="config[<?php echo $this->_tpl_vars['configItem']['Key']; ?>
][value]"><?php echo ((is_array($_tmp=$this->_tpl_vars['configItem']['Default'])) ? $this->_run_mod_handler('replace', true, $_tmp, '\r\n', @PHP_EOL) : smarty_modifier_replace($_tmp, '\r\n', @PHP_EOL)); ?>
</textarea>
					<?php elseif ($this->_tpl_vars['configItem']['Type'] == 'bool'): ?>
						<div style="width: 212px;float: left;">
							<input <?php if ($this->_tpl_vars['configItem']['Default'] == 1): ?>checked="checked"<?php endif; ?> type="radio" id="<?php echo $this->_tpl_vars['configItem']['Key']; ?>
_1" name="config[<?php echo $this->_tpl_vars['configItem']['Key']; ?>
][value]" value="1" /> 
							<label for="<?php echo $this->_tpl_vars['configItem']['Key']; ?>
_1"><?php echo $this->_tpl_vars['lang']['enabled']; ?>
</label>

							<input <?php if ($this->_tpl_vars['configItem']['Default'] == 0): ?>checked="checked"<?php endif; ?> type="radio" id="<?php echo $this->_tpl_vars['configItem']['Key']; ?>
_0" name="config[<?php echo $this->_tpl_vars['configItem']['Key']; ?>
][value]" value="0" /> 
							<label for="<?php echo $this->_tpl_vars['configItem']['Key']; ?>
_0"><?php echo $this->_tpl_vars['lang']['disabled']; ?>
</label>
						</div>
					<?php elseif ($this->_tpl_vars['configItem']['Type'] == 'select'): ?>
						<select style="width: 204px;" name="config[<?php echo $this->_tpl_vars['configItem']['Key']; ?>
][value]" 
							<?php $_from = $this->_tpl_vars['configItem']['Values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['sForeach'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['sForeach']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['sValue']):
        $this->_foreach['sForeach']['iteration']++;
?>
								<?php if (($this->_foreach['sForeach']['iteration'] <= 1)): ?>
									<?php if ($this->_foreach['sForeach']['total'] <= '1'): ?> class="disabled" disabled="disabled"<?php endif; ?>
								>
									<?php if (is_array ( $this->_tpl_vars['sValue'] ) && ! $this->_tpl_vars['sValue']['required']): ?><option value=""><?php echo $this->_tpl_vars['lang']['select']; ?>
</option><?php endif; ?>
								<?php endif; ?>
								<option value="<?php if (is_array ( $this->_tpl_vars['sValue'] )): ?><?php echo $this->_tpl_vars['sValue']['ID']; ?>
<?php else: ?><?php echo $this->_tpl_vars['sValue']; ?>
<?php endif; ?>" <?php if (is_array ( $this->_tpl_vars['sValue'] )): ?><?php if ($this->_tpl_vars['configItem']['Default'] == $this->_tpl_vars['sValue']['ID']): ?>selected="selected"<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['sValue'] == $this->_tpl_vars['configItem']['Default']): ?>selected="selected"<?php endif; ?><?php endif; ?>><?php if (is_array ( $this->_tpl_vars['sValue'] )): ?><?php echo $this->_tpl_vars['sValue']['name']; ?>
<?php else: ?><?php echo $this->_tpl_vars['sValue']; ?>
<?php endif; ?></option>
							<?php endforeach; endif; unset($_from); ?>
						</select>
					<?php elseif ($this->_tpl_vars['configItem']['Type'] == 'radio'): ?>
						<?php $this->assign('displayItem', $this->_tpl_vars['configItem']['Display']); ?>
						<?php $_from = $this->_tpl_vars['configItem']['Values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['rForeach'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['rForeach']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['rKey'] => $this->_tpl_vars['rValue']):
        $this->_foreach['rForeach']['iteration']++;
?>
							<input id="radio_<?php echo $this->_tpl_vars['configItem']['Key']; ?>
_<?php echo $this->_tpl_vars['rKey']; ?>
" <?php if ($this->_tpl_vars['rValue'] == $this->_tpl_vars['configItem']['Default']): ?>checked="checked"<?php endif; ?> type="radio" value="<?php echo $this->_tpl_vars['rValue']; ?>
" name="config[<?php echo $this->_tpl_vars['configItem']['Key']; ?>
][value]" /><label for="radio_<?php echo $this->_tpl_vars['configItem']['Key']; ?>
_<?php echo $this->_tpl_vars['rKey']; ?>
">&nbsp;<?php echo $this->_tpl_vars['displayItem'][$this->_tpl_vars['rKey']]; ?>
&nbsp;&nbsp;</label>
						<?php endforeach; endif; unset($_from); ?>
					<?php else: ?>
						<?php echo $this->_tpl_vars['configItem']['Default']; ?>

					<?php endif; ?>

					<?php if ($this->_tpl_vars['configItem']['des'] != ''): ?>
						<span style="<?php if ($this->_tpl_vars['configItem']['Type'] == 'textarea'): ?>line-height: 10px;<?php elseif ($this->_tpl_vars['configItem']['Type'] == 'bool'): ?>line-height: 14px;margin: 0 10px;<?php endif; ?>" class="settings_desc"><?php echo $this->_tpl_vars['configItem']['des']; ?>
</span>
					<?php endif; ?>

                    <span class="settings_desc" style="display:block;line-height:20px;padding:0px 0 10px 20px;overflow:hidden;">
					<?php if ($this->_tpl_vars['configItem']['Key'] == 'iflynax_promote_app'): ?>
						Safari has a new Smart App Banner feature in iOS 6 and later that provides a standardized method of promoting apps on the App Store from a website
					<?php elseif ($this->_tpl_vars['configItem']['Key'] == 'iflynax_app_store_id'): ?>
						You can find your app <b>App ID</b> from the <a target="_blank" href='http://itunes.apple.com/linkmaker'>iTunes Link Maker</a>,
						type the name of your app in the Search field, and select the appropriate country and media type.
						In the results, find your app and select <u>iPhone App Link</u> in the column on the right.
						Your app ID is the nine-digit number in between <b>id</b> and <b>?mt</b>.
					<?php elseif ($this->_tpl_vars['configItem']['Key'] == 'iflynax_affiliate_data'): ?>
						Your iTunes affiliate string, if you are an iTunes affiliate.
						If you are not, find out more about becoming an <a target="_blank" href="http://www.apple.com/itunes/affiliates/">iTunes affiliate</a>.
                    <?php elseif ($this->_tpl_vars['configItem']['Key'] == 'iflynax_inapp_module'): ?>
                        <p>1. Go to <a target="_blank" href="https://itunesconnect.apple.com">iTunes Connect</a> and sign in with your Apple ID account.</p>
                        <p>2. Click <b>My Apps</b> and select your App; next click <b>Features</b> tab in the top.</p>
                        <p>3. Click <b>(+)</b> button at <b>In-App Purchases</b>.</p>
                        <p>4. Select Type <b>Consumable</b>.</p>
                        <p>5. Enter a reference name and a product ID for this In-App Purchase.<br />
                            <b>NOTE:</b> The Product ID must have format: <b>listing.plan.gold</b><br />
                            Where <b><i>listing.plan.</i></b> - required prefix, <b>gold</b> - it's your listing plan key.
                        </p>
                    <?php elseif ($this->_tpl_vars['configItem']['Key'] == 'iflynax_inapp_sandbox'): ?>
                        <a target="_blank" href="https://support.magplus.com/hc/en-us/articles/203809008-iOS-How-to-Test-In-App-Purchases-in-Your-App">
                            How to Test In-App Purchases in Your App with Sand Box
                        </a>
                    <?php elseif ($this->_tpl_vars['configItem']['Key'] == 'iflynax_paypal_module'): ?>
                        <p>How to get <b>Client ID</b> and <b>Secret</b> for the PayPal REST:</p>
                        <p>1. Go to <a target="_blank" href="https://developer.paypal.com">developer.paypal.com</a> and sign in with your PayPal account.</p>
                        <p>2. Click <b>Dashboard</b> in the top menu.</p>
                        <p>3. Click <b>Create App</b> in the section <b>REST API apps</b>.</p>
                        <p>4. Enter name of your app in the form, for example <i>iFlynax</i> and click <b>Create</b>.</p>
                        <p>5. Copy <b>Client ID</b> and <b>Secret</b> on the app details page and enter them here.</p>
					<?php endif; ?>
                    </span>
				</div>
			</td>
		<?php endif; ?>
	</tr>
	<?php endforeach; endif; unset($_from); ?>
	<tr>
		<td></td>
		<td><input style="margin: 10px 0 0 0;" type="submit" class="button" value="<?php echo $this->_tpl_vars['lang']['save']; ?>
" /></td>
	</tr>
	</table>
</form>

<!-- iflynax common settings end -->