removed soundcloud player
This commit is contained in:
@@ -1441,18 +1441,18 @@ Drupal.behaviors.init_timeline.attach = function (context) {
|
||||
var ap = ap || false;
|
||||
// console.log('_initPaScPlayer');
|
||||
// $.paScPlayer.stopAll();
|
||||
var $links = $('a[rel="soundcloud"]', $container);
|
||||
// // console.log('$links', $links);
|
||||
if($links.size()){
|
||||
// $links.parents('.field-item').find('span.ext').remove();
|
||||
// $links.paScPlayer({autoplay:ap});
|
||||
/* add players for each link */
|
||||
for ( var i = 0; i < $links.length; i++ ) {
|
||||
$links[i].parentNode.replaceChild(
|
||||
SCPurePlayer.create($links[i]), $links[i]
|
||||
);
|
||||
}
|
||||
}
|
||||
// var $links = $('a[rel="soundcloud"]', $container);
|
||||
// // // console.log('$links', $links);
|
||||
// if($links.size()){
|
||||
// // $links.parents('.field-item').find('span.ext').remove();
|
||||
// // $links.paScPlayer({autoplay:ap});
|
||||
// /* add players for each link */
|
||||
// for ( var i = 0; i < $links.length; i++ ) {
|
||||
// $links[i].parentNode.replaceChild(
|
||||
// SCPurePlayer.create($links[i]), $links[i]
|
||||
// );
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
_initPaScPlayer();
|
||||
|
||||
@@ -14,8 +14,8 @@ stylesheets[all][] = "fonts/museo_webfont_kit/MyFontsWebfontsKit.css"
|
||||
stylesheets[all][] = "js/libs/timeline/timeline.css"
|
||||
stylesheets[all][] = "js/libs/jquery.jscrollpane.css"
|
||||
; stylesheets[all][] = "js/libs/soundcloudcustomplayer/css/pa-sc-player.css"
|
||||
stylesheets[all][] = "js/libs/soundcloud-pure-player/css/sc-player-standard/structure-horizontal.css"
|
||||
stylesheets[all][] = "js/libs/soundcloud-pure-player/css/sc-player-standard/colors-blue.css"
|
||||
; stylesheets[all][] = "js/libs/soundcloud-pure-player/css/sc-player-standard/structure-horizontal.css"
|
||||
; stylesheets[all][] = "js/libs/soundcloud-pure-player/css/sc-player-standard/colors-blue.css"
|
||||
stylesheets[all][] = "css/listnav.css"
|
||||
stylesheets[all][] = "css/styles.css"
|
||||
; non-semantic helper classes
|
||||
@@ -32,7 +32,7 @@ scripts[] = "js/libs/mwheelIntent.js"
|
||||
scripts[] = "js/libs/jquery.history.js"
|
||||
; scripts[] = "js/libs/soundcloudcustomplayer/js/soundcloud.player.api.js"
|
||||
; scripts[] = "js/libs/soundcloudcustomplayer/js/pa-sc-player.js"
|
||||
scripts[] = "js/libs/soundcloud-pure-player/js/sc-player.js"
|
||||
; scripts[] = "js/libs/soundcloud-pure-player/js/sc-player.js"
|
||||
scripts[] = "js/libs/jquery.listnav-2.1.js"
|
||||
scripts[] = "js/libs/jquery-cookie-master/jquery.cookie.js"
|
||||
scripts[] = "js/script.js"
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file field.tpl.php
|
||||
* Default template implementation to display the value of a field.
|
||||
*
|
||||
* This file is not used and is here as a starting point for customization only.
|
||||
* @see theme_field()
|
||||
*
|
||||
* Available variables:
|
||||
* - $items: An array of field values. Use render() to output them.
|
||||
* - $label: The item label.
|
||||
* - $label_hidden: Whether the label display is set to 'hidden'.
|
||||
* - $classes: String of classes that can be used to style contextually through
|
||||
* CSS. It can be manipulated through the variable $classes_array from
|
||||
* preprocess functions. The default values can be one or more of the
|
||||
* following:
|
||||
* - field: The current template type, i.e., "theming hook".
|
||||
* - field-name-[field_name]: The current field name. For example, if the
|
||||
* field name is "field_description" it would result in
|
||||
* "field-name-field-description".
|
||||
* - field-type-[field_type]: The current field type. For example, if the
|
||||
* field type is "text" it would result in "field-type-text".
|
||||
* - field-label-[label_display]: The current label position. For example, if
|
||||
* the label position is "above" it would result in "field-label-above".
|
||||
*
|
||||
* Other variables:
|
||||
* - $element['#object']: The entity to which the field is attached.
|
||||
* - $element['#view_mode']: View mode, e.g. 'full', 'teaser'...
|
||||
* - $element['#field_name']: The field name.
|
||||
* - $element['#field_type']: The field type.
|
||||
* - $element['#field_language']: The field language.
|
||||
* - $element['#field_translatable']: Whether the field is translatable or not.
|
||||
* - $element['#label_display']: Position of label display, inline, above, or
|
||||
* hidden.
|
||||
* - $field_name_css: The css-compatible field name.
|
||||
* - $field_type_css: The css-compatible field type.
|
||||
* - $classes_array: Array of html class attribute values. It is flattened
|
||||
* into a string within the variable $classes.
|
||||
*
|
||||
* @see template_preprocess_field()
|
||||
* @see theme_field()
|
||||
*/
|
||||
?>
|
||||
<?php //dsm($items, '$items '.$label); ?>
|
||||
<?php if(count($items)): ?>
|
||||
<section class="<?php print $classes; ?>"<?php print $attributes; ?>>
|
||||
<?php if (!$label_hidden): ?>
|
||||
<div class="field-label"<?php print $title_attributes; ?>><?php print $label ?>: </div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="field-items"<?php print $content_attributes; ?>>
|
||||
<?php foreach ($items as $delta => $item): ?>
|
||||
<div class="field-item <?php print $delta % 2 ? 'odd' : 'even'; ?>"<?php print $item_attributes[$delta]; ?>>
|
||||
<audio src="<?php print render($item); ?>" controls></audio>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</section>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user