示例#1
0
/**
 * Add a CSS file or files to the current page.
 *
 * All stylesheets will be included in the page's head. This needs to be
 * called either before head(), or in a plugin_header hook.
 *
 * @package Omeka\Function\View\Asset
 * @see head_css()
 * @param string|array $file File to use, if an array is passed, each array
 * member will be treated like a file.
 * @param string $media CSS media declaration, defaults to 'all'.
 * @param string|bool $conditional IE-style conditional comment, used generally
 * to include IE-specific styles. Defaults to false.
 * @param string $dir Directory to search for the file.  Keeping the default is
 * recommended.
 */
function queue_css_file($file, $media = 'all', $conditional = false, $dir = 'css')
{
    if (is_array($file)) {
        foreach ($file as $singleFile) {
            queue_css_file($singleFile, $media, $conditional, $dir);
        }
        return;
    }
    queue_css_url(css_src($file, $dir), $media, $conditional);
}
 /**
  * Shortcode to display viewer.
  *
  * @param array $args
  * @param Omeka_View $view
  * @return string
  */
 public static function shortcodeOpenLayersZoom($args, $view)
 {
     // Check required arguments
     $recordType = isset($args['record_type']) ? $args['record_type'] : 'Item';
     $recordType = ucfirst(strtolower($recordType));
     if (!in_array($recordType, array('Item', 'File'))) {
         return;
     }
     // Get the specified record.
     if (isset($args['record_id'])) {
         $recordId = (int) $args['record_id'];
         $record = get_record_by_id($recordType, $recordId);
     } else {
         $record = get_current_record(strtolower($recordType));
     }
     if (empty($record)) {
         return;
     }
     $html = $view->openLayersZoom()->zoom($record);
     if ($html) {
         $html = '<link href="' . css_src('ol') . '" media="all" rel="stylesheet" type="text/css" >' . js_tag('ol') . js_tag('OpenLayersZoom') . $html;
         return $html;
     }
 }
示例#3
0
?>

<link type="text/css" rel="stylesheet" href="<?php 
echo $GLOBALS['webroot'] . '/library/css/jquery-ui-1.8.21.custom.css';
?>
" />
<link type="text/css" rel="stylesheet" href="<?php 
css_src('cdr-multiselect/common.css');
?>
" />
<link type="text/css" rel="stylesheet" href="<?php 
css_src('cdr-multiselect/ui.multiselect.css');
?>
" />
<link type="text/css" rel="stylesheet" href="<?php 
css_src('cdr-multiselect/plans_config.css');
?>
" />

<script language="javascript" src="<?php 
js_src('/cdr-multiselect/jquery.min.js');
?>
"></script>
<script language="javascript" src="<?php 
js_src('/cdr-multiselect/jquery-ui.min.js');
?>
"></script>
<script language="javascript" src="<?php 
js_src('/cdr-multiselect/plugins/localisation/jquery.localisation-min.js');
?>
"></script>
示例#4
0
<head>
    <script language="javascript" src="<?php 
js_src('jQuery.autocomplete.js');
?>
"></script>
    <script language="javascript" src="<?php 
js_src('typeahead.js');
?>
"></script>
    <link rel="stylesheet" href="<?php 
css_src('rules.css');
?>
" type="text/css">
    <link rel="stylesheet" href="<?php 
css_src('jQuery.autocomplete.css');
?>
" type="text/css">

    <script type="text/javascript">
        var type_ahead = new type_ahead( {
            url: "index.php?action=edit!codes",
            inputId: "fld_value"
        });
        type_ahead.init();
    </script>
</head>

<!-- diagnosis -->
<p class="row">
    <span class="left_col colhead req" data-fld="fld_diagnosis"><?php 
 /**
  * Additional item display: display reverse references and reference maps / 2nd level reference maps
  */
 public function hookAdminItemsShow($args)
 {
     echo '<link href="' . css_src('item-references-maps') . '" rel="stylesheet">';
     if (SELF::$_enhancedGeoLog) {
         $overlays = GeolocationPlugin::GeolocationConvertOverlayJsonForUse();
     } else {
         $overlays = null;
     }
     SELF::_displaySelfReferences($args);
     $js = "";
     $js .= SELF::_displayReferenceMaps($args, $overlays);
     $js .= SELF::_displaySecondLevelReferenceMaps($args, $overlays);
     if ($js) {
         if ($overlays) {
             $js .= "var mapOverlays = " . $overlays["jsData"] . ";";
         }
         echo "<script type='text/javascript'>\n" . $js . "\n</script>";
     }
 }
示例#6
0
?>
<html>
<head>
    <?php 
html_header_show();
?>
    <link rel="stylesheet" href="<?php 
echo $GLOBALS['css_header'];
?>
" type="text/css">
    <script type="text/javascript" src="<?php 
echo $GLOBALS['assets_static_relative'];
?>
/jquery-min-1-2-1/index.js"></script>
    <link rel="stylesheet" href="<?php 
css_src('rules.css');
?>
" type="text/css">

</head>

<body class='body_top'>
<?php 
if (file_exists($viewBean->_view_body)) {
    require_once $viewBean->_view_body;
}
?>

</body>

</html>
示例#7
0
<?php

$titleArray = array(__('Scripto'), __('Transcribe Page'));
queue_css_file('scripto-transcribe');
$head = array('title' => html_escape(implode(' | ', $titleArray)));
echo head($head);
if (get_option('scripto_image_viewer') == 'openlayers') {
    echo '<link href="' . css_src('ol') . '" media="all" rel="stylesheet" type="text/css" >';
    echo js_tag('ol');
}
?>
<script type="text/javascript">
jQuery(document).ready(function() {

    // Handle edit transcription page.
    jQuery('#scripto-transcription-page-edit').click(function() {
        jQuery('#scripto-transcription-page-edit').
            prop('disabled', true).
            text('<?php 
echo __('Editing transcription...');
?>
');
        jQuery.post(
            <?php 
echo js_escape(url('scripto/index/page-action'));
?>
,
            {
                page_action: 'edit',
                page: 'transcription',
                item_id: <?php 
示例#8
0
if ($coverFile) {
    ?>
    <link rel="apple-touch-icon" href="<?php 
    echo $coverFile->getWebPath('thumbnail');
    ?>
" />
    <?php 
}
?>
    <title><?php 
echo $title;
?>
</title>
    <!-- Stylesheets -->
    <link rel="stylesheet" href="<?php 
echo css_src('BookReader');
?>
" />
    <!-- JavaScripts -->
    <?php 
echo js_tag('jquery-1.4.2.min');
echo js_tag('jquery-ui-1.8.5.custom.min');
echo js_tag('dragscrollable');
echo js_tag('jquery.colorbox-min');
echo js_tag('jquery.ui.ipad');
echo js_tag('jquery.bt.min');
echo js_tag('BookReader');
echo js_tag('ToCmenu');
?>
</head>
<body>