<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Use:<br>
<br>
if ( is_admin_bar_showing() )<br>
echo 'true';<br>
else<br>
echo 'false';<br>
<br>
Or:<br>
<br>
if ( true === is_admin_bar_showing() )<br>
echo 'true';<br>
else<br>
echo 'false';<br>
<br>
Or:<br>
<br>
echo is_admin_bar_showing() ? 'true' : 'false';<br>
<br>
I think these questions are perfectly fine for a mailing list like
this. We are theme developers, after all. Why not help each other
with actual code problems once in a while? It breaks up the routine
of arguing over every minute detail of what's allowed or not allowed
in a theme. It's refreshing. I'd like to see more of this.<br>
<br>
<br>
<div class="moz-cite-prefix">On 10/6/2013 6:41 AM, Ronnel Angelo
wrote:<br>
</div>
<blockquote
cite="mid:CAMH86dTpqbN4Ldi7NASJ1Lrcup4sWDaJbJPUTUDEE0fxZdvaPg@mail.gmail.com"
type="cite">
<div dir="ltr">Why not try.
<div><br>
</div>
<div>
<div
style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><font
color="#007700" face="Consolas, Monaco, Courier New,
Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">if
( is_admin_bar_showing() ) {</span></font></div>
<div
style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><font
color="#007700" face="Consolas, Monaco, Courier New,
Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">
echo 'true';</span></font></div>
<div
style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px"><font
color="#007700" face="Consolas, Monaco, Courier New,
Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">}</span></font></div>
<div
style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px">
<div><font color="#007700" face="Consolas, Monaco, Courier
New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">else
{</span></font></div>
<div><font color="#007700" face="Consolas, Monaco, Courier
New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">
echo 'false';</span></font></div>
<div><font color="#007700" face="Consolas, Monaco, Courier
New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">}</span></font></div>
<div><font color="#007700" face="Consolas, Monaco, Courier
New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap"><br>
</span></font></div>
<div><span
style="color:rgb(34,34,34);font-family:arial;font-size:small">I
think question like these are better asked on the
support forums and not here on the theme-reviewers.</span><font
color="#007700" face="Consolas, Monaco, Courier New,
Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap"><br>
</span></font></div>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sun, Oct 6, 2013 at 7:02 PM, Phillip
Wells <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:phillipwells@hotmail.co.nz" target="_blank">phillipwells@hotmail.co.nz</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="ltr">I am currently making a theme and i need to
use <span style="font-family:Consolas,Monaco,'Courier
New',Courier,monospace;font-size:12.222222328186035px;line-height:21.99652862548828px;white-space:pre-wrap;color:rgb(0,0,187)">is_admin_bar_showing</span><span
style="font-family:Consolas,Monaco,'Courier
New',Courier,monospace;font-size:12.222222328186035px;line-height:21.99652862548828px;white-space:pre-wrap;color:rgb(0,119,0)">();
i have this code below</span>
<div>
<font color="#007700" face="Consolas, Monaco, Courier
New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">if
( is_admin_bar_showing() ==true ){</span></font></div>
<div><font color="#007700" face="Consolas, Monaco,
Courier New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">echo'true';</span></font></div>
<div><font color="#007700" face="Consolas, Monaco,
Courier New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">}</span></font></div>
<div>
<div><font color="#007700" face="Consolas, Monaco,
Courier New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">elseif
( is_admin_bar_showing() == false ){</span></font></div>
<div><font color="#007700" face="Consolas, Monaco,
Courier New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">echo'false';</span></font></div>
<div><font color="#007700" face="Consolas, Monaco,
Courier New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">}</span></font></div>
</div>
<div><font color="#007700" face="Consolas, Monaco,
Courier New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">endif;</span></font></div>
<div><font color="#007700" face="Consolas, Monaco,
Courier New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap"><br>
</span></font></div>
<div><font color="#007700" face="Consolas, Monaco,
Courier New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">However
this doesn't work and i am not sure why.</span></font></div>
<div><font color="#007700" face="Consolas, Monaco,
Courier New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap"><br>
</span></font></div>
<div><font color="#007700" face="Consolas, Monaco,
Courier New, Courier, monospace"><span
style="font-size:12px;line-height:21.984375px;white-space:pre-wrap">The
description on the codex is: </span></font><span
style="font-family:sans-serif;font-size:13.333333969116211px;line-height:21.99652862548828px">This </span><a
moz-do-not-send="true"
href="http://codex.wordpress.org/Conditional_Tags"
title="Conditional Tags"
style="text-decoration:none;color:rgb(76,166,207);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(223,223,223);font-family:sans-serif;font-size:13.333333969116211px;line-height:21.99652862548828px"
target="_blank">Conditional Tag</a><span
style="font-family:sans-serif;font-size:13.333333969116211px;line-height:21.99652862548828px"> checks
if the WordPress </span><a moz-do-not-send="true"
href="http://codex.wordpress.org/Administration_Screens#Toolbar"
title="Administration Screens"
style="text-decoration:none;color:rgb(76,166,207);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(223,223,223);font-family:sans-serif;font-size:13.333333969116211px;line-height:21.99652862548828px"
target="_blank">Toolbar</a><span
style="font-family:sans-serif;font-size:13.333333969116211px;line-height:21.99652862548828px"> is
being displayed. This is a boolean function, meaning
it returns either TRUE or FALSE. and here is a link
to the page on the codex </span><a
moz-do-not-send="true"
href="http://codex.wordpress.org/Function_Reference/is_admin_bar_showing"
style="font-size:12pt" target="_blank">http://codex.wordpress.org/Function_Reference/is_admin_bar_showing</a>.
I have checked this page but i still cannot figure out
how to do it as this page is not very helpful.</div>
</div>
</div>
<br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a moz-do-not-send="true"
href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a moz-do-not-send="true"
href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers"
target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<a moz-do-not-send="true" href="http://ronangelo.com"
target="_blank">http://ronangelo.com</a>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
theme-reviewers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a>
<a class="moz-txt-link-freetext" href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
</blockquote>
<br>
</body>
</html>