function pop_meta_image()
{
    $url = pop_logo_url();
    // listing
    if (osc_is_ad_page()) {
        if (osc_has_item_resources()) {
            $url = osc_resource_thumbnail_url();
        }
    }
    return osc_apply_filter('pop_meta_image_filter', $url);
}
Esempio n. 2
0
$logo_prefence = osc_get_preference('logo', 'pop_theme');
if (is_writable(osc_uploads_path())) {
    ?>
    <?php 
    if ($logo_prefence) {
        ?>
        <h3 class="render-title"><?php 
        _e('Preview', 'pop');
        ?>
</h3>
        <p class="preview_logo">
            <img border="2" alt="<?php 
        echo osc_esc_html(osc_page_title());
        ?>
" src="<?php 
        echo pop_logo_url() . '?' . filemtime(osc_uploads_path() . osc_get_preference('logo', 'pop_theme'));
        ?>
" />
        </p>
        <form action="<?php 
        echo osc_admin_render_theme_url('oc-content/themes/pop/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', 'pop'));
        ?>
" class="btn btn-red">