Its a pretty big function to paste and I do not want for you to have to read through all the code. I do appreciate you offering though. I will try again to explain what it is I want to do.
Basically, I have a function that stores some values. If those values are true, it will output this
<p class="clickable">Click To Find</p>
<li>my function output</li>
However, I have ran into one case that the values will be empty so nothing will output from the function. However, the html is still getting displayed .I dont want the html to display the value if the function is null.
So with the above code I can return the function if it is true or not. The issue is, that I need to output The <div class="list">, <p class="clickable">Click To Find</p> and <ul class="collapse">with it, without putting that html directly in the function. Hopefully that is clear as mud, if not, I will accept the title as bumbling idiot of the day :)..