0
私はembed
でYoutubeのサムネイルリストが必要です。私はすでにTubepressを手に入れており、PrestashopのSmartyテンプレートと統合しようとしていますが、何か問題があります。SmartyのPHP Tubepressプロ、プラグインの問題
私はTPLに初期化され、正しい変数を持っている:
{$searchvideo = $product->name|escape:'htmlall':'UTF-8'}
{searchvid}
$searchvideo
は、製品名の文字列です。 searchvid
はfunction.searchvid.php
からPrestashopのプラグインディレクトリにあります。
function.searchvid.php
:
<?php
function smarty_function_searchvid($params, $template) {
$tubepress_base_url = "http://domain.com/folder/tubepress_pro_2_2_9";
include "/home/folder/www/tubepress_pro_2_2_9/sys/classes/TubePressPro.class.php";
$searchvideo = $template->getTemplateVars("searchvideo");
print TubePressPro::getHtmlForHead(true);
print TubePressPro::getHtmlForShortcode('mode="tag" tagValue="intitle:'. $searchvideo .'" thumbHeight="100" thumbWidth="100" embeddedHeight="325" embeddedWidth="534" embeddableOnly="true" resultsPerPage="5"');
}
?>
問題は、ページは、私が{searchvid}
呼び出した後も何もロードしない、です。どんな助けもありがとう。