Changeset 715428
- Timestamp:
- 05/20/2013 02:56:02 AM (13 years ago)
- Location:
- soldpress/branches/0.9.5A
- Files:
-
- 1 added
- 5 edited
-
general.php (modified) (1 diff)
-
images/realtor.jpg (added)
-
settings.php (modified) (7 diffs)
-
single-sp_property.php (modified) (7 diffs)
-
style/soldpress.css (modified) (1 diff)
-
theme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
soldpress/branches/0.9.5A/general.php
r715144 r715428 70 70 } 71 71 72 72 73 ?> -
soldpress/branches/0.9.5A/settings.php
r715316 r715428 15 15 register_setting( 'sc-settings-credential', 'sc-language' ); 16 16 register_setting( 'sc-settings-sync', 'sc-sync-enabled' ); 17 register_setting( 'sc-settings-layout', 'sc-layout-agentlisting' ); 18 register_setting( 'sc-settings-layout', 'sc-layout-ariealmap' ); 19 register_setting( 'sc-settings-layout', 'sc-layout-streetviewmap' ); 20 register_setting( 'sc-settings-layout', 'sc-layout-primarycolor' ); 21 register_setting( 'sc-settings-layout', 'sc-layout-secondarycolor' ); 22 register_setting( 'sc-settings-layout', 'sc-layout-analyticsclick' ); 23 register_setting( 'sc-settings-layout', 'sc-layout-analyticsview' ); 24 register_setting( 'sc-settings-layout', 'sc-layout-soldpresslogo' ); 25 17 26 } 18 27 … … 47 56 <td> 48 57 <select name="sc-language" class="" id="sc-language"> 49 <option value="http://data.crea.ca/Login.svc/Login" <?php selected( 'http://data.crea.ca/Login.svc/Login', get_option( 'sc-url' ) ); ?> Production</option>58 <option value="http://data.crea.ca/Login.svc/Login" <?php selected( 'http://data.crea.ca/Login.svc/Login', get_option( 'sc-url' ) ); ?>>Production</option> 50 59 <option value="http://sample.data.crea.ca/Login.svc/Login" <?php selected( 'http://sample.data.crea.ca/Login.svc/Login', get_option( 'sc-url' ) ); ?>>Development</option> 51 60 </select> … … 77 86 <tr valign="top"> 78 87 <th scope="row">Debug Mode</th> 79 <td><input name="sc-debug" id ="sc-sync-enabled" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-debug' ) ); ?> /></td> 88 <td><input name="sc-debug" id ="sc-debug" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-debug' ) ); ?> /></td> 89 </tr> 90 <tr valign="top"> 91 <th scope="row">Sync Enabled</th> 92 <td><input name="sc-sync-enabled" id ="sc-sync-enabled" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-sync-enabled' ) ); ?> /></td> 80 93 </tr> 81 94 </table> … … 136 149 echo '<tr>'; 137 150 //echo '<th scope="row" class="check-column"><input type="checkbox" name="schedules[]" class="entries" value="1"></th>'; 138 echo '<td><strong>'.$job.'</strong><div class="row-actions" style="margin:0; padding:0;"><a href=" /wp-admin/options-general.php?page=soldpress&tab=sync_options&spa=runevt&job='.$job.'">Run Now</a></div></td>';151 echo '<td><strong>'.$job.'</strong><div class="row-actions" style="margin:0; padding:0;"><a href="options-general.php?page=soldpress&tab=sync_options&spa=runevt&job='.$job.'">Run Now</a></div></td>'; 139 152 echo '<td>'.date("r", $key).'</td>'; 140 153 $schedule = $value[key($value)]; … … 161 174 <?php if( $active_tab == 'layout_options' ) { ?> 162 175 176 <form method="post" action="options.php"> 177 <?php settings_fields( 'sc-settings-layout' ); ?> 163 178 <h3 class="title">Agent</h3> 164 179 <table class="form-table"> 165 180 <th scope="row">Display Listing Agent</th> 166 181 <td> 167 <input name="sc-layout-agentlisting" id ="sc-layout-agentlisting" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-layout-agentlisting' ) ); ?> />182 <input name="sc-layout-agentlisting" id ="sc-layout-agentlisting" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-layout-agentlisting',1 ) ); ?> /> 168 183 </td> 169 184 </tr> … … 173 188 <th scope="row">Display Arieal Map</th> 174 189 <td> 175 <input name="sc-layout-ariealmap" id ="sc-layout-ariealmap" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-layout-ariealmap' ) ); ?> />190 <input name="sc-layout-ariealmap" id ="sc-layout-ariealmap" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-layout-ariealmap',1 ) ); ?> /> 176 191 </td> 177 192 </tr> 178 193 <th scope="row">Display StreetView Map</th> 179 194 <td> 180 <input name="sc-layout-streetviewmap" id ="sc-layout-streetviewmap" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-layout-streetviewmap' ) ); ?> />195 <input name="sc-layout-streetviewmap" id ="sc-layout-streetviewmap" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-layout-streetviewmap',0 ) ); ?> /> 181 196 </td> 182 197 </tr> … … 186 201 <th scope="row">Primary Color</th> 187 202 <td> 188 <input name="sc-layout-primarycolor" id ="sc- sync-enabled" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-debug' ) ); ?>/>203 <input name="sc-layout-primarycolor" id ="sc-layout-primarycolor" value="" /> 189 204 </td> 190 205 </tr> 191 206 <th scope="row">Secondary Color</th> 192 207 <td> 193 <input name="sc-layout-secondarycolor" id ="sc- sync-enabled" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-debug' ) ); ?>/>194 </td> 195 </tr> 196 </table> 197 <h3 class="title">Relator(tm) Analy ics</h3>198 <table class="form-table"> 199 <th scope="row">Click Anal tics</th>200 <td> 201 <input name="sc-layout-an yalticclick" id ="sc-sync-enabled" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-debug') ); ?> />202 </td> 203 </tr> 204 <th scope="row">View Anal tics</th>205 <td> 206 <input name="sc-layout-an yalticview" id ="sc-sync-enabled" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-debug') ); ?> />208 <input name="sc-layout-secondarycolor" id ="sc-layout-secondarycolor" value="" /> 209 </td> 210 </tr> 211 </table> 212 <h3 class="title">Relator(tm) Analytics</h3> 213 <table class="form-table"> 214 <th scope="row">Click Analytics</th> 215 <td> 216 <input name="sc-layout-analyticsclick" id ="sc-layout-analyticsclick" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-layout-analyticsclick',0) ); ?> /> 217 </td> 218 </tr> 219 <th scope="row">View Analytics</th> 220 <td> 221 <input name="sc-layout-analyticsview" id ="sc-layout-analyticsview" value="1" type="checkbox" <?php checked( '1', get_option( 'sc-layout-analyticsview',0 ) ); ?> /> 207 222 </td> 208 223 </tr> 209 224 </table> 210 225 <?php submit_button(); ?> 226 </form> 211 227 <?php } ?> 212 228 <?php if( $active_tab == 'about_options' ) { ?> 213 229 A product of Sanskript Solution, Inc. 214 230 215 Support 216 217 Crea 231 Licsense Key: "Premium Beta" 232 218 233 219 234 <?php } ?> -
soldpress/branches/0.9.5A/single-sp_property.php
r715316 r715428 27 27 28 28 <?php get_header(); ?> 29 <style>30 31 32 </style>33 29 <h2><?php the_title(); ?></h2> 34 30 <div class="well2"> … … 45 41 ?> 46 42 </div> 43 <div id="disclaimer1">Test</div> 44 <script> 45 46 var j = jQuery.noConflict() 47 if (j('#disclaimer').length > 0) { 48 alert('g'); 49 if (j.cookie('disclaimer_accepted') != 'yes') { 50 j('#disclaimer').modal({backdrop:'static',keyboard:false}) 51 52 j('#disclaimer').on('hide',function(){ 53 j.cookie('disclaimer_accepted','yes',{expires:30}); 54 }) 55 } 56 57 } 58 </script> 59 47 60 <div class="well3"> 48 61 <div class="row"> … … 253 266 </table> 254 267 </div> 255 <script src="http s://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&"></script> <!-- &language=ja -->268 <script src="http://maps.google.com/maps/api/js?sensor=false&.js"></script> 256 269 <script> 257 270 // Enable the visual refresh 258 google.maps.visualRefresh = true;271 //google.maps.visualRefresh = true; 259 272 260 273 var address = '<?php echo get_post_meta($post->ID,'dfd_UnparsedAddress',true); ?> , <?php echo get_post_meta($post->ID,'dfd_StateOrProvince',true); ?> <?php echo get_post_meta($post->ID,'dfd_PostalCode',true); ?>'; 261 262 263 var map; 264 274 var map; 265 275 function initialize() { 266 276 var geocoder = new google.maps.Geocoder(); … … 272 282 center: latlng, 273 283 mapTypeId: google.maps.MapTypeId.ROADMAP, 274 //streetViewControl: true284 streetViewControl: true 275 285 }; 276 286 287 277 288 map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions); 278 /*279 mapstreet = new google.maps.Map(document.getElementById('map-street'), mapOptions);280 var panoramaOptions = {281 position: map.latlngbyaddress,282 pov: {283 heading: 0,284 pitch: 0,285 zoom: 1286 },287 visible: true288 };289 289 290 var panorama = new google.maps.StreetViewPanorama(document.getElementById("map-street"), panoramaOptions); 291 mapstreet.setStreetView(panorama); 292 panorama.setVisible(true);*/ 290 var marker = new google.maps.Marker({ 291 position:results[0].geometry.location, 292 map: map, 293 scrollwheel: false, 294 streetViewControl:true 295 }); 293 296 297 298 <?php if(get_option( 'sc-layout-streetviewmap',false)){ ?> 299 300 var mapOptionsStreet = { 301 zoom: 14, 302 center: latlng, 303 mapTypeId: google.maps.MapTypeId.ROADMAP, 304 streetViewControl: true 305 }; 306 307 mapstreet = new google.maps.Map(document.getElementById('map-street'), mapOptionsStreet); 308 309 var panoramaOptions = { 310 position: results[0].geometry.location, 311 pov: { 312 heading: 0, 313 pitch: 0, 314 zoom: 1 315 }, 316 visible: true 317 }; 318 319 var panorama = new google.maps.StreetViewPanorama(document.getElementById("map-street"), panoramaOptions); 320 mapstreet.setStreetView(panorama); 321 panorama.setVisible(true); 322 <?php }; ?> 294 323 }else{ 295 324 // alert("Geocode was not successful for the following reason: " + status); … … 299 328 300 329 google.maps.event.addDomListener(window, 'load', initialize); 301 </script> 330 </script> 331 <style> 332 333 </style> 334 335 <?php if(get_option('sc-layout-ariealmap',true)){ ?> 302 336 <table class="table table-striped table-condensed "> 303 337 <caption>Map</caption> … … 305 339 <tr> 306 340 <td> 307 <!--<div id="map-street" class="well-map"></div>--> 308 <div id="map-canvas" class="well-map"></div> 341 <?php if(get_option('sc-layout-streetviewmap',false)){ ?> 342 <div id="map-street" class="well-map"></div> 343 <?php }?> 344 345 <div id="map-canvas" class="well-map"></div> 346 309 347 </td> 310 348 </tr> 311 349 </tbody> 312 350 </table> 351 <?php }?> 313 352 </div> 314 315 <div class="span4 well2"> 353 <?php if(get_option('sc-layout-agentlisting',true)){ ?> 354 <div class="span4 well2"> 316 355 <!-- Agent --><h3>Agent Details</h3> 317 356 <div class="row-fluid"> … … 389 428 <p><small>Last Modified<?php echo get_post_meta($post->ID,'dfd_ModificationTimestamp',true); ?></small></p> 390 429 </div> 391 </div> 392 </div> 430 </div> 431 </div> 432 <?php }?> 393 433 </div> 394 434 </div> -
soldpress/branches/0.9.5A/style/soldpress.css
r715144 r715428 1 2 #map-street label { width: auto; display:inline; } 3 #map-street img {max-width: none;} 4 #map-canvas img {max-width: none;} 5 #map-canvas label { width: auto; display:inline; } 6 1 7 .well2 { 2 8 min-height: 20px; -
soldpress/branches/0.9.5A/theme.php
r715316 r715428 19 19 'jquery.cycle2', 20 20 plugins_url( 'lib/jquery.cycle2/jquery.cycle2.min.js' , __FILE__ ), 21 array('jquery'), 22 '2', 23 true); 24 25 wp_enqueue_script( 26 'jquery.cycle2.carousel', 27 plugins_url( 'lib/jquery.cycle2/jquery.cycle2.carousel.js' , __FILE__ ), 21 28 array('jquery'), 22 29 '2',
Note: See TracChangeset
for help on using the changeset viewer.