			</div>
		<?php if(isset($buttons) && count($buttons) > 0):?>
		<div class="modal-footer">
			<?php foreach($buttons as $button):?>
			<?php $button = (object) $button;?>
			<button type="<?php if(isset($button->type)): echo $button->type;else: echo "button"; endif;?>" class="btn <?php if(isset($button->classType)): echo $button->classType." "; else: echo "btn-default  ";endif; if(isset($button->size)): echo $button->size." "; endif;if(isset($button->classes)):echo $button->classes; endif;   ?> " style="<?php if(isset($button->style)): echo $button->style; endif;?>" <?php if(isset($button->events) && count($button->events)>0): foreach($button->events as $event => $action): echo $event.'="'.$action.'"'; endforeach;endif;?>>
				<?php if(isset($button->icon)):?>
					<i class="fa <?php echo $button->icon;?>"></i>
				<?php endif;?>
				<?php if(isset($button->caption)) echo $button->caption;?>
			</button>
			<?php endforeach;?>
		</div>
		<?php endif;?>
	</div>
</div>