WordPress.org

Plugin Directory

Changeset 598470


Ignore:
Timestamp:
09/13/12 13:50:25 (5 years ago)
Author:
cybersprocket
Message:

v3.2

Location:
store-locator-le
Files:
18 added
41 edited
24 copied

Legend:

Unmodified
Added
Removed
  • store-locator-le/tags/3.0.7/core/csl_helpers.php

    r557331 r598470  
    7474    // Pro Pack - Use Themes System 
    7575    // 
    76     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     76    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    7777        $slplus_plugin->themes->assign_user_stylesheet(isset($fnvars['theme'])?$fnvars['theme']:''); 
    7878    } else { 
  • store-locator-le/tags/3.0.7/core/templates/navbar.php

    r557331 r598470  
    1818    // Pro Version : Show Reports Tab 
    1919    // 
    20     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) {       
     20    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    2121        print '<a href="'.SLPLUS_PLUSPAGE.'reporting.php"><li class="like-a-button">Reports</li></a>'; 
    2222    } 
  • store-locator-le/tags/3.0.7/include/storelocatorplus-actions_class.php

    r557331 r598470  
    124124            // 
    125125            $slp_rep_desc = __('These settings affect how the Store Pages add-on behaves. ', SLPLUS_PREFIX); 
    126             if (!$slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) { 
     126            if (!$slplus_plugin->license->AmIEnabled(true, "SLPLUS-PAGES")) { 
    127127                $slp_rep_desc .= '<br/><br/>'. 
    128                     __('This is a <a href="http://www.storelocatorplus.com/">Store Pages</a>'. 
     128                    __('This is a <a href="http://www.charlestonsw.com/product/store-locator-plus-store-pages/">Store Pages</a>'. 
    129129                    ' feature.  It provides a way to auto-create individual WordPress pages' . 
    130130                    ' for each of your locations. ', SLPLUS_PREFIX); 
     
    137137                ) 
    138138            );          
    139             if ($slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) {             
     139            if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PAGES")) { 
    140140                slplus_add_pages_settings(); 
    141141            }                 
     
    145145            //  
    146146            $slp_rep_desc = __('These settings affect how the reporting system behaves. ', SLPLUS_PREFIX); 
    147             if (!$slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     147            if (!$slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    148148                $slp_rep_desc .= '<br/><br/>'. 
    149149                    __('This is a <a href="http://www.storelocatorplus.com/">Pro Pack</a>'. 
     
    158158                ) 
    159159            ); 
    160             if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     160            if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    161161                slplus_add_report_settings(); 
    162162            }                 
  • store-locator-le/tags/3.0.7/plus.php

    r557331 r598470  
    116116    global $slplus_plugin; 
    117117     
    118     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) {     
     118    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    119119        $slplus_plugin->settings->add_item( 
    120120            'Reporting',  
     
    138138    global $slplus_plugin; 
    139139     
    140     if ($slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) { 
     140    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PAGES")) { 
    141141        $slplus_plugin->settings->add_item( 
    142142            'Store Pages',  
  • store-locator-le/tags/3.0.8/core/csl_helpers.php

    r557331 r598470  
    7474    // Pro Pack - Use Themes System 
    7575    // 
    76     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     76    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    7777        $slplus_plugin->themes->assign_user_stylesheet(isset($fnvars['theme'])?$fnvars['theme']:''); 
    7878    } else { 
  • store-locator-le/tags/3.0.8/core/templates/navbar.php

    r557331 r598470  
    1818    // Pro Version : Show Reports Tab 
    1919    // 
    20     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) {       
     20    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    2121        print '<a href="'.SLPLUS_PLUSPAGE.'reporting.php"><li class="like-a-button">Reports</li></a>'; 
    2222    } 
  • store-locator-le/tags/3.0.8/include/storelocatorplus-actions_class.php

    r557331 r598470  
    124124            // 
    125125            $slp_rep_desc = __('These settings affect how the Store Pages add-on behaves. ', SLPLUS_PREFIX); 
    126             if (!$slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) { 
     126            if (!$slplus_plugin->license->AmIEnabled(true, "SLPLUS-PAGES")) { 
    127127                $slp_rep_desc .= '<br/><br/>'. 
    128                     __('This is a <a href="http://www.storelocatorplus.com/">Store Pages</a>'. 
     128                    __('This is a <a href="http://www.charlestonsw.com/product/store-locator-plus-store-pages/">Store Pages</a>'. 
    129129                    ' feature.  It provides a way to auto-create individual WordPress pages' . 
    130130                    ' for each of your locations. ', SLPLUS_PREFIX); 
     
    137137                ) 
    138138            );          
    139             if ($slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) {             
     139            if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PAGES")) { 
    140140                slplus_add_pages_settings(); 
    141141            }                 
     
    145145            //  
    146146            $slp_rep_desc = __('These settings affect how the reporting system behaves. ', SLPLUS_PREFIX); 
    147             if (!$slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     147            if (!$slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    148148                $slp_rep_desc .= '<br/><br/>'. 
    149                     __('This is a <a href="http://www.storelocatorplus.com/">Pro Pack</a>'. 
     149                    __('This is a <a href="http://www.charlestonsw.com/product/store-locator-plus/">Pro Pack</a>'. 
    150150                    ' feature.  It provides a way to generate reports on what locations' . 
    151151                    ' people have searched for and what results they received back. ', SLPLUS_PREFIX); 
     
    158158                ) 
    159159            ); 
    160             if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     160            if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    161161                slplus_add_report_settings(); 
    162162            }                 
  • store-locator-le/tags/3.0.8/plus.php

    r557331 r598470  
    116116    global $slplus_plugin; 
    117117     
    118     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) {     
     118    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    119119        $slplus_plugin->settings->add_item( 
    120120            'Reporting',  
     
    138138    global $slplus_plugin; 
    139139     
    140     if ($slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) { 
     140    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PAGES")) { 
    141141        $slplus_plugin->settings->add_item( 
    142142            'Store Pages',  
  • store-locator-le/tags/3.0.9/core/csl_helpers.php

    r557331 r598470  
    7474    // Pro Pack - Use Themes System 
    7575    // 
    76     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     76    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    7777        $slplus_plugin->themes->assign_user_stylesheet(isset($fnvars['theme'])?$fnvars['theme']:''); 
    7878    } else { 
  • store-locator-le/tags/3.0.9/core/templates/navbar.php

    r557331 r598470  
    1818    // Pro Version : Show Reports Tab 
    1919    // 
    20     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) {       
     20    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    2121        print '<a href="'.SLPLUS_PLUSPAGE.'reporting.php"><li class="like-a-button">Reports</li></a>'; 
    2222    } 
  • store-locator-le/tags/3.0.9/include/storelocatorplus-actions_class.php

    r557331 r598470  
    124124            // 
    125125            $slp_rep_desc = __('These settings affect how the Store Pages add-on behaves. ', SLPLUS_PREFIX); 
    126             if (!$slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) { 
     126            if (!$slplus_plugin->license->AmIEnabled(true,"SLPLUS-PAGES")) { 
    127127                $slp_rep_desc .= '<br/><br/>'. 
    128128                    __('This is a <a href="http://www.storelocatorplus.com/">Store Pages</a>'. 
     
    137137                ) 
    138138            );          
    139             if ($slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) {             
     139            if ($slplus_plugin->license->AmIEnabled(true,"SLPLUS-PAGES")) { 
    140140                slplus_add_pages_settings(); 
    141141            }                 
     
    145145            //  
    146146            $slp_rep_desc = __('These settings affect how the reporting system behaves. ', SLPLUS_PREFIX); 
    147             if (!$slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     147            if (!$slplus_plugin->license->AmIEnabled(true,"SLPLUS-PRO")) { 
    148148                $slp_rep_desc .= '<br/><br/>'. 
    149149                    __('This is a <a href="http://www.storelocatorplus.com/">Pro Pack</a>'. 
     
    158158                ) 
    159159            ); 
    160             if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     160            if ($slplus_plugin->license->AmIEnabled(true,"SLPLUS-PRO")) { 
    161161                slplus_add_report_settings(); 
    162162            }                 
  • store-locator-le/tags/3.0.9/plus.php

    r557331 r598470  
    116116    global $slplus_plugin; 
    117117     
    118     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) {     
     118    if ($slplus_plugin->license->AmIEnabled(true,"SLPLUS-PRO")) { 
    119119        $slplus_plugin->settings->add_item( 
    120120            'Reporting',  
  • store-locator-le/tags/3.2/WPCSL-generic/classes/CSL-license_class.php

    r587040 r598470  
    9292        // 
    9393        $csl_urls = array( 
    94             'http://cybersprocket.com/paypal/valid_transaction.php?', 
    95             'http://license.cybersprocket.com/paypal/valid_transaction.php?', 
     94            'http://www.charlestonsw.com/paypal/valid_transaction.php?', 
    9695            ); 
    9796 
     
    104103                            array('timeout' => 10) 
    105104                            ); 
     105             
    106106            if ($this->parent->http_result_is_ok($result) ) { 
    107107                $response = json_decode($result['body']); 
     
    155155        //............. 
    156156        // Not licensed 
    157         // main product 
    158         if (!$final_result) { 
    159             if (!$isa_package) { 
    160                 update_option($this->prefix.'-purchased',false); 
    161  
    162                 // add on package 
    163             } else { 
    164                 update_option($this->prefix.'-'.$theSKU.'-isenabled',false); 
    165             } 
    166         } 
    167  
    168157        return false; 
    169158    } 
  • store-locator-le/tags/3.2/WPCSL-generic/classes/CSL-plugin.php

    r587040 r598470  
    9191        $this->display_settings_collapsed = false; 
    9292        $this->show_locale      = true; 
    93         $this->broadcast_url    = 'http://www.cybersprocket.com/signage/index.php'; 
     93        $this->broadcast_url    = 'http://www.charlestonsw.com/signage/index.php'; 
    9494        $this->shortcode_was_rendered = false; 
    9595        $this->current_admin_page = ''; 
     
    909909            if ($time >= $destruct_time) { 
    910910                //if the checkbox has been hit, then set to false 
    911                 if ($this->settings->get_item(thisbox)==true) { 
     911                if ($this->settings->get_item('thisbox')==true) { 
    912912                    $destruct_time = false; 
    913913                } 
  • store-locator-le/tags/3.2/WPCSL-generic/classes/CSL-settings_class.php

    r587040 r598470  
    66 ** 
    77 ** The main settings class. 
    8  ** 
    9  ** see: http://redmine.cybersprocket.com/projects/wpmod/wiki/Class_wpCSL_settings 
    108 ** 
    119 ** Methods: 
     
    4240        // Only do this if we are on admin panel 
    4341        // 
    44         if (is_admin() && $this->parent->isOurAdminPage) { 
     42        if (isset($this->parent) && (is_admin() && $this->parent->isOurAdminPage)) { 
    4543             
    4644            // Only show the license section if the plugin settings 
     
    9290                                       padding-right: 6px;">CSL IP Addresses:</div> 
    9391                                   <div style="float: left;">' .  
    94                                         gethostbyname('cybersprocket.com') .  
     92                                        gethostbyname('charlestonsw.com') .  
    9593                                        ' and ' .   
    96                                         gethostbyname('license.cybersprocket.com') .  
     94                                        gethostbyname('license.charlestonsw.com') .  
    9795                                    '</div> 
    9896                                 </div>                                 
     
    210208                        ' 
    211209                        <div class="cybersprocket-cslbox"> 
    212                         <div class="cybersprocket-csllogo"> 
    213                         <a href="http://www.cybersprocket.com/" target="cslinfo"><img src="'. $this->plugin_url .'/images/CSL_banner_logo.png"/></a> 
    214                          </div> 
    215210                         <div class="cybersprocket-cslinfo"> 
    216                          <h4>This plugin has been brought to you by <a href="http://www.cybersprocket.com" 
    217                                 target="_new">Cyber Sprocket Labs</a></h4> 
    218                          <p>Cyber Sprocket Labs is a custom software development company.   
    219                             We develop desktop, mobile, and web applications for clients large and small   
     211                         <h4>This plugin has been brought to you by <a href="http://www.charlestonsw.com" 
     212                                target="_new">Charleston Software Associates</a></h4> 
     213                         <p>We develop desktop, mobile, and web applications for clients large and small   
    220214                            from all around the world. We hope our plugin brings you closer to the perfect site. 
    221215                            If there is anything we can do to improve our work or if you wish to hire us to customize 
    222216                            this plugin please call our Charleston South Carolina headquarters or  
    223217                            <a href="http://www.cybersprocket.com/contact-us/" target="cyber-sprocket-labs">email us</a> 
    224                             and let us know.<br/> 
    225                             <br> 
    226                             <strong>Cyber Sprocket Is...</strong><br/> 
    227                             Lobby Jones and a bunch of coders.<br/> 
    228                             <br/> 
    229                             <strong>For more information:</strong><br/> 
    230                             <a href="http://www.cybersprocket.com" target="cyber-sprocket-labs">Please visit our website at www.cybersprocket.com</a>.<br/> 
     218                            and let us know. 
    231219                         </p> 
    232220                         </div> 
     
    375363        }         
    376364 
     365        // Show the plugin environment and info section on every plugin 
     366        // 
     367        if ($this->render_csl_blocks) { 
     368            $this->sections['Plugin Info']->display(); 
     369        } 
     370 
    377371        // Only render license section if plugin settings 
    378372        // asks for it 
    379         if ($this->has_packages || !$this->no_license) { 
    380             $this->sections[$this->license_section_title]->header(); 
    381             $this->show_plugin_settings(); 
    382             $this->sections[$this->license_section_title]->footer(); 
    383         } 
     373        if (isset($this->license_section_title) && (isset($this->sections[$this->license_section_title]))) { 
     374            if ($this->has_packages || !$this->no_license) { 
     375                $this->sections[$this->license_section_title]->header(); 
     376                $this->show_plugin_settings(); 
     377                $this->sections[$this->license_section_title]->footer(); 
     378            } 
     379        }             
    384380 
    385381        // Draw each settings section as defined in the plugin config file 
     
    395391        if ($this->render_csl_blocks) { 
    396392            $this->sections['Plugin Environment']->display(); 
    397             $this->sections['Plugin Info']->display(); 
    398393        } 
    399394        $this->render_javascript(); 
     
    408403     **/ 
    409404    function show_plugin_settings() { 
     405       $theLicenseKey = get_option($this->prefix.'-license_key'); 
     406 
    410407       $license_ok =(  (get_option($this->prefix.'-purchased') == '1')   && 
    411                       (get_option($this->prefix.'-license_key') != '')                           
     408                      ($theLicenseKey != '') 
    412409                          );      
    413410         
     
    423420                    "name=\"{$this->prefix}-license_key\"" : 
    424421                    '') . 
    425                 " value=\"". get_option($this->prefix.'-license_key') . 
     422                " value=\"". $theLicenseKey . 
    426423                "\"". ($license_ok?'disabled' :'') . 
    427424                " />"; 
    428425     
    429426            if ($license_ok) { 
    430                 $content .= "<input type=\"hidden\" name=\"{$this->prefix}-license_key\" value=\"". 
    431                     get_option($this->prefix.'-license_key')."\"/>"; 
    432                 $content .= '<span><img src="'. $this->plugin_url . 
    433                     '/images/check_green.png" border="0" style="padding-left: 5px;" ' . 
    434                     'alt="License validated!" title="License validated!"></span>'; 
     427                $content .= 
     428                    '<p class="slp_license_info">'.$theLicenseKey.'</p>'        . 
     429                    '<input type="hidden" name="'.$this->prefix.'-license_key" '. 
     430                        'value="'.$theLicenseKey.'"/>'                          . 
     431                    '<span><img src="'. $this->plugin_url                       . 
     432                              '/images/check_green.png" border="0" '            . 
     433                              'style="padding-left: 5px;" '                     . 
     434                              'alt="License validated!" '                       . 
     435                              'title="License validated!"></span>'              ; 
    435436            } 
    436437             
     
    540541 
    541542                $content .= 
    542                     '<div><img src="'. $this->plugin_url . 
     543                    '<div class="csl_info_package_license">'. 
     544                    (($package->sku!='')?'SKU: '.$package->sku.'<br/>':''). 
     545                    (($package->license_key!='')?'License Key: '.$package->license_key.'<br/>':''). 
     546                    '<img src="'. $this->plugin_url . 
    543547                    '/images/check_green.png" border="0" style="padding-left: 5px;" ' . 
    544548                    'alt="'.$packString.'" title="'.$packString.'">' . 
    545                     'Version ' . $installed_version .'</div>'. 
     549                    (($installed_version != '')?'Version: ' . $installed_version : '') . 
     550                    '</div>'. 
    546551                    '<input type="hidden" '. 
    547552                            'name="'.$package->lk_option_name.'" '. 
  • store-locator-le/tags/3.2/core/csl_helpers.php

    r557331 r598470  
    7474    // Pro Pack - Use Themes System 
    7575    // 
    76     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     76    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    7777        $slplus_plugin->themes->assign_user_stylesheet(isset($fnvars['theme'])?$fnvars['theme']:''); 
    7878    } else { 
  • store-locator-le/tags/3.2/core/functions.sl.php

    r587040 r598470  
    216216    global $wpdb, $slplus_plugin;     
    217217     
    218     // Initialize delay in geocode speed 
    219     $delay = 0; 
    220      
     218    $delay = 0;     
    221219    $base_url = "http://maps.googleapis.com/maps/api/geocode/json?sensor=false"; 
    222220     
     
    230228        // Iterate through the rows, geocoding each address 
    231229        $request_url = $base_url . "&address=" . urlencode($address); 
     230        $errorMessage = ''; 
    232231         
    233         if (extension_loaded("curl") && function_exists("curl_init")) { 
     232 
     233        // Use HTTP Handler (WP_HTTP) first... 
     234        // 
     235        if (isset($slplus_plugin->http_handler)) {  
     236            $result = $slplus_plugin->http_handler->request(  
     237                            $request_url,  
     238                            array('timeout' => 3)  
     239                            );  
     240            if ($slplus_plugin->http_result_is_ok($result) ) { 
     241                $raw_json = $result['body']; 
     242            } 
     243             
     244        // Then Curl... 
     245        // 
     246        } elseif (extension_loaded("curl") && function_exists("curl_init")) { 
    234247                $cURL = curl_init(); 
    235248                curl_setopt($cURL, CURLOPT_URL, $request_url); 
    236249                curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1); 
    237                 $json = curl_exec($cURL); 
    238                 curl_close($cURL);   
    239         }else{ 
    240              $json = file_get_contents($request_url) or die("url not loading"); 
    241         } 
    242         $json = json_decode($json); 
     250                $raw_json = curl_exec($cURL); 
     251                curl_close($cURL); 
     252 
     253        // Lastly file_get_contents 
     254        // 
     255        } else { 
     256             $raw_json = file_get_contents($request_url); 
     257        } 
     258        $json = json_decode($raw_json); 
    243259        $status = $json->{'status'}; 
    244260         
     
    247263        if (strcmp($status, "OK") == 0) { 
    248264            $iterations = 0;      // Break out of retry loop if we are OK 
     265            $delay = 0; 
    249266             
    250267            // successful geocode 
     
    272289            // 
    273290            $update_result = $wpdb->query($query); 
    274             if (!$update_result) { 
    275                 echo sprintf(__("Could not add/update address.  Error: %s.", SLPLUS_PREFIX),mysql_error())."\n<br>"; 
     291            if ($update_result == 0) { 
     292                $theDBError = htmlspecialchars(mysql_error($wpdb->dbh),ENT_QUOTES); 
     293                $errorMessage .= __("Could not add/update address.  ", SLPLUS_PREFIX); 
     294                if ($theDBError != '') { 
     295                    $errorMessage .= sprintf( 
     296                                            __("Error: %s.", SLPLUS_PREFIX), 
     297                                            $theDBError 
     298                                            ); 
     299                } elseif ($update_result === 0) { 
     300                    $errorMessage .=  __("It appears the data did not change.", SLPLUS_PREFIX); 
     301                } else { 
     302                    $errorMessage .=  __("No error logged.", SLPLUS_PREFIX); 
     303                    $errorMessage .= "<br/>\n" . __('Query: ', SLPLUS_PREFIX); 
     304                    $errorMessage .= print_r($wpdb->last_query,true); 
     305                    $errorMessage .= "<br/>\n" . "Results: " . gettype($update_result) . ' '. $update_result; 
     306                } 
     307 
    276308            } 
    277309 
     
    283315          // 
    284316          if(!$iterations){ 
    285             echo sprintf(__("Address %s <font color=red>failed to geocode</font>. ", SLPLUS_PREFIX),$address); 
    286             echo sprintf(__("Received status %s.", SLPLUS_PREFIX),$status)."\n<br>"; 
     317            $errorMessage .= sprintf(__("Address %s <font color=red>failed to geocode</font>. ", SLPLUS_PREFIX),$address); 
     318            $errorMessage .= sprintf(__("Received status %s.", SLPLUS_PREFIX),$status)."\n<br>"; 
    287319          }                        
    288320          $delay += 100000; 
     
    292324        } else if (strcmp($status, 'ZERO_RESULTS') == 0) { 
    293325            $iterations = 0;  
    294             echo sprintf(__("Address %s <font color=red>failed to geocode</font>. ", SLPLUS_PREFIX),$address); 
    295             echo sprintf(__("Unknown Address! Received status %s.", SLPLUS_PREFIX),$status)."\n<br>"; 
     326            $errorMessage .= sprintf(__("Address %s <font color=red>failed to geocode</font>. ", SLPLUS_PREFIX),$address); 
     327            $errorMessage .= sprintf(__("Unknown Address! Received status %s.", SLPLUS_PREFIX),$status)."\n<br>"; 
    296328           
    297329        // Could Not Geocode 
     
    300332            $geocode_pending = false; 
    301333            echo sprintf(__("Address %s <font color=red>failed to geocode</font>. ", SLPLUS_PREFIX),$address); 
    302             echo sprintf(__("Received status %s.", SLPLUS_PREFIX),$status)."\n<br>"; 
    303         } 
     334            if ($status != '') { 
     335                $errorMessage .= sprintf(__("Received data %s.", SLPLUS_PREFIX),'<pre>'.print_r($json,true).'</pre>')."\n"; 
     336            } else { 
     337                $errorMessage .= sprintf(__("Reqeust sent to %s.", SLPLUS_PREFIX),$request_url)."\n<br>"; 
     338                $errorMessage .= sprintf(__("Received status %s.", SLPLUS_PREFIX),$status)."\n<br>"; 
     339            } 
     340        } 
     341 
     342        // Show Error Messages 
     343        // 
     344        if ($errorMessage != '') { 
     345            print '<div class="geocode_error">' . 
     346                    $errorMessage . 
     347                    '</div>'; 
     348        } 
     349 
    304350        usleep($delay); 
    305351    } 
     
    333379        add_option(SLPLUS_PREFIX."-db_version", $sl_db_version); 
    334380    } else { 
     381         
     382        // Change Pro Pack license info to new SKU 
     383        // 
     384        if (get_option(SLPLUS_PREFIX.'-SLPLUS-PRO-lk','') == '') { 
     385            update_option(SLPLUS_PREFIX.'-SLPLUS-PRO-lk',get_option(SLPLUS_PREFIX.'-SLPLUS-lk','')); 
     386            update_option(SLPLUS_PREFIX.'-SLPLUS-PRO-isenabled',get_option(SLPLUS_PREFIX.'-SLPLUS-isenabled','')); 
     387        } 
     388 
     389        // Change Pages license info to new SKU 
     390        // 
     391        if (get_option(SLPLUS_PREFIX.'-SLPLUS-PAGES-lk','') == '') { 
     392            update_option(SLPLUS_PREFIX.'-SLPLUS-PAGES-isenabled',get_option(SLPLUS_PREFIX.'-SLP-PAGES-isenabled','')); 
     393        } 
     394 
    335395        update_option(SLPLUS_PREFIX."-db_version", $sl_db_version); 
    336396    } 
    337397     
    338      
     398 
     399    // Roles 
     400    // 
    339401    if (function_exists('add_slplus_roles_and_caps')) { 
    340402        add_slplus_roles_and_caps(); 
    341     }         
     403    }       
     404     
     405    // Themes Cleaning 
     406    // 
     407    update_option($slplus_plugin->prefix.'-theme_lastupdated','2006-10-05'); 
     408 
    342409    move_upload_directories(); 
    343410} 
     
    595662    $fnvars = array_merge($fnvars,(array) $attributes);       // merge in passed attributes 
    596663     
    597      
    598     // Prepare some data for JavaScript injection... 
    599     // 
    600     $slplus_home_icon = get_option('sl_map_home_icon'); 
    601     $slplus_end_icon  = get_option('sl_map_end_icon'); 
    602     $slplus_home_icon_file = str_replace(SLPLUS_ICONURL,SLPLUS_ICONDIR,$slplus_home_icon); 
    603     $slplus_end_icon_file  = str_replace(SLPLUS_ICONURL,SLPLUS_ICONDIR,$slplus_end_icon); 
    604     $slplus_home_size=(function_exists('getimagesize') && file_exists($slplus_home_icon_file))?  
    605         getimagesize($slplus_home_icon_file) :  
    606         array(0 => 20, 1 => 34);     
    607     $slplus_end_size =(function_exists('getimagesize') && file_exists($slplus_end_icon_file)) ?  
    608         getimagesize($slplus_end_icon_file)  :  
    609         array(0 => 20, 1 => 34); 
    610664         
    611665    //todo: make sure map type gets set to a sane value before getting here. Maybe not... 
    612      
    613     // Lets get some variables into our script 
    614     // 
    615     $scriptData = array( 
    616         'debug_mode'        => (get_option(SLPLUS_PREFIX.'-debugging') == 'on'), 
    617         'disable_scroll'    => (get_option(SLPLUS_PREFIX.'_disable_scrollwheel')==1), 
    618         'disable_dir'       => (get_option(SLPLUS_PREFIX.'_disable_initialdirectory' )==1), 
    619         'distance_unit'     => esc_attr(get_option('sl_distance_unit'),'miles'), 
    620         'load_locations'    => (get_option('sl_load_locations_default')==1), 
    621         'map_3dcontrol'     => (get_option(SLPLUS_PREFIX.'_disable_largemapcontrol3d')==0), 
    622         'map_country'       => SetMapCenter(), 
    623         'map_domain'        => get_option('sl_google_map_domain','maps.google.com'), 
    624         'map_home_icon'     => $slplus_home_icon, 
    625         'map_home_sizew'    => $slplus_home_size[0], 
    626         'map_home_sizeh'    => $slplus_home_size[1], 
    627         'map_end_icon'      => $slplus_end_icon, 
    628         'map_end_sizew'     => $slplus_end_size[0], 
    629         'map_end_sizeh'     => $slplus_end_size[1], 
    630         'use_sensor'            => (get_option(SLPLUS_PREFIX."_use_location_sensor")==1), 
    631         'map_scalectrl'     => (get_option(SLPLUS_PREFIX.'_disable_scalecontrol')==0), 
    632         'map_type'          => get_option('sl_map_type','roadmap'), 
    633         'map_typectrl'      => (get_option(SLPLUS_PREFIX.'_disable_maptypecontrol')==0), 
    634         'show_tags'         => (get_option(SLPLUS_PREFIX.'_show_tags')==1), 
    635         'overview_ctrl'     => get_option('sl_map_overview_control',0), 
    636         'use_email_form'    => (get_option(SLPLUS_PREFIX.'_email_form')==1), 
    637         'use_pages_links'   => ($slplus_plugin->settings->get_item('use_pages_links')=='on'), 
    638         'use_same_window'   => ($slplus_plugin->settings->get_item('use_same_window')=='on'),                 
    639         'website_label'     => esc_attr(get_option('sl_website_label','Website')), 
    640         'zoom_level'        => get_option('sl_zoom_level',4), 
    641         'zoom_tweak'        => get_option('sl_zoom_tweak',1), 
    642         ); 
    643     wp_localize_script('csl_script','slplus',$scriptData); 
    644     wp_localize_script('csl_script','csl_ajax',array('ajaxurl' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('em'))); 
    645      
     666 
     667    //todo: if we allow map setting overrides via shortcode attributes we will need 
     668    // to re-localize the script.  It was moved to the actions class so we can 
     669    // localize prior to enqueue in the header. 
     670    // 
     671 
     672    // Setup the style sheets 
     673    // 
     674    setup_stylesheet_for_slplus(); 
     675 
     676 
    646677    // Set our flag for later processing 
    647678    // of JavaScript files 
     
    650681        define('SLPLUS_SHORTCODE_RENDERED',true); 
    651682    } 
    652      
     683 
    653684    return get_string_from_phpexec($file);  
    654685} 
  • store-locator-le/tags/3.2/core/js/csl.js

    r587040 r598470  
    447447         */ 
    448448        this.__init = function() { 
    449             this.address = slplus.map_country; 
    450             this.zoom = slplus.zoom_level; 
    451             this.mapType = slplus.map_type; 
    452             this.disableScroll = !!slplus.disable_scroll; 
    453             this.debugMode = !!slplus.debug_mode; 
    454             this.disableDir = !!slplus.disable_dir; 
    455             this.distanceUnit = slplus.distance_unit; 
    456             this.load_locations = !!slplus.load_locations; 
    457             this.mapCountry = slplus.map_country; 
    458             this.mapDomain = slplus.map_domain; 
    459             this.mapHomeIconUrl = slplus.map_home_icon; 
    460             this.mapHomeIconWidth = slplus.map_home_icon_sizew; 
    461             this.mapHomeIconHeight = slplus.map_home_icon_sizeh; 
    462             this.mapEndIconUrl = slplus.map_end_icon; 
    463             this.mapEndIconWidth = slplus.map_end_sizew; 
    464             this.mapEndIconHeight = slplus.map_end_sizeh; 
    465             this.mapScaleControl = !!slplus.map_scalectrl; 
    466             this.mapTypeControl = !!slplus.map_typectrl; 
    467             this.showTags = slplus.show_tags; 
    468             this.overviewControl = !!(parseInt(slplus.overview_ctrl)); 
    469             this.useEmailForm = !!slplus.use_email_form; 
    470             this.usePagesLink = !!slplus.use_pages_link; 
    471             this.useSameWindow = !!slplus.use_same_window; 
    472             this.websiteLabel = slplus.website_label; 
    473             this.zoomLevel = slplus.zoom_level; 
    474             this.disableDefaultUI = false; 
    475              
    476             if (!this.disableDir) { 
    477                 this.loadedOnce = true; 
    478             } 
     449                         
     450            if (typeof slplus != 'undefined') { 
     451                this.address = slplus.map_country; 
     452                this.zoom = slplus.zoom_level; 
     453                this.mapType = slplus.map_type; 
     454                this.disableScroll = !!slplus.disable_scroll; 
     455                this.debugMode = !!slplus.debug_mode; 
     456                this.disableDir = !!slplus.disable_dir; 
     457                this.distanceUnit = slplus.distance_unit; 
     458                this.load_locations = !!slplus.load_locations; 
     459                this.mapCountry = slplus.map_country; 
     460                this.mapDomain = slplus.map_domain; 
     461                this.mapHomeIconUrl = slplus.map_home_icon; 
     462                this.mapHomeIconWidth = slplus.map_home_icon_sizew; 
     463                this.mapHomeIconHeight = slplus.map_home_icon_sizeh; 
     464                this.mapEndIconUrl = slplus.map_end_icon; 
     465                this.mapEndIconWidth = slplus.map_end_sizew; 
     466                this.mapEndIconHeight = slplus.map_end_sizeh; 
     467                this.mapScaleControl = !!slplus.map_scalectrl; 
     468                this.mapTypeControl = !!slplus.map_typectrl; 
     469                this.showTags = slplus.show_tags; 
     470                this.overviewControl = !!(parseInt(slplus.overview_ctrl)); 
     471                this.useEmailForm = !!slplus.use_email_form; 
     472                this.usePagesLink = !!slplus.use_pages_link; 
     473                this.useSameWindow = !!slplus.use_same_window; 
     474                this.websiteLabel = slplus.website_label; 
     475                this.zoomLevel = slplus.zoom_level; 
     476                this.disableDefaultUI = false; 
     477 
     478                if (!this.disableDir) { 
     479                    this.loadedOnce = true; 
     480                } 
     481            } else { 
     482                alert('Store Locator Plus script not loaded properly.'); 
     483            } 
    479484        } 
    480485         
     
    11351140             
    11361141            var html =  '<center><table width="96%" cellpadding="4px" cellspacing="0" class="searchResultsTable">' + 
    1137                     '<tr>' + 
     1142                    '<tr class="slp_results_row">' + 
    11381143                    '<td class="results_row_left_column">' + 
    11391144                        '<span class="location_name">' + aMarker.name + '</span><br>' +  
  • store-locator-le/tags/3.2/core/map-designer.php

    r575152 r598470  
    119119        update_option(SLPLUS_PREFIX.'_tag_search_selections',   $_POST[SLPLUS_PREFIX.'_tag_search_selections']); 
    120120        update_option(SLPLUS_PREFIX.'_state_pd_label',          $_POST[SLPLUS_PREFIX.'_state_pd_label']); 
    121         update_option(SLPLUS_PREFIX.'_map_center',              $_POST[SLPLUS_PREFIX.'_map_center']);         
    122         update_option(SLPLUS_PREFIX.'_maxreturned',             $_POST[SLPLUS_PREFIX.'_maxreturned']); 
     121        if (isset($_POST[SLPLUS_PREFIX.'_map_center']   )) { update_option(SLPLUS_PREFIX.'_map_center',              $_POST[SLPLUS_PREFIX.'_map_center']);  } 
     122        if (isset( $_POST[SLPLUS_PREFIX.'_maxreturned'] )) { update_option(SLPLUS_PREFIX.'_maxreturned',             $_POST[SLPLUS_PREFIX.'_maxreturned']); } 
    123123    }     
    124124     
  • store-locator-le/tags/3.2/core/templates/managelocations_actionbar.php

    r575152 r598470  
    2828</script> 
    2929<form name='locationForm' method='post'> 
     30    <input name='act' type='hidden'> 
    3031<div id="action_buttons"> 
    3132    <div id="action_bar_header"><h3><?php print __('Location Actions',SLPLUS_PREFIX); ?></h3></div> 
  • store-locator-le/tags/3.2/core/templates/navbar.php

    r557331 r598470  
    1818    // Pro Version : Show Reports Tab 
    1919    // 
    20     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) {       
     20    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) {       
    2121        print '<a href="'.SLPLUS_PLUSPAGE.'reporting.php"><li class="like-a-button">Reports</li></a>'; 
    2222    } 
  • store-locator-le/tags/3.2/core/templates/search_form.php

    r575152 r598470  
    77      $prefix = $slplus_plugin->prefix; 
    88 
    9       // todo: change the name of this function please! 
    10       SLPlus_Actions::shutdown(); 
     9      // Script enqueue should never be called as a direct function. 
     10      // 
     11      // WordPress best practices dictacte using this in a supported action hook only. 
     12      // Many themes and plugins will not honor this. 
     13      // 
     14      // SLPlus_Actions::shutdown(); 
    1115?> 
    1216<div id='sl_div'> 
     
    212216                <div id='map' style='width:<?php echo $sl_width?><?php echo $sl_width_units?>; height:<?php echo $sl_height?><?php echo $sl_height_units?>'></div> 
    213217                <table cellpadding='0px' class='sl_footer' width='<?php echo $sl_width?><?php echo $sl_width_units?>;' <?php echo $sl_hide?>> 
    214                 <tr> 
    215                     <td class='sl_footer_left_column'> 
    216                         <a href='http://www.cybersprocket.com/products/store-locator-plus/' target='_blank'>Store Locator Plus</a> 
    217                     </td> 
     218                <tr class="slp_map_tagline"> 
    218219                    <td class='sl_footer_right_column'> 
    219                         <a href='http://www.cybersprocket.com' target='_blank' title='by Cyber Sprocket Labs'>by Cyber Sprocket Labs</a> 
     220                        <?php echo __('search provided by', SLPLUS_PREFIX); ?> <a href='<?php echo $slplus_plugin->url; ?>' target='_blank'><?php echo $slplus_plugin->name; ?></a> 
    220221                    </td> 
    221222                </tr>                 
     
    230231        </td> 
    231232      </tr> 
    232       <tr id='cm_mapTR'> 
     233      <tr id='cm_mapTR'class='slp_map_search_results'> 
    233234        <td width='' valign='top' id='map_sidebar_td'> 
    234235            <div id='map_sidebar' style='width:<?php echo $sl_width?><?php echo $sl_width_units?>;'> 
  • store-locator-le/tags/3.2/core/view-locations.php

    r587040 r598470  
    109109            if ($_POST) {extract($_POST);} 
    110110            if (isset($sl_id)) { 
     111 
     112                // use this to delete 100 at a time 
     113                // 
     114                $delQueries = array(); 
     115 
    111116                if (is_array($sl_id)==1) { 
    112117                    $id_string=""; 
     118                    $idCount = 0; 
    113119                    foreach ($sl_id as $sl_value) { 
     120                        $idCount++; 
    114121                        $id_string.="$sl_value,"; 
     122 
     123                        // Got 100?  Push a delete string on the stack 
     124                        // 
     125                        if ($idCount == 100) { 
     126                            $idCount = 0; 
     127                            $id_string=substr($id_string, 0, strlen($id_string)-1); 
     128                            array_push($delQueries,"DELETE FROM ".$wpdb->prefix."store_locator WHERE sl_id IN ($id_string)"); 
     129                            $id_string=''; 
     130                        } 
    115131                    } 
     132 
     133                    // Clean up any stragglers 
     134                    // 
    116135                    $id_string=substr($id_string, 0, strlen($id_string)-1); 
     136 
     137                // Single Item Delete 
     138                // 
    117139                } else { 
    118140                    $id_string=$sl_id; 
    119141                } 
    120                  
    121                 if ($id_string != '') { 
    122                     $wpdb->query("DELETE FROM ".$wpdb->prefix."store_locator WHERE sl_id IN ($id_string)"); 
     142 
     143                // push the last one on the stack 
     144                // 
     145                if ($id_string != ''){ 
     146                    array_push($delQueries,"DELETE FROM ".$wpdb->prefix."store_locator WHERE sl_id IN ($id_string)"); 
     147                } 
     148                 
     149                // Run deletions 
     150                // 
     151                foreach ($delQueries as $delQuery) { 
     152                    $delete_result = $wpdb->query($delQuery); 
     153                    if ($delete_result == 0) { 
     154                        $errorMessage .= __("Could not delete the locations.  ", SLPLUS_PREFIX); 
     155                        $theDBError = htmlspecialchars(mysql_error($wpdb->dbh),ENT_QUOTES); 
     156                        if ($theDBError != '') { 
     157                            $errorMessage .= sprintf( 
     158                                                    __("Error: %s.", SLPLUS_PREFIX), 
     159                                                    $theDBError 
     160                                                    ); 
     161                        } elseif ($delete_result === 0) { 
     162                            $errorMessage .=  __("It appears the delete was for no records.", SLPLUS_PREFIX); 
     163                        } else { 
     164                            $errorMessage .=  __("No error logged.", SLPLUS_PREFIX); 
     165                            $errorMessage .= "<br/>\n" . __('Query: ', SLPLUS_PREFIX); 
     166                            $errorMessage .= print_r($wpdb->last_query,true); 
     167                            $errorMessage .= "<br/>\n" . "Results: " . gettype($delete_result) . ' '. $delete_result; 
     168                        } 
     169 
     170                    } 
     171 
    123172                } 
    124173            } 
     
    477526    } 
    478527    print "</table> 
    479     <input name='act' type='hidden'><br>"; 
     528    <br>"; 
    480529if ($numMembers2!=0) {include(SLPLUS_COREDIR.'/search-links.php');} 
    481530 
  • store-locator-le/tags/3.2/css/admin.css

    r544991 r598470  
    1616    clear: both; 
    1717} 
    18   
     18 
     19div.geocode_error { 
     20 clear: both; 
     21} 
    1922/*---------------------------------- 
    2023 * 
     
    107110 div.optionpack_box iframe { 
    108111     margin: 0px auto; 
    109      width: 160px; 
     112     width: 180px; 
    110113 } 
    111114 div.optionpack_name { 
     
    189192/* Action Bar Specific */ 
    190193div#action_buttons { 
    191     width: 888px; 
     194    width: 890px; 
    192195    position: relative; 
    193196    margin-top: 12px;     
     
    215218} 
    216219div#tag_block { 
    217     width: 340px; 
     220    width: 341px; 
    218221} 
    219222div#slplus_actionbar div#tag_actions { 
  • store-locator-le/tags/3.2/how_to_use.txt

    r550537 r598470  
    99<br/> 
    1010<br/> 
    11 <strong>Need More Assistance?</strong><br/><br/> 
    12 For help setting up and using this plugin, please visit the  
    13 <strong><a href="http://redmine.cybersprocket.com/projects/mc-closeststore/wiki" target="newinfo"> 
    14 Store Locator Plus Knowledgebase</a></strong>.<br/> We recommend registering on the site and  
    15 using the forums to post questions.  It is the best way to get a response from our development team. 
    16 <br/><br/>Register here:<br/> 
    17 <a href="http://redmine.cybersprocket.com/account/register"> 
    18 http://redmine.cybersprocket.com/account/register</a> 
    19 <br/><br/>Review the forum here:<br/> 
    20 <a href="http://redmine.cybersprocket.com/projects/commercial-products/boards"> 
    21 http://redmine.cybersprocket.com/projects/commercial-products/boards</a><br/> 
     11<strong>Need More Assistance?</strong> <a href="http://www.charlestonsw.com/support/">Visit our support pages.</a><br/><br/> 
    2212</p> 
  • store-locator-le/tags/3.2/include/config.php

    r587040 r598470  
    4141 
    4242            'on_update' => array('SLPlus_Activate', 'update'), 
    43             'version' => '3.1.5', 
     43            'version' => '3.2', 
    4444 
    45             'url'                   => 'http://www.storelocatorplus.com/',             
    46             'support_url'            => 'http://storelocatorplus.com/faq/', 
    47             'purchase_url'           => 'http://storelocatorplus.com/download/', 
     45            'url'                   => 'http://www.charlestonsw.com/product/store-locator-plus-2/',             
     46            'support_url'            => 'http://www.charlestonsw.com/support/documentation/store-locator-plus/', 
     47            'purchase_url'           => 'http://www.charlestonsw.com/product/store-locator-plus-2/', 
    4848            'rate_url'              => 'http://wordpress.org/extend/plugins/store-locator-le/', 
    49             'forum_url'             => 'http://redmine.cybersprocket.com/projects/commercial-products/boards/33', 
     49            'forum_url'             => 'http://wordpress.org/support/plugin/store-locator-le', 
    5050             
    5151            'basefile'              => SLPLUS_BASENAME, 
     
    9797                'name'              => 'Pro Pack', 
    9898                'help_text'         => 'A variety of enhancements are provided with this package.  ' . 
    99                                        'See the <a href="'.$slplus_plugin->purchase_url.'" target="Cyber Sprocket">product page</a> for details.  If you purchased this add-on ' . 
     99                                       'See the <a href="'.$slplus_plugin->purchase_url.'" target="newinfo">product page</a> for details.  If you purchased this add-on ' . 
    100100                                       'come back to this page to enter the license key to activate the new features.', 
    101                 'sku'               => 'SLPLUS', 
    102                 'paypal_button_id'  => '2D864VACHMK5A', 
    103                 'paypal_upgrade_button_id' => 'TZSPX7PD26XJU' 
     101                'sku'               => 'SLPLUS-PRO', 
     102                'paypal_button_id'  => '59YT3GAJ7W922', 
     103                'paypal_upgrade_button_id' => '59YT3GAJ7W922' 
    104104            ) 
    105105        ); 
     
    109109    if ($slplus_plugin->license->packages['Pro Pack']->isenabled_after_forcing_recheck()) { 
    110110         
    111          //-------------------------------- 
    112          // Pro Pack v2.4+ Only 
    113          // 
    114          if ($slplus_plugin->license->packages['Pro Pack']->active_version >= 2004000) { 
    115               
    116111             //-------------------------------- 
    117112             // Enable Themes 
     
    119114             $slplus_plugin->themes_enabled = true; 
    120115             $slplus_plugin->themes->css_dir = SLPLUS_PLUGINDIR . 'css/'; 
    121          }              
    122           
    123           
    124116    }         
    125117} 
     
    140132                'name'              => 'Store Pages', 
    141133                'help_text'         => 'Create individual WordPress pages from your locations data. Great for SEO.  ' . 
    142                                        'See the <a href="'.$slplus_plugin->purchase_url.'" target="Cyber Sprocket">product page</a> for details.  If you purchased this add-on ' . 
     134                                       'See the <a href="'.$slplus_plugin->purchase_url.'" target="newinfo">product page</a> for details.  If you purchased this add-on ' . 
    143135                                       'come back to this page to enter the license key to activate the new features.', 
    144                 'sku'               => 'SLP-PAGES', 
    145                 'paypal_button_id'  => '3V2SSFKB3R6XE', 
    146                 'paypal_upgrade_button_id' => '3V2SSFKB3R6XE' 
     136                'sku'               => 'SLPLUS-PAGES', 
     137                'paypal_button_id'  => 'CT449P2ZH454E', 
     138                'paypal_upgrade_button_id' => 'CT449P2ZH454E' 
    147139            ) 
    148140        ); 
    149      
    150     // Enable Features Is Licensed 
    151     // 
    152     if ($slplus_plugin->license->packages['Store Pages']->isenabled_after_forcing_recheck()) { 
    153          
    154         // Future Feature Enabling Goes Here 
    155     }         
    156141} 
    157142 
  • store-locator-le/tags/3.2/include/storelocatorplus-actions_class.php

    r575152 r598470  
    103103                'How many times should we try to set the latitude/longitude for a new address. ' . 
    104104                'Higher numbers mean slower bulk uploads ('. 
    105                 '<a href="http://www.cybersprocket.com/products/store-locator-plus/">plus version</a>'. 
     105                '<a href="http://www.charlestonsw.com/product/store-locator-plus/">plus version</a>'. 
    106106                '), lower numbers makes it more likely the location will not be set during bulk uploads.', 
    107107                array ( 
     
    124124            // 
    125125            $slp_rep_desc = __('These settings affect how the Store Pages add-on behaves. ', SLPLUS_PREFIX); 
    126             if (!$slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) { 
     126            if (!$slplus_plugin->license->AmIEnabled(true, "SLPLUS-PAGES")) { 
    127127                $slp_rep_desc .= '<br/><br/>'. 
    128                     __('This is a <a href="http://www.storelocatorplus.com/">Store Pages</a>'. 
     128                    __('This is a <a href="http://www.charlestonsw.com/product/store-locator-plus-store-pages/">Store Pages</a>'. 
    129129                    ' feature.  It provides a way to auto-create individual WordPress pages' . 
    130130                    ' for each of your locations. ', SLPLUS_PREFIX); 
     
    137137                ) 
    138138            );          
    139             if ($slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) {             
     139            if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PAGES")) {             
    140140                slplus_add_pages_settings(); 
    141141            }                 
    142142             
    143143            //------------------------- 
    144             // Pro Pack: Reporting 
    145             //  
    146             $slp_rep_desc = __('These settings affect how the reporting system behaves. ', SLPLUS_PREFIX); 
    147             if (!$slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     144            // Pro Pack 
     145            // 
     146            $slp_rep_desc = __('These settings affect how the Pro Pack add-on behaves. ', SLPLUS_PREFIX); 
     147            if (!$slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    148148                $slp_rep_desc .= '<br/><br/>'. 
    149                     __('This is a <a href="http://www.storelocatorplus.com/">Pro Pack</a>'. 
    150                     ' feature.  It provides a way to generate reports on what locations' . 
    151                     ' people have searched for and what results they received back. ', SLPLUS_PREFIX); 
     149                    __('This is a <a href="http://www.charlestonsw.com/product/store-locator-plus/">Pro Pack</a>'. 
     150                    ' feature.  It provides more settings and features that are not provided in the free plugin' 
     151                    , SLPLUS_PREFIX); 
    152152            } 
    153153            $slp_rep_desc .= '<br/><br/>';  
    154154            $slplus_plugin->settings->add_section( 
    155155                array( 
    156                     'name'        => 'Reporting', 
     156                    'name'        => 'Pro Pack', 
    157157                    'description' => $slp_rep_desc 
    158158                ) 
    159159            ); 
    160             if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     160            if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    161161                slplus_add_report_settings(); 
    162162            }                 
     
    217217         */ 
    218218        static function wp_enqueue_scripts() { 
    219             global $slplus_plugin; 
    220              
    221             if (isset($slplus_plugin) && $slplus_plugin->ok_to_show()) {             
    222                 $api_key=$slplus_plugin->driver_args['api_key']; 
    223                 $sl_google_map_domain=(get_option('sl_google_map_domain')!="")?  
    224                         get_option('sl_google_map_domain') :  
    225                         "maps.google.com";                 
    226                 $sl_map_character_encoding='&oe='.get_option('sl_map_character_encoding','utf8');     
    227                  
    228                 //------------------------ 
    229                 // Register our scripts for later enqueue when needed 
    230                 // 
    231                 //wp_register_script('slplus_functions',SLPLUS_PLUGINURL.'/core/js/functions.js'); 
    232                 if (isset($api_key)) 
    233                 { 
    234                     wp_register_script( 
    235                             'google_maps', 
    236                             "http://$sl_google_map_domain/maps/api/js?v=3.9&amp;key=$api_key&amp;sensor=false" //todo:character encoding ??? 
    237                             //"http://$sl_google_map_domain/maps?file=api&amp;v=2&amp;key=$api_key&amp;sensor=false{$sl_map_character_encoding}"                         
    238                             ); 
    239                 } 
    240                 else { 
    241                     wp_register_script( 
    242                         'google_maps', 
    243                         "http://$sl_google_map_domain/maps/api/js?v=3.9&amp;sensor=false" 
    244                     ); 
    245                 } 
    246                          
    247                 wp_register_script('csl_script', SLPLUS_PLUGINURL.'/core/js/csl.js', array('jquery')); 
    248                        
    249             }                         
     219            global $slplus_plugin;             
     220            $api_key= (isset($slplus_plugin) && $slplus_plugin->ok_to_show()) ? 
     221                $slplus_plugin->driver_args['api_key'] : 
     222                '' 
     223                ; 
     224            $force_load = ( 
     225                        isset($slplus_plugin) ? 
     226                        $slplus_plugin->settings->get_item('force_load_js',true) : 
     227                        false 
     228                    ); 
     229 
     230            $sl_google_map_domain=(get_option('sl_google_map_domain','')!="")? 
     231                    get_option('sl_google_map_domain') :  
     232                    "maps.google.com";                 
     233            $sl_map_character_encoding='&oe='.get_option('sl_map_character_encoding','utf8');     
     234 
     235            //------------------------ 
     236            // Register our scripts for later enqueue when needed 
     237            // 
     238            //wp_register_script('slplus_functions',SLPLUS_PLUGINURL.'/core/js/functions.js'); 
     239            if (isset($api_key)) 
     240            { 
     241                wp_enqueue_script( 
     242                        'google_maps', 
     243                        "http://$sl_google_map_domain/maps/api/js?v=3.9&amp;key=$api_key&amp;sensor=false" //todo:character encoding ??? 
     244                        //"http://$sl_google_map_domain/maps?file=api&amp;v=2&amp;key=$api_key&amp;sensor=false{$sl_map_character_encoding}" 
     245                        ); 
     246            } 
     247            else { 
     248                wp_enqueue_script( 
     249                    'google_maps', 
     250                    "http://$sl_google_map_domain/maps/api/js?v=3.9&amp;sensor=false" 
     251                ); 
     252            } 
     253 
     254            wp_enqueue_script( 
     255                    'csl_script', 
     256                    SLPLUS_PLUGINURL.'/core/js/csl.js', 
     257                    array('jquery'), 
     258                    false, 
     259                    !$force_load 
     260            ); 
     261 
     262            //-------------------- 
     263            // Localize The Script 
     264            //-------------------- 
     265            // Prepare some data for JavaScript injection... 
     266            // 
     267            $slplus_home_icon = get_option('sl_map_home_icon'); 
     268            $slplus_end_icon  = get_option('sl_map_end_icon'); 
     269            $slplus_home_icon_file = str_replace(SLPLUS_ICONURL,SLPLUS_ICONDIR,$slplus_home_icon); 
     270            $slplus_end_icon_file  = str_replace(SLPLUS_ICONURL,SLPLUS_ICONDIR,$slplus_end_icon); 
     271            $slplus_home_size=(function_exists('getimagesize') && file_exists($slplus_home_icon_file))? 
     272                getimagesize($slplus_home_icon_file) : 
     273                array(0 => 20, 1 => 34); 
     274            $slplus_end_size =(function_exists('getimagesize') && file_exists($slplus_end_icon_file)) ? 
     275                getimagesize($slplus_end_icon_file)  : 
     276                array(0 => 20, 1 => 34); 
     277            // Lets get some variables into our script 
     278            // 
     279            $scriptData = array( 
     280                'debug_mode'        => (get_option(SLPLUS_PREFIX.'-debugging') == 'on'), 
     281                'disable_scroll'    => (get_option(SLPLUS_PREFIX.'_disable_scrollwheel')==1), 
     282                'disable_dir'       => (get_option(SLPLUS_PREFIX.'_disable_initialdirectory' )==1), 
     283                'distance_unit'     => esc_attr(get_option('sl_distance_unit'),'miles'), 
     284                'load_locations'    => (get_option('sl_load_locations_default')==1), 
     285                'map_3dcontrol'     => (get_option(SLPLUS_PREFIX.'_disable_largemapcontrol3d')==0), 
     286                'map_country'       => SetMapCenter(), 
     287                'map_domain'        => get_option('sl_google_map_domain','maps.google.com'), 
     288                'map_home_icon'     => $slplus_home_icon, 
     289                'map_home_sizew'    => $slplus_home_size[0], 
     290                'map_home_sizeh'    => $slplus_home_size[1], 
     291                'map_end_icon'      => $slplus_end_icon, 
     292                'map_end_sizew'     => $slplus_end_size[0], 
     293                'map_end_sizeh'     => $slplus_end_size[1], 
     294                'use_sensor'            => (get_option(SLPLUS_PREFIX."_use_location_sensor")==1), 
     295                'map_scalectrl'     => (get_option(SLPLUS_PREFIX.'_disable_scalecontrol')==0), 
     296                'map_type'          => get_option('sl_map_type','roadmap'), 
     297                'map_typectrl'      => (get_option(SLPLUS_PREFIX.'_disable_maptypecontrol')==0), 
     298                'show_tags'         => (get_option(SLPLUS_PREFIX.'_show_tags')==1), 
     299                'overview_ctrl'     => get_option('sl_map_overview_control',0), 
     300                'use_email_form'    => (get_option(SLPLUS_PREFIX.'_email_form')==1), 
     301                'use_pages_links'   => ($slplus_plugin->settings->get_item('use_pages_links')=='on'), 
     302                'use_same_window'   => ($slplus_plugin->settings->get_item('use_same_window')=='on'), 
     303                'website_label'     => esc_attr(get_option('sl_website_label','Website')), 
     304                'zoom_level'        => get_option('sl_zoom_level',4), 
     305                'zoom_tweak'        => get_option('sl_zoom_tweak',1), 
     306                ); 
     307            wp_localize_script('csl_script','slplus',$scriptData); 
     308            wp_localize_script('csl_script','csl_ajax',array('ajaxurl' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('em'))); 
    250309        }      
    251310         
    252          
     311 
     312        /************************************* 
     313         * method: wp_footer() 
     314         * 
     315         * This is called whenever the WordPress shutdown action is called. 
     316         */ 
     317        function wp_footer() { 
     318            SLPlus_Actions::ManageTheScripts(); 
     319        } 
     320 
     321 
    253322        /************************************* 
    254323         * method: shutdown() 
     
    257326         */ 
    258327        function shutdown() { 
    259              
    260             // If we rendered an SLPLUS shortcode... 
    261             // 
    262             if (defined('SLPLUS_SHORTCODE_RENDERED') && SLPLUS_SHORTCODE_RENDERED) { 
    263                  
    264                 // Register Load JavaScript 
     328            // Safety for themes not using wp_footer 
     329            SLPlus_Actions::ManageTheScripts(); 
     330        } 
     331 
     332        // Unload The SLP Scripts If No Shortcode 
     333        // 
     334        function ManageTheScripts() { 
     335            if (!defined('SLPLUS_SCRIPTS_MANAGED') || !SLPLUS_SCRIPTS_MANAGED) { 
     336 
     337                // If no shortcode rendered, remove scripts 
    265338                // 
    266                 //wp_enqueue_script('slplus_functions'); 
    267                 wp_enqueue_script('google_maps');                 
    268                 //wp_enqueue_script('slplus_map'); 
    269                 wp_enqueue_script('csl_script'); 
    270                  
    271                 // Enqueue the style sheet 
    272                 // 
    273                 setup_stylesheet_for_slplus();                 
    274                             
    275                 // Force our scripts to load for badly behaved themes 
    276                 // 
    277                 //wp_print_footer_scripts(); 
    278             }              
    279         }             
     339                if (!defined('SLPLUS_SHORTCODE_RENDERED') || !SLPLUS_SHORTCODE_RENDERED) { 
     340                    wp_dequeue_script('google_maps'); 
     341                    wp_deregister_script('google_maps'); 
     342                    wp_dequeue_script('csl_script'); 
     343                    wp_deregister_script('csl_script'); 
     344                } 
     345                define('SLPLUS_SCRIPTS_MANAGED',true); 
     346            } 
     347        } 
    280348    } 
    281 }         
    282       
    283  
     349} 
  • store-locator-le/tags/3.2/plus.php

    r575152 r598470  
    116116    global $slplus_plugin; 
    117117     
    118     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) {     
     118    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) {     
    119119        $slplus_plugin->settings->add_item( 
    120             'Reporting',  
     120            'Pro Pack', 
     121            __('Force Load JavaScript', SLPLUS_PREFIX), 
     122            'force_load_js', 
     123            'checkbox', 
     124            false, 
     125            __('Force the JavaScript for Store Locator Plus to load on every page. ' . 
     126            'This can slow down your site, but is compatible with more themes and plugins.', SLPLUS_PREFIX), 
     127            null, 
     128            $slplus_plugin->settings->get_item('force_load_js',true) 
     129        ); 
     130        $slplus_plugin->settings->add_item( 
     131            'Pro Pack', 
    121132            __('Enable reporting', SLPLUS_PREFIX),  
    122133            'reporting_enabled',  
     
    138149    global $slplus_plugin; 
    139150     
    140     if ($slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) { 
     151    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PAGES")) { 
    141152        $slplus_plugin->settings->add_item( 
    142153            'Store Pages',  
     
    326337                'tags_for_pulldown'=> null,  
    327338                'only_with_tag'    => null, 
     339                'theme'            => null, 
    328340                );         
    329         if ($slplus_plugin->license->packages['Pro Pack']->active_version >= 2007000) { 
    330             array_merge($slpAtts,array('theme' => null)); 
    331         } 
    332341        shortcode_atts($slpAtts,$attributes); 
    333342    } 
  • store-locator-le/tags/3.2/readme.txt

    r587040 r598470  
    11=== Google Maps via Store Locator Plus === 
    22Plugin Name: Google Maps via Store Locator Plus 
    3 Contributors: cybersprocket, charlestonsw 
    4 Donate link: http://www.cybersprocket.com/products/store-locator-plus/ 
     3Contributors: charlestonsw 
     4Donate link: http://www.charlestonsw.com/products/store-locator-plus/ 
    55Tags: google maps, store finder, store locator, store locater, google, dealer locator, dealer locater, zip code search, shop locator, shop finder, zipcode, location finder, places, stores, maps, mapping, mapper, plugin, posts, post, page, coordinates, latitude, longitude, geo, geocoding, shops, ecommerce, e-commerce, business locations, store locator plus, store locater plus, bing map, bing, yahoo maps, yahoo, mapping, retail 
    66Requires at least: 3.3 
    7 Tested up to: 3.4.1 
    8 Stable tag: 3.1.5 
     7Tested up to: 3.4.2 
     8Stable tag: 3.2 
    99 
    1010Store Locator Plus works with Google Maps v3 to put a store location search on your site. 
     
    3939 
    4040Please [rate us](http://wordpress.org/extend/plugins/store-locator-le/)! 
    41 Give us a chance to <a href="http://www.cybersprocket.com/contact-us/">address your concerns</a> if we didn't earn 5 stars. 
     41Give us a chance to <a href="http://www.charlestonsw.com/contact-us/">address your concerns</a> if we didn't earn 5 stars. 
    4242 
    4343= Special Requests = 
     
    4545We do accept feature requests for all of our plugins, free ones included. The most requested features will make it into the next version. 
    4646 
    47 <strong>If you need a special feature NOW, <a href="http://www.cybersprocket.com/contact-us/">contact us</a>!</strong> We offer expedited feature development. Most features can be implemented in less than a week for $200! 
     47<strong>If you need a special feature NOW, <a href="http://www.charlestonsw.com/contact-us/">contact us</a>!</strong> We offer expedited feature development. Our custom development rates start at $500/day. 
    4848 
    4949= Looking For Customized WordPress Plugins? = 
     
    5454and costs. 
    5555 
    56 Learn more at: http://www.cybersprocket.com/services/wordpress-developers/ 
    57  
    58 = Pro Pack Available = 
    59  
    60 The plugin has an optional Pro Pack available that adds advanced features to the Store Locator Plus product. 
    61 Some of the added features include: 
    62  
    63 * **NEW!**  Search by store name - Looking for a specific store? Search by name and pull it up instantly. 
    64 * CSV Bulk Uploads - using the CSV bulk loader 
    65 * Extended Map Settings - Control more details about how the map looks, disable the scale, the zoom, and more. 
    66 * Extended Manage Location Features - more controls for managing locations. 
    67 * Reporting - information on the reporting system and how it works. 
    68 * Tag Search - how to use tag based location searches. 
    69 * Custom Themes (Pro Pack v2.4) - easily add your own custom styles that stay in place during patches and upgrades. 
    70  
    71 Learn More about these features at the [Store Locator Plus website](http://www.storelocatorplus.com/) 
     56Learn more at: http://www.charlestonsw.com/ 
     57 
     58= Premium Add-Ons Available = 
     59 
     60We current offer a Pro Pack and a Store Pages premium add-on.  More add-ons are one the way. You can learn more about the add-ons at these web pages: 
     61 
     62* [Pro Pack](http://www.charlestonsw.com/product/store-locator-plus/) 
     63* [Store Pages](http://www.charlestonsw.com/product/store-locator-plus-store-pages/) 
     64 
     65Learn More about these features at the [Store Locator Plus website](http://www.charlestonsw.com/product/store-locator-plus/) 
    7266 
    7367= Upgrades = 
     
    8377= Related Links = 
    8478 
    85 * [Store Locator Plus](http://www.storelocatorplus.com/) 
    86 * [Other Cyber Sprocket Plugins](http://wordpress.org/extend/plugins/profile/cybersprocket/) 
    87 * [Custom WordPress Development](http://www.cybersprocket.com/services/wordpress-developers/) 
    88 * [Our Facebook Page](http://www.facebook.com/cyber.sprocket.labs) 
     79* [Store Locator Plus](http://www.charlestonsw.com/product/store-locator-plus/) 
     80* [Other CSA Plugins](http://profiles.wordpress.org/charlestonsw/) 
    8981 
    9082= Our Philosophy = 
     
    10294You can have a WordPress page for each store location on your map turning your location data into SEO friendly content.  Store Pages are a special page type that is fully integrated with WordPress,  but you manage them through Store Locator Plus.  Store Pages also have their own taxonomy (category system) so you can manage Store Page categories without affecting the rest of your site. 
    10395 
    104 [more information](http://storelocatorplus.com/premium-add-ons/store-pages/) 
     96[more information](http://www.charlestonsw.com/product/store-locator-plus-store-pages/) 
    10597 
    10698== Installation == 
     
    140132== Frequently Asked Questions == 
    141133 
     134= What happened to Cyber Sprocket? = 
     135 
     136Cyber Sprocket Labs was primarily a software consulting firm that did WordPress plugins as a part-time endeavor.   They have closed the business as of September 2012. 
     137 
     138= Who is Charleston Software Associates? = 
     139 
     140We have taken over the support, maintenance and updates of Cyber Sprocket's WordPress plugins.  We ONLY do mobile apps and WordPress plugins. 
     141 
     142= How does this impact my CSL license? = 
     143 
     144We will continue to honor all the CSL licenses.  However there may be some bumps in the road as we transition away from a licensing-centric to a pure-play add-on system over the coming months.   
     145 
     146If you have any problems with your license or validating a product please contact us via our web form at http://www.charlestonsw.com/ and we will resolve your licensing issues. 
     147 
    142148= What are the terms of the license? = 
    143149 
     
    145151wish.  We prefer that our customers pay us because they like what we do and 
    146152want to support our efforts to bring useful software to market.  Learn more 
    147 on our [CSL License Terms page](http://redmine.cybersprocket.com/projects/commercial-products/wiki/Cyber_Sprocket_Labs_Licensing_Terms "CSL License Terms page"). 
     153on our [CSL License Terms](http://www.charlestonsw.com/products/general-eula/). 
    148154 
    149155= How can I translate the plugin into my language? = 
     
    152158* Use the .pot file located in the languages directory of this plugin to create or update the .po files. 
    153159* Place these file in the languages subdirectory. 
    154 * If everything is ok, email the files to lobbyjones@cybersprocket.com and we will add them to the next release. 
     160* If everything is ok, email the files to info@charlestonsw.com and we will add them to the next release. 
    155161* For more information on POT files, domains, gettext and i18n have a look at the I18n for WordPress developers Codex page and more specifically at the section about themes and plugins. 
    156162 
     
    159165= What browsers are supported? = 
    160166 
    161 All major browsers should work, however Cyber Sprocket Labs only officially supports the current and the most recent prior release of Internet Explorer, Firefox, Chrome, and Safari. 
     167All major browsers should work, however CSA only officially supports the current and the most recent prior release of Internet Explorer, Firefox, Chrome, and Safari. 
    162168 
    163169As of June, 2011 this includes: 
     
    173179When you purchase the Pro Pack the system will automatically install a variety of new features in the base product. 
    174180The features that are added by the Pro Pack change on a regular basis. 
    175 Please see the [Store Locator Plus website](http://www.storelocatorplus.com) for the latest feature list. 
     181Please see the [Store Locator Plus website](http://www.charlestonsw.com/product/store-locator-plus/) for the latest feature list. 
    176182 
    177183Some of the features in the Pro Pack include: 
     
    192198Store Pages is a paid add-on for the free Store Locator Plus product. When you purchase the Store Pages add-on new features will be added to the base product. 
    193199 
    194 Please see the [Store Locator Plus website](http://www.storelocatorplus.com) for the latest feature list. 
    195  
    196 = What happened to the Plus Pack? = 
    197  
    198 We renamed it the Pro Pack.  Your Plus Pack license will work for the Pro Pack. 
     200Please see the [Store Locator Plus website](http://www.charlestonsw.com/product/store-locator-plus/) for the latest feature list. 
    199201 
    200202== Screenshots == 
     
    212214More screenshots are available via the [Store Locator Plus website](http://www.storelocatorplus.com/). 
    213215 
    214 == Upgrade Notice == 
    215  
    216 Update to allow the use of the location sensor, and compatability issues with IE 
    217  
    218216== Changelog == 
    219217 
    220218We update about once per month or more frequently as needed. 
    221219 
    222 See our [Version Roadmap](http://redmine.cybersprocket.com/projects/mc-closeststore/roadmap?utf8=%E2%9C%93&tracker_ids%5B%5D=2&tracker_ids%5B%5D=3&tracker_ids%5B%5D=6&completed=1) on our support site. 
    223  
    224 Here are the most recent releases... 
    225  
    226 = 3.1.5 (August 8th, 2012 = 
    227  
    228 * Add fax field to location data.  
    229  
    230 = 3.1.4 (July 26th, 2012) = 
    231  
    232 * Fixed where some versions of jquery will not start an anon. function 
    233  
    234 = 3.1.3 (July 23rd, 2012) = 
    235  
    236 * Export raw html from the description field 
    237  
    238 = 3.1.2 (July 20th, 2012) = 
    239  
    240 * Made the plugin far less likely to conflict with other plugins 
    241  
    242 = 3.1.1 (July 17th, 2012) = 
    243  
    244 * Fixed where parts of the plugin output after the closing html tag 
    245 * Fixed where ajax to/from a secured url weren't correctly working. 
    246  
    247 = 3.1 (July 11th, 2012) = 
    248  
    249 * Allows the use of the location sensor via pro pack 
    250 * Javascript made more compatible with Internet Explorer 
    251  
    252 = 3.0.92 (July 2nd, 2012) = 
    253  
    254 * Added a comma even if there isn't a state in the address 
    255  
    256  
     220Visit the [Store Locator Plus Release Notes](http://www.charlestonsw.com/support/documentation/store-locator-plus/release-notes/) at our website. 
     221 
     222= Latest Release: 3.2 (September 5th, 2012) = 
     223 
     224* Geocoding process updates. 
     225* Add a force load JavaScript for sites with less friendly themes (not processing shutdown or footer scripts) 
     226* Revised JavaScript load order is more aggressive. 
     227* Fix path name to language files, was causing some installs to break on security warning. 
     228* Theme system tweaking. 
     229* Transition from Cyber Sprocket to CSA. 
     230 
     231 
     232 
  • store-locator-le/tags/3.2/store-locator-le.php

    r587040 r598470  
    22/* 
    33Plugin Name: Google Maps via Store Locator Plus 
    4 Plugin URI: http://www.cybersprocket.com/products/store-locator-plus/ 
     4Plugin URI: http://www.charlestonsw.com/products/store-locator-plus/ 
    55Description: Manage multiple locations with ease. Map stores or other points of interest with ease via Gooogle Maps.  This is a highly customizable, easily expandable, enterprise-class location management system. 
    6 Version: 3.1.5 
    7 Author: Cyber Sprocket Labs 
    8 Author URI: http://www.cybersprocket.com 
     6Version: 3.2 
     7Author: Charleston Software Associates 
     8Author URI: http://www.charlestonsw.com 
    99License: GPL3 
    1010 
    11 Copyright 2012  Cyber Sprocket Labs (info@cybersprocket.com) 
     11Copyright 2012  Charleston Software Associates (info@charlestonsw.com) 
    1212 
    1313This program is free software; you can redistribute it and/or modify 
     
    7777// 
    7878include_once(SLPLUS_PLUGINDIR . '/include/config.php'   ); 
    79 include_once(SLPLUS_PLUGINDIR . 'plus.php'                      ); 
    80 include_once(SLPLUS_COREDIR   . 'csl_helpers.php'           ); 
    81 include_once(SLPLUS_COREDIR   . 'functions.sl.php'          ); 
     79include_once(SLPLUS_PLUGINDIR . 'plus.php'      ); 
     80include_once(SLPLUS_COREDIR   . 'csl_helpers.php'   ); 
     81include_once(SLPLUS_COREDIR   . 'functions.sl.php'  ); 
    8282include_once(SLPLUS_COREDIR   . 'csl-ajax-search.php'   ); 
    8383require_once(SLPLUS_PLUGINDIR . '/include/storelocatorplus-actions_class.php'); 
     
    9494add_action('init'               ,array('SLPlus_Actions','init')                 ); 
    9595add_action('wp_enqueue_scripts' ,array('SLPlus_Actions','wp_enqueue_scripts')   ); 
    96 //add_action('shutdown'           ,array('SLPlus_Actions','shutdown')             ); 
     96add_action('wp_footer'          ,array('SLPlus_Actions','wp_footer')            ); 
     97add_action('shutdown'           ,array('SLPlus_Actions','shutdown')             );  
    9798 
    9899// Admin Actions 
     
    128129// Text Domains 
    129130// 
    130 load_plugin_textdomain(SLPLUS_PREFIX, false, SLPLUS_BASENAME . '/core/languages/'); 
     131load_plugin_textdomain(SLPLUS_PREFIX, false, SLPLUS_COREDIR . 'languages/'); 
  • store-locator-le/trunk/WPCSL-generic/classes/CSL-license_class.php

    r587040 r598470  
    9292        // 
    9393        $csl_urls = array( 
    94             'http://cybersprocket.com/paypal/valid_transaction.php?', 
    95             'http://license.cybersprocket.com/paypal/valid_transaction.php?', 
     94            'http://www.charlestonsw.com/paypal/valid_transaction.php?', 
    9695            ); 
    9796 
     
    104103                            array('timeout' => 10) 
    105104                            ); 
     105             
    106106            if ($this->parent->http_result_is_ok($result) ) { 
    107107                $response = json_decode($result['body']); 
     
    155155        //............. 
    156156        // Not licensed 
    157         // main product 
    158         if (!$final_result) { 
    159             if (!$isa_package) { 
    160                 update_option($this->prefix.'-purchased',false); 
    161  
    162                 // add on package 
    163             } else { 
    164                 update_option($this->prefix.'-'.$theSKU.'-isenabled',false); 
    165             } 
    166         } 
    167  
    168157        return false; 
    169158    } 
  • store-locator-le/trunk/WPCSL-generic/classes/CSL-plugin.php

    r587040 r598470  
    9191        $this->display_settings_collapsed = false; 
    9292        $this->show_locale      = true; 
    93         $this->broadcast_url    = 'http://www.cybersprocket.com/signage/index.php'; 
     93        $this->broadcast_url    = 'http://www.charlestonsw.com/signage/index.php'; 
    9494        $this->shortcode_was_rendered = false; 
    9595        $this->current_admin_page = ''; 
     
    909909            if ($time >= $destruct_time) { 
    910910                //if the checkbox has been hit, then set to false 
    911                 if ($this->settings->get_item(thisbox)==true) { 
     911                if ($this->settings->get_item('thisbox')==true) { 
    912912                    $destruct_time = false; 
    913913                } 
  • store-locator-le/trunk/WPCSL-generic/classes/CSL-settings_class.php

    r587040 r598470  
    66 ** 
    77 ** The main settings class. 
    8  ** 
    9  ** see: http://redmine.cybersprocket.com/projects/wpmod/wiki/Class_wpCSL_settings 
    108 ** 
    119 ** Methods: 
     
    4240        // Only do this if we are on admin panel 
    4341        // 
    44         if (is_admin() && $this->parent->isOurAdminPage) { 
     42        if (isset($this->parent) && (is_admin() && $this->parent->isOurAdminPage)) { 
    4543             
    4644            // Only show the license section if the plugin settings 
     
    9290                                       padding-right: 6px;">CSL IP Addresses:</div> 
    9391                                   <div style="float: left;">' .  
    94                                         gethostbyname('cybersprocket.com') .  
     92                                        gethostbyname('charlestonsw.com') .  
    9593                                        ' and ' .   
    96                                         gethostbyname('license.cybersprocket.com') .  
     94                                        gethostbyname('license.charlestonsw.com') .  
    9795                                    '</div> 
    9896                                 </div>                                 
     
    210208                        ' 
    211209                        <div class="cybersprocket-cslbox"> 
    212                         <div class="cybersprocket-csllogo"> 
    213                         <a href="http://www.cybersprocket.com/" target="cslinfo"><img src="'. $this->plugin_url .'/images/CSL_banner_logo.png"/></a> 
    214                          </div> 
    215210                         <div class="cybersprocket-cslinfo"> 
    216                          <h4>This plugin has been brought to you by <a href="http://www.cybersprocket.com" 
    217                                 target="_new">Cyber Sprocket Labs</a></h4> 
    218                          <p>Cyber Sprocket Labs is a custom software development company.   
    219                             We develop desktop, mobile, and web applications for clients large and small   
     211                         <h4>This plugin has been brought to you by <a href="http://www.charlestonsw.com" 
     212                                target="_new">Charleston Software Associates</a></h4> 
     213                         <p>We develop desktop, mobile, and web applications for clients large and small   
    220214                            from all around the world. We hope our plugin brings you closer to the perfect site. 
    221215                            If there is anything we can do to improve our work or if you wish to hire us to customize 
    222216                            this plugin please call our Charleston South Carolina headquarters or  
    223217                            <a href="http://www.cybersprocket.com/contact-us/" target="cyber-sprocket-labs">email us</a> 
    224                             and let us know.<br/> 
    225                             <br> 
    226                             <strong>Cyber Sprocket Is...</strong><br/> 
    227                             Lobby Jones and a bunch of coders.<br/> 
    228                             <br/> 
    229                             <strong>For more information:</strong><br/> 
    230                             <a href="http://www.cybersprocket.com" target="cyber-sprocket-labs">Please visit our website at www.cybersprocket.com</a>.<br/> 
     218                            and let us know. 
    231219                         </p> 
    232220                         </div> 
     
    375363        }         
    376364 
     365        // Show the plugin environment and info section on every plugin 
     366        // 
     367        if ($this->render_csl_blocks) { 
     368            $this->sections['Plugin Info']->display(); 
     369        } 
     370 
    377371        // Only render license section if plugin settings 
    378372        // asks for it 
    379         if ($this->has_packages || !$this->no_license) { 
    380             $this->sections[$this->license_section_title]->header(); 
    381             $this->show_plugin_settings(); 
    382             $this->sections[$this->license_section_title]->footer(); 
    383         } 
     373        if (isset($this->license_section_title) && (isset($this->sections[$this->license_section_title]))) { 
     374            if ($this->has_packages || !$this->no_license) { 
     375                $this->sections[$this->license_section_title]->header(); 
     376                $this->show_plugin_settings(); 
     377                $this->sections[$this->license_section_title]->footer(); 
     378            } 
     379        }             
    384380 
    385381        // Draw each settings section as defined in the plugin config file 
     
    395391        if ($this->render_csl_blocks) { 
    396392            $this->sections['Plugin Environment']->display(); 
    397             $this->sections['Plugin Info']->display(); 
    398393        } 
    399394        $this->render_javascript(); 
     
    408403     **/ 
    409404    function show_plugin_settings() { 
     405       $theLicenseKey = get_option($this->prefix.'-license_key'); 
     406 
    410407       $license_ok =(  (get_option($this->prefix.'-purchased') == '1')   && 
    411                       (get_option($this->prefix.'-license_key') != '')                           
     408                      ($theLicenseKey != '') 
    412409                          );      
    413410         
     
    423420                    "name=\"{$this->prefix}-license_key\"" : 
    424421                    '') . 
    425                 " value=\"". get_option($this->prefix.'-license_key') . 
     422                " value=\"". $theLicenseKey . 
    426423                "\"". ($license_ok?'disabled' :'') . 
    427424                " />"; 
    428425     
    429426            if ($license_ok) { 
    430                 $content .= "<input type=\"hidden\" name=\"{$this->prefix}-license_key\" value=\"". 
    431                     get_option($this->prefix.'-license_key')."\"/>"; 
    432                 $content .= '<span><img src="'. $this->plugin_url . 
    433                     '/images/check_green.png" border="0" style="padding-left: 5px;" ' . 
    434                     'alt="License validated!" title="License validated!"></span>'; 
     427                $content .= 
     428                    '<p class="slp_license_info">'.$theLicenseKey.'</p>'        . 
     429                    '<input type="hidden" name="'.$this->prefix.'-license_key" '. 
     430                        'value="'.$theLicenseKey.'"/>'                          . 
     431                    '<span><img src="'. $this->plugin_url                       . 
     432                              '/images/check_green.png" border="0" '            . 
     433                              'style="padding-left: 5px;" '                     . 
     434                              'alt="License validated!" '                       . 
     435                              'title="License validated!"></span>'              ; 
    435436            } 
    436437             
     
    540541 
    541542                $content .= 
    542                     '<div><img src="'. $this->plugin_url . 
     543                    '<div class="csl_info_package_license">'. 
     544                    (($package->sku!='')?'SKU: '.$package->sku.'<br/>':''). 
     545                    (($package->license_key!='')?'License Key: '.$package->license_key.'<br/>':''). 
     546                    '<img src="'. $this->plugin_url . 
    543547                    '/images/check_green.png" border="0" style="padding-left: 5px;" ' . 
    544548                    'alt="'.$packString.'" title="'.$packString.'">' . 
    545                     'Version ' . $installed_version .'</div>'. 
     549                    (($installed_version != '')?'Version: ' . $installed_version : '') . 
     550                    '</div>'. 
    546551                    '<input type="hidden" '. 
    547552                            'name="'.$package->lk_option_name.'" '. 
  • store-locator-le/trunk/core/csl_helpers.php

    r557331 r598470  
    7474    // Pro Pack - Use Themes System 
    7575    // 
    76     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     76    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    7777        $slplus_plugin->themes->assign_user_stylesheet(isset($fnvars['theme'])?$fnvars['theme']:''); 
    7878    } else { 
  • store-locator-le/trunk/core/functions.sl.php

    r587040 r598470  
    216216    global $wpdb, $slplus_plugin;     
    217217     
    218     // Initialize delay in geocode speed 
    219     $delay = 0; 
    220      
     218    $delay = 0;     
    221219    $base_url = "http://maps.googleapis.com/maps/api/geocode/json?sensor=false"; 
    222220     
     
    230228        // Iterate through the rows, geocoding each address 
    231229        $request_url = $base_url . "&address=" . urlencode($address); 
     230        $errorMessage = ''; 
    232231         
    233         if (extension_loaded("curl") && function_exists("curl_init")) { 
     232 
     233        // Use HTTP Handler (WP_HTTP) first... 
     234        // 
     235        if (isset($slplus_plugin->http_handler)) {  
     236            $result = $slplus_plugin->http_handler->request(  
     237                            $request_url,  
     238                            array('timeout' => 3)  
     239                            );  
     240            if ($slplus_plugin->http_result_is_ok($result) ) { 
     241                $raw_json = $result['body']; 
     242            } 
     243             
     244        // Then Curl... 
     245        // 
     246        } elseif (extension_loaded("curl") && function_exists("curl_init")) { 
    234247                $cURL = curl_init(); 
    235248                curl_setopt($cURL, CURLOPT_URL, $request_url); 
    236249                curl_setopt($cURL, CURLOPT_RETURNTRANSFER, 1); 
    237                 $json = curl_exec($cURL); 
    238                 curl_close($cURL);   
    239         }else{ 
    240              $json = file_get_contents($request_url) or die("url not loading"); 
    241         } 
    242         $json = json_decode($json); 
     250                $raw_json = curl_exec($cURL); 
     251                curl_close($cURL); 
     252 
     253        // Lastly file_get_contents 
     254        // 
     255        } else { 
     256             $raw_json = file_get_contents($request_url); 
     257        } 
     258        $json = json_decode($raw_json); 
    243259        $status = $json->{'status'}; 
    244260         
     
    247263        if (strcmp($status, "OK") == 0) { 
    248264            $iterations = 0;      // Break out of retry loop if we are OK 
     265            $delay = 0; 
    249266             
    250267            // successful geocode 
     
    272289            // 
    273290            $update_result = $wpdb->query($query); 
    274             if (!$update_result) { 
    275                 echo sprintf(__("Could not add/update address.  Error: %s.", SLPLUS_PREFIX),mysql_error())."\n<br>"; 
     291            if ($update_result == 0) { 
     292                $theDBError = htmlspecialchars(mysql_error($wpdb->dbh),ENT_QUOTES); 
     293                $errorMessage .= __("Could not add/update address.  ", SLPLUS_PREFIX); 
     294                if ($theDBError != '') { 
     295                    $errorMessage .= sprintf( 
     296                                            __("Error: %s.", SLPLUS_PREFIX), 
     297                                            $theDBError 
     298                                            ); 
     299                } elseif ($update_result === 0) { 
     300                    $errorMessage .=  __("It appears the data did not change.", SLPLUS_PREFIX); 
     301                } else { 
     302                    $errorMessage .=  __("No error logged.", SLPLUS_PREFIX); 
     303                    $errorMessage .= "<br/>\n" . __('Query: ', SLPLUS_PREFIX); 
     304                    $errorMessage .= print_r($wpdb->last_query,true); 
     305                    $errorMessage .= "<br/>\n" . "Results: " . gettype($update_result) . ' '. $update_result; 
     306                } 
     307 
    276308            } 
    277309 
     
    283315          // 
    284316          if(!$iterations){ 
    285             echo sprintf(__("Address %s <font color=red>failed to geocode</font>. ", SLPLUS_PREFIX),$address); 
    286             echo sprintf(__("Received status %s.", SLPLUS_PREFIX),$status)."\n<br>"; 
     317            $errorMessage .= sprintf(__("Address %s <font color=red>failed to geocode</font>. ", SLPLUS_PREFIX),$address); 
     318            $errorMessage .= sprintf(__("Received status %s.", SLPLUS_PREFIX),$status)."\n<br>"; 
    287319          }                        
    288320          $delay += 100000; 
     
    292324        } else if (strcmp($status, 'ZERO_RESULTS') == 0) { 
    293325            $iterations = 0;  
    294             echo sprintf(__("Address %s <font color=red>failed to geocode</font>. ", SLPLUS_PREFIX),$address); 
    295             echo sprintf(__("Unknown Address! Received status %s.", SLPLUS_PREFIX),$status)."\n<br>"; 
     326            $errorMessage .= sprintf(__("Address %s <font color=red>failed to geocode</font>. ", SLPLUS_PREFIX),$address); 
     327            $errorMessage .= sprintf(__("Unknown Address! Received status %s.", SLPLUS_PREFIX),$status)."\n<br>"; 
    296328           
    297329        // Could Not Geocode 
     
    300332            $geocode_pending = false; 
    301333            echo sprintf(__("Address %s <font color=red>failed to geocode</font>. ", SLPLUS_PREFIX),$address); 
    302             echo sprintf(__("Received status %s.", SLPLUS_PREFIX),$status)."\n<br>"; 
    303         } 
     334            if ($status != '') { 
     335                $errorMessage .= sprintf(__("Received data %s.", SLPLUS_PREFIX),'<pre>'.print_r($json,true).'</pre>')."\n"; 
     336            } else { 
     337                $errorMessage .= sprintf(__("Reqeust sent to %s.", SLPLUS_PREFIX),$request_url)."\n<br>"; 
     338                $errorMessage .= sprintf(__("Received status %s.", SLPLUS_PREFIX),$status)."\n<br>"; 
     339            } 
     340        } 
     341 
     342        // Show Error Messages 
     343        // 
     344        if ($errorMessage != '') { 
     345            print '<div class="geocode_error">' . 
     346                    $errorMessage . 
     347                    '</div>'; 
     348        } 
     349 
    304350        usleep($delay); 
    305351    } 
     
    333379        add_option(SLPLUS_PREFIX."-db_version", $sl_db_version); 
    334380    } else { 
     381         
     382        // Change Pro Pack license info to new SKU 
     383        // 
     384        if (get_option(SLPLUS_PREFIX.'-SLPLUS-PRO-lk','') == '') { 
     385            update_option(SLPLUS_PREFIX.'-SLPLUS-PRO-lk',get_option(SLPLUS_PREFIX.'-SLPLUS-lk','')); 
     386            update_option(SLPLUS_PREFIX.'-SLPLUS-PRO-isenabled',get_option(SLPLUS_PREFIX.'-SLPLUS-isenabled','')); 
     387        } 
     388 
     389        // Change Pages license info to new SKU 
     390        // 
     391        if (get_option(SLPLUS_PREFIX.'-SLPLUS-PAGES-lk','') == '') { 
     392            update_option(SLPLUS_PREFIX.'-SLPLUS-PAGES-isenabled',get_option(SLPLUS_PREFIX.'-SLP-PAGES-isenabled','')); 
     393        } 
     394 
    335395        update_option(SLPLUS_PREFIX."-db_version", $sl_db_version); 
    336396    } 
    337397     
    338      
     398 
     399    // Roles 
     400    // 
    339401    if (function_exists('add_slplus_roles_and_caps')) { 
    340402        add_slplus_roles_and_caps(); 
    341     }         
     403    }       
     404     
     405    // Themes Cleaning 
     406    // 
     407    update_option($slplus_plugin->prefix.'-theme_lastupdated','2006-10-05'); 
     408 
    342409    move_upload_directories(); 
    343410} 
     
    595662    $fnvars = array_merge($fnvars,(array) $attributes);       // merge in passed attributes 
    596663     
    597      
    598     // Prepare some data for JavaScript injection... 
    599     // 
    600     $slplus_home_icon = get_option('sl_map_home_icon'); 
    601     $slplus_end_icon  = get_option('sl_map_end_icon'); 
    602     $slplus_home_icon_file = str_replace(SLPLUS_ICONURL,SLPLUS_ICONDIR,$slplus_home_icon); 
    603     $slplus_end_icon_file  = str_replace(SLPLUS_ICONURL,SLPLUS_ICONDIR,$slplus_end_icon); 
    604     $slplus_home_size=(function_exists('getimagesize') && file_exists($slplus_home_icon_file))?  
    605         getimagesize($slplus_home_icon_file) :  
    606         array(0 => 20, 1 => 34);     
    607     $slplus_end_size =(function_exists('getimagesize') && file_exists($slplus_end_icon_file)) ?  
    608         getimagesize($slplus_end_icon_file)  :  
    609         array(0 => 20, 1 => 34); 
    610664         
    611665    //todo: make sure map type gets set to a sane value before getting here. Maybe not... 
    612      
    613     // Lets get some variables into our script 
    614     // 
    615     $scriptData = array( 
    616         'debug_mode'        => (get_option(SLPLUS_PREFIX.'-debugging') == 'on'), 
    617         'disable_scroll'    => (get_option(SLPLUS_PREFIX.'_disable_scrollwheel')==1), 
    618         'disable_dir'       => (get_option(SLPLUS_PREFIX.'_disable_initialdirectory' )==1), 
    619         'distance_unit'     => esc_attr(get_option('sl_distance_unit'),'miles'), 
    620         'load_locations'    => (get_option('sl_load_locations_default')==1), 
    621         'map_3dcontrol'     => (get_option(SLPLUS_PREFIX.'_disable_largemapcontrol3d')==0), 
    622         'map_country'       => SetMapCenter(), 
    623         'map_domain'        => get_option('sl_google_map_domain','maps.google.com'), 
    624         'map_home_icon'     => $slplus_home_icon, 
    625         'map_home_sizew'    => $slplus_home_size[0], 
    626         'map_home_sizeh'    => $slplus_home_size[1], 
    627         'map_end_icon'      => $slplus_end_icon, 
    628         'map_end_sizew'     => $slplus_end_size[0], 
    629         'map_end_sizeh'     => $slplus_end_size[1], 
    630         'use_sensor'            => (get_option(SLPLUS_PREFIX."_use_location_sensor")==1), 
    631         'map_scalectrl'     => (get_option(SLPLUS_PREFIX.'_disable_scalecontrol')==0), 
    632         'map_type'          => get_option('sl_map_type','roadmap'), 
    633         'map_typectrl'      => (get_option(SLPLUS_PREFIX.'_disable_maptypecontrol')==0), 
    634         'show_tags'         => (get_option(SLPLUS_PREFIX.'_show_tags')==1), 
    635         'overview_ctrl'     => get_option('sl_map_overview_control',0), 
    636         'use_email_form'    => (get_option(SLPLUS_PREFIX.'_email_form')==1), 
    637         'use_pages_links'   => ($slplus_plugin->settings->get_item('use_pages_links')=='on'), 
    638         'use_same_window'   => ($slplus_plugin->settings->get_item('use_same_window')=='on'),                 
    639         'website_label'     => esc_attr(get_option('sl_website_label','Website')), 
    640         'zoom_level'        => get_option('sl_zoom_level',4), 
    641         'zoom_tweak'        => get_option('sl_zoom_tweak',1), 
    642         ); 
    643     wp_localize_script('csl_script','slplus',$scriptData); 
    644     wp_localize_script('csl_script','csl_ajax',array('ajaxurl' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('em'))); 
    645      
     666 
     667    //todo: if we allow map setting overrides via shortcode attributes we will need 
     668    // to re-localize the script.  It was moved to the actions class so we can 
     669    // localize prior to enqueue in the header. 
     670    // 
     671 
     672    // Setup the style sheets 
     673    // 
     674    setup_stylesheet_for_slplus(); 
     675 
     676 
    646677    // Set our flag for later processing 
    647678    // of JavaScript files 
     
    650681        define('SLPLUS_SHORTCODE_RENDERED',true); 
    651682    } 
    652      
     683 
    653684    return get_string_from_phpexec($file);  
    654685} 
  • store-locator-le/trunk/core/js/csl.js

    r587040 r598470  
    447447         */ 
    448448        this.__init = function() { 
    449             this.address = slplus.map_country; 
    450             this.zoom = slplus.zoom_level; 
    451             this.mapType = slplus.map_type; 
    452             this.disableScroll = !!slplus.disable_scroll; 
    453             this.debugMode = !!slplus.debug_mode; 
    454             this.disableDir = !!slplus.disable_dir; 
    455             this.distanceUnit = slplus.distance_unit; 
    456             this.load_locations = !!slplus.load_locations; 
    457             this.mapCountry = slplus.map_country; 
    458             this.mapDomain = slplus.map_domain; 
    459             this.mapHomeIconUrl = slplus.map_home_icon; 
    460             this.mapHomeIconWidth = slplus.map_home_icon_sizew; 
    461             this.mapHomeIconHeight = slplus.map_home_icon_sizeh; 
    462             this.mapEndIconUrl = slplus.map_end_icon; 
    463             this.mapEndIconWidth = slplus.map_end_sizew; 
    464             this.mapEndIconHeight = slplus.map_end_sizeh; 
    465             this.mapScaleControl = !!slplus.map_scalectrl; 
    466             this.mapTypeControl = !!slplus.map_typectrl; 
    467             this.showTags = slplus.show_tags; 
    468             this.overviewControl = !!(parseInt(slplus.overview_ctrl)); 
    469             this.useEmailForm = !!slplus.use_email_form; 
    470             this.usePagesLink = !!slplus.use_pages_link; 
    471             this.useSameWindow = !!slplus.use_same_window; 
    472             this.websiteLabel = slplus.website_label; 
    473             this.zoomLevel = slplus.zoom_level; 
    474             this.disableDefaultUI = false; 
    475              
    476             if (!this.disableDir) { 
    477                 this.loadedOnce = true; 
    478             } 
     449                         
     450            if (typeof slplus != 'undefined') { 
     451                this.address = slplus.map_country; 
     452                this.zoom = slplus.zoom_level; 
     453                this.mapType = slplus.map_type; 
     454                this.disableScroll = !!slplus.disable_scroll; 
     455                this.debugMode = !!slplus.debug_mode; 
     456                this.disableDir = !!slplus.disable_dir; 
     457                this.distanceUnit = slplus.distance_unit; 
     458                this.load_locations = !!slplus.load_locations; 
     459                this.mapCountry = slplus.map_country; 
     460                this.mapDomain = slplus.map_domain; 
     461                this.mapHomeIconUrl = slplus.map_home_icon; 
     462                this.mapHomeIconWidth = slplus.map_home_icon_sizew; 
     463                this.mapHomeIconHeight = slplus.map_home_icon_sizeh; 
     464                this.mapEndIconUrl = slplus.map_end_icon; 
     465                this.mapEndIconWidth = slplus.map_end_sizew; 
     466                this.mapEndIconHeight = slplus.map_end_sizeh; 
     467                this.mapScaleControl = !!slplus.map_scalectrl; 
     468                this.mapTypeControl = !!slplus.map_typectrl; 
     469                this.showTags = slplus.show_tags; 
     470                this.overviewControl = !!(parseInt(slplus.overview_ctrl)); 
     471                this.useEmailForm = !!slplus.use_email_form; 
     472                this.usePagesLink = !!slplus.use_pages_link; 
     473                this.useSameWindow = !!slplus.use_same_window; 
     474                this.websiteLabel = slplus.website_label; 
     475                this.zoomLevel = slplus.zoom_level; 
     476                this.disableDefaultUI = false; 
     477 
     478                if (!this.disableDir) { 
     479                    this.loadedOnce = true; 
     480                } 
     481            } else { 
     482                alert('Store Locator Plus script not loaded properly.'); 
     483            } 
    479484        } 
    480485         
     
    11351140             
    11361141            var html =  '<center><table width="96%" cellpadding="4px" cellspacing="0" class="searchResultsTable">' + 
    1137                     '<tr>' + 
     1142                    '<tr class="slp_results_row">' + 
    11381143                    '<td class="results_row_left_column">' + 
    11391144                        '<span class="location_name">' + aMarker.name + '</span><br>' +  
  • store-locator-le/trunk/core/map-designer.php

    r575152 r598470  
    119119        update_option(SLPLUS_PREFIX.'_tag_search_selections',   $_POST[SLPLUS_PREFIX.'_tag_search_selections']); 
    120120        update_option(SLPLUS_PREFIX.'_state_pd_label',          $_POST[SLPLUS_PREFIX.'_state_pd_label']); 
    121         update_option(SLPLUS_PREFIX.'_map_center',              $_POST[SLPLUS_PREFIX.'_map_center']);         
    122         update_option(SLPLUS_PREFIX.'_maxreturned',             $_POST[SLPLUS_PREFIX.'_maxreturned']); 
     121        if (isset($_POST[SLPLUS_PREFIX.'_map_center']   )) { update_option(SLPLUS_PREFIX.'_map_center',              $_POST[SLPLUS_PREFIX.'_map_center']);  } 
     122        if (isset( $_POST[SLPLUS_PREFIX.'_maxreturned'] )) { update_option(SLPLUS_PREFIX.'_maxreturned',             $_POST[SLPLUS_PREFIX.'_maxreturned']); } 
    123123    }     
    124124     
  • store-locator-le/trunk/core/templates/managelocations_actionbar.php

    r575152 r598470  
    2828</script> 
    2929<form name='locationForm' method='post'> 
     30    <input name='act' type='hidden'> 
    3031<div id="action_buttons"> 
    3132    <div id="action_bar_header"><h3><?php print __('Location Actions',SLPLUS_PREFIX); ?></h3></div> 
  • store-locator-le/trunk/core/templates/navbar.php

    r557331 r598470  
    1818    // Pro Version : Show Reports Tab 
    1919    // 
    20     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) {       
     20    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) {       
    2121        print '<a href="'.SLPLUS_PLUSPAGE.'reporting.php"><li class="like-a-button">Reports</li></a>'; 
    2222    } 
  • store-locator-le/trunk/core/templates/search_form.php

    r575152 r598470  
    77      $prefix = $slplus_plugin->prefix; 
    88 
    9       // todo: change the name of this function please! 
    10       SLPlus_Actions::shutdown(); 
     9      // Script enqueue should never be called as a direct function. 
     10      // 
     11      // WordPress best practices dictacte using this in a supported action hook only. 
     12      // Many themes and plugins will not honor this. 
     13      // 
     14      // SLPlus_Actions::shutdown(); 
    1115?> 
    1216<div id='sl_div'> 
     
    212216                <div id='map' style='width:<?php echo $sl_width?><?php echo $sl_width_units?>; height:<?php echo $sl_height?><?php echo $sl_height_units?>'></div> 
    213217                <table cellpadding='0px' class='sl_footer' width='<?php echo $sl_width?><?php echo $sl_width_units?>;' <?php echo $sl_hide?>> 
    214                 <tr> 
    215                     <td class='sl_footer_left_column'> 
    216                         <a href='http://www.cybersprocket.com/products/store-locator-plus/' target='_blank'>Store Locator Plus</a> 
    217                     </td> 
     218                <tr class="slp_map_tagline"> 
    218219                    <td class='sl_footer_right_column'> 
    219                         <a href='http://www.cybersprocket.com' target='_blank' title='by Cyber Sprocket Labs'>by Cyber Sprocket Labs</a> 
     220                        <?php echo __('search provided by', SLPLUS_PREFIX); ?> <a href='<?php echo $slplus_plugin->url; ?>' target='_blank'><?php echo $slplus_plugin->name; ?></a> 
    220221                    </td> 
    221222                </tr>                 
     
    230231        </td> 
    231232      </tr> 
    232       <tr id='cm_mapTR'> 
     233      <tr id='cm_mapTR'class='slp_map_search_results'> 
    233234        <td width='' valign='top' id='map_sidebar_td'> 
    234235            <div id='map_sidebar' style='width:<?php echo $sl_width?><?php echo $sl_width_units?>;'> 
  • store-locator-le/trunk/core/view-locations.php

    r587040 r598470  
    109109            if ($_POST) {extract($_POST);} 
    110110            if (isset($sl_id)) { 
     111 
     112                // use this to delete 100 at a time 
     113                // 
     114                $delQueries = array(); 
     115 
    111116                if (is_array($sl_id)==1) { 
    112117                    $id_string=""; 
     118                    $idCount = 0; 
    113119                    foreach ($sl_id as $sl_value) { 
     120                        $idCount++; 
    114121                        $id_string.="$sl_value,"; 
     122 
     123                        // Got 100?  Push a delete string on the stack 
     124                        // 
     125                        if ($idCount == 100) { 
     126                            $idCount = 0; 
     127                            $id_string=substr($id_string, 0, strlen($id_string)-1); 
     128                            array_push($delQueries,"DELETE FROM ".$wpdb->prefix."store_locator WHERE sl_id IN ($id_string)"); 
     129                            $id_string=''; 
     130                        } 
    115131                    } 
     132 
     133                    // Clean up any stragglers 
     134                    // 
    116135                    $id_string=substr($id_string, 0, strlen($id_string)-1); 
     136 
     137                // Single Item Delete 
     138                // 
    117139                } else { 
    118140                    $id_string=$sl_id; 
    119141                } 
    120                  
    121                 if ($id_string != '') { 
    122                     $wpdb->query("DELETE FROM ".$wpdb->prefix."store_locator WHERE sl_id IN ($id_string)"); 
     142 
     143                // push the last one on the stack 
     144                // 
     145                if ($id_string != ''){ 
     146                    array_push($delQueries,"DELETE FROM ".$wpdb->prefix."store_locator WHERE sl_id IN ($id_string)"); 
     147                } 
     148                 
     149                // Run deletions 
     150                // 
     151                foreach ($delQueries as $delQuery) { 
     152                    $delete_result = $wpdb->query($delQuery); 
     153                    if ($delete_result == 0) { 
     154                        $errorMessage .= __("Could not delete the locations.  ", SLPLUS_PREFIX); 
     155                        $theDBError = htmlspecialchars(mysql_error($wpdb->dbh),ENT_QUOTES); 
     156                        if ($theDBError != '') { 
     157                            $errorMessage .= sprintf( 
     158                                                    __("Error: %s.", SLPLUS_PREFIX), 
     159                                                    $theDBError 
     160                                                    ); 
     161                        } elseif ($delete_result === 0) { 
     162                            $errorMessage .=  __("It appears the delete was for no records.", SLPLUS_PREFIX); 
     163                        } else { 
     164                            $errorMessage .=  __("No error logged.", SLPLUS_PREFIX); 
     165                            $errorMessage .= "<br/>\n" . __('Query: ', SLPLUS_PREFIX); 
     166                            $errorMessage .= print_r($wpdb->last_query,true); 
     167                            $errorMessage .= "<br/>\n" . "Results: " . gettype($delete_result) . ' '. $delete_result; 
     168                        } 
     169 
     170                    } 
     171 
    123172                } 
    124173            } 
     
    477526    } 
    478527    print "</table> 
    479     <input name='act' type='hidden'><br>"; 
     528    <br>"; 
    480529if ($numMembers2!=0) {include(SLPLUS_COREDIR.'/search-links.php');} 
    481530 
  • store-locator-le/trunk/css/admin.css

    r544991 r598470  
    1616    clear: both; 
    1717} 
    18   
     18 
     19div.geocode_error { 
     20 clear: both; 
     21} 
    1922/*---------------------------------- 
    2023 * 
     
    107110 div.optionpack_box iframe { 
    108111     margin: 0px auto; 
    109      width: 160px; 
     112     width: 180px; 
    110113 } 
    111114 div.optionpack_name { 
     
    189192/* Action Bar Specific */ 
    190193div#action_buttons { 
    191     width: 888px; 
     194    width: 890px; 
    192195    position: relative; 
    193196    margin-top: 12px;     
     
    215218} 
    216219div#tag_block { 
    217     width: 340px; 
     220    width: 341px; 
    218221} 
    219222div#slplus_actionbar div#tag_actions { 
  • store-locator-le/trunk/how_to_use.txt

    r550537 r598470  
    99<br/> 
    1010<br/> 
    11 <strong>Need More Assistance?</strong><br/><br/> 
    12 For help setting up and using this plugin, please visit the  
    13 <strong><a href="http://redmine.cybersprocket.com/projects/mc-closeststore/wiki" target="newinfo"> 
    14 Store Locator Plus Knowledgebase</a></strong>.<br/> We recommend registering on the site and  
    15 using the forums to post questions.  It is the best way to get a response from our development team. 
    16 <br/><br/>Register here:<br/> 
    17 <a href="http://redmine.cybersprocket.com/account/register"> 
    18 http://redmine.cybersprocket.com/account/register</a> 
    19 <br/><br/>Review the forum here:<br/> 
    20 <a href="http://redmine.cybersprocket.com/projects/commercial-products/boards"> 
    21 http://redmine.cybersprocket.com/projects/commercial-products/boards</a><br/> 
     11<strong>Need More Assistance?</strong> <a href="http://www.charlestonsw.com/support/">Visit our support pages.</a><br/><br/> 
    2212</p> 
  • store-locator-le/trunk/include/config.php

    r587040 r598470  
    4141 
    4242            'on_update' => array('SLPlus_Activate', 'update'), 
    43             'version' => '3.1.5', 
     43            'version' => '3.2', 
    4444 
    45             'url'                   => 'http://www.storelocatorplus.com/',             
    46             'support_url'            => 'http://storelocatorplus.com/faq/', 
    47             'purchase_url'           => 'http://storelocatorplus.com/download/', 
     45            'url'                   => 'http://www.charlestonsw.com/product/store-locator-plus-2/',             
     46            'support_url'            => 'http://www.charlestonsw.com/support/documentation/store-locator-plus/', 
     47            'purchase_url'           => 'http://www.charlestonsw.com/product/store-locator-plus-2/', 
    4848            'rate_url'              => 'http://wordpress.org/extend/plugins/store-locator-le/', 
    49             'forum_url'             => 'http://redmine.cybersprocket.com/projects/commercial-products/boards/33', 
     49            'forum_url'             => 'http://wordpress.org/support/plugin/store-locator-le', 
    5050             
    5151            'basefile'              => SLPLUS_BASENAME, 
     
    9797                'name'              => 'Pro Pack', 
    9898                'help_text'         => 'A variety of enhancements are provided with this package.  ' . 
    99                                        'See the <a href="'.$slplus_plugin->purchase_url.'" target="Cyber Sprocket">product page</a> for details.  If you purchased this add-on ' . 
     99                                       'See the <a href="'.$slplus_plugin->purchase_url.'" target="newinfo">product page</a> for details.  If you purchased this add-on ' . 
    100100                                       'come back to this page to enter the license key to activate the new features.', 
    101                 'sku'               => 'SLPLUS', 
    102                 'paypal_button_id'  => '2D864VACHMK5A', 
    103                 'paypal_upgrade_button_id' => 'TZSPX7PD26XJU' 
     101                'sku'               => 'SLPLUS-PRO', 
     102                'paypal_button_id'  => '59YT3GAJ7W922', 
     103                'paypal_upgrade_button_id' => '59YT3GAJ7W922' 
    104104            ) 
    105105        ); 
     
    109109    if ($slplus_plugin->license->packages['Pro Pack']->isenabled_after_forcing_recheck()) { 
    110110         
    111          //-------------------------------- 
    112          // Pro Pack v2.4+ Only 
    113          // 
    114          if ($slplus_plugin->license->packages['Pro Pack']->active_version >= 2004000) { 
    115               
    116111             //-------------------------------- 
    117112             // Enable Themes 
     
    119114             $slplus_plugin->themes_enabled = true; 
    120115             $slplus_plugin->themes->css_dir = SLPLUS_PLUGINDIR . 'css/'; 
    121          }              
    122           
    123           
    124116    }         
    125117} 
     
    140132                'name'              => 'Store Pages', 
    141133                'help_text'         => 'Create individual WordPress pages from your locations data. Great for SEO.  ' . 
    142                                        'See the <a href="'.$slplus_plugin->purchase_url.'" target="Cyber Sprocket">product page</a> for details.  If you purchased this add-on ' . 
     134                                       'See the <a href="'.$slplus_plugin->purchase_url.'" target="newinfo">product page</a> for details.  If you purchased this add-on ' . 
    143135                                       'come back to this page to enter the license key to activate the new features.', 
    144                 'sku'               => 'SLP-PAGES', 
    145                 'paypal_button_id'  => '3V2SSFKB3R6XE', 
    146                 'paypal_upgrade_button_id' => '3V2SSFKB3R6XE' 
     136                'sku'               => 'SLPLUS-PAGES', 
     137                'paypal_button_id'  => 'CT449P2ZH454E', 
     138                'paypal_upgrade_button_id' => 'CT449P2ZH454E' 
    147139            ) 
    148140        ); 
    149      
    150     // Enable Features Is Licensed 
    151     // 
    152     if ($slplus_plugin->license->packages['Store Pages']->isenabled_after_forcing_recheck()) { 
    153          
    154         // Future Feature Enabling Goes Here 
    155     }         
    156141} 
    157142 
  • store-locator-le/trunk/include/storelocatorplus-actions_class.php

    r575152 r598470  
    103103                'How many times should we try to set the latitude/longitude for a new address. ' . 
    104104                'Higher numbers mean slower bulk uploads ('. 
    105                 '<a href="http://www.cybersprocket.com/products/store-locator-plus/">plus version</a>'. 
     105                '<a href="http://www.charlestonsw.com/product/store-locator-plus/">plus version</a>'. 
    106106                '), lower numbers makes it more likely the location will not be set during bulk uploads.', 
    107107                array ( 
     
    124124            // 
    125125            $slp_rep_desc = __('These settings affect how the Store Pages add-on behaves. ', SLPLUS_PREFIX); 
    126             if (!$slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) { 
     126            if (!$slplus_plugin->license->AmIEnabled(true, "SLPLUS-PAGES")) { 
    127127                $slp_rep_desc .= '<br/><br/>'. 
    128                     __('This is a <a href="http://www.storelocatorplus.com/">Store Pages</a>'. 
     128                    __('This is a <a href="http://www.charlestonsw.com/product/store-locator-plus-store-pages/">Store Pages</a>'. 
    129129                    ' feature.  It provides a way to auto-create individual WordPress pages' . 
    130130                    ' for each of your locations. ', SLPLUS_PREFIX); 
     
    137137                ) 
    138138            );          
    139             if ($slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) {             
     139            if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PAGES")) {             
    140140                slplus_add_pages_settings(); 
    141141            }                 
    142142             
    143143            //------------------------- 
    144             // Pro Pack: Reporting 
    145             //  
    146             $slp_rep_desc = __('These settings affect how the reporting system behaves. ', SLPLUS_PREFIX); 
    147             if (!$slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     144            // Pro Pack 
     145            // 
     146            $slp_rep_desc = __('These settings affect how the Pro Pack add-on behaves. ', SLPLUS_PREFIX); 
     147            if (!$slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    148148                $slp_rep_desc .= '<br/><br/>'. 
    149                     __('This is a <a href="http://www.storelocatorplus.com/">Pro Pack</a>'. 
    150                     ' feature.  It provides a way to generate reports on what locations' . 
    151                     ' people have searched for and what results they received back. ', SLPLUS_PREFIX); 
     149                    __('This is a <a href="http://www.charlestonsw.com/product/store-locator-plus/">Pro Pack</a>'. 
     150                    ' feature.  It provides more settings and features that are not provided in the free plugin' 
     151                    , SLPLUS_PREFIX); 
    152152            } 
    153153            $slp_rep_desc .= '<br/><br/>';  
    154154            $slplus_plugin->settings->add_section( 
    155155                array( 
    156                     'name'        => 'Reporting', 
     156                    'name'        => 'Pro Pack', 
    157157                    'description' => $slp_rep_desc 
    158158                ) 
    159159            ); 
    160             if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) { 
     160            if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) { 
    161161                slplus_add_report_settings(); 
    162162            }                 
     
    217217         */ 
    218218        static function wp_enqueue_scripts() { 
    219             global $slplus_plugin; 
    220              
    221             if (isset($slplus_plugin) && $slplus_plugin->ok_to_show()) {             
    222                 $api_key=$slplus_plugin->driver_args['api_key']; 
    223                 $sl_google_map_domain=(get_option('sl_google_map_domain')!="")?  
    224                         get_option('sl_google_map_domain') :  
    225                         "maps.google.com";                 
    226                 $sl_map_character_encoding='&oe='.get_option('sl_map_character_encoding','utf8');     
    227                  
    228                 //------------------------ 
    229                 // Register our scripts for later enqueue when needed 
    230                 // 
    231                 //wp_register_script('slplus_functions',SLPLUS_PLUGINURL.'/core/js/functions.js'); 
    232                 if (isset($api_key)) 
    233                 { 
    234                     wp_register_script( 
    235                             'google_maps', 
    236                             "http://$sl_google_map_domain/maps/api/js?v=3.9&amp;key=$api_key&amp;sensor=false" //todo:character encoding ??? 
    237                             //"http://$sl_google_map_domain/maps?file=api&amp;v=2&amp;key=$api_key&amp;sensor=false{$sl_map_character_encoding}"                         
    238                             ); 
    239                 } 
    240                 else { 
    241                     wp_register_script( 
    242                         'google_maps', 
    243                         "http://$sl_google_map_domain/maps/api/js?v=3.9&amp;sensor=false" 
    244                     ); 
    245                 } 
    246                          
    247                 wp_register_script('csl_script', SLPLUS_PLUGINURL.'/core/js/csl.js', array('jquery')); 
    248                        
    249             }                         
     219            global $slplus_plugin;             
     220            $api_key= (isset($slplus_plugin) && $slplus_plugin->ok_to_show()) ? 
     221                $slplus_plugin->driver_args['api_key'] : 
     222                '' 
     223                ; 
     224            $force_load = ( 
     225                        isset($slplus_plugin) ? 
     226                        $slplus_plugin->settings->get_item('force_load_js',true) : 
     227                        false 
     228                    ); 
     229 
     230            $sl_google_map_domain=(get_option('sl_google_map_domain','')!="")? 
     231                    get_option('sl_google_map_domain') :  
     232                    "maps.google.com";                 
     233            $sl_map_character_encoding='&oe='.get_option('sl_map_character_encoding','utf8');     
     234 
     235            //------------------------ 
     236            // Register our scripts for later enqueue when needed 
     237            // 
     238            //wp_register_script('slplus_functions',SLPLUS_PLUGINURL.'/core/js/functions.js'); 
     239            if (isset($api_key)) 
     240            { 
     241                wp_enqueue_script( 
     242                        'google_maps', 
     243                        "http://$sl_google_map_domain/maps/api/js?v=3.9&amp;key=$api_key&amp;sensor=false" //todo:character encoding ??? 
     244                        //"http://$sl_google_map_domain/maps?file=api&amp;v=2&amp;key=$api_key&amp;sensor=false{$sl_map_character_encoding}" 
     245                        ); 
     246            } 
     247            else { 
     248                wp_enqueue_script( 
     249                    'google_maps', 
     250                    "http://$sl_google_map_domain/maps/api/js?v=3.9&amp;sensor=false" 
     251                ); 
     252            } 
     253 
     254            wp_enqueue_script( 
     255                    'csl_script', 
     256                    SLPLUS_PLUGINURL.'/core/js/csl.js', 
     257                    array('jquery'), 
     258                    false, 
     259                    !$force_load 
     260            ); 
     261 
     262            //-------------------- 
     263            // Localize The Script 
     264            //-------------------- 
     265            // Prepare some data for JavaScript injection... 
     266            // 
     267            $slplus_home_icon = get_option('sl_map_home_icon'); 
     268            $slplus_end_icon  = get_option('sl_map_end_icon'); 
     269            $slplus_home_icon_file = str_replace(SLPLUS_ICONURL,SLPLUS_ICONDIR,$slplus_home_icon); 
     270            $slplus_end_icon_file  = str_replace(SLPLUS_ICONURL,SLPLUS_ICONDIR,$slplus_end_icon); 
     271            $slplus_home_size=(function_exists('getimagesize') && file_exists($slplus_home_icon_file))? 
     272                getimagesize($slplus_home_icon_file) : 
     273                array(0 => 20, 1 => 34); 
     274            $slplus_end_size =(function_exists('getimagesize') && file_exists($slplus_end_icon_file)) ? 
     275                getimagesize($slplus_end_icon_file)  : 
     276                array(0 => 20, 1 => 34); 
     277            // Lets get some variables into our script 
     278            // 
     279            $scriptData = array( 
     280                'debug_mode'        => (get_option(SLPLUS_PREFIX.'-debugging') == 'on'), 
     281                'disable_scroll'    => (get_option(SLPLUS_PREFIX.'_disable_scrollwheel')==1), 
     282                'disable_dir'       => (get_option(SLPLUS_PREFIX.'_disable_initialdirectory' )==1), 
     283                'distance_unit'     => esc_attr(get_option('sl_distance_unit'),'miles'), 
     284                'load_locations'    => (get_option('sl_load_locations_default')==1), 
     285                'map_3dcontrol'     => (get_option(SLPLUS_PREFIX.'_disable_largemapcontrol3d')==0), 
     286                'map_country'       => SetMapCenter(), 
     287                'map_domain'        => get_option('sl_google_map_domain','maps.google.com'), 
     288                'map_home_icon'     => $slplus_home_icon, 
     289                'map_home_sizew'    => $slplus_home_size[0], 
     290                'map_home_sizeh'    => $slplus_home_size[1], 
     291                'map_end_icon'      => $slplus_end_icon, 
     292                'map_end_sizew'     => $slplus_end_size[0], 
     293                'map_end_sizeh'     => $slplus_end_size[1], 
     294                'use_sensor'            => (get_option(SLPLUS_PREFIX."_use_location_sensor")==1), 
     295                'map_scalectrl'     => (get_option(SLPLUS_PREFIX.'_disable_scalecontrol')==0), 
     296                'map_type'          => get_option('sl_map_type','roadmap'), 
     297                'map_typectrl'      => (get_option(SLPLUS_PREFIX.'_disable_maptypecontrol')==0), 
     298                'show_tags'         => (get_option(SLPLUS_PREFIX.'_show_tags')==1), 
     299                'overview_ctrl'     => get_option('sl_map_overview_control',0), 
     300                'use_email_form'    => (get_option(SLPLUS_PREFIX.'_email_form')==1), 
     301                'use_pages_links'   => ($slplus_plugin->settings->get_item('use_pages_links')=='on'), 
     302                'use_same_window'   => ($slplus_plugin->settings->get_item('use_same_window')=='on'), 
     303                'website_label'     => esc_attr(get_option('sl_website_label','Website')), 
     304                'zoom_level'        => get_option('sl_zoom_level',4), 
     305                'zoom_tweak'        => get_option('sl_zoom_tweak',1), 
     306                ); 
     307            wp_localize_script('csl_script','slplus',$scriptData); 
     308            wp_localize_script('csl_script','csl_ajax',array('ajaxurl' => admin_url('admin-ajax.php'), 'nonce' => wp_create_nonce('em'))); 
    250309        }      
    251310         
    252          
     311 
     312        /************************************* 
     313         * method: wp_footer() 
     314         * 
     315         * This is called whenever the WordPress shutdown action is called. 
     316         */ 
     317        function wp_footer() { 
     318            SLPlus_Actions::ManageTheScripts(); 
     319        } 
     320 
     321 
    253322        /************************************* 
    254323         * method: shutdown() 
     
    257326         */ 
    258327        function shutdown() { 
    259              
    260             // If we rendered an SLPLUS shortcode... 
    261             // 
    262             if (defined('SLPLUS_SHORTCODE_RENDERED') && SLPLUS_SHORTCODE_RENDERED) { 
    263                  
    264                 // Register Load JavaScript 
     328            // Safety for themes not using wp_footer 
     329            SLPlus_Actions::ManageTheScripts(); 
     330        } 
     331 
     332        // Unload The SLP Scripts If No Shortcode 
     333        // 
     334        function ManageTheScripts() { 
     335            if (!defined('SLPLUS_SCRIPTS_MANAGED') || !SLPLUS_SCRIPTS_MANAGED) { 
     336 
     337                // If no shortcode rendered, remove scripts 
    265338                // 
    266                 //wp_enqueue_script('slplus_functions'); 
    267                 wp_enqueue_script('google_maps');                 
    268                 //wp_enqueue_script('slplus_map'); 
    269                 wp_enqueue_script('csl_script'); 
    270                  
    271                 // Enqueue the style sheet 
    272                 // 
    273                 setup_stylesheet_for_slplus();                 
    274                             
    275                 // Force our scripts to load for badly behaved themes 
    276                 // 
    277                 //wp_print_footer_scripts(); 
    278             }              
    279         }             
     339                if (!defined('SLPLUS_SHORTCODE_RENDERED') || !SLPLUS_SHORTCODE_RENDERED) { 
     340                    wp_dequeue_script('google_maps'); 
     341                    wp_deregister_script('google_maps'); 
     342                    wp_dequeue_script('csl_script'); 
     343                    wp_deregister_script('csl_script'); 
     344                } 
     345                define('SLPLUS_SCRIPTS_MANAGED',true); 
     346            } 
     347        } 
    280348    } 
    281 }         
    282       
    283  
     349} 
  • store-locator-le/trunk/plus.php

    r575152 r598470  
    116116    global $slplus_plugin; 
    117117     
    118     if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS")) {     
     118    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PRO")) {     
    119119        $slplus_plugin->settings->add_item( 
    120             'Reporting',  
     120            'Pro Pack', 
     121            __('Force Load JavaScript', SLPLUS_PREFIX), 
     122            'force_load_js', 
     123            'checkbox', 
     124            false, 
     125            __('Force the JavaScript for Store Locator Plus to load on every page. ' . 
     126            'This can slow down your site, but is compatible with more themes and plugins.', SLPLUS_PREFIX), 
     127            null, 
     128            $slplus_plugin->settings->get_item('force_load_js',true) 
     129        ); 
     130        $slplus_plugin->settings->add_item( 
     131            'Pro Pack', 
    121132            __('Enable reporting', SLPLUS_PREFIX),  
    122133            'reporting_enabled',  
     
    138149    global $slplus_plugin; 
    139150     
    140     if ($slplus_plugin->license->AmIEnabled(true, "SLP-PAGES")) { 
     151    if ($slplus_plugin->license->AmIEnabled(true, "SLPLUS-PAGES")) { 
    141152        $slplus_plugin->settings->add_item( 
    142153            'Store Pages',  
     
    326337                'tags_for_pulldown'=> null,  
    327338                'only_with_tag'    => null, 
     339                'theme'            => null, 
    328340                );         
    329         if ($slplus_plugin->license->packages['Pro Pack']->active_version >= 2007000) { 
    330             array_merge($slpAtts,array('theme' => null)); 
    331         } 
    332341        shortcode_atts($slpAtts,$attributes); 
    333342    } 
  • store-locator-le/trunk/readme.txt

    r587040 r598470  
    11=== Google Maps via Store Locator Plus === 
    22Plugin Name: Google Maps via Store Locator Plus 
    3 Contributors: cybersprocket, charlestonsw 
    4 Donate link: http://www.cybersprocket.com/products/store-locator-plus/ 
     3Contributors: charlestonsw 
     4Donate link: http://www.charlestonsw.com/products/store-locator-plus/ 
    55Tags: google maps, store finder, store locator, store locater, google, dealer locator, dealer locater, zip code search, shop locator, shop finder, zipcode, location finder, places, stores, maps, mapping, mapper, plugin, posts, post, page, coordinates, latitude, longitude, geo, geocoding, shops, ecommerce, e-commerce, business locations, store locator plus, store locater plus, bing map, bing, yahoo maps, yahoo, mapping, retail 
    66Requires at least: 3.3 
    7 Tested up to: 3.4.1 
    8 Stable tag: 3.1.5 
     7Tested up to: 3.4.2 
     8Stable tag: 3.2 
    99 
    1010Store Locator Plus works with Google Maps v3 to put a store location search on your site. 
     
    3939 
    4040Please [rate us](http://wordpress.org/extend/plugins/store-locator-le/)! 
    41 Give us a chance to <a href="http://www.cybersprocket.com/contact-us/">address your concerns</a> if we didn't earn 5 stars. 
     41Give us a chance to <a href="http://www.charlestonsw.com/contact-us/">address your concerns</a> if we didn't earn 5 stars. 
    4242 
    4343= Special Requests = 
     
    4545We do accept feature requests for all of our plugins, free ones included. The most requested features will make it into the next version. 
    4646 
    47 <strong>If you need a special feature NOW, <a href="http://www.cybersprocket.com/contact-us/">contact us</a>!</strong> We offer expedited feature development. Most features can be implemented in less than a week for $200! 
     47<strong>If you need a special feature NOW, <a href="http://www.charlestonsw.com/contact-us/">contact us</a>!</strong> We offer expedited feature development. Our custom development rates start at $500/day. 
    4848 
    4949= Looking For Customized WordPress Plugins? = 
     
    5454and costs. 
    5555 
    56 Learn more at: http://www.cybersprocket.com/services/wordpress-developers/ 
    57  
    58 = Pro Pack Available = 
    59  
    60 The plugin has an optional Pro Pack available that adds advanced features to the Store Locator Plus product. 
    61 Some of the added features include: 
    62  
    63 * **NEW!**  Search by store name - Looking for a specific store? Search by name and pull it up instantly. 
    64 * CSV Bulk Uploads - using the CSV bulk loader 
    65 * Extended Map Settings - Control more details about how the map looks, disable the scale, the zoom, and more. 
    66 * Extended Manage Location Features - more controls for managing locations. 
    67 * Reporting - information on the reporting system and how it works. 
    68 * Tag Search - how to use tag based location searches. 
    69 * Custom Themes (Pro Pack v2.4) - easily add your own custom styles that stay in place during patches and upgrades. 
    70  
    71 Learn More about these features at the [Store Locator Plus website](http://www.storelocatorplus.com/) 
     56Learn more at: http://www.charlestonsw.com/ 
     57 
     58= Premium Add-Ons Available = 
     59 
     60We current offer a Pro Pack and a Store Pages premium add-on.  More add-ons are one the way. You can learn more about the add-ons at these web pages: 
     61 
     62* [Pro Pack](http://www.charlestonsw.com/product/store-locator-plus/) 
     63* [Store Pages](http://www.charlestonsw.com/product/store-locator-plus-store-pages/) 
     64 
     65Learn More about these features at the [Store Locator Plus website](http://www.charlestonsw.com/product/store-locator-plus/) 
    7266 
    7367= Upgrades = 
     
    8377= Related Links = 
    8478 
    85 * [Store Locator Plus](http://www.storelocatorplus.com/) 
    86 * [Other Cyber Sprocket Plugins](http://wordpress.org/extend/plugins/profile/cybersprocket/) 
    87 * [Custom WordPress Development](http://www.cybersprocket.com/services/wordpress-developers/) 
    88 * [Our Facebook Page](http://www.facebook.com/cyber.sprocket.labs) 
     79* [Store Locator Plus](http://www.charlestonsw.com/product/store-locator-plus/) 
     80* [Other CSA Plugins](http://profiles.wordpress.org/charlestonsw/) 
    8981 
    9082= Our Philosophy = 
     
    10294You can have a WordPress page for each store location on your map turning your location data into SEO friendly content.  Store Pages are a special page type that is fully integrated with WordPress,  but you manage them through Store Locator Plus.  Store Pages also have their own taxonomy (category system) so you can manage Store Page categories without affecting the rest of your site. 
    10395 
    104 [more information](http://storelocatorplus.com/premium-add-ons/store-pages/) 
     96[more information](http://www.charlestonsw.com/product/store-locator-plus-store-pages/) 
    10597 
    10698== Installation == 
     
    140132== Frequently Asked Questions == 
    141133 
     134= What happened to Cyber Sprocket? = 
     135 
     136Cyber Sprocket Labs was primarily a software consulting firm that did WordPress plugins as a part-time endeavor.   They have closed the business as of September 2012. 
     137 
     138= Who is Charleston Software Associates? = 
     139 
     140We have taken over the support, maintenance and updates of Cyber Sprocket's WordPress plugins.  We ONLY do mobile apps and WordPress plugins. 
     141 
     142= How does this impact my CSL license? = 
     143 
     144We will continue to honor all the CSL licenses.  However there may be some bumps in the road as we transition away from a licensing-centric to a pure-play add-on system over the coming months.   
     145 
     146If you have any problems with your license or validating a product please contact us via our web form at http://www.charlestonsw.com/ and we will resolve your licensing issues. 
     147 
    142148= What are the terms of the license? = 
    143149 
     
    145151wish.  We prefer that our customers pay us because they like what we do and 
    146152want to support our efforts to bring useful software to market.  Learn more 
    147 on our [CSL License Terms page](http://redmine.cybersprocket.com/projects/commercial-products/wiki/Cyber_Sprocket_Labs_Licensing_Terms "CSL License Terms page"). 
     153on our [CSL License Terms](http://www.charlestonsw.com/products/general-eula/). 
    148154 
    149155= How can I translate the plugin into my language? = 
     
    152158* Use the .pot file located in the languages directory of this plugin to create or update the .po files. 
    153159* Place these file in the languages subdirectory. 
    154 * If everything is ok, email the files to lobbyjones@cybersprocket.com and we will add them to the next release. 
     160* If everything is ok, email the files to info@charlestonsw.com and we will add them to the next release. 
    155161* For more information on POT files, domains, gettext and i18n have a look at the I18n for WordPress developers Codex page and more specifically at the section about themes and plugins. 
    156162 
     
    159165= What browsers are supported? = 
    160166 
    161 All major browsers should work, however Cyber Sprocket Labs only officially supports the current and the most recent prior release of Internet Explorer, Firefox, Chrome, and Safari. 
     167All major browsers should work, however CSA only officially supports the current and the most recent prior release of Internet Explorer, Firefox, Chrome, and Safari. 
    162168 
    163169As of June, 2011 this includes: 
     
    173179When you purchase the Pro Pack the system will automatically install a variety of new features in the base product. 
    174180The features that are added by the Pro Pack change on a regular basis. 
    175 Please see the [Store Locator Plus website](http://www.storelocatorplus.com) for the latest feature list. 
     181Please see the [Store Locator Plus website](http://www.charlestonsw.com/product/store-locator-plus/) for the latest feature list. 
    176182 
    177183Some of the features in the Pro Pack include: 
     
    192198Store Pages is a paid add-on for the free Store Locator Plus product. When you purchase the Store Pages add-on new features will be added to the base product. 
    193199 
    194 Please see the [Store Locator Plus website](http://www.storelocatorplus.com) for the latest feature list. 
    195  
    196 = What happened to the Plus Pack? = 
    197  
    198 We renamed it the Pro Pack.  Your Plus Pack license will work for the Pro Pack. 
     200Please see the [Store Locator Plus website](http://www.charlestonsw.com/product/store-locator-plus/) for the latest feature list. 
    199201 
    200202== Screenshots == 
     
    212214More screenshots are available via the [Store Locator Plus website](http://www.storelocatorplus.com/). 
    213215 
    214 == Upgrade Notice == 
    215  
    216 Update to allow the use of the location sensor, and compatability issues with IE 
    217  
    218216== Changelog == 
    219217 
    220218We update about once per month or more frequently as needed. 
    221219 
    222 See our [Version Roadmap](http://redmine.cybersprocket.com/projects/mc-closeststore/roadmap?utf8=%E2%9C%93&tracker_ids%5B%5D=2&tracker_ids%5B%5D=3&tracker_ids%5B%5D=6&completed=1) on our support site. 
    223  
    224 Here are the most recent releases... 
    225  
    226 = 3.1.5 (August 8th, 2012 = 
    227  
    228 * Add fax field to location data.  
    229  
    230 = 3.1.4 (July 26th, 2012) = 
    231  
    232 * Fixed where some versions of jquery will not start an anon. function 
    233  
    234 = 3.1.3 (July 23rd, 2012) = 
    235  
    236 * Export raw html from the description field 
    237  
    238 = 3.1.2 (July 20th, 2012) = 
    239  
    240 * Made the plugin far less likely to conflict with other plugins 
    241  
    242 = 3.1.1 (July 17th, 2012) = 
    243  
    244 * Fixed where parts of the plugin output after the closing html tag 
    245 * Fixed where ajax to/from a secured url weren't correctly working. 
    246  
    247 = 3.1 (July 11th, 2012) = 
    248  
    249 * Allows the use of the location sensor via pro pack 
    250 * Javascript made more compatible with Internet Explorer 
    251  
    252 = 3.0.92 (July 2nd, 2012) = 
    253  
    254 * Added a comma even if there isn't a state in the address 
    255  
    256  
     220Visit the [Store Locator Plus Release Notes](http://www.charlestonsw.com/support/documentation/store-locator-plus/release-notes/) at our website. 
     221 
     222= Latest Release: 3.2 (September 5th, 2012) = 
     223 
     224* Geocoding process updates. 
     225* Add a force load JavaScript for sites with less friendly themes (not processing shutdown or footer scripts) 
     226* Revised JavaScript load order is more aggressive. 
     227* Fix path name to language files, was causing some installs to break on security warning. 
     228* Theme system tweaking. 
     229* Transition from Cyber Sprocket to CSA. 
     230 
     231 
     232 
  • store-locator-le/trunk/store-locator-le.php

    r587040 r598470  
    22/* 
    33Plugin Name: Google Maps via Store Locator Plus 
    4 Plugin URI: http://www.cybersprocket.com/products/store-locator-plus/ 
     4Plugin URI: http://www.charlestonsw.com/products/store-locator-plus/ 
    55Description: Manage multiple locations with ease. Map stores or other points of interest with ease via Gooogle Maps.  This is a highly customizable, easily expandable, enterprise-class location management system. 
    6 Version: 3.1.5 
    7 Author: Cyber Sprocket Labs 
    8 Author URI: http://www.cybersprocket.com 
     6Version: 3.2 
     7Author: Charleston Software Associates 
     8Author URI: http://www.charlestonsw.com 
    99License: GPL3 
    1010 
    11 Copyright 2012  Cyber Sprocket Labs (info@cybersprocket.com) 
     11Copyright 2012  Charleston Software Associates (info@charlestonsw.com) 
    1212 
    1313This program is free software; you can redistribute it and/or modify 
     
    7777// 
    7878include_once(SLPLUS_PLUGINDIR . '/include/config.php'   ); 
    79 include_once(SLPLUS_PLUGINDIR . 'plus.php'                      ); 
    80 include_once(SLPLUS_COREDIR   . 'csl_helpers.php'           ); 
    81 include_once(SLPLUS_COREDIR   . 'functions.sl.php'          ); 
     79include_once(SLPLUS_PLUGINDIR . 'plus.php'      ); 
     80include_once(SLPLUS_COREDIR   . 'csl_helpers.php'   ); 
     81include_once(SLPLUS_COREDIR   . 'functions.sl.php'  ); 
    8282include_once(SLPLUS_COREDIR   . 'csl-ajax-search.php'   ); 
    8383require_once(SLPLUS_PLUGINDIR . '/include/storelocatorplus-actions_class.php'); 
     
    9494add_action('init'               ,array('SLPlus_Actions','init')                 ); 
    9595add_action('wp_enqueue_scripts' ,array('SLPlus_Actions','wp_enqueue_scripts')   ); 
    96 //add_action('shutdown'           ,array('SLPlus_Actions','shutdown')             ); 
     96add_action('wp_footer'          ,array('SLPlus_Actions','wp_footer')            ); 
     97add_action('shutdown'           ,array('SLPlus_Actions','shutdown')             );  
    9798 
    9899// Admin Actions 
     
    128129// Text Domains 
    129130// 
    130 load_plugin_textdomain(SLPLUS_PREFIX, false, SLPLUS_BASENAME . '/core/languages/'); 
     131load_plugin_textdomain(SLPLUS_PREFIX, false, SLPLUS_COREDIR . 'languages/'); 
Note: See TracChangeset for help on using the changeset viewer.