Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- JHtml::_('jquery.framework'); //jquery for joomla 3.0
- JHtml::_('bootstrap.framework'); // how to add twitter bootstrap in joomla
- $image.= '<div class="cbresponsivefbpgkstrmbsimg" style="float:left;margin:2px 5px 0 5px;'.$leftmarginstyle.'">';
- $image.= '<div class="cbresponsivefbpgkstrmphoto" style="">';
- $image.= '<a style="cursor:pointer;" class="cbrfbstrmimg cbresponsivefbpgkstrmanchor tbpop" href="' . (($pinopen == 'pop') ? '#' : $anchorhref ) . '" target="_blank" '.$tooltipattr.' data-target="#cbresponsivefbpgkstrm'.$itemkey.'img'.$thumbindex.'" iframesrc="" vidhost="">';
- //$image.= '<div style="max-width:'.$thimbdimension.'px;" >';
- $image.= '<img style="max-width:'.$thimbdimension.'px;" class="cbresponsivefbpgkstrmitemthumb" src="' . $imgsrc . '" alt="fbthumb" />';
- //$image.= '</div>';
- $image.= '</a>';
- $image.= '</div>';
- if($pinopen == 'pop' && $tooltipimg){
- //$image.= '<div style="margin:2px 5px 0 0;">';style="width:auto; margin-left:-150px;"
- $image .= '<div id="cbresponsivefbpgkstrm'.$itemkey.'img'.$thumbindex.'" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display:none;max-width:500px;width:auto;">';
- $image .= '<div class="modal-header">';
- $image .= '<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button><div style="clear:both;"></div>';
- $image .= '</div>';
- $image .= '<div class="modal-body" style="overflow:hidden;">';
- $image .= '<img style="" src="'.$tooltipimg.'" />';
- $image .= '</div>';
- $image .= '<div class="modal-footer">';
- $image .= '<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>';
- $image .= '</div>';
- $image .= '</div>';
- //$image .= '</div>';
- }
- $image .= '</div>';
- //javascript for adding modal
- if($pinopen == 'pop'){
- $modaljs = 'jQuery(document).ready(function(){
- jQuery("a.cbresponsivefbpgkstrmanchor").click(function(event){
- event.preventDefault();
- var id = jQuery(this).data("target");
- jQuery(id).modal();
- //console.log(id);
- });
- '.$bsmodaljs.'
- });';
- $doc->addScriptDeclaration($modaljs);
- }
Advertisement
Add Comment
Please, Sign In to add comment