Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
515 views
in Q2A Core by
How can I determine whether user is in edit mode in theme PHP file? Not much luck with an answer found in this forum as I guess it relates to older version
Q2A version: 1.5.2
by
I'll leave this for someone else to answer properly, but if you want a quick fix: the URL will have the parameter state=edit-000 so you can check if $_GET['status'] exists and starts with "edit".

EDIT: oh wait, according to my answer on another question the $_GET is blank. http://www.question2answer.org/qa/2469/how-to-tell-from-theme-that-were-editing-the-question
Did you check for $this->$content['form_q_edit']) ??

1 Answer

0 votes
by
As Scott said, check for $this->content['form_q_edit'] - still syntax error in his formulation.
...