function print_books($books, $is_large = false) { echo '<ul class="book_icons">'; foreach ($books as $row) { $uri = confirm_slash(base_url()) . $row->slug; $title = trim($row->title); $book_id = (int) $row->book_id; $thumbnail = !empty($row->thumbnail) ? confirm_slash($row->slug) . $row->thumbnail : null; $is_live = $row->display_in_index ? true : false; if (empty($thumbnail) || !file_exists($thumbnail)) { $thumbnail = path_from_file(__FILE__) . 'default_book_logo.png'; } $authors = array(); foreach ($row->users as $user) { if ($user->relationship != strtolower('author')) { continue; } if (!$user->list_in_index) { continue; } $authors[] = $user->fullname; } echo '<li><a href="' . $uri . '"><img class="book_icon' . ($is_large ? '' : ' small') . '" src="' . confirm_base($thumbnail) . '" /></a><h4><a href="' . $uri . '">' . $title . '</a></h4>'; if (count($authors)) { echo implode(', ', $authors); echo "<br />"; } echo '</li>'; } echo '</ul>'; }
<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } $this->template->add_js(path_from_file(__FILE__) . 'js/fuse.min.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/aclsworkbench_book_list.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/aclsworkbench_tour.js'); $this->template->add_css(path_from_file(__FILE__) . 'css/aclsworkbench_book_list.css'); //Loop through each book, producing the book wrapping html for the book index function print_books($books, $cols, $tab_cols, $mob_cols, $user_id) { if (!isset($tab_cols)) { $tab_cols = $cols; } if (!isset($mob_cols)) { $mob_cols = $tab_cols; } $num_books = count($books); echo '<div class="original book_list row">'; foreach ($books as $i => $row) { $uri = confirm_slash(base_url()) . $row->slug; $title = trim(strip_tags($row->title)); $book_id = (int) $row->book_id; $thumbnail = !empty($row->thumbnail) ? confirm_slash($row->slug) . $row->thumbnail : null; $is_live = $row->display_in_index && $row->url_is_public; $is_featured = @$row->is_featured ? true : false; if (empty($thumbnail) || !file_exists(FCPATH . $thumbnail)) { $thumbnail = 'system/application/views/modules/aclsworkbench_book_list/default_book_logo.png'; } $thumbnail = base_url() . $thumbnail;
<?php $this->template->add_css(path_from_file(__FILE__) . 'content.css'); $this->template->add_css(path_from_file(__FILE__) . 'external.css'); if (isset($book->stylesheet) && !empty($book->stylesheet)) { $this->template->add_css(path_from_file(__FILE__) . 'themes/' . $book->stylesheet . '.css'); } ?> <div class="outside-header"> <div class="outside-back-link"> <a href="<?php echo $prev; ?> " class="path_nav_previous_btn"></a> <a href="<?php echo $prev; ?> ">Return to <?php echo $book->title; ?> </a> </div> <div class="outside-remove-link"> <div class="outside-remove-link-left"><a href="<?php echo $link; ?> ">Remove this header</a></div> <ol class="logo-wrapper"> <?php if (!empty($book->thumbnail)) { ?>
$method = $this->router->fetch_method(); $login_url = $this->config->item('force_https') ? base_ssl() : base_url(); $valid_methods = array('home', 'index', 'join', 'clone', 'create', 'elevate'); $method = 'index'; if (!empty($_GET['action'])) { $method = preg_replace('/[^a-z_]+/', '', strtolower($_GET['action'])); } else { if (!$login->is_logged_in && $method == 'index') { $method = 'home'; } } if (!in_array($method, $valid_methods)) { $method = 'index'; } define('ACLSWORKBENCH_METHOD', $method); define('ACLSWORKBENCH_ICON_URL', base_url() . path_from_file(__FILE__) . 'img/project_icon.svg'); define('ACLSWORKBENCH_LOGIN_URL', $login_url); ?> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <div class="main_container container" id="container_<?php echo ACLSWORKBENCH_METHOD; ?> "> <div class="row"> <div class="col-md-6 col-sm-8 col-xs-12"> <?php $this->load->view('modules/aclsworkbench_cover/dashboard_title'); ?> </div>
<?php if (!file_exists(confirm_slash(APPPATH) . 'views/melons/honeydew/content/' . $view . '.php')) { show_404(); } $this->template->add_css(path_from_file(__FILE__) . '../../modules/cover/login.css'); $this->template->add_css(path_from_file(__FILE__) . '../../modules/cover/title.css'); $this->template->add_css(path_from_file(__FILE__) . 'content.css'); if (isset($book->stylesheet) && !empty($book->stylesheet)) { $this->template->add_css(path_from_file(__FILE__) . 'themes/' . $book->stylesheet . '.css'); } $this->template->add_js(path_from_file(__FILE__) . 'main.js'); $this->load->view('melons/honeydew/content/' . $view);
<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } $this->template->add_css(path_from_file(__FILE__) . 'tabs.css'); $this->template->add_js(path_from_file(__FILE__) . 'tabs.js'); $this->template->add_css(path_from_file(__FILE__) . 'common.css'); ?> <div class="select_box" id="value_selector"> <h4 class="dialog_title">Edit users</h4> <form onsubmit="submit_value_selector($(this)); return false;"> <input type="hidden" name="section" value="" /> <input type="hidden" name="id" value="" /> Please select below. <span id="multiple_info">Hold down <b>shift</b> (range) or <b>control</b> (single) to select multiple values.</span><br /><br /> <select id="select_box_values"></select><br /><br /> <p style="text-align:right;"><a href="javascript:;" onclick="$(this).parent().parent().parent().hide();" class="generic_button large">Cancel</a> <input type="submit" value="Save" class="generic_button large default" /></p> </form> </div> <div class="dashboard"> <div class="tabs"> <ul> <li><a href="#tabs-user" style="color:#7d1d1d;">My account</a></li> <li><a href="#tabs-style">Book properties</a></li> <li><a href="#tabs-users">Book users</a></li> <li><a href="#tabs-publish">Publish</a></li> <li><a href="#tabs-pages" style="color:#89169e;">Pages<?php echo !empty($pages_not_live) ? '<sup>' . $pages_not_live . '</sup>' : '';
function template_script_tag_relative($rel = '', $path = '', $args = array()) { $rel = path_from_file($rel); $rel .= $path; return script_tag($rel, $args); }
<?php $this->template->add_css(path_from_file(__FILE__) . 'css/reset.css'); $this->template->add_css(path_from_file(__FILE__) . 'css/bootstrap.min.css'); $this->template->add_css(path_from_file(__FILE__) . 'css/bootstrap-accessibility.css'); $this->template->add_css(path_from_file(__FILE__) . 'css/common.css'); $this->template->add_css(path_from_file(__FILE__) . 'css/responsive.css'); $this->template->add_css(path_from_file(__FILE__) . 'css/scalarvis.css'); $this->template->add_css(path_from_file(__FILE__) . 'css/header.css'); $this->template->add_css(path_from_file(__FILE__) . 'css/screen_print.css', 'link', 'screen,print'); $this->template->add_js(path_from_file(__FILE__) . 'js/bootstrap.min.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/jquery.bootstrap-modal.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/jquery.bootstrap-accessibility.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/main.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/jquery.dotdotdot.min.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/jquery.scrollTo.min.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarheader.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarpage.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarmedia.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarmediadetails.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarindex.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarhelp.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarcomments.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarsearch.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarvisualizations.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarstructuredgallery.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarwidgets.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/jquery.tabbing.js'); if (file_exists(confirm_slash(APPPATH) . 'views/melons/cantaloupe/' . $view . '.php')) { $this->template->add_html($this->load->view('melons/cantaloupe/' . $view, null, true), $view . '-page'); }
$this->template->add_css(path_from_file(__FILE__) . 'css/bootstrap.min.css'); $this->template->add_css(path_from_file(__FILE__) . 'css/aclsworkbench.css'); $this->template->add_css(path_from_file(__FILE__) . 'css/workbench_icons.css'); $this->template->add_js($uris, 'embed'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarpage.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarmedia.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarmediadetails.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarindex.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarhelp.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarcomments.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarsearch.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarvisualizations.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarstructuredgallery.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/scalarpinwheel.jquery.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/bootstrap.min.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/main.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/aclsworkbench.js'); $this->load->view('melons/aclsworkbench/header', $data); } else { $this->template->add_css(path_from_file(__FILE__) . 'css/bootstrap.min.css'); $this->template->add_css(path_from_file(__FILE__) . 'css/aclsworkbench.css'); $this->template->add_css(path_from_file(__FILE__) . 'css/workbench_icons.css'); $this->template->add_js(path_from_file(__FILE__) . 'js/bootstrap.min.js'); $this->template->add_js(path_from_file(__FILE__) . 'js/aclsworkbench.js'); $data['hide_page'] = false; $this->load->view('melons/aclsworkbench/header', $data); $this->load->view('melons/aclsworkbench/views/' . $view, $data); } } else { $this->load->view('melons/aclsworkbench/views/' . $view, $data); }
<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } $this->template->add_css(path_from_file(__FILE__) . 'title.css'); ?> <div class="system_wrapper system_cover"> <div class="cover"> <?php $this->load->view('modules/cover/login'); ?> <h2 class="title dashboard_title"> <?php echo $cover_title; ?> </h2> </div> </div>
<?php if (!defined('BASEPATH')) { exit('No direct script access allowed'); } $this->template->add_js(path_from_file(__FILE__) . '../../widgets/modals/jquery.melondialog.js'); $this->template->add_js(path_from_file(__FILE__) . '../../widgets/edit/jquery.predefined.js'); $this->template->add_css(path_from_file(__FILE__) . '../../widgets/edit/content_selector.css'); $this->template->add_js(path_from_file(__FILE__) . '../../widgets/edit/jquery.content_selector.js'); ?> <style> .removed {color:#bbbbbb;} .removed a {color:#999999;} </style> <script id="interfaces" type="application/json"><?php echo json_encode($interfaces); ?> </script> <script id="book_versions" type="application/json"><?php echo json_encode($current_book_versions); ?> </script> <script id="predefined_css" type="application/json"><?php echo $predefined_css ? json_encode($predefined_css) : ''; ?> </script> <link id="book_id" href="<?php echo @(int) $_GET['book_id']; ?> " /> <link id="active_melon" href="<?php
<?if (!defined('BASEPATH')) exit('No direct script access allowed')?> <?$this->template->add_js(path_from_file(__FILE__).'../../widgets/modals/jquery.melondialog.js')?> <?$this->template->add_js(path_from_file(__FILE__).'../../widgets/modals/jquery.bookversionsdialog.js')?> <?$this->template->add_js(path_from_file(__FILE__).'../../widgets/edit/jquery.predefined.js')?> <style> .removed {color:#bbbbbb;} .removed a {color:#999999;} </style> <script id="interfaces" type="application/json"><?php echo json_encode($interfaces); ?> </script> <script id="book_versions" type="application/json"><?php echo json_encode($current_book_versions); ?> </script> <script id="predefined_css" type="application/json"><?php echo $predefined_css ? json_encode($predefined_css) : ''; ?> </script> <link id="book_id" href="<?php echo @(int) $_GET['book_id']; ?> " /> <link id="active_melon" href="<?php echo $this->config->item('active_melon'); ?> " /> <link id="book_melon" href="<?php echo @$book->template; ?>
<?php $this->template->add_css(path_from_file(__FILE__) . 'import.css'); $this->template->add_js(path_from_file(__FILE__) . 'import.js'); $this->template->add_js(path_from_file(__FILE__) . '../../../widgets/ddSlick/jquery.ddslick.min.js'); ?> <script> $(document).ready(function() { $.ajax({ type:"GET", url:systemURI()+'/rdf?format=json', dataType:"jsonp", success:systemSuccess, error:systemError }); }); function systemURI() { return $('.search_archive_form').find('input[name="system_uri"]').val(); } function parentURI() { var uri = $('link#parent').attr('href'); if (uri.substr((uri.length-1),1) == '/') uri = uri.substr(0,(uri.length-1)); return uri; } function bookURIMediaAppend() { return '/rdf/instancesof/media'; } function systemSuccess(data) { var book_uris = data[systemURI()]['http://purl.org/dc/terms/hasPart']; var ddData = []; if (book_uris && book_uris.length) {