Advertisement:

Author Topic: Bootstrap Theme help  (Read 1658 times)

hassanGenius

  • Full Member
  • ***
  • Posts: 105
  • make it geniusly,!!
Bootstrap Theme help
« on: January 06, 2014, 12:02:43 am »
Hello, i want to make a twitter Bootstrap theme for Osclass cms. with using twitter bootstrap 3.0. but i am confusing about js script. with default we are using bootstrapt script in bottom (footer area.)-.
I looked twitter theme (which is available in os market place). but i did,t see any bootstrap script in footer.php and head.php as well.

so, my question is that, how to call twitter bootstrap js in osclass and which section (is it in head.php or footer.php or any other file)
and in which file actually called  latest jquery.js ..  (is it default always , so, in custom theme isnt it needed to call latest jquery.js  again!!)

please help me on it ,, i am confuge on both question.. Thanks Advance

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: Bootstrap Theme help
« Reply #1 on: February 04, 2014, 08:10:10 pm »
you have to add:
in the head.php of the theme:
osc_register_script
osc_enqueue_script

and the css
osc_enqueue_style

example:

osc_enqueue_style('bootstrap-css', osc_current_web_theme_js_url('bootstrap.css') );    (this in the js folder)

osc_register_script('bootstrap-js', osc_current_web_theme_js_url('bootstrap.js'), 'jquery');  (this in js folder)


osc_enqueue_script('bootstrap');  (this not in folder)

then you have to make sure you have the pathways right (js folder/css folder or not)