Visualizzazione risultati 1 fino 2 di 2

Discussione: Urgente errore di sistema !!!

  1. #1
    Guest

    Exclamation Urgente errore di sistema !!!

    Ho incasinato non so che è mi servirebbe aiuto urgente Parse error: syntax error, unexpected '=' in /membri/bubblesstreaming/blog/wp-content/themes/arras/library/slideshow.php on line 38
    ho copiato il codice online ma non funziona mi da quel errore
    Codice PHP:
    <?php

    function arras_add_slideshow() {
    global
    $post_blacklist, $paged;
    if ( !
    is_home() || $paged ) return false;

    $slideshow_cat = arras_get_option('slideshow_cat');

    if (
    arras_get_option('enable_slideshow') == false) return false;

    $query = arras_prep_query( array(
    'list' => $slideshow_cat,
    'taxonomy' => arras_get_option('slideshow_tax'),
    'query' => array(
    'posts_per_page' => arras_get_option('slideshow_count'),
    'exclude' => $post_blacklist,
    'post_type' => arras_get_option('slideshow_posttype'),
    'paged' => $paged
    )
    ) );

    $q = new WP_Query( apply_filters('arras_slideshow_query', $query) );
    if (
    $q->have_posts()) :
    ?>
    <!-- Featured Slideshow -->
    <div class="featured clearfix">
    <?php if ($q->post_count > 1) : ?>
    <div id="controls">
    <a href="" class="prev"><?php _e('Prev', 'arras') ?></a>
    <a href="" class="next"><?php _e('Next', 'arras') ?></a>
    </div>
    <?php endif ?>
    <div id="featured-slideshow">
    <?php $count = 0; ?>

    <?php while ($q->have_posts()) : $q->the_post(); ?>
    <div class="featured-slideshow-inner" <?php if ($count != 0) echo 'style="display: none"'; ?>>
    <a class="featured-article" href="<?php the_permalink(); ?>" rel="bookmark">
    <?php echo arras_get_thumbnail('featured-slideshow-thumb'); ?>
    </a>
    <div class="featured-entry">
    <a class="entry-title" href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a>
    <div class="entry-summary"><?php the_excerpt() ?></div>
    <div class="progress"></div>
    </div>
    </div>
    <?php
    arras_blacklist_duplicates
    (); // required for duplicate posts function to work.
    $count++; endwhile; ?>
    </div>
    </div>
    <?php endif;
    }

    add_action('arras_above_content', 'arras_add_slideshow');

    function
    arras_add_slideshow_js() {
    ?>
    <script type="text/javascript">
    jQuery(document).ready(function($) {

    <?php if (is_home() || is_front_page()) : ?>
    $('#featured-slideshow').cycle({
    fx: 'fade',
    speed: 250,
    next: '#controls .next',
    prev: '#controls .prev',
    timeout: 6000,
    pause: 1,
    slideExpr: '.featured-slideshow-inner',
    height: '<?php echo $size['h']; ?>px'
    });
    <?php endif ?>

    });
    </script>
    <?php
    }
    add_action('wp_footer', 'arras_add_slideshow_js');

    function
    arras_load_slideshow_scripts() {
    if ( (
    arras_get_option('enable_slideshow') ) && is_home() || is_front_page() ) {
    wp_enqueue_script('jquery-cycle', get_template_directory_uri() . '/js/jquery.cycle.min.js', array( 'jquery' ), null, true);
    }
    }
    add_action('wp_head', 'arras_load_slideshow_scripts');

    function
    arras_add_slideshow_thumb_size() {
    $layout = arras_get_option('layout');

    if (
    strpos($layout, '1c') !== false ) {
    $size = array(950, 450);
    } else if (
    preg_match('/3c/', $layout) ) {
    $size = array(490, 225);
    } else {
    $size = array(640, 300);
    }

    $size = apply_filters('arras_slideshow_thumb_size', $size);
    arras_add_image_size( 'featured-slideshow-thumb', __('Featured Slideshow', 'arras'), $size[0], $size[1]);
    }
    add_action('arras_add_default_thumbnails', 'arras_add_slideshow_thumb_size', 5);

    function
    arras_slideshow_styles() {
    $slideshow_size = arras_get_image_size('featured-slideshow-thumb');
    $slideshow_size_w = $slideshow_size['w'];
    $slideshow_size_h = $slideshow_size['h'];
    ?>
    .featured { height: <?php echo $slideshow_size_h + 10 ?>px; }
    .featured-article { width: <?php echo $slideshow_size_w ?>px; height: <?php echo $slideshow_size_h ?>px; }
    .featured-article img { width: <?php echo $slideshow_size_w ?>px; height: <?php echo $slideshow_size_h ?>px; }
    #controls { width: <?php echo $slideshow_size_w - 30 ?>px; top: <?php echo ($slideshow_size_h / 2) - 15 ?>px; }
    #controls .next { left: <?php echo $slideshow_size_w - 30 ?>px; }
    .featured-entry { height: <?php echo ceil($slideshow_size_h / 3) ?>px; top: -<?php echo ceil($slideshow_size_h / 3) ?>px; }
    .featured-slideshow-inner { height: <?php echo $slideshow_size_h ?>px }
    <?php
    }
    add_action('arras_custom_styles', 'arras_slideshow_styles');

    /* End of file slideshow.php */
    /* Location: ./library/slideshow.php */
    Ultima modifica di bubblesstreaming : 15-04-2013 alle ore 18.37.34

  2. #2
    Guest

    Predefinito

    Ok Risolto dal panello Altervista grazie

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •