Plugin Directory

Changeset 1506923


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

update class

Location:
flirty-leads
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • flirty-leads/tags/3.0/flirty-leads.php

    r1457336 r1506923  
    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
     
    5252                                            //single post and main query or Default homepage or static homepage or blog page
    5353                                            if ( (is_single() && is_main_query()) || (is_front_page() && is_home()) || is_front_page() || is_home() || ! is_admin() || ! has_excerpt()  ) {
    54                                                     //$content = str_replace('<img', '<div class="elizabethneedsanap_headdiv"><img', $content);
    55                                                     //$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);
    5854                                                    //$pos = strpos($newstring, 'a', 1);  skip first a
    5955                                                $postimagecount = substr_count( $content, 'wp-image-' );
     
    129125                                     //$key_value = "yes";
    130126                                    else {
     127                                                    $content = str_replace('<img', '<div class="elizabethneedsanap"><img', $content);
     128                                                    $content = str_replace('img class="', 'img class="item1 ', $content);
     129                                                    $checkstring =strstr( $content, 'img' );  //remaining string inc img
     130                                                            //Returns part of haystack string starting from and including the first occurrence of needle to the end of haystack.
     131                                                            $imgpos = strpos( $content, 'img' );  //where i is at
     132                                                   
    131133                                                   
    132134                                                    //get image width in the post from php string functions
     
    227229                                                                $checkstring =substr( $content, ($endimgpos + 4)); //beg </a>(wo </a>
    228230                                                               
     231                                                                //remove elizabethneedsanap
     232                                                                $checkstring = str_replace('<div class="elizabethneedsanap"><img', '<img', $checkstring);
     233                                                                $checkstring = str_replace('img class="item1 ', 'img class="',  $checkstring);
     234                                                               
    229235                                                                $content = $checkstring;
    230236                                                                }
     
    238244                                                               
    239245                                                                $checkstring =substr( $content, ($endimgpos + 1)); //beg >(wo >
     246                                                               
     247                                                                //remove elizabethneedsanap
     248                                                                $checkstring = str_replace('<div class="elizabethneedsanap"><img', '<img', $checkstring);
     249                                                                $checkstring = str_replace('img class="item1 ', 'img class="',  $checkstring);
     250                                                               
    240251                                                                $content = $checkstring;
    241252                                                                }
  • flirty-leads/trunk/flirty-leads.php

    r1506915 r1506923  
    5252                                            //single post and main query or Default homepage or static homepage or blog page
    5353                                            if ( (is_single() && is_main_query()) || (is_front_page() && is_home()) || is_front_page() || is_home() || ! is_admin() || ! has_excerpt()  ) {
    54                                                     //$content = str_replace('<img', '<div class="elizabethneedsanap_headdiv"><img', $content);
    55                                                     //$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);
    5854                                                    //$pos = strpos($newstring, 'a', 1);  skip first a
    5955                                                $postimagecount = substr_count( $content, 'wp-image-' );
Note: See TracChangeset for help on using the changeset viewer.