Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
<?php | |
// Dirty, easy to miss a ' or " or . | |
echo '<a href="' . get_permalink() . '" class="link">' . get_the_title() . '</a>'; | |
// Clean, easier to read | |
printf( '<a href="%s" class="link">%s</a>', get_permalink(), get_the_title() ); | |
// Almost as clean, and more secure, maybe a little paranoic :) | |
printf( '<a href="%s" class="link">%s</a>', esc_url( get_permalink() ), esc_html( get_the_title() ) ); |
-- Modified by Felipe Reyes <[email protected]> | |
-- Original: http://awesome.naquadah.org/wiki/Acpitools-based_battery_widget | |
-- usage: | |
-- require("battery") | |
-- include "mybattmon" in your wibox | |
local naughty = require("naughty") | |
local time_rem = "" | |
mybattmon = widget({ type = "textbox", name = "mybattmon", align = "right" }) |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.