'en', 'fr'=>'fr', 'es'=>'es', 'de'=>'de', 'it'=>'it', 'pt'=>'pt', 'ru'=>'ru', 'ja'=>'jp', 'zh'=>'cn', 'kr'=>'kr' ); if ( empty($attributes['lang']) ) { $attributes['lang'] = ( !empty($language) && !empty($languages[$language]) ) ? $languages[$language] : 'en'; } // Prepare viewer and link URLs $book_url = 'http://calameo.com/books/' . $attributes['code'] . ( !empty($attributes['authid']) ? '?authid=' . $attributes['authid'] : '' ); $home_url = 'http://calameo.com'; $publish_url = 'http://calameo.com/upload'; $browse_url = 'http://calameo.com/browse/weekly/?o=7&w=DESC'; // Preparing Flashvars $flashvars = 'bkcode=' . $attributes['code']; $flashvars .= '&langid=' . $attributes['lang']; $flashvars .= '&page=' . $attributes['page']; switch ( $attributes['mode'] ) { case 'mini': if ( empty($attributes['width']) )$attributes['width'] = '240'; if ( empty($attributes['height']) ) $attributes['height'] = '150'; if ( empty($attributes['clickto']) ) $attributes['clickto'] = 'public'; if ( empty($attributes['clicktarget']) ) $attributes['clicktarget'] = '_self'; if ( empty($attributes['clicktourl']) ) $attributes['clicktourl'] = ''; if ( empty($attributes['autoflip']) ) $attributes['autoflip'] = '0'; if ( empty($attributes['showarrows']) ) $attributes['showarrows'] = '1'; $viewer_url = 'http://v.calameo.com/2.0/cmini.swf'; $flashvars .= '&clickTo=' . urlencode($attributes['clickto']); $flashvars .= '&clickTarget=' . urlencode($attributes['clicktarget']); $flashvars .= '&clickToUrl=' . urlencode($attributes['clicktourl']); $flashvars .= '&autoFlip=' . max(0, intval($attributes['autoflip'])); $flashvars .= '&showArrows=' . ( !empty($attributes['showarrows']) ? '1' : '0' ); $flashvars .= '&mode=embed'; break; case 'book': default: if ( empty($attributes['width']) )$attributes['width'] = ''; if ( empty($attributes['height']) ) $attributes['height'] = '400'; if ( !empty($attributes['view']) ) $flashvars .= '&viewModeAtStart=' . $attributes['view']; if ( !empty($attributes['authid']) ) $flashvars .= '&authid=' . $attributes['authid']; $viewer_url = 'http://v.calameo.com/2.0/cviewer.swf'; break; } // Sizes and units $attributes['widthUnit'] = ( strpos($attributes['width'], '%') ) ? '' : 'px'; $attributes['heightUnit'] = ( strpos($attributes['height'], '%') ) ? '' : 'px'; // Generate HTML embed code $html = '
'; if ( empty($attributes['hidelinks']) ) $html .= '
' . $attributes['title'] . '
'; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; $html .= ''; if ( !empty($attributes['wmode']) ) $html .= ''; $html .= ''; $html .= ''; if ( empty($attributes['hidelinks']) ) $html .= '
Publish at Calaméo or browse the library.
'; $html .= '
'; // return $html; } add_filter('the_content', 'calameo_parse'); ?> elezioni-genitori-300×261 – Istituto Omnicomprensivo Luigi Pirandello
di Lampedusa e Linosa