Plugin Directory

Changeset 1506915


Ignore:
Timestamp:
10/02/2016 07:04:42 PM (9 years ago)
Author:
sageshilling
Message:

update to ver 3.0

Location:
flirty-leads/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • flirty-leads/trunk/flirty-leads.php

    r1457336 r1506915  
    44Description: Flirty Leads lets your site visitors respond your site images.  Generate client lists, gain leads.
    55
    6 Demo http://peaceoftheocean.com/shesellsseashells
    7 
    8 Version: 2.0
     6Demo http://peaceoftheocean.com/WordPressNotes/lorem-ipsum/
     7
     8Version: 3.0
    99Author: Elizabeth Shilling
    1010License: GPL2
     
    5454                                                    //$content = str_replace('<img', '<div class="elizabethneedsanap_headdiv"><img', $content);
    5555                                                    //$content = str_replace('<img', '<div class="elizabethneedsanap" style="width: ' . $clipimagewidth . ';"><img', $content);
    56                                                     $content = str_replace('<img', '<div class="elizabethneedsanap"><img', $content);
    57                                                     $content = str_replace('img class="', 'img class="item1 ', $content);
     56                                                    //$content = str_replace('<img', '<div class="elizabethneedsanap"><img', $content);
     57                                                    //$content = str_replace('img class="', 'img class="item1 ', $content);
    5858                                                    //$pos = strpos($newstring, 'a', 1);  skip first a
    5959                                                $postimagecount = substr_count( $content, 'wp-image-' );
     
    129129                                     //$key_value = "yes";
    130130                                    else {
     131                                                    $content = str_replace('<img', '<div class="elizabethneedsanap"><img', $content);
     132                                                    $content = str_replace('img class="', 'img class="item1 ', $content);
     133                                                    $checkstring =strstr( $content, 'img' );  //remaining string inc img
     134                                                            //Returns part of haystack string starting from and including the first occurrence of needle to the end of haystack.
     135                                                            $imgpos = strpos( $content, 'img' );  //where i is at
     136                                                   
    131137                                                   
    132138                                                    //get image width in the post from php string functions
     
    227233                                                                $checkstring =substr( $content, ($endimgpos + 4)); //beg </a>(wo </a>
    228234                                                               
     235                                                                //remove elizabethneedsanap
     236                                                                $checkstring = str_replace('<div class="elizabethneedsanap"><img', '<img', $checkstring);
     237                                                                $checkstring = str_replace('img class="item1 ', 'img class="',  $checkstring);
     238                                                               
    229239                                                                $content = $checkstring;
    230240                                                                }
     
    238248                                                               
    239249                                                                $checkstring =substr( $content, ($endimgpos + 1)); //beg >(wo >
     250                                                               
     251                                                                //remove elizabethneedsanap
     252                                                                $checkstring = str_replace('<div class="elizabethneedsanap"><img', '<img', $checkstring);
     253                                                                $checkstring = str_replace('img class="item1 ', 'img class="',  $checkstring);
     254                                                               
    240255                                                                $content = $checkstring;
    241256                                                                }
  • flirty-leads/trunk/readme.txt

    r1489482 r1506915  
    44Requires at least: 3.0
    55Tested up to: 4.6
    6 Stable tag: 2.5
     6Stable tag: 3.0
    77License: GPLv2 or later
    88
Note: See TracChangeset for help on using the changeset viewer.