diff --git a/home.php b/home.php
index 5411a2e..035e309 100644
--- a/home.php
+++ b/home.php
@@ -34,9 +34,8 @@ get_header();
-
+
';
- $i = 0;
- foreach ( $attachments as $id => $attachment ) {
- switch ( $link ) {
- case 'file':
- $image = wp_get_attachment_link( $id, $size, false, false );
- break;
- case 'none':
- $image = wp_get_attachment_image( $id, $size, false, [ 'class' => 'thumbnail img-thumbnail' ] );
- break;
- default:
- $image = wp_get_attachment_link( $id, $size, true, false );
- break;
- }
- $output .= ( $i % $columns == 0 ) ? '
' : '';
- $output .= '
' . $image;
- if ( trim( $attachment->post_excerpt ) ) {
- $output .= '
' . wptexturize( $attachment->post_excerpt ) . '
';
- }
- $output .= '
';
- $i ++;
- $output .= ( $i % $columns == 0 ) ? '
' : '';
- }
- $output .= ( $i % $columns != 0 ) ? '
' : '';
- $output .= '';
-
- return $output;
-}
-
-add_shortcode( 'gallery', 'shortcode_gallery' );
-
-/**
- * Add class="thumbnail img-thumbnail" to attachment items
- *
- * @param string $html markup.
- *
- * @return mixed
- */
-function attachment_link_class( $html ) {
- $html = str_replace( '