Hallo Leute, ich habe mir vor kurzem ein Template gekauft und bin am verzweifeln da ich einfach nicht weiter komme.Habe mir etliche Seiten durch gelesen und komme einfach nicht weiter. Das schlimmste an der Sache ist, dass der Support der Firma mir auch keine Antwort gibt.Nach längerem forschen habe ich heraus gefunden, dass sich seit 2010 auf der Webseite nichts mehr geändert hat :(
Würde mich echt freuen wenn mir da jemand weiter helfen könnte.
PHP
<?php get_header(); ?>
<?php $loc = get_bloginfo('template_url'); ?>
<?php
$width = (!get_settings("ftoptions_video_width")) ? '500' : get_settings("ftoptions_video_width");
$width = '700';
$height = (!get_settings("ftoptions_video_height")) ? '300' : get_settings("ftoptions_video_height");
$height = '350';
?>
<div id="featured" style="height: <?php echo $height; ?>px; display: ; ">
<a id="prev" href="#"><span>Previous</span></a>
<a id="next" href="#"><span >Next</span></a>
<div id="slideshow" class="pics" style="height: <?php echo $height; ?>px;">
<?php
$num=0;
$featuredCategory = get_settings( "ftoptions_featured_category_name" );
if($featuredCategory != "") { query_posts('showposts=10&category_name='.$featuredCategory.''); }
else { query_posts('showposts=10'); }
?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $thePostID = $wp_query->post->ID; ?>
<?php
$num++;
$postImage = get_post_meta($post->ID, "background_image_value", $single = true);
if($postImage == "")
{
$postImage = get_post_image(0, "full", false);
}
$postImage = get_bloginfo('template_directory') . "/timthumb.php?src=" . $postImage . "&h=".$height."&w=".$width."&zc=0";
?>
<a href="<?php the_permalink() ?>" style="background: url('<?php echo $postImage; ?>') repeat-x; width: <?php echo $width; ?>px; height: <?php echo $height; ?>px;">
<div class="panelDiv">
<div style="padding: 10px;">
<h2><?php the_title(); ?></h2>
<?php the_excerpt(__('(more...)')); ?>
<br><img src="<?php bloginfo('template_directory'); ?>/images/watchNowBtn.png">
</div>
</div>
</a>
<?php endwhile; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?>
<?php endif; ?>
</div>
</div>
<style>
#prev, #next {
height: <?php echo $height; ?>px;
}
</style>
<div class="clear"></div>
<div class="stripNav" style="display: ;"><ul id="sliderNav"></ul></div>
<?php
if($num!=1)
{
?>
<script type="text/javascript">
$(function() {
$('#slideshow').cycle({
fx: 'scrollHorz',
speed: 'slow',
timeout: 5000,
prev: '#prev',
next: '#next',
pager: '#sliderNav',
pagerAnchorBuilder: pagerFactory
});
function pagerFactory(idx, slide) {
var s = idx > 2 ? ' style="display:none"' : '';
//return '<li><a href="#"><span>'+(idx+1)+'</span></a></li>';
return '<li><a href="#"><img width=15px height=7px src="<?php bloginfo("template_directory"); ?>/images/10x10spacer.gif"></a></li>';
};
});
$("#slideshow a").each(
function(intIndex) {
width = $(document).width();
featureWidth=720;
margin=(width-featureWidth-100)/2;
style=$(this).attr('style');
$(this).attr('style', style + '; margin-left: '+margin+'px; width: 720px; height: 375px;');
}
);
</script>
<?php
}
?>
<div id="content">
<div id="left-col">
<?php
$i = 0;
$stickyCategories1 = get_settings("ftoptions_sticky_categories_1");
global $q5_opposite;
$q5 = "";
if($stickyCategories1)
{
foreach ($stickyCategories1 as $value)
{
$value = str_replace(" ", "-",$value);
$id123 = get_cat_id($value);
if($id123 != "") {
$q5 = $q5 . $id123 . ",";
$q5_opposite = $q5_opposite . "-" . $id123 . ",";
}
}
$q5 = substr($q5, 0, strlen($q5)-1);
$q5_opposite = substr($q5_opposite, 0, strlen($q5_opposite)-1);;
}
?>
<div class="subheading">
<div class="left" style="font-weight: bold;">FEATURED VIDEOS</div>
<div class="right" style="font-size: 90%; "><b>DISPLAY </b> <a style="cursor: pointer;" onClick="showGallery();"><img src="<?php echo $loc; ?>/images/gallery_icon.png" border=0></a> <a onClick="showDetail();"><img style="cursor: pointer;" src="<?php echo $loc; ?>/images/detail_icon.png" border=0></a></div>
<div class="clear"></div>
</div>
<div class="clear"></div>
<?php query_posts('showposts=9&cat='.$q5); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php $thePostID = $wp_query->post->ID; ?>
<?php
$postImage = get_post_meta($post->ID, "thumbnail_image_value", $single = true);
if($postImage == "")
{
$postImage = get_post_image(0, "medium", false);
}
$postImage = get_bloginfo('template_directory') . "/timthumb.php?src=" . $postImage . "&h=100&w=175&zc=1";
?>
<?php $i++; ?>
<?php //if($i != 20) { $alt = 'first';} else { $alt = 'last';} ?>
<div id="<?php echo the_ID(); ?>_box" class="box <?php echo $alt; ?>">
<!-- Show Comments-->
<?php comments_popup_link('0','1','%','commentsBg','');?>
<!-- Show Image -->
<div class="box_image">
<?php $playImg = get_bloginfo('template_directory') . "/images/play.png"; ?>
<a href="<?php the_permalink() ?>" rel="bookmark">
<img src="<?php echo $playImg; ?>" id="overlayimg" style="background-image: url(<?php echo $postImage; ?>);" alt="" title="<?php the_title(); ?>"/>
</a>
</div>
<div class="box_detail">
<!-- Show Title-->
<h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php trimThis(get_the_title()); ?></a></h3>
<!-- Show Ratings -->
<?php $u_time = get_the_time('l, F j, Y'); ?>
<div class="ratings"><?php if(function_exists('the_ratings')) { the_ratings(); } else { showRatings(false); } ?></div>
<div class="box_description" style="line-height: normal; display: none; text-align: left;">
<small class="super_light"><?php the_time('F jS, Y'); ?>, by <?php the_author(); ?></small>
<div style='margin-top: 5px; line-height: normal;'><?php the_excerpt(); ?></div>
<div class="smaller light_blue" style="margin-top: 5px;">
<!-- Show Categories -->
<?php comments_popup_link('No Comments', '1 Comment', '% Comments',''); ?> | <?php the_category(' • '); ?> | By <?php the_author(); ?> <?php edit_post_link('Edit', '[', ']'); ?>
</div>
</div>
</div>
</div>
<?php if($alt == "last") { echo "<div class='clear'></div>"; } ?>
<?php endwhile; else: ?>
<?php _e('Sorry, no posts matched your criteria.'); ?>
<?php endif; ?>
</div>
<div id="right-col">
<?php get_sidebar(); ?>
</div>
<div class="clear"></div>
</div>
<?php get_footer(); ?>
Alles anzeigen