Revision 5aad14fb
Added by David Taylor about 15 years ago
modules/cdm_dataportal/cdm_dataportal.theme.php | ||
---|---|---|
847 | 847 |
*/ |
848 | 848 |
function theme_cdm_taxon_page_images($taxonTO){ |
849 | 849 |
|
850 |
$descriptions = $taxonTO->featureTree->descriptions; |
|
851 |
foreach($descriptions as $descriptionTo){ |
|
852 |
$features = $descriptionTo->features; |
|
853 |
foreach($features as $featureTo){ |
|
854 |
if($featureTo->feature->term == 'Image'){ |
|
855 |
$flashLink = count($featureTo->descriptionElements) > 0; |
|
856 |
break; |
|
857 |
} |
|
858 |
} |
|
859 |
} |
|
860 |
|
|
861 |
if($flashLink){ |
|
862 |
|
|
863 |
$taggedName = $taxonTO->name->taggedName; |
|
864 |
|
|
865 |
$nameArray = array(); |
|
866 |
foreach($taggedName as $taggedText){ |
|
867 |
if($taggedText->type == 'name'){ |
|
868 |
$nameArray[] = $taggedText->text; |
|
869 |
} |
|
870 |
} |
|
871 |
|
|
872 |
$query = join("%5F", $nameArray) . '%20AND%20jpg'; |
|
873 |
|
|
874 |
$out = ' |
|
875 |
|
|
876 |
<script type="text/javascript" src="http://media.bgbm.org/erez/js/fsiwriter.js"></script> |
|
877 |
|
|
878 |
<script type="text/javascript"> |
|
879 |
<!-- |
|
880 |
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¶m_backgroundcolor=454343&publishwmode=opaque&showcase_hscroll=true&showcase_basecolor=454343&plugins=PrintSave,textbox", |
|
881 |
"http://media.bgbm.org/erez/erez?src=erez-private/flashrequired.svg&tmp=Large&quality=97&width=470&height=400", |
|
882 |
"width=470;height=400;bgcolor=454343;wmode=opaque"); |
|
883 |
// --> |
|
884 |
</script> |
|
885 |
<noscript> |
|
886 |
<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"> |
|
887 |
<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¶m_backgroundcolor=454343&publishwmode=opaque&showcase_hscroll=true&showcase_basecolor=454343plugins=PrintSave,textbox"/> |
|
888 |
<param name="bgcolor" value="454343" /> |
|
889 |
<param name="wmode" value="opaque" /> |
|
890 |
<param name="allowscriptaccess" value="always" /> |
|
891 |
<param name="allowfullscreen" value="true" /> |
|
892 |
<param name="quality" value="high" /> |
|
893 |
<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¶m_backgroundcolor=454343&publishwmode=opaque&showcase_hscroll=true&showcase_basecolor=454343plugins=PrintSave,textbox" |
|
894 |
width="470" |
|
895 |
height="400" |
|
896 |
bgcolor="454343" |
|
897 |
wmode="opaque" |
|
898 |
allowscriptaccess="always" |
|
899 |
allowfullscreen="true" |
|
900 |
quality="high" |
|
901 |
type="application/x-shockwave-flash" |
|
902 |
pluginspage="http://www.adobe.com/go/getflashplayer"> |
|
903 |
</embed> |
|
904 |
</object> |
|
905 |
|
|
906 |
</noscript>'; |
|
907 |
|
|
908 |
}else{ |
|
909 |
$out = 'No images available.'; |
|
910 |
|
|
911 |
} |
|
912 |
return $out; |
|
913 |
|
|
850 | 914 |
} |
851 | 915 |
|
852 | 916 |
function theme_cdm_reference_pager($referencePager, $path, $parameters = array()){ |
Also available in: Unified diff
implementation of image function & other formatting changes