Exemple #1
0
if (is_writable(osc_uploads_path())) {
    ?>
                    <?php 
    if ($logo_prefence) {
        ?>
                        <div class="panel panel-default">
                            <div class="panel-heading"><strong><?php 
        _e('Logo Preview', 'flatter');
        ?>
</strong></div>
                            <div class="panel-body">
                            <img border="0" alt="<?php 
        echo osc_esc_html(osc_page_title());
        ?>
" src="<?php 
        echo flatter_logo_url();
        ?>
" />
                            <br /><br />
                            <form action="<?php 
        echo osc_admin_render_theme_url('oc-content/themes/flatter/admin/settings.php');
        ?>
" method="post" class="form-horizontal nocsrf" enctype="multipart/form-data" >
                                <input type="hidden" name="action_specific" value="remove" />
                                <div class="form-group">
                                    <div class="col-sm-4">
                                      <button type="submit" id="button_remove" class="btn btn-danger"><?php 
        echo osc_esc_html(__('Remove logo', 'flatter'));
        ?>
</button>
                                    </div>
Exemple #2
0
 function logo_header()
 {
     $logo = osc_get_preference('logo', 'flatter_theme');
     $html = '<img class="img-responsive" border="0" alt="' . osc_page_title() . '" src="' . flatter_logo_url() . '" width="80">';
     if ($logo != '' && file_exists(osc_uploads_path() . $logo)) {
         return $html;
     } else {
         return '<div>' . osc_page_title() . '</div>';
     }
 }