LimeSurvey - 选择将显示哪个pstpl

时间:2017-03-06 11:07:41

标签: php limesurvey

我不知道在哪里找到函数,或者负责选择哪个pstpl将在“欢迎页面”上显示的对象。

在admin / templates.php中,我找到了varialbes,用于定义管理面板中主题编辑器中可见的pstpl。但这就是我发现的一切。

1 个答案:

答案 0 :(得分:0)

你知道welcom.pstpl显示,使用grep来找到

$ grep -r 'welcome.pstpl' *
application/controllers/admin/templates.php:            'welcome.pstpl',
application/controllers/admin/templates.php:            'welcome.pstpl',
application/helpers/frontend_helper.php:    echo templatereplace(file_get_contents($sTemplateViewPath."welcome.pstpl"),array(),$redata,'frontend_helper[2762]')."\n";
application/helpers/SurveyRuntimeHelper.php:                echo templatereplace(file_get_contents($sTemplateViewPath."welcome.pstpl"), array(), $redata) . "\n";
application/config/internal.php:            'excludeFiles' => array("config.xml", "assessment.pstpl", "clearall.pstpl",  "completed.pstpl",  "endgroup.pstpl",  "endpage.pstpl",  "groupdescription.pstpl",  "load.pstpl",  "navigator.pstpl",  "printanswers.pstpl",  "print_group.pstpl",  "print_question.pstpl",  "print_survey.pstpl",  "privacy.pstpl",  "question.pstpl",  "register.pstpl",  "save.pstpl",  "startgroup.pstpl",  "startpage.pstpl",  "surveylist.pstpl",  "survey.pstpl",  "welcome.pstpl" ),

然后:在application / helpers / SurveyRuntimeHelper.php和application / helpers / frontend_helper.php中查看公共视图。

下次:你不需要问,但是使用grep:)