Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:entwickler:make_your_plugin_compatible_to_admidio_4 [2020/07/10 14:18] fasseen:entwickler:make_your_plugin_compatible_to_admidio_4 [2021/01/05 14:15] (current) fasse
Line 17: Line 17:
  
 ==== Replaced functions ==== ==== Replaced functions ====
-$page->hideThemeHtml(); is replaced by $page->setInlineMode();+''$page->hideThemeHtml();'' is replaced by ''$page->setInlineMode();'' 
 + 
 +''$page->hideMenu();'' is replaced by ''$page->setInlineMode();'' 
 + 
 +''safeurl('your-url')'' is replaced by ''SecurityUtils::encodeUrl('your-url')'' 
 + 
 +==== Changed methods ==== 
 +The HtmlPage constructor has become a new necessary parameter: 
 +<code php>$page = new HtmlPage('My Headline'); 
 +// must now be 
 +$page = new HtmlPage('admidio-page-id', 'My Headline');</code> 
 + 
 +New method to open the modal window. Just add a class and a data-href: 
 +<code html><a class="openPopup" href="javascript:void(0);" data-href="http://www.example.com">My Link to a modal window</a></code> 
 + 
 +==== Changed constants ==== 
 +''FIELD_DEFAULT'' is replaced by ''HtmlForm::FIELD_DEFAULT'' 
 + 
 +''FIELD_REQUIRED'' is replaced by ''HtmlForm::FIELD_REQUIRED'' 
 + 
 +''FIELD_DISABLED'' is replaced by ''HtmlForm::FIELD_DISABLED'' 
 + 
 +''FIELD_READONLY'' is replaced by ''HtmlForm::FIELD_READONLY'' 
 + 
 +''FIELD_HIDDEN'' is replaced by ''HtmlForm::FIELD_HIDDEN''
  • en/entwickler/make_your_plugin_compatible_to_admidio_4.1594383486.txt.gz
  • Last modified: 2020/07/10 14:18
  • by fasse