OS Property support center

disable bootstrap stylesheets

More
10 years 3 months ago #38985 by Roos
disable bootstrap stylesheets was created by Roos
Hi Dam,

I already have bootstrap (css + js) loaded via my own Joomla template.
So I disabled "Load bootstrap" in the tab General setting (version 2.4).
But there are still bootstrap stylesheets in the head :
components/com_osproperty/js/bootstrap/css/bootstrap.css + bootstrap-responsive.css

I also do not use the google fonts.

Of course I can override this, but is there an easy solution ?

Thanks, Roos

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #39000 by Mr. Dam
Replied by Mr. Dam on topic Re: disable bootstrap stylesheets
Hi,
Can you please submit ticket and send your site information like url, super admin account, ftp account. I will check the issue for you
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #39535 by kalesh.suby
Replied by kalesh.suby on topic Re: disable bootstrap stylesheets
Same issue - Bootstrap is loading even though its disabled in OsProperty settings - How was this fixed? Thanks

Please Log in or Create an account to join the conversation.

More
10 years 3 months ago #39539 by Mr. Dam
Replied by Mr. Dam on topic Re: disable bootstrap stylesheets
OK Kalesh, i will find the reason of this problem
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
6 years 3 weeks ago #110305 by farzad
Replied by farzad on topic Re: disable bootstrap stylesheets
hello,
how are you?
I have the same problem
You could fix the problem?
This problem still exists in the latest version of osproperty

thanks

Please Log in or Create an account to join the conversation.

More
6 years 3 weeks ago #110306 by Mr. Dam
Replied by Mr. Dam on topic Re: disable bootstrap stylesheets
Hi Farzad,
You mean that when you select Not to load Bootstrap at OS Property configuration, the bootstrap library is still be loaded at front-end of OS Property pages?
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
6 years 3 weeks ago #110325 by farzad
Replied by farzad on topic Re: disable bootstrap stylesheets
hi
thanks for your response
Yes, that's it
please check : components\com_osproperty\helpers\helper.php and line 913
back end default language Persian OR Arabic -> Direction is RTL
So,Because the RTL language is in any case bootstrap_rtl.css and bs3.css is loaded
This is my analysis. Maybe I'm wrong too
please check it

public static function loadBootstrap($loadJs = true)
{
global $configClass;
$app = JFactory::getApplication();
$current_template = $app->getTemplate();
$language = JFactory::getLanguage();
$configClass = self::loadConfig();
$rootUrl = JURI::root(true);
$document = JFactory::getDocument();
if (($configClass == 1) or (version_compare(JVERSION, '3.0', 'lt'))) {
if ($loadJs) {
$document->addScript($rootUrl . '/components/com_osproperty/js/bootstrap/js/jquery.min.js');
$document->addScript($rootUrl . '/components/com_osproperty/js/bootstrap/js/jquery-noconflict.js');
$document->addScript($rootUrl . '/components/com_osproperty/js/bootstrap/js/bootstrap.min.js');
}
}
if ((int)$configClass == 0) {
$document->addStyleSheet($rootUrl . '/components/com_osproperty/js/bootstrap/css/bootstrap.css');
$document->addStyleSheet($rootUrl . '/components/com_osproperty/style/bs2.css');
if (file_exists(JPATH_ROOT .'/templates/'. $current_template . '/html/com_osproperty/css/bootstrap_adv.css')) {
$document->addStyleSheet($rootUrl .'/templates/'. $current_template.'/html/com_osproperty/css/bootstrap_adv.css');
}else {
$document->addStyleSheet($rootUrl . '/components/com_osproperty/js/bootstrap/css/bootstrap_adv.css');
}
}else{
$document->addStyleSheet($rootUrl . '/components/com_osproperty/style/bs3.css');
}
if ($language->isRTL()) {
$document->addStyleSheet($rootUrl . '/components/com_osproperty/js/bootstrap/css/bootstrap_rtl.css');
}
}

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan