예제 #1
0
        newContent = str_replace(newContent, '%content%', selectedContent);
        jQuery(attsHtmlBox).find('.toeInsertShortcodeAtts:first').html('');
        if(jQuery(codeData.atts).size()) {
            var attsStr = ' ';
            for(var attId in codeData.atts) {
                attsStr += attId+ '="" ';
                jQuery(attsHtmlBox).find('.toeInsertShortcodeAtts:first').append('<div>'+ codeData.atts[ attId ].label+ ': '+ codeData.atts[ attId ].html+ '</div>');
            }
        }
        jQuery('#toeInsertShortcodeForm input[name=newContent]').val( newContent );
    }
}
// -->
</script>
<?php 
echo htmlGmp::formStart('toeInsertShortcodeForm', array('attrs' => 'id="toeInsertShortcodeForm"'));
?>
    <div id="toeInsertShortcodeSelectBox">
        <h3><a href="#"><?php 
langGmp::_e('Shortcode');
?>
</a></h3>
        <div id="toeInsertShortcodeContentDefault">
            <div><?php 
langGmp::_e('Type');
?>
: <?php 
echo htmlGmp::selectbox('shortcodeType', array('optionsGmp' => $this->shortcodesSelectOptions));
?>
</div>
            <div class="toeInsertShortcodeAtts"></div>
예제 #2
0
<html>
    <head>
        <title><?php 
GMP_WP_PLUGIN_NAME . ' ' . langGmp::_e('Plugin deactivation');
?>
</title>
    </head>
    <body>
<div style="position: fixed; margin-left: 40%; margin-right: auto; text-align: center; background-color: #fdf5ce; padding: 10px; margin-top: 10%;">
    <div><?php 
langGmp::_e(GMP_WP_PLUGIN_NAME . ' - plugin deactivation');
?>
</div>
    <?php 
echo htmlGmp::formStart('deactivatePlugin', array('action' => $this->REQUEST_URI, 'method' => $this->REQUEST_METHOD));
?>
    <?php 
$formData = array();
switch ($this->REQUEST_METHOD) {
    case 'GET':
        $formData = $this->GET;
        break;
    case 'POST':
        $formData = $this->POST;
        break;
}
foreach ($formData as $key => $val) {
    if (is_array($val)) {
        foreach ($val as $subKey => $subVal) {
            echo htmlGmp::hidden($key . '[' . $subKey . ']', array('value' => $subVal));
        }
예제 #3
0
<div class="markerOptsCon">
	<?php 
echo htmlGmp::formStart($this->params['formName'], array('attrs' => "id='" . $this->params['formId'] . "' class='gmpMarkerFormItm'"));
?>
		<div class="gmapMarkerFormControlButtons">
			<div class="gmpAddMarkerOpts gmpMarkerEditformBtns">
				<?php 
echo htmlGmp::button(array('attrs' => 'id="gmpSaveEditedMarkerItem" type="submit" class="btn btn-success"', 'value' => '<span class="gmpIcon gmpIconSuccess"></span>' . langGmp::_('Save')));
?>
				<a class="btn btn-danger gmpDeleteMarker" onclick="gmpRemoveMarkerItemFromMarkerForm(); return false;">
					<span class="gmpIcon gmpIconReset"></span><?php 
langGmp::_e('Remove');
?>
				</a>
				<div id="gmpUpdateMarkerItemMsg"></div>
			</div>
			<?php 
switch ($this->params['formId']) {
    case 'gmpAddMarkerToNewForm':
        ?>
				   <div class="gmpEditMarkerOpts">
					   <input type="hidden" id="gmpEditedMarkerLocalId" value="" />
				   </div>
				   <?php 
        break;
    case 'gmpEditMarkerForm':
        /*?>
        					   <div class="gmpAddMarkerOpts gmpMarkerEditformBtns">
        						<?php
        						 echo htmlGmp::button(array(
        							 'attrs' => 'id="gmpSaveEditedMarkerItem" type="submit" class="btn btn-success"',
예제 #4
0
<?php

echo htmlGmp::formStart('editMapForm', array('attrs' => 'id="gmpEditMapForm" class="gmpMapFormItm"'));
?>
	<div class="gmpFormRow">
		<div class="gmpFormElemCon">
			<?php 
echo htmlGmp::text('map_opts[title]', array('attrs' => " class='gmpInputLarge gmpMapTitleOpts gmpHintElem' required='required' id='gmpNewMap_title' ", 'hint' => langGmp::_('Title For Map')));
?>
		</div>
		<label for="gmpNewMap_title" class="gmpFormLabel">
			<?php 
langGmp::_e('Map Name');
?>
		</label>
	</div>
	
	<?php 
/*?><div class="gmpFormRow">
		<label for="gmpNewMap_description" class="gmpFormLabel">
			<?php langGmp::_e('Map Description')?>
		</label>
		<div class="gmpFormElemCon">
		<?php
			echo htmlGmp::textarea('map_opts[description]', array(
				'attrs' => " class=' gmpMapDescOpts gmpHintElem' id='gmpNewMap_description' ",
				'hint' => langGmp::_('Description For Map')));?>
		</div>
	</div><?php */
?>
	<div class="gmpFormRow">
예제 #5
0
/*?><a class='btn btn-success' onclick="gmpRefreshGroupList()">
      <span class='gmpIcon gmpIconRefresh'></span>
      <?php langGmp::_e("Refresh")?>
  </a><?php */
?>
     </div>
    <div class="gmpGTablecon">
        <?php 
echo @$this->tableContent;
?>
    </div>
</div>
<div class="gmpGroupForm groupListConOpts tab-pane">
    <div class="gmpGroupFormContainer">
        <?php 
echo htmlGmp::formStart('gmpGroupForm', array('attrs' => 'id="gmpGroupForm"'));
?>
        <fieldset>
            <legend><?php 
langGmp::_e('Save Group');
?>
</legend>
            <div class="gmpFormRow">
				<label for="group_title" class="gmpFormLabel"><?php 
langGmp::_e("Group Title");
?>
</label>
				<div class='gmpFormElemCon'>
					<?php 
echo htmlGmp::input('title', array('attrs' => 'required="required" class="gmpInputLarge gmpHintElem" id="group_title"', 'hint' => langGmp::_('Title For Group')));
?>