Пример #1
0
_e('type', 'myGallery');
?>
 'ok' <?php 
_e('in the box', 'myGallery');
?>
)</i> <input type="text" size="3" name="deleteok" value="" />
</fieldset>
<p class="submit"><input type="submit" value="ok"></p></form><br /><br /><?php 
// show a gallery if one was selected switch opion should be used in future
if ($myaction == 'opengallery' or $myaction == 'modifygallery') {
    if ($showgallery) {
        $mg_options = get_option('mygalleryoptions');
        $thepictures = getmypictures($showgallery);
        $galleryname = getgalleryname($showgallery);
        $mypage_id = getgallerypageid($showgallery);
        $galdescrip = getgallerydescrip($showgallery);
        $previewpic = getpreviewpic($showgallery);
        $longname = getgallerylongname($showgallery);
        $galsortordernr = getgalleryordernr($showgallery);
        if (getgalleryexclude($showgallery)) {
            $mycheckbox_exclude = 'checked="checked"';
        }
        ?>
		<form name="pageform" id="post" method="post" action="admin.php?page=mygallery/myfunctions/mygalleryadmin.php" ENCTYPE="multipart/form-data">
		<div id="mgadmin" class="dbx-group" >
		<fieldset class="dbx-box">
		<h3 class="dbx-handle"><?php 
        _e('Gallery setting for', 'myGallery');
        ?>
 <i><?php 
        echo $galleryname;
Пример #2
0
function gallistgal($somegallerynames = 0)
{
    $mg_options = get_option('mygalleryoptions');
    $myurl = get_bloginfo('wpurl') . '/' . $mg_options[gallerybasepath];
    $replace = '<div class="mygalleryoverview">';
    // get gallerys
    if (!$_GET[galpage] and $mg_options[galpagebreak]) {
        $mygalpage = 1;
    } else {
        if ($mg_options[galpagebreak]) {
            $mygalpage = $_GET[galpage];
        }
    }
    list($gallerys, $gallerynavigation) = spreedgallerytopages($mygalpage, $somegallerynames);
    if (is_array($gallerys)) {
        foreach ($gallerys as $x) {
            $longname = '';
            if ($mg_options[longnames]) {
                $longname = getgallerylongname($x->id);
            }
            if (!$longname) {
                $longname = $x->name;
            }
            $replace = $replace . '<div class="mygallerygallery"><div class="mygallerynames"><a href="' . gallery_reference($x->pageid, $x->name) . '">' . $longname . '</a>';
            if ($mg_options[picturesingallery]) {
                $replace = $replace . '<span class="picturesingallery"> (' . countthumbs($x->name) . ')</span>';
            }
            $replace = $replace . '</div><div class="mygallpicdesbord ">';
            if ($mg_options[previewpic] and $x->previewpic) {
                $mypicturepath = getpicturepath($x->previewpic);
                $myalttitle = getalttitle($x->previewpic);
                $replace = $replace . '<div class="mygallerypreviewpics"><a href="' . gallery_reference($x->pageid, $x->name) . '"><img src="' . $myurl . $x->name . '/tumbs/tmb_' . $mypicturepath . '" alt="' . $myalttitle . '" title="' . $myalttitle . '"/></a></div>';
                // Bezug zum Bild fehlt
            }
            if ($mg_options[galdescrip]) {
                $mydescription = getgallerydescrip($x->id);
                $replace = $replace . '<div class="mygallerydescription">' . $mydescription . '</div>';
            }
            $replace = $replace . '</div></div>';
        }
    }
    $replace = $replace . '</div>' . $gallerynavigation;
    return $replace;
}