我正在尝试调整 NextGen Gallery 插件,特别是文件 nextgen-gallery/view/gallery.php 以实现在查看画廊时显示画廊描述。
所以,在这个文件中,我添加了以下几行:
....
<?php if (!defined ('ABSPATH')) die ('No direct access allowed'); ?>
<?php if (!empty ($gallery)) : ?>
<?php /** Lots of stuff added here by Mpampirina **/ ?>
<p> You are here: <a class="Link" href="<?php echo get_permalink(); ?>">
<?php the_title(); ?></a> >
<?php $album = nggdb::find_album( get_query_var('album') ); ?>
<?php echo $album->name ?> > <?php echo $gallery->title ?>
</p>
<div class="ngg-description">
<p>Here I want to add the gallery description text. So I try with:
<?php echo $gallery->gallerydesc ?> . Also I try with:
<?php echo $gallery->galdesc ?> .
I get no description, whatsoever...
</p>
</div>
<?php /** End of stuff added by Mpampirina **/ ?>
<div class="ngg-galleryoverview" id="<?php echo $gallery->anchor ?>">
...
那么,有没有人可以看到我做错了什么,或者可能会指出我可能错过的另一个问题页面?这将非常有帮助!:-) 先感谢您