→', 'pinktouch' ) );
else :
$pattern = get_shortcode_regex();
preg_match( "/$pattern/s", get_the_content(), $match );
$atts = isset( $match[3] ) ? shortcode_parse_atts( $match[3] ) : array();
$images = isset( $atts['ids'] ) ? explode( ',', $atts['ids'] ) : false;
if ( ! $images ) :
$images = get_posts( array(
'post_parent' => get_the_ID(),
'fields' => 'ids',
'post_type' => 'attachment',
'post_mime_type' => 'image',
'orderby' => 'menu_order',
'order' => 'ASC',
'numberposts' => 999,
'suppress_filters' => false
) );
endif;
if ( $images ) :
$total_images = is_countable( $images ) ? count( $images ) : 0;
$image = array_shift( $images );
?>
%2$s photo.', 'This gallery contains %2$s photos.', $total_images, 'pinktouch' ),
'href="' . get_permalink() . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'pinktouch' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"',
number_format_i18n( $total_images )
);
?>
'
' . __( 'Pages:', 'pinktouch' ), 'after' => '
' ) );
if ( get_the_author_meta( 'description' ) && is_singular() ) pinktouch_author_info();
?>