Exemplo n.º 1
0
    foreach ($slide_images as $img) {
        ?>
                                                    <li>
                                                        <a href="#" data-id="<?php 
        echo $img->id;
        ?>
">
                                                            <span class="media_edit post_edit"> <i class="fa fa-edit"></i></span>
                                                            <span class="media_trash"> <i class="fa fa-times"></i></span>
                                                            <img src="<?php 
        echo upload_dir() . $img->post_content;
        ?>
" alt="">
                                                        </a>
                                                        <?php 
        $data = seperate_slide_item($img->comment);
        ?>
                                                        <div class="slide_modal">
                                                            <h3 class="modal_title"> Slide Settings </h3>
                                                            <!-- /.modal_title -->
                                                            <div class="modal_body">
                                                                <form action="">
                                                                    <p>
                                                                        <label for="slideTitle"> Slide Title</label>
                                                                        <input type="text" class="form-control" value="<?php 
        echo isset($data['slide_title']) ? $data['slide_title'] : '';
        ?>
" placeholder="Slide Title" name="slide_title">
                                                                    </p>
                                                                    <p>
                                                                        <label for="slideTitle"> Sub Title</label>
Exemplo n.º 2
0
<?php

/**
 * Customer slide
 */
$post = new posts();
$top_slide = $post->get_post_by_status('pert_slide', 'right');
?>
<div id="sponser-slide" class="owl-carousel owl-theme">
    <?php 
if ($top_slide != NULL) {
    foreach ($top_slide as $slide) {
        $data = seperate_slide_item($slide->comment);
        ?>
            <div class="item">
                <div class="item-message">
                    <div class="message-container arrow_box">
                        <div class="item-title"> <?php 
        echo isset($data['slide_title']) ? $data['slide_title'] : 'Please fill title';
        ?>
 <span class="close-message"> X </span></div>
                        <!-- /.item-title -->
                        <div class="item-message-body ">
                            <div class="part-one"> <?php 
        echo isset($data['slide_sub_title']) ? $data['slide_sub_title'] : 'Please fill sub title';
        ?>
 </div>
                            <div class="part-two number"> <?php 
        echo isset($data['number']) ? $data['number'] : '520';
        ?>
  </div>