+ ID );
+ $post_thumbnail_id = get_post_thumbnail_id( $post->ID );
+ if ( empty ( $post_thumbnail_id ) ) {
+ $args = array(
+ 'post_parent' => $post->ID,
+ 'post_type' => 'attachment',
+ 'post_mime_type' => 'image',
+ 'orderby' => 'menu_order',
+ 'order' => 'ASC',
+ 'numberposts' => 1
+ );
+ $attachments = get_children( $args );
+ $post_thumbnail_id = key($attachments);
+ }
+ $image = wp_get_attachment_image_src( $post_thumbnail_id, 'portfolio-thumb' );
+ $image_large = wp_get_attachment_image_src( $post_thumbnail_id, 'large' );
+ $image_alt = get_post_meta( $post_thumbnail_id, '_wp_attachment_image_alt', true );
+ $image_desc = get_post($post_thumbnail_id);
+ $image_desc = $image_desc->post_content;
+ $full_descr = $post->post_content != "" ? $post->post_content : '';
+ $post_meta = get_post_meta( $post->ID, 'prtfl_information', true );
+ $date_compl = isset( $post_meta['_prtfl_date_compl'] ) ? $post_meta['_prtfl_date_compl'] : '';
+ if ( ! empty( $date_compl ) && 'in progress' != $date_compl) {
+ $date_compl = explode( "/", $date_compl );
+ $date_compl = date( get_option( 'date_format' ), strtotime( $date_compl[1] . "-" . $date_compl[0] . '-' . $date_compl[2] ) );
+ }
+ $link = isset( $post_meta['_prtfl_link'] ) ? $post_meta['_prtfl_link'] : '';
+ if ( empty( $full_descr ) )
+ $full_descr = isset( $post_meta['_prtfl_short_descr'] ) ? $post_meta['_prtfl_short_descr'] : '';
+ $svn = $post_meta['_prtfl_svn'];
+ if ( ! empty( $image[0] ) ) { ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
", $full_descr); ?>
+
+
+ ID, 'portfolio_executor_profile' ); ?>
+
+ 0 )
+ echo ', '; ?>
+ name; ?>
+
+
+
+
+
+ $post->ID,
+ 'post_type' => 'attachment',
+ 'post_mime_type' => 'image',
+ 'numberposts' => -1,
+ 'orderby' => 'menu_order',
+ 'order' => 'ASC',
+ 'exclude' => $post_thumbnail_id
+ );
+ $attachments = get_children( $args );
+ $array_post_thumbnail_id = array_keys( $attachments );
+ $count_element = count( $array_post_thumbnail_id );
+
+ while ( list( $key, $value ) = each( $array_post_thumbnail_id ) ) {
+ $image = wp_get_attachment_image_src( $value, 'portfolio-photo-thumb' );
+ $image_large = wp_get_attachment_image_src( $value, 'large' );
+ $image_alt = get_post_meta( $value, '_wp_attachment_image_alt', true );
+ $image_title = get_post_meta( $value, '_wp_attachment_image_title', true );
+ $image_desc = get_post($value);
+ $image_desc = $image_desc->post_content;
+
+ if ( 0 == $key ) { ?>
+
+
+
+
+
+
+
+