';
}else{
$script_path = get_stylesheet_directory_uri().'/scripts/';
$files = get_sircontheme_setting('js_files');
foreach($files as $file){
echo '';
}
}
}
function sircontheme_early_scripts(){
$do_js_optimizations = get_sircontheme_setting('optimize_js');
if($do_js_optimizations){
$script_path = get_stylesheet_directory_uri().'/scripts/optimized-early-cache/';
echo '';
}else{
$script_path = get_stylesheet_directory_uri().'/scripts/';
$files = get_sircontheme_setting('priority_js_files');
foreach($files as $file){
echo '';
}
}
}
/* Output jquery, because we can and want */
function sircontheme_new_jquery($old_school = false){
$path = get_stylesheet_directory_uri().'/scripts/default/jquery2.js';
echo '';
}
/* Output jquery, because we can and want */
function sircontheme_jquery($old_school = false){
$path = '/wp-includes/js/jquery/jquery.js';
echo '';
}
/* Not extremely necessary, just a simple wrapper.. */
function sircontheme_footer_creds_simple($text = ''){
echo '
';
}
/* Output creds in a nice structured way */
function sircontheme_footer_creds($who_and_what, $separator = ' | '){
$and = __('and', 'sircon_evo');
$by = __('by', 'sircon_evo');
$creds_output = '';
foreach($who_and_what as $who => $what){
//Needs a separator ?
if($creds_output){ $creds_output .= $separator; }
$who_output = '';
$what_output = array();
$last = '';
if(isset($what['did_what']) && count($what['did_what']) > 0){
foreach($what['did_what'] as $label => $url){
if(!is_string($label)){continue;}
$what_output[] = ''.__($label).''; //Translateable by wpml
}
}
if(count($what_output) > 1){
//Last item "AND"
$last = array_pop($what_output);
$last = ' '.$and.' '.$last;
}
if(count($what_output) > 0){
$what_output = implode(', ', $what_output).$last;
$who_output .= $what_output.' '.$by.' ';
}
//Who has a url?
if(isset($what['url'])){
$who_output .= ''.$who.'';
}else{
$who_output .= $who;
}
//Final result appended to complete output
$creds_output .= $who_output;
}
sircontheme_footer_creds_simple($creds_output);
}
/* COOKIE NOTICE
Even if active, will not display if already accepted within session lifetime! */
function get_sircontheme_cookie_notice(){
ob_start();
$show_cookie_notice = get_sircontheme_option('show-cookie-notice');
if($show_cookie_notice == 1){?>