Exemple #1
0
                                 src="<?= base_url() . 'uploads/files/' . get_thumbnail(get_file_info_by_id($id, 'fileurl')) ?>">
                        </a>

                        <?php
                        break;
                    //videos
                    case '2':
                        ?>
                        <a target="_blank" href="<?= get_file_info_by_id($id, 'fileurl') ?>">See video</a>
                        <?php
                        break;
                    //others
                    case '3':
                        ?>
                        <a href="<?= base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/download/' . get_file_info_by_id($id, 'fileurl') ?>"><i
                                class="fa fa-download"></i> <?= get_file_info_by_id($id, 'fileurl') ?>
                        </a>
                        <?php
                        break;
                }
                ?>


            </div>
        </div>

        <div class="form-group">
            <label for="category" class="col-sm-3 control-label">Share with</label>

            <div class="col-sm-6">
Exemple #2
0
                                                                case '2':
                                                                    //if internet is on

                                                                        ?>
                                                                    <a target="_blank"
                                                                       href="<?= get_file_info_by_id($trend['item_id'],'file_url') ?>">See
                                                                        video</a>
                                                                    <?php


                                                                    break;
                                                                //others
                                                                case '3':
                                                                    ?>
                                                                    <a href="<?= base_url() . $this->uri->segment(1) . '/' . $this->uri->segment(2) . '/download/' . get_file_info_by_id($trend['item_id'],'file_url') ?>"><i
                                                                            class="fa fa-download"></i> <?= get_file_info_by_id($trend['item_id'],'title')?>
                                                                    </a>
                                                                    <?php
                                                                    break;
                                                            }
                                                            ?>
                                                        </div>
                                                        <div class="col-md-9">
                                                            <span><?=get_event_info($trend['item_id'],'title')?></span><br>
                                                            <small><b>From:</b> <?=custom_date_format('d / M ',$trend['start_date'])?> <br><b>To:</b> <?=custom_date_format('d / M ',$trend['end_date'])?></small>

                                                        </div>


                                                    </label>
                                                </div>