Exemplo n.º 1
0
                        <div class="clear"></div>
                        <span class="note"><?php 
_e('Enter values in pixels or percentage (Example: 500px or 100%)', $this->text_domain);
?>
</span>
                        </td>
                    </tr>
                    <tr valign="top">
                    <th scope="row"><?php 
_e('Show Download Link', $this->text_domain);
?>
</th>
                    <td>
                       <?php 
$downoptions = array('alluser' => __('For all users', $this->text_domain), 'logged' => __('For Logged-in users', $this->text_domain), 'none' => __('No Download', $this->text_domain));
ead_selectbuilder('ead_download', $downoptions, esc_attr(get_option('ead_download', 'none')));
?>
 
                    </td>
                    </tr>
                </table>
                <div class="ead-form-footer">
                <?php 
submit_button();
?>
                </div>
            </form>
        </div><!-- #general-->
        <div class="ead-banner">
            <a href="http://goo.gl/wJTQlc" target="_blank"><img src="<?php 
echo $this->plugin_url;
Exemplo n.º 2
0
?>
</label> 
                        <?php 
$downoptions = array('all' => __('For all users', $this->text_domain), 'logged' => __('For Logged-in users', $this->text_domain), 'none' => __('No Download', $this->text_domain));
ead_selectbuilder('ead_download', $downoptions, esc_attr(get_option('ead_download')), 'ead_usc');
?>
 
                        </div>
                        <div class="f-left last" id="new_provider">
                        <label><?php 
_e('Viewer', 'ead');
?>
</label> 
                        <?php 
$providers = array('google' => __('Google Docs Viewer', $this->text_domain), 'microsoft' => __('Microsoft Office Online', $this->text_domain));
ead_selectbuilder('ead_provider', $providers, esc_attr(get_option('ead_provider', 'google')), 'ead_usc');
?>
 
                        </div>
                        <div class="f-left last" id="ead_pseudo" style="display:none">
                        <label><?php 
_e('Viewer', 'ead');
?>
</label> 
                        <select name="ead_pseudo" disabled>
                            <option value="box">Box</option>
                            <option value="drive">Drive</option>
                        </select> 
                        </div>
                        <div class="clear"></div>
                    </li>