2012-05-28, 02:22:33
studiosi Wrote:In function show_blog_navigation, why is the right arrow inside this if?
if ($index < $total && $count >= $Blog->getSettingsData("postperpage")) { ... }
I'm missing something?
thanks everybody,
I think you are referring to $Blog->getSettingsData("postperpage")
The $Blog-> represents an instance of the 'Blog' class. (you will see $Blog = new Blog at the top of the function). In that particular method call, we are returning the number of posts per page the user defined.
So if $index (the current blog page the user is on (page=x in the url)) is less then the total amount of blog pages and count (the number of posts on the current page) is less then the user defined amount of posts per page, then do what is in the conditional brackets.
I will look into this problem tomorrow when I have some more time.