Friday, March 29 2024 @ 04:39 PM JST

UIkitをBootstrapテーマの管理画面やUIkitを使っているMediagalleryだけに追加する

  • Sunday, July 19 2015 @ 05:51 PM JST
  • 投稿者:
  • 表示回数 3,315
Geeklog [tag:UIkit]をBootstrapテーマの管理画面や[tag:UIkit]を使っているMediagalleryだけに追加する場合は、以下のようにheader.thtml footer.thtmlに記述します。
<?php $url_current = COM_getCurrentURL(); if( ( strpos( $url_current,
'/admin/' ) !== false ) ||  (strpos( $url_current,
'/mediagallery/' ) !== false ) ){ ?>

<!-- /admin/ や/mediagallery/ では呼びたい、UIkitなどのCSSやJS -->
<link rel="stylesheet" href="{layout_url}/vendor/uikit/css/uikit-ivywe.css"{xhtml}> 


<?php } else { ?>

<!-- /admin/では呼びたくない、BootstrapなどのCSSやJS -->

<?php } ?>