Ejemplo n.º 1
0
			<?php langGmp::_e('Refresh')?>
		</a>
	</div><?php */
?>
	<div class="gmpMTablecon">
		<?php 
echo @$this->tableContent;
?>
	</div>
</div>

<div class="gmpMarkerEditForm tab-pane markerListConOpts">
	<div class="return-marker-list">
		<a class="btn btn-link gmpCancelMarkerEditing" id="gmpCancelMarkerEditing">
			<?php 
langGmp::_e('Back To Markers List');
?>
		</a>
	</div>
	<div id="gmpMarkerSingleFormShell" style="float: left; width: 40%;"></div>
	<?php 
//echo $this->markerForm;
?>
	
	<div class="gmp-marker-right-block" style="width: 55%;">
		<div class="gmpMapForMarkerEdit" id="gmpMapForMarkerEdit">

		</div>
		<div style="clear:both"></div>
		<?php 
dispatcherGmp::doAction('underMapAdminFormData');
Ejemplo n.º 2
0
<?php

if (!empty($this->marker['map'])) {
    ?>
		<a href="#" onclick="gmpShowEditMap(<?php 
    echo $this->marker['map']['id'];
    ?>
); return false;"><?php 
    echo $this->marker['map']['title'];
    ?>
</a>
	<?php 
} else {
    langGmp::_e('No maps contain this marker');
}
Ejemplo n.º 3
0
<?php

langGmp::_e('No Templates were found');
Ejemplo n.º 4
0
					msgElID: 'toeSendUsageStatMsg',
					data: {page: 'promo_ready', action: 'hideUsageStat', reqType: 'ajax'},
					onSuccess: function(res) {
						if(!res.error) {
							t.element.pointer('close');
						}
					}
				});
			});
			return button;
		},
		close: function() {}
	}).pointer('open');

	jQuery('#toeHideSendUsageStatButt').after('<a id="toeSendUsageStatButt" class="button-primary">' + '<?php 
langGmp::_e('Yes, send statistics');
?>
' + '</a><div id="toeSendUsageStatMsg"></div>');

	jQuery('#toeSendUsageStatButt').click(function(){
		var self = this;
		jQuery.sendFormGmp({
			msgElID: 'toeSendUsageStatMsg',
			data: {page: 'promo_ready', action: 'sendUsageStat', reqType: 'ajax'},
			onSuccess: function(res) {
				if(!res.error) {
					setTimeout(function(){
						jQuery(self).parents('.wp-pointer:first').hide('slow');
					}, 1000);
				}
			}
Ejemplo n.º 5
0
<?php

echo $this->marker['address'];
?>
<br />
<pre><?php 
langGmp::_e('Latitude');
?>
 : <?php 
echo $this->marker['coord_y'];
?>
<br /><?php 
langGmp::_e('Longitude');
?>
 : <?php 
echo $this->marker['coord_x'];
?>
<br /></pre>
Ejemplo n.º 6
0
                    </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">
                <p><?php 
langGmp::_e('- If you like our plugin, please rate it five stars at');
?>
 <a href="http://wordpress.org/extend/plugins/ready-ecommerce/">wordpress.org</a></p>
                <p><?php 
langGmp::_e('- If you don\'t, please contact us, showing us our imperfection. We\'ll try to improve our service.');
?>
</p>
                <p><?php 
langGmp::_e('- New ' . GMP_VERSION . ' RC-1 version realised!');
?>
</p>
            </div>
        </div>
    </div>
</div>
</div></div></div>
        
        
Ejemplo n.º 7
0
?>
: <?php 
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 
Ejemplo n.º 8
0
langGmp::_e('Markers List');
?>
</label>
                        <br />
                        <table id="gmpMapMarkersTable" class="gmpTable dataTable" width="100%">
                            <thead>
                                <tr>
                                    <th><?php 
langGmp::_e('ID');
?>
</th>
                                    <th><?php 
langGmp::_e('Name');
?>
</th>
                                    <th><?php 
langGmp::_e('Lat / Lon');
?>
</th>
                                </tr>
                            </thead>
                            <tbody></tbody>
                        </table>
                    </div>
                </div>
            </div>
		</div>
		<!-- Map End-->
    </div>
</div>    
   
Ejemplo n.º 9
0
        break;
}
foreach ($formData as $key => $val) {
    if (is_array($val)) {
        foreach ($val as $subKey => $subVal) {
            echo htmlGmp::hidden($key . '[' . $subKey . ']', array('value' => $subVal));
        }
    } else {
        echo htmlGmp::hidden($key, array('value' => $val));
    }
}
?>
        <table width="100%">
            <tr>
                <td><?php 
langGmp::_e('Delete All data include Maps and Markers');
?>
:</td>
                <td><?php 
echo htmlGmp::radiobuttons('deleteAllData', array('options' => array('No', 'Yes')));
?>
</td>
            </tr>
        </table>
    <?php 
echo htmlGmp::submit('toeGo', array('value' => langGmp::_('Done')));
?>
    <?php 
echo htmlGmp::formEnd();
?>
    </div>
Ejemplo n.º 10
0
			</div>
		</div>
		<div class="gmpFormRow">
			<label for="marker_opts[params][more_info_link]"><?php 
langGmp::_e('Add "More info" in description window');
?>
</label> 
			<div class="gmpFormElemCon">
				<?php 
echo htmlGmp::checkboxHiddenVal('marker_opts[params][more_info_link]', array('attrs' => 'class="gmpHintElem"', 'hint' => langGmp::_('If enabled - in description window by default will be only image or part of description, and added "More Info" link, when click on it - there will be full descrtiption')));
?>
			</div>
		</div>
		<div class="gmpFormRow">
			<label for="marker_opts[params][icon_fit_standard_size]"><?php 
langGmp::_e('Fit icon in standard size');
?>
</label> 
			<div class="gmpFormElemCon">
				<?php 
echo htmlGmp::checkboxHiddenVal('marker_opts[params][icon_fit_standard_size]', array('attrs' => 'class="gmpHintElem"', 'hint' => langGmp::_('If enabled - icon width will be always standard - 18, width - from proportion, this parameter is for retina display')));
?>
			</div>
		</div>
		<?php 
echo htmlGmp::hidden('marker_opts[id]');
?>
		<?php 
echo htmlGmp::hidden('marker_opts[map_id]');
?>
		<?php 
Ejemplo n.º 11
0
			<label for="gmpNewMap_Infowindow_width" class="gmpFormLabel">
				<?php 
langGmp::_e('InfoWindow Width');
?>
			</label>
		</div>  

		<div class="gmpFormRow">
			<div class="gmpFormElemCon">
			<?php 
echo htmlGmp::text('map_opts[infowindow_height]', array('attrs' => 'class="gmpInputSmall gmpMapInfoWindowHeightOpt gmpHintElem"  id="gmpNewMap_Infowindow_height"', 'hint' => langGmp::_('InfoWindow Height'), 'value' => '100'));
?>
			</div>
			<label for="gmpNewMap_Infowindow_height" class="gmpFormLabel">
				<?php 
langGmp::_e('InfoWindow Height');
?>
			</label>
		</div>
	</div>
	<?php 
dispatcherGmp::doAction('editMapFormEnd');
?>
	
	<?php 
echo htmlGmp::hidden('map_opts[id]');
?>
	<?php 
echo htmlGmp::hidden('map_opts[map_center][coord_x]');
?>
	<?php 
Ejemplo n.º 12
0
<a class="btn btn-warning gmpEditBtn gmpListActBtn" id="<?php 
echo $this->marker['id'];
?>
" onclick="gmpEditMarkerItem(<?php 
echo $this->marker['id'];
?>
); return false;">
	<span class="gmpIcon gmpIconEdit"></span>
	<?php 
langGmp::_e('Edit');
?>
</a>
<a class="btn btn-danger gmpRemoveBtn gmpListActBtn" id="<?php 
echo $this->marker['id'];
?>
" onclick="gmpRemoveMarkerItem(<?php 
echo $this->marker['id'];
?>
); return false;">
	<span class="gmpIcon gmpIconRemove"></span>
	<?php 
langGmp::_e('Remove');
?>
</a>
<span id="gmpMarkerListTableLoader_<?php 
echo $this->marker['id'];
?>
"></span>
Ejemplo n.º 13
0
            <div class="gmpFormRow">
				<label for="group_description" class="gmpFormLabel"><?php 
langGmp::_e("Group Description");
?>
</label>
				<div class='gmpFormElemCon'>
				<?php 
echo htmlGmp::textarea('description', array('attrs' => 'id="group_description" class="gmpInputLarge gmpHintElem"', 'hint' => langGmp::_('Description For Goup')));
?>
	            </div>
            </div>
            <div class="gmpMarkerEditformBtns">
				<a id="gmpSave_group_button" class="btn btn-success" onclick="return gmpSaveGroup()">
					<span class="gmpIcon gmpIconAdd"></span>
					<?php 
langGmp::_e('Save');
?>
				</a>
				<a  id="gmpReset_group_button" class="btn btn-danger" onclick="gmpResetGroupForm()">
					<span class="gmpIcon gmpIconReset"></span><?php 
langGmp::_e('Reset');
?>
				</a>
               <div id="gmpGroupOptsMsg"></div>
			</div>
        </fieldset>
		<?php 
echo htmlGmp::formEnd();
?>
    </div>
</div>
Ejemplo n.º 14
0
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;
        ?>
</div>
	<?php 
    }
Ejemplo n.º 15
0
foreach ($this->tabsData as $tId => $tData) {
    ?>
		<li class="<?php 
    echo $tId;
    ?>
 ">
			<a href="#<?php 
    echo $tId;
    ?>
">
				<span class="gmpIcon gmpIcon<?php 
    echo $tId;
    ?>
"></span>
				<?php 
    langGmp::_e($tData['title']);
    ?>
			</a>
		</li>
		<?php 
}
?>
	</ul>
	<?php 
foreach ($this->tabsData as $tId => $tData) {
    ?>
	<div id="<?php 
    echo $tId;
    ?>
" class="tab-pane" >
		<?php 
Ejemplo n.º 16
0
	<?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>
Ejemplo n.º 17
0
		return false;
	});*/
});
// -->
</script>
<div class="container">
	<form id="gmpWelcomePageFindUsForm" method="GET">
		<h1>
			<?php 
langGmp::_e('Welcome to');
?>
			<?php 
echo GMP_WP_PLUGIN_NAME;
?>
			<?php 
langGmp::_e('Version');
?>
			<?php 
echo GMP_VERSION;
?>
!
		</h1>
            
		<div class="clear"></div>
		<div class="about-message">
			This is first start up of the <?php 
echo GMP_WP_PLUGIN_NAME;
?>
 plugin.<br />
			If you are newbie - check all features on that page, if you are guru - please correct us.
		</div>
Ejemplo n.º 18
0
<?php

$options = array();
foreach ($this->map['html_options'] as $k => $v) {
    $options[] = $k . ': ' . $v;
}
echo implode(', ', $options);
?>
<hr/>
<div class="gmpShortCodePreview">
   <p><b><?php 
langGmp::_e('Shortcode');
?>
:</b></p>
   <span><?php 
echo $this->generatedShortcode;
?>
</span>
</div>
Ejemplo n.º 19
0
    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>
<!--Additional pro controls-->
<div class="gmpFormRow">
	<a href="<?php 
echo $this->proLink;
Ejemplo n.º 20
0
                        <img class="toeTplPicturePrev" src="<?php 
    echo $t->prevImg;
    ?>
" /><br />
                        <a href="<?php 
    echo $code;
    ?>
" class="toeTplActivateLink"><?php 
    langGmp::_e('Activate');
    ?>
</a>
                        <a href="<?php 
    echo $code;
    ?>
" class="toeTplDeactivateLink"><?php 
    langGmp::_e('Deactivate');
    ?>
</a><br /><br />
                        <div><?php 
    echo $t->description;
    ?>
</div>
                    </div>
                </td>
<?php 
    if ($i % $tplPerRow == $tplPerRow - 1) {
        ?>
            </tr>
<?php 
    }
    $i++;
Ejemplo n.º 21
0
                      <span class='gmpIcon gmpIconEdit '></span>
                      <?php 
    langGmp::_e("Edit");
    ?>
</a>
                  <a class='btn btn-danger gmpRemoveBtn gmpListActBtn' id='<?php 
    echo $group['id'];
    ?>
'
                     onclick="gmpRemoveGroupItem(<?php 
    echo $group['id'];
    ?>
)">
                    <span class='gmpIcon gmpIconRemove '></span>
                      <?php 
    langGmp::_e("Remove");
    ?>
                  </a>
                  <span id="gmpGroupListTableLoader_<?php 
    echo $group['id'];
    ?>
"></span>
              </td>

          </tr> 

                  <?php 
}
?>
      </tbody>
  </table>   
Ejemplo n.º 22
0
<div class="gmpAdminFooterShell">
	<div class="gmpAdminFooterCell">
		<?php 
echo GMP_WP_PLUGIN_NAME;
?>
		<?php 
langGmp::_e('Version');
?>
:
		<a target="_blank" href="<?php 
echo $this->getModule()->preparePromoLink('http://readyshoppingcart.com/product/google-maps-plugin/');
?>
"><?php 
echo GMP_VERSION;
?>
</a>
	</div>
	<div class="gmpAdminFooterCell">|</div>

	
	<div class="gmpAdminFooterCell">
		<a target="_blank" href=" http://wordpress.org/support/plugin/google-maps-ready"><?php 
langGmp::_e('Support');
?>
</a>
	</div>
	<div class="gmpAdminFooterCell">|</div>
	<div class="gmpAdminFooterCell">
		Add your <a target="_blank" href="https://wordpress.org/support/view/plugin-reviews/google-maps-ready?rate=5#postform">&#9733;&#9733;&#9733;&#9733;&#9733;</a> on wordpress.org.
	</div>
</div>
Ejemplo n.º 23
0
 /**
  * Check permissions for action in controller by $code and made corresponding action
  * @param string $code Code of controller that need to be checked
  * @param string $action Action that need to be checked
  * @return bool true if ok, else - should exit from application
  */
 public function checkPermissions($code, $action)
 {
     if ($this->havePermissions($code, $action)) {
         return true;
     } else {
         exit(langGmp::_e('You have no permissions to view this page'));
     }
 }
Ejemplo n.º 24
0
					</span>
				</a>
			</li>
			<li class="active">
				<a id="gmpTabForNewMapOpts" class="btn btn-primary gmpTabForNewMapOpts" href="#gmpMapProperties">
					<span class="gmpTabElemSimpTxt" disabled="disabled">
						<span class="gmpIconSimpMarker"></span>
						<b><?php 
langGmp::_e('Map Properties');
?>
</b>
					</span>
					<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>
Ejemplo n.º 25
0
<a class="gmpMapEditBtn btn btn-warning gmpEditBtn" onclick="gmpShowEditMap(<?php 
echo $this->map['id'];
?>
); return false;">
	<span class="gmpIcon gmpIconEdit"></span>
	<?php 
langGmp::_e('Edit');
?>
</a>
<a class="gmpMapRemoveBtn gmpRemoveBtn btn btn-danger" onclick="gmpRemoveMap(<?php 
echo $this->map['id'];
?>
); return false;">
	<span class="gmpIcon gmpIconRemove"></span>
	<?php 
langGmp::_e('Delete');
?>
</a>
<div id="gmpRemoveElemLoader__<?php 
echo $this->map['id'];
?>
"></div>
Ejemplo n.º 26
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>