コード例 #1
0
ファイル: index.php プロジェクト: phill104/branches
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 3 of the License, or
  (at your option) any later version.
  ********************************************
  $HeadURL$
  $Revision$
  $LastChangedBy$
  $Date$
  **************************************************/
if (!defined('IN_COPPERMINE')) {
    die('Not in Coppermine...');
}
// Initialize language and icons
require_once './plugins/social_bookmarks/init.inc.php';
$social_bookmarks_init_array = social_bookmarks_initialize();
$lang_plugin_social_bookmarks = $social_bookmarks_init_array['language'];
$social_bookmarks_icon_array = $social_bookmarks_init_array['icon'];
echo <<<EOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="{$lang_text_dir}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={$CONFIG['charset']}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{$lang_plugin_social_bookmarks['menu_title']}</title>
<link rel="stylesheet" href="css/coppermine.css" type="text/css" />
<link rel="stylesheet" href="themes/classic/style.css" type="text/css" />
<link rel="stylesheet" href="plugins/social_bookmarks/style.css" type="text/css" />
</head>
<body>
コード例 #2
0
ファイル: codebase.php プロジェクト: phill104/branches
function social_bookmarks_block()
{
    global $CONFIG, $lang_plugin_social_bookmarks, $social_bookmarks_icon_array, $LINEBREAK;
    // Initialize language and icons
    require_once './plugins/social_bookmarks/init.inc.php';
    $social_bookmarks_init_array = social_bookmarks_initialize();
    $lang_plugin_social_bookmarks = $social_bookmarks_init_array['language'];
    $social_bookmarks_icon_array = $social_bookmarks_init_array['icon'];
    // Echo everything into a buffer
    ob_start();
    if ($CONFIG['plugin_social_bookmarks_greyout'] && $CONFIG['plugin_social_bookmarks_visibility'] != '0') {
        $css_class = ' class="greybox"';
    } else {
        $css_class = '';
    }
    $clickable_table_header = $social_bookmarks_icon_array['page'] . $lang_plugin_social_bookmarks['menu_name'];
    starttable("100%", $clickable_table_header);
    $main_output = social_bookmarks_content();
    // Visibility options need to be applied!
    echo <<<EOT
    <tr>
        <td class="tableb">
\t\t\t{$main_output}
        </td>
    </tr>
EOT;
    endtable();
    echo '<br />' . $LINEBREAK;
    $return = ob_get_contents();
    ob_end_clean();
    return $return;
}