Plugin Directory

Changeset 3157820


Ignore:
Timestamp:
09/25/2024 09:38:10 PM (17 months ago)
Author:
flexmls
Message:

Flexmls WordPress plugin 3.14.22

Location:
flexmls-idx/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • flexmls-idx/trunk/README.txt

    r3154099 r3157820  
    55Tested up to: 6.7
    66Requires PHP: 7.4
    7 Stable tag: 3.14.21
     7Stable tag: 3.14.22
    88
    99Add Flexmls® IDX listings, market statistics, IDX searches, and a contact form on your web site.
     
    8686
    8787== Changelog ==
     88= 3.14.22 =
     89Efficiency Update
     90* Resolved Listing Detail Photo Slider Opening/Closing Animation
     91* Resolved Meta Description Not Printing on Listing Detail Pages
     92
    8893= 3.14.21 =
    8994Efficiency Update
  • flexmls-idx/trunk/flexmls_connect.php

    r3154099 r3157820  
    66Description: Provides Flexmls&reg; Customers with Flexmls&reg; IDX features on their WordPress websites. <strong>Tips:</strong> <a href="admin.php?page=fmc_admin_settings">Activate your Flexmls&reg; IDX plugin</a> on the settings page; <a href="widgets.php">add widgets to your sidebar</a> using the Widgets Admin under Appearance; and include widgets on your posts or pages using the Flexmls&reg; IDX Widget Short-Code Generator on the Visual page editor.
    77Author: FBS
    8 Version: 3.14.21
     8Version: 3.14.22
    99Author URI:  https://www.flexmls.com
    1010Requires at least: 5.0
     
    1717const FMC_API_BASE = 'sparkapi.com';
    1818const FMC_API_VERSION = 'v1';
    19 const FMC_PLUGIN_VERSION = '3.14.21';
     19const FMC_PLUGIN_VERSION = '3.14.22';
    2020
    2121define( 'FMC_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • flexmls-idx/trunk/lib/flexmlsAPI/Core.php

    r3154099 r3157820  
    4444        'Accept-Encoding' => "gzip,deflate",
    4545        'Content-Type' => "application/json",
    46         'User-Agent' => "FlexMLS WordPress Plugin/3.14.21",
    47         'X-SparkApi-User-Agent' => "flexmls-WordPress-Plugin/3.14.21"
     46        'User-Agent' => "FlexMLS WordPress Plugin/3.14.22",
     47        'X-SparkApi-User-Agent' => "flexmls-WordPress-Plugin/3.14.22"
    4848    );
    4949
  • flexmls-idx/trunk/pages/listing-details.php

    r3154099 r3157820  
    1717    add_filter( 'wpseo_canonical', array( $this, 'wpseo_canonical' ), 0 );
    1818    add_filter( 'wp_robots', array($this, 'wp_robots_noindex_listing'), 0 );
    19 
     19   
     20    add_action('wp_head', array($this, 'wp_meta_description_tag'), 0 );
    2021    add_action('wp_head', array($this, 'open_graph_tags'), 0 );
    2122
     
    757758  }
    758759
     760  function wp_meta_description_tag() {
     761
     762      $description = isset($this->listing_data['StandardFields']['PublicRemarks']) ? $this->listing_data['StandardFields']['PublicRemarks'] : get_bloginfo('description');
     763
     764      echo "<meta name='description' content='" . substr($description, 0, 160) . "'>";
     765
     766  }
     767
    759768  function wp_robots_noindex_listing($robots) {
    760769
  • flexmls-idx/trunk/views/v2/fmcListingDetails.php

    r3154099 r3157820  
    8686                    <?php endif; ?>
    8787
    88                     <img src="<?php echo esc_url( $p['UriLarge'] ); ?>" loading="lazy" />
     88                    <img class="owl-lazy" data-src="<?php echo esc_url( $p['UriLarge'] ); ?>" />
    8989                <?php endforeach; ?>
    9090            </div>
     
    9494                jQuery('#listing-slideshow').owlCarousel(
    9595                    {
     96                        lazyLoad: true,
    9697                        autoHeight: true,
    9798                        nav: true,
Note: See TracChangeset for help on using the changeset viewer.