<?php ob_start(); ?>

			<?php $bg_img = wp_get_attachment_url($bg);
			$num = ( $num ) ? $num : 5; ?>

			<!-- #twitter -->
			<div id="twitter" class="section padding parallax" style="background-image: url(<?php echo esc_url($bg_img);?>);">
				<div class="container">
					<div class="twitter-carousel white wow fadeIn" data-number="<?php echo esc_attr($num); ?>" data-screen="<?php echo esc_attr($twitter_id); ?>">
						<span>loading...</span>
					</div>  <!-- / .twitter-carousel -->
				</div> <!-- / .container -->
			</div>
			<!-- / #twitter -->

<?php return ob_get_clean();