Changeset 1506915
- Timestamp:
- 10/02/2016 07:04:42 PM (9 years ago)
- Location:
- flirty-leads/trunk
- Files:
-
- 2 edited
-
flirty-leads.php (modified) (5 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
flirty-leads/trunk/flirty-leads.php
r1457336 r1506915 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 … … 54 54 //$content = str_replace('<img', '<div class="elizabethneedsanap_headdiv"><img', $content); 55 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);56 //$content = str_replace('<img', '<div class="elizabethneedsanap"><img', $content); 57 //$content = str_replace('img class="', 'img class="item1 ', $content); 58 58 //$pos = strpos($newstring, 'a', 1); skip first a 59 59 $postimagecount = substr_count( $content, 'wp-image-' ); … … 129 129 //$key_value = "yes"; 130 130 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 131 137 132 138 //get image width in the post from php string functions … … 227 233 $checkstring =substr( $content, ($endimgpos + 4)); //beg </a>(wo </a> 228 234 235 //remove elizabethneedsanap 236 $checkstring = str_replace('<div class="elizabethneedsanap"><img', '<img', $checkstring); 237 $checkstring = str_replace('img class="item1 ', 'img class="', $checkstring); 238 229 239 $content = $checkstring; 230 240 } … … 238 248 239 249 $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 240 255 $content = $checkstring; 241 256 } -
flirty-leads/trunk/readme.txt
r1489482 r1506915 4 4 Requires at least: 3.0 5 5 Tested up to: 4.6 6 Stable tag: 2.56 Stable tag: 3.0 7 7 License: GPLv2 or later 8 8
Note: See TracChangeset
for help on using the changeset viewer.