Wordpress - 在php _e中放一个变量

时间:2015-01-28 09:23:41

标签: javascript php wordpress

我在我的一个网站上使用wordpress,而我使用的主题有一个地铁风格的瓷砖滑块。

将鼠标悬停在某个磁贴上时,我会看到此字符串"更多"。我检查了这种滑块的滑块配置,发现php _e正用于获取此字符串。

<div class="box box-1">
                        <a href="<?php echo $slide['slide_url']?>" ><img src="<?php echo $slide['slide_src']?>" width="306" height="391" alt="" /><span><?php _e('more','tfac');?></span>

是否可以通过php echo或其他内容将其更改为变量?我已将滑块设置配置为通过变量$ slide_title接受自定义值。

array('name' => 'Slide Title',
                        'desc' => 'Change hover text here',
                        'id' => 'slide_title',
                        'value' => '',
                        'type' => 'text',
                        'divider' => true),

但是尽管用php echo $ slide_title替换php _e行,我仍然看到&#39; More&#39;在悬停。

我检查了主题的PO文件并找到了这个 -

 #: E:\wamp1\wamp\www\mvibes.md\wp-content\themes\mvibes-parent/theme_config/extensions/slider/designs/gallery/template.php:8
 #: E:\wamp1\wamp\www\mvibes.md\wp-content\themes\mvibes-parent/theme_config/extensions/slider/designs/gallery/template.php:12
 msgid "more"
 msgstr ""

我该怎么办?

0 个答案:

没有答案