My b2evolution Version: 1.10.x
I am working on doing some search and replace work in the body of my posts.
Where is $Item->content_teaser actually created?
I suspect these might be all in the same place, but if it is different, where is:
Also, where is $Item->title created?
And, where would $Blog->dget('shortname') be constructed as well?
Thanks!
James
I actually found it. For those that are wondering...
$Item->content_teaser
is located in
inc/items/model/_item.class.php
And here is the code I added to do the search and replace:
# Added by James on 3/27/2008
global $Blog;
$CityName = $Blog->get('shortname');
$output = eregi_replace("CityName", $CityName, $output);
For the $Item->title, it is located:
inc/items/model/_itemlight.class.php
global $Blog;
$CityName = $Blog->get('shortname');
$title = eregi_replace("CityName", $CityName, $title);