Plugin Directory

Changeset 1708169


Ignore:
Timestamp:
08/04/2017 03:46:18 AM (9 years ago)
Author:
devlucasmendes
Message:

show sourceId;

Location:
fastdee/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fastdee/trunk/includes/pages/class-fd-options-page.php

    r1708163 r1708169  
    4444    public function fd_options_page() {
    4545        ?>
    46         <input type="hidden" id="fastdee-admin-url" value="<?php echo admin_url(); ?>">
    47         <form action='options.php' method='post'>
     46        <input type="hidden" id="fastdee-admin-url" value="<?php echo admin_url(); ?>">
     47        <form action='options.php' method='post'>
    4848            <?php
    4949            settings_fields( 'fd_pluginPage' );
     
    5151            submit_button();
    5252            ?>
    53         </form>
     53        </form>
    5454        <?php
    5555    }
     
    6464        );
    6565
     66        $texto_sourceId = '*ID Lomadee';
     67
     68        if ( $this->temSourceId() ) {
     69            $texto_sourceId .= ' (' . $this->getSourceID() . ')';
     70        }
    6671        add_settings_field(
    6772            'fd_sourceID',
    68             __( '*ID Lomadee', 'wordpress' ),
     73            __( $texto_sourceId, 'wordpress' ),
    6974            array( $this, 'fd_sourceID_render' ),
    7075            'fd_pluginPage',
     
    110115            'fd_pluginPage',
    111116            'fd_fd_pluginPage_section',
    112             array('class'=>'fd-hide fd-show-store-logo-text')
     117            array( 'class' => 'fd-hide fd-show-store-logo-text' )
    113118        );
    114119
     
    121126    public function fd_sourceID_render() {
    122127        ?>
    123         <input type='hidden' id="fd-op-sourceId" name='fd_settings[fd_sourceID]'
    124                value='<?php echo esc_attr( $this->getSourceID() ); ?>'>
     128        <input type='hidden' id="fd-op-sourceId" name='fd_settings[fd_sourceID]'
     129               value='<?php echo esc_attr( $this->getSourceID() ); ?>'>
    125130        <?php
    126131        if ( $this->temSourceId() ):
    127132            ?>
    128             <button type="button" class="fd-op-mudarSourceID button" id="fd-op-btnMudarId" style="margin-right: 43px;">
    129                 Mudar meu ID</button>
     133            <button type="button" class="fd-op-mudarSourceID button" id="fd-op-btnMudarId" style="margin-right: 43px;">
     134                Mudar meu ID
     135            </button>
    130136            <?php
    131137        else:
    132138            ?>
    133             <button type="button" class="fd-op-buscarSourceID button button-primary fd-btn-red" id="fd-op-btnBuscarId"
     139            <button type="button" class="fd-op-buscarSourceID button button-primary fd-btn-red" id="fd-op-btnBuscarId"
    134140                    style="margin-right: 43px;">
    135                 Buscar meu ID
    136             </button>
     141                Buscar meu ID
     142            </button>
    137143            <?php
    138144        endif;
    139145        ?>
    140         <span>(Através do seu ID você é identificado e a Lomadee gera suas comissões)</span>
     146        <span>(Através do seu ID você é identificado e a Lomadee gera suas comissões)</span>
    141147        <?php
    142148    }
     
    145151    public function fd_btn_woocomerce_text_render() {
    146152        ?>
    147         <input type='text' name='fd_settings[fd_btn_woocomerce_text]' placeholder="(Padrão)"
    148                value='<?php echo esc_attr( $this->getOptions( 'fd_btn_woocomerce_text' ) ); ?>'
     153        <input type='text' name='fd_settings[fd_btn_woocomerce_text]' placeholder="(Padrão)"
     154               value='<?php echo esc_attr( $this->getOptions( 'fd_btn_woocomerce_text' ) ); ?>'
    149155               style="width: 200px;"
    150156        >
    151         <span>(Use esse campo para alterar o texto do botão Comprar do seu Woocomerce)</span>
     157        <span>(Use esse campo para alterar o texto do botão Comprar do seu Woocomerce)</span>
    152158        <?php
    153159    }
     
    155161    public function fd_n_offers_page_render() {
    156162        ?>
    157         <input type='number' min="10" max="80" name='fd_settings[fd_n_offers_page]' placeholder="min 10 - máx 80"
    158                value='<?php echo esc_attr( $this->getOptions( 'fd_n_offers_page' ) ); ?>' style="width: 200px;">
    159         <span>(Padrão: 10 ofertas por página)</span>
     163        <input type='number' min="10" max="80" name='fd_settings[fd_n_offers_page]' placeholder="min 10 - máx 80"
     164               value='<?php echo esc_attr( $this->getOptions( 'fd_n_offers_page' ) ); ?>' style="width: 200px;">
     165        <span>(Padrão: 10 ofertas por página)</span>
    160166        <?php
    161167    }
     
    163169    public function fd_show_store_on_pname_render() {
    164170        ?>
    165         <input type="hidden" name='fd_settings[fd_show_store_on_pname]'
    166                value="<?php echo esc_attr( $this->getOptions( 'fd_show_store_on_pname' ) ); ?>">
    167         <input type='checkbox' id="fd_show_store_on_pname"
     171        <input type="hidden" name='fd_settings[fd_show_store_on_pname]'
     172               value="<?php echo esc_attr( $this->getOptions( 'fd_show_store_on_pname' ) ); ?>">
     173        <input type='checkbox' id="fd_show_store_on_pname"
    168174            <?php echo esc_attr( checked( $this->getOptions( 'fd_show_store_on_pname' ), 'true' ) ) ?>
    169                style="margin-right: 186px;">
    170         <span>(No final do nome da oferta será adicionado <em>"(Entregue por nome-da-loja)"</em>)</span>
     175               style="margin-right: 186px;">
     176        <span>(No final do nome da oferta será adicionado <em>"(Entregue por nome-da-loja)"</em>)</span>
    171177        <?php
    172178    }
  • fastdee/trunk/readme.md

    r1701740 r1708169  
    114114== Changelog ==
    115115
     116= 2.4.0 =
     117* Atualização de ofertas antigas.
     118* Nova opção para exibição do logo da loja na oferta.
     119* Melhora de performance / Importação mais rápida.
     120* Exibição do source ID na página de opções.
     121
    116122= 2.3.0 =
    117123* Atualização de preço ao importar oferta já existente
Note: See TracChangeset for help on using the changeset viewer.