-
-
+$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';
- modules->Programs()->listAllNewestFirst($filter);
+?>
- echo '
-
-
-
-
\ No newline at end of file
diff --git a/www/pages/programs_view.php b/www/pages/programs_view.php
index a5e1a44..91b98bc 100644
--- a/www/pages/programs_view.php
+++ b/www/pages/programs_view.php
@@ -1,123 +1,101 @@
-
-
-
-
- My programs
' . "\n";
- foreach ($allprograms as $prog)
- {
- $uilang = '';
- foreach (explode('|', $prog['ui_language']) as $lang) $uilang .= '';
+' . "\n";
+
- ?>
+
+ echo '
' . "\n";
+
+ ?>
My programs
' . "\n";
-
+ foreach ($allprograms as $prog)
+ {
+ $uilang = '';
+ foreach (explode('|', $prog['ui_language']) as $lang) $uilang .= '';
-
+ echo '';
+ echo ' ';
+ echo ' ';
+ echo '
';
+ echo ' ';
+ echo '
';
+ echo '' . "\n";
+ }
+ echo '' . htmlspecialchars($prog['name']) . '
';
+ echo ' ' . htmlspecialchars($prog['short_description']) . '
';
+ echo ' ';
+ echo '
';
+ echo ' '.$prog['add_date'].'
';
+ echo ' '.$prog['prog_language'].'
';
+ echo ' '.$uilang.'
';
+ echo ' '.$prog['category'].'
';
+ echo '
-
+parameter['id'];
-
+$prog = $SITE->modules->Programs()->getProgramByInternalName($id);
+if ($prog === null) { $FRAME_OPTIONS->setForced404("Program not found"); return; }
-
-
-
-
-
\ No newline at end of file
+$FRAME_OPTIONS->title = $prog['name'];
+$FRAME_OPTIONS->canonical_url =$prog['url'];
+$FRAME_OPTIONS->activeHeader = 'programs';
-
+ +
+if ($prog['has_extra_images']) $FRAME_OPTIONS->addScript('/data/javascript/ms_basic.js', true);
+?>
-
+
+
-
+
+
+
-
+
-
+
-
-
+
-
+
-
+
+ Name:
-
+
-
-
-
-
-
+ Language:
-
+
-
- License:
- '.$prog['license'].'' ?>
-
+
- Language:
+
+
+ License:
+ modules->Programs()->getLicenseUrl($prog['license']).'">'.$prog['license'].'' ?>
- +
Category:
+
-
+
- Date:
+
+
+
text(Programs::getProgramDescription($prog));
+ foreach ($SITE->modules->Programs()->getURLs($prog) as $xurl)
+ {
+ echo '';
+ echo '';
+ echo ''.$xurl['caption'].'';
+ echo '';
+ }
?>
-
+
+ modules->Programs()->convertLanguageToFlag($lang).'" title="'.$lang.'" alt="'.$lang[0].'" />' . "\n";
+ }
+ ?>
+
+ + +
+ renderMarkdown($SITE->modules->Programs()->getProgramDescription($prog)); ?>
+
+
+