function osclasswizards_favicon() { echo '<link rel="shortcut icon" href="' . osclasswizards_favicon_url() . '" type="image/x-icon" />'; echo "\n"; }
<?php $logo_prefence = osc_get_preference('favicon', 'osclasswizards_theme'); if (is_writable(osc_uploads_path())) { ?> <?php if ($logo_prefence) { ?> <h3 class="render-title"><?php _e('Preview', 'osclasswizards'); ?> </h3> <img style="max-width:100%;" border="0" alt="<?php echo osc_esc_html(osc_page_title()); ?> " src="<?php echo osclasswizards_favicon_url() . '?' . filemtime(osc_uploads_path() . osc_get_preference('favicon', 'osclasswizards_theme')); ?> " /> <form action="<?php echo osc_admin_render_theme_url('oc-content/themes/osclasswizards/admin/settings.php'); ?> " method="post" enctype="multipart/form-data" class="nocsrf"> <input type="hidden" name="action_specific" value="remove_favicon" /> <fieldset> <div class="form-horizontal"> <div class="form-actions"> <input id="button_remove" type="submit" value="<?php echo osc_esc_html(__('Remove image', 'osclasswizards')); ?> " class="btn btn-red"> </div>
<!-- canonical --> <link rel="canonical" href="<?php echo osc_get_canonical(); ?> "/> <!-- /canonical --> <?php } ?> <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Expires" content="Fri, Jan 01 1970 00:00:00 GMT" /> <meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0" /> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <link rel="shortcut icon" href="<?php echo osclasswizards_favicon_url(); ?> " type="image/x-icon" /> <link href="<?php echo osc_current_web_theme_url('js/jquery-ui/jquery-ui-1.10.2.custom.min.css'); ?> " rel="stylesheet" type="text/css" /> <script type="text/javascript"> var osclasswizards = window.osclasswizards || {}; osclasswizards.base_url = '<?php echo osc_base_url(true); ?> '; osclasswizards.langs = <?php echo json_encode($js_lang); ?>