|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
hellboy81 Smarty n00b
Joined: 01 Dec 2016 Posts: 1
|
Posted: Wed Oct 25, 2017 7:54 pm Post subject: oxscript and oxstyle |
|
|
Looking for lean alternatives for this functions w/o OXID dependencies:
Code: |
* Add [{oxscript add="oxid.popup.load();"}] to add script call.
* Add [{oxscript include="oxid.js"}] to include local javascript file.
* Add [{oxscript include="oxid.js?20120413"}] to include local javascript file with query string part.
* Add [{oxscript include="http://www.oxid-esales.com/oxid.js"}] to include external javascript file.
*
* IMPORTANT!
* Do not forget to add plain [{oxscript}] tag before closing body tag, to output all collected script includes and calls.
|
https://github.com/OXID-eSales/oxideshop_ce/blob/master/source/Core/Smarty/Plugin/function.oxscript.php
Code: |
* Name: oxstyle
* Purpose: Collect given css files. but include them only at the top of the page.
*
* [b]Add [{oxstyle include="oxid.css"}] to include local css file.[/b]
* Add [{oxstyle include="oxid.css?20120413"}] to include local css file with query string part.
* Add [b][{oxstyle include="http://www.oxid-esales.com/oxid.css"}] [/b]to include external css file.
*
* IMPORTANT!
* Do not forget to add plain [{oxstyle}] tag where you need to output all collected css includes. |
https://github.com/OXID-eSales/oxideshop_ce/blob/master/source/Core/Smarty/Plugin/function.oxstyle.php |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Wed Oct 25, 2017 11:35 pm Post subject: |
|
|
I don't understand, what's wrong with {block append} ? |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|