2

Twitter Bootstrap Joomla 3.1.x が使用するバージョンを特定しようとしています。

Twitter Bootstrap 3 は「最近」リリースされたもので、2.x バージョンとはいくつかの異なるパラメーターがあります。 GetBootstrap ウェブページ

具体的には、Prostar が使用している「デフォルト」の joomla 3.1 テンプレートのバージョンを知る必要があります。

または、bootstrap.css ファイルを見ることはできますか?使用しているブートストラップのバージョンに関する手がかりはありますか? 私は自分のコピーを見てきましたが、使用しているブートストラップのバージョンについてはコメントされていません。

ここでの啓蒙を楽しみにしています!

4

3 に答える 3

2

前述のように、Joomla は現在 2.3.2 を使用していますが、将来のアップグレードでこれが変わらないという保証はないため、Bootstrap の JUI バージョンを設定解除し、独自のローカル/静的バージョンを使用することを検討してください。Bootstrap の JUI バージョンの読み込みを停止するには、各ファイルに対して次のような unset コマンドを使用します...

unset($doc->_scripts[$this->baseurl.'/media/jui/css/bootstrap.css']);

次に、独自のバージョンのブートストラップをロードします。いくつかの方法がありますが、これが私の好みの方法です...

        $doc = JFactory::getDocument();
        $doc->addStyleSheet('templates/' . $this->template . '/css/bootstrap.css');

繰り返しますが、設定を解除または含めるファイルごとにこれを行います。

于 2013-09-21T16:30:22.300 に答える
1

Joomla 3.1 は Bootstrap 2.3.2 を使用しています

バージョンを確認するには、次の場所にあるbootstrap.jsまたはbootstrap.cssファイルを開きます。

root/media/jui/

そしてそれは表示されます * Bootstrap v2.3.2

お役に立てれば

于 2013-09-21T16:10:05.883 に答える
-1

Let me prefix this answer with: This was based on the assumption the question was asking how to identify the version from the output CSS shown on the website. Which you can find here, which you will notice doesn't retain the version or license.

Unfortunately, joomla rip out the attribution from the CSS file referencing bootstrap so it would take quite a bit of investigating (seeing what changes had been made from 2.3.x to another version of 2.3.x) - however it is easy to be able to tell if its a 2.x.x branch or a 3.x.x branch.

Obvious way to check is just to look at the css, if it references items such as span1, span2 ,span* etc, it's part of the 2.x.x branch.

If however you see references to col-md-4, col-md-5, col-md-* then you can be sure it's of the 3.x.x branch.

于 2013-09-21T16:14:14.697 に答える