Example #1
0
function rethink_optionsframework_uploader_function($id, $std, $mod)
{
    //$uploader .= '<input type="file" id="attachement_'.$id.'" name="attachement_'.$id.'" class="upload_input"></input>';
    //$uploader .= '<span class="submit"><input name="save" type="submit" value="Upload" class="button upload_save" /></span>';
    $uploader = '';
    $upload = esc_attr(rethink_get_option($id));
    if ($mod != 'min') {
        $val = $std;
        if (rethink_get_option($id) != "") {
            $val = rethink_get_option($id);
        }
        $uploader .= '<input class="of-input" readonly name="' . esc_attr($id) . '" id="' . esc_attr($id) . '_upload" type="text" value="' . esc_attr($val) . '" />';
    }
    $uploader .= '<div class="upload_button_div"><span class="button image_upload_button" id="' . esc_attr($id) . '">' . __('Upload Image', 'rethink') . '</span>';
    if (!empty($upload)) {
        $hide = '';
    } else {
        $hide = 'hide';
    }
    $uploader .= '<span class="button image_reset_button ' . $hide . '" id="reset_' . esc_attr($id) . '" title="' . esc_attr($id) . '">' . __('Remove', 'rethink') . '</span>';
    $uploader .= '</div>' . "\n";
    $uploader .= '<div class="clear"></div>' . "\n";
    $findme = 'wp-content/uploads';
    $imgvideocheck = strpos($upload, $findme);
    if (!empty($upload) && $imgvideocheck === true) {
        $uploader .= '<a class="of-uploaded-image" href="' . $upload . '">';
        $uploader .= '<img class="of-option-image" id="image_' . esc_attr($id) . '" src="' . $upload . '" alt="" />';
        $uploader .= '</a>';
    }
    $uploader .= '<div class="clear"></div>' . "\n";
    return $uploader;
}
Example #2
0
    </head>
    <body  <?php 
body_class();
?>
>		
        <div class="main-container">
            <div class="container_24">
                <div class="grid_24">
                    <div class="main-content">					
                        <div class="header">
                            <div class="logo"><a href="<?php 
echo esc_url(home_url('/'));
?>
"><img src="<?php 
if (rethink_get_option('rethink_logo') != '') {
    echo esc_url(rethink_get_option('rethink_logo'));
} else {
    echo get_template_directory_uri();
    ?>
/images/logo.png<?php 
}
?>
" alt="<?php 
bloginfo('name');
?>
" /></a> </div>
                            <!--Start Menu wrapper-->
                            <!--End Menu wrapper-->
                        </div>
                        <div class="clear"></div>
                        <div class="menu_wrapper">                     
Example #3
0
?>
            <?php 
if (rethink_get_option('rethink_twitter') != '') {
    ?>
                <li class="sl-2"><a href="<?php 
    echo esc_url(rethink_get_option('rethink_twitter'));
    ?>
" target="_blank"><span></span></a></li>
            <?php 
}
?>
            <?php 
if (rethink_get_option('rethink_yahoo') != '') {
    ?>
                <li class="sl-5"><a href="<?php 
    echo esc_url(rethink_get_option('rethink_yahoo'));
    ?>
" target="_blank"><span></span></a></li>
                        <?php 
}
?>
     
        </ul>
    </div>
</div>

<!--End Footer bottom inner-->
<!--End Footer bottom-->
</div>
</div>
</div>
Example #4
0
/**
 * Fevicon
 *
 */
function rethink_childtheme_favicon()
{
    if (rethink_get_option('rethink_favicon') != '') {
        echo '<link rel="shortcut icon" href="' . esc_url(rethink_get_option('rethink_favicon')) . '"/>' . "\n";
    }
}