Plugin Directory

Changeset 787415


Ignore:
Timestamp:
10/14/2013 06:37:52 AM (12 years ago)
Author:
casasoft
Message:

bugfixes 2.1.4

Location:
casasync/trunk
Files:
1 added
1 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • casasync/trunk/archive-template-single-default.txt

    r739083 r787415  
    44        {if_thumbnail}
    55            <div class="span5 archive-property-thumbnail">
     6                  {if_availabilitylabel}<div class="availability-outerlabel">{availabilitylabel}</div>{end_if_availabilitylabel}
    67                {if_permalink}
    78                    <a href="{permalink}" class="thumbnail">
  • casasync/trunk/archive.php

    r739770 r787415  
    128128                        } else {
    129129                            //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
    133143                    if (!$terms_lvl1_has_children) {
    134144                        $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  
    8888            switch ($availability) {
    8989                case 'available':
    90                     $availability_label = 'Verfügbar';
     90                    $availability_label = __('Available', 'casasync');
    9191                    break;
    9292                case 'reserved':
    93                     $availability_label = 'Reserved';
     93                    $availability_label = __('Reserved', 'casasync');
    9494                    break;
    9595                case 'planned':
    96                     $availability_label = 'In Planung';
     96                    $availability_label = __('Planned', 'casasync');
    9797                    break;
    9898                case 'under-construction':
    99                     $availability_label = 'Im Bau';
     99                    $availability_label = __('Unser construction', 'casasync');
    100100                    break;
    101101                case 'reference':
    102                     $availability_label = 'Referenz';
     102                    $availability_label = __('Reference', 'casasync');
    103103                    break;
    104104               
  • casasync/trunk/assets/css/casasync.css

    r756165 r787415  
    5959    right: 90%;
    6060    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==);
    6263    color:white;
    6364    font-weight: bold;
     
    227228    padding:10px;
    228229    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==);
    230232    color:white;
    231233    bottom:-150px;
     
    250252    line-height: 36px;
    251253    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==);
    253256    color:white;
    254257    text-align: center;
     
    257260
    258261.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;
    260264}
    261265
    262266.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;
    264269}
    265270
    266271.availability-label-reserved{
    267272    background-color: rgba(50,0,0,0.7);
     273    background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVQIW2M0YmDYDAABhQDn0Y/8+wAAAABJRU5ErkJggg==)
    268274}
    269275
  • casasync/trunk/casasync.php

    r756165 r787415  
    454454function casasync_load_stylesheet(){
    455455  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' );
    456458  wp_enqueue_style( 'casasync-style' );
     459  //wp_enqueue_style( 'casasync-style-ie' );
    457460}
    458461if (get_option( 'casasync_load_stylesheet', 1 )) {
  • casasync/trunk/includes/core.php

    r756165 r787415  
    381381        case 'gastronomy': return __('Gastronomy' ,'casasync');break;
    382382        case 'house': return __('House' ,'casasync');break;
    383         case 'industrial': return __('House' ,'Industrial Objects');break;
     383        case 'industrial': return __('Industrial' ,'casasync');break;
    384384        case 'parking': return __('Parking space' ,'casasync');break;
    385385        case 'plot': return __('Grundstück' ,'casasync');break;
    386386        case 'secondary-rooms': return __('Secondary rooms' ,'casasync');break;
    387387        case 'garden': return __('Garden' ,'casasync');break;
    388         default: return $key; break;
     388        case 'commercial': return __('Commercial' ,'casasync');break;
    389389    }
    390390}
     
    605605        'email'   => 'E-Mail SPAM!',
    606606        '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',
    610610        'state'   => __('Kanton', 'casasync'), //'Kanton',
    611611        'subject'   => __('Subject', 'casasync'), //'Betreff',
     
    623623            'lastname',
    624624            'emailreal',
    625             'subject'
     625            'subject',
     626            'street',
     627            'postal_code',
     628            'locality'
    626629        );
    627630        $companyname = get_bloginfo( 'name' );
     
    662665            $property_id = $casa_id_arr[1];
    663666
     667           
    664668            //REM
    665669            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
    666677                $remCat = array(
    667678                    0  => $_SERVER['SERVER_NAME'],
     
    671682                    4  => get_post_meta( $post_id, 'seller_org_address_locality', true ),
    672683                    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', ''),
    674685                    7  => $property_id,
    675686                    8  => get_permalink($post_id),
    676687                    9  => get_post_meta($post_id, 'casasync_property_address_streetaddress', true),
    677688                    10 => get_post_meta($post_id, 'casasync_property_address_locality', true),
    678                     11 => 'TYPE',
     689                    11 => $type,
    679690                    12 => 'DE', //LANG
    680691                    13 => '', //anrede
     
    682693                    15 => (isset($_POST['lastname']) ? $_POST['lastname'] : ''),
    683694                    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'] : ''),
    687698                    20 => (isset($_POST['phone']) ? $_POST['phone'] : ''),
    688699                    21 => (isset($_POST['mobile']) ? $_POST['mobile'] : ''),
    689700                    22 => (isset($_POST['fax']) ? $_POST['fax'] : ''),
    690                     23 => (isset($_POST['email']) ? $_POST['email'] : ''),
     701                    23 => filter_input(INPUT_POST, 'emailreal', FILTER_VALIDATE_EMAIL),
    691702                    24 => (isset($_POST['message']) ? $_POST['message'] : ''),
    692703                    25 => '',
     
    783794
    784795            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                    }
    787802                } 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                    }
    789808                }
    790809            }
     
    818837                    <div class="span7">
    819838                        <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" />
    821840                    </div>
    822841                </div>
     
    825844                <div class="row-fluid">
    826845                    <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>
    828861                </div>
    829862                <div class="row-fluid">
    830863                    <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" />
    832865                </div>
    833866                <div class="row-fluid">
    834867                    <div class="span12">
    835868                        <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>
    837870                    </div>
    838871                </div>
  • casasync/trunk/index.php

    r756165 r787415  
    77Plugin URI: http://immobilien-plugin.ch
    88Description: Das WP Immobilien-Plugin für Ihre Website importiert Immobilien aus Ihrer Makler-Software!
    9 Version: 2.1.3
     9Version: 2.1.4
    1010Author: Casasoft AG
    1111Author URI: http://casasoft.ch
  • casasync/trunk/languages/de_DE.php

    r756165 r787415  
    3030
    3131                case 'Switzerland': $translated_text = 'Schweiz';break;
     32                case 'Italy': $translated_text = 'Italien';break;
    3233                case 'France': $translated_text = 'Frankreich';break;
    3334                case 'monthly': $translated_text = 'monatlich';break;
     
    180181                case 'Secondary rooms':     $translated_text =  'Wohnnebenräume';break;
    181182                case 'Garden':              $translated_text =  'Garten';break;
    182                 case 'Commercial':          $translated_text =  'Gewerbe';break;
     183                case 'Commercial':          $translated_text =  'Büro';break;
    183184
    184185                case 'Description':             $translated_text =  'Beschreibung';break;
    185186                case 'Reference':               $translated_text =  'Referenz';break;
    186187                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
    188194           
    189195            }
  • casasync/trunk/languages/it_CH.php

    r739083 r787415  
    172172                case 'Garden':                  $translated_text =  'Giardino';break;
    173173
    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;
    175178
    176179           
  • casasync/trunk/readme.txt

    r756201 r787415  
    1414== Description ==
    1515
    16 Das WP Immobilien-Plugin für Ihre Website importiert Immobilien aus Ihrer Makler-Software!
     16Synchronisieren 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.
    1717
    1818== Installation ==
     
    2727
    2828== Changelog ==
     29
     30= 2.1.4 =
     31
     32* bug: fixes
    2933
    3034= 2.1.3 =
  • casasync/trunk/single.php

    r756165 r787415  
    272272            }
    273273
     274            $has_remcat = false;
     275            if (get_option('casasync_remCat', false ) && get_option('casasync_remCat_email', false )) {
     276                $has_remcat = true;
     277            }
     278           
    274279
    275280
     
    786791<?php /******************* {cta}  *************/  ?>
    787792                <?php $the_cta = false; ?>
    788                 <?php if ($emails): ?>
     793                <?php if ($emails || $has_remcat): ?>
    789794                    <?php ob_start();?>
    790795                        <a href="#casasyncPropertyContactForm" id="casasyncKontactAnchor"><i class="icon icon-envelope"></i> <?php echo __('Directly contact the provider now', 'casasync') ?></a> 
     
    819824<?php /******************* {contactform}  *************/ ?>
    820825                <?php $the_contactform = false; ?>
    821                 <?php if ($emails) {?>
     826                <?php if ($emails || $has_remcat) {?>
    822827                    <?php ob_start(); ?>
    823828                        <?php echo do_shortcode( '[casasync_contact recipients="' . implode(';', $emails) . '" post_id="' . get_the_ID() . '"]' );?>
     
    843848                               
    844849                                <?php if ($sellerphone_mobile): ?>
    845                                     <p>
     850                                    <p class="cs-phone-mobile">
    846851                                        <span class="label"><?php echo __('Mobile', 'casasync') ?></span>
    847852                                        <span class="value break-word"><i class="icon icon-mobile-phone"></i> <?php echo $sellerphone_mobile ?></span>
     
    849854                                <?php endif; ?>
    850855                                <?php if ($sellerphone_direct): ?>
    851                                     <p>
     856                                    <p class="cs-phone-direct">
    852857                                        <span class="label"><?php echo __('Phone direct', 'casasync') ?></span>
    853858                                        <span class="value break-word"><i class="icon icon-phone"></i> <?php echo $sellerphone_direct ?></span>
     
    855860                                <?php endif; ?>
    856861                                <?php if ($sellerphone_central): ?>
    857                                     <p>
     862                                    <p class="cs-phone-central">
    858863                                        <span class="label"><?php echo __('Phone', 'casasync') ?></span>
    859864                                        <span class="value break-word"><i class="icon icon-phone"></i> <?php echo $sellerphone_central ?></span>
     
    861866                                <?php endif; ?>
    862867                                <?php if ($sellerfax): ?>
    863                                     <p>
     868                                    <p class="cs-phone-fax">
    864869                                        <span class="label"><?php echo __('Fax', 'casasync') ?></span>
    865870                                        <span class="value break-word"><?php echo $sellerfax ?></span>
     
    899904                            <?php endif; ?>
    900905                            <?php if ($salesperson_phone_mobile): ?>
    901                                 <p>
     906                                <p class="cs-phone-mobile">
    902907                                    <span class="label"><?php echo __('Mobile', 'casasync') ?></span>
    903908                                    <span class="value break-word"><i class="icon icon-mobile-phone"></i> <?php echo $salesperson_phone_mobile ?></span>
     
    905910                            <?php endif; ?>
    906911                            <?php if ($salesperson_phone_direct): ?>
    907                                 <p>
     912                                <p class="cs-phone-direct">
    908913                                    <span class="label"><?php echo __('Phone direct', 'casasync') ?></span>
    909914                                    <span class="value break-word"><i class="icon icon-phone"></i> <?php echo $salesperson_phone_direct ?></span>
     
    911916                            <?php endif; ?>
    912917                            <?php if ($salesperson_phone_central): ?>
    913                                 <p>
     918                                <p class="cs-phone-central">
    914919                                    <span class="label"><?php echo __('Phone', 'casasync') ?></span>
    915920                                    <span class="value break-word"><i class="icon icon-phone"></i> <?php echo $salesperson_phone_central ?></span>
     
    917922                            <?php endif; ?>
    918923                            <?php if ($salesperson_fax): ?>
    919                                 <p>
     924                                <p class="cs-phone-fax">
    920925                                    <span class="label"><?php echo __('Fax', 'casasync') ?></span>
    921926                                    <span class="value break-word"><?php echo $salesperson_fax ?></span>
Note: See TracChangeset for help on using the changeset viewer.