Arkisto, heinäkuu 2011

You should use wp_enqueue_script also when including the plugin script

4. heinäkuuta 2011 klo 18.11
Sijainti: Keskustelupalstat: Stack Exchange
Avainsanat: WordPress

I’d supplement saibot’s answer by saying that, instead of a raw <script>...</script> block, you should use wp_enqueue_script() also when including the plugin script:

<?php wp_enqueue_script("jquery-cookie", get_bloginfo('template_url').'/jquery.cookie.js', array(), '0'); ?>

Vastaa viestiin sen kontekstissa (Stack Exchange)

Is there an APT key for the repository?

4. heinäkuuta 2011 klo 14.01
Sijainti: Keskustelupalstat: Phoronix

Hi,

I’ve successfully configured the test suite repository, but was wondering if there’s a GPG key associated with it somewhere on the site?

Vastaa viestiin sen kontekstissa (Phoronix)

Suggestion: rename currently generically-named template elements

4. heinäkuuta 2011 klo 11.58
Sijainti: Keskustelupalstat: WordPress Support Forums

In templates/default/layout.html there are elements named ”loading” and ”close”. I don’t know if these names are dictated by Lightbox, but unless they are, I’d suggest renaming them with something more closely tied to their use by Simple Lightbox (such as ”slb_loading” and ”slb_close”, as other elements in the template are). The reason is that I just spent a significant amount of time trying to debug a weird problem with my theme, which was actually caused by ”loading” being an id used by Simple Lightbox and styled in its CSS. It was obviously easy for me to fix this by changing my element’s id, but finding out the cause was time I could have spent with more useful matters.

Thanks for the great plugin, though.

Vastaa viestiin sen kontekstissa (WordPress Support Forums)

« Uudempia