get('Version') ); } add_action( 'wp_enqueue_scripts', 'kktfwp_parent_styles' ); /* * Filter for disabling the update notice in admin panel * */ //add_filter( 'kkHideUpdateNotice', 'kkHideUpdateNotice' ); function kkHideUpdateNotice() { return true; } /*-----------------------------------------------------------------------------------*/ /* WRITE YOUR OWN FUNCTIONS BELOW /*-----------------------------------------------------------------------------------*/ /* Returns the name of one random file from within a directory livre-d-or.php:39: */ function getRandomFile($start_dir) { chdir($start_dir); $dir = opendir('.'); while (($myfile = readdir($dir)) !==false) { if ($myfile != '.' && $myfile != '..' && is_file($myfile) && $myfile != 'resource.frk') { $files[] = $myfile; } } closedir($dir); chdir('../'); srand ((float) microtime() * 10000000); $file = array_rand($files); return $files[$file]; } function show_bookmark_list(){ ?> "../../" . $file_sd, 'width' => $size_sd[0], 'height' => $size_sd[1] ); } if (file_exists($file_hd)) { $th_hd = true; $size_hd = getimagesize($file_hd, $info); $thumb['hd'] = array( 'url' => "../../" . $file_hd, 'width' => $size_hd[0], 'height' => $size_hd[1] ); } if (($th_sd == true) && ($th_hd == true)) { $standard = $thumb['sd']['url'] . ' 200w, ' . $thumb['hd']['url'] . ' 400w'; } elseif ($th_sd == true) { $standard = $thumb['sd']['url'] . ' 200w'; } elseif ($th_hd == true) { $standard = $thumb['hd']['url'] . ' 400w'; } $display = '
'; $display .= '
'; $display .= ''; /* $display .= ''; $display .= ''; $display .= ''; $display .= ''; $display .= ''; $display .= ''; $display .= ''; $display .= ''; */ $display .= ""; $display .= ''; $display .= '
'; $display .= '
'; $display .= ''; $display .= ''.date_archive($filename).''; $display .= '
'; $display .= '
' . "\r\n"; //echo "display: " . $display; return $display; } /* *functions.php - displayRetina() displayRetina() */ function date_archive ($chaine) { $pieces = explode(".", $chaine); $b = explode("_", $pieces[0]); $mois = $b[0]; $an = $b[1]; $chaine = mois2($mois) . ' '. $an; return $chaine; } function preprint($s, $return=false) { $x = "
"; 
    $x .= print_r($s, 1); 
    $x .= "
"; if ($return) return $x; else print $x; }