Beispiel #1
0
<?php 
$logo_prefence = osc_get_preference('logo', 'osclassclsx');
if (is_writable(osc_uploads_path())) {
    ?>
    <?php 
    if ($logo_prefence) {
        ?>
        <h3 class="render-title"><?php 
        _e('Preview', 'osclassclsx');
        ?>
</h3>
        <img border="0" alt="<?php 
        echo osc_esc_html(osc_page_title());
        ?>
" src="<?php 
        echo osclassclsx_logo_url() . '?' . filemtime(osc_uploads_path() . osc_get_preference('logo', 'osclassclsx'));
        ?>
" />
        <form action="<?php 
        echo osc_admin_render_theme_url('oc-content/themes/osclassclsx/admin/header.php');
        ?>
" method="post" enctype="multipart/form-data" class="nocsrf">
            <input type="hidden" name="action_specific" value="remove" />
            <fieldset>
                <div class="form-horizontal">
                    <div class="form-actions">
                        <input id="button_remove" type="submit" value="<?php 
        echo osc_esc_html(__('Remove logo', 'osclassclsx'));
        ?>
" class="btn btn-red">
                    </div>
Beispiel #2
0
 function logo_header()
 {
     $logo = osc_get_preference('logo', 'osclassclsx');
     $html = '<a href="' . osc_base_url() . '"><img border="0" alt="' . osc_page_title() . '" src="' . osclassclsx_logo_url() . '"></a>';
     if ($logo != '' && file_exists(osc_uploads_path() . $logo)) {
         return $html;
     } else {
         return '<a href="' . osc_base_url() . '">' . osc_page_title() . '</a>';
     }
 }