Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

oxscript and oxstyle

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
hellboy81
Smarty n00b


Joined: 01 Dec 2016
Posts: 1

PostPosted: Wed Oct 25, 2017 7:54 pm    Post subject: oxscript and oxstyle Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Wed Oct 25, 2017 11:35 pm    Post subject: Reply with quote

I don't understand, what's wrong with {block append} ?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP