Prettyphoto API and other features
I am using PrettyPhoto to create a gallery. I have implemented an API to launch the gallery as soon as possible. This is the code and it works.
<!DOCTYPE html>
<html>
<head>
<title>jQuery lightbox clone - prettyPhoto - by Stephane Caron</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="js/jquery-1.6.1.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
<script src="js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$().prettyPhoto()
api_images = ['images/fullscreen/2.jpg'];
$.prettyPhoto.open(api_images);
});
</script>
</head>
<body>
</body>
</html>
Now I need to remove some things from the gallery like social buttons. There is the documentation here, the Customization section has what I need. I have to use the social_tools parameter and set it to false, how can I insert it into the code above?
Regards
Edit: Solved! You just need to put this instruction in a simplex argument, for example:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$().prettyPhoto({social_tools: false, modal: true, allow_resize: true})
api_images = ['images/fullscreen/2.jpg'];
$.prettyPhoto.open(api_images);
social_tools: false;
});
</script>
+3
BAD_SEED
source
to share
No one has answered this question yet
Check out similar questions:
1262
1184
1017
1011
3
2
1
1
0
-2