|
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 |
maker5 Smarty n00b
Joined: 23 Dec 2012 Posts: 1
|
Posted: Sun Dec 23, 2012 6:10 pm Post subject: Problem z wyswietlaniem animacji uzywajac SMARTY |
|
|
Witam
mój problem jest następujący. Na naszej stronie chciałem wrzucić animację cu3er, popularny slider obrazków.
Na stronie używamy silnika SMARTY i w nim pojawia się problem przy próbie odtworzenia animacji.
http://www.gokbabimost.pl
(teraz usunąłem poniższe dwa warunki które tworzą problem)
Oto kod animacji
Code: | <script type="text/javascript">
var flashvars = {};
flashvars.xml = "Scripts/config_cu3er.xml";
flashvars.font = "font.swf";
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("misc/cu3er.swf", "cu3er-container", "585", "356", "9", "misc/expressInstall.swf", flashvars, attributes);
</script> |
a oto błąd który się pojawia
Fatal error: Smarty error: [in default_public/cu3er.php line 10]: syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 446) in /home/srw_gokbabimost/gokbabimost.pl/lib/Smarty/Smarty.class.php on line 1092
jeśli usunę te dwa znaczniki
Code: | var flashvars = {};
var attributes = {}; |
to błędu nie ma ale wtedy nie działa animacja a znów z tymi warunkami powyżej jest błąd jakby silnik SMARTY nie rozpoznawał takich warunków ?
A jesli dodam "literal" to błędu nie ma ale animacja się nie pokazuje, np.
Code: | <script type="text/javascript">
{literal}
var flashvars = {};
flashvars.xml = "Scripts/config_cu3er.xml";
flashvars.font = "font.swf";
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("misc/cu3er.swf", "cu3er-container", "585", "356", "9", "misc/expressInstall.swf", flashvars, attributes);
{/literal}
</script> |
oto część kodu SMARTY gdzie ma wpisane różne warunki, może tu jakoś trzeba byłoby dopisać te dwa co ?
Smarty_Compiler.class.php
Code: | class Smarty_Compiler extends Smarty {
// internal vars
/**#@+
* @access private
*/
var $_folded_blocks = array(); // keeps folded template blocks
var $_current_file = null; // the current template being compiled
var $_current_line_no = 1; // line number for error messages
var $_capture_stack = array(); // keeps track of nested capture buffers
var $_plugin_info = array(); // keeps track of plugins to load
var $_init_smarty_vars = false;
var $_permitted_tokens = array('true','false','yes','no','on','off','null');
var $_db_qstr_regexp = null; // regexps are setup in the constructor
var $_si_qstr_regexp = null;
var $_qstr_regexp = null;
var $_func_regexp = null;
var $_reg_obj_regexp = null;
var $_var_bracket_regexp = null;
var $_num_const_regexp = null;
var $_dvar_guts_regexp = null;
var $_dvar_regexp = null;
var $_cvar_regexp = null;
var $_svar_regexp = null;
var $_avar_regexp = null;
var $_mod_regexp = null;
var $_var_regexp = null;
var $_parenth_param_regexp = null;
var $_func_call_regexp = null;
var $_obj_ext_regexp = null;
var $_obj_start_regexp = null;
var $_obj_params_regexp = null;
var $_obj_call_regexp = null;
var $_cacheable_state = 0;
var $_cache_attrs_count = 0;
var $_nocache_count = 0;
var $_cache_serial = null;
var $_cache_include = null;
var $_strip_depth = 0;
var $_additional_newline = "\n";
/**#@-*/
/**
* The class constructor.
*/
function Smarty_Compiler()
{ |
proszę o pomoc |
|
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
|