Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Page Array
#1
Hey all!

I am switching out subheaders (images/divs) on my interior pages with a pretty simple conditional

PHP Code:
if (return_page_slug() == 'about-us') {
echo 
'<div class="InteriorAbout">Some copy here</div>';
} else { ...} 

Client wants this to happen on more pages....can I somehow use an array with this rather than writing out a bunch of if's?

Noob bowing down!!!

Thanks!
Reply


Messages In This Thread
Page Array - by lnickel - 2013-09-27, 13:57:49
RE: Page Array - by Carlos - 2013-09-27, 15:46:25
RE: Page Array - by lnickel - 2013-09-27, 16:12:49



Users browsing this thread: 1 Guest(s)