';
$shadow = ($options['style_shadow']?'APTFTbyTAP-img-shadow':'APTFTbyTAP-img-noshadow');
$border = ($options['style_border']?'APTFTbyTAP-img-border':'APTFTbyTAP-img-noborder');
$curves = ($options['style_curve_corners']?'APTFTbyTAP-img-corners':'APTFTbyTAP-img-nocorners');
$highlight = ($options['style_highlight']?'APTFTbyTAP-img-highlight':'APTFTbyTAP-img-nohighlight');
for($col = 0; $col<$options['style_column_number'];$col++){
$output .= '
';
$output .= '
';
for($i = $col;$i<$options['tumblr_photo_number'];$i+=$options['style_column_number']){
if( $options['tumblr_image_link'] ){ $output .= '
'; }
$output .= '
TAP';
if( !$options['widget_disable_credit_link'] ){
$output .= $APTFTbyTAP_by_link;
}
// Close cascade-parent
$output .= '
';
$output .= '
';
if($APTFTbyTAP_user_link){
if($options['widget_alignment'] == 'center'){ // Optional: Set text alignment (left/right) or center
$output .= '
';
}
else{
$output .= '
'.$APTFTbyTAP_user_link.''; // Only breakline if floating
}
}
// Close container
$output .= '
';
$output .= '
';
$highlight = APTFTbyTAP_get_option("general_highlight_color");
$highlight = ($highlight?$highlight:'#64a2d8');
if( $options['style_shadow'] || $options['style_border'] || $options['style_highlight'] ){
$output .= '';
}
return $output;
}
function APTFTbyTAP_display_hidden($id, $options, $source_results){
$APTFTbyTAP_linkurl = $source_results['image_perms'];
$APTFTbyTAP_photocap = $source_results['image_captions'];
$APTFTbyTAP_photourl = $source_results['image_urls'];
$APTFTbyTAP_user_link = $source_results['user_link'];
$APTFTbyTAP_originalurl = $source_results['image_originals'];
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////// Check Content /////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if($options['tumblr_photo_number'] != count($APTFTbyTAP_linkurl)){$options['tumblr_photo_number']=count($APTFTbyTAP_linkurl);}
for($i = 0;$i
';
// Align photos
$output .= '';
$output .= '
';
$shadow = ($options['style_shadow']?'APTFTbyTAP-img-shadow':'APTFTbyTAP-img-noshadow');
$border = ($options['style_border']?'APTFTbyTAP-img-border':'APTFTbyTAP-img-noborder');
$curves = ($options['style_curve_corners']?'APTFTbyTAP-img-corners':'APTFTbyTAP-img-nocorners');
for($i = 0;$i<$options['tumblr_photo_number'];$i++){
if( $options['tumblr_image_link'] ){ $output .= '
'; }
$output .= '
';
}
if( $options['tumblr_image_link'] ){ $output .= ''; }
}
$output .= '
';
$APTFTbyTAP_by_link = '
';
if( !$options['widget_disable_credit_link'] ){
$output .= $APTFTbyTAP_by_link;
}
// Close vertical-parent
$output .= '
';
if($APTFTbyTAP_user_link){
if($options['widget_alignment'] == 'center'){ // Optional: Set text alignment (left/right) or center
$output .= '';
}
else{
$output .= '
'.$APTFTbyTAP_user_link.''; // Only breakline if floating
}
}
// Close container
$output .= '
';
$disable = APTFTbyTAP_get_option('general_loader');
$highlight = APTFTbyTAP_get_option("general_highlight_color");
$highlight = ($highlight?$highlight:'#64a2d8');
$output .= '';
return $output;
}
?>