End of Support for Joomla 3 - Forum closed

RokSprocket Slideshow: Bild verlinken

RokSprocket Slideshow: Bild verlinken was created by sercosys

Posted 7 years 1 month ago #20327
Template: jp-work
Joomla 3.8.6

Hallo,

ich setze das Modul RokSprocket als Slideshow auf der Startseite ein (wie im Demo). Wenn ich jetzt ein Item verlinke, erscheint immer ein Overlay mit "Read more".
Ich möchte aber, dass ganz schlicht das komplette Bild verlinkt wird (also ohne Overlay, ohne Read more oder sonstigem Text - nur das Bild).

Hab hier schon mal gesucht und bin (allerdings zu einem anderen RokSprocket-Theme) so weit, dass man etwas in der Dateil item.php (/templates/jp-work/roksprocket/layouts/features/themes/slideshow) ändern muß.
Allerdings verlassen mich da meine Programmierkenntnisse.

Meine item-php sieht so aus:
Code:
<?php /** * @version $Id: item.php 27448 2015-03-06 21:03:26Z reggie $ * @author RocketTheme http://www.rockettheme.com * @copyright Copyright (C) 2007 - 2015 RocketTheme, LLC * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only */ /** * @var $item RokSprocket_Item */ ?> <li class="sprocket-features-index-<?php echo $index;?>"> <div class="sprocket-features-img-container sprocket-fullslideshow-image<?php if ($image = $item->getPrimaryImage()== FALSE): echo ' sprocket-none'; endif;?>" data-slideshow-image> <?php if ($image = $item->getPrimaryImage()): ?> <?php if ($item->getPrimaryLink()) : ?> <a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>"><img src="<?php echo $image->getSource(); ?>" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" style="max-width: 100%; height: auto;" /></a> <?php else: ?> <img src="<?php echo $image->getSource(); ?>" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" style="max-width: 100%; height: auto;" /> <?php endif; ?> <?php endif; ?> </div> <div class="sprocket-features-content uk-container uk-container-center<?php if (($parameters->get('features_show_title') && $item->getTitle() == FALSE) && ($parameters->get('features_show_article_text') && $item->getText() == FALSE)) : echo ' sprocket-none'; endif; ?>" data-slideshow-content> <?php if ($parameters->get('features_show_title') && $item->getTitle()) : ?> <h2 data-uk-scrollspy="{cls:'uk-animation-slide-top', delay:600, repeat: true}" class="sprocket-features-title"> <?php echo $item->getTitle(); ?> </h2> <?php endif; ?> <?php if ($parameters->get('features_show_article_text') && ($item->getText() || $item->getPrimaryLink())) : ?> <div data-uk-scrollspy="{cls:'uk-animation-slide-top', delay:300, repeat: true}" class="sprocket-features-desc"> <?php echo $item->getText(); ?><br/> <?php if ($item->getPrimaryLink()) : ?> <a style="margin-top:20px" href="<?php echo $item->getPrimaryLink()->getUrl(); ?>" class="readon uk-button uk-button-primary"><span><?php rc_e('READ_MORE'); ?></span></a> <?php endif; ?> </div> <?php endif; ?> </div> </li>

Bitte um Hilfe, was hier zu ändern ist, um das ganze Bild zu verlinken.

Danke!

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic RokSprocket Slideshow: Bild verlinken

Posted 7 years 1 month ago #20330
Hallo, benutzen sie mal folgenden Code für ihre item.php

<?php
/**
* @version $Id: item.php 27448 2015-03-06 21:03:26Z reggie $
* @author RocketTheme www.rockettheme.com
* @copyright Copyright (C) 2007 - 2015 RocketTheme, LLC
* @license www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/

/**
* @var $item RokSprocket_Item
*/
?>

<li class="sprocket-features-index-<?php echo $index;?>">
<div class="sprocket-features-img-container sprocket-fullslideshow-image<?php if ($image = $item->getPrimaryImage()== FALSE): echo ' sprocket-none'; endif;?>" data-slideshow-image>
<?php
if ($image = $item->getPrimaryImage()):
?>
<?php if ($item->getPrimaryLink()) : ?>
<a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>"><img src="<?php echo $image->getSource(); ?>" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" style="max-width: 100%; height: auto;" /></a>
<?php else: ?>
<img src="<?php echo $image->getSource(); ?>" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" style="max-width: 100%; height: auto;" />
<?php endif; ?>
<?php endif; ?>
</div>
<div class="sprocket-features-content uk-container uk-container-center<?php if (($parameters->get('features_show_title') && $item->getTitle() == FALSE) && ($parameters->get('features_show_article_text') && $item->getText() == FALSE)) : echo ' sprocket-none'; endif; ?>" data-slideshow-content>
<?php if ($parameters->get('features_show_title') && $item->getTitle()) : ?>
<h2 data-uk-scrollspy="{cls:'uk-animation-slide-top', delay:600, repeat: true}" class="sprocket-features-title">
<?php echo $item->getTitle(); ?>
</h2>
<?php endif; ?>

</div>
</li>

Die EInstellungen sollten dann wie folgt aussehen

Attachment Screenshot_4-2-3-4-5-6-7-8-9-10-11-12-13-14-15-16-17-18-19-20.jpg not found

Attachments:

The following user(s) said Thank You: sercosys

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

Joomlaplates/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License