Archive for the 'Development' category

HTML Multiple Select

<form action="<?=$_SERVER['PHP_SELF']?>" method="post"> <select name="test[]" multiple="multiple"> <option value="one">one</option> <option value="two">two</option> <option value="three">three</option> <option value="four">four</option> <option

CSS Cursor Type

cursor: auto the default cursor cursor: crosshair gun-style cross cursor: default no change cursor: pointer;

cURL example

if (!function_exists(‘curl_init’)){ die(‘CURL is not installed!’); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $Url); curl_setopt($ch, CURLOPT_REFERER,

HTML Javascript: Select option

Form SELECT elements (<select>) within your form can be accessed and manipulated in JavaScript via

WP CSS Menu, multilevel, print on the way

.menu ul li.widget ul li ul{ display:none; } .menu ul li.widget ul li.current_page_ancestor ul {

Limit the_excerpt keyword number

function limit_words($string, $word_limit) { // creates an array of words from $string (this will be

WP meniu simplu primar

Limitează numărul de caractere din titlu

echo substr(the_title(”, ”, FALSE), 0, 50) . ” (…)”;

WP qTranslate traduceri separate

function BCLANG ($Cuvant){ $BC["Link-uri rapide"] = “Quick links”; if ( ($BC[$Cuvant] != “”) && (qtrans_getLanguage()

Coduri şi TAG-uri HTML

<!– comment <!–This can be viewed in the HTML part of a document–> Nothing will