Skip to content

Instantly share code, notes, and snippets.

@dlenettr
Created December 18, 2016 08:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlenettr/a657963f1c0460a36eeb06892d6717c7 to your computer and use it in GitHub Desktop.
Save dlenettr/a657963f1c0460a36eeb06892d6717c7 to your computer and use it in GitHub Desktop.
Film Reader Resim Galerisi Düzenleme (2459)
// Ekran Görüntüleri Eklentisi
$_temp = explode("<br />", $xfieldsdata['screens'] );
if ( count( $_temp ) > 0 ) {
$html = "<ul class=\"movie-images\" style=\"display: block;\">";
foreach( $_temp as $link ) {
if ( ! empty( $link ) ) {
$html .= "<li class=\"image\"><a class=\"swipebox\" title=\"\" href=\"" . $link . "\"><img alt=\"screen\" src=\"" . $link . "\" title=\"Scene 1\"><span><i class=\"fa fa-search-plus\">&nbsp;</i></span></a></li>";
}
}
$html .= "</ul>";
$tpl->set( "{screen-shots}", $html ); unset( $_temp );
} else {
$tpl->set( "{screen-shots}", "" );
}
// Ekran Görüntüleri Eklentisi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment