Changeset 1506923
- Timestamp:
- 10/02/2016 07:47:46 PM (9 years ago)
- Location:
- flirty-leads
- Files:
-
- 2 edited
-
tags/3.0/flirty-leads.php (modified) (5 diffs)
-
trunk/flirty-leads.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
flirty-leads/tags/3.0/flirty-leads.php
r1457336 r1506923 4 4 Description: Flirty Leads lets your site visitors respond your site images. Generate client lists, gain leads. 5 5 6 Demo http://peaceoftheocean.com/ shesellsseashells7 8 Version: 2.06 Demo http://peaceoftheocean.com/WordPressNotes/lorem-ipsum/ 7 8 Version: 3.0 9 9 Author: Elizabeth Shilling 10 10 License: GPL2 … … 52 52 //single post and main query or Default homepage or static homepage or blog page 53 53 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);58 54 //$pos = strpos($newstring, 'a', 1); skip first a 59 55 $postimagecount = substr_count( $content, 'wp-image-' ); … … 129 125 //$key_value = "yes"; 130 126 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 131 133 132 134 //get image width in the post from php string functions … … 227 229 $checkstring =substr( $content, ($endimgpos + 4)); //beg </a>(wo </a> 228 230 231 //remove elizabethneedsanap 232 $checkstring = str_replace('<div class="elizabethneedsanap"><img', '<img', $checkstring); 233 $checkstring = str_replace('img class="item1 ', 'img class="', $checkstring); 234 229 235 $content = $checkstring; 230 236 } … … 238 244 239 245 $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 240 251 $content = $checkstring; 241 252 } -
flirty-leads/trunk/flirty-leads.php
r1506915 r1506923 52 52 //single post and main query or Default homepage or static homepage or blog page 53 53 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);58 54 //$pos = strpos($newstring, 'a', 1); skip first a 59 55 $postimagecount = substr_count( $content, 'wp-image-' );
Note: See TracChangeset
for help on using the changeset viewer.