Shortcode per YouTube rivisto e migliorato

Ho rimesso mano a uno shortcode di cui vi avevo già scritto e che si è rivelato davvero comodo, quello per l’inserimento di un video di YouTube in un post. Le modifiche che ho apportato rispetto a quello già pubblicato riguardano due aspetti:

  1. la possibilità di far partire il video da un punto preciso;
  2. l’inserimento del poster frame del video se il post viene letto via feed.

Niente di particolarmente complicato, quindi, ma mi pare sempre interessante condividere con voi quanto combino.

Continua a leggere

2012: l’anno delle balle mega galattiche

Rispondendo all’invito di @disinformatico, che come sempre ringrazio, condivido il video di Superquark sul 21 dicembre 2012, il giorno delle presunte catastrofi planetarie.

Convincere almeno uno di questi creduloni sarebbe già un successo. E comunque giorno 22 non vorrò perdermi la faccia di coloro che mettono in giro panzane del genere.


Segnalibri al 16 giugno 2010

  • In an iterative approach to user interface design, rapid prototyping is the process of quickly mocking up the future state of a system, be it a website or application, and validating it with a broader team of users, stakeholders, developers and designers. Doing this rapidly and iteratively generates feedback early and often in the process, improving the final design and reducing the need for changes during development.

    Tags: design webdesign wireframe prototyping development usability

    16 giugno 2010

  • Image sizing is always a problem for themes. Theme designers want their theme to be pixel perfect in all cases, but WordPress wants the user to have some form of control. With image sizes, WordPress lets the user pick the size of their image thumbnails and so forth. In that case, using those becomes problematic for certain places in the theme which need pre-defined image sizes.
    Here’s the quick and easy solution: add_image_size. This function lets you create custom image sizes that can be used by your theme. Plugins can do the same sort of things, of course, but this really comes in more useful as a theme developer’s tool.

    Tags: wordpress image thumbnail

    14 giugno 2010

  • Many WordPress themes, especially those with “magazine-like” layouts, use an image to represent each post. It might just be on the front page. It might be alone, or alongside an excerpt. Until now, there was no standardized way to do this. Many themes would require you to tediously enter a Custom Field with the value being the URL you wanted to use. Often you had to do cropping yourself. With WordPress 2.9, theme authors can easily enable Post Thumbnail selection UI and call those image using simple template tags.

    Tags: wordpress image thumbnail

    14 giugno 2010

Continua a leggere

Quando si dice che WordPress può fare tutto

Leggevo sul blog di Alex “Viper007Bond” dell’apparizione di un pezzo di codice di WordPress nella mini-serie televisiva Strike Back: nel monitor di alcuni PC si intravedono le righe del file wp-admin/js/post.dev.js, che servirebbe alla guida di un missile!

In risposta, Mark Jaquith ha immortalato la cosa nel core di WordPress inserendo un commento appropriato:

if ( $('input:radio:checked', pvSelect).val() != 'public' ) {
	$('#sticky').attr('checked', false);
} // WEAPON LOCKED

Ecco il commit di Mark di ieri:

[15:54:35]aldo@zen:/var/www/wordpress-svn$ svn up
U    wp-admin/js/post.dev.js

...

Aggiornato alla revisione 15239.

La notizia è stata ripresa anche da Matt.

Quando si dice che WordPress è adatto a qualsiasi utilizzo… :D