Пример #1
0
<?php

$folder = dirname(dirname(__FILE__));
require_once $folder . "/commun/navbar.php";
$back_url = site_url('/storyboard/my_storyboards');
if (!empty($op) && $op == "view_") {
    $id = $obj->id;
    $guid = id_to_guid($id);
    $back_url = site_url('/storyboard/all');
}
$user_avatar = avatar_url($sb_user);
?>
<div class="page-container row-fluid">
  <?php 
require_once $folder . "/commun/main-menu.php";
?>
  <div class="page-content storyboard_container">


  	<div class="storyboard_view" class="row">	
      <div class="clearfix"></div>
      
      <div class="content" style="padding-top:65px;">

        <div class="page-title" style="margin-bottom:0;">
            <a href="<?php 
echo $back_url;
?>
"><i class="icon-custom-left"></i></a>
          <?php 
if ($op == "edit_") {
Пример #2
0
<?php

foreach ($cards as $k => $card) {
    $card_type = $card->type;
    $guid = id_to_guid($card->id) . md5('idaciti');
    $date = date_create($card->creation_time);
    echo '<li class="deck_card ' . $card->open_type . '" id="card_' . $card->id . '">';
    echo img($card->type . '.png', $card->type);
    echo '  <h4 data-title="' . $card->name . '">' . cut_string($card->name, 25) . '</h4>
            <p class="description" data-desc="' . str_replace('"', '\\"', strip_tags($card->description)) . '">' . cut_string(strip_tags($card->description), 50) . '</p>
            <p class="card_footer">Created: ' . date_format($date, "m/d/Y") . '<br/><span class="author">' . $card->first_name . ' ' . $card->last_name . '</span></p>';
    echo '<div class="deck_card_action">
            <a href="#" class="select_deck_card"><i class="fa fa-plus-circle"></i></a> 
            <a href="#" class="preview_deck_card"  data-target="#largeModal" data-toggle="modal" data-remote="' . site_url('card/embed/' . $guid) . '" ><i class="fa fa-info-circle"></i></a>
            <input type="hidden" name="deck_card_' . $k . '" class="deck_card_id" value="' . $card->id . '" />
            <input type="hidden" name="deck_card_guid_' . $k . '" class="deck_card_guid" value="' . $guid . '" />
			<input type="hidden" name="deck_card_type" class="deck_card_type" value="' . $card_type . '" />
          </div>';
    echo '</li>';
}
Пример #3
0
echo '<li>
                    <div id="start_frame" class="template_' . $obj->start_end_template . '">
                      <img class="full_width auto_height" src="' . img_url('empty_template_start_' . $obj->start_end_template . '.png') . '" />
                      <span class="title">' . $obj->title . '</span>
                      <div class="description">' . $obj->description . '</div>
                      <img src="' . $obj->start_image . '" class="start_image" />
                    </div>
                  </li>';
$count = 1;
foreach ($obj->slides as $k => $slide) {
    $content_to_display = '';
    $cssBorderClass = 'border ';
    echo '<li class="border ' . $slide->type . '">';
    if ($slide->type == 'card') {
        $rand = rand(0, 100);
        $src = site_url('card/embed/' . id_to_guid($slide->content) . md5('idaciti')) . '/sid/' . $obj->id . '/' . $rand;
        $content_to_display = '<div class="card_iframe"><iframe src="' . $src . '" frameborder="0" id="cardframe_' . $count . '" ></iframe></div>';
        //$content_to_display = '<input type="hidden" class="src" value="'.$src.'" />';
    } else {
        if ($slide->type == 'indicator') {
            $src = '';
            foreach ($indicators as $k => $ind) {
                if ($ind->id == $slide->content) {
                    $src = $ind->link;
                }
            }
            $content_to_display = '<iframe src="' . $src . '" frameborder="0" ></iframe>';
            //$content_to_display = '<input type="hidden" class="src" value="'.$src.'" />';
        } else {
            if ($slide->type == 'media') {
                if (is_img($slide->content)) {
 function guid_to_id($guid)
 {
     //get the id
     $id_length = subStr($guid, 10, 1);
     $hexedId = substr($guid, 10 + 1, $id_length);
     $id = hexdec($hexedId);
     // $guid might be longer than $check, so only compare up to $check len
     // which substr_compare gives us
     $check = id_to_guid($id);
     $temp = substr($guid, 0, strlen($check));
     if (strcmp($check, $temp) == 0) {
         return $id;
     }
     return false;
 }
Пример #5
0
        $guid_line = '';
        $card_type = '';
        if ($slide->type == 'card') {
            foreach ($all_cards as $card) {
                if ($card->id == $slide->content) {
                    $card_type = $card->type;
                }
            }
            $guid = id_to_guid($slide->content) . md5('idaciti');
            $guid_line = '<input type="hidden" class="guid" value="' . $guid . '">';
            $tmp_img = '<img src="' . img_url($card_type . '.png') . '" id="temp_img" style="position: absolute; width: 120px; height: 102px;" class="pos_' . $slide->template . '">';
        } else {
            // content sometimes holds a 'fake' id of the slide WTF?
            // not sure where/how it is generated
            // this is appending idaciti to the end of the 'guid'
            $guid = id_to_guid($slide->id);
            $guid_line = '<input type="hidden" class="guid" value="' . $guid . '">';
        }
        echo '<div id="order_' . $k . '" class="slide_thumb created_thumb">
                            <a href="#"> 
                              <img width="180" height="116" alt="' . $slide->type . '" src="' . img_url('template_' . $slide->type . '_' . $slide->template . '.png') . '">' . $tmp_img . '
                            </a>
                            <input type="hidden" class="template_type" value="' . $slide->type . '">
                            <input type="hidden" class="template_number" value="' . $slide->template . '">
                            <input type="hidden" class="content" value="' . $slide->content . '">
                            <input type="hidden" class="title" value="' . $slide->title . '">
							<input type="hidden" class="stylechart" value="' . $card_type . '">
                            <input type="hidden" class="description" value="' . htmlentities($slide->description) . '">
                            <input type="hidden" class="new_title" value="' . $slide->title . '">
                            <input type="hidden" class="wordtext" value="' . $slide->wc_words . '">
                            <input type="hidden" class="wc_type" value="' . $slide->wc_type . '">