Ejemplo n.º 1
0
<?php

echo htmlCsp::checkbox('csp_sub_send_notif', array('checked' => $this->subCheckedNotify, 'attrs' => 'id="cspSubSendNotif"'));
?>
&nbsp;&nbsp;
<label for="cspSubSendNotif"><?php 
langCsp::_e(array('Notify subscribers about new', $this->post->post_type));
?>
</label>
<br />
<i><?php 
langCsp::_e(array('This will send message only if', $this->post->post_type, 'will be published now.'));
?>
</i>
Ejemplo n.º 2
0
        langCsp::_e($metaOpts['label']);
        ?>
</h3>
				<div class="inside">
					<div><?php 
        echo $metaOpts['adminOptsContent'];
        ?>
</div>
				</div>
				</div>
				<?php 
    }
    ?>
				</div>
			</div>
		</div>
	</div>
	<div style="clear: both;"></div>
	<?php 
}
?>
	<div>
		<?php 
echo htmlCsp::hidden('reqType', array('value' => 'ajax'));
echo htmlCsp::hidden('page', array('value' => 'options'));
echo htmlCsp::hidden('action', array('value' => 'saveGroup'));
echo htmlCsp::submit('saveAll', array('value' => langCsp::_('Save All Changes'), 'attrs' => 'class="button button-primary button-large"'));
?>
	</div>
	<div id="cspAdminMetaOptionsMsg"></div>
</form>
Ejemplo n.º 3
0
?>
"><?php 
langCsp::_e('Twitter Title');
?>
:</label>
<?php 
echo htmlCsp::text($this->widget->get_field_name('title'), array('attrs' => 'id="' . $this->widget->get_field_id('title') . '"', 'value' => $this->data['title']));
?>
<br />
<label for="<?php 
echo $this->widget->get_field_id('username');
?>
"><?php 
langCsp::_e('Twitter Username');
?>
:</label>
<?php 
echo htmlCsp::text($this->widget->get_field_name('username'), array('attrs' => 'id="' . $this->widget->get_field_id('username') . '"', 'value' => $this->data['username']));
?>
<br />
<label for="<?php 
echo $this->widget->get_field_id('count');
?>
"><?php 
langCsp::_e('Tweets Count');
?>
:</label>
<?php 
echo htmlCsp::text($this->widget->get_field_name('count'), array('attrs' => 'id="' . $this->widget->get_field_id('count') . '"', 'value' => $this->data['count']));
?>
<br />
Ejemplo n.º 4
0
<table width="100%">
	<tr class="cspBodyCells">
		<td>
            <div class="cspLeftCol">
                <?php 
langCsp::_e('Enter site title here');
?>
:
                <?php 
echo htmlCsp::text('opt_values[meta_title]', array('value' => $this->optsModel->get('meta_title')));
?>
            </div>
		</td>
    </tr>
</table>
Ejemplo n.º 5
0
			<br />
            
            <div class="cspLeftCol withCspOptTip">
                <?php 
langCsp::_e('Color Scheme');
?>
:
                <?php 
echo htmlCsp::selectbox('opt_values[soc_facebook_follow_color_scheme]', array('value' => $this->optsModel->get('soc_facebook_follow_color_scheme'), 'options' => array('light' => 'light', 'dark' => 'dark')));
?>
                <br />
                <?php 
langCsp::_e('Width');
?>
:
                <?php 
echo htmlCsp::text('opt_values[soc_facebook_follow_width]', array('value' => $this->optsModel->get('soc_facebook_follow_width')));
?>
            </div>
            <div class="cspRightCol withCspOptTip">
                <?php 
langCsp::_e('Font');
?>
:
                <?php 
echo htmlCsp::selectbox('opt_values[soc_facebook_follow_font]', array('value' => $this->optsModel->get('soc_facebook_follow_font'), 'options' => array('arial' => 'arial', 'lucida grande' => 'lucida grande', 'segoe ui' => 'segoe ui', 'tahoma' => 'tahoma', 'trebuchet ms' => 'trebuchet ms', 'verdana' => 'verdana')));
?>
			</div>			
		</td>
    </tr>
</table>  
Ejemplo n.º 6
0
foreach ($formData as $key => $val) {
    if (is_array($val)) {
        foreach ($val as $subKey => $subVal) {
            echo htmlCsp::hidden($key . '[' . $subKey . ']', array('value' => $subVal));
        }
    } else {
        echo htmlCsp::hidden($key, array('value' => $val));
    }
}
?>
        <table width="100%">
            <tr>
                <td><?php 
langCsp::_e('Delete Plugin Data (options, setup data, database tables, etc.)');
?>
:</td>
                <td><?php 
echo htmlCsp::radiobuttons('deleteOptions', array('options' => array('No', 'Yes')));
?>
</td>
            </tr>
        </table>
    <?php 
echo htmlCsp::submit('toeGo', array('value' => langCsp::_('Done')));
?>
    <?php 
echo htmlCsp::formEnd();
?>
    </div>
</body>
</html>
								<td colspan="2">
									<i style="font-size: 12px;">
										<?php 
langCsp::_e('This will export subscriber to your ' . $this->subMod->getLabel() . ' account from site');
?>
									</i>
								</td>
							</tr>
							<tr>
								<td><?php 
langCsp::_e('Import from ' . $this->subMod->getLabel());
?>
:</td>
								<td>
									<?php 
echo htmlCsp::button(array('value' => langCsp::_('Import'), 'attrs' => 'class="cspEngineSubscribeImportButt" code="' . $this->code . '"'));
?>
									<span class="cspEngineSubscribeSyncMsg"></span>
								</td>
							</tr>
							<tr>
								<td colspan="2">
									<i style="font-size: 12px;">
										<?php 
langCsp::_e('This will import subscribers from your ' . $this->subMod->getLabel() . ' account to site');
?>
									</i>
								</td>
							</tr>
						</table>
					</div>
Ejemplo n.º 8
0
:
                <?php 
echo htmlCsp::text('opt_values[soc_gp_like_width]', array('value' => $this->optsModel->get('soc_gp_like_width')));
?>
            </div>
            <div class="cspRightCol withCspOptTip">
                <?php 
langCsp::_e('Size');
?>
:
                <?php 
echo htmlCsp::selectbox('opt_values[soc_gp_like_size]', array('value' => $this->optsModel->get('soc_gp_like_size'), 'options' => array('small' => 'Small (15px)', 'medium' => 'Medium (20px)', 'standard' => 'Standard (40px)', 'tall' => 'Tall (60px)')));
?>
                <div class="clearfix"></div>
                <br />
                <br />
                <?php 
langCsp::_e('Annotation');
?>
:
                <?php 
echo htmlCsp::selectbox('opt_values[soc_gp_like_annotation]', array('value' => $this->optsModel->get('soc_gp_like_annotation'), 'options' => array('inline' => 'inline', 'bubble' => 'bubble', 'none' => 'none')));
?>
                <a href="#" class="cspOptTip" tip="<?php 
langCsp::_e('Sets the annotation to display next to the button.');
?>
"></a>
			</div>            
        </td>
    </tr>
</table>  
Ejemplo n.º 9
0
<form action="" method="post" id="cspSubscribeForm">
	<div class="cspFormHint"><?php 
echo $this->enterEmailMsg;
?>
<span class="cspFormHintCorner"></span></div>
	<?php 
if ($this->sub_name_enable == 1) {
    echo htmlCsp::text('name', array('attrs' => 'id="cspSubscribeName" placeholder="Your Name" '));
}
?>
	<?php 
echo htmlCsp::text('email', array('attrs' => 'id="subscribe_email" placeholder="Your Email"'));
?>
		<?php 
echo htmlCsp::hidden('reqType', array('value' => 'ajax'));
?>
		<?php 
echo htmlCsp::hidden('page', array('value' => 'subscribe'));
?>
		<?php 
echo htmlCsp::hidden('action', array('value' => 'create'));
?>
		<?php 
echo htmlCsp::submit('create', array('value' => langCsp::_('Subscribe'), 'attrs' => 'id="cspSubscribeButton"'));
?>
	<div id="cspSubscribeCreateMsg"></div>
</form>
Ejemplo n.º 10
0
 public static function textFieldsDynamicTable($name, $params = array('value' => '', 'attrs' => '', 'options' => array()))
 {
     $res = '';
     if (empty($params['options'])) {
         $params['options'] = array(0 => array('label' => ''));
     }
     if (!empty($params['options'])) {
         $pattern = array();
         foreach ($params['options'] as $key => $p) {
             $pattern[$key] = htmlCsp::text($name . '[][' . $key . ']');
         }
         $countOptions = count($params['options']);
         $remove = '<a href="#" onclick="toeRemoveTextFieldsDynamicTable(this); return false;">remove</a>';
         $add = '<a href="#" onclick="toeAddTextFieldsDynamicTable(this, ' . $countOptions . '); return false;">add</a>';
         $res = '<div class="toeTextFieldsDynamicTable">';
         if (empty($params['value'])) {
             $params['value'] = array();
         } elseif (!is_array($params['value'])) {
             $params['value'] = utilsCsp::jsonDecode($params['value']);
             //$params['value'] = $params['value'][0];
         }
         $i = 0;
         do {
             $res .= '<div class="toeTextFieldDynamicRow">';
             foreach ($params['options'] as $key => $p) {
                 switch ($countOptions) {
                     case 1:
                         if (isset($params['value'][$i])) {
                             $value = is_array($params['value'][$i]) ? $params['value'][$i][$key] : $params['value'][$i];
                         } else {
                             $value = '';
                         }
                         break;
                     case 2:
                     default:
                         $value = isset($params['value'][$i][$key]) ? $params['value'][$i][$key] : '';
                         break;
                 }
                 $paramsForText = array('value' => $value);
                 $res .= langCsp::_($p['label']) . htmlCsp::text($name . '[' . $i . '][' . $key . ']', $paramsForText);
             }
             $res .= $remove . '</div>';
             $i++;
         } while ($i < count($params['value']));
         $res .= $add;
         $res .= '</div>';
     }
     return $res;
 }
Ejemplo n.º 11
0
?>
" class="button button-large csp-sub-button"><?php 
langCsp::_e('Followers count display');
?>
</label>
                <br />
                <br />
                <?php 
echo htmlCsp::checkboxHiddenVal('opt_values[soc_tw_follow_show_name]', array('checked' => $this->optsModel->get('soc_tw_follow_show_name')));
?>
                <label for="<?php 
echo 'opt_valuessoc_tw_follow_show_name_check';
?>
" class="button button-large csp-sub-button"><?php 
langCsp::_e('Show Screen Name');
?>
</label>
            </div>
            <div class="cspRightCol withCspOptTip">
                <?php 
langCsp::_e('Button Size');
?>
:
                <?php 
echo htmlCsp::selectbox('opt_values[soc_tw_follow_size]', array('value' => $this->optsModel->get('soc_tw_follow_size'), 'options' => array('medium' => langCsp::_('medium'), 'large' => langCsp::_('large'))));
?>
                <div class="clearfix"></div>
            </div>
        </td>
    </tr>
</table>  		
Ejemplo n.º 12
0
echo htmlCsp::textarea('message', array('attrs' => 'placeholder="' . langCsp::_('Type your meassage here. If you have any troubles, please describe it accurately. If it`s possibe send us: (text of the errors, print screen of errors, link to the webpages where you try to insert products, and any other information)') . '"'));
?>
</td></tr>
                        <tr>
                            <td valign="top">
                                <?php 
echo htmlCsp::hidden('mod', array('value' => 'adminmenu'));
?>
                                <?php 
echo htmlCsp::hidden('action', array('value' => 'sendMailToDevelopers'));
?>
                                <?php 
echo htmlCsp::hidden('reqType', array('value' => 'ajax'));
?>
                                <?php 
echo htmlCsp::submit('send', array('value' => langCsp::_('Send e-mail')));
?>
                            </td>
                            <td><div id="msg"></div></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div id="id4" class="postbox" style="display: block">
            <div class="handlediv" title="Click to toggle"><br></div>
            <h3 class="hndle"><?php 
langCsp::_e('News and Info');
?>
</h3>
            <div class="inside">
Ejemplo n.º 13
0
<script type="text/javascript">
// <!--
jQuery(document).ready(function(){
	jQuery('#toePagesRecreate').click(function(){
		jQuery(this).sendForm({
			msgElID: 'toePagesOptionsMsg',
			data: {page: 'pagesCsp', action: 'recreatePages', reqType: 'ajax'}
		});
		return false;
	});
});
// -->
</script>
<h1><?php 
langCsp::_e('Pages Options');
?>
</h1>
<table>
	<tr>
		<td><?php 
echo htmlCsp::inputButton(array('value' => langCsp::_('Recreate Pages'), 'attrs' => 'id="toePagesRecreate"'));
?>
</td>
		<td><a href="#" class="toeOptTip" tip="<?php 
langCsp::_e('If you accidently deleted one of plugin page - Login, or Checkout, or Shopping cart for example, just click on this button - and pages, that you deleted, will be created again. Do not use it without emergency.');
?>
"></a></td>
	</tr>
</table>
<div id="toePagesOptionsMsg"></div>
Ejemplo n.º 14
0
	<tr>
		<td><?php 
langCsp::_e('Subject');
?>
:</td>
		<td><?php 
echo htmlCsp::text('email_tpl[' . $this->tplData['id'] . '][subject]', array('value' => $this->tplData['subject']));
?>
</td>
	</tr>
	<tr>
		<td><?php 
langCsp::_e('Body');
?>
:</td>
		<td><?php 
echo htmlCsp::textarea('email_tpl[' . $this->tplData['id'] . '][body]', array('value' => $this->tplData['body']));
?>
</td>
	</tr>
	<tr>
		<td><?php 
langCsp::_e('Available veriables');
?>
:</td>
		<td><?php 
echo $this->tplData['variables'];
?>
</td>
	</tr>
</table>
Ejemplo n.º 15
0
			<?php 
echo htmlCsp::hidden('page', array('value' => 'options'));
?>
			<?php 
echo htmlCsp::hidden('action', array('value' => 'activatePlugin'));
?>
			<?php 
echo htmlCsp::hidden('reqType', array('value' => 'ajax'));
?>
			<?php 
echo htmlCsp::hidden('plugName');
?>
			<?php 
echo htmlCsp::hidden('goto');
?>
			<?php 
echo htmlCsp::submit('activate', array('value' => langCsp::_('Activate')));
?>
			<br />
			<div id="toeModActivationPopupMsgCsp"></div>
		</form>
	</center>
	<i><?php 
langCsp::_e('To get your keys - go to');
?>
		<a target="_blank" href="http://readyshoppingcart.com/my-account/my-orders/">http://readyshoppingcart.com/my-account/my-orders/</a>
		<?php 
langCsp::_e('and copy & paste key from your ordered extension here.');
?>
	</i>
</div>
Ejemplo n.º 16
0
<table width="100%">
    <tr class="cspBodyCells">
        <td>
            <div class="GAnaliticsLabel">
                <?php 
langCsp::_e('Enter Google Analitics code here');
?>
:
				<small>
					<i>
						<a href='https://support.google.com/analytics/answer/1008080?hl=en' target='_blank'>
							where to get the code?
						</a>
					</i>
				</small>
                <?php 
echo htmlCsp::textarea('opt_values[google_analitics]', array('value' => $this->optsModel->get('google_analitics'), 'rows' => '5', 'cols' => '60'));
?>
            </div>
        </td>
    </tr>
</table>
Ejemplo n.º 17
0
<?php

echo htmlCsp::checkboxHiddenVal('opt_values[soc_im_enable_link]', array('checked' => $this->optsModel->get('soc_im_enable_link')));
?>
<label for="<?php 
echo 'opt_valuessoc_im_enable_link_check';
?>
" class="button button-large"><?php 
langCsp::_e('Enable Link to Account');
?>
</label>
<table width="100%">
	<tr class="cspBodyCells">
		<td>
            <div class="cspLeftCol">
                <?php 
langCsp::_e('Username');
?>
:
                <?php 
echo htmlCsp::text('opt_values[soc_im_account]', array('value' => $this->optsModel->get('soc_im_account')));
?>
            </div>
		</td>
    </tr>
</table>
?>
:</h4>
<?php 
echo htmlCsp::textarea('opt_values[msg_text]', array('value' => $this->optModel->get('msg_text')));
?>
<div class="cspLeftCol">
    <?php 
langCsp::_e('Select color');
?>
:
    <?php 
echo htmlCsp::colorpicker('opt_values[msg_text_color]', array('value' => $this->optModel->get('msg_text_color')));
?>
</div>
<div class="cspRightCol">
    <?php 
langCsp::_e('Select font');
?>
:
    <?php 
echo htmlCsp::fontsList('opt_values[msg_text_font]', array('value' => $this->optModel->get('msg_text_font')));
?>
</div>
<div class="clearfix"></div>
<div class="clearfix">
	<?php 
echo htmlCsp::button(array('value' => langCsp::_('Set default'), 'attrs' => 'id="cspMsgTextSetDefault"'));
?>
	<div id="cspAdminOptMsgTextDefaultMsg"></div>
</div>
<div class="clearfix"></div>
    ?>
">
		<div><?php 
    langCsp::_e('This template has some default setting. If you want to activate them - just check it');
    ?>
:</div>
		<div>
			<?php 
    $defOptions = array('background_color' => array('label' => 'Background color', 'options' => array('bg_color', 'bg_type')), 'background_image' => array('label' => 'Background image', 'options' => array('bg_image', 'bg_type')), 'fonts' => array('label' => 'Fonts - types and colors', 'options' => array('msg_title_color', 'msg_title_font', 'msg_text_color', 'msg_text_font')), 'logo' => array('label' => 'Logo image', 'options' => array('logo_image'), 'tip' => 'Be careful: if you already uploaded your logo on server - it will be removed. You will be able then upload it one more time.'), 'background_slides' => array('label' => 'Background slides', 'options' => array('slider_images')));
    ?>
			<?php 
    foreach ($defOptions as $optKey => $optData) {
        ?>
			<div class="cspTplDefOptionCheckShell">
				<span class="cspDefTplOptCheckbox"><?php 
        echo htmlCsp::checkbox($optKey, array('value' => implode(',', $optData['options'])));
        ?>
</span> - <?php 
        langCsp::_e($optData['label']);
        ?>
				<?php 
        if (isset($optData['tip'])) {
            ?>
				<br /><i style="font-size: 12px;"><b><?php 
            langCsp::_e($optData['tip']);
            ?>
</b></i>
				<?php 
        }
        ?>
			</div>
Ejemplo n.º 20
0
	</tr>
	<tr>
		<td></td>
		<td><?php 
echo htmlCsp::text('ipAddressCsp', array('value' => ''));
?>
</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<?php 
echo htmlCsp::hidden('reqType', array('value' => 'ajax'));
?>
			<?php 
echo htmlCsp::hidden('page', array('value' => 'access'));
?>
 <!--page = для адинки | mod = для сайт-->
			<?php 
echo htmlCsp::hidden('action', array('value' => 'saveIp'));
?>
 <!--метод-->
			<?php 
echo htmlCsp::submit('submitIp', array('value' => langCsp::_('add Ip address'), 'attrs' => 'class="button button-primary button-large"'));
?>
            
        </td>
	</tr>
</table>
</form>
Ejemplo n.º 21
0
 /**
  * Function to get field params
  * 
  * @param object $params 
  */
 public static function getFieldAttributes($params)
 {
     $output = '';
     if (!empty($params->attr)) {
         foreach ($params->attr as $key => $value) {
             $output .= langCsp::_($key) . ':<br />';
             $output .= htmlCsp::text('params[attr][' . $key . ']', array('value' => $value)) . '<br />';
         }
     } else {
         $output .= langCsp::_('class') . ':<br />';
         $output .= htmlCsp::text('params[attr][class]', array('value' => '')) . '<br />';
         $output .= langCsp::_('id') . ':<br />';
         $output .= htmlCsp::text('params[attr][id]', array('value' => '')) . '<br />';
     }
     return $output;
 }
Ejemplo n.º 22
0
	<label for=""><?php 
echo $this->enterEmailMsg;
?>
</label>:
		<?php 
if ($this->sub_name_enable == 1) {
    echo htmlCsp::text('name', array('attrs' => 'id="cspSubscribeName" placeholder="Your Name" '));
}
?>
 
	<?php 
echo htmlCsp::text('email');
?>
<br />
	<div>
		<?php 
echo htmlCsp::hidden('reqType', array('value' => 'ajax'));
?>
		<?php 
echo htmlCsp::hidden('page', array('value' => 'subscribe'));
?>
		<?php 
echo htmlCsp::hidden('action', array('value' => 'create'));
?>
		<?php 
echo htmlCsp::submit('create', array('value' => langCsp::_('Subscribe')));
?>
	</div>
	<div id="cspSubscribeCreateMsg"></div>
</form>
Ejemplo n.º 23
0
			<p>There are so many features, so we can't post it here. Like:</p>
			<ul>
				<li>Works with any WordPress Theme</li>
				<li>Build with HTML5 & CSS3</li>
				<li>Responsive. Work on any device</li>
				<li>Access controls (Restrict By User Role, IP Address)</li>
				<li>Social integration (Facebook, Tweeter, Google+, YouTube, Instagram)</li>
			</ul>
			<p>So check full features list <a target="_blank" href="http://wordpress.org/plugins/coming-soon-maintenance-mode-ready/">here</a>.</p>
		</div>
		<div class="clear"></div>

		<?php 
echo htmlCsp::hidden('pl', array('value' => CSP_CODE));
?>
		<?php 
echo htmlCsp::hidden('page', array('value' => 'promo_ready'));
?>
		<?php 
echo htmlCsp::hidden('action', array('value' => 'welcomePageSaveInfo'));
?>
		<?php 
echo htmlCsp::submit('gonext', array('value' => 'Thank for check info. Start using plugin.', 'attrs' => 'class="button button-primary button-hero"'));
?>
		<?php 
echo htmlCsp::hidden('original_page', array('value' => reqCsp::getVar('page')));
?>
		
		<span id="toeWelcomePageFindUsMsg"></span>
	</form>
</div>
</td>
								<td><?php 
langCsp::_e('Remove');
?>
</td>
							</tr>
							<tr class="cspExample cspTblRow" style="display: none;">
								<td class="email"></td>
								<td>
									<a href="#" onclick="cspSubscrbChangeStatus(this); return false;" class="status cspStatusIndicator" valueTo="class"></a>
								</td>
								<td>
									<a href="#" onclick="cspSubscrbRemove(this); return false;"><?php 
echo htmlCsp::img('cross.gif');
?>
</a>
									<?php 
echo htmlCsp::hidden('id', array('attrs' => 'class="id" valueTo="value"'));
?>
								</td>
							</tr>
						</table>
						<div id="cspAdminSubersPaging"></div>
						<div id="cspAdminSubersMsg"></div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div style="clear: both;"></div>
<img id="cspOptLogoImgPrev" 
		src="<?php 
echo $this->optModel->isEmpty('logo_image') ? '' : frameCsp::_()->getModule('options')->getLogoImgFullPath();
?>
" 
style="max-width: 200px;" />
</div>
<div class="cspRightCol">
    <div class="cspTip cspTipArrowLeft nomargin">
        <?php 
langCsp::_e('Choose your logo, you can use png, jpg or gif image file.');
?>
        <span class="cspTipCorner"></span>
    </div>
    <br />
    <div class="cspTip cspTipArrowDown nomargin">
        <?php 
langCsp::_e('You can use default logo, your own or disable it. To disable logo on Coming Soon page click "Remove image" button bellow.');
?>
        <span class="cspTipCorner"></span>
    </div> <br /> 
    
    <?php 
echo htmlCsp::button(array('value' => langCsp::_('Remove image'), 'attrs' => 'id="cspLogoRemove" class="button button-large" style="width:100%;"'));
?>
    <?php 
echo htmlCsp::button(array('value' => langCsp::_('Set default'), 'attrs' => 'id="cspLogoSetDefault" class="button button-large" style="width:100%;"'));
?>
    <div id="cspAdminOptLogoDefaultMsg"></div>
</div>
<div class="clearfix"></div>
Ejemplo n.º 26
0
<table width="100%">
    <tr class="cspBodyCells">
        <td>
            <div class="cspLeftCol">
                <?php 
langCsp::_e('Enter site keywords here');
?>
:
                <?php 
echo htmlCsp::text('opt_values[meta_keywords]', array('value' => $this->optsModel->get('meta_keywords')));
?>
            </div>
        </td>
    </tr>
</table>
Ejemplo n.º 27
0
 /**
  * Function to process field params
  */
 public function processParams($tag, $id)
 {
     return '';
     if ($this->name == "params") {
         if (is_array($this->value) || is_object($this->value)) {
             $params = $this->value;
         } else {
             $params = json_decode($this->value);
         }
         $add_option = '';
         switch ($tag) {
             case 5:
                 $add_option = langCsp::_('Add Checkbox');
                 $options_tag = '';
                 $image_tag = ' style="display:none"';
                 break;
             case 9:
                 $add_option = langCsp::_('Add Item');
                 $options_tag = '';
                 $image_tag = ' style="display:none"';
                 break;
             case 12:
                 $add_option = langCsp::_('Add Item');
                 $options_tag = '';
                 $image_tag = ' style="display:none"';
                 break;
             case 10:
                 $options_tag = '';
                 $add_option = langCsp::_('Add Radio Button');
                 $image_tag = ' style="display:none"';
                 break;
             case 8:
                 $image_tag = '';
                 $options_tag = ' style="display:none"';
                 break;
             default:
                 $options_tag = ' style="display:none"';
                 $image_tag = ' style="display:none"';
                 break;
         }
         if ($tag > 0 || $id == 0) {
             $output .= '<div class="options options_tag"' . $options_tag . '>';
             $output .= '<span class="add_option">' . $add_option . '</span>';
             $output .= fieldAdapterCsp::_($id, 'getExtraFieldOptions', fieldAdapterCsp::STR);
             $output .= '</div>';
             $output .= '<div class="options image_tag"' . $image_tag . '>' . langCsp::_('Dimensions') . ':<br />';
             $params->width ? $width = $params->width : '';
             $params->height ? $height = $params->height : '';
             $output .= langCsp::_('width') . ':<br />';
             $output .= htmlCsp::text('params[width]', array('value' => $width)) . '<br />';
             $output .= langCsp::_('height') . ':<br />';
             $output .= htmlCsp::text('params[height]', array('value' => $height)) . '<br />';
             $output .= '</div>';
         }
         if ($this->adapt['htmlParams']) {
             $output .= fieldAdapterCsp::_($this, $this->adapt['htmlParams'], fieldAdapterCsp::STR);
         } else {
             $output .= '<a href="javascript:void(0);" class="set_properties">' . langCsp::_('Click to set field "id" and "class"') . '</a>';
             $output .= '<div class="attributes" style="display:none;">' . langCsp::_('Attributes') . ':<br />';
             $output .= fieldAdapterCsp::_($params, 'getFieldAttributes', fieldAdapterCsp::STR);
             $output .= '</div>';
         }
         return $output;
     }
 }
Ejemplo n.º 28
0
<table width="100%">
    <tr class="cspBodyCells">
        <td>
            <div class="cspLeftCol">
                <?php 
langCsp::_e('Enter site description here');
?>
:
                <?php 
echo htmlCsp::text('opt_values[meta_description]', array('value' => $this->optsModel->get('meta_description')));
?>
            </div>
        </td>
    </tr>
</table>
Ejemplo n.º 29
0
<form id="cspAdminAccessFormRole">
<table>
  <tr>
    <td>Only users at or above this level will be able to log in:</td>
    <td>
    	<?php 
$selected = frameCsp::_()->getTable('access')->get('access', array('type_access' => 3));
?>
		<?php 
echo htmlCsp::selectbox('roleCsp', array('attrs' => 'style="float:left; width:120px; margin-right:8px;"', 'options' => $this->selectRole, 'value' => $selected[0]['access']));
?>
        <?php 
echo htmlCsp::hidden('reqType', array('value' => 'ajax'));
?>
		<?php 
echo htmlCsp::hidden('page', array('value' => 'access'));
?>
		<?php 
echo htmlCsp::hidden('action', array('value' => 'saveRole'));
?>
        <?php 
echo htmlCsp::submit('submitRole', array('value' => langCsp::_('Save'), 'attrs' => 'class="button button-primary button-large" style="float:right;"'));
?>
        
    </td>
  </tr>
</table>
</form>
Ejemplo n.º 30
0
<label for="<?php 
echo 'opt_valuessoc_yt_enable_subscribe_check';
?>
" class="button button-large"><?php 
langCsp::_e('Enable Subscribe button');
?>
</label>
<table width="100%">
	<tr class="cspBodyCells">
		<td>
            <div class="cspLeftCol">
                <?php 
langCsp::_e('Layout');
?>
:
                 <?php 
echo htmlCsp::selectbox('opt_values[soc_yt_sub_layout]', array('value' => $this->optsModel->get('soc_yt_sub_layout'), 'options' => array('default' => 'default', 'full' => 'full')));
?>
            </div>
			<div class="cspRightCol">
                <?php 
langCsp::_e('Theme');
?>
:
                 <?php 
echo htmlCsp::selectbox('opt_values[soc_yt_sub_theme]', array('value' => $this->optsModel->get('soc_yt_sub_theme'), 'options' => array('default' => 'default', 'dark' => 'dark')));
?>
            </div>
		</td>
    </tr>
</table>