$video_code = ap_html5_video_code($bg_video_loop, 'data-id="' . $module_count . '" data-iw="' . $background_image['width'] . '" data-ih="' . $background_image['height'] . '" class="video_loop video_replacement_video center_bg_layer" preload="auto" loop'); echo $video_code; } } /* ---------------------------------------------- long video + play button ---------------------------------------------- */ if (isset($long_video_file['url'])) { echo '<div class="video_play_container">'; echo '<div class="video_play_outer">'; echo '<div data-playparent="' . $module_count . '" class="video_play clickable noselect opacity_fade"></div>'; echo '</div>'; echo '</div>'; echo '<div data-playparent="' . $module_count . '" class="long_video hidden"></div>'; // copy contents here later via javascript $video_code = ap_html5_video_code($long_video_file, 'preload="auto" autoplay="autoplay" controls'); echo '<textarea class="video_code hidden">' . $video_code . '</textarea>'; } echo '</div>'; // end cm_vid_img_bg_w_txt_inner /* ---------------------------------------------- Textbox (desktop) & mobile text ---------------------------------------------- */ if ($text != "") { echo '<div data-offy="0" data-center="1" data-pinmode="1" data-pinparent="' . $module_count . '" class="pinned_textbox_outer do_pin">'; echo '<div class="textbox">' . $text . '</div>'; echo '</div>'; } if ($text != "") { echo '<div class="mobile_textbox">' . $text . '</div>'; }
echo '<div class="slide_container">'; //echo '<div class="slide_container_inner">'; echo '<div class="big_numbers_attached"><span class="sl_num_current">' . $sl_amount . '</span>/' . $total_planned_amount . '</div>'; echo '<div data-parent_id="' . $module_count . '" class="royalSlider rsDefault">'; for ($slide_cc = 0; $slide_cc < $sl_amount; $slide_cc++) { if (isset($sl_images[$slide_cc]['url'])) { //echo '<div class="big_numbers_attached">'.count($slides).'/'.$total_planned_amount.'</div>'; $has_video = isset($sl_videos[$slide_cc]['url']) ? 1 : 0; //$has_video=0; // todo: REMOVEE!! $img_class = $has_video ? "video_replacement vr_do_remove" : ""; $img_src = $has_video ? BLANK_1609 : $sl_images[$slide_cc]['url']; echo '<div>'; echo '<img data-src="' . $sl_images[$slide_cc]['url'] . '" data-rsw="' . $sl_images[$slide_cc]['width'] . '" data-rsh="' . $sl_images[$slide_cc]['height'] . '" class="rsImg opacity_fade ' . $img_class . ' faded_out load_fade" src="' . $img_src . '" data-rsTmb="' . $sl_thumbs[$slide_cc]['sizes']['post-thumbnail'] . '" alt="" />'; if ($has_video) { echo '<div class="aspect1609 video_replacement_video">'; $video_code = ap_html5_video_code($sl_videos[$slide_cc], 'data-id="' . $module_count . '" data-playparent="' . $module_count . '" data-sl_count="' . $slide_cc . '" data-iw="' . $sl_images[$slide_cc]['width'] . '" data-ih="' . $sl_images[$slide_cc]['height'] . '" class="video_loop in_slideshow video_loop_nr' . $slide_cc . '" preload="auto" loop'); echo $video_code; echo '</div>'; } echo '</div>'; } } echo '</div>'; //echo '</div>'; echo '</div>'; /* ------------------------------------------- Mobile textbox ------------------------------------------- */ echo '<div class="mobile_textbox">'; echo '<div class="mobile_big_numbers"><span class="sl_num_current">' . $sl_amount . '</span>/' . $total_planned_amount . '</div>'; echo '<div class="mobile_headline">' . $sl_first_headline . '</div>';
Elements for each module / top ------------------------------------------------------------- */ include THEME_ABS_PATH . '/incl/incl-module-common-top.php'; /* ------------------------------------------------------------- Module content ------------------------------------------------------------- */ $has_video = isset($bg_video_loop['url']) ? 1 : 0; if ($background_image) { echo '<div data-id="' . $module_count . '" data-iw="' . $background_image['width'] . '" data-ih="' . $background_image['height'] . '" class="center_bg_layer" style="background-color:' . $background_color . '">'; $img_class = $has_video ? "video_replacement" : ""; $img_src = $has_video ? BLANK_1609 : $background_image['url']; echo '<img data-src="' . $background_image['url'] . '" class="opacity_fade ' . $img_class . ' faded_out load_fade" src="' . $img_src . '">'; echo '</div>'; } if ($has_video) { $video_code = ap_html5_video_code($bg_video_loop, 'data-id="' . $module_count . '" data-iw="' . $background_image['width'] . '" data-ih="' . $background_image['height'] . '" class="video_loop video_replacement_video center_bg_layer" preload="auto" loop'); echo $video_code; } if ($image_on_top) { $margin_left = round($image_on_top_width / 2); // internet explorer needs it.. echo '<div class="center_img_container" style="margin-left:' . $margin_left . '%;width:' . $image_on_top_width . '%">'; echo '<div class="center_img">'; echo '<img src="' . $image_on_top['url'] . '">'; echo '</div>'; echo '</div>'; } /* ------------------------------------------------------------- Elements for each module ------------------------------------------------------------- */ include THEME_ABS_PATH . '/incl/incl-module-common.php';
Five Designers (for header) ------------------------------------------------------------- */ } else { if ($type == 5) { $image = $c['5_designers_image']; $video_loop = $c['5_designers_video_loop']; $designers = $c['5_designers']; echo '<div class="content_block a_type5">'; if ($image) { echo '<div class="content_block_wrap">'; echo '<img class="opacity_fade faded_out load_fade" src="' . $image['sizes']['large'] . '">'; echo '</div>'; } if (isset($video_loop['url'])) { echo '<div class="content_block_wrap">'; $video_code = ap_html5_video_code($video_loop, 'data-id="' . $module_count . '" data-playparent="' . $module_count . '" data-iw="' . $image['width'] . '" data-ih="' . $image['height'] . '" class="video_loop" preload="auto" loop'); echo $video_code; echo '</div>'; } if ($designers) { echo '<div class="designer_list">'; echo '<div class="designer_list_inner clearfix">'; $num = 1; foreach ($designers as $d) { $name = $d['designers_name']; $link = $d['designers_link']; $date = $d['date']; // todo: link ! echo '<div class="designer_list_item">'; echo '<div class="designer_num">' . $num . '</div>'; echo '<div class="designer_name">' . str_replace(' ', '<br>', $name) . '</div>';