/**
 * Get resized image by size
 * @global array $_theme_image_sizes
 * @param string $image
 * @param array $size
 * @param string $alt
 * @param string $class
 * @param bool $return_src
 * @param string $title
 * @return string
 */
function ts_get_resized_image_by_size($image, $size, $alt = '', $class = '', $return_src = false, $title = '')
{
    global $_theme_image_sizes;
    //get size from array if is set
    if (!empty($size) && isset($_theme_image_sizes[(string) $size])) {
        $width = $_theme_image_sizes[$size]['width'];
        $height = $_theme_image_sizes[$size]['height'];
        $crop = $_theme_image_sizes[$size]['crop'];
        return ts_get_resized_image($image, $width, $height, $alt, $class, $crop, $return_src, $title);
    }
    return 'SIZE NOT DEFINED';
}
</h3>
					<?php 
    if (!in_array($body_class, array('b1170', 'b960'))) {
        ?>
						<?php 
        _e('Boxed layout only', 'framework');
        ?>
					<?php 
    } else {
        ?>
						<ul id="background-image">
							<?php 
        foreach ($background_images as $background) {
            ?>
								<li><div style="background-image: url(<?php 
            echo ts_get_resized_image(get_template_directory_uri() . '/images/body-img/' . $background, 25, 25, '', '', true, true);
            ?>
);" data-img="<?php 
            echo $background;
            ?>
"></div></li>
							<?php 
        }
        ?>
						</ul>
						<div class="clear"></div>
					<?php 
    }
    ?>
				</div>
			<?php