'Look_like_GBo',
'URL' => get_admin_plugin_menu_link(dirname(__FILE__).'/admin/llgbo_admin.php') ));
return $menu; }
/* always display metadata */
function AutoDisplayMetadata()
{global $conf;
If ($conf['LLGBO_SETTINGS'] [2] == 'true' ) // exif under bt
{$_GET['metadata'] = 'O';}
}
// reset nofollow, noindex
function MyBeginheader()
{ global $page,$conf;
If ($conf['LLGBO_SETTINGS'][2] == 'true' ) // reset nofollow, noindex
{ unset ($page['meta_robots']);}
}
// manage H E A D E R
function Myheader()
{global $template,$conf;
$page_name = script_basename();
if ($conf['LLGBO_SETTINGS'] [6] = 'true' )
{$no_header = false;
if ( $page_name == 'index')
{// print_r($_GET.'----'.$page_name );
if ((count ($_GET)) == 0 and ($conf['LLGBO_HEADER'][0] == 'false')) {$no_header = true;}// home
foreach($_GET as $cle =>$valeur)
{//print_r($cle.'_'.$valeur);
if ((strpos( $cle ,'categories') == true ) and ($conf['LLGBO_HEADER'][0] == 'false')) {$no_header = true;}// categories
if ((strpos( $cle ,'category') == true ) and ($conf['LLGBO_HEADER'][1] == 'false')) {$no_header = true;break;}
if ((strpos( $cle ,'filter=') == true ) and ($conf['LLGBO_HEADER'][2] == 'false')) {$no_header = true;break;}
if ((strpos( $cle ,'categories/flat') == true ) and ($conf['LLGBO_HEADER'][3] == 'false')) {$no_header = true;break;}
if ((strpos( $cle ,'categories/posted-monthly-list') == true ) and ($conf['LLGBO_HEADER'][4] == 'false')) {$no_header = true;break;}
if ((strpos( $cle ,'additional_page') == true ) and ($conf['LLGBO_HEADER'][6] == 'false')) {$no_header = true;break;}
if ((strpos( $cle ,'most_visited') == true ) and ($conf['LLGBO_HEADER'][7] == 'false')) {$no_header = true;break;}
if ((strpos( $cle ,'best_rated') == true ) and ($conf['LLGBO_HEADER'][8] == 'false')) {$no_header = true;break;}
if ((strpos( $cle ,'list') == true ) and ($conf['LLGBO_HEADER'][9] == 'false')) {$no_header = true;break;}
if ((strpos( $cle ,'recent_pics') == true ) and ($conf['LLGBO_HEADER'][10] == 'false')) {$no_header = true;break;}
if ((strpos( $cle ,'tags') == true ) and ($conf['LLGBO_HEADER'][11] == 'false')) {$no_header = true;break;}
if ((strpos( $cle ,'created-monthly-list') == true ) and ($conf['LLGBO_HEADER'][12] == 'false')) {$no_header = true;break;}
if ((strpos( $cle ,'favorites') == true ) and ($conf['LLGBO_HEADER'][19] == 'false')) {$no_header = true;break;}
if ((strpos( $cle ,'recent_cats') == true ) and ($conf['LLGBO_HEADER'][20] == 'false')) {$no_header = true;break;}
}
}
//print_r($_GET.'----'.$page_name );
if ( $page_name == 'picture' and $conf['LLGBO_HEADER'][5] == 'false') {$no_header = true;}//picture page
if ( $page_name == 'tags' and $conf['LLGBO_HEADER'][11] == 'false') {$no_header = true;}//tags
if ( $page_name == 'search' and $conf['LLGBO_HEADER'][13] == 'false') {$no_header = true;}//search
if ( $page_name == 'comments' and $conf['LLGBO_HEADER'][14] == 'false') {$no_header = true;}//comments
if ( $page_name == 'about' and $conf['LLGBO_HEADER'][15] == 'false') {$no_header = true;}//about
if ( $page_name == 'notification' and $conf['LLGBO_HEADER'][16] == 'false') {$no_header = true;}//notification
if ( $page_name == 'register' and $conf['LLGBO_HEADER'][17] == 'false') {$no_header = true;} //notification
if ( $page_name == 'identification' and $conf['LLGBO_HEADER'][18] == 'false') {$no_header = true;}//about
if ($no_header == true)
{$template->append('head_elements',"\n".' ');}
}
//
If ($conf['LLGBO_SETTINGS'] [9] == 'true' )
{$template->append('head_elements',"\n".' ');}
} // end header
//* improve functionnalities --> picture.tpl
function DisplayGboLook()
{ global $template,$conf;
$u_metadata = $template->get_template_vars('U_METADATA');
$swt = ' swttips="';
If ($conf['LLGBO_SETTINGS'] [2] == 'true' ) // exif under bt
{ $metadata = $template->get_template_vars('metadata');
if(is_array($metadata))
{foreach($metadata[0] as $cle =>$tableau)
{ if(is_array($tableau))
{foreach($tableau as $cle=>$valeur)
{ $swt= $swt.$cle.' : '.$valeur.'
'; }
} }
$template->assign( 'U_METADATA', $u_metadata.'"'.$swt);
$template->clear_assign('metadata');
} // hide original metadata
}
}
/* ------ Manage picture page---------------- */
function MyPictureOptions($content )
{global $template,$conf,$user;
$sweetcss = '
';
// ----------- add JS tooltip in header ----------------------
If (($conf['LLGBO'][1] == 'true' ) /* tooltip */ or ($conf['LLGBO_SETTINGS'] [2] == 'true' ) /* exif under bt */
or ($conf['LLGBO_SETTINGS'] [4] === 'true' ) /* usemap and Display Thumb */)
{ $javacss = ''."\n";
$template->append('head_elements',$sweetcss); }
// Navigation improvement are always available
$ThePicture = $template->get_template_vars('current');
$next = $template->get_template_vars('next');
$prev = $template->get_template_vars('previous');
$last = $template->get_template_vars('last');
$first = $template->get_template_vars('first');
$swtimg = ' swttips="