hi
please how do i add a js to head section of ossn instead of editing the theme head section..
how do i make this using a components
function new_site_js(){
echo ossn_html_js(array('src' => 'http://site.com/jquery/files/jquery0.js'));
echo ossn_html_js(array('src' => 'http://site.com/jquery/files/jquery1.js'));
echo ossn_html_js(array('src' => 'http://site.com/jquery/files/jquery2.js'));
}
do i need to repeat the step?
what about adding multiple url?
cool
thank;s
ossn_extend_view('ossn/site/head', 'new_site_js');
function new_site_js(){
echo ossn_html_js(array('src' => 'http://site.com/jquery/files/jquery.js'));
}
i meant calling a url to extend the head
like for example
http://jquery.org/jquery-ui-1.0.1.js
not a hosted file on an external server
i meant calling a url
See Our hello world component:
https://github.com/opensource-socialnetwork/HelloWorld/blob/master/ossn_com.php#L34-L47
I think you need to change "css" to "js" in the code (see link above)
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)