Diskuse

Téma: Pridanie nacitavanych CSS do _templateHead()

Zdravim,

Hladal som chvilu, ale riesenie som nenasiel zatial... 😞
Potrebujem pridat do _templateHead()
tieto polozky <link rel="stylesheet" href="style/nivo-slider.css" type="text/css" />
<link rel="stylesheet" href="themes/default/default.css" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js" type="text/javascript"></script>
<script src="js/jquery.nivo.slider.pack.js" type="text/javascript"></script>
vo functions_template.php som to skusil naeditovat to tak ako tam uz boli defaultne , zial mi to nefunguje lebo z PHP som jelen a asi mam niekde zly syntax, takze by som potreboval radu skusenejsieho kto sa s tym uz zaoberal vopred dakujem
takto to mam nahodene a nejde vobec spustit kvazi:echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="' . (defined('_indexOutput_keywords') ? _indexOutput_keywords : _keywords) . '" />
<meta name="description" content="' . (defined('_indexOutput_description') ? _indexOutput_description : _description) . '" />' . ((_author !== '') ? '
<meta name="author" content="' . _author . '" />' : '') . '
<meta name="generator" content="SunLight CMS ' . _systemversion . ' ' . SL::$states[_systemstate] . _systemstate_revision . '" />
<meta name="robots" content="index, follow" />' . _extend('buffer', 'tpl.head.meta') . '
<link href="' . _indexroot . 'plugins/templates/' . _template . '/style/system.css?' . _cacheid . '" type="text/css" rel="stylesheet" />
<link href="' . _indexroot . 'plugins/templates/' . _template . '/style/layout.css?' . _cacheid . '" type="text/css" rel="stylesheet" />
<link href="' . _indexroot . 'plugins/templates/' . _template . '/style/nivo-slider.css?' . _cacheid . '" type="text/css" rel="stylesheet" />
<link href="' . _indexroot . 'plugins/templates/' . _template . '/themes/default/default.css?' . _cacheid . '" type="text/css" rel="stylesheet" />
<script type="text/javascript">/* <![CDATA[ */var sl_indexroot=\'' . _indexroot . '\';/* ]]> */</script>
<script type="text/javascript" src="' . _indexroot . 'remote/jscript.php?' . _cacheid . '&amp;' . _language . '"></script>'
<script type="text/javascript" src="' . _indexroot . 'plugins/templates/' . _template . '/js/jquery.nivo.slider.pack.js?' . _cacheid . '&amp;' . _language . '"></script>'
<script type="text/javascript" src="' . _indexroot . 'plugins/templates/' . _template . '/js/jquery-1.10.2.min.js?' . _cacheid . '&amp;' . _language . '"></script>';
EDIT skusal som to aj s prilozenym jquery JS, lebo ten externy link uz vonkoncom netusim ako zadefinovat 😞 som lama no 🙂
postZaslat odpověď
Tak v navode (v pisanej verzii) bolo , ze do hlavicky ...vyskusal som obe varianty (aj priamo do div slidera) bez vysledku...stale len loadovaci obrazok.

Musi niekde byt nejaka drobnost co tomu prekaza len otazka co to je a kde to je :) (skusal som prava obrazkov, potom iny priecinok - upload/slider/ ako mas ty, prechadzal div ci tam nie je daco navyse)
přesuń ještě ty tři linky ze začátku hlavičky nakonec (těsně před </head>)
ono by to mělo načítat nejdřív to obecné jquerry ze systému
Takhle ne:<head>
<link rel="stylesheet" href="style/nivo-slider.css" type="text/css" />
<link rel="stylesheet" href="themes/default/default.css" type="text/css" />
<script src="js/jquery.nivo.slider.pack.js" type="text/javascript"></script>
<?php _templateHead() ?>
</head>
Takhle ano:<head>
<?php _templateHead() ?>
<link rel="stylesheet" href="style/nivo-slider.css" type="text/css" />
<link rel="stylesheet" href="themes/default/default.css" type="text/css" />
<script src="js/jquery.nivo.slider.pack.js" type="text/javascript"></script>
</head>
jquery se vždy musí načíst ještě před nivo sliderem
Ach jasne uz to ide dakujem Vam. 🙂

Skusene oko odhalilo amatersku chybu 🙂
Strana: « předchozí 1 2