Plugin Directory

Changeset 3444128


Ignore:
Timestamp:
01/21/2026 01:42:29 PM (4 weeks ago)
Author:
matthewrubin
Message:

some minor issue fixed

Location:
local-magic/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • local-magic/trunk/include/custom-fields.php

    r3300077 r3444128  
    77   
    88    global $wpdb;   
    9     $lm_custom_fields_sql = "SELECT * FROM {$wpdb->prefix}mrylm_custom_fields where lm_city_id = '.$lm_city_id.'";
     9    $lm_custom_fields_sql = "SELECT * FROM {$wpdb->prefix}mrylm_custom_fields where lm_city_id = '$lm_city_id'";
    1010    $lm_custom_fields = $wpdb->get_row($lm_custom_fields_sql);
    1111   
    12    // $lm_custom_fields_sql = "SELECT * FROM {$wpdb->prefix}mrylm_cities where lm_city_id = '.$lm_city_id.'";
     12   // $lm_custom_fields_sql = "SELECT * FROM {$wpdb->prefix}mrylm_cities where lm_city_id = '$lm_city_id'";
    1313   // $lm_custom_fields = $wpdb->get_row($lm_custom_fields_sql);
    1414   
    1515     
    1616    // educational_institution...................................................
    17     if($lm_custom_fields->lm_educational_institution){     
     17    if(isset($lm_custom_fields->lm_educational_institution)){     
    1818
    1919        $educational_arr = explode('|', $lm_custom_fields->lm_educational_institution);
     
    2323        $content = str_replace('EDUCATION_1', '', $content);           
    2424    }         
    25        
    26    
    2725   
    2826   
     
    5755    // lm_chamber_ofcom => CHAMBER_OFCOM_1
    5856    // lm_football_team => FOOTBALL_TEAM_1
    59            
     57    // lm_popular_wedding  => POPULAR_WEDDING_1
     58    // lm_largest_courthouse => LARGEST_COURTHOUSE_1         
    6059   
    6160    return $content;
  • local-magic/trunk/include/function.php

    r3300077 r3444128  
    114114    }   
    115115}
     116
    116117
    117118function mrylm_title_tag_alternative() {
     
    769770function mrylm_get_news_list_schema_data($lm_setting, $lm_news, $lm_city){
    770771       
    771     $separator  =  $obj->lm_city_keyword_separator ? $obj->lm_city_keyword_separator : $lm_setting->lm_keyword_separator;
     772    $separator  =  $lm_city->lm_city_keyword_separator ? $lm_city->lm_city_keyword_separator : $lm_setting->lm_keyword_separator;
    772773    $data = '';       
    773774
     
    784785                    $detail  = trim(preg_replace("/<iframe[^>]*>(.+?)<\/iframe>/", "", $detail));
    785786                    $detail  = trim(preg_replace("/<img[^>]*>(.+?)<\/img>/", "", $detail));
    786                     $detail  = preg_replace('/(<a\b[^><]*)>/i', '$1 rel="nofollow;" target="_blank">',$detail);
     787                   
     788                    // this is for rel="nofollow;" target="_blank" in anchor tag
     789                    //$detail  = preg_replace('/(<a\b[^><]*)>/i', '$1 rel="nofollow;" target="_blank">',$detail);
     790                    // This is for removal anchor tag with remain text
     791                    $detail  = preg_replace('#<a.*?>([^>]*)</a>#i', '$1', $detail);
    787792
    788793                    $author = $obj->lm_author ? $obj->lm_author :  $obj->lm_source;
  • local-magic/trunk/local-magic.php

    r3300077 r3444128  
    1313 * Plugin URI:        https://www.mrmarketingres.com/local-magic
    1414 * Description:       The Local Magic&#169; WordPress plugin extends the functionality of the SaaS Local Magic&#169; to WordPress so that the local news feed can be displayed on the WordPress website. The plugin is for customers of Local Magic&#169; that have an active subscription with the company.
    15  * Version:           2.8.0
     15 * Version:           2.9.0
    1616 * Requires at least: 3.5.1
    1717 * Tested up to:      6.8.1
     
    2828}
    2929
    30 define('MRYLM_VERSION', '2.8.0');
     30define('MRYLM_VERSION', '2.9.0');
    3131
    3232define('MRYLM_PLUGIN_DIR', plugin_dir_path(__FILE__));
  • local-magic/trunk/readme.txt

    r3300078 r3444128  
    55Tested up to: 6.8.1
    66Requires PHP: 5.6.0
    7 Stable tag: 2.8.0
     7Stable tag: 2.9.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.