Vetrina

Risultati per:
catlist->get_categories_posts() as $single){ //Show the title and link to the post: $titolo=$this->get_post_title($single); $lcp_customs = ''; /*$custom_key = 'titolo'; $custom_fields = get_post_custom($single->ID); $my_custom_field = $custom_fields[$custom_key]; if (sizeof($my_custom_field) > 0 ): foreach ( $my_custom_field as $key => $value ) : $titolo=$value; endforeach; endif;*/ $custom_key = 'immagine'; $custom_fields = get_post_custom($single->ID); $my_custom_field = $custom_fields[$custom_key]; if (sizeof($my_custom_field) > 0 ): foreach ( $my_custom_field as $key => $value ) : $lcp_customs .= wp_get_attachment_image($value); endforeach; endif; /*$custom_key = 'descrizione'; $custom_fields = get_post_custom($single->ID); $my_custom_field = $custom_fields[$custom_key]; if (sizeof($my_custom_field) > 0 ): foreach ( $my_custom_field as $key => $value ) : $lcp_customs .= lcp_trim_excerpt($value) . "

Continua
"; $descrizione=$value; endforeach; endif;*/ $lcp_customs .= $this->get_excerpt($single, 'div', 'lcp_excerpt') . "Continua
"; $descrizione=$this->get_excerpt($single, 'div', 'lcp_excerpt'); $custom_key = 'pdf'; $custom_fields = get_post_custom($single->ID); $my_custom_field = $custom_fields[$custom_key]; if (sizeof($my_custom_field) > 0 ): foreach ( $my_custom_field as $key => $value ) : if (strlen(trim(wp_get_attachment_url($value)))>=1) $lcp_customs = $lcp_customs . "Download" ; endforeach; endif; $content=$this->get_content($single, 'p', 'lcp_content'); if ($src==1){ if (strpos(strtoupper($descrizione),strtoupper($_POST['search']))!==false || strpos(strtoupper($titolo),strtoupper($_POST['search']))!==false || strpos(strtoupper($content),strtoupper($_POST['search']))!==false){ $num++; $lcp_display_output .= "
"; $lcp_display_output .= "

" . $titolo . "

"; $lcp_display_output .=$lcp_customs; $lcp_display_output .= '
'; } }else{ $num++; $lcp_display_output .= "
"; $lcp_display_output .= "

" . $titolo . "

"; $lcp_display_output .=$lcp_customs; $lcp_display_output .= '
'; } } if ($num==0){ $lcp_display_output .="

Nessun risultato

"; } //$lcp_display_output .= ''; // If there's a "more link", show it: $lcp_display_output .= $this->catlist->get_morelink(); //Pagination $lcp_display_output .= $this->get_pagination(); $this->lcp_output = $lcp_display_output;
Il presente sito utilizza cookie tecnici per migliorare la tua navigazione. Per saperne di più clicca qui
Autorizzo
x