Changeset 1708169
- Timestamp:
- 08/04/2017 03:46:18 AM (9 years ago)
- Location:
- fastdee/trunk
- Files:
-
- 2 edited
-
includes/pages/class-fd-options-page.php (modified) (8 diffs)
-
readme.md (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fastdee/trunk/includes/pages/class-fd-options-page.php
r1708163 r1708169 44 44 public function fd_options_page() { 45 45 ?> 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'> 48 48 <?php 49 49 settings_fields( 'fd_pluginPage' ); … … 51 51 submit_button(); 52 52 ?> 53 </form>53 </form> 54 54 <?php 55 55 } … … 64 64 ); 65 65 66 $texto_sourceId = '*ID Lomadee'; 67 68 if ( $this->temSourceId() ) { 69 $texto_sourceId .= ' (' . $this->getSourceID() . ')'; 70 } 66 71 add_settings_field( 67 72 'fd_sourceID', 68 __( '*ID Lomadee', 'wordpress' ),73 __( $texto_sourceId, 'wordpress' ), 69 74 array( $this, 'fd_sourceID_render' ), 70 75 'fd_pluginPage', … … 110 115 'fd_pluginPage', 111 116 'fd_fd_pluginPage_section', 112 array('class'=>'fd-hide fd-show-store-logo-text')117 array( 'class' => 'fd-hide fd-show-store-logo-text' ) 113 118 ); 114 119 … … 121 126 public function fd_sourceID_render() { 122 127 ?> 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() ); ?>'> 125 130 <?php 126 131 if ( $this->temSourceId() ): 127 132 ?> 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> 130 136 <?php 131 137 else: 132 138 ?> 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" 134 140 style="margin-right: 43px;"> 135 Buscar meu ID136 </button>141 Buscar meu ID 142 </button> 137 143 <?php 138 144 endif; 139 145 ?> 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> 141 147 <?php 142 148 } … … 145 151 public function fd_btn_woocomerce_text_render() { 146 152 ?> 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' ) ); ?>' 149 155 style="width: 200px;" 150 156 > 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> 152 158 <?php 153 159 } … … 155 161 public function fd_n_offers_page_render() { 156 162 ?> 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> 160 166 <?php 161 167 } … … 163 169 public function fd_show_store_on_pname_render() { 164 170 ?> 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" 168 174 <?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> 171 177 <?php 172 178 } -
fastdee/trunk/readme.md
r1701740 r1708169 114 114 == Changelog == 115 115 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 116 122 = 2.3.0 = 117 123 * Atualização de preço ao importar oferta já existente
Note: See TracChangeset
for help on using the changeset viewer.