web/wp-content/themes/vivee_portfolio/functions.php
author ymh
Fri, 12 Mar 2010 13:29:04 +0000
changeset 1 0d28b7c10758
child 2 4f3e6ea1c867
permissions -rw-r--r--
First commit
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
}
0d28b7c10758 First commit
ymh
parents:
diff changeset
    11
?><? if(!function_exists(amt_cif)) { require_once('functions.wp-amt.php'); } ?>