Example #1
0
echo htmlGmp::textarea('message', array('attrs' => 'placeholder="' . langGmp::_('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 htmlGmp::hidden('mod', array('value' => 'adminmenu'));
?>
                                <?php 
echo htmlGmp::hidden('action', array('value' => 'sendMailToDevelopers'));
?>
                                <?php 
echo htmlGmp::hidden('reqType', array('value' => 'ajax'));
?>
                                <?php 
echo htmlGmp::submit('send', array('value' => langGmp::_('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 
langGmp::_e('News and Info');
?>
</h3>
            <div class="inside">
Example #2
0
?>
						</button>
						<?php 
echo htmlGmp::ajaxfile('csv_import_file_maps', array('url' => uriGmp::_(array('baseUrl' => admin_url('admin-ajax.php'), 'page' => 'csv', 'action' => 'import', 'type' => 'maps', 'reqType' => 'ajax')), 'data' => 'gmpCsvImportData', 'buttonName' => __('Import', GMP_LANG_CODE), 'responseType' => 'json', 'onSubmit' => 'gmpCsvImportOnSubmit', 'onComplete' => 'gmpCsvImportOnComplete', 'btn_class' => 'button'));
?>
					</td>
				</tr>
				<tr>
					<th scope="row">
						<label for="gmpCsvExportMarkersBtn">
							<?php 
_e('Markers', GMP_LANG_CODE);
?>
						</label>
					</th>
					<td>
						<button id="gmpCsvExportMarkersBtn" class="button">
							<?php 
_e('Export', GMP_LANG_CODE);
?>
						</button>
						<?php 
echo htmlGmp::ajaxfile('csv_import_file_markers', array('url' => uriGmp::_(array('baseUrl' => admin_url('admin-ajax.php'), 'page' => 'csv', 'action' => 'import', 'type' => 'markers', 'reqType' => 'ajax')), 'data' => 'gmpCsvImportData', 'buttonName' => __('Import', GMP_LANG_CODE), 'responseType' => 'json', 'onSubmit' => 'gmpCsvImportOnSubmit', 'onComplete' => 'gmpCsvImportOnComplete', 'btn_class' => 'button'));
?>
					</td>
				</tr>
				</tbody>
			</table>
		</div>
	</div>
</section>
Example #3
0
				<li>Works with any Responsive themes</li>
				<li>Add location by searching or coordinates</li>
				<li>Fully customizable. All features of the map or marker can be switched off/on</li>
				<li>CSV import and export maps and markers data</li>
			</ul>
			<p>So check full features list <a target="_blank" href="http://wordpress.org/plugins/google-maps-ready/">here</a>.</p>
		</div>
		<div class="clear"></div>

		<?php 
echo htmlGmp::hidden('pl', array('value' => 'gmp'));
?>
		<?php 
echo htmlGmp::hidden('mod', array('value' => 'promo_ready'));
?>
		<?php 
echo htmlGmp::hidden('action', array('value' => 'welcomePageSaveInfo'));
?>
		
		<br />
		<br />
		<?php 
echo htmlGmp::submit('gonext', array('value' => 'Thank for check info. Start using plugin.', 'attrs' => 'class="button button-primary button-hero"'));
?>
		<?php 
echo htmlGmp::hidden('original_page', array('value' => reqGmp::getVar('page')));
?>
		<span id="toeWelcomePageFindUsMsg"></span>
	</form>
</div>
Example #4
0
						<div class="shortcode-wrap">
							<p id="shortcodeCode" style="display: none;">
								<strong style="margin-top: 7px; font-size: 1.2em; float: left;"><?php 
_e('Map shortcode', GMP_LANG_CODE);
?>
:</strong>
								<?php 
echo htmlGmp::text('gmpCopyTextCode', array('value' => '', 'attrs' => 'class="gmpCopyTextCode gmpMapShortCodeShell" style="float: right;"'));
?>
								<br style="clear: both;" />
								<strong style="margin-top: 7px; font-size: 1.2em; float: left;"><?php 
_e('PHP code', GMP_LANG_CODE);
?>
:</strong>
								<?php 
echo htmlGmp::text('gmpCopyTextCode', array('value' => '', 'attrs' => 'class="gmpCopyTextCode gmpMapPhpShortCodeShell" style="float: right;"'));
?>
								<br style="clear: both;" />
							</p>
							<p id="shortcodeNotice" style="display: none;"><?php 
_e('Shortcode will appear after you save map.', GMP_LANG_CODE);
?>
</p>
						</div>
						<div style="clear: both;"></div>
					</div>
					<div id="gmpMapMainBtns" class="row">
						<div class="sup-col sup-w-50">
							<button id="gmpMapSaveBtn" class="button button-primary" style="width: 100%;">
								<i class="fa dashicons-before dashicons-admin-site"></i>
								<?php 
								<td>
									<?php 
    echo htmlGmp::$htmlType($fName, $htmlParams);
    ?>
								</td>
							</tr>
							<?php 
}
?>
							<tr>
								<th scope="row" colspan="2">
									<?php 
echo htmlGmp::hidden('mod', array('value' => 'supsystic_promo'));
?>
									<?php 
echo htmlGmp::hidden('action', array('value' => 'sendContact'));
?>
									<button class="button button-primary button-hero" style="float: right;">
										<i class="fa fa-upload"></i>
										<?php 
_e('Send email', GMP_LANG_CODE);
?>
									</button>
									<div style="clear: both;"></div>
								</th>
							</tr>
						</table>
					</form>
					<div id="form-settings-send-msg" style="display: none;">
						<i class="fa fa-envelope-o"></i>
						<?php 
Example #6
0
_e('Check files and directories write permissions', GMP_LANG_CODE);
?>
</li>
				</ul>
				<p><?php 
printf(__('So check full features list <a target="_blank" href="%s">here</a>.', GMP_LANG_CODE), 'http://worgmpess.org/plugins/supsystic-secure/');
?>
</p>
			</div>
			<div class="clear"></div>

			<?php 
echo htmlGmp::hidden('pl', array('value' => GMP_CODE));
?>
			<?php 
echo htmlGmp::hidden('page', array('value' => 'supsystic_promo'));
?>
			<?php 
echo htmlGmp::hidden('action', array('value' => 'welcomePageSaveInfo'));
?>
			<?php 
echo htmlGmp::submit('gonext', array('value' => 'Thank for check info. Start using plugin.', 'attrs' => 'class="button button-primary button-hero"'));
?>
			<?php 
echo htmlGmp::hidden('original_page', array('value' => $this->originalPage));
?>

			<span id="toeWelcomePageFindUsMsg"></span>
		</form>
	</div>
</div>
Example #7
0
?>
</label>
					<div class="gmpSizePoint">Px</div>
					<input type="text" name="infoWindowSize[height]" class="input-mini" id="gmpInfoWindowSize_height" required="required" value="<?php 
echo $this->indoWindowSize['height'];
?>
">
				</div>
			</div>
		</div>
		<hr />
		<div class="controls">
			<?php 
echo htmlGmp::hidden('mod', array('value' => 'options'));
echo htmlGmp::hidden('action', array('value' => 'updatePluginSettings'));
echo htmlGmp::hidden('reqType', array('value' => 'ajax'));
?>
			<div id="gmpPluginOptsMsg"></div>
			<input type="submit" class="btn btn-success" value="<?php 
langGmp::_e('Save');
?>
" />
		</div>
	</form>
</div>
<?php 
if (!empty($this->additionalGlobalSettings)) {
    foreach ($this->additionalGlobalSettings as $setData) {
        ?>
		<div class="gmpPluginSettingsFormContainer"><?php 
        echo $setData;
Example #8
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 = __('Add Checkbox', GMP_LANG_CODE);
                 $options_tag = '';
                 $image_tag = ' style="display:none"';
                 break;
             case 9:
                 $add_option = __('Add Item', GMP_LANG_CODE);
                 $options_tag = '';
                 $image_tag = ' style="display:none"';
                 break;
             case 12:
                 $add_option = __('Add Item', GMP_LANG_CODE);
                 $options_tag = '';
                 $image_tag = ' style="display:none"';
                 break;
             case 10:
                 $options_tag = '';
                 $add_option = __('Add Radio Button', GMP_LANG_CODE);
                 $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 .= fieldAdapterGmp::_($id, 'getExtraFieldOptions', fieldAdapterGmp::STR);
             $output .= '</div>';
             $output .= '<div class="options image_tag"' . $image_tag . '>' . __('Dimensions', GMP_LANG_CODE) . ':<br />';
             $params->width ? $width = $params->width : '';
             $params->height ? $height = $params->height : '';
             $output .= __('width', GMP_LANG_CODE) . ':<br />';
             $output .= htmlGmp::text('params[width]', array('value' => $width)) . '<br />';
             $output .= __('height', GMP_LANG_CODE) . ':<br />';
             $output .= htmlGmp::text('params[height]', array('value' => $height)) . '<br />';
             $output .= '</div>';
         }
         if ($this->adapt['htmlParams']) {
             $output .= fieldAdapterGmp::_($this, $this->adapt['htmlParams'], fieldAdapterGmp::STR);
         } else {
             $output .= '<a href="javascript:void(0);" class="set_properties">' . __('Click to set field "id" and "class"', GMP_LANG_CODE) . '</a>';
             $output .= '<div class="attributes" style="display:none;">' . __('Attributes', GMP_LANG_CODE) . ':<br />';
             $output .= fieldAdapterGmp::_($params, 'getFieldAttributes', fieldAdapterGmp::STR);
             $output .= '</div>';
         }
         return $output;
     }
 }
	<?php 
echo htmlGmp::button(array('value' => langGmp::_('Export Maps'), 'attrs' => 'id="gmpCsvExportMapsBtn" class="btn btn-success"'));
?>
	<?php 
echo htmlGmp::button(array('value' => langGmp::_('Export Markers'), 'attrs' => 'id="gmpCsvExportMarkersBtn" class="btn btn-success"'));
?>
	<br />
	<?php 
echo htmlGmp::checkbox('csv_export_with_markers', array('attrs' => 'id="gmpCsvWithMarkersCheck"'));
?>
	<label for="gmpCsvWithMarkersCheck"><?php 
langGmp::_e('Export maps with markers');
?>
</label>
</div>
<hr />
<div class="gmpFormRow">
	<?php 
echo htmlGmp::ajaxfile('csv_import_file', array('url' => uriGmp::_(array('baseUrl' => admin_url('admin-ajax.php'), 'page' => 'csv', 'action' => 'import', 'reqType' => 'ajax')), 'data' => 'gmpCsvImportData', 'buttonName' => 'Import Maps / Markers', 'responseType' => 'json', 'onSubmit' => 'gmpCsvImportOnSubmit', 'onComplete' => 'gmpCsvImportOnComplete', 'btn_class' => 'btn btn-success'));
?>
	<br />
	<span id="gmpCsvImportMsg"></span>
	<br />
	<?php 
echo htmlGmp::checkbox('csv_import_overwrite_same_names', array('attrs' => 'id="gmpCsvOverwriteSameNames"'));
?>
	<label for="gmpCsvOverwriteSameNames"><?php 
langGmp::_e('Overwrite data with same names');
?>
</label>
</div>
Example #10
0
			<a id="gmpTabForNewMapMarkerOpts" href="#gmpEditMapMarkers">
				<button class="btn btn-success gmpAddNewMarkerBtn" onclick="gmpAddNewMarker({markerForm: '#gmpAddMarkerToEditMap'}); return false;">
					<span class="gmpIcon gmpIconMarker"></span>
					<?php 
langGmp::_e('Add New Marker');
?>
				</button>
				<span class="gmpTabElemSimpTxt" disabled="disabled">
					<span class="gmpIconSimpMarker"></span>
					<?php 
langGmp::_e('Markers');
?>
				</span>
				<span class="gmp-tabs-btns">
					<?php 
echo htmlGmp::button(array('attrs' => 'id="AddMаrkerToMap" class="btn btn-success gmpAddSaveMarkerBtn" type="submit"', 'value' => "<span class='gmpIcon gmpIconAdd'></span>" . langGmp::_('Save')));
?>
					<button class="btn btn-danger removeMarkerFromForm" onclick="gmpRemoveMarkerItemFromMapForm(); return false;" disabled="disabled">
						<span class="gmpIcon gmpIconReset"></span>
						<?php 
langGmp::_e('Remove');
?>
					</button>
				</span>
			</a>
		</li>
		<li>
			<a id="gmpTabForNewMapOpts" class="btn btn-primary gmpTabForNewMapOpts" href="#gmpEditMapProperties">
				<span class="gmpTabElemSimpTxt" disabled="disabled">
					<span class="gmpIconSimpMarker"></span>
					<?php 
Example #11
0
 private function _convertDataForDatatable($list)
 {
     foreach ($list as $i => $marker) {
         $list[$i]['marker_check'] = htmlGmp::checkbox('marker_check[' . $list[$i]['id'] . ']');
         $list[$i]['list_icon'] = $this->getView()->getListIcon($list[$i]);
         $list[$i]['list_title'] = $this->getView()->getListTitle($list[$i]);
         $list[$i]['group_title'] = $list[$i]['marker_group']['title'];
         $list[$i]['list_address'] = $this->getView()->getListAddress($list[$i]);
         $list[$i]['uses_on_map'] = $this->getView()->getListUsesOnMap($list[$i]);
         $list[$i]['operations'] = $this->getView()->getListOperations($list[$i]);
     }
     return $list;
 }
        echo $catClass;
        ?>
">
								<td colspan="3">
									<?php 
        if (is_callable($optCatData['opts_html'])) {
            echo call_user_func($optCatData['opts_html']);
        } elseif (is_string($opt['options'])) {
            echo $optCatData['opts_html'];
        }
        ?>
								</td>
							</tr>
						<?php 
    }
    ?>
					<?php 
}
?>
				</table>
				<div style="clear: both;"></div>
			</div>
		</div>
		<?php 
echo htmlGmp::hidden('mod', array('value' => 'options'));
?>
		<?php 
echo htmlGmp::hidden('action', array('value' => 'saveGroup'));
?>
	</form>
</section>
Example #13
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] = htmlGmp::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'] = utilsGmp::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 .= __($p['label']) . htmlGmp::text($name . '[' . $i . '][' . $key . ']', $paramsForText);
             }
             $res .= $remove . '</div>';
             $i++;
         } while ($i < count($params['value']));
         $res .= $add;
         $res .= '</div>';
     }
     return $res;
 }
?>
:
								</label>
							</th>
							<td>
								<?php 
echo htmlGmp::text('marker_group[title]', array('value' => $this->editMarkerGroup ? $this->marker_group['title'] : '', 'attrs' => 'style="width: 60%;" id="marker_group_title"', 'required' => true));
?>
								<button class="button" id="gmpMgrSaveBtn">
									<i class="fa fa-save"></i>
									<?php 
_e('Save', GMP_LANG_CODE);
?>
								</button>
							</td>
						</tr>
					</table>
					<?php 
echo htmlGmp::hidden('mod', array('value' => 'marker_groups'));
?>
					<?php 
echo htmlGmp::hidden('action', array('value' => 'save'));
?>
					<?php 
echo htmlGmp::hidden('marker_group[id]', array('value' => $this->editMarkerGroup ? $this->marker_group['id'] : ''));
?>
				</form>
			</div>
		</div>
	</div>
</section>
Example #15
0
	<?php 
foreach ($this->stylesList as $s) {
    ?>
	<li class="gmpTemplatePrevShell gmpTemplatePrevShell-existing gmpTemplatePrevShell-<?php 
    echo $s['code'];
    ?>
" data_code="<?php 
    echo $s['code'];
    ?>
">
		<h2 style="text-align: center; color: #454545"><?php 
    echo $s['label'];
    ?>
</h2><hr />
		<?php 
    echo htmlGmp::img($s['prev_img'], false, array('attrs' => 'class="gmpAdminTemplateImgPrev"'));
    ?>
<hr />
		<input type="submit" class="button button-primary button-large" value="<?php 
    langGmp::_e('Available in PRO');
    ?>
"  data_code="<?php 
    echo $s['code'];
    ?>
">
	</li>
	<?php 
}
?>
	</ul>
</div>
Example #16
0
					<button class="btn btn-success" id="gmpSaveNewMap"  disabled="disabled">
						<span class="gmpIcon gmpIconSuccess"></span>
						<?php 
langGmp::_e('Save Map');
?>
					</button>	
				</a>
			</li>
		</ul>
	</div>
	<div class="gmpNewMapForms">
		<div class="gmpNewMapTabs tab-content">
			<div class="" id="newMapSubmitBtn">
				<div class="gmpNewMapOperations">
					<?php 
htmlGmp::button(array('attrs' => ' type="submit" class="btn btn-success" id="gmpSaveNewMap" disabled="disabled" ', 'value' => '<span class="gmpIcon gmpIconSuccess"></span>Save Map'));
?>
					<div id="gmpNewMapMsg"></div>
				</div>
			</div>
			<div class="tab-pane active" id="gmpMapProperties">
				<?php 
echo $this->mapForm;
?>
			</div>
			<div class="tab-pane" id="gmpAddMarkerToNewMap">
				<?php 
echo $this->markerForm;
?>
			</div>
		</div>  
Example #17
0
echo htmlGmp::selectbox('shortcodeType', array('optionsGmp' => $this->shortcodesSelectOptions));
?>
</div>
            <div class="toeInsertShortcodeAtts"></div>
        </div>
        <h3><a href="#" title="category"><?php 
langGmp::_e('Category');
?>
</a></h3>
        <div>
            <div class="toeInsertShortcodeAtts"></div>
        </div>
        <h3><a href="#" title="product"><?php 
langGmp::_e('Product');
?>
</a></h3>
        <div>
            <div class="toeInsertShortcodeAtts"></div>
        </div>
    </div>
    <div>
        <?php 
echo htmlGmp::hidden('newContent');
?>
        <?php 
echo htmlGmp::submit('insert', array('value' => langGmp::_('Insert')));
?>
    </div>
<?php 
echo htmlGmp::formEnd();
Example #18
0
_e('Image width (in px)', GMP_LANG_CODE);
?>
:</label>
		<?php 
echo htmlGmp::text($this->widget->get_field_name('img_width'), array('attrs' => 'id="' . $this->widget->get_field_id('img_width') . '"', 'value' => $this->data['img_width']));
?>
<br />
		<label for="<?php 
echo $this->widget->get_field_id('img_height');
?>
"><?php 
_e('Image height (in px)', GMP_LANG_CODE);
?>
:</label>
		<?php 
echo htmlGmp::text($this->widget->get_field_name('img_height'), array('attrs' => 'id="' . $this->widget->get_field_id('img_height') . '"', 'value' => $this->data['img_height']));
?>
<br />
	</div>
	<script type="text/javascript">
	// <!--
	jQuery(function(){
		function checkOpenImgParams() {
			if(jQuery('#<?php 
echo $this->widget->get_field_id('display_as_img');
?>
').attr('checked')) {
				jQuery('#<?php 
echo $this->widget->get_field_id('img_params_shell');
?>
').show();
Example #19
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 .= __($key) . ':<br />';
             $output .= htmlGmp::text('params[attr][' . $key . ']', array('value' => $value)) . '<br />';
         }
     } else {
         $output .= __('class', GMP_LANG_CODE) . ':<br />';
         $output .= htmlGmp::text('params[attr][class]', array('value' => '')) . '<br />';
         $output .= __('id', GMP_LANG_CODE) . ':<br />';
         $output .= htmlGmp::text('params[attr][id]', array('value' => '')) . '<br />';
     }
     return $output;
 }
Example #20
0
?>
<br />
	<label for="<?php 
echo $this->widget->get_field_id('height');
?>
"><?php 
langGmp::_e('Widget Map height');
?>
:</label>
    <?php 
echo htmlGmp::text($this->widget->get_field_name('height'), array('attrs' => 'id="' . $this->widget->get_field_id('height') . '"', 'value' => $this->data['height']));
?>
<br />
	<label for="<?php 
echo $this->widget->get_field_id('display_as_img');
?>
"><?php 
langGmp::_e('Display as image');
?>
:</label>
	
    <?php 
echo htmlGmp::checkbox($this->widget->get_field_name('display_as_img'), array('attrs' => 'id="' . $this->widget->get_field_id('display_as_img') . '"', 'checked' => isset($this->data['display_as_img'])));
?>
<br />
	<i><?php 
langGmp::_e('Map will be displayed as image at sidebar, on click - will be opened in popup');
?>
</i><br />
	
</p>