= $cb_checked ?>
onClick="STUDIP.Plus.setModule.call(this);">
if (isset($info['icon'])) : ?>
/* TODO: Plugins should use class "Icon" */ ?>
if (is_string($info['icon'])) : ?>
">
else: ?>
= $info['icon']->asImg(['class' => 'plugin_icon text-bottom', 'alt' => '']) ?>
endif ?>
endif ?>
if (isset($info['descriptionshort'])) : ?>
foreach (explode('\n', $info['descriptionshort']) as $descriptionshort) { ?>
= htmlReady($descriptionshort) ?>
} ?>
endif ?>
if (!isset($info['descriptionshort'])) : ?>
if (isset($info['summary'])) : ?>
= htmlReady($info['summary']) ?>
elseif (isset($info['description'])) : ?>
= htmlReady($info['description']) ?>
else: ?>
= _("Keine Beschreibung vorhanden.") ?>
endif ?>
endif ?>
if ($plugin_activated) : ?>
addLink(
$controller->url_for('/edittool/' . $key),
_('Optionen bearbeiten'),
Icon::create('edit', Icon::ROLE_CLICKABLE, ['size' => 20]),
['data-dialog' => 'size=auto']
);
if (method_exists($plugin, 'deleteContent')) {
$actionMenu->addLink(
$controller->url_for('/index', ['deleteContent' => 1, 'name' => $key]),
_('Inhalte löschen'),
Icon::create('trash', Icon::ROLE_CLICKABLE, ['size' => 20])
);
}
?>
= $actionMenu->render() ?>
endif ?>
if ($_SESSION['plus']['View'] == 'openall' || !isset($_SESSION['plus'])) { ?>
if (isset($info['screenshot']) || isset($info['screenshots'])) :
if(isset($info['screenshots'])){
$title = $info['screenshots']['pictures'][0]['title'];
$source = $info['screenshots']['path'].'/'.$info['screenshots']['pictures'][0]['source'];
} else {
$fileext = end(explode(".", $info['screenshot']));
$title = str_replace("_"," ",basename($info['screenshot'], ".".$fileext));
$source = $info['screenshot'];
}
?>
"
data-lightbox="= $pluginname ?>" data-title="= $title ?>">
"
alt="= $pluginname ?>"/>
if (isset($info['additionalscreenshots']) || (isset($info['screenshots']) && count($info['screenshots']) > 1) ) {
?>
if (isset($info['screenshots'])){
$counter = count($info['screenshots']['pictures']);
$cstart = 1;
} else {
$counter = count($info['additionalscreenshots']);
$cstart = 0;
} ?>
for ($i = $cstart; $i < $counter; $i++) {
if (isset($info['screenshots'])){
$title = $info['screenshots']['pictures'][$i]['title'];
$source = $info['screenshots']['path'].'/'.$info['screenshots']['pictures'][$i]['source'];
} else {
$fileext = end(explode(".", $info['additionalscreenshots'][$i]));
$title = str_replace("_"," ",basename($info['additionalscreenshots'][$i], ".".$fileext));
$source = $info['additionalscreenshots'][$i];
}
?>
"
data-lightbox="= $pluginname ?>"
data-title="= $title ?>">
"
alt="= $pluginname ?>"/>
} ?>
} ?>
endif ?>
if (isset($info['keywords'])) : ?>
foreach (explode(';', $info['keywords']) as $keyword) {
echo '' . htmlReady($keyword) . ' ';
}?>
endif ?>
if (isset($info['descriptionlong'])) : ?>
foreach (explode('\n', $info['descriptionlong']) as $descriptionlong) { ?>
= htmlReady($descriptionlong) ?>
} ?>
endif ?>
if (!isset($info['descriptionlong']) && isset($info['summary'])) : ?>
if (isset($info['description'])) : ?>
= htmlReady($info['description']) ?>
else: ?>
= _("Keine Beschreibung vorhanden.") ?>
endif ?>
endif ?>
if (isset($info['homepage'])) : ?>
= _('Weitere Informationen:') ?>
= htmlReady($info['homepage']) ?>
endif ?>
if (isset($info['helplink'])) : ?>
...mehr
endif ?>
} ?>