Пример #1
0
function tutLink($TutorialCode, $WriteTitle = TRUE, $ThumbnailSize = 'medium', $noGrid = false)
{
    $Tutorial = GetTutorials($TutorialCode);
    if (!$Tutorial) {
        return '';
    }
    $Thumbnail = $ThumbnailSize == 'medium' ? $Tutorial['Thumbnail'] : $Tutorial['LargeThumbnail'];
    $noGrid = $noGrid ? 'no-grid' : '';
    echo '<div class="video label-selector-item ' . $noGrid . '">';
    echo '<div class="image-wrap">';
    echo '<img src="' . $Thumbnail . '" alt="' . $Tutorial['Name'] . '" class = "video-img label-selector-image" />';
    ?>
    <a class="overlay" href="<?php 
    echo url('/settings/tutorials/' . $Tutorial['Code']);
    ?>
">
        <div class="buttons">
            <div class="icon-wrapper"><?php 
    echo dashboardSymbol('play');
    ?>
</div>
        </div>
        <div class="selected"></div>
    </a>
    <?php 
    echo '</div>';
    echo $WriteTitle ? wrap($Tutorial['Name'], 'div', ['class' => 'video-title title']) : '';
    echo '</div>';
}
Пример #2
0
function tutLink($TutorialCode, $WriteTitle = TRUE, $ThumbnailSize = 'medium')
{
    $Tutorial = GetTutorials($TutorialCode);
    if (!$Tutorial) {
        return '';
    }
    $Thumbnail = $ThumbnailSize == 'medium' ? $Tutorial['Thumbnail'] : $Tutorial['LargeThumbnail'];
    return anchor('<img src="' . $Thumbnail . '" alt="' . $Tutorial['Name'] . '" title="' . $Tutorial['Name'] . '" />' . ($WriteTitle ? wrap($Tutorial['Name']) : ''), 'settings/tutorials/' . $Tutorial['Code']);
}
Пример #3
0
<?php

if (!defined('APPLICATION')) {
    exit;
}
require_once $this->fetchViewLocation('helper_functions');
$Tutorials = GetTutorials();
// Figure out the current video
$CurrentTutorialCode = $this->data('CurrentTutorial');
$Keys = consolidateArrayValuesByKey($Tutorials, 'Code');
$Index = array_search($CurrentTutorialCode, $Keys);
if (!$Index) {
    $Index = 0;
}
$CurrentTutorial = val($Index, $Tutorials);
$CurrentTutorialCode = val('Code', $CurrentTutorial, '');
?>
<style type="text/css">
    div.Tutorials {
        padding: 20px;
    }

    .Video {
        margin-right: 20px;
        float: left;
    }

    .VideoInfo {
        min-height: 420px;
    }