Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function arraytoitem($array, $imgn, $img){
- foreach ($array as $item){
- $url=explode("/", $item);
- $numofarr=count($url)-1;
- if ($numofarr==0){
- echo '<img src="'. plugins_url( $imgn, __FILE__ ).'" />';
- }else{
- echo '<a href="'.$item.'" title="'.$url[$numofarr].'" ><img src="'. plugins_url( $img, __FILE__ ).'" /></a> ';
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement