Changeset 787415
- Timestamp:
- 10/14/2013 06:37:52 AM (12 years ago)
- Location:
- casasync/trunk
- Files:
-
- 1 added
- 1 deleted
- 12 edited
-
.DS_Store (modified) (previous)
-
archive-template-single-default.txt (modified) (1 diff)
-
archive.php (modified) (1 diff)
-
archive_single.php (modified) (1 diff)
-
assets/css/casasync.css (modified) (4 diffs)
-
assets/css/casasync_ie.css (added)
-
casasync.php (modified) (1 diff)
-
changelog.php (deleted)
-
includes/core.php (modified) (9 diffs)
-
index.php (modified) (1 diff)
-
languages/de_DE.php (modified) (2 diffs)
-
languages/it_CH.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
single.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
casasync/trunk/archive-template-single-default.txt
r739083 r787415 4 4 {if_thumbnail} 5 5 <div class="span5 archive-property-thumbnail"> 6 {if_availabilitylabel}<div class="availability-outerlabel">{availabilitylabel}</div>{end_if_availabilitylabel} 6 7 {if_permalink} 7 8 <a href="{permalink}" class="thumbnail"> -
casasync/trunk/archive.php
r739770 r787415 128 128 } else { 129 129 //must be another country? 130 echo "<optgroup label='" . countrycode_to_countryname($term->name) . "''><option class='lvl2' value='" . $term2->slug . "' " . (in_array($term2->slug, $locations) ? 'SELECTED' : '') . ">" . '' . $term2->name . ' (' . $term2->count . ')' . "</option></optgroup>"; 131 } 132 } 130 $otherCountry[$term->name][] = $term2; 131 } 132 } 133 134 //list all other countries in seperate optgroup 135 foreach ( $otherCountry as $countryCode => $country ) { 136 echo "<optgroup label='" . countrycode_to_countryname($countryCode) . "''>"; 137 foreach ( $country as $location ) { 138 echo "<option class='lvl2' value='" . $location->slug . "' " . (in_array($location->slug, $locations) ? 'SELECTED' : '') . ">" . '' . $location->name . ' (' . $location->count . ')' . "</option>"; 139 } 140 echo "</optgroup>"; 141 } 142 133 143 if (!$terms_lvl1_has_children) { 134 144 $no_child_lvl1 .= "<option value='" . $term->slug . "' " . (in_array($term->slug, $locations) ? 'SELECTED' : '') . ">" . $term->name . ' (' . $term->count . ')' . "</option>"; -
casasync/trunk/archive_single.php
r756165 r787415 88 88 switch ($availability) { 89 89 case 'available': 90 $availability_label = 'Verfügbar';90 $availability_label = __('Available', 'casasync'); 91 91 break; 92 92 case 'reserved': 93 $availability_label = 'Reserved';93 $availability_label = __('Reserved', 'casasync'); 94 94 break; 95 95 case 'planned': 96 $availability_label = 'In Planung';96 $availability_label = __('Planned', 'casasync'); 97 97 break; 98 98 case 'under-construction': 99 $availability_label = 'Im Bau';99 $availability_label = __('Unser construction', 'casasync'); 100 100 break; 101 101 case 'reference': 102 $availability_label = 'Referenz';102 $availability_label = __('Reference', 'casasync'); 103 103 break; 104 104 -
casasync/trunk/assets/css/casasync.css
r756165 r787415 59 59 right: 90%; 60 60 background-color: black; 61 background-color: rgba(0,0,0,0.8); 61 /*background-color: rgba(0,0,0,0.7);*/ 62 background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NkYGDYDAAAvQC1UcyxoAAAAABJRU5ErkJggg==); 62 63 color:white; 63 64 font-weight: bold; … … 227 228 padding:10px; 228 229 background-color: black; 229 background-color: rgba(0,0,0,0.7); 230 /*background-color: rgba(0,0,0,0.7);*/ 231 background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NkYGDYDAAAvQC1UcyxoAAAAABJRU5ErkJggg==); 230 232 color:white; 231 233 bottom:-150px; … … 250 252 line-height: 36px; 251 253 background-color: black; 252 background-color: rgba(0,0,0,0.7); 254 /*background-color: rgba(0,0,0,0.7);*/ 255 background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NkYGDYDAAAvQC1UcyxoAAAAABJRU5ErkJggg==); 253 256 color:white; 254 257 text-align: center; … … 257 260 258 261 .availability-label-reference, .availability-label-planned{ 259 background-color: rgba(0,0,50,0.7); 262 /*background-color: rgba(0,0,50,0.7);*/ 263 background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NkYDDaDAABIQDnWqVFZgAAAABJRU5ErkJggg==) repeat; 260 264 } 261 265 262 266 .availability-label-available{ 263 background-color: rgba(0,50,0,0.7); 267 /*background-color: rgba(0,50,0,0.7);*/ 268 background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2NkMGLYDAABUwDn/x5dvAAAAABJRU5ErkJggg==) repeat; 264 269 } 265 270 266 271 .availability-label-reserved{ 267 272 background-color: rgba(50,0,0,0.7); 273 background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2M0YmDYDAABhQDn0Y/8+wAAAABJRU5ErkJggg==) 268 274 } 269 275 -
casasync/trunk/casasync.php
r756165 r787415 454 454 function casasync_load_stylesheet(){ 455 455 wp_register_style( 'casasync-style', CASASYNC_PLUGIN_URL . 'assets/css/casasync.css' ); 456 wp_register_style( 'casasync-style-ie', CASASYNC_PLUGIN_URL . 'assets/css/casasync_ie.css' ); 457 $GLOBALS['wp_styles']->add_data( 'casasync-style-ie', 'conditional', 'IE' ); 456 458 wp_enqueue_style( 'casasync-style' ); 459 //wp_enqueue_style( 'casasync-style-ie' ); 457 460 } 458 461 if (get_option( 'casasync_load_stylesheet', 1 )) { -
casasync/trunk/includes/core.php
r756165 r787415 381 381 case 'gastronomy': return __('Gastronomy' ,'casasync');break; 382 382 case 'house': return __('House' ,'casasync');break; 383 case 'industrial': return __(' House' ,'Industrial Objects');break;383 case 'industrial': return __('Industrial' ,'casasync');break; 384 384 case 'parking': return __('Parking space' ,'casasync');break; 385 385 case 'plot': return __('Grundstück' ,'casasync');break; 386 386 case 'secondary-rooms': return __('Secondary rooms' ,'casasync');break; 387 387 case 'garden': return __('Garden' ,'casasync');break; 388 default: return $key;break;388 case 'commercial': return __('Commercial' ,'casasync');break; 389 389 } 390 390 } … … 605 605 'email' => 'E-Mail SPAM!', 606 606 'company' => __('Company', 'casasync'), //'Firma', 607 ' addr1' => __('Street', 'casasync'), //'Strasse',608 ' zip' => __('ZIP', 'casasync'), //'PLZ',609 ' city' => __('City', 'casasync'), //'Stadt',607 'street' => __('Street', 'casasync'), //'Strasse', 608 'postal_code' => __('ZIP', 'casasync'), //'PLZ', 609 'locality' => __('Locality', 'casasync'), //'Stadt', 610 610 'state' => __('Kanton', 'casasync'), //'Kanton', 611 611 'subject' => __('Subject', 'casasync'), //'Betreff', … … 623 623 'lastname', 624 624 'emailreal', 625 'subject' 625 'subject', 626 'street', 627 'postal_code', 628 'locality' 626 629 ); 627 630 $companyname = get_bloginfo( 'name' ); … … 662 665 $property_id = $casa_id_arr[1]; 663 666 667 664 668 //REM 665 669 if (get_option('casasync_remCat', false ) && get_option('casasync_remCat_email', false )) { 670 $categories = wp_get_post_terms( get_the_ID(), 'casasync_category'); 671 if ($categories) { 672 $type = casasync_convert_categoryKeyToLabel($categories[0]->name); 673 } else { 674 $type = ''; 675 } 676 666 677 $remCat = array( 667 678 0 => $_SERVER['SERVER_NAME'], … … 671 682 4 => get_post_meta( $post_id, 'seller_org_address_locality', true ), 672 683 5 => get_post_meta( $post_id, 'seller_person_givenname', true ) . ' ' . get_post_meta( $post_id, 'seller_person_familyname', true ), 673 6 => filter_input(INPUT_POST, 'emailreal', FILTER_VALIDATE_EMAIL),684 6 => get_option('casasync_remCat_email', ''), 674 685 7 => $property_id, 675 686 8 => get_permalink($post_id), 676 687 9 => get_post_meta($post_id, 'casasync_property_address_streetaddress', true), 677 688 10 => get_post_meta($post_id, 'casasync_property_address_locality', true), 678 11 => 'TYPE',689 11 => $type, 679 690 12 => 'DE', //LANG 680 691 13 => '', //anrede … … 682 693 15 => (isset($_POST['lastname']) ? $_POST['lastname'] : ''), 683 694 16 => (isset($_POST['company']) ? $_POST['company'] : ''), 684 17 => (isset($_POST[' addr1']) ? $_POST['addr1'] : ''),685 18 => (isset($_POST[' zip']) ? $_POST['zip'] : ''),686 19 => (isset($_POST[' city']) ? $_POST['city'] : ''),695 17 => (isset($_POST['street']) ? $_POST['street'] : ''), 696 18 => (isset($_POST['postal_code']) ? $_POST['postal_code'] : ''), 697 19 => (isset($_POST['locality']) ? $_POST['locality'] : ''), 687 698 20 => (isset($_POST['phone']) ? $_POST['phone'] : ''), 688 699 21 => (isset($_POST['mobile']) ? $_POST['mobile'] : ''), 689 700 22 => (isset($_POST['fax']) ? $_POST['fax'] : ''), 690 23 => (isset($_POST['email']) ? $_POST['email'] : ''),701 23 => filter_input(INPUT_POST, 'emailreal', FILTER_VALIDATE_EMAIL), 691 702 24 => (isset($_POST['message']) ? $_POST['message'] : ''), 692 703 25 => '', … … 783 794 784 795 foreach ($recipientses as $recipient2) { 785 if (wp_mail($recipient2[1], 'Neue Anfrage', $template, $header)) { 786 return '<p class="alert alert-success">Vielen Dank!</p>'; 796 if (isset($recipient2[1])) { 797 if (wp_mail($recipient2[1], 'Neue Anfrage', $template, $header)) { 798 return '<p class="alert alert-success">Vielen Dank!</p>'; 799 } else { 800 return '<p class="alert alert-error">Fehler!</p>'; 801 } 787 802 } else { 788 return '<p class="alert alert-error">Fehler!</p>'; 803 if (isset($remCat)) { 804 return '<p class="alert alert-success">Vielen Dank!</p>'; 805 } else { 806 return '<p class="alert alert-error">Fehler!</p>'; 807 } 789 808 } 790 809 } … … 818 837 <div class="span7"> 819 838 <label for="lastname"><?php echo __('Last name', 'casasync') ?></label> 820 <input name="lastname" class="span12" type="text" id="lastname" />839 <input name="lastname" class="span12" value="<?php echo (isset($_POST['lastname']) ? $_POST['lastname'] : '') ?>" type="text" id="lastname" /> 821 840 </div> 822 841 </div> … … 825 844 <div class="row-fluid"> 826 845 <label for="emailreal"><?php echo __('Email', 'casasync') ?></label> 827 <input name="emailreal" class="span12" type="text" id="emailreal" /> 846 <input name="emailreal" class="span12" value="<?php echo (isset($_POST['emailreal']) ? $_POST['emailreal'] : '') ?>" type="text" id="emailreal" /> 847 </div> 848 <div class="row-fluid"> 849 <label for="street"><?php echo __('Street', 'casasync') ?></label> 850 <input name="street" class="span12" value="<?php echo (isset($_POST['street']) ? $_POST['street'] : '') ?>" type="text" id="street" /> 851 </div> 852 <div class="row-fluid"> 853 <div class="span4"> 854 <label for="postal_code"><?php echo __('ZIP', 'casasync') ?></label> 855 <input name="postal_code" class="span12" value="<?php echo (isset($_POST['postal_code']) ? $_POST['postal_code'] : '') ?>" value="<?php echo (isset($_POST['postal_code']) ? $_POST['postal_code'] : '') ?>" type="text" id="postal_code" /> 856 </div> 857 <div class="span8"> 858 <label for="locality"><?php echo __('Locality', 'casasync') ?></label> 859 <input name="locality" class="span12" value="<?php echo (isset($_POST['locality']) ? $_POST['locality'] : '') ?>" type="text" id="locality" /> 860 </div> 828 861 </div> 829 862 <div class="row-fluid"> 830 863 <label for="phone"><?php echo __('Phone', 'casasync') ?></label> 831 <input name="phone" class="span12" type="text" id="tel" />864 <input name="phone" class="span12" value="<?php echo (isset($_POST['phone']) ? $_POST['phone'] : '') ?>" type="text" id="tel" /> 832 865 </div> 833 866 <div class="row-fluid"> 834 867 <div class="span12"> 835 868 <label for="message"><?php echo __('Message', 'casasync') ?></label> 836 <textarea name="message" class="span12" id="message">< /textarea>869 <textarea name="message" class="span12" id="message"><?php echo (isset($_POST['message']) ? $_POST['message'] : '') ?></textarea> 837 870 </div> 838 871 </div> -
casasync/trunk/index.php
r756165 r787415 7 7 Plugin URI: http://immobilien-plugin.ch 8 8 Description: Das WP Immobilien-Plugin für Ihre Website importiert Immobilien aus Ihrer Makler-Software! 9 Version: 2.1. 39 Version: 2.1.4 10 10 Author: Casasoft AG 11 11 Author URI: http://casasoft.ch -
casasync/trunk/languages/de_DE.php
r756165 r787415 30 30 31 31 case 'Switzerland': $translated_text = 'Schweiz';break; 32 case 'Italy': $translated_text = 'Italien';break; 32 33 case 'France': $translated_text = 'Frankreich';break; 33 34 case 'monthly': $translated_text = 'monatlich';break; … … 180 181 case 'Secondary rooms': $translated_text = 'Wohnnebenräume';break; 181 182 case 'Garden': $translated_text = 'Garten';break; 182 case 'Commercial': $translated_text = ' Gewerbe';break;183 case 'Commercial': $translated_text = 'Büro';break; 183 184 184 185 case 'Description': $translated_text = 'Beschreibung';break; 185 186 case 'Reference': $translated_text = 'Referenz';break; 186 187 case 'Distances': $translated_text = 'Distanzen';break; 187 188 189 case 'Available': $translated_text = 'Verfügbar';break; 190 case 'Reserved': $translated_text = 'Reserviert';break; 191 case 'Planned': $translated_text = 'In Planung';break; 192 case 'Under construction': $translated_text = 'Im Bau';break; 193 188 194 189 195 } -
casasync/trunk/languages/it_CH.php
r739083 r787415 172 172 case 'Garden': $translated_text = 'Giardino';break; 173 173 174 174 case 'Available': $translated_text = 'Available';break; 175 case 'Reserved': $translated_text = 'Reserved';break; 176 case 'Planned': $translated_text = 'Planned';break; 177 case 'Under construction': $translated_text = 'Under construction';break; 175 178 176 179 -
casasync/trunk/readme.txt
r756201 r787415 14 14 == Description == 15 15 16 Das WP Immobilien-Plugin für Ihre Website importiert Immobilien aus Ihrer Makler-Software! 16 Synchronisieren Sie Ihre Immobilien Objekte mit CasaSync, Lassen Sie die Einträge automatisch Kategorisieren und passen Sie das Plugin an jedes Theme an. CasaSync importiert, flexibel, zuverlässig und schnell die üblichsten Standards. 17 17 18 18 == Installation == … … 27 27 28 28 == Changelog == 29 30 = 2.1.4 = 31 32 * bug: fixes 29 33 30 34 = 2.1.3 = -
casasync/trunk/single.php
r756165 r787415 272 272 } 273 273 274 $has_remcat = false; 275 if (get_option('casasync_remCat', false ) && get_option('casasync_remCat_email', false )) { 276 $has_remcat = true; 277 } 278 274 279 275 280 … … 786 791 <?php /******************* {cta} *************/ ?> 787 792 <?php $the_cta = false; ?> 788 <?php if ($emails ): ?>793 <?php if ($emails || $has_remcat): ?> 789 794 <?php ob_start();?> 790 795 <a href="#casasyncPropertyContactForm" id="casasyncKontactAnchor"><i class="icon icon-envelope"></i> <?php echo __('Directly contact the provider now', 'casasync') ?></a> … … 819 824 <?php /******************* {contactform} *************/ ?> 820 825 <?php $the_contactform = false; ?> 821 <?php if ($emails ) {?>826 <?php if ($emails || $has_remcat) {?> 822 827 <?php ob_start(); ?> 823 828 <?php echo do_shortcode( '[casasync_contact recipients="' . implode(';', $emails) . '" post_id="' . get_the_ID() . '"]' );?> … … 843 848 844 849 <?php if ($sellerphone_mobile): ?> 845 <p >850 <p class="cs-phone-mobile"> 846 851 <span class="label"><?php echo __('Mobile', 'casasync') ?></span> 847 852 <span class="value break-word"><i class="icon icon-mobile-phone"></i> <?php echo $sellerphone_mobile ?></span> … … 849 854 <?php endif; ?> 850 855 <?php if ($sellerphone_direct): ?> 851 <p >856 <p class="cs-phone-direct"> 852 857 <span class="label"><?php echo __('Phone direct', 'casasync') ?></span> 853 858 <span class="value break-word"><i class="icon icon-phone"></i> <?php echo $sellerphone_direct ?></span> … … 855 860 <?php endif; ?> 856 861 <?php if ($sellerphone_central): ?> 857 <p >862 <p class="cs-phone-central"> 858 863 <span class="label"><?php echo __('Phone', 'casasync') ?></span> 859 864 <span class="value break-word"><i class="icon icon-phone"></i> <?php echo $sellerphone_central ?></span> … … 861 866 <?php endif; ?> 862 867 <?php if ($sellerfax): ?> 863 <p >868 <p class="cs-phone-fax"> 864 869 <span class="label"><?php echo __('Fax', 'casasync') ?></span> 865 870 <span class="value break-word"><?php echo $sellerfax ?></span> … … 899 904 <?php endif; ?> 900 905 <?php if ($salesperson_phone_mobile): ?> 901 <p >906 <p class="cs-phone-mobile"> 902 907 <span class="label"><?php echo __('Mobile', 'casasync') ?></span> 903 908 <span class="value break-word"><i class="icon icon-mobile-phone"></i> <?php echo $salesperson_phone_mobile ?></span> … … 905 910 <?php endif; ?> 906 911 <?php if ($salesperson_phone_direct): ?> 907 <p >912 <p class="cs-phone-direct"> 908 913 <span class="label"><?php echo __('Phone direct', 'casasync') ?></span> 909 914 <span class="value break-word"><i class="icon icon-phone"></i> <?php echo $salesperson_phone_direct ?></span> … … 911 916 <?php endif; ?> 912 917 <?php if ($salesperson_phone_central): ?> 913 <p >918 <p class="cs-phone-central"> 914 919 <span class="label"><?php echo __('Phone', 'casasync') ?></span> 915 920 <span class="value break-word"><i class="icon icon-phone"></i> <?php echo $salesperson_phone_central ?></span> … … 917 922 <?php endif; ?> 918 923 <?php if ($salesperson_fax): ?> 919 <p >924 <p class="cs-phone-fax"> 920 925 <span class="label"><?php echo __('Fax', 'casasync') ?></span> 921 926 <span class="value break-word"><?php echo $salesperson_fax ?></span>
Note: See TracChangeset
for help on using the changeset viewer.