2018-01-04 16:55:26 +01:00
|
|
|
<?php
|
2020-01-16 11:34:01 +01:00
|
|
|
require_once (__DIR__ . '/../internals/website.php');
|
2018-01-04 16:55:26 +01:00
|
|
|
|
2020-01-16 11:34:01 +01:00
|
|
|
/** @var PageFrameOptions $FRAME_OPTIONS */ global $FRAME_OPTIONS;
|
|
|
|
/** @var URLRoute $ROUTE */ global $ROUTE;
|
|
|
|
/** @var Website $SITE */ global $SITE;
|
2018-01-04 16:55:26 +01:00
|
|
|
?>
|
|
|
|
|
2020-01-16 11:34:01 +01:00
|
|
|
<?php
|
|
|
|
$filter = $ROUTE->parameter['categoryfilter'];
|
2018-01-04 16:55:26 +01:00
|
|
|
|
2020-01-16 11:34:01 +01:00
|
|
|
$FRAME_OPTIONS->title = 'Programs';
|
|
|
|
$FRAME_OPTIONS->canonical_url = ($filter === '') ? ('https://www.mikescher.com/programs') : ('https://www.mikescher.com/programs/cat/' . $filter);
|
|
|
|
$FRAME_OPTIONS->activeHeader = 'programs';
|
2018-01-04 16:55:26 +01:00
|
|
|
|
|
|
|
|
2020-01-16 11:34:01 +01:00
|
|
|
$allprograms = $SITE->modules->Programs()->listAllNewestFirst($filter);
|
|
|
|
?>
|
2018-01-04 16:55:26 +01:00
|
|
|
|
2020-01-16 11:34:01 +01:00
|
|
|
<div class="blockcontent">
|
2018-01-04 16:55:26 +01:00
|
|
|
|
2020-01-16 11:34:01 +01:00
|
|
|
<div class="contentheader"><h1>My programs</h1><hr/></div>
|
2018-01-04 16:55:26 +01:00
|
|
|
|
2020-01-16 11:34:01 +01:00
|
|
|
<?php
|
2018-01-04 16:55:26 +01:00
|
|
|
|
2020-01-16 11:34:01 +01:00
|
|
|
echo '<div class="prgl_parent">' . "\n";
|
2018-01-04 16:55:26 +01:00
|
|
|
|
2020-01-16 11:34:01 +01:00
|
|
|
foreach ($allprograms as $prog)
|
|
|
|
{
|
|
|
|
$uilang = '';
|
2020-12-21 06:03:54 +01:00
|
|
|
foreach (explode_allow_empty('|', $prog['ui_language']) as $lang) $uilang .= '<img src="' . $SITE->modules->Programs()->convertLanguageToFlag($lang).'" alt="'.$lang.'" />';
|
2018-01-04 16:55:26 +01:00
|
|
|
|
2020-01-16 11:34:01 +01:00
|
|
|
echo '<a class="prgl_elem" href="'.$prog['url'].'">';
|
|
|
|
echo ' <div class="prgl_elem_left">';
|
|
|
|
echo ' <img src="' . $prog['preview_url'] . '" alt="Thumbnail ' . $prog['name'] . '" />';
|
|
|
|
echo ' </div>';
|
|
|
|
echo ' <div class="prgl_elem_right">';
|
|
|
|
echo ' <div class="prgl_elem_title">' . htmlspecialchars($prog['name']) . '</div>';
|
|
|
|
echo ' <div class="prgl_elem_sdesc">' . htmlspecialchars($prog['short_description']) . '</div>';
|
|
|
|
echo ' <div class="prgl_elem_info">';
|
|
|
|
echo ' <div class="prgl_elem_subinfo"><span class="prgl_elem_subinfo_caption">Date:</span><span class="prgl_elem_subinfo_data">'.$prog['add_date'].'</span></div>';
|
|
|
|
echo ' <div class="prgl_elem_subinfo"><span class="prgl_elem_subinfo_caption">Language:</span><span class="prgl_elem_subinfo_data">'.$prog['prog_language'].'</span></div>';
|
|
|
|
echo ' <div class="prgl_elem_subinfo"><span class="prgl_elem_subinfo_caption">UI Language:</span><span class="prgl_elem_subinfo_data">'.$uilang.'</span></div>';
|
|
|
|
echo ' <div class="prgl_elem_subinfo"><span class="prgl_elem_subinfo_caption">Category:</span><span class="prgl_elem_subinfo_data">'.$prog['category'].'</span></div>';
|
|
|
|
echo ' </div>';
|
|
|
|
echo ' </div>';
|
|
|
|
echo '</a>' . "\n";
|
|
|
|
}
|
|
|
|
echo '</div>' . "\n";
|
2018-01-04 16:55:26 +01:00
|
|
|
|
2020-01-16 11:34:01 +01:00
|
|
|
?>
|
2018-01-04 16:55:26 +01:00
|
|
|
|
|
|
|
</div>
|