ossn.lib.javascripts.php File Reference

Go to the source code of this file.

Namespaces

 Informatikon\com
 

Functions

 ossn_javascript ()
 
 ossn_javascript_pagehandler ($js)
 
 ossn_new_js ($name, $file)
 
 ossn_new_external_js ($name, $file, $type=true)
 
 ossn_unlink_external_js ($name)
 
 ossn_unlink_new_js ($name)
 
 ossn_html_js ($args)
 
 ossn_load_js ($name, $type= 'site')
 
 ossn_unload_js ($name, $type= 'site')
 
 ossn_load_external_js ($name, $type= 'site')
 
 ossn_unload_external_js ($name, $type= 'site')
 
 ossn_site_js ()
 
 ossn_admin_js ()
 
 ossn_js_trigger ($hook, $type, $value, $params)
 
 ossn_languages_js ()
 
 ossn_redirect_absolute_url ()
 

Function Documentation

ossn_admin_js ( )

Load js to backend

Returns
html.tags

Definition at line 227 of file ossn.lib.javascripts.php.

ossn_html_js (   $args)

Get a tag for inserting css

string $args array()

Returns
string

Definition at line 134 of file ossn.lib.javascripts.php.

ossn_javascript ( )

Initialize the css library

Returns
void

Definition at line 17 of file ossn.lib.javascripts.php.

ossn_javascript_pagehandler (   $js)

Add css page handler

Returns
bool

Definition at line 46 of file ossn.lib.javascripts.php.

ossn_js_trigger (   $hook,
  $type,
  $value,
  $params 
)

Check if the requested js is registered then load js

Returns
bool

Definition at line 257 of file ossn.lib.javascripts.php.

ossn_languages_js ( )

Load jquery framework to system

Returns
js.html.tag ossn_new_external_js() function ossn_jquery_add() { echo ossn_html_js(array('src' => ossn_site_url('vendors/jquery/jquery-1.11.1.min.js'))); }

Definition at line 283 of file ossn.lib.javascripts.php.

ossn_load_external_js (   $name,
  $type = 'site' 
)

Load registered js to system for site

Returns
html.tag

Definition at line 174 of file ossn.lib.javascripts.php.

ossn_load_js (   $name,
  $type = 'site' 
)

Load registered js to system for site

Returns
html.tag

Definition at line 151 of file ossn.lib.javascripts.php.

ossn_new_external_js (   $name,
  $file,
  $type = true 
)

Register a new external js to system

Parameters
string$nameThe name of the css $file complete url path to css file
Returns
void

Definition at line 92 of file ossn.lib.javascripts.php.

ossn_new_js (   $name,
  $file 
)

Register a new css to system

Parameters
string$nameThe name of the css $file path to css file
Returns
void

Definition at line 80 of file ossn.lib.javascripts.php.

ossn_redirect_absolute_url ( )

Redirect users to absolute url, if he is on wrong url

Many users have issue while registeration, this is due to ossn.ajax works on absolute path Github ticket: https://github.com/opensource-socialnetwork/opensource-socialnetwork/issues/458

Returns
void;

Definition at line 311 of file ossn.lib.javascripts.php.

ossn_site_js ( )

Load js for frontend

Returns
html.tags

Definition at line 198 of file ossn.lib.javascripts.php.

ossn_unlink_external_js (   $name)

Remove a external js from system

Parameters
string$nameThe name of the css $file complete url path to css file
Returns
void

Definition at line 108 of file ossn.lib.javascripts.php.

ossn_unlink_new_js (   $name)

Remove a js from system

This will not remove js file it will just unregister it

Parameters
string$nameThe name of the js
Returns
void

Definition at line 120 of file ossn.lib.javascripts.php.

ossn_unload_external_js (   $name,
  $type = 'site' 
)

Ossn system unloads js from head

Parameters
string$nameThe name of the js
Returns
void

Definition at line 185 of file ossn.lib.javascripts.php.

ossn_unload_js (   $name,
  $type = 'site' 
)

Ossn system unloads js from head

Parameters
string$nameThe name of the js
Returns
void

Definition at line 162 of file ossn.lib.javascripts.php.