Project

General

Profile

« Previous | Next » 

Revision 3d143b33

Added by Andreas Kohlbecker almost 13 years ago

new sub module fsi_gallery - fixing: #2469 (FSI gallery copyright statement configurable), #2386 (FSI gallery query configurable)

View differences:

themes/garland_cichorieae/template.php
230 230

  
231 231

  
232 232

  
233

  
234

  
235

  
236
function garland_cichorieae_cdm_taxon_page_images($taxon, $media){
237

  
238
	$flashLink = isset($media[0]);
239

  
240
	if($flashLink){
241

  
242
		$taggedName = $taxon->name->taggedName;
243

  
244
		$nameArray = array();
245
		foreach($taggedName as $taggedText){
246
			if($taggedText->type == 'name'){
247
				$nameArray[] = $taggedText->text;
248
			}
249
		}
250

  
251
		$query = join("%5F", $nameArray) . '%20AND%20EditWP6%20AND%20jpg';
252

  
253
		$out = '
254

  
255
<script type="text/javascript" src="http://media.bgbm.org/erez/js/fsiwriter.js"></script>
256

  
257
<script type="text/javascript">
258
<!--
259
	writeFlashCode( "http://media.bgbm.org/erez/fsi/fsi.swf?&cfg=showcase_presets/showcase_info.fsi&effects=%26quality%3D95&showcase_query='.$query.'&skin=silver&showcase_labeltextheight=50&textbox_textfrom=IPTC_WP6&textbox_height=50&param_backgroundcolor=454343&publishwmode=opaque&showcase_hscroll=true&showcase_basecolor=454343&plugins=textbox,fullscreen",
260
		"http://media.bgbm.org/erez/erez?src=erez-private/flashrequired.svg&tmp=Large&quality=97&width=620&height=400",
261
		"width=620;height=400;bgcolor=454343;wmode=opaque");
262
// -->
263
</script>
264
<noscript>
265
	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" width="470" height="400">
266
		<param name="movie" value="http://media.bgbm.org/erez/fsi/fsi.swf?&cfg=showcase_presets/showcase_info.fsi&effects=%26quality%3D95&showcase_query='.$query.'&skin=silver&showcase_labeltextheight=50&textbox_textfrom=IPTC_WP6&textbox_height=50&param_backgroundcolor=454343&publishwmode=opaque&showcase_hscroll=true&showcase_basecolor=454343plugins=textbox,fullscreen"/>
267
		<param name="bgcolor" value="454343" />
268
		<param name="wmode" value="opaque" />
269
		<param name="allowscriptaccess" value="always" />
270
		<param name="allowfullscreen" value="true" />
271
		<param name="quality" value="high" />
272
		<embed src="http://media.bgbm.org/erez/fsi/fsi.swf?&cfg=showcase_presets/showcase_info.fsi&effects=%26quality%3D95&showcase_query='.$query.'&skin=silver&showcase_labeltextheight=50&textbox_textfrom=IPTC_WP6&textbox_height=50&param_backgroundcolor=454343&publishwmode=opaque&showcase_hscroll=true&showcase_basecolor=454343plugins=PrintSave,textbox,fullscreen"
273
			width="620"
274
			height="400"
275
			bgcolor="454343"
276
			wmode="opaque"
277
			allowscriptaccess="always"
278
			allowfullscreen="true"
279
			quality="high"
280
			type="application/x-shockwave-flash"
281
			pluginspage="http://www.adobe.com/go/getflashplayer">
282
		</embed>
283
	</object>
284

  
285
</noscript>';
286

  
287
	}else{
288
		$out = 'No images available.';
289

  
290
	}
291
	return $out;
292
}
293

  
294
function garland_cichorieae_cdm_taxon_page_images_cichorieae_copyright(){
295
	$default_theme = variable_get('theme_default', 'garland_cichorieae');
296
	if ($default_theme == 'cyprus'){
297
		$out = '<div id="cyprus-copyright">';
298
        $out .= '<p>';
299
        //$out .= '&copy; Images used on this website remain copyright of the individual photographer.<br> To obtain permission to use images in publications or websites please contact the network at <a href="edit-wp6-cichorieae@bgbm.org">edit-wp6-cichorieae@bgbm.org</a>. Images may be used for personal use, such as PowerPoint presentations, without permission.';
300
        $out .= '&copy; Images used on this website remain copyright of the individual photographer.<br> To obtain permission to use images in publications or websites please contact the editors at <a href="r.hand@bgbm.org">r.hand@bgbm.org</a>. Images may be used for personal use, such as PowerPoint presentations, without permission.';
301
        $out .= '</p>';
302
        $out .= '</div>';
303
	}else{
304
		$out = '<div id="cichorieae-copyright">';
305
        $out .= '<p>';
306
        $out .= '&copy; Images used on this website remain copyright of the individual photographer.<br> To obtain permission to use images in publications or websites please contact the network at <a href="edit-wp6-cichorieae@bgbm.org">edit-wp6-cichorieae@bgbm.org</a>. Images may be used for personal use, such as PowerPoint presentations, without permission.';
307
        $out .= '</p>';
308
        $out .= '</div>';
309
	}
310

  
311

  
312
	return $out;
313
}
314

  
315 233
/**
316 234
 * @overrides theme_cdm_taggedtext2html in order to replace t.infr and t.infgen. with '[unranked]'
317 235
 */

Also available in: Unified diff