?? GreyFile — Mystic File Browser

Current path: home/webdevt/prestashop17/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage/Forms/



?? Go up: /home/webdevt/prestashop17/src/PrestaShopBundle/Resources/views/Admin/Product/ProductPage

?? Viewing: form_seo.html.twig

{#**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.md.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://devdocs.prestashop.com/ for more information.
 *
 * @author    PrestaShop SA and Contributors <contact@prestashop.com>
 * @copyright Since 2007 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 *#}
<div class="col-md-12">

  <h2>{{ 'Search Engine Optimization'|trans({}, 'Admin.Catalog.Feature') }}</h2>
  <p class="subtitle">{{ 'Improve your ranking and how your product page will appear in search engines results.'|trans({}, 'Admin.Catalog.Feature') }}</p>

  {% block product_catalog_tool_serp %}
    <p>{{ "Here is a preview of your search engine result, play with it!"|trans({}, 'Admin.Catalog.Feature') }}</p>
    {# Div targetted by the SERP component in VueJs. It displays a Google search result preview. #}
    <div id="serp-app"></div>
  {% endblock %}

  <div class="row">
    <div class="col-md-9">
      <fieldset class="form-group">
        {{ form_label(seoForm.meta_title) }}
        {{ form_errors(seoForm.meta_title) }}
        {{ form_widget(seoForm.meta_title) }}
      </fieldset>
    </div>
  </div>

  <div class="row">
    <div class="col-md-9">
      <fieldset class="form-group">
        {{ form_label(seoForm.meta_description) }}
        {{ form_errors(seoForm.meta_description) }}
        {{ form_widget(seoForm.meta_description) }}
      </fieldset>
    </div>
  </div>
  <fieldset class="form-group">
    <label class="form-control-label">
      {{ seoForm.link_rewrite.vars.label }}
      <span class="help-box" data-toggle="popover"
        data-content="{{ "This is the human-readable URL, as generated from the product's name. You can change it if you want."|trans({}, 'Admin.Catalog.Help') }}" ></span>
    </label>
    {{ form_errors(seoForm.link_rewrite) }}
    <div class="row">
      <div class="col-md-7">
        {{ form_widget(seoForm.link_rewrite) }}
      </div>
      <div class="col-md-2">
        <button type="button" class="btn btn-block btn-outline-secondary" id="seo-url-regenerate">{{ 'Reset URL'|trans({}, 'Admin.Catalog.Feature') }}</button>
      </div>
    </div>
  </fieldset>

  <div class="row">
    <div class="col-md-9">
      <div class="alert alert-info" role="alert">
        <p class="alert-text">
          {% if configuration('PS_REWRITING_SETTINGS') == 0 %}
            <strong>{{ 'Friendly URLs are currently disabled.'|trans({}, 'Admin.Catalog.Notification') }}</strong>
            {{ 'To enable it, go to [1]SEO and URLs[/1]'|trans({}, 'Admin.Catalog.Notification')|replace({'[1]': '<a href="' ~ getAdminLink("AdminMeta") ~ '#meta_fieldset_general">', '[/1]': '</a>'})|raw }}
          {% else %}
            <strong>{{ 'Friendly URLs are currently enabled.'|trans({}, 'Admin.Catalog.Notification') }}</strong>
            {{ 'To disable it, go to [1]SEO and URLs[/1]'|trans({}, 'Admin.Catalog.Notification')|replace({'[1]': '<a href="' ~ getAdminLink("AdminMeta") ~ '#meta_fieldset_general">', '[/1]': '</a>'})|raw }}
          {% endif %}
        </p>
        <p class="alert-text">
          {% if configuration('PS_FORCE_FRIENDLY_PRODUCT') == 1 %}
            <strong>{{ 'The "Force update of friendly URL" option is currently enabled.'|trans({}, 'Admin.Catalog.Notification') }}</strong>
            {# "It" refers to the option "Force update of friendly URL" #}
            {{ 'To disable it, go to [1]Product Settings[/1]'|trans({}, 'Admin.Catalog.Notification')|replace({'[1]': '<a href="' ~ getAdminLink("AdminPPreferences") ~ '#configuration_fieldset_products">', '[/1]': '</a>'})|raw }}
          {% endif %}
        </p>
      </div>
    </div>
  </div>

  <h2 class="mt-4">
    {{ 'Redirection page'|trans({}, 'Admin.Catalog.Feature') }}
    <span class="help-box" data-toggle="popover"
      data-content="{{ "When your product is disabled, choose to which page you’d like to redirect the customers visiting its page by typing the product or category name."|trans({}, 'Admin.Catalog.Help') }}" ></span>
  </h2>

  <div class="row">

    <div class="col-md-4">
      <fieldset class="form-group">
        <label class="form-control-label">{{ seoForm.redirect_type.vars.label }}</label>
        {{ form_errors(seoForm.redirect_type) }}
        {{ form_widget(seoForm.redirect_type) }}
      </fieldset>
    </div>

    <div class="col-md-5" id="id-product-redirected">
      <fieldset class="form-group">
        <label class="form-control-label">{{ seoForm.id_type_redirected.vars.label }}</label>
        {{ form_errors(seoForm.id_type_redirected) }}
        {{ form_widget(seoForm.id_type_redirected) }}
      </fieldset>

    </div>
  </div>
  <div class="row">
    <div class="col-md-9">
      <div class="alert alert-info" role="alert">
        <p class="alert-text">
          {{ 'No redirection (404) = Do not redirect anywhere and display a 404 "Not Found" page.'|trans({}, 'Admin.Catalog.Help') }}<br>
          {{ 'Permanent redirection (301) = Permanently display another product or category instead.'|trans({}, 'Admin.Catalog.Help') }}<br>
          {{ 'Temporary redirection (302) = Temporarily display another product or category instead.'|trans({}, 'Admin.Catalog.Help') }}
        </p>
      </div>
    </div>
  </div>

  {{ form_rest(seoForm) }}

  {{ renderhook('displayAdminProductsSeoStepBottom', { 'id_product': productId }) }}
</div>


??

??