Privates MODX und LINUX BLOG, User Registrierung ist deaktiviert! Fragen oder Tipps? Bitte per Matrix: @jo42:freiburg.social
<?php
# e.g.: [[fromJSON? &input=`[[+extended]]` &field=`url`]]
$input = $modx->fromJSON($input);
if (!empty($input)) {
if (is_array($input)){
$output = $input[$field];
}
return $output;
}
[[fromJSON:isnot=`--`:then=`tu das`:else=`sonst das`? &input=`[[+extended]]` &field=`url`]]
[[fromJSON:isnot=`--`:then=`<a href="[[fromJSON? &input=`[[+extended]]` &field=`url`]]" target="_blank"><p class="smallfont">[[+idx]]. [[+title]]</p></a>`:else=`<p class="smallfont">[[+idx]]. [[+title]]</p>`? &input=`[[+extended]]` &field=`url`]]
[[!pdoCrumbs?
&context=`web5`
&depth=`2`
&showHome=`1`
&showAtHome=`0`
&showContainer=`1`
&tplWrapper=`@INLINE <ul class="breadcrumb">[[+output]]</ul>`
&tplCurrent=`@INLINE <li>[[+menutitle]]</li>`
&tpl=`@INLINE <li><a href="[[+link]]">[[+menutitle]]</a></li>`
&outputSeparator=``
]]
[[!pdoMenu?
&context=`web5`
&parents=`0`
&level=`2`
&tpl=`tplBS3.WF.row`
&tplOuter=`@INLINE [[+wf.wrapper]]`
&tplParentRow=`tplBS3.WF.row.parent`
&tplInnerRow=`tplBS3.WF.row.inner`
]]
[[pdoMenu?
&context=`web5`
&parents=`0`
&level=`2`
&countChildren=`1`
&tplInner=`@INLINE [[+wrapper]]`
&tplParentRow=`@INLINE <li[[+classes]]><a href="[[+link]]" [[+attributes]]>[[+menutitle]]</a> ([[+children]])</li>[[+wrapper]]`
]]
[[!pdoResources?
&context=`web3`
&parents=`[[*id]]`
&tpl=`tplBS3-2Column`
&limit=`0`
&idx=`0`
&includeContent=`1`
&showUnpublished=`0`
&includeTVs=`tvGaleriePfad`
&sortby=`menuindex`
&sortdir=`asc`
]]
[[+idx:add=`-1`]]
[[!Wayfinder?
&contexts=`web2`
&startId=`[[UltimateParent? &topLevel=`1`]]`
&level=`1`
&rowTpl=`tplBS.WF.row`
&outerTpl=`tplBS.WF.outer`
&parentRowTpl=`tplBS.WF.row.parent`
&innerRowTpl=`tplBS.WF.row.inner`
]]
[[!pdoMenu?
&context=`web2`
&parents=`[[*id:pdoField=`{"topLevel":1,"field":"id"}`]]`
&level=`1`
&tpl=`tplBS.WF.row`
&tplOuter=`tplBS.WF.outer`
&tplParentRow=`tplBS.WF.row.parent`
&tplInnerRow=`tplBS.WF.row.inner`
]]
[[!Wayfinder? &contexts=`web` &level=`1` &startId=`[[UltimateParent]]` &rowTpl=`wfRow` &hereTpl=`wfHere` &rowIdPrefix=`menu`]]
[[!pdoMenu? &context=`web` &parents=`[[*id:pdoField=`{"topLevel":1,"field":"id"}`]]` &level=`1` &tpl=`wfRow` &tplHere=`wfHere` &rowIdPrefix=`menu`]]
[[*id:is=`42`:then=`
[[!getResources:default=``?
&context=`web2`
&parents=`[[*id]]`
&tpl=`web2tplGrid`
&limit=`0`
&depth=`0`
&includeContent=`1`
&showHidden=`1`
&showUnpublished=`0`
&showHidden=`1`
&sortby=`menuindex`
&sortdir=`asc`
]]`:else=``]]
[[*id:is=`42`:then=`
[[!pdoResources:default=``?
&context=`web2`
&parents=`[[*id]]`
&tpl=`web2tplGrid`
&limit=`0`
&depth=`0`
&includeContent=`1`
&showHidden=`1`
&showUnpublished=`0`
&sortby=`menuindex`
&sortdir=`asc`
]]`:else=``]]
<div class="grid-item col-md-6">
[[+tv.Seitentitel:is=`ja`:then=`<h4>[[+longtitle:default=`[[+pagetitle]]`]]</h4>`:else=``]]
[[+introtext:notempty=`<span class="pull-right [[+introtext]]"></span>`]]
[[+content]]
</div>
[[!getResources:default=`Keine Events vorhanden`?
&context=`web`
&parents=`62`
&tpl=`tplEvents`
&limit=`20`
&sortbyTV=`tvEventDateEnd`
&sortdirTV=`asc`
&sortby=``
&includeContent=`1`
&tvFilters=`tvEventDateEnd>=[[!getStrftime? &format=`%Y-%m-%d %H:%M`]]`
]]
[[!pdoResources:default=`Keine Events vorhanden`?
&context=`web`
&parents=`62`
&depth=`0`
&tpl=`tplEvents`
&limit=`20`
&includeContent=`1`
&showUnpublished=`0`
&includeTVs=`tvEventDateEnd`
&sortby=`tvEventDateEnd`
&sortdir=`asc`
&tvFilters=`tvEventDateEnd>=[[!getStrftime? &format=`%Y-%m-%d %H:%M`]]`
]]
[[getResources?
&context=`web6`
&parents=`0`
&limit=`0`
&depth=`0`
&sortby=`menuindex`
&sortdir=`asc`
&includeTVs=`1`
&processTVs=`1`
&includeContent=`1`
&tpl=`web6tplContent`]]
[[pdoResources?
&context=`web6`
&parents=`0`
&resources=`[[pdoMenu:striptags? &context=`web6` &parents=`0` &level=`0` &tpl=`@INLINE [[+id]]`]]`
&depth=`0`
&limit=`0`
&tpl=`web6tplContent`
&includeContent=`1`
&showUnpublished=`0`
&includeTVs=`tvClass,tvClassCol,tvGaleriePfad`
&sortby=`menuindex`
&sortdir=`asc`
]]
[[!getPage:default=`Keine Events vorhanden`?
&context=`web7`
&element=`getResources`
&elementClass=`modSnippet`
&parents=`[[*id]]`
&depth=`0`
&limit=`5`
&tpl=`tplEvents`
&pageVarKey=`page`
&pageFirstTpl=`<li class="control"><a[[+classes]][[+title]] href="[[+href]]">Erste</a></li>`
&pageLastTpl=`<li class="control"><a[[+classes]][[+title]] href="[[+href]]">Letzte</a></li>`
&dateFormat=`%Y-%m-%d`
&includeContent=`1`
&showHidden=`0`
&includeTVs=`1`
&sortbyTV=`tvEventDateEnd`
&sortdirTV=`asc`
&sortby=``
&tvFilters=`tvEventDateEnd>=[[!getStrftime? &format=`%Y-%m-%d %H:%M`]]`
]]
</div>
[[!+page.nav:notempty=`
<div class="paging">
<ul class="pageList">
[[!+page.nav]]
</ul>
</div>
`]]
[[!pdoPage:default=`Keine Events vorhanden`?
&context=`web7`
&element=`pdoResources`
&parents=`[[*id]]`
&depth=`0`
&limit=`5`
&tpl=`tplEvents`
&pageLimit=`100`
&includeContent=`1`
&showUnpublished=`0`
&includeTVs=`tvEventDateEnd`
&sortby=`tvEventDateEnd`
&sortdir=`asc`
&tplPage=`@INLINE <li><a href="[[+href]]">[[+pageNo]]</a></li>`
&tplPageWrapper=`@INLINE <div class="pagination"><ul class="pageList">[[+first]][[+prev]][[+pages]][[+next]][[+last]]</ul></div>`
]]
[[!+page.nav]]
[[getResourceField? &id=`[[UltimateParent]]` &field=`menutitle`]]
[[*id:pdoField=`{"topLevel":1,"field":"menutitle"}`]]
[[!pdoField? &id=`[[*id]]` &field=`pagetitle` &top=`1`]]
[[*id:pdoField=`{"topLevel":1,"field":"id"}`:is=`42`:then=`
tu das
`:else=`
sonst tu das
`]]
[[+publishedon:date=`%Y-%m-%d`]]
[[+publishedon:strtotime:date=`%Y-%m-%d`]]
[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=all/all;
Icon=dialog-ok
Actions=checkmd5;
TryExec=md5sum
[Desktop Action checkmd5]
Name=Read md5 Checksum
Icon=dialog-ok
Exec=notify-send -i "dialog-ok" "Checksum" "`md5sum %F`"
sudo rmmod ideapad_laptop
echo "blacklist ideapad_laptop" | sudo tee -a /etc/modprobe.d/blacklist-ideapad.conf
sudo add-apt-repository ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get upgrade
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo apt-get autoclean
sudo apt-get autoremove
sudo add-apt-repository ppa:otto-kesselgulasch/gimp
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo apt-get install gimp-resynthesizer
sudo apt-get install gimp gimp-gmic gmic
sudo apt-get install gimp-plugin-registry