コード例 #1
0
ファイル: display.php プロジェクト: jacksun101/PyroAddons
<?php

if (count($images) > 0) {
    $nivotheme = isset($options['theme']) ? $options['theme'] : 'default';
    $settings = isset($options['settings']) ? $options['settings'] : '';
    Asset::add_path('nivoslider', 'addons/shared_addons/widgets/nivoslider/');
    Asset::css('nivoslider::themes/' . $nivotheme . '/' . $nivotheme . '.css', false, 'nivoslider');
    Asset::css('nivoslider::nivo-slider.css', false, 'nivoslider');
    Asset::js('nivoslider::jquery.nivo.slider.pack.js', false, 'nivoslider');
    echo Asset::render_js('nivoslider');
    echo Asset::render_css('nivoslider');
    ?>
<script type="text/javascript">
$(function(){
    if($.isFunction($.fn.nivoSlider)){
      $('.nivoSlider').nivoSlider(<?php 
    echo $settings;
    ?>
);
    }
    });
</script>
    <div class="slider-wrapper theme-<?php 
    echo $nivotheme;
    ?>
 clearfix">
        <div class="nivoSlider">
        <?php 
    foreach ($images as $image) {
        ?>
            <img 
コード例 #2
0
echo config_item('cookie_prefix') . config_item('csrf_cookie_name');
?>
";
</script>

<?php 
Asset::css(array('plugins.css', 'jquery/colorbox.css', 'codemirror.css', 'animate/animate.css'));
?>

<?php 
echo Asset::render();
?>

<!--[if lt IE 9]>
<?php 
echo Asset::css('ie8.css', null, 'ie8');
echo Asset::render_css('ie8');
?>
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->

<?php 
if ($module_details['sections']) {
    ?>
<style>section#content {margin-top: 170px!important;}</style>
<?php 
}
?>

<?php 
echo $template['metadata'];
コード例 #3
0
Asset::css('asset::bootstrap.min.css', false, 'front');
Asset::css('asset::hoverify-bootnav.css', false, 'front');
Asset::css('asset::chosen.min.css', false, 'front');
Asset::css('theme::style.css', false, 'front');
Asset::css('theme::mobile.css', false, 'front');
Asset::js('asset::jquery.1.11.1.min.js', false, 'front');
Asset::js('asset::jquery.easing.js', false, 'front');
Asset::js('asset::bootstrap.min.js', false, 'front');
Asset::js('asset::zoombox.js', false, 'front');
Asset::js('asset::chosen.jquery.min.js', false, 'front');
Asset::js('asset::hoverify-bootnav.js', false, 'front');
Asset::js('asset::jquery.konami.min.js', false, 'front');
Asset::js('asset::vanilla.konami.min.js', false, 'front');
Asset::js('theme::script.js', false, 'front');
Asset::js('theme::howler.min.js', false, 'front');
echo Asset::render_css('front');
echo Asset::render_js('front');
?>

     <script type="text/javascript">
        	var base_url = "<?php 
echo site_url('');
?>
/";
			var theme_url = "<?php 
echo base_url('themes');
?>
/";
        </script>

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
コード例 #4
0
ファイル: display.php プロジェクト: jacksun101/PyroAddons
<?php

if (count($images) > 0) {
    ?>

<?php 
    Asset::add_path('slider', 'addons/shared_addons/widgets/slider/');
    Asset::css('slider::flexslider.css', false, 'flexslider');
    Asset::js('slider::jquery.flexslider-min.js', false, 'flexslider');
    echo Asset::render_js('flexslider');
    echo Asset::render_css('flexslider');
    ?>
<script type="text/javascript">
$(function(){
    if($.isFunction($.fn.flexslider)){
      $('.myflexslider').flexslider({
        animation: "slide"
      });
    }
    });
</script>
        <div class="myflexslider">
          <ul class="slides">
        <?php 
    foreach ($images as $image) {
        ?>
                <li><img src="<?php 
        echo $image->path;
        ?>
" <?php 
        echo $options['captions'] === 'true' ? 'title="' . $image->name . '"' : null;
コード例 #5
0
ファイル: asset.php プロジェクト: nockout/tshpro
 /**
  * Asset Render CSS
  *
  * Render a CSS asset group.
  *
  * Usage:
  *
  * {{ asset:render_css group="" }}
  *
  * @return string Style tags for CSS
  */
 public function render_css()
 {
     $group = $this->attribute('group', false);
     return Asset::render_css($group);
 }
コード例 #6
0
<?php 
echo Asset::render_js('camera');
echo Asset::render_css('camera');
?>


<div id="camera_wrap_4" class="pattern_2">
    <?php 
foreach ($slides as $s) {
    ?>
    <div  data-thumb="<?php 
    echo site_url('files/large/' . $s->filename);
    ?>
" data-src="<?php 
    echo site_url('files/large/' . $s->filename);
    ?>
">
        <div class="camera_caption left-bottom fadeIn" data-destination="left-bottom">
            <div class="slider-caption">
                
                <?php 
    if ($s->showcaption == 1) {
        ?>
                <h3><span><?php 
        echo $s->html;
        ?>
 </span></h3>
                <?php 
    }
    ?>
コード例 #7
0
<?php

Asset::css('asset::jquery-ui.min.css', false, 'elfinder_standalone');
Asset::css('finder::elfinder.min.css', false, 'elfinder_standalone');
Asset::css('finder::theme.css', false, 'elfinder_standalone');
Asset::js('finder::jquery-1.11.1.min.js', false, 'elfinder_standalone');
Asset::js('asset::jquery-ui.min.js', false, 'elfinder_standalone');
Asset::js('finder::elfinder.min.js', false, 'elfinder_standalone');
Asset::js('finder::i18n/elfinder.fr.js', false, 'elfinder_standalone');
echo Asset::render_css('elfinder_standalone');
echo Asset::render_js('elfinder_standalone');
?>

<script type="text/javascript" charset="utf-8">
	$().ready(function(){
		var FileBrowserDialogue = {
			init: function() {},
			mySubmit: function (URL) {
				parent.tinymce.activeEditor.windowManager.getParams().setUrl(URL);
				parent.tinymce.activeEditor.windowManager.close();
			}
		};
		var elf = $('#elfinder').elfinder({
			url: '/admin/files/connector',
			lang: 'fr',
			disabled: ['extract', 'archive', 'search'],
			requestType: 'get',
			resizable: false,
			commands : ['open', 'reload', 'home', 'up', 'back', 'forward', 'getfile', 'quicklook',
				'download', 'rm', 'rename', 'mkdir', 'upload', 'info', 'resize', 'sort'],
			onlyMimes: ["image/png", "image/jpeg", , "image/gif", "image/jpg", "application/pdf", "video/mp4", "video/mpeg", "video/quicktime","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],
コード例 #8
0
ファイル: display.php プロジェクト: jacksun101/PyroAddons
<?php

if (count($images) != 0) {
    Asset::add_path('slider', 'addons/shared_addons/modules/sliders/');
    Asset::js('slider::jquery.flexslider-min.js');
    Asset::css('slider::flexslider.css');
    echo Asset::render_js();
    echo Asset::render_css();
    ?>
<script type="text/javascript">
    $(window).load(function() {
      $('.flexslider').flexslider({
        animation: "slide"
      });
    });
</script>
<div class="flexslider">
    <ul class="slides">
        <?php 
    foreach ($images as $image) {
        ?>
                <li><img src="<?php 
        echo $image->path;
        ?>
" <?php 
        echo $options['captions'] === 'true' ? 'title="' . $image->name . '"' : null;
        ?>
 />
                <?php 
        if (!empty($image->alt_attribute) && !empty($image->description)) {
            ?>
コード例 #9
0
ファイル: assets.php プロジェクト: nuit-de-l-info/2015-ndl-jj
<?php

Asset::css('asset::jquery-ui.min.css', false, 'elfinder');
Asset::css('finder::elfinder.min.css', false, 'elfinder');
Asset::css('finder::theme.css', false, 'elfinder');
Asset::js('asset::jquery-ui.min.js', false, 'elfinder');
Asset::js('finder::elfinder.min.js', false, 'elfinder');
Asset::js('finder::i18n/elfinder.fr.js', false, 'elfinder');
echo Asset::render_css('elfinder');
echo Asset::render_js('elfinder');