Google maps in php

<script src=”http://maps.googleapis.com/maps/api/js?key=AIzaSyCHB-46cTJI56JgIi6kyKfG4CW7l5BclF4&sensor=false&libraries=places“></script> <script src=”js/jquery.geocomplete.min.js”></script> <script>     $(function () {         $(“#location”).geocomplete({             details: “.geo-details”,             detailsAttribute: “data-geo”         });     }); </script>   <input type=”text” name=”location” id=”location” class=”location form-control” placeholder=”Enter Location” value=”<?php echo $location; ?>” required=””>

Ck editor options

Description: <textarea cols=”80″ id=”editor_ckxhr” name=”description” placeholder=”Enter Description” id=”description” rows=”5″></textarea> <script type=”text/javascript”>             CKEDITOR.replace(‘editor_ckxhr’,                 {                           height: ‘300px’,        enterMode: CKEDITOR.ENTER_BR,                 … Read moreCk editor options

If home page then do some operation

<?php // If it is home page then do some operation:: $pathSlash = explode(“/”,$_SERVER[‘PHP_SELF’]);  if(end($pathSlash)==”” || end($pathSlash)==”index.php”) {    //It is home page    //Do operation } ?>

Close current window and Reload parent window

Close current window and Reload parent window:: <script type=”text/javascript”> window.close();       window.opener.location.reload(); </script> This script works only if the new window is opened in new tab by clicking parent window.Mainly used for popups.