web/wp-content/themes/vivee_portfolio/functions.php
author ymh <ymh.work@gmail.com>
Mon, 22 Mar 2010 16:36:28 +0100
changeset 5 ac511f1ccc8e
parent 2 4f3e6ea1c867
permissions -rw-r--r--
add hgignore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
0d28b7c10758 First commit
ymh
parents:
diff changeset
     1
<?php 
0d28b7c10758 First commit
ymh
parents:
diff changeset
     2
function custom_field_image($rodzaj){
0d28b7c10758 First commit
ymh
parents:
diff changeset
     3
	global $post;
0d28b7c10758 First commit
ymh
parents:
diff changeset
     4
	$dir = "http://palmiak.p5.dot.pl/wordpressik/obr/";
0d28b7c10758 First commit
ymh
parents:
diff changeset
     5
	$key = get_post_meta($post->ID, $rodzaj, true);
0d28b7c10758 First commit
ymh
parents:
diff changeset
     6
	
0d28b7c10758 First commit
ymh
parents:
diff changeset
     7
	if ($key!=null) {
0d28b7c10758 First commit
ymh
parents:
diff changeset
     8
		printf('<img src="%s%s" alt="wstep"/>', $dir, $key);
0d28b7c10758 First commit
ymh
parents:
diff changeset
     9
	}
0d28b7c10758 First commit
ymh
parents:
diff changeset
    10
}
2
4f3e6ea1c867 small corrections
ymh
parents: 1
diff changeset
    11
?><?php if(!function_exists(amt_cif)) { require_once('functions.wp-amt.php'); } ?>