小编Arp*_*ain的帖子

Google开发者控制台中的凭据未加载

https://console.developers.google.com/project/*/apiui/credential

重复单击的凭据面板也不会加载(继续加载)

我需要访问Oauth 2.0而我无法访问,因为没有显示任何内容.

我已完成以下激活 - 谷歌分析API(启用它)

现在我需要访问Oauth 2.0和我的互联网连接很快但凭据部分没有工作,谷歌开发人员年龄的所有其他部分正在加载.

我该怎么做才能解决这个问题?

google-app-engine google-api google-cloud-storage google-cloud-platform google-console-developer

5
推荐指数
3
解决办法
6975
查看次数

如何在TPL文件中的prestashop 1.7中检测smarty中的设备?

我想要以下内容:

& 我知道我必须从 PrestaShop 的 context.php 中获取代码,但我似乎犯了一个错误。getcontext 的链接如下:(检测移动设备的代码在这里) https://github.com/PrestaShop/PrestaShop/blob/develop/classes/Context.php

{if isset($products) AND $products}
             {$tabname=rand()+count($products)}
            {if isset($display_mode) && $display_mode == 'carousel'}
                {include file="{$items_owl_carousel_tpl}" items=$products image_size=$image_size}
            {else}
                {if device is MOBILE} /* Correct Code Needed */
                    {include file="{$items_normal_tpl}" items=$products image_size="homepage_default"}
                {else device is NOT MOBILE} /* Correct Code Needed */
                    {include file="{$items_normal_tpl}" items=$products image_size="home_default"}
                {/if}
            {/if}
        {/if}
Run Code Online (Sandbox Code Playgroud)

我应该在 IF 条件中输入哪些代码以确保它检测到移动设备而不是移动设备。

IF条件也写得正确,我应该在这段代码中改变什么?

这是 .TPL 文件。

php if-statement smarty prestashop-1.7 responsive

3
推荐指数
1
解决办法
2076
查看次数