store-listings-map-left.php 13.5 KB
<?php 
global $wpsl_settings, $wpsl;

$output         = $this->get_custom_css(); 
$autoload_class = ( !$wpsl_settings['autoload'] ) ? 'class="wpsl-not-loaded"' : '';

$output .= '<div id="wpsl-wrap">' . "\r\n";
$output .= "\t" . '<div class="wpsl-search wpsl-clearfix ' . $this->get_css_classes() . '">' . "\r\n";
$output .= "\t\t" . '<div id="wpsl-search-wrap">' . "\r\n";
$output .= "\t\t\t\t" . '<label id="label-search-input" for="wpsl-search-input">SEARCH BY POSTAL CODE:</label>';
$output .= "\t\t\t" . '<form id="wpsl-form" autocomplete="off">' . "\r\n";
$output .= "\t\t\t" . '<div class="wpsl-input">' . "\r\n";
$output .= "\t\t\t\t" . '<input id="wpsl-search-input" type="text" value="' . apply_filters( 'wpsl_search_input', '' ) . '" name="wpsl-search-input" placeholder="A1A 2B2" aria-required="true" />' . "\r\n";
$output .= "\t\t\t\t" . '<input id="wpsl-search-btn" type="submit" value="' . esc_attr( $wpsl->i18n->get_translation( 'search_btn_label', __( 'Search', 'wpsl' ) ) ) . '">' . "\r\n";

$output .= "\t\t\t\t" . '</div>' . "\r\n";
$output .= "\t\t\t\t" . '</div>' . "\r\n";
$output .= "\t\t" . '</form>' . "\r\n";
$output .= "\t\t\t" . '</div>' . "\r\n";
$output .= "\t\t" . '<div id="wpsl-s">' . "\r\n";
$output .= "\t" . '<div id="wpsl-result-list">' . "\r\n";
$output .= "\t\t\t" . '<strong>SEARCH RESULTS</strong>' . "\r\n";
$output .= "\t\t\t" . '<br/>Select the financial planner most convenient to you:<br/><br/>' . "\r\n";

$output .= "\t\t" . '<div id="wpsl-stores" '. $autoload_class .'>' . "\r\n";
$output .= "\t\t\t" . '<ul></ul>' . "\r\n";
$output .= "\t\t" . '</div>' . "\r\n";

$output .= "\t" . '</div>' . "\r\n";
$output .= "\t" . '<div id="wpsl-gmap" class="wpsl-gmap-canvas full"></div>' . "\r\n";

$output .= '</div>' . "\r\n";
$output .= "\t" . '</div>' . "\r\n";
$output .= '<style>
                    #wpsl-category{
                        margin-top: 30px;
                        float:right !important;
                       
                    }
                    #label-search-input{
                      
                        display: inline-block;
                        text-align: unset;
                        overflow: hidden;
                    }
                    #wpsl-category label{
                        width: 100px !important;
                        text-transform: none;
                        loat: unset !important;
                        display: inline-block !important;
                        width: 115px !important;
                        padding-left: 10px;
                        vertical-align: middle;
                    }
                    .results_row_top{
                        background :transparent !important;
                    }
                    .wpsl-search{
                        margin-bottom: 12px;
                        padding: 0px;
                        background: #fff !important;
                    }
                    
                    .broker_radio{
                    disply:none !important;
                    }
                    #wpsl-s{
                        display:none;
                        margin-top:20px;
                    }
                    #wpsl-gmap,
                    #wpsl-result-list{
                        width:48.5%;
                        height:400px !important;
                        display: inline-block;
                        float:left;
                        font-size:18px;
                       

                    }
                   
                    #wpsl-stores{
                    height: 330px !important;
                    width:95%;
                    }
                    #wpsl-gmap{
                        width:48.5%;
                        float:right;
                        position: absolute;
                        margin-left: 0%;
                        transition:0.5s;
                        transition-delay:3s;
                        margin-left: 20px;
                        
                    }
                    #wpsl-gmap.full{
                        position: absolute;
                        width: 50%;
                        overflow: hidden;
                        margin-left: 0%;
                        transition:0.5s;
                        transition-delay:3s;
                       
                    }
                    .location_distance{
                        display:none !important;
                        float: none !important;
                    }
                    #wpsl-wrap #wpsl-result-list li {
                        border-top: 1px solid #ccc;
                        border-bottom: 0px solid #ccc;
                        font-size:14px;
                       
                        padding: 0px;
                    }
                    #wpsl-wrap #wpsl-result-list li  a{
                      color:#007DB3;
                      text-decoration: none;
                    }
                    #wpsl-wrap #wpsl-result-list li  a:hover{
                        color:#000;
                        text-decoration: underline;
                    }
                    .start_a_contact{
                        color:#fff !important;
                        background-color:#012169;
                        padding: 5px 25px 5px 25px;
                        display: block !important;
                        width: 120px;
                        margin-top: 10px;    
                        margin-bottom: 15px;
                    }

                    .address{
                        margin-top: 10px;
                    }
                    .start_a_contact:hover {
                        background-color: #005eb8;
                        text-decoration:none !important;
                    }
                    .location_link{
                        float: right;
                        width: 0%;
                        }
                    
                    @media (max-width: 767px){ 
                        #wpsl-gmap.full{
                            position: relative;
                            width: 50%;
                            height: 400px !important;
                            float: none;
                            display: block;
                            margin-left: 0%;
                            margin-top: 100px;
                        }

                    }
                    @media (max-width: 767px){ 
                        #wpsl-gmap,
                        #wpsl-result-list{
                            width:50%;
                            height:400px !important;
                            float:none;
                            display:block;
                        }
                        
                    }
                    #wpsl-search-btn {
                      display:none !important;
                    }
                    td, th {
                     
                        vertical-align: top;
                    }
                    #wpsl-search-input{
                        border: 0px solid #a4a5a8; 
                        border-bottom: 2px solid #000; 
                        background-color: #F1F7E6;
                        color:#54565A;
                    }
                    #wpsl-search-input::-webkit-input-placeholder { /* Edge */
                        color: #949598;
                        font-family: "HelveticaNeue";
                      }
                      
                    #wpsl-search-input:-ms-input-placeholder { /* Internet Explorer 10-11 */
                        color: #949598;
                        font-family: "HelveticaNeue";
                      }
                      
                    #wpsl-search-input::placeholder {
                        color: #949598;
                        font-family: "HelveticaNeue";
                      }
                    #wpsl-search-btn, #wpsl-search-wrap div{
                        margin-right: 10px;
                     
                    }
                    .wpsl-input,
                    #wpsl-radius{
                        display:inline-block !important;
                        float: none !important;
                    }
                    #wpsl-wrap #wpsl-result-list li {
                        border-top: 1px solid #ccc;
                        border-bottom: 0px solid #ccc;
                        font-size:14px;
                        padding-left: 0px;
                        padding-right: 0px;
                    }
                    #wpsl-wrap #wpsl-result-list li  a{
                      color:#009ADE;
                      text-decoration: none;
                    }
                    #wpsl-wrap #wpsl-result-list li  a:hover{
                        color:#000;
                        text-decoration: underline;
                    }
                    #wpsl-wrap{
                       margin-top:20px;
                    }

                    #wpsl-radius label{
                        float:unset  !important;
                        display:inline-block !important;
                        width: 115px !important;
                  
                        padding-left: 10px;
                        vertical-align: middle;

                    }
                    .wpsl-dropdown{
                        float:right  !important;
                        display:inline-block !important;
                        border-radius: 0px !important;
                       
                        width:115px;
                        border-color:#707070;
                        margin-top: -5px;
                    }
                    #wpsl-search-input {
                        font-size: 30px;
                        height: 40px !important;
                        width: 88% !important;
                        padding-bottom: 10px;
                        padding-left: 7px;
                        border: 0px solid #a4a5a8 !important;
                        border-bottom: 2px solid #54565A !important;
                        border-radius:0px !important;
                        background-color: #ffff;
                        color: #54565A;
                    }
                    @media (max-width: 767px){ 
                    #wpsl-search-input {
                        width: 70% !important;
                    }
                    }
                    .wpsl-input:after {
                        content: "";
                        background-image: url("https://yournumbers.ca/wp-content/uploads/2022/01/search.png");
                        height: 40px;
                        width: 40px;
                        position: relative;
                        display: inline-block;
                        background-size: contain;
                        float: right;
                        margin-top: -5px;
                    }
                    .wpsl-dropdown .wpsl-selected-item, .wpsl-dropdown li, .wpsl-selected-item {
                        list-style: none;
                        padding: 6px 4px !important;
                        margin: 0!important;
                        color:#54565A;
                        text-align: right;
                        padding-right: 35px!important;
                       
                    }
                    #wpsl-wrap .wpsl-selected-item{
                        
                    }
                    .wpsl-selected-item:after {
                        right: 17px;
                        border-top: 8px solid #009ADE;
                    }
                    .wpsl-active .wpsl-selected-item:after {
                        border-bottom: 8px solid #009ADE;
                    }
                    .location_name,
                    .location_distance{
                        font-family: "HelveticaNeue-Bold";
                        text-decoration: none;
                        color:#54565A;
                    }
                    #homecontent #wpsl-wrap{
                        margin:0px !important;
                    }
                    @media (max-width: 767px){
                        table.wpsl-store-location tr td {
                            font-size: 14px !important;
                        } 
                        #wpsl-gmap{
                         
                            width:100%;
                            height:300px !important;
                          
                        }
                        #wpsl-result-list{
                        width:100%;
                       
                        height: 350px !important;
                      
                        }
                        .km{
                            width:50px;
                            padding-right: 10px !important;
                        
                        }
                        .location{
                            display: block;
                            width: 80% !important;
                        }
                        .storelocatorlink {
                            width: 80px;
                        }
                        .location_link{
                            text-align: left !important;
                            width: 100% !important;
                            display: block;
                            padding-top: 10px !important;
                    
                        }
                        .register_here{
                            font-size:14px  !important;
                        }
                        #wpsl-stores {
                            margin-top: 10px;
                        }

                       .wpsl-store-location tr td{
                        padding: 10px 0px;
                       }
                    }

                    
</style>


';
return $output;