/** * Returns full site url to assets javascript module folder. * * @return string Returns full site url to assets javascript module folder. */ function module_js_path() { return Assets::assets_url('js', true); }
<div id="waitload" class="well center" style="display:none;"> <img src="<?php echo Assets::assets_url() . 'images/ajax-loader.gif'; ?> " width="28" height="28" border="0" align="absmiddle" /><br />Operation in progress. Please wait... </div> <div id="ajaxStatusBox" style="display:none;"><div id="ajaxStatus" class="alert"></div></div> <div class="right"><a href="#" class="btn" id="reload_comments"><i class="icon-refresh"></i> Update</a></div> <div id="comments"> <?php if (isset($comments) && is_array($comments) && count($comments)) { $count = 1; foreach ($comments as $comment) { ?> <div class="well"> <div data-toggle="collapse" href="#comment<?php echo $count; ?> "> <b><?php echo $comment->creator . " " . $comment->created; ?> </b> </div> <div id="comment<?php echo $count; ?> "> <p><?php echo $comment->comment; ?>
/** * Returns full site url to assets base folder. * * @access public * * @return string Returns full site url to assets base folder. */ function assets_path() { return Assets::assets_url(); }
} } ?> </select> </div> <div id="images" class="toggle" style="display:none"> <div style="padding:10px; background:#ffffcc; margin-bottom:10px"> <b>Item Image Gallery</b> - - <span class="icon images">    </span> <a href="#" class="get_file_browser" rel="albums">Add more images</a> - - <span class="icon cross">    </span> <a href="#" id="remove_images">Remove Selected</a> </div> <div id="sortable_images_wrapper"> <?php $img_path = Assets::assets_url(); foreach ($images as $data) { $data = explode('|', $data); ?> <div> <span>drag</span> <img src="<?php echo "{$img_path}/{$data['0']}"; ?> " title="<?php echo $data[1]; ?> " alt="<?php echo $data[1]; ?> ">
/** * This method sets the URL to your assets. * * @param string the URL to the assets * * @return void */ static function set_assets_url($url) { Assets::$assets_url = $url; Assets::$counter_cache = NULL; Assets::$dynamic = strpos($url, '%d') !== FALSE; }