<div dir="ltr">+1<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Oct 6, 2013 at 9:56 PM, Justin Tadlock <span dir="ltr"><<a href="mailto:justin@justintadlock.com" target="_blank">justin@justintadlock.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    Use:<div class="im"><br>
    <br>
        if ( is_admin_bar_showing() )<br>
            echo 'true';<br>
        else<br>
            echo 'false';<br>
    <br></div>
    Or:<br>
    <br>
        if ( true === is_admin_bar_showing() )<div class="im"><br>
            echo 'true';<br>
        else<br>
            echo 'false';<br>
    <br></div>
    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.<div><div class="h5"><br>
    <br>
    <br>
    <div>On 10/6/2013 6:41 AM, Ronnel Angelo
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Why not try.
        <div><br>
        </div>
        <div>
          <div style="font-size:13px;font-family:arial,sans-serif"><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="font-size:13px;font-family:arial,sans-serif"><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="font-size:13px;font-family:arial,sans-serif"><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="font-size:13px;font-family:arial,sans-serif">
            <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 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>is_admin_bar_showing</span><span>();
                  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 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 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 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 href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
            <a 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 href="http://ronangelo.com" target="_blank">http://ronangelo.com</a>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
theme-reviewers mailing list
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a 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></div>